@dexto/client-sdk 1.2.4 → 1.2.6
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 +3 -4
- package/dist/client.d.ts +3022 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/index.cjs +115 -799
- package/dist/index.d.ts +8 -230
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +114 -800
- package/dist/streaming.d.ts +57 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +12 -4
- package/dist/index.d.cts +0 -232
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Dexto Client SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An ultra-lightweight, zero-dependency HTTP client SDK for the Dexto API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- 🚀 **Ultra-lightweight**: Only 80KB bundle size
|
|
8
8
|
- 🔌 **Zero dependencies**: No external libraries
|
|
9
9
|
- 🌐 **Universal**: Works in Node.js, browsers, and React Native
|
|
10
|
-
- 📡 **HTTP +
|
|
10
|
+
- 📡 **HTTP + SSE**: Full REST API and real-time SSE streaming support
|
|
11
11
|
- 🛡️ **TypeScript**: Full type safety
|
|
12
12
|
- 🔄 **Auto-retry**: Built-in retry logic with exponential backoff
|
|
13
13
|
- ⚡ **Fast**: Server-side validation, client-side pass-through
|
|
@@ -48,7 +48,6 @@ const client = new DextoClient({
|
|
|
48
48
|
timeout: 30000, // Optional: Request timeout (ms)
|
|
49
49
|
retries: 3, // Optional: Retry attempts
|
|
50
50
|
}, {
|
|
51
|
-
enableWebSocket: true, // Optional: Enable WebSocket
|
|
52
51
|
reconnect: true, // Optional: Auto-reconnect
|
|
53
52
|
reconnectInterval: 5000, // Optional: Reconnect delay (ms)
|
|
54
53
|
debug: false // Optional: Debug logging
|
|
@@ -64,7 +63,7 @@ const client = new DextoClient({
|
|
|
64
63
|
|
|
65
64
|
### Messaging
|
|
66
65
|
- `sendMessage(input)` - Send message (HTTP)
|
|
67
|
-
-
|
|
66
|
+
- SSE streaming available via `/api/message-stream` endpoint
|
|
68
67
|
|
|
69
68
|
### Session Management
|
|
70
69
|
- `listSessions()` - List all sessions
|