@pouchy_ai/admin-sdk 0.43.0 → 0.44.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,24 @@
2
2
 
3
3
  All notable changes to `@pouchy_ai/admin-sdk` are documented here.
4
4
 
5
+ ## 0.44.1 — 2026-10-16
6
+
7
+ - **`story_contract_v5_write_disabled`** joins `ADMIN_ERROR_CODES` — a Story
8
+ Package publish that scopes flags to roles (`visibility.flagDefault:
9
+ "role-scoped"`, Story Contract v5, world API 1.55.0) answers 409 with this
10
+ code in an environment that has not enabled v5 writes, the field intact.
11
+ Vocabulary only; no method changed.
12
+
13
+ ## 0.44.0 — 2026-10-09
14
+
15
+ - **`getRecentTraces` and `getTracesSummary` say when the read hit its cap**
16
+ (admin API 1.21.0): `truncated: true` with `sampledRuns`, the pair the
17
+ health read already carried. With `errorsOnly` the recent read scans the
18
+ window's newest runs and keeps the failures, so on a busy project an empty
19
+ list could mean "the newest runs all succeeded" rather than "no failures in
20
+ this window", and nothing told the two apart. Absent on a read under its cap.
21
+ Additive; no existing field changed.
22
+
5
23
  ## 0.43.0 — 2026-10-08
6
24
 
7
25
  - **Three period reads** (admin API 1.20.0), the same answers the dashboard
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const ADMIN_SDK_VERSION = "0.43.0";
1
+ export declare const ADMIN_SDK_VERSION = "0.44.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
@@ -60,7 +60,7 @@ export interface AdminClientOptions {
60
60
  * published: on this plane the status line never disambiguates, so two of the
61
61
  * durable-run routes answer 409 for two entirely different reasons each, with
62
62
  * different recoveries. `code` is the only thing that tells them apart. */
63
- export declare const ADMIN_ERROR_CODES: readonly ["story_contract_v2_write_disabled", "story_contract_v3_write_disabled", "story_contract_v4_write_disabled", "has_pins", "pins_unknown", "story_package_limit", "story_package_documents_limit", "episode_history_incomplete", "episode_ended", "idempotency_key_reused", "stale_deliberation", "deliberation_disabled", "deliberation_uncalibrated", "deliberation_not_enabled", "deliberation_candidates_exceeded", "schedule_limit_reached", "one_shot_spent", "ghost_row", "channel_limit_reached", "webhook_limit_reached", "run_limit_reached", "reembed_required", "run_terminal", "run_not_parked", "stale_token", "run_not_waiting", "event_mismatch", "subscription_exists", "world_actor_conflict", "world_revision_mismatch", "world_provider_mismatch"];
63
+ export declare const ADMIN_ERROR_CODES: readonly ["story_contract_v2_write_disabled", "story_contract_v3_write_disabled", "story_contract_v4_write_disabled", "story_contract_v5_write_disabled", "has_pins", "pins_unknown", "story_package_limit", "story_package_documents_limit", "episode_history_incomplete", "episode_ended", "idempotency_key_reused", "stale_deliberation", "deliberation_disabled", "deliberation_uncalibrated", "deliberation_not_enabled", "deliberation_candidates_exceeded", "schedule_limit_reached", "one_shot_spent", "ghost_row", "channel_limit_reached", "webhook_limit_reached", "run_limit_reached", "reembed_required", "run_terminal", "run_not_parked", "stale_token", "run_not_waiting", "event_mismatch", "subscription_exists", "world_actor_conflict", "world_revision_mismatch", "world_provider_mismatch"];
64
64
  /** `AdminApiError.code` values. The `(string & {})` arm keeps the type open for
65
65
  * codes newer than this SDK build while preserving autocomplete — same
66
66
  * doctrine as the companion SDK's `CompanionErrorCodeValue`. */
@@ -1632,6 +1632,13 @@ export interface AdminClient {
1632
1632
  untilMs?: number;
1633
1633
  };
1634
1634
  degraded: false | 'index' | 'error';
1635
+ /** 0.44.0 (admin API 1.21.0): present only when the read hit its cap.
1636
+ * The rows (with `errorsOnly`, the failures) then come from the window's
1637
+ * newest `sampledRuns` runs only, so an empty `errorsOnly` list is NOT
1638
+ * "no failed runs in this window". */
1639
+ truncated?: true;
1640
+ /** With `truncated`: how many runs the read took. */
1641
+ sampledRuns?: number;
1635
1642
  traces: RecentTrace[];
1636
1643
  }>;
1637
1644
  /** Enabled platform voices for programmatic provisioning. Filter by gender /
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.43.0';
11
+ export const ADMIN_SDK_VERSION = '0.44.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;
@@ -73,6 +73,7 @@ export const ADMIN_ERROR_CODES = [
73
73
  'story_contract_v2_write_disabled',
74
74
  'story_contract_v3_write_disabled',
75
75
  'story_contract_v4_write_disabled',
76
+ 'story_contract_v5_write_disabled',
76
77
  'has_pins',
77
78
  'pins_unknown',
78
79
  'story_package_limit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pouchy_ai/admin-sdk",
3
- "version": "0.43.0",
3
+ "version": "0.44.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",