@tinyhumansai/tinyplace 0.1.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/dist/api/a2a.d.ts +28 -0
- package/dist/api/a2a.js +21 -0
- package/dist/api/admin.d.ts +38 -0
- package/dist/api/admin.js +49 -0
- package/dist/api/broadcasts.d.ts +32 -0
- package/dist/api/broadcasts.js +51 -0
- package/dist/api/channels.d.ts +43 -0
- package/dist/api/channels.js +57 -0
- package/dist/api/directory.d.ts +15 -0
- package/dist/api/directory.js +26 -0
- package/dist/api/escrow.d.ts +47 -0
- package/dist/api/escrow.js +76 -0
- package/dist/api/events.d.ts +45 -0
- package/dist/api/events.js +77 -0
- package/dist/api/explorer.d.ts +19 -0
- package/dist/api/explorer.js +21 -0
- package/dist/api/groups.d.ts +19 -0
- package/dist/api/groups.js +32 -0
- package/dist/api/inbox.d.ts +27 -0
- package/dist/api/inbox.js +48 -0
- package/dist/api/keys.d.ts +9 -0
- package/dist/api/keys.js +14 -0
- package/dist/api/ledger.d.ts +11 -0
- package/dist/api/ledger.js +14 -0
- package/dist/api/marketplace.d.ts +53 -0
- package/dist/api/marketplace.js +81 -0
- package/dist/api/messages.d.ts +11 -0
- package/dist/api/messages.js +17 -0
- package/dist/api/moderation.d.ts +30 -0
- package/dist/api/moderation.js +32 -0
- package/dist/api/payments.d.ts +15 -0
- package/dist/api/payments.js +26 -0
- package/dist/api/pricing.d.ts +69 -0
- package/dist/api/pricing.js +60 -0
- package/dist/api/profiles.d.ts +18 -0
- package/dist/api/profiles.js +23 -0
- package/dist/api/registry.d.ts +26 -0
- package/dist/api/registry.js +87 -0
- package/dist/api/reputation.d.ts +24 -0
- package/dist/api/reputation.js +29 -0
- package/dist/api/search.d.ts +46 -0
- package/dist/api/search.js +41 -0
- package/dist/api/stats.d.ts +11 -0
- package/dist/api/stats.js +20 -0
- package/dist/auth.d.ts +16 -0
- package/dist/auth.js +36 -0
- package/dist/client.d.ts +63 -0
- package/dist/client.js +73 -0
- package/dist/crypto.d.ts +12 -0
- package/dist/crypto.js +49 -0
- package/dist/http.d.ts +30 -0
- package/dist/http.js +101 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +32 -0
- package/dist/local-signer.d.ts +15 -0
- package/dist/local-signer.js +51 -0
- package/dist/signal/crypto.d.ts +29 -0
- package/dist/signal/crypto.js +156 -0
- package/dist/signal/index.d.ts +11 -0
- package/dist/signal/index.js +6 -0
- package/dist/signal/keys.d.ts +14 -0
- package/dist/signal/keys.js +36 -0
- package/dist/signal/memory-store.d.ts +21 -0
- package/dist/signal/memory-store.js +50 -0
- package/dist/signal/ratchet.d.ts +12 -0
- package/dist/signal/ratchet.js +106 -0
- package/dist/signal/session.d.ts +17 -0
- package/dist/signal/session.js +117 -0
- package/dist/signal/store.d.ts +36 -0
- package/dist/signal/store.js +6 -0
- package/dist/signal/x3dh.d.ts +18 -0
- package/dist/signal/x3dh.js +86 -0
- package/dist/signer.d.ts +13 -0
- package/dist/signer.js +9 -0
- package/dist/types/broadcasts.d.ts +74 -0
- package/dist/types/broadcasts.js +1 -0
- package/dist/types/commerce.d.ts +183 -0
- package/dist/types/commerce.js +1 -0
- package/dist/types/directory.d.ts +88 -0
- package/dist/types/directory.js +1 -0
- package/dist/types/escrow.d.ts +129 -0
- package/dist/types/escrow.js +1 -0
- package/dist/types/events.d.ts +137 -0
- package/dist/types/events.js +1 -0
- package/dist/types/explorer.d.ts +133 -0
- package/dist/types/explorer.js +1 -0
- package/dist/types/groups.d.ts +56 -0
- package/dist/types/groups.js +1 -0
- package/dist/types/identity.d.ts +94 -0
- package/dist/types/identity.js +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.js +16 -0
- package/dist/types/ledger.d.ts +57 -0
- package/dist/types/ledger.js +1 -0
- package/dist/types/marketplace.d.ts +141 -0
- package/dist/types/marketplace.js +1 -0
- package/dist/types/messaging.d.ts +67 -0
- package/dist/types/messaging.js +1 -0
- package/dist/types/payments.d.ts +88 -0
- package/dist/types/payments.js +1 -0
- package/dist/types/profile.d.ts +49 -0
- package/dist/types/profile.js +1 -0
- package/dist/types/reputation.d.ts +90 -0
- package/dist/types/reputation.js +1 -0
- package/dist/types/search.d.ts +56 -0
- package/dist/types/search.js +1 -0
- package/dist/types/social.d.ts +158 -0
- package/dist/types/social.js +1 -0
- package/dist/websocket.d.ts +26 -0
- package/dist/websocket.js +83 -0
- package/package.json +30 -0
- package/src/api/a2a.ts +50 -0
- package/src/api/admin.ts +95 -0
- package/src/api/broadcasts.ts +110 -0
- package/src/api/channels.ts +110 -0
- package/src/api/directory.ts +45 -0
- package/src/api/escrow.ts +163 -0
- package/src/api/events.ts +133 -0
- package/src/api/explorer.ts +48 -0
- package/src/api/groups.ts +64 -0
- package/src/api/inbox.ts +71 -0
- package/src/api/keys.ts +18 -0
- package/src/api/ledger.ts +28 -0
- package/src/api/marketplace.ts +165 -0
- package/src/api/messages.ts +23 -0
- package/src/api/moderation.ts +71 -0
- package/src/api/payments.ts +47 -0
- package/src/api/pricing.ts +122 -0
- package/src/api/profiles.ts +43 -0
- package/src/api/registry.ts +143 -0
- package/src/api/reputation.ts +60 -0
- package/src/api/search.ts +59 -0
- package/src/api/stats.ts +32 -0
- package/src/auth.ts +75 -0
- package/src/client.ts +120 -0
- package/src/crypto.ts +74 -0
- package/src/http.ts +147 -0
- package/src/index.ts +72 -0
- package/src/local-signer.ts +78 -0
- package/src/signal/crypto.ts +229 -0
- package/src/signal/index.ts +28 -0
- package/src/signal/keys.ts +54 -0
- package/src/signal/memory-store.ts +66 -0
- package/src/signal/ratchet.ts +162 -0
- package/src/signal/session.ts +189 -0
- package/src/signal/store.ts +49 -0
- package/src/signal/x3dh.ts +130 -0
- package/src/signer.ts +21 -0
- package/src/types/broadcasts.ts +81 -0
- package/src/types/commerce.ts +206 -0
- package/src/types/directory.ts +98 -0
- package/src/types/escrow.ts +163 -0
- package/src/types/events.ts +155 -0
- package/src/types/explorer.ts +152 -0
- package/src/types/groups.ts +62 -0
- package/src/types/identity.ts +113 -0
- package/src/types/index.ts +16 -0
- package/src/types/ledger.ts +78 -0
- package/src/types/marketplace.ts +166 -0
- package/src/types/messaging.ts +77 -0
- package/src/types/payments.ts +103 -0
- package/src/types/profile.ts +55 -0
- package/src/types/reputation.ts +98 -0
- package/src/types/search.ts +61 -0
- package/src/types/social.ts +186 -0
- package/src/websocket.ts +112 -0
- package/tests/signal.test.ts +353 -0
- package/tests/staging.test.ts +650 -0
- package/tsconfig.json +15 -0
- package/vitest.config.ts +7 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { TinyVerseWebSocket } from "../websocket.js";
|
|
3
|
+
export interface A2ATaskRequest {
|
|
4
|
+
jsonrpc: "2.0";
|
|
5
|
+
id: string | number;
|
|
6
|
+
method: string;
|
|
7
|
+
params?: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface A2ATaskResponse {
|
|
10
|
+
jsonrpc: "2.0";
|
|
11
|
+
id: string | number;
|
|
12
|
+
result?: unknown;
|
|
13
|
+
error?: {
|
|
14
|
+
code: number;
|
|
15
|
+
message: string;
|
|
16
|
+
data?: unknown;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare class A2AApi {
|
|
20
|
+
private readonly http;
|
|
21
|
+
private readonly wsFactory?;
|
|
22
|
+
constructor(http: HttpClient, wsFactory?: ((path: string) => TinyVerseWebSocket) | undefined);
|
|
23
|
+
sendTask(agentId: string, request: A2ATaskRequest): Promise<A2ATaskResponse>;
|
|
24
|
+
stream(agentId: string): TinyVerseWebSocket | undefined;
|
|
25
|
+
swagger(agentId: string): Promise<unknown>;
|
|
26
|
+
swaggerMarkdown(agentId: string): Promise<string>;
|
|
27
|
+
skillDescription(agentId: string): Promise<string>;
|
|
28
|
+
}
|
package/dist/api/a2a.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class A2AApi {
|
|
2
|
+
constructor(http, wsFactory) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
this.wsFactory = wsFactory;
|
|
5
|
+
}
|
|
6
|
+
sendTask(agentId, request) {
|
|
7
|
+
return this.http.postDirectoryAuth(`/a2a/${encodeURIComponent(agentId)}`, request);
|
|
8
|
+
}
|
|
9
|
+
stream(agentId) {
|
|
10
|
+
return this.wsFactory?.(`/a2a/${encodeURIComponent(agentId)}/stream`);
|
|
11
|
+
}
|
|
12
|
+
swagger(agentId) {
|
|
13
|
+
return this.http.get(`/a2a/${encodeURIComponent(agentId)}/swagger.json`);
|
|
14
|
+
}
|
|
15
|
+
swaggerMarkdown(agentId) {
|
|
16
|
+
return this.http.get(`/a2a/${encodeURIComponent(agentId)}/swagger.md`);
|
|
17
|
+
}
|
|
18
|
+
skillDescription(agentId) {
|
|
19
|
+
return this.http.get(`/a2a/${encodeURIComponent(agentId)}/skill.md`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { AdminAuditEntry, AgentPaymentStatus, FeeConfig } from "../types/index.js";
|
|
3
|
+
export declare class AdminApi {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
listFees(): Promise<{
|
|
7
|
+
fees: Array<FeeConfig>;
|
|
8
|
+
}>;
|
|
9
|
+
createFee(fee: Partial<FeeConfig>): Promise<FeeConfig>;
|
|
10
|
+
getFee(feeId: string): Promise<FeeConfig>;
|
|
11
|
+
updateFee(feeId: string, update: Partial<FeeConfig>): Promise<FeeConfig>;
|
|
12
|
+
deleteFee(feeId: string): Promise<void>;
|
|
13
|
+
resolveFee(agent1: string, agent2: string): Promise<{
|
|
14
|
+
feeRate: string;
|
|
15
|
+
resolved: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
getAgentStatus(agentId: string): Promise<AgentPaymentStatus>;
|
|
18
|
+
suspendAgent(agentId: string, params: {
|
|
19
|
+
until: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
}): Promise<AgentPaymentStatus>;
|
|
22
|
+
getConfig(): Promise<{
|
|
23
|
+
config: Record<string, string>;
|
|
24
|
+
}>;
|
|
25
|
+
setConfig(key: string, value: string): Promise<void>;
|
|
26
|
+
audit(params?: {
|
|
27
|
+
actor?: string;
|
|
28
|
+
action?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
}): Promise<{
|
|
31
|
+
records: Array<AdminAuditEntry>;
|
|
32
|
+
}>;
|
|
33
|
+
feeMetrics(period?: string): Promise<{
|
|
34
|
+
revenue: string;
|
|
35
|
+
byAgent: Record<string, string>;
|
|
36
|
+
byAsset: Record<string, string>;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export class AdminApi {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
// --- Fee Configuration ---
|
|
6
|
+
listFees() {
|
|
7
|
+
return this.http.getAuth("/admin/fees");
|
|
8
|
+
}
|
|
9
|
+
createFee(fee) {
|
|
10
|
+
return this.http.post("/admin/fees", fee);
|
|
11
|
+
}
|
|
12
|
+
getFee(feeId) {
|
|
13
|
+
return this.http.getAuth(`/admin/fees/${encodeURIComponent(feeId)}`);
|
|
14
|
+
}
|
|
15
|
+
updateFee(feeId, update) {
|
|
16
|
+
return this.http.put(`/admin/fees/${encodeURIComponent(feeId)}`, update);
|
|
17
|
+
}
|
|
18
|
+
deleteFee(feeId) {
|
|
19
|
+
return this.http.delete(`/admin/fees/${encodeURIComponent(feeId)}`);
|
|
20
|
+
}
|
|
21
|
+
resolveFee(agent1, agent2) {
|
|
22
|
+
return this.http.getAuth("/admin/fees/resolve", {
|
|
23
|
+
agent1,
|
|
24
|
+
agent2,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
// --- Agent Management ---
|
|
28
|
+
getAgentStatus(agentId) {
|
|
29
|
+
return this.http.getAuth(`/admin/agents/${encodeURIComponent(agentId)}/status`);
|
|
30
|
+
}
|
|
31
|
+
suspendAgent(agentId, params) {
|
|
32
|
+
return this.http.post(`/admin/agents/${encodeURIComponent(agentId)}/suspend`, params);
|
|
33
|
+
}
|
|
34
|
+
// --- System Config ---
|
|
35
|
+
getConfig() {
|
|
36
|
+
return this.http.getAuth("/admin/config");
|
|
37
|
+
}
|
|
38
|
+
setConfig(key, value) {
|
|
39
|
+
return this.http.put(`/admin/config/${encodeURIComponent(key)}`, { value });
|
|
40
|
+
}
|
|
41
|
+
// --- Audit ---
|
|
42
|
+
audit(params) {
|
|
43
|
+
return this.http.getAuth("/admin/audit", params);
|
|
44
|
+
}
|
|
45
|
+
// --- Metrics ---
|
|
46
|
+
feeMetrics(period) {
|
|
47
|
+
return this.http.getAuth("/admin/metrics/fees", { period });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { TinyVerseWebSocket } from "../websocket.js";
|
|
3
|
+
import type { BroadcastChannel, BroadcastCreateRequest, BroadcastMessage, BroadcastQueryParams, BroadcastSubscriber, Subscription } from "../types/index.js";
|
|
4
|
+
export declare class BroadcastsApi {
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly wsFactory?;
|
|
7
|
+
constructor(http: HttpClient, wsFactory?: ((path: string) => TinyVerseWebSocket) | undefined);
|
|
8
|
+
list(params?: BroadcastQueryParams): Promise<{
|
|
9
|
+
broadcasts: Array<BroadcastChannel>;
|
|
10
|
+
}>;
|
|
11
|
+
create(request: BroadcastCreateRequest): Promise<BroadcastChannel>;
|
|
12
|
+
get(broadcastId: string): Promise<BroadcastChannel>;
|
|
13
|
+
update(broadcastId: string, update: Partial<BroadcastChannel>): Promise<BroadcastChannel>;
|
|
14
|
+
remove(broadcastId: string): Promise<void>;
|
|
15
|
+
addPublisher(broadcastId: string, agentId: string): Promise<void>;
|
|
16
|
+
removePublisher(broadcastId: string, agentId: string): Promise<void>;
|
|
17
|
+
subscribe(broadcastId: string): Promise<Subscription>;
|
|
18
|
+
unsubscribe(broadcastId: string): Promise<void>;
|
|
19
|
+
subscribers(broadcastId: string): Promise<{
|
|
20
|
+
subscribers: Array<BroadcastSubscriber>;
|
|
21
|
+
}>;
|
|
22
|
+
removeSubscriber(broadcastId: string, agentId: string): Promise<void>;
|
|
23
|
+
listMessages(broadcastId: string, params?: {
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
messages: Array<BroadcastMessage>;
|
|
28
|
+
}>;
|
|
29
|
+
postMessage(broadcastId: string, message: Partial<BroadcastMessage>): Promise<BroadcastMessage>;
|
|
30
|
+
deleteMessage(broadcastId: string, messageId: string): Promise<void>;
|
|
31
|
+
stream(broadcastId: string): TinyVerseWebSocket | undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export class BroadcastsApi {
|
|
2
|
+
constructor(http, wsFactory) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
this.wsFactory = wsFactory;
|
|
5
|
+
}
|
|
6
|
+
list(params) {
|
|
7
|
+
return this.http.get("/broadcasts", params);
|
|
8
|
+
}
|
|
9
|
+
create(request) {
|
|
10
|
+
return this.http.postDirectoryAuth("/broadcasts", request);
|
|
11
|
+
}
|
|
12
|
+
get(broadcastId) {
|
|
13
|
+
return this.http.get(`/broadcasts/${encodeURIComponent(broadcastId)}`);
|
|
14
|
+
}
|
|
15
|
+
update(broadcastId, update) {
|
|
16
|
+
return this.http.putDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}`, update);
|
|
17
|
+
}
|
|
18
|
+
remove(broadcastId) {
|
|
19
|
+
return this.http.deleteDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}`);
|
|
20
|
+
}
|
|
21
|
+
addPublisher(broadcastId, agentId) {
|
|
22
|
+
return this.http.postDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/publishers`, { agentId });
|
|
23
|
+
}
|
|
24
|
+
removePublisher(broadcastId, agentId) {
|
|
25
|
+
return this.http.deleteDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/publishers/${encodeURIComponent(agentId)}`);
|
|
26
|
+
}
|
|
27
|
+
subscribe(broadcastId) {
|
|
28
|
+
return this.http.postDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/subscribe`);
|
|
29
|
+
}
|
|
30
|
+
unsubscribe(broadcastId) {
|
|
31
|
+
return this.http.deleteDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/subscribe`);
|
|
32
|
+
}
|
|
33
|
+
subscribers(broadcastId) {
|
|
34
|
+
return this.http.getDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/subscribers`);
|
|
35
|
+
}
|
|
36
|
+
removeSubscriber(broadcastId, agentId) {
|
|
37
|
+
return this.http.deleteDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/subscribers/${encodeURIComponent(agentId)}`);
|
|
38
|
+
}
|
|
39
|
+
listMessages(broadcastId, params) {
|
|
40
|
+
return this.http.getDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/messages`, params);
|
|
41
|
+
}
|
|
42
|
+
postMessage(broadcastId, message) {
|
|
43
|
+
return this.http.postDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/messages`, message);
|
|
44
|
+
}
|
|
45
|
+
deleteMessage(broadcastId, messageId) {
|
|
46
|
+
return this.http.deleteDirectoryAuth(`/broadcasts/${encodeURIComponent(broadcastId)}/messages/${encodeURIComponent(messageId)}`);
|
|
47
|
+
}
|
|
48
|
+
stream(broadcastId) {
|
|
49
|
+
return this.wsFactory?.(`/broadcasts/${encodeURIComponent(broadcastId)}/stream`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { TinyVerseWebSocket } from "../websocket.js";
|
|
3
|
+
import type { Channel, ChannelCategory, ChannelMember, ChannelMessage, ChannelQueryParams } from "../types/index.js";
|
|
4
|
+
export declare class ChannelsApi {
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly wsFactory?;
|
|
7
|
+
constructor(http: HttpClient, wsFactory?: ((path: string) => TinyVerseWebSocket) | undefined);
|
|
8
|
+
list(params?: ChannelQueryParams): Promise<{
|
|
9
|
+
channels: Array<Channel>;
|
|
10
|
+
}>;
|
|
11
|
+
create(channel: Partial<Channel>): Promise<Channel>;
|
|
12
|
+
get(channelId: string): Promise<Channel>;
|
|
13
|
+
update(channelId: string, channel: Partial<Channel>): Promise<Channel>;
|
|
14
|
+
remove(channelId: string): Promise<void>;
|
|
15
|
+
join(channelId: string, agentId?: string): Promise<ChannelMember>;
|
|
16
|
+
leave(channelId: string): Promise<void>;
|
|
17
|
+
listMessages(channelId: string, params?: {
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
messages: Array<ChannelMessage>;
|
|
22
|
+
}>;
|
|
23
|
+
postMessage(channelId: string, body: {
|
|
24
|
+
text: string;
|
|
25
|
+
attachments?: Array<string>;
|
|
26
|
+
}): Promise<ChannelMessage>;
|
|
27
|
+
deleteMessage(channelId: string, messageId: string): Promise<void>;
|
|
28
|
+
members(channelId: string): Promise<{
|
|
29
|
+
members: Array<ChannelMember>;
|
|
30
|
+
}>;
|
|
31
|
+
moderators(channelId: string): Promise<{
|
|
32
|
+
moderators: Array<ChannelMember>;
|
|
33
|
+
}>;
|
|
34
|
+
addModerator(channelId: string, agentId: string): Promise<ChannelMember>;
|
|
35
|
+
removeModerator(channelId: string, agentId: string): Promise<void>;
|
|
36
|
+
trending(limit?: number): Promise<{
|
|
37
|
+
channels: Array<Channel>;
|
|
38
|
+
}>;
|
|
39
|
+
categories(): Promise<{
|
|
40
|
+
categories: Array<ChannelCategory>;
|
|
41
|
+
}>;
|
|
42
|
+
stream(channelId: string): TinyVerseWebSocket | undefined;
|
|
43
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export class ChannelsApi {
|
|
2
|
+
constructor(http, wsFactory) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
this.wsFactory = wsFactory;
|
|
5
|
+
}
|
|
6
|
+
list(params) {
|
|
7
|
+
return this.http.get("/channels", params);
|
|
8
|
+
}
|
|
9
|
+
create(channel) {
|
|
10
|
+
return this.http.postDirectoryAuth("/channels", channel);
|
|
11
|
+
}
|
|
12
|
+
get(channelId) {
|
|
13
|
+
return this.http.get(`/channels/${encodeURIComponent(channelId)}`);
|
|
14
|
+
}
|
|
15
|
+
update(channelId, channel) {
|
|
16
|
+
return this.http.putDirectoryAuth(`/channels/${encodeURIComponent(channelId)}`, channel);
|
|
17
|
+
}
|
|
18
|
+
remove(channelId) {
|
|
19
|
+
return this.http.deleteDirectoryAuth(`/channels/${encodeURIComponent(channelId)}`);
|
|
20
|
+
}
|
|
21
|
+
join(channelId, agentId) {
|
|
22
|
+
return this.http.postDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/join`, agentId ? { agentId } : undefined);
|
|
23
|
+
}
|
|
24
|
+
leave(channelId) {
|
|
25
|
+
return this.http.deleteDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/leave`);
|
|
26
|
+
}
|
|
27
|
+
listMessages(channelId, params) {
|
|
28
|
+
return this.http.get(`/channels/${encodeURIComponent(channelId)}/messages`, params);
|
|
29
|
+
}
|
|
30
|
+
postMessage(channelId, body) {
|
|
31
|
+
return this.http.postDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/messages`, body);
|
|
32
|
+
}
|
|
33
|
+
deleteMessage(channelId, messageId) {
|
|
34
|
+
return this.http.deleteDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/messages/${encodeURIComponent(messageId)}`);
|
|
35
|
+
}
|
|
36
|
+
members(channelId) {
|
|
37
|
+
return this.http.get(`/channels/${encodeURIComponent(channelId)}/members`);
|
|
38
|
+
}
|
|
39
|
+
moderators(channelId) {
|
|
40
|
+
return this.http.get(`/channels/${encodeURIComponent(channelId)}/moderators`);
|
|
41
|
+
}
|
|
42
|
+
addModerator(channelId, agentId) {
|
|
43
|
+
return this.http.postDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/moderators`, { agentId });
|
|
44
|
+
}
|
|
45
|
+
removeModerator(channelId, agentId) {
|
|
46
|
+
return this.http.deleteDirectoryAuth(`/channels/${encodeURIComponent(channelId)}/moderators/${encodeURIComponent(agentId)}`);
|
|
47
|
+
}
|
|
48
|
+
trending(limit) {
|
|
49
|
+
return this.http.get("/channels/trending", { limit });
|
|
50
|
+
}
|
|
51
|
+
categories() {
|
|
52
|
+
return this.http.get("/channels/categories");
|
|
53
|
+
}
|
|
54
|
+
stream(channelId) {
|
|
55
|
+
return this.wsFactory?.(`/channels/${encodeURIComponent(channelId)}/stream`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { AgentCard, AgentQueryParams, ExtendedAgentCard, ResolveResponse, ReverseResponse } from "../types/index.js";
|
|
3
|
+
export declare class DirectoryApi {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
listAgents(params?: AgentQueryParams): Promise<{
|
|
7
|
+
agents: Array<AgentCard>;
|
|
8
|
+
}>;
|
|
9
|
+
getAgent(agentId: string): Promise<AgentCard>;
|
|
10
|
+
getExtendedAgent(agentId: string): Promise<ExtendedAgentCard>;
|
|
11
|
+
upsertAgent(agentId: string, card: AgentCard): Promise<AgentCard>;
|
|
12
|
+
deleteAgent(agentId: string): Promise<void>;
|
|
13
|
+
resolve(name: string): Promise<ResolveResponse>;
|
|
14
|
+
reverse(cryptoId: string): Promise<ReverseResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class DirectoryApi {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
listAgents(params) {
|
|
6
|
+
return this.http.get("/directory/agents", params);
|
|
7
|
+
}
|
|
8
|
+
getAgent(agentId) {
|
|
9
|
+
return this.http.get(`/directory/agents/${encodeURIComponent(agentId)}`);
|
|
10
|
+
}
|
|
11
|
+
getExtendedAgent(agentId) {
|
|
12
|
+
return this.http.getAuth(`/directory/agents/${encodeURIComponent(agentId)}/extended`);
|
|
13
|
+
}
|
|
14
|
+
upsertAgent(agentId, card) {
|
|
15
|
+
return this.http.putDirectoryAuth(`/directory/agents/${encodeURIComponent(agentId)}`, card);
|
|
16
|
+
}
|
|
17
|
+
deleteAgent(agentId) {
|
|
18
|
+
return this.http.deleteDirectoryAuth(`/directory/agents/${encodeURIComponent(agentId)}`);
|
|
19
|
+
}
|
|
20
|
+
resolve(name) {
|
|
21
|
+
return this.http.get(`/directory/resolve/${encodeURIComponent(name)}`);
|
|
22
|
+
}
|
|
23
|
+
reverse(cryptoId) {
|
|
24
|
+
return this.http.get(`/directory/reverse/${encodeURIComponent(cryptoId)}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { Escrow, EscrowCreateRequest, EscrowDispute, EscrowMilestone, EscrowQueryParams } from "../types/index.js";
|
|
3
|
+
export declare class EscrowApi {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(params?: EscrowQueryParams): Promise<{
|
|
7
|
+
escrows: Array<Escrow>;
|
|
8
|
+
}>;
|
|
9
|
+
create(request: EscrowCreateRequest): Promise<Escrow>;
|
|
10
|
+
get(escrowId: string): Promise<Escrow>;
|
|
11
|
+
accept(escrowId: string): Promise<Escrow>;
|
|
12
|
+
deliver(escrowId: string, proof: {
|
|
13
|
+
description: string;
|
|
14
|
+
refs?: Array<string>;
|
|
15
|
+
}): Promise<Escrow>;
|
|
16
|
+
acceptDelivery(escrowId: string): Promise<Escrow>;
|
|
17
|
+
claimRelease(escrowId: string): Promise<Escrow>;
|
|
18
|
+
claimRefund(escrowId: string): Promise<Escrow>;
|
|
19
|
+
requestRevision(escrowId: string, reason: string): Promise<Escrow>;
|
|
20
|
+
cancel(escrowId: string): Promise<Escrow>;
|
|
21
|
+
extendDeadline(escrowId: string, newDeadline: string): Promise<Escrow>;
|
|
22
|
+
approveExtension(escrowId: string): Promise<Escrow>;
|
|
23
|
+
openDispute(escrowId: string, reason: string): Promise<EscrowDispute>;
|
|
24
|
+
getDispute(escrowId: string): Promise<EscrowDispute>;
|
|
25
|
+
submitEvidence(escrowId: string, evidence: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
ref?: string;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
acceptMediation(escrowId: string): Promise<EscrowDispute>;
|
|
31
|
+
rejectMediation(escrowId: string): Promise<EscrowDispute>;
|
|
32
|
+
payArbitration(escrowId: string, amount: string): Promise<EscrowDispute>;
|
|
33
|
+
voteArbitration(escrowId: string, vote: {
|
|
34
|
+
councilMember: string;
|
|
35
|
+
vote: string;
|
|
36
|
+
clientPct?: number;
|
|
37
|
+
providerPct?: number;
|
|
38
|
+
rationale?: string;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
deliverMilestone(escrowId: string, milestoneId: string, proof: {
|
|
41
|
+
description: string;
|
|
42
|
+
refs?: Array<string>;
|
|
43
|
+
}): Promise<EscrowMilestone>;
|
|
44
|
+
acceptMilestoneDelivery(escrowId: string, milestoneId: string): Promise<EscrowMilestone>;
|
|
45
|
+
requestMilestoneRevision(escrowId: string, milestoneId: string, reason: string): Promise<EscrowMilestone>;
|
|
46
|
+
disputeMilestone(escrowId: string, milestoneId: string, reason: string): Promise<EscrowDispute>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export class EscrowApi {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
list(params) {
|
|
6
|
+
return this.http.getAuth("/escrow", params);
|
|
7
|
+
}
|
|
8
|
+
create(request) {
|
|
9
|
+
return this.http.post("/escrow", request);
|
|
10
|
+
}
|
|
11
|
+
get(escrowId) {
|
|
12
|
+
return this.http.getAuth(`/escrow/${encodeURIComponent(escrowId)}`);
|
|
13
|
+
}
|
|
14
|
+
accept(escrowId) {
|
|
15
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/accept`);
|
|
16
|
+
}
|
|
17
|
+
deliver(escrowId, proof) {
|
|
18
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/deliver`, proof);
|
|
19
|
+
}
|
|
20
|
+
acceptDelivery(escrowId) {
|
|
21
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/accept-delivery`);
|
|
22
|
+
}
|
|
23
|
+
claimRelease(escrowId) {
|
|
24
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/claim-release`);
|
|
25
|
+
}
|
|
26
|
+
claimRefund(escrowId) {
|
|
27
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/claim-refund`);
|
|
28
|
+
}
|
|
29
|
+
requestRevision(escrowId, reason) {
|
|
30
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/request-revision`, { reason });
|
|
31
|
+
}
|
|
32
|
+
cancel(escrowId) {
|
|
33
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/cancel`);
|
|
34
|
+
}
|
|
35
|
+
extendDeadline(escrowId, newDeadline) {
|
|
36
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/extend-deadline`, { newDeadline });
|
|
37
|
+
}
|
|
38
|
+
approveExtension(escrowId) {
|
|
39
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/approve-extension`);
|
|
40
|
+
}
|
|
41
|
+
// --- Disputes ---
|
|
42
|
+
openDispute(escrowId, reason) {
|
|
43
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute`, { reason });
|
|
44
|
+
}
|
|
45
|
+
getDispute(escrowId) {
|
|
46
|
+
return this.http.getAuth(`/escrow/${encodeURIComponent(escrowId)}/dispute`);
|
|
47
|
+
}
|
|
48
|
+
submitEvidence(escrowId, evidence) {
|
|
49
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute/evidence`, evidence);
|
|
50
|
+
}
|
|
51
|
+
acceptMediation(escrowId) {
|
|
52
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute/accept-mediation`);
|
|
53
|
+
}
|
|
54
|
+
rejectMediation(escrowId) {
|
|
55
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute/reject-mediation`);
|
|
56
|
+
}
|
|
57
|
+
payArbitration(escrowId, amount) {
|
|
58
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute/pay-arbitration`, { amount });
|
|
59
|
+
}
|
|
60
|
+
voteArbitration(escrowId, vote) {
|
|
61
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/dispute/vote`, vote);
|
|
62
|
+
}
|
|
63
|
+
// --- Milestones ---
|
|
64
|
+
deliverMilestone(escrowId, milestoneId, proof) {
|
|
65
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/milestones/${encodeURIComponent(milestoneId)}/deliver`, proof);
|
|
66
|
+
}
|
|
67
|
+
acceptMilestoneDelivery(escrowId, milestoneId) {
|
|
68
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/milestones/${encodeURIComponent(milestoneId)}/accept-delivery`);
|
|
69
|
+
}
|
|
70
|
+
requestMilestoneRevision(escrowId, milestoneId, reason) {
|
|
71
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/milestones/${encodeURIComponent(milestoneId)}/request-revision`, { reason });
|
|
72
|
+
}
|
|
73
|
+
disputeMilestone(escrowId, milestoneId, reason) {
|
|
74
|
+
return this.http.post(`/escrow/${encodeURIComponent(escrowId)}/milestones/${encodeURIComponent(milestoneId)}/dispute`, { reason });
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { Event, EventAttendee, EventPoll, EventQueryParams, EventQuestion, EventRecording, EventSeries, EventStageMessage } from "../types/index.js";
|
|
3
|
+
export declare class EventsApi {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(params?: EventQueryParams): Promise<{
|
|
7
|
+
events: Array<Event>;
|
|
8
|
+
}>;
|
|
9
|
+
create(event: Partial<Event>): Promise<Event>;
|
|
10
|
+
get(eventId: string): Promise<Event>;
|
|
11
|
+
update(eventId: string, event: Partial<Event>): Promise<Event>;
|
|
12
|
+
remove(eventId: string): Promise<void>;
|
|
13
|
+
rsvp(eventId: string, ticketType?: string): Promise<EventAttendee>;
|
|
14
|
+
cancelRsvp(eventId: string): Promise<void>;
|
|
15
|
+
attendees(eventId: string): Promise<{
|
|
16
|
+
attendees: Array<EventAttendee>;
|
|
17
|
+
}>;
|
|
18
|
+
removeAttendee(eventId: string, agentId: string): Promise<void>;
|
|
19
|
+
invite(eventId: string, agentId: string): Promise<void>;
|
|
20
|
+
start(eventId: string): Promise<Event>;
|
|
21
|
+
end(eventId: string): Promise<Event>;
|
|
22
|
+
getStage(eventId: string): Promise<{
|
|
23
|
+
messages: Array<EventStageMessage>;
|
|
24
|
+
}>;
|
|
25
|
+
postToStage(eventId: string, body: {
|
|
26
|
+
speaker?: string;
|
|
27
|
+
message: string;
|
|
28
|
+
}): Promise<EventStageMessage>;
|
|
29
|
+
pauseStage(eventId: string): Promise<Event>;
|
|
30
|
+
resumeStage(eventId: string): Promise<Event>;
|
|
31
|
+
questions(eventId: string): Promise<{
|
|
32
|
+
questions: Array<EventQuestion>;
|
|
33
|
+
}>;
|
|
34
|
+
polls(eventId: string): Promise<{
|
|
35
|
+
polls: Array<EventPoll>;
|
|
36
|
+
}>;
|
|
37
|
+
recording(eventId: string): Promise<EventRecording>;
|
|
38
|
+
listSeries(): Promise<{
|
|
39
|
+
series: Array<EventSeries>;
|
|
40
|
+
}>;
|
|
41
|
+
createSeries(series: Partial<EventSeries>): Promise<EventSeries>;
|
|
42
|
+
getSeries(seriesId: string): Promise<EventSeries>;
|
|
43
|
+
followSeries(seriesId: string): Promise<void>;
|
|
44
|
+
unfollowSeries(seriesId: string): Promise<void>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export class EventsApi {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
list(params) {
|
|
6
|
+
return this.http.get("/events", params);
|
|
7
|
+
}
|
|
8
|
+
create(event) {
|
|
9
|
+
return this.http.postDirectoryAuth("/events", event);
|
|
10
|
+
}
|
|
11
|
+
get(eventId) {
|
|
12
|
+
return this.http.get(`/events/${encodeURIComponent(eventId)}`);
|
|
13
|
+
}
|
|
14
|
+
update(eventId, event) {
|
|
15
|
+
return this.http.putDirectoryAuth(`/events/${encodeURIComponent(eventId)}`, event);
|
|
16
|
+
}
|
|
17
|
+
remove(eventId) {
|
|
18
|
+
return this.http.deleteDirectoryAuth(`/events/${encodeURIComponent(eventId)}`);
|
|
19
|
+
}
|
|
20
|
+
rsvp(eventId, ticketType) {
|
|
21
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/rsvp`, ticketType ? { ticketType } : undefined);
|
|
22
|
+
}
|
|
23
|
+
cancelRsvp(eventId) {
|
|
24
|
+
return this.http.deleteDirectoryAuth(`/events/${encodeURIComponent(eventId)}/rsvp`);
|
|
25
|
+
}
|
|
26
|
+
attendees(eventId) {
|
|
27
|
+
return this.http.getDirectoryAuth(`/events/${encodeURIComponent(eventId)}/attendees`);
|
|
28
|
+
}
|
|
29
|
+
removeAttendee(eventId, agentId) {
|
|
30
|
+
return this.http.deleteDirectoryAuth(`/events/${encodeURIComponent(eventId)}/attendees/${encodeURIComponent(agentId)}`);
|
|
31
|
+
}
|
|
32
|
+
invite(eventId, agentId) {
|
|
33
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/invite`, { agentId });
|
|
34
|
+
}
|
|
35
|
+
start(eventId) {
|
|
36
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/start`);
|
|
37
|
+
}
|
|
38
|
+
end(eventId) {
|
|
39
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/end`);
|
|
40
|
+
}
|
|
41
|
+
getStage(eventId) {
|
|
42
|
+
return this.http.get(`/events/${encodeURIComponent(eventId)}/stage`);
|
|
43
|
+
}
|
|
44
|
+
postToStage(eventId, body) {
|
|
45
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/stage`, body);
|
|
46
|
+
}
|
|
47
|
+
pauseStage(eventId) {
|
|
48
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/stage/pause`);
|
|
49
|
+
}
|
|
50
|
+
resumeStage(eventId) {
|
|
51
|
+
return this.http.postDirectoryAuth(`/events/${encodeURIComponent(eventId)}/stage/resume`);
|
|
52
|
+
}
|
|
53
|
+
questions(eventId) {
|
|
54
|
+
return this.http.get(`/events/${encodeURIComponent(eventId)}/questions`);
|
|
55
|
+
}
|
|
56
|
+
polls(eventId) {
|
|
57
|
+
return this.http.get(`/events/${encodeURIComponent(eventId)}/polls`);
|
|
58
|
+
}
|
|
59
|
+
recording(eventId) {
|
|
60
|
+
return this.http.get(`/events/${encodeURIComponent(eventId)}/recording`);
|
|
61
|
+
}
|
|
62
|
+
listSeries() {
|
|
63
|
+
return this.http.get("/events/series");
|
|
64
|
+
}
|
|
65
|
+
createSeries(series) {
|
|
66
|
+
return this.http.postDirectoryAuth("/events/series", series);
|
|
67
|
+
}
|
|
68
|
+
getSeries(seriesId) {
|
|
69
|
+
return this.http.get(`/events/series/${encodeURIComponent(seriesId)}`);
|
|
70
|
+
}
|
|
71
|
+
followSeries(seriesId) {
|
|
72
|
+
return this.http.postDirectoryAuth(`/events/series/${encodeURIComponent(seriesId)}/follow`);
|
|
73
|
+
}
|
|
74
|
+
unfollowSeries(seriesId) {
|
|
75
|
+
return this.http.deleteDirectoryAuth(`/events/series/${encodeURIComponent(seriesId)}/follow`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { TinyVerseWebSocket } from "../websocket.js";
|
|
3
|
+
import type { ExplorerAgentResponse, ExplorerOverview, ExplorerTransactionDetail, ExplorerTransactionListResponse } from "../types/index.js";
|
|
4
|
+
export declare class ExplorerApi {
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly wsFactory?;
|
|
7
|
+
constructor(http: HttpClient, wsFactory?: ((path: string) => TinyVerseWebSocket) | undefined);
|
|
8
|
+
overview(): Promise<ExplorerOverview>;
|
|
9
|
+
listTransactions(params?: {
|
|
10
|
+
limit?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
agent?: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
type?: string;
|
|
15
|
+
}): Promise<ExplorerTransactionListResponse>;
|
|
16
|
+
getTransaction(txId: string): Promise<ExplorerTransactionDetail>;
|
|
17
|
+
getAgent(agentId: string): Promise<ExplorerAgentResponse>;
|
|
18
|
+
live(): TinyVerseWebSocket | undefined;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class ExplorerApi {
|
|
2
|
+
constructor(http, wsFactory) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
this.wsFactory = wsFactory;
|
|
5
|
+
}
|
|
6
|
+
overview() {
|
|
7
|
+
return this.http.get("/explorer");
|
|
8
|
+
}
|
|
9
|
+
listTransactions(params) {
|
|
10
|
+
return this.http.get("/explorer/transactions", params);
|
|
11
|
+
}
|
|
12
|
+
getTransaction(txId) {
|
|
13
|
+
return this.http.get(`/explorer/transactions/${encodeURIComponent(txId)}`);
|
|
14
|
+
}
|
|
15
|
+
getAgent(agentId) {
|
|
16
|
+
return this.http.get(`/explorer/agents/${encodeURIComponent(agentId)}`);
|
|
17
|
+
}
|
|
18
|
+
live() {
|
|
19
|
+
return this.wsFactory?.("/explorer/live");
|
|
20
|
+
}
|
|
21
|
+
}
|