@alfe.ai/agent-api-client 0.13.0 → 0.15.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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @alfe.ai/agent-api-client
2
2
 
3
- Agent self-service API client agents calling /agents/ endpoints
3
+ Agent self-service API client for Alfe's agent-authenticated endpoints. It
4
+ resolves identity from the bearer token, so callers never place their own
5
+ `agentId` in a self-service path.
4
6
 
5
7
  Part of [**Alfe**](https://alfe.ai) — the operating system for AI agents: build, deploy, and run agents with persistent memory, identity, integrations, and channels. See the [documentation](https://docs.alfe.ai) to get started.
6
8
 
@@ -10,6 +12,26 @@ Part of [**Alfe**](https://alfe.ai) — the operating system for AI agents: buil
10
12
  npm install @alfe.ai/agent-api-client
11
13
  ```
12
14
 
15
+ ## Usage
16
+
17
+ ```ts
18
+ import { AgentApiClient } from "@alfe.ai/agent-api-client";
19
+
20
+ const client = new AgentApiClient({ apiKey, apiUrl });
21
+ const manifest = await client.syncGetManifest();
22
+ ```
23
+
24
+ Construct one client for the daemon/plugin lifetime and reuse it. JSON methods
25
+ unwrap Alfe's `{ data }` response envelope and attach the HTTP status to thrown
26
+ errors. Safe reads retry one transient failure; mutations do not retry unless a
27
+ method has an explicit server-side idempotency contract. S3 presigned URLs and
28
+ raw voice audio use their dedicated binary/direct-transfer paths.
29
+
30
+ The flat `AgentApiClient` surface is assembled from domain modules for chat,
31
+ Connect credentials, database, identity, integrations, knowledge, memory,
32
+ mobile, search, secrets, sync/shared files, voice, webhooks, and workspace
33
+ configuration.
34
+
13
35
  ## Links
14
36
 
15
37
  - 🌐 Website: <https://alfe.ai>