@holochain/client 0.19.1 → 0.19.3
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/lib/api/admin/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnsubscribeFunction } from "emittery";
|
|
2
2
|
import { AgentPubKey, InstalledAppId, RoleName } from "../../types.js";
|
|
3
|
-
import { AgentInfoResponse, AgentMetaInfoRequest,
|
|
3
|
+
import { AgentInfoResponse, AgentMetaInfoRequest, AgentMetaInfoResponse, AppInfo, DumpNetworkMetricsRequest, DumpNetworkMetricsResponse, DumpNetworkStatsResponse, MemproofMap } from "../admin/index.js";
|
|
4
4
|
import { WsClient } from "../client.js";
|
|
5
5
|
import { AbandonCountersigningSessionStateRequest, AppAgentInfoRequest, AppClient, AppEvents, AppWebsocketConnectionOptions, CallZomeRequest, CallZomeRequestSigned, CreateCloneCellRequest, DisableCloneCellRequest, EnableCloneCellRequest, GetCountersigningSessionStateRequest, GetCountersigningSessionStateResponse, PublishCountersigningSessionStateRequest, RoleNameCallZomeRequest, SignalCb } from "./types.js";
|
|
6
6
|
/**
|
|
@@ -35,7 +35,6 @@ export declare class AppWebsocket implements AppClient {
|
|
|
35
35
|
/**
|
|
36
36
|
* Instance factory for creating an {@link AppWebsocket}.
|
|
37
37
|
*
|
|
38
|
-
* @param token - A token to authenticate the websocket connection. Get a token using AdminWebsocket#issueAppAuthenticationToken.
|
|
39
38
|
* @param options - {@link (WebsocketConnectionOptions:interface)}
|
|
40
39
|
* @returns A new instance of an AppWebsocket.
|
|
41
40
|
*/
|
|
@@ -51,6 +50,7 @@ export declare class AppWebsocket implements AppClient {
|
|
|
51
50
|
* Request the currently known agents of the app.
|
|
52
51
|
*
|
|
53
52
|
* @param req - An array of DNA hashes or null
|
|
53
|
+
* @param timeout - A timeout to override the default.
|
|
54
54
|
* @returns The app's agent infos as JSON string.
|
|
55
55
|
*/
|
|
56
56
|
agentInfo(req: AppAgentInfoRequest, timeout?: number): Promise<AgentInfoResponse>;
|
|
@@ -58,9 +58,10 @@ export declare class AppWebsocket implements AppClient {
|
|
|
58
58
|
* Request agent meta info for an agent by peer Url.
|
|
59
59
|
*
|
|
60
60
|
* @param req - The peer Url of the agent and an optional array of DNA hashes
|
|
61
|
-
* @
|
|
61
|
+
* @param timeout - A timeout to override the default.
|
|
62
|
+
* @returns The meta info stored for this peer URL.
|
|
62
63
|
*/
|
|
63
|
-
agentMetaInfo(req: AgentMetaInfoRequest, timeout?: number): Promise<
|
|
64
|
+
agentMetaInfo(req: AgentMetaInfoRequest, timeout?: number): Promise<AgentMetaInfoResponse>;
|
|
64
65
|
/**
|
|
65
66
|
* Request network stats.
|
|
66
67
|
*
|
|
@@ -106,14 +107,14 @@ export declare class AppWebsocket implements AppClient {
|
|
|
106
107
|
* @param args - Specify the cell to clone.
|
|
107
108
|
* @returns The created clone cell.
|
|
108
109
|
*/
|
|
109
|
-
createCloneCell(args: CreateCloneCellRequest): Promise<ClonedCell>;
|
|
110
|
+
createCloneCell(args: CreateCloneCellRequest): Promise<import("../admin/types.js").ClonedCell>;
|
|
110
111
|
/**
|
|
111
112
|
* Enable a disabled clone cell.
|
|
112
113
|
*
|
|
113
114
|
* @param args - Specify the clone cell to enable.
|
|
114
115
|
* @returns The enabled clone cell.
|
|
115
116
|
*/
|
|
116
|
-
enableCloneCell(args: EnableCloneCellRequest): Promise<ClonedCell>;
|
|
117
|
+
enableCloneCell(args: EnableCloneCellRequest): Promise<import("../admin/types.js").ClonedCell>;
|
|
117
118
|
/**
|
|
118
119
|
* Disable an enabled clone cell.
|
|
119
120
|
*
|
package/lib/api/app/websocket.js
CHANGED
|
@@ -75,7 +75,6 @@ export class AppWebsocket {
|
|
|
75
75
|
/**
|
|
76
76
|
* Instance factory for creating an {@link AppWebsocket}.
|
|
77
77
|
*
|
|
78
|
-
* @param token - A token to authenticate the websocket connection. Get a token using AdminWebsocket#issueAppAuthenticationToken.
|
|
79
78
|
* @param options - {@link (WebsocketConnectionOptions:interface)}
|
|
80
79
|
* @returns A new instance of an AppWebsocket.
|
|
81
80
|
*/
|
|
@@ -117,21 +116,21 @@ export class AppWebsocket {
|
|
|
117
116
|
* Request the currently known agents of the app.
|
|
118
117
|
*
|
|
119
118
|
* @param req - An array of DNA hashes or null
|
|
119
|
+
* @param timeout - A timeout to override the default.
|
|
120
120
|
* @returns The app's agent infos as JSON string.
|
|
121
121
|
*/
|
|
122
122
|
async agentInfo(req, timeout) {
|
|
123
|
-
|
|
124
|
-
return agentInfos;
|
|
123
|
+
return await this.agentInfoRequester(req, timeout);
|
|
125
124
|
}
|
|
126
125
|
/**
|
|
127
126
|
* Request agent meta info for an agent by peer Url.
|
|
128
127
|
*
|
|
129
128
|
* @param req - The peer Url of the agent and an optional array of DNA hashes
|
|
130
|
-
* @
|
|
129
|
+
* @param timeout - A timeout to override the default.
|
|
130
|
+
* @returns The meta info stored for this peer URL.
|
|
131
131
|
*/
|
|
132
132
|
async agentMetaInfo(req, timeout) {
|
|
133
|
-
|
|
134
|
-
return agentInfos;
|
|
133
|
+
return await this.agentMetaInfoRequester(req, timeout);
|
|
135
134
|
}
|
|
136
135
|
/**
|
|
137
136
|
* Request network stats.
|
package/package.json
CHANGED