@pouchy_ai/admin-sdk 0.4.4 → 0.5.0
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 +14 -0
- package/README.md +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@pouchy_ai/admin-sdk` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.5.0 — 2026-07-17
|
|
6
|
+
|
|
7
|
+
Additive: end-user listing pagination.
|
|
8
|
+
|
|
9
|
+
- **`listUsers` gains cursor pagination**: pass `limit` (clamped 1..100
|
|
10
|
+
server-side, default 100) and `cursor` (opaque — the previous response's
|
|
11
|
+
`nextCursor`); the response now carries `nextCursor` while more rows exist.
|
|
12
|
+
Previously the unfiltered listing was hard-capped at the 100 most recently
|
|
13
|
+
active instances with no way to reach the tail. The filtered variants
|
|
14
|
+
(`external_user_id` / `external_user_prefix`) are unchanged and don't
|
|
15
|
+
paginate. Requires a server deployment serving Admin API >= 1.2.0; older
|
|
16
|
+
servers ignore the new params and never return `nextCursor` (you just get
|
|
17
|
+
the old first-100 behavior).
|
|
18
|
+
|
|
5
19
|
## 0.4.4 — 2026-07-17
|
|
6
20
|
|
|
7
21
|
Transport-error parity with the JS/python/unity siblings (they got this in
|
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ try {
|
|
|
88
88
|
| Agents | `listAgents` · `createAgent` · `getAgent` · `updateAgent` · `deleteAgent` |
|
|
89
89
|
| Voices | `listVoices({ gender?, age?, locale? })` — catalog for programmatic voice selection (each `CatalogVoice` carries `age`) |
|
|
90
90
|
| Secret keys | `listKeys` · `createKey` · `revokeKey` · `rotateKey` (24 h grace) |
|
|
91
|
-
| End users | `listUsers` · `setUserSuspended` · `deleteUser` · `getUserWallet` · `getUserTraces` · `importUsers` · `exportUser` · `getUserSessions` · `getUserTurns` |
|
|
91
|
+
| End users | `listUsers({ limit?, cursor? })` (cursor-paginated — the response's `nextCursor` feeds the next page; filter variants: `external_user_id` / `external_user_prefix`) · `setUserSuspended` · `deleteUser` · `getUserWallet` · `getUserTraces` · `importUsers` · `exportUser` · `getUserSessions` · `getUserTurns` |
|
|
92
92
|
| Knowledge | `listKnowledge` · `ingestKnowledge` · `deleteKnowledge` |
|
|
93
93
|
| Skills | `listSkills` · `installSkill` · `updateSkill` · `setSkillRate` · `setSkillDailyCap` · `grantSkill` (free-HTTP) · `compileSkill` (prose→tools) · `uninstallSkill` |
|
|
94
94
|
| Credentials | `listCredentials` · `putCredentials` · `deleteCredentials` |
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ADMIN_SDK_VERSION = "0.
|
|
1
|
+
export declare const ADMIN_SDK_VERSION = "0.5.0";
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://pouchy.ai/v1/admin";
|
|
3
3
|
export interface AdminClientOptions {
|
|
4
4
|
/** A project Admin key (`pchy_admin_…`) from the dashboard Admin Keys page. */
|
|
@@ -159,13 +159,19 @@ export interface AdminClient {
|
|
|
159
159
|
graceUntil: string | null;
|
|
160
160
|
};
|
|
161
161
|
}>;
|
|
162
|
-
/** List end-user instances. Filter by exact external id or by prefix
|
|
163
|
-
*
|
|
162
|
+
/** List end-user instances. Filter by exact external id or by prefix, or
|
|
163
|
+
* page the full listing: `limit` (clamped 1..100 server-side, default 100)
|
|
164
|
+
* + `cursor` (opaque — pass back the previous response's `nextCursor`).
|
|
165
|
+
* `nextCursor` is present while more rows exist; the filtered variants
|
|
166
|
+
* don't paginate. */
|
|
164
167
|
listUsers(params?: {
|
|
165
168
|
external_user_id?: string;
|
|
166
169
|
external_user_prefix?: string;
|
|
170
|
+
limit?: number;
|
|
171
|
+
cursor?: string;
|
|
167
172
|
}): Promise<{
|
|
168
173
|
users: Instance[];
|
|
174
|
+
nextCursor?: string;
|
|
169
175
|
}>;
|
|
170
176
|
setUserSuspended(instanceId: string, suspended: boolean): Promise<{
|
|
171
177
|
suspended: boolean;
|
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.
|
|
11
|
+
export const ADMIN_SDK_VERSION = '0.5.0';
|
|
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.
|
|
3
|
+
"version": "0.5.0",
|
|
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",
|