@teneo-protocol/sdk 2.2.2 → 3.0.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/.github/ISSUE_TEMPLATE/config.yml +1 -1
- package/CHANGELOG.md +366 -15
- package/CONCEPTS.md +182 -44
- package/README.md +524 -94
- package/dist/constants.d.ts +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -3
- package/dist/constants.js.map +1 -1
- package/dist/core/websocket-client.d.ts.map +1 -1
- package/dist/core/websocket-client.js +9 -5
- package/dist/core/websocket-client.js.map +1 -1
- package/dist/formatters/response-formatter.d.ts +6 -6
- package/dist/handlers/message-handlers/agent-details-response-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/agent-details-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-details-response-handler.js +2 -2
- package/dist/handlers/message-handlers/agent-details-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/agent-error-handler.d.ts +91 -0
- package/dist/handlers/message-handlers/agent-error-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/agent-error-handler.js +44 -0
- package/dist/handlers/message-handlers/agent-error-handler.js.map +1 -0
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-status-update-handler.js +2 -7
- package/dist/handlers/message-handlers/agent-status-update-handler.js.map +1 -1
- package/dist/handlers/message-handlers/all-agents-response-handler.d.ts +135 -54
- package/dist/handlers/message-handlers/all-agents-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/all-agents-response-handler.js +2 -2
- package/dist/handlers/message-handlers/all-agents-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/auth-error-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-error-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.js +6 -1
- package/dist/handlers/message-handlers/auth-message-handler.js.map +1 -1
- package/dist/handlers/message-handlers/auth-required-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-required-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.js +6 -1
- package/dist/handlers/message-handlers/auth-success-handler.js.map +1 -1
- package/dist/handlers/message-handlers/base-handler.d.ts +2 -1
- package/dist/handlers/message-handlers/base-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/base-handler.js +24 -4
- package/dist/handlers/message-handlers/base-handler.js.map +1 -1
- package/dist/handlers/message-handlers/challenge-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/challenge-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/error-message-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/error-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/index.d.ts +4 -0
- package/dist/handlers/message-handlers/index.d.ts.map +1 -1
- package/dist/handlers/message-handlers/index.js +23 -1
- package/dist/handlers/message-handlers/index.js.map +1 -1
- package/dist/handlers/message-handlers/list-available-agents-handler.d.ts +1116 -756
- package/dist/handlers/message-handlers/list-available-agents-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-available-agents-handler.js +23 -10
- package/dist/handlers/message-handlers/list-available-agents-handler.js.map +1 -1
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-room-agents-handler.js +2 -6
- package/dist/handlers/message-handlers/list-room-agents-handler.js.map +1 -1
- package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-rooms-response-handler.js +2 -5
- package/dist/handlers/message-handlers/list-rooms-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts +52 -4
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/ping-pong-handler.js +23 -4
- package/dist/handlers/message-handlers/ping-pong-handler.js.map +1 -1
- package/dist/handlers/message-handlers/rate-limit-notification-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/rate-limit-notification-handler.js +3 -2
- package/dist/handlers/message-handlers/rate-limit-notification-handler.js.map +1 -1
- package/dist/handlers/message-handlers/regular-message-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/regular-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts +12 -6
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/success-handler.d.ts +82 -0
- package/dist/handlers/message-handlers/success-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/success-handler.js +24 -0
- package/dist/handlers/message-handlers/success-handler.js.map +1 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.d.ts +110 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.js +46 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.js.map +1 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.d.ts +244 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.js +58 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.js.map +1 -0
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts +12 -6
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/user-authenticated-handler.js +2 -2
- package/dist/handlers/message-handlers/user-authenticated-handler.js.map +1 -1
- package/dist/handlers/message-handlers/user-count-handler.js +2 -2
- package/dist/handlers/message-handlers/user-count-handler.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/managers/admin-manager.d.ts +3 -1
- package/dist/managers/admin-manager.d.ts.map +1 -1
- package/dist/managers/admin-manager.js +4 -3
- package/dist/managers/admin-manager.js.map +1 -1
- package/dist/managers/agent-room-manager.d.ts +89 -11
- package/dist/managers/agent-room-manager.d.ts.map +1 -1
- package/dist/managers/agent-room-manager.js +99 -35
- package/dist/managers/agent-room-manager.js.map +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/index.d.ts.map +1 -1
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/message-router.d.ts +45 -5
- package/dist/managers/message-router.d.ts.map +1 -1
- package/dist/managers/message-router.js +96 -24
- package/dist/managers/message-router.js.map +1 -1
- package/dist/managers/room-manager.d.ts +29 -7
- package/dist/managers/room-manager.d.ts.map +1 -1
- package/dist/managers/room-manager.js +37 -11
- package/dist/managers/room-manager.js.map +1 -1
- package/dist/payments/index.d.ts +3 -1
- package/dist/payments/index.d.ts.map +1 -1
- package/dist/payments/index.js +17 -3
- package/dist/payments/index.js.map +1 -1
- package/dist/payments/networks.d.ts +59 -0
- package/dist/payments/networks.d.ts.map +1 -0
- package/dist/payments/networks.js +192 -0
- package/dist/payments/networks.js.map +1 -0
- package/dist/payments/payment-client.d.ts +55 -10
- package/dist/payments/payment-client.d.ts.map +1 -1
- package/dist/payments/payment-client.js +172 -51
- package/dist/payments/payment-client.js.map +1 -1
- package/dist/teneo-sdk.d.ts +215 -41
- package/dist/teneo-sdk.d.ts.map +1 -1
- package/dist/teneo-sdk.js +361 -84
- package/dist/teneo-sdk.js.map +1 -1
- package/dist/types/config.d.ts +334 -25
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +114 -22
- package/dist/types/config.js.map +1 -1
- package/dist/types/events.d.ts +60 -14
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +11 -4
- package/dist/types/index.js.map +1 -1
- package/dist/types/messages.d.ts +13110 -7451
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/messages.js +195 -44
- package/dist/types/messages.js.map +1 -1
- package/dist/utils/pricing-resolver.d.ts +1 -1
- package/dist/utils/pricing-resolver.d.ts.map +1 -1
- package/dist/utils/pricing-resolver.js +9 -1
- package/dist/utils/pricing-resolver.js.map +1 -1
- package/examples/agent-room-management-example.ts +5 -5
- package/examples/basic-usage.ts +26 -6
- package/examples/claude-agent-x-follower/index.ts +1 -1
- package/examples/minimal-chat.ts +4 -3
- package/examples/n8n-teneo/index.ts +2 -2
- package/examples/nestjs-dashboard/README.md +1 -1
- package/examples/nestjs-dashboard/src/teneo/agents.controller.ts +3 -3
- package/examples/nestjs-dashboard/src/teneo/rooms.controller.ts +5 -5
- package/examples/nestjs-dashboard/src/teneo/teneo.service.ts +8 -8
- package/examples/openai-teneo/index.ts +1 -1
- package/examples/payment-flow.ts +143 -0
- package/examples/production-dashboard/README.md +6 -8
- package/examples/production-dashboard/server.ts +22 -10
- package/examples/room-management-example.ts +2 -2
- package/examples/usage/01-connect.ts +0 -3
- package/examples/usage/02-list-agents.ts +0 -2
- package/examples/usage/03-pick-agent.ts +3 -4
- package/examples/usage/04-find-by-capability.ts +10 -12
- package/examples/usage/05-webhook-example.ts +2 -4
- package/examples/usage/06-simple-api-server.ts +13 -9
- package/examples/usage/07-event-listener.ts +1 -13
- package/examples/usage/README.md +33 -7
- package/examples/webhook-integration.ts +9 -9
- package/examples/x-influencer-battle-server.ts +1 -1
- package/package.json +1 -1
- package/scripts/diagnose-connection.ts +86 -0
- package/scripts/investigate-payload.ts +163 -0
- package/scripts/list-agents.ts +58 -0
- package/scripts/live-multi-network-test.ts +230 -0
- package/src/constants.ts +5 -3
- package/src/core/websocket-client.ts +10 -9
- package/src/handlers/message-handlers/agent-details-response-handler.ts +2 -2
- package/src/handlers/message-handlers/agent-error-handler.ts +47 -0
- package/src/handlers/message-handlers/agent-status-update-handler.ts +2 -7
- package/src/handlers/message-handlers/all-agents-response-handler.ts +2 -2
- package/src/handlers/message-handlers/auth-message-handler.ts +7 -1
- package/src/handlers/message-handlers/auth-success-handler.ts +7 -1
- package/src/handlers/message-handlers/base-handler.ts +24 -4
- package/src/handlers/message-handlers/index.ts +24 -0
- package/src/handlers/message-handlers/list-available-agents-handler.ts +24 -11
- package/src/handlers/message-handlers/list-room-agents-handler.ts +2 -6
- package/src/handlers/message-handlers/list-rooms-response-handler.ts +2 -5
- package/src/handlers/message-handlers/ping-pong-handler.ts +29 -4
- package/src/handlers/message-handlers/rate-limit-notification-handler.ts +3 -2
- package/src/handlers/message-handlers/success-handler.ts +26 -0
- package/src/handlers/message-handlers/task-confirmed-handler.ts +49 -0
- package/src/handlers/message-handlers/trigger-wallet-tx-handler.ts +62 -0
- package/src/handlers/message-handlers/user-authenticated-handler.ts +2 -2
- package/src/handlers/message-handlers/user-count-handler.ts +2 -2
- package/src/index.ts +12 -4
- package/src/managers/admin-manager.ts +6 -3
- package/src/managers/agent-room-manager.ts +155 -26
- package/src/managers/index.ts +6 -1
- package/src/managers/message-router.ts +122 -27
- package/src/managers/room-manager.ts +39 -11
- package/src/payments/index.ts +20 -5
- package/src/payments/networks.ts +208 -0
- package/src/payments/payment-client.ts +211 -56
- package/src/teneo-sdk.ts +402 -71
- package/src/types/config.test.ts +24 -4
- package/src/types/config.ts +123 -25
- package/src/types/events.ts +36 -2
- package/src/types/index.ts +16 -3
- package/src/types/messages.ts +235 -60
- package/src/utils/pricing-resolver.ts +10 -2
- package/tests/direct-agent-test.ts +1 -1
- package/tests/integration/real-server.test.ts +1 -1
- package/tests/integration/websocket.test.ts +3 -3
- package/tests/multi-network-payment.test.ts +309 -0
- package/tests/multi-network.test.ts +296 -0
- package/tests/payment-flow-test.ts +6 -4
- package/tests/unit/handlers/agent-error-handler.test.ts +388 -0
- package/tests/unit/handlers/agent-room-operation-response-handler.test.ts +9 -6
- package/tests/unit/handlers/agent-status-update-handler.test.ts +11 -16
- package/tests/unit/handlers/list-available-agents-handler.test.ts +11 -14
- package/tests/unit/handlers/list-room-agents-handler.test.ts +11 -15
- package/tests/unit/handlers/room-operation-response-handler.test.ts +9 -6
- package/tests/unit/handlers/trigger-wallet-tx-handler.test.ts +431 -0
- package/tests/unit/managers/admin-manager.test.ts +183 -0
- package/tests/unit/managers/agent-room-manager.test.ts +189 -33
- package/tests/unit/sdk-new-methods.test.ts +221 -0
package/dist/teneo-sdk.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { z } from "zod";
|
|
|
8
8
|
import { PartialSDKConfig, SDKConfigBuilder, Agent, RoomInfo, AgentRoomInfo, type HealthStatus } from "./types";
|
|
9
9
|
import { SDKEvents } from "./types/events";
|
|
10
10
|
import { FormattedResponse, ResponseFormatOptions } from "./formatters/response-formatter";
|
|
11
|
-
import { SendMessageOptions, AgentCommand, QuoteResult, AdminManager, ListAllAgentsOptions, AllAgentsResult } from "./managers";
|
|
12
|
-
export type { SendMessageOptions, AgentCommand, QuoteResult, ListAllAgentsOptions, AllAgentsResult };
|
|
11
|
+
import { SendMessageOptions, AgentCommand, QuoteResult, AdminManager, ListAllAgentsOptions, AllAgentsResult, ListAvailableAgentsOptions, PaginatedAgentsResult } from "./managers";
|
|
12
|
+
export type { SendMessageOptions, AgentCommand, QuoteResult, ListAllAgentsOptions, AllAgentsResult, ListAvailableAgentsOptions, PaginatedAgentsResult };
|
|
13
13
|
export declare const SendMessageOptionsSchema: z.ZodObject<{
|
|
14
14
|
room: z.ZodOptional<z.ZodString>;
|
|
15
15
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -66,7 +66,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
66
66
|
* @param config.wsUrl - WebSocket URL to connect to (e.g., 'wss://teneo.example.com')
|
|
67
67
|
* @param config.privateKey - Optional Ethereum private key for wallet-based authentication
|
|
68
68
|
* @param config.walletAddress - Optional wallet address (derived from privateKey if not provided)
|
|
69
|
-
* @param config.
|
|
69
|
+
* @param config.autoJoinPublicRooms - Optional array of public room IDs to subscribe to automatically on connection (private rooms are auto-available)
|
|
70
70
|
* @param config.webhookUrl - Optional webhook URL for receiving event notifications
|
|
71
71
|
* @param config.reconnect - Enable automatic reconnection (default: true)
|
|
72
72
|
* @param config.logLevel - Logging level: 'debug', 'info', 'warn', 'error', 'silent' (default: 'info')
|
|
@@ -86,7 +86,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
86
86
|
* const sdk = new TeneoSDK({
|
|
87
87
|
* wsUrl: 'wss://teneo.example.com',
|
|
88
88
|
* privateKey: '0x...',
|
|
89
|
-
*
|
|
89
|
+
* autoJoinPublicRooms: ['public-room-1', 'public-room-2'], // Public rooms only
|
|
90
90
|
* webhookUrl: 'https://api.example.com/webhooks',
|
|
91
91
|
* logLevel: 'debug',
|
|
92
92
|
* responseFormat: 'both',
|
|
@@ -95,11 +95,12 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
95
95
|
* });
|
|
96
96
|
*
|
|
97
97
|
* // Using builder pattern (recommended for complex configs)
|
|
98
|
-
* const
|
|
99
|
-
* .
|
|
100
|
-
* .
|
|
101
|
-
* .
|
|
98
|
+
* const config = TeneoSDK.builder()
|
|
99
|
+
* .withWebSocketUrl('wss://teneo.example.com')
|
|
100
|
+
* .withAuthentication('0x...')
|
|
101
|
+
* .withAutoJoinPublicRooms(['public-room-1', 'public-room-2'])
|
|
102
102
|
* .build();
|
|
103
|
+
* const sdk = new TeneoSDK(config);
|
|
103
104
|
* ```
|
|
104
105
|
*
|
|
105
106
|
* @see {@link SDKConfigBuilder} for fluent configuration API
|
|
@@ -176,7 +177,9 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
176
177
|
* @param command.agent - The agent ID or name to send the command to
|
|
177
178
|
* @param command.command - The command text to send to the agent
|
|
178
179
|
* @param command.room - Room to send command to (defaults to configured default room)
|
|
179
|
-
* @
|
|
180
|
+
* @param command.network - Optional per-request network override (e.g., "base", "avalanche", or chain ID 8453)
|
|
181
|
+
* @param waitForResponse - Whether to wait for the agent's response (default: false)
|
|
182
|
+
* @returns Promise resolving to FormattedResponse if waitForResponse is true, void otherwise
|
|
180
183
|
* @throws {SDKError} If not connected to the network (ErrorCode.NOT_CONNECTED)
|
|
181
184
|
* @throws {ValidationError} If agent or command are empty, or room is not configured
|
|
182
185
|
*
|
|
@@ -186,8 +189,16 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
186
189
|
* await sdk.sendDirectCommand({
|
|
187
190
|
* agent: 'weather-agent',
|
|
188
191
|
* command: 'Get forecast for New York',
|
|
189
|
-
* room: '
|
|
192
|
+
* room: 'room-id'
|
|
190
193
|
* });
|
|
194
|
+
*
|
|
195
|
+
* // With per-request network override
|
|
196
|
+
* const response = await sdk.sendDirectCommand({
|
|
197
|
+
* agent: 'x-agent-enterprise-v2',
|
|
198
|
+
* command: 'user @elonmusk',
|
|
199
|
+
* room: 'room-id',
|
|
200
|
+
* network: 'base' // Pay on Base for this request
|
|
201
|
+
* }, true);
|
|
191
202
|
* ```
|
|
192
203
|
*/
|
|
193
204
|
sendDirectCommand(command: AgentCommand, waitForResponse?: boolean): Promise<FormattedResponse | void>;
|
|
@@ -196,7 +207,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
196
207
|
* The quote includes agent selection, pricing, and expiration.
|
|
197
208
|
* Does NOT auto-approve - use confirmQuote() to execute.
|
|
198
209
|
*/
|
|
199
|
-
requestQuote(content: string, room: string): Promise<QuoteResult>;
|
|
210
|
+
requestQuote(content: string, room: string, networkOverride?: string | number): Promise<QuoteResult>;
|
|
200
211
|
/**
|
|
201
212
|
* Confirms a pending quote and executes the task with payment.
|
|
202
213
|
* Attaches x402 payment header if payment client is configured.
|
|
@@ -222,12 +233,22 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
222
233
|
* @example
|
|
223
234
|
* ```typescript
|
|
224
235
|
* // Subscribe to a public room
|
|
225
|
-
* await sdk.
|
|
236
|
+
* await sdk.subscribeToPublicRoom('public-room-id');
|
|
226
237
|
* console.log('Subscribed to public room');
|
|
227
238
|
*
|
|
228
239
|
* // Note: Private rooms don't need subscription - you're always subscribed
|
|
229
240
|
* ```
|
|
230
241
|
*/
|
|
242
|
+
subscribeToPublicRoom(roomId: string): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated Use subscribeToPublicRoom() instead. This method only affects public rooms.
|
|
245
|
+
* Private rooms are automatically available after authentication without subscription.
|
|
246
|
+
*
|
|
247
|
+
* Subscribes to a public room in the Teneo Protocol.
|
|
248
|
+
*
|
|
249
|
+
* @param roomId - The ID of the public room to subscribe to
|
|
250
|
+
* @returns Promise that resolves when the room has been subscribed
|
|
251
|
+
*/
|
|
231
252
|
subscribeToRoom(roomId: string): Promise<void>;
|
|
232
253
|
/**
|
|
233
254
|
* Unsubscribes from a public room in the Teneo Protocol.
|
|
@@ -243,10 +264,20 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
243
264
|
*
|
|
244
265
|
* @example
|
|
245
266
|
* ```typescript
|
|
246
|
-
* await sdk.
|
|
267
|
+
* await sdk.unsubscribeFromPublicRoom('public-room-id');
|
|
247
268
|
* console.log('Unsubscribed from public room');
|
|
248
269
|
* ```
|
|
249
270
|
*/
|
|
271
|
+
unsubscribeFromPublicRoom(roomId: string): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Use unsubscribeFromPublicRoom() instead. This method only affects public rooms.
|
|
274
|
+
* Private rooms cannot be unsubscribed from.
|
|
275
|
+
*
|
|
276
|
+
* Unsubscribes from a public room in the Teneo Protocol.
|
|
277
|
+
*
|
|
278
|
+
* @param roomId - The ID of the public room to unsubscribe from
|
|
279
|
+
* @returns Promise that resolves when the room has been unsubscribed
|
|
280
|
+
*/
|
|
250
281
|
unsubscribeFromRoom(roomId: string): Promise<void>;
|
|
251
282
|
/**
|
|
252
283
|
* Lists all rooms available to the user.
|
|
@@ -276,7 +307,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
276
307
|
* ```typescript
|
|
277
308
|
* const rooms = sdk.getSubscribedRooms();
|
|
278
309
|
* console.log(`Subscribed to ${rooms.length} rooms:`, rooms);
|
|
279
|
-
* // Example output: Subscribed to 3 rooms: ['
|
|
310
|
+
* // Example output: Subscribed to 3 rooms: ['room-id-1', 'room-id-2', 'room-id-3']
|
|
280
311
|
* ```
|
|
281
312
|
*/
|
|
282
313
|
getSubscribedRooms(): string[];
|
|
@@ -317,18 +348,18 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
317
348
|
*/
|
|
318
349
|
getAgent(agentId: string): Agent | undefined;
|
|
319
350
|
/**
|
|
320
|
-
* Finds all agents that have a specific capability using O(1) indexed lookup (PERF-3).
|
|
351
|
+
* Finds all available agents (network-wide) that have a specific capability using O(1) indexed lookup (PERF-3).
|
|
321
352
|
* Much faster than filtering through all agents manually.
|
|
322
353
|
* Uses capability index for constant-time lookups regardless of agent count.
|
|
323
354
|
*
|
|
324
355
|
* @param capability - The capability name to search for (case-insensitive)
|
|
325
|
-
* @returns Read-only array of agents with the specified capability
|
|
356
|
+
* @returns Read-only array of available agents with the specified capability
|
|
326
357
|
* @throws {ValidationError} If capability name is invalid
|
|
327
358
|
*
|
|
328
359
|
* @example
|
|
329
360
|
* ```typescript
|
|
330
|
-
* // Find all weather-capable agents
|
|
331
|
-
* const weatherAgents = sdk.
|
|
361
|
+
* // Find all weather-capable agents available on the network
|
|
362
|
+
* const weatherAgents = sdk.findAvailableAgentsByCapability('weather-forecast');
|
|
332
363
|
* console.log(`Found ${weatherAgents.length} weather agents`);
|
|
333
364
|
*
|
|
334
365
|
* weatherAgents.forEach(agent => {
|
|
@@ -336,44 +367,71 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
336
367
|
* });
|
|
337
368
|
* ```
|
|
338
369
|
*/
|
|
370
|
+
findAvailableAgentsByCapability(capability: string): ReadonlyArray<Agent>;
|
|
371
|
+
/**
|
|
372
|
+
* @deprecated Use findAvailableAgentsByCapability() instead. This searches all available agents network-wide.
|
|
373
|
+
*
|
|
374
|
+
* Finds all agents that have a specific capability.
|
|
375
|
+
*
|
|
376
|
+
* @param capability - The capability name to search for
|
|
377
|
+
* @returns Read-only array of agents with the specified capability
|
|
378
|
+
*/
|
|
339
379
|
findAgentsByCapability(capability: string): ReadonlyArray<Agent>;
|
|
340
380
|
/**
|
|
341
|
-
* Finds agents by name using O(k) token-based search (PERF-3).
|
|
381
|
+
* Finds available agents (network-wide) by name using O(k) token-based search (PERF-3).
|
|
342
382
|
* Supports partial matching - searches for tokens within agent names.
|
|
343
383
|
* Tokenizes both the search query and agent names for flexible matching.
|
|
344
384
|
*
|
|
345
385
|
* @param name - Name or partial name to search for (case-insensitive)
|
|
346
|
-
* @returns Read-only array of agents matching the search
|
|
386
|
+
* @returns Read-only array of available agents matching the search
|
|
347
387
|
* @throws {ValidationError} If name is invalid
|
|
348
388
|
*
|
|
349
389
|
* @example
|
|
350
390
|
* ```typescript
|
|
351
|
-
* // Find all agents with "weather" in their name
|
|
352
|
-
* const agents = sdk.
|
|
391
|
+
* // Find all available agents with "weather" in their name
|
|
392
|
+
* const agents = sdk.findAvailableAgentsByName('weather');
|
|
353
393
|
* // Matches: "Weather Agent", "Weather Forecast Bot", "Advanced Weather API", etc.
|
|
354
394
|
*
|
|
355
395
|
* console.log(`Found ${agents.length} agents matching 'weather'`);
|
|
356
396
|
* ```
|
|
357
397
|
*/
|
|
398
|
+
findAvailableAgentsByName(name: string): ReadonlyArray<Agent>;
|
|
399
|
+
/**
|
|
400
|
+
* @deprecated Use findAvailableAgentsByName() instead. This searches all available agents network-wide.
|
|
401
|
+
*
|
|
402
|
+
* Finds agents by name.
|
|
403
|
+
*
|
|
404
|
+
* @param name - Name or partial name to search for
|
|
405
|
+
* @returns Read-only array of agents matching the search
|
|
406
|
+
*/
|
|
358
407
|
findAgentsByName(name: string): ReadonlyArray<Agent>;
|
|
359
408
|
/**
|
|
360
|
-
* Finds all agents with a specific status using O(1) indexed lookup (PERF-3).
|
|
409
|
+
* Finds all available agents (network-wide) with a specific status using O(1) indexed lookup (PERF-3).
|
|
361
410
|
* Uses status index for constant-time lookups regardless of agent count.
|
|
362
411
|
*
|
|
363
412
|
* @param status - Agent status: 'online' or 'offline' (case-insensitive)
|
|
364
|
-
* @returns Read-only array of agents with the specified status
|
|
413
|
+
* @returns Read-only array of available agents with the specified status
|
|
365
414
|
* @throws {ValidationError} If status is invalid
|
|
366
415
|
*
|
|
367
416
|
* @example
|
|
368
417
|
* ```typescript
|
|
369
|
-
* // Get all online agents
|
|
370
|
-
* const onlineAgents = sdk.
|
|
418
|
+
* // Get all online agents available on the network
|
|
419
|
+
* const onlineAgents = sdk.findAvailableAgentsByStatus('online');
|
|
371
420
|
* console.log(`${onlineAgents.length} agents are currently online`);
|
|
372
421
|
*
|
|
373
422
|
* // Get offline agents
|
|
374
|
-
* const offlineAgents = sdk.
|
|
423
|
+
* const offlineAgents = sdk.findAvailableAgentsByStatus('offline');
|
|
375
424
|
* ```
|
|
376
425
|
*/
|
|
426
|
+
findAvailableAgentsByStatus(status: string): ReadonlyArray<Agent>;
|
|
427
|
+
/**
|
|
428
|
+
* @deprecated Use findAvailableAgentsByStatus() instead. This searches all available agents network-wide.
|
|
429
|
+
*
|
|
430
|
+
* Finds all agents with a specific status.
|
|
431
|
+
*
|
|
432
|
+
* @param status - Agent status: 'online' or 'offline'
|
|
433
|
+
* @returns Read-only array of agents with the specified status
|
|
434
|
+
*/
|
|
377
435
|
findAgentsByStatus(status: string): ReadonlyArray<Agent>;
|
|
378
436
|
/**
|
|
379
437
|
* Fetches detailed information about a specific agent from the server.
|
|
@@ -409,7 +467,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
409
467
|
* console.log(`Found ${result.total} agents`);
|
|
410
468
|
*
|
|
411
469
|
* result.agents.forEach(agent => {
|
|
412
|
-
* console.log(`${agent.agent_name}:
|
|
470
|
+
* console.log(`${agent.agent_name}: status=${agent.review_status}, banned=${agent.is_banned}`);
|
|
413
471
|
* });
|
|
414
472
|
*
|
|
415
473
|
* // Get user count
|
|
@@ -465,7 +523,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
465
523
|
*
|
|
466
524
|
* @example
|
|
467
525
|
* ```typescript
|
|
468
|
-
* const room = sdk.getRoom('
|
|
526
|
+
* const room = sdk.getRoom('room-id');
|
|
469
527
|
* if (room) {
|
|
470
528
|
* console.log(`Found room: ${room.name}`);
|
|
471
529
|
* console.log(`Members: ${room.members?.length ?? 0}`);
|
|
@@ -698,11 +756,21 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
698
756
|
*
|
|
699
757
|
* @example
|
|
700
758
|
* ```typescript
|
|
759
|
+
* // Simple usage (cached)
|
|
701
760
|
* const available = await sdk.listAvailableAgents('room-123');
|
|
702
761
|
* console.log(`${available.length} agents available to add`);
|
|
762
|
+
*
|
|
763
|
+
* // With pagination options
|
|
764
|
+
* const result = await sdk.listAvailableAgents('room-123', {
|
|
765
|
+
* limit: 20,
|
|
766
|
+
* offset: 0,
|
|
767
|
+
* sortBy: 'a-z'
|
|
768
|
+
* });
|
|
769
|
+
* console.log(`${result.total} total agents, showing ${result.agents.length}`);
|
|
703
770
|
* ```
|
|
704
771
|
*/
|
|
705
772
|
listAvailableAgents(roomId: string, useCache?: boolean): Promise<any[]>;
|
|
773
|
+
listAvailableAgents(roomId: string, options: ListAvailableAgentsOptions): Promise<PaginatedAgentsResult>;
|
|
706
774
|
/**
|
|
707
775
|
* Gets agents in a room from cache (synchronous).
|
|
708
776
|
* Returns undefined if not cached. Use listRoomAgents() to fetch.
|
|
@@ -712,7 +780,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
712
780
|
*
|
|
713
781
|
* @example
|
|
714
782
|
* ```typescript
|
|
715
|
-
* const agents = sdk.
|
|
783
|
+
* const agents = sdk.getCachedRoomAgents('room-123');
|
|
716
784
|
* if (agents) {
|
|
717
785
|
* console.log(`${agents.length} agents (cached)`);
|
|
718
786
|
* } else {
|
|
@@ -720,6 +788,16 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
720
788
|
* }
|
|
721
789
|
* ```
|
|
722
790
|
*/
|
|
791
|
+
getCachedRoomAgents(roomId: string): any[] | undefined;
|
|
792
|
+
/**
|
|
793
|
+
* @deprecated Use getCachedRoomAgents() instead. This method returns cached data only.
|
|
794
|
+
* Use listRoomAgents() to fetch fresh data from server.
|
|
795
|
+
*
|
|
796
|
+
* Gets agents in a room from cache (synchronous).
|
|
797
|
+
*
|
|
798
|
+
* @param roomId - ID of the room
|
|
799
|
+
* @returns Array of agents if cached, undefined otherwise
|
|
800
|
+
*/
|
|
723
801
|
getRoomAgents(roomId: string): any[] | undefined;
|
|
724
802
|
/**
|
|
725
803
|
* Gets available agents for a room from cache (synchronous).
|
|
@@ -730,12 +808,22 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
730
808
|
*
|
|
731
809
|
* @example
|
|
732
810
|
* ```typescript
|
|
733
|
-
* const available = sdk.
|
|
811
|
+
* const available = sdk.getCachedAvailableAgents('room-123');
|
|
734
812
|
* if (available) {
|
|
735
813
|
* console.log(`${available.length} agents available (cached)`);
|
|
736
814
|
* }
|
|
737
815
|
* ```
|
|
738
816
|
*/
|
|
817
|
+
getCachedAvailableAgents(roomId: string): any[] | undefined;
|
|
818
|
+
/**
|
|
819
|
+
* @deprecated Use getCachedAvailableAgents() instead. This method returns cached data only.
|
|
820
|
+
* Use listAvailableAgents() to fetch fresh data from server.
|
|
821
|
+
*
|
|
822
|
+
* Gets available agents for a room from cache (synchronous).
|
|
823
|
+
*
|
|
824
|
+
* @param roomId - ID of the room
|
|
825
|
+
* @returns Array of available agents if cached, undefined otherwise
|
|
826
|
+
*/
|
|
739
827
|
getAvailableAgents(roomId: string): any[] | undefined;
|
|
740
828
|
/**
|
|
741
829
|
* Checks if an agent is in a room (synchronous, from cache).
|
|
@@ -747,16 +835,27 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
747
835
|
*
|
|
748
836
|
* @example
|
|
749
837
|
* ```typescript
|
|
750
|
-
* const inRoom = sdk.
|
|
838
|
+
* const inRoom = sdk.checkAgentInRoom('room-123', 'weather-agent');
|
|
751
839
|
* if (inRoom === true) {
|
|
752
840
|
* console.log('Agent is in room');
|
|
753
841
|
* } else if (inRoom === false) {
|
|
754
842
|
* console.log('Agent is not in room');
|
|
755
843
|
* } else {
|
|
756
|
-
* console.log('Room data not cached');
|
|
844
|
+
* console.log('Room data not cached - need to fetch');
|
|
757
845
|
* }
|
|
758
846
|
* ```
|
|
759
847
|
*/
|
|
848
|
+
checkAgentInRoom(roomId: string, agentId: string): boolean | undefined;
|
|
849
|
+
/**
|
|
850
|
+
* @deprecated Use checkAgentInRoom() instead. The 'is*' naming convention implies boolean-only,
|
|
851
|
+
* but this method returns boolean | undefined to indicate cache validity.
|
|
852
|
+
*
|
|
853
|
+
* Checks if an agent is in a room (synchronous, from cache).
|
|
854
|
+
*
|
|
855
|
+
* @param roomId - ID of the room
|
|
856
|
+
* @param agentId - ID of the agent
|
|
857
|
+
* @returns True if agent is in room, false if not, undefined if not cached
|
|
858
|
+
*/
|
|
760
859
|
isAgentInRoom(roomId: string, agentId: string): boolean | undefined;
|
|
761
860
|
/**
|
|
762
861
|
* Gets the count of agents in a room (synchronous, from cache).
|
|
@@ -767,12 +866,22 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
767
866
|
*
|
|
768
867
|
* @example
|
|
769
868
|
* ```typescript
|
|
770
|
-
* const count = sdk.
|
|
869
|
+
* const count = sdk.getCachedRoomAgentCount('room-123');
|
|
771
870
|
* if (count !== undefined) {
|
|
772
871
|
* console.log(`Room has ${count} agents`);
|
|
773
872
|
* }
|
|
774
873
|
* ```
|
|
775
874
|
*/
|
|
875
|
+
getCachedRoomAgentCount(roomId: string): number | undefined;
|
|
876
|
+
/**
|
|
877
|
+
* @deprecated Use getCachedRoomAgentCount() instead. This method returns cached data only.
|
|
878
|
+
* Use listRoomAgents() to fetch fresh data from server.
|
|
879
|
+
*
|
|
880
|
+
* Gets the count of agents in a room (synchronous, from cache).
|
|
881
|
+
*
|
|
882
|
+
* @param roomId - ID of the room
|
|
883
|
+
* @returns Number of agents in room, or undefined if not cached
|
|
884
|
+
*/
|
|
776
885
|
getRoomAgentCount(roomId: string): number | undefined;
|
|
777
886
|
/**
|
|
778
887
|
* Invalidates the agent-room cache for a specific room.
|
|
@@ -811,6 +920,66 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
811
920
|
setUserPreferences(preferences: {
|
|
812
921
|
maxPricePerRequest?: number | null;
|
|
813
922
|
}): Promise<void>;
|
|
923
|
+
/**
|
|
924
|
+
* Sends the result of an on-chain transaction back to the server.
|
|
925
|
+
* Used in response to a "wallet:tx_requested" event after the user
|
|
926
|
+
* has confirmed, rejected, or encountered a failure with the transaction.
|
|
927
|
+
*
|
|
928
|
+
* @param taskId - The task ID from the wallet:tx_requested event
|
|
929
|
+
* @param status - Transaction result: "confirmed", "rejected", or "failed"
|
|
930
|
+
* @param txHash - The on-chain transaction hash (required for "confirmed" status)
|
|
931
|
+
* @param error - Error message (optional, for "failed" status)
|
|
932
|
+
* @throws {SDKError} If the SDK has been destroyed or not connected
|
|
933
|
+
*
|
|
934
|
+
* @example
|
|
935
|
+
* ```typescript
|
|
936
|
+
* sdk.on("wallet:tx_requested", async (data) => {
|
|
937
|
+
* try {
|
|
938
|
+
* const txHash = await wallet.sendTransaction(data.tx);
|
|
939
|
+
* await sdk.sendTxResult(data.taskId, "confirmed", txHash);
|
|
940
|
+
* } catch (err) {
|
|
941
|
+
* await sdk.sendTxResult(data.taskId, "failed", undefined, err.message);
|
|
942
|
+
* }
|
|
943
|
+
* });
|
|
944
|
+
* ```
|
|
945
|
+
*/
|
|
946
|
+
sendTxResult(taskId: string, status: "confirmed" | "rejected" | "failed", txHash?: string, error?: string): Promise<void>;
|
|
947
|
+
/**
|
|
948
|
+
* Sets the API key preference for the current user.
|
|
949
|
+
* Controls whether custom API keys are used for agent interactions.
|
|
950
|
+
*
|
|
951
|
+
* @param useCustomKeys - Whether to use custom API keys
|
|
952
|
+
* @throws {SDKError} If the SDK has been destroyed or not connected
|
|
953
|
+
*
|
|
954
|
+
* @example
|
|
955
|
+
* ```typescript
|
|
956
|
+
* // Enable custom API keys
|
|
957
|
+
* await sdk.setApiKeyPreference(true);
|
|
958
|
+
*
|
|
959
|
+
* // Disable custom API keys
|
|
960
|
+
* await sdk.setApiKeyPreference(false);
|
|
961
|
+
* ```
|
|
962
|
+
*/
|
|
963
|
+
setApiKeyPreference(useCustomKeys: boolean): Promise<void>;
|
|
964
|
+
/**
|
|
965
|
+
* Send a room ping to get live user count
|
|
966
|
+
* Server responds with room_pong message containing current live user count
|
|
967
|
+
*
|
|
968
|
+
* @param roomId - The room ID to ping
|
|
969
|
+
* @throws {SDKError} If not connected or SDK is destroyed
|
|
970
|
+
*
|
|
971
|
+
* @example
|
|
972
|
+
* ```typescript
|
|
973
|
+
* // Ping a room to get live user count
|
|
974
|
+
* await sdk.sendRoomPing("my-room");
|
|
975
|
+
*
|
|
976
|
+
* // Listen for the response
|
|
977
|
+
* sdk.on("room:pong", (data) => {
|
|
978
|
+
* console.log(`Room ${data.roomId} has ${data.liveCount} live users`);
|
|
979
|
+
* });
|
|
980
|
+
* ```
|
|
981
|
+
*/
|
|
982
|
+
sendRoomPing(roomId: string): Promise<void>;
|
|
814
983
|
/**
|
|
815
984
|
* Configures webhook URL and headers for receiving real-time event notifications.
|
|
816
985
|
* Webhooks allow you to receive events at your server endpoint via HTTP POST requests.
|
|
@@ -912,6 +1081,10 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
912
1081
|
privateRoomIds?: string[] | undefined;
|
|
913
1082
|
sharedRoomIds?: string[] | undefined;
|
|
914
1083
|
maxPrivateRooms?: number | undefined;
|
|
1084
|
+
jwtToken?: string | undefined;
|
|
1085
|
+
sessionToken?: string | undefined;
|
|
1086
|
+
whitelistVerified?: string | boolean | undefined;
|
|
1087
|
+
userCount?: number | undefined;
|
|
915
1088
|
};
|
|
916
1089
|
/**
|
|
917
1090
|
* Quick check for whether the WebSocket connection is currently active.
|
|
@@ -1005,7 +1178,7 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
1005
1178
|
headers?: Record<string, string> | undefined;
|
|
1006
1179
|
retries?: number | undefined;
|
|
1007
1180
|
timeout?: number | undefined;
|
|
1008
|
-
events?: ("message" | "task" | "task_response" | "agent_selected" | "error" | "connection_state" | "auth_state")[] | undefined;
|
|
1181
|
+
events?: ("message" | "task" | "task_response" | "agent_selected" | "task_quote" | "task_confirmed" | "error" | "agent_error" | "connection_state" | "auth_state" | "room_operation_error" | "agent_room_operation_error" | "wallet_tx_requested" | "room_subscribed" | "room_unsubscribed" | "room_deleted" | "room_operation" | "agent_room_operation")[] | undefined;
|
|
1009
1182
|
} | undefined;
|
|
1010
1183
|
queue: {
|
|
1011
1184
|
pending: number;
|
|
@@ -1149,13 +1322,14 @@ export declare class TeneoSDK extends EventEmitter<SDKEvents> {
|
|
|
1149
1322
|
*
|
|
1150
1323
|
* @example
|
|
1151
1324
|
* ```typescript
|
|
1152
|
-
* const
|
|
1153
|
-
* .
|
|
1154
|
-
* .
|
|
1155
|
-
* .
|
|
1156
|
-
* .
|
|
1157
|
-
* .
|
|
1325
|
+
* const config = TeneoSDK.builder()
|
|
1326
|
+
* .withWebSocketUrl('wss://teneo.example.com')
|
|
1327
|
+
* .withAuthentication('0x...')
|
|
1328
|
+
* .withAutoJoinPublicRooms(['public-room-1', 'public-room-2'])
|
|
1329
|
+
* .withLogging('debug')
|
|
1330
|
+
* .withWebhook('https://api.example.com/webhooks')
|
|
1158
1331
|
* .build();
|
|
1332
|
+
* const sdk = new TeneoSDK(config);
|
|
1159
1333
|
*
|
|
1160
1334
|
* await sdk.connect();
|
|
1161
1335
|
* ```
|
package/dist/teneo-sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teneo-sdk.d.ts","sourceRoot":"","sources":["../src/teneo-sdk.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,KAAK,EACL,QAAQ,EAKR,aAAa,EACb,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAIrD,OAAO,EAEL,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAOL,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,eAAe,
|
|
1
|
+
{"version":3,"file":"teneo-sdk.d.ts","sourceRoot":"","sources":["../src/teneo-sdk.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,KAAK,EACL,QAAQ,EAKR,aAAa,EACb,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAIrD,OAAO,EAEL,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAOL,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