@holochain/client 0.20.0-dev.2 → 0.20.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/lib/api/admin/types.d.ts
CHANGED
|
@@ -344,25 +344,6 @@ export interface CellProvisioning {
|
|
|
344
344
|
strategy: CellProvisioningStrategy;
|
|
345
345
|
deferred?: boolean;
|
|
346
346
|
}
|
|
347
|
-
/**
|
|
348
|
-
* @public
|
|
349
|
-
*/
|
|
350
|
-
export type Location = {
|
|
351
|
-
/**
|
|
352
|
-
* Expect file to be part of this bundle
|
|
353
|
-
*/
|
|
354
|
-
bundled: string;
|
|
355
|
-
} | {
|
|
356
|
-
/**
|
|
357
|
-
* Get file from local filesystem (not bundled)
|
|
358
|
-
*/
|
|
359
|
-
path: string;
|
|
360
|
-
} | {
|
|
361
|
-
/**
|
|
362
|
-
* Get file from URL
|
|
363
|
-
*/
|
|
364
|
-
url: string;
|
|
365
|
-
};
|
|
366
347
|
/**
|
|
367
348
|
* @public
|
|
368
349
|
*/
|
|
@@ -379,10 +360,11 @@ export type DnaVersionFlexible = {
|
|
|
379
360
|
* @public
|
|
380
361
|
*/
|
|
381
362
|
export type AppRoleDnaManifest = {
|
|
382
|
-
|
|
363
|
+
path?: string;
|
|
383
364
|
modifiers?: Partial<DnaModifiers>;
|
|
384
|
-
|
|
385
|
-
|
|
365
|
+
installed_hash?: DnaHash;
|
|
366
|
+
clone_limit?: number;
|
|
367
|
+
};
|
|
386
368
|
/**
|
|
387
369
|
* @public
|
|
388
370
|
*/
|
|
@@ -395,7 +377,7 @@ export type AppRoleManifest = {
|
|
|
395
377
|
* @public
|
|
396
378
|
*/
|
|
397
379
|
export type AppManifest = {
|
|
398
|
-
manifest_version:
|
|
380
|
+
manifest_version: "0";
|
|
399
381
|
name: string;
|
|
400
382
|
description?: string;
|
|
401
383
|
roles: Array<AppRoleManifest>;
|
|
@@ -662,10 +644,6 @@ export type InstallAppDnaPayload = {
|
|
|
662
644
|
role_name: RoleName;
|
|
663
645
|
membrane_proof?: MembraneProof;
|
|
664
646
|
};
|
|
665
|
-
/**
|
|
666
|
-
* @public
|
|
667
|
-
*/
|
|
668
|
-
export type ZomeLocation = Location;
|
|
669
647
|
/**
|
|
670
648
|
* @public
|
|
671
649
|
*/
|
|
@@ -677,9 +655,10 @@ export interface ZomeDependency {
|
|
|
677
655
|
*/
|
|
678
656
|
export type ZomeManifest = {
|
|
679
657
|
name: string;
|
|
658
|
+
path: string;
|
|
680
659
|
hash?: string;
|
|
681
660
|
dependencies?: ZomeDependency[];
|
|
682
|
-
}
|
|
661
|
+
};
|
|
683
662
|
/**
|
|
684
663
|
* @public
|
|
685
664
|
*/
|
|
@@ -708,9 +687,9 @@ export type CoordinatorSource = {
|
|
|
708
687
|
*/
|
|
709
688
|
export type DnaManifest = {
|
|
710
689
|
/**
|
|
711
|
-
*
|
|
690
|
+
* No finalized version yet, hence only "0" is supported.
|
|
712
691
|
*/
|
|
713
|
-
manifest_version:
|
|
692
|
+
manifest_version: "0";
|
|
714
693
|
/**
|
|
715
694
|
* The friendly "name" of a Holochain DNA.
|
|
716
695
|
*/
|
|
@@ -899,6 +878,34 @@ export interface IssueAppAuthenticationTokenResponse {
|
|
|
899
878
|
* @public
|
|
900
879
|
*/
|
|
901
880
|
export type DumpNetworkStatsRequest = void;
|
|
881
|
+
export interface ApiTransportStats {
|
|
882
|
+
/**
|
|
883
|
+
* Stats from the configured transport implementation.
|
|
884
|
+
*/
|
|
885
|
+
transport_stats: TransportStats;
|
|
886
|
+
/**
|
|
887
|
+
* Blocked message counts.
|
|
888
|
+
*/
|
|
889
|
+
blocked_message_counts: Record<Url, Record<SpaceId, MessageBlockCount>>;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Peer Url
|
|
893
|
+
*/
|
|
894
|
+
type Url = string;
|
|
895
|
+
/**
|
|
896
|
+
* kitsune2 space id
|
|
897
|
+
*/
|
|
898
|
+
type SpaceId = string;
|
|
899
|
+
export interface MessageBlockCount {
|
|
900
|
+
/**
|
|
901
|
+
* Count of incoming messages that have been blocked and dropped.
|
|
902
|
+
*/
|
|
903
|
+
incoming: number;
|
|
904
|
+
/**
|
|
905
|
+
* Count of outgoing messages that have been blocked and dropped.
|
|
906
|
+
*/
|
|
907
|
+
outgoing: number;
|
|
908
|
+
}
|
|
902
909
|
/**
|
|
903
910
|
* Stats for a transport connection.
|
|
904
911
|
*
|
|
@@ -960,7 +967,11 @@ export interface TransportConnectionStats {
|
|
|
960
967
|
/**
|
|
961
968
|
* @public
|
|
962
969
|
*/
|
|
963
|
-
export type DumpNetworkStatsResponse =
|
|
970
|
+
export type DumpNetworkStatsResponse = ApiTransportStats;
|
|
971
|
+
/**
|
|
972
|
+
* @public
|
|
973
|
+
*/
|
|
974
|
+
export type AppDumpNetworkStatsResponse = TransportStats;
|
|
964
975
|
/**
|
|
965
976
|
* Arguments for dumping network metrics.
|
|
966
977
|
*
|
|
@@ -1188,3 +1199,4 @@ export interface AdminApi {
|
|
|
1188
1199
|
issueAppAuthenticationToken: Requester<IssueAppAuthenticationTokenRequest, IssueAppAuthenticationTokenResponse>;
|
|
1189
1200
|
dumpNetworkStats: Requester<DumpNetworkStatsRequest, DumpNetworkStatsResponse>;
|
|
1190
1201
|
}
|
|
1202
|
+
export {};
|
package/lib/api/app/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnsubscribeFunction } from "emittery";
|
|
2
|
-
import { AgentPubKey, AppAuthenticationToken, AppInfo, CapSecret, CellId, ClonedCell, DnaHash, DnaProperties, EntryHash, FunctionName, InstalledAppId, MembraneProof, MemproofMap, NetworkSeed, Nonce256Bit, RoleName, Timestamp, Transformer, WebsocketConnectionOptions, ZomeName, PreflightRequest, SignedAction, SignedActionHashed,
|
|
2
|
+
import { AgentPubKey, AppAuthenticationToken, AppInfo, CapSecret, CellId, ClonedCell, DnaHash, DnaProperties, EntryHash, FunctionName, InstalledAppId, MembraneProof, MemproofMap, NetworkSeed, Nonce256Bit, RoleName, Timestamp, Transformer, WebsocketConnectionOptions, ZomeName, PreflightRequest, SignedAction, SignedActionHashed, AppDumpNetworkStatsResponse, DumpNetworkMetricsResponse, DumpNetworkMetricsRequest } from "../../index.js";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -407,7 +407,7 @@ export interface AppClient {
|
|
|
407
407
|
appInfo(): Promise<AppInfoResponse>;
|
|
408
408
|
myPubKey: AgentPubKey;
|
|
409
409
|
installedAppId: InstalledAppId;
|
|
410
|
-
dumpNetworkStats(): Promise<
|
|
410
|
+
dumpNetworkStats(): Promise<AppDumpNetworkStatsResponse>;
|
|
411
411
|
dumpNetworkMetrics(args: DumpNetworkMetricsRequest): Promise<DumpNetworkMetricsResponse>;
|
|
412
412
|
createCloneCell(args: CreateCloneCellRequest): Promise<CreateCloneCellResponse>;
|
|
413
413
|
enableCloneCell(args: EnableCloneCellRequest): Promise<EnableCloneCellResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnsubscribeFunction } from "emittery";
|
|
2
2
|
import { AgentPubKey, InstalledAppId, RoleName } from "../../types.js";
|
|
3
|
-
import { AgentInfoRequest, AgentInfoResponse, PeerMetaInfoRequest, PeerMetaInfoResponse, AppInfo, DumpNetworkMetricsRequest, DumpNetworkMetricsResponse,
|
|
3
|
+
import { AgentInfoRequest, AgentInfoResponse, PeerMetaInfoRequest, PeerMetaInfoResponse, AppInfo, DumpNetworkMetricsRequest, DumpNetworkMetricsResponse, AppDumpNetworkStatsResponse, MemproofMap } from "../admin/index.js";
|
|
4
4
|
import { WsClient } from "../client.js";
|
|
5
5
|
import { AbandonCountersigningSessionStateRequest, AppClient, AppEvents, AppWebsocketConnectionOptions, CallZomeRequest, CallZomeRequestSigned, CreateCloneCellRequest, DisableCloneCellRequest, EnableCloneCellRequest, GetCountersigningSessionStateRequest, GetCountersigningSessionStateResponse, PublishCountersigningSessionStateRequest, RoleNameCallZomeRequest, SignalCb } from "./types.js";
|
|
6
6
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class AppWebsocket implements AppClient {
|
|
|
67
67
|
*
|
|
68
68
|
* @returns The conductor's {@link TransportStats}.
|
|
69
69
|
*/
|
|
70
|
-
dumpNetworkStats(timeout?: number): Promise<
|
|
70
|
+
dumpNetworkStats(timeout?: number): Promise<AppDumpNetworkStatsResponse>;
|
|
71
71
|
/**
|
|
72
72
|
* Request network metrics.
|
|
73
73
|
*
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED