@ddd-qc/agent-directory 6.13.0 → 6.33.2
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/{agent_directory.zvm.d.ts → agentDirectory.zvm.d.ts} +3 -2
- package/dist/{agent_directory.zvm.js → agentDirectory.zvm.js} +4 -2
- package/dist/agentDirectory.zvm.js.map +1 -0
- package/dist/bindings/{agent_directory.fn.d.ts → agentDirectory.fn.d.ts} +1 -1
- package/dist/bindings/{agent_directory.fn.js → agentDirectory.fn.js} +3 -3
- package/dist/bindings/agentDirectory.fn.js.map +1 -0
- package/dist/bindings/{agent_directory.integrity.d.ts → agentDirectory.integrity.d.ts} +0 -0
- package/dist/bindings/{agent_directory.integrity.js → agentDirectory.integrity.js} +1 -1
- package/dist/bindings/agentDirectory.integrity.js.map +1 -0
- package/dist/bindings/{agent_directory.proxy.d.ts → agentDirectory.proxy.d.ts} +3 -2
- package/dist/bindings/{agent_directory.proxy.js → agentDirectory.proxy.js} +5 -4
- package/dist/bindings/agentDirectory.proxy.js.map +1 -0
- package/dist/bindings/{agent_directory.types.d.ts → agentDirectory.types.d.ts} +1 -1
- package/dist/bindings/{agent_directory.types.js → agentDirectory.types.js} +2 -2
- package/dist/bindings/agentDirectory.types.js.map +1 -0
- package/dist/elements/agent-directory-list.d.ts +2 -2
- package/dist/elements/agent-directory-list.js +1 -1
- package/dist/elements/agent-directory-list.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/agent_directory.zvm.js.map +0 -1
- package/dist/bindings/agent_directory.fn.js.map +0 -1
- package/dist/bindings/agent_directory.integrity.js.map +0 -1
- package/dist/bindings/agent_directory.proxy.js.map +0 -1
- package/dist/bindings/agent_directory.types.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ZomeViewModel, AgentId } from "@ddd-qc/lit-happ";
|
|
2
|
-
import { AgentDirectoryProxy } from "./bindings/
|
|
3
|
-
/** */
|
|
2
|
+
import { AgentDirectoryProxy } from "./bindings/agentDirectory.proxy";
|
|
3
|
+
/** Perspective */
|
|
4
4
|
export interface AgentDirectoryPerspective {
|
|
5
5
|
agents: AgentId[];
|
|
6
6
|
}
|
|
7
7
|
/** */
|
|
8
8
|
export declare class AgentDirectoryZvm extends ZomeViewModel {
|
|
9
|
+
/** -- ZVM Boilerplate -- */
|
|
9
10
|
static readonly ZOME_PROXY: typeof AgentDirectoryProxy;
|
|
10
11
|
get zomeProxy(): AgentDirectoryProxy;
|
|
11
12
|
/** -- Fields -- */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZomeViewModel, AgentId } from "@ddd-qc/lit-happ";
|
|
2
|
-
import { AgentDirectoryProxy } from "./bindings/
|
|
2
|
+
import { AgentDirectoryProxy } from "./bindings/agentDirectory.proxy";
|
|
3
3
|
/** */
|
|
4
4
|
export class AgentDirectoryZvm extends ZomeViewModel {
|
|
5
5
|
constructor() {
|
|
@@ -27,10 +27,12 @@ export class AgentDirectoryZvm extends ZomeViewModel {
|
|
|
27
27
|
}
|
|
28
28
|
/** */
|
|
29
29
|
async probeRegisteredAgents() {
|
|
30
|
+
console.log("AgentDirectoryZvm.probeRegisteredAgents()");
|
|
30
31
|
let agents = await this.zomeProxy.getRegisteredAgents();
|
|
31
32
|
this._agents = agents.map((agentKey) => new AgentId(agentKey));
|
|
32
33
|
this.notifySubscribers();
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
/** -- ZVM Boilerplate -- */
|
|
35
37
|
AgentDirectoryZvm.ZOME_PROXY = AgentDirectoryProxy;
|
|
36
|
-
//# sourceMappingURL=
|
|
38
|
+
//# sourceMappingURL=agentDirectory.zvm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentDirectory.zvm.js","sourceRoot":"","sources":["../src/agentDirectory.zvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AAOpE,MAAM;AACN,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAApD;;QASE,mBAAmB;QAEX,YAAO,GAAc,EAAE,CAAC;IA2BlC,CAAC;IAjCC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAiC,CAAC;IAChD,CAAC;IAMD,oBAAoB;IAEpB,KAAK;IACL,IAAI,WAAW;QACb,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAA;IAC/B,CAAC;IAED,MAAM;IACI,UAAU;QAClB,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAAE,OAAO,IAAI,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,oBAAkD,CAAC,MAAM,CAAC,CAAA;IACpI,CAAC;IAED,MAAM;IACN,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;IACpC,CAAC;IAED,MAAM;IACN,KAAK,CAAC,qBAAqB;QACzB,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;QACzD,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,iBAAiB,EAAE,CAAA;IAC1B,CAAC;;AAnCD,4BAA4B;AACZ,4BAAU,GAAG,mBAAmB,AAAtB,CAAuB","sourcesContent":["import {ZomeViewModel, AgentId} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryProxy} from \"./bindings/agentDirectory.proxy\";\n\n/** Perspective */\nexport interface AgentDirectoryPerspective {\n agents: AgentId[],\n}\n\n/** */\nexport class AgentDirectoryZvm extends ZomeViewModel {\n\n /** -- ZVM Boilerplate -- */\n static readonly ZOME_PROXY = AgentDirectoryProxy;\n\n get zomeProxy(): AgentDirectoryProxy {\n return this._zomeProxy as AgentDirectoryProxy;\n }\n\n /** -- Fields -- */\n\n private _agents: AgentId[] = [];\n\n /** -- Methods -- */\n\n /* */\n get perspective(): AgentDirectoryPerspective {\n return {agents: this._agents}\n }\n\n /** */\n protected hasChanged(): boolean {\n if (!this._previousPerspective) return true;\n return JSON.stringify(this.perspective.agents) !== JSON.stringify((this._previousPerspective as AgentDirectoryPerspective).agents)\n }\n\n /** */\n async probeAllInner(): Promise<void> {\n await this.probeRegisteredAgents()\n }\n\n /** */\n async probeRegisteredAgents() {\n console.log(\"AgentDirectoryZvm.probeRegisteredAgents()\");\n let agents = await this.zomeProxy.getRegisteredAgents();\n this._agents = agents.map((agentKey) => new AgentId(agentKey));\n this.notifySubscribers()\n }\n}\n"]}
|
|
@@ -3,5 +3,5 @@ import { ZomeName, FunctionName } from '@holochain/client';
|
|
|
3
3
|
export declare const agentDirectoryFunctionNames: FunctionName[];
|
|
4
4
|
/** Generate tuple array of function names with given zomeName */
|
|
5
5
|
export declare function generateAgentDirectoryZomeFunctionsArray(zomeName: ZomeName): [ZomeName, FunctionName][];
|
|
6
|
-
/** Tuple array of all zome function names with default zome name "
|
|
6
|
+
/** Tuple array of all zome function names with default zome name "agentDirectory" */
|
|
7
7
|
export declare const agentDirectoryZomeFunctions: [ZomeName, FunctionName][];
|
|
@@ -14,6 +14,6 @@ export function generateAgentDirectoryZomeFunctionsArray(zomeName) {
|
|
|
14
14
|
}
|
|
15
15
|
return fns;
|
|
16
16
|
}
|
|
17
|
-
/** Tuple array of all zome function names with default zome name "
|
|
18
|
-
export const agentDirectoryZomeFunctions = generateAgentDirectoryZomeFunctionsArray("
|
|
19
|
-
//# sourceMappingURL=
|
|
17
|
+
/** Tuple array of all zome function names with default zome name "agentDirectory" */
|
|
18
|
+
export const agentDirectoryZomeFunctions = generateAgentDirectoryZomeFunctionsArray("agentDirectory");
|
|
19
|
+
//# sourceMappingURL=agentDirectory.fn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentDirectory.fn.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.fn.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAK1D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAAmB;IAC1D,YAAY;IACZ,eAAe;IACf,cAAc;IACd,uBAAuB;CACvB,CAAC;AAGF,iEAAiE;AACjE,MAAM,UAAU,wCAAwC,CAAC,QAAkB;IACxE,MAAM,GAAG,GAA+B,EAAE,CAAC;IAC3C,KAAK,MAAM,EAAE,IAAI,2BAA2B,EAAE;QAC3C,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;KAC3B;IACD,OAAO,GAAG,CAAC;AACd,CAAC;AAGD,qFAAqF;AACrF,MAAM,CAAC,MAAM,2BAA2B,GAA+B,wCAAwC,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {ZomeName, FunctionName} from '@holochain/client';\n\n\n/** Array of all zome function names in \"agentDirectory\" */\nexport const agentDirectoryFunctionNames: FunctionName[] = [\n\t\"entry_defs\", \n\t\"get_zome_info\", \n\t\"get_dna_info\",\n\t\"get_registered_agents\",\n];\n\n\n/** Generate tuple array of function names with given zomeName */\nexport function generateAgentDirectoryZomeFunctionsArray(zomeName: ZomeName): [ZomeName, FunctionName][] {\n const fns: [ZomeName, FunctionName][] = [];\n for (const fn of agentDirectoryFunctionNames) {\n fns.push([zomeName, fn]);\n }\n return fns;\n}\n\n\n/** Tuple array of all zome function names with default zome name \"agentDirectory\" */\nexport const agentDirectoryZomeFunctions: [ZomeName, FunctionName][] = generateAgentDirectoryZomeFunctionsArray(\"agentDirectory\");\n"]}
|
|
File without changes
|
|
@@ -8,4 +8,4 @@ export var AgentDirectoryUnitEnum;
|
|
|
8
8
|
(function (AgentDirectoryUnitEnum) {
|
|
9
9
|
AgentDirectoryUnitEnum["Stub"] = "Stub";
|
|
10
10
|
})(AgentDirectoryUnitEnum || (AgentDirectoryUnitEnum = {}));
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=agentDirectory.integrity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentDirectory.integrity.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.integrity.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAG1D,2CAA2C;AAC3C,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,yCAAe,CAAA;AAChB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AACD,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,uCAAa,CAAA;AACd,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n\n/** All link types specific to this Zome */\nexport enum AgentDirectoryLinkType {\n\tAgent = 'Agent',\n}\nexport enum AgentDirectoryUnitEnum {\n\tStub = 'Stub',\n}\n"]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
type AgentArray = Uint8Array;
|
|
2
2
|
import { ZomeProxy } from '@ddd-qc/lit-happ';
|
|
3
|
-
import { AgentDirectoryUnitEnum
|
|
3
|
+
import { AgentDirectoryUnitEnum } from './agentDirectory.integrity';
|
|
4
|
+
import { AgentDirectoryLinkType } from './agentDirectory.integrity';
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
*/
|
|
7
8
|
export declare class AgentDirectoryProxy extends ZomeProxy {
|
|
8
|
-
static readonly DEFAULT_ZOME_NAME = "
|
|
9
|
+
static readonly DEFAULT_ZOME_NAME = "agentDirectory";
|
|
9
10
|
static readonly FN_NAMES: string[];
|
|
10
11
|
static readonly ENTRY_TYPES: AgentDirectoryUnitEnum.Stub[];
|
|
11
12
|
static readonly LINK_TYPES: AgentDirectoryLinkType.Agent[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* This file is generated by zits. Do not edit manually */
|
|
2
2
|
import { ZomeProxy } from '@ddd-qc/lit-happ';
|
|
3
|
-
import { agentDirectoryFunctionNames } from './
|
|
4
|
-
import { AgentDirectoryUnitEnum
|
|
3
|
+
import { agentDirectoryFunctionNames } from './agentDirectory.fn';
|
|
4
|
+
import { AgentDirectoryUnitEnum } from './agentDirectory.integrity';
|
|
5
|
+
import { AgentDirectoryLinkType } from './agentDirectory.integrity';
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
*/
|
|
@@ -10,8 +11,8 @@ export class AgentDirectoryProxy extends ZomeProxy {
|
|
|
10
11
|
return this.call('get_registered_agents', null);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
AgentDirectoryProxy.DEFAULT_ZOME_NAME = "
|
|
14
|
+
AgentDirectoryProxy.DEFAULT_ZOME_NAME = "agentDirectory";
|
|
14
15
|
AgentDirectoryProxy.FN_NAMES = agentDirectoryFunctionNames;
|
|
15
16
|
AgentDirectoryProxy.ENTRY_TYPES = Object.values(AgentDirectoryUnitEnum);
|
|
16
17
|
AgentDirectoryProxy.LINK_TYPES = Object.values(AgentDirectoryLinkType);
|
|
17
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=agentDirectory.proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentDirectory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAoF1D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAMhD,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;;AAPwB,qCAAiB,GAAG,gBAAgB,CAAC;AACrC,4BAAQ,GAAG,2BAA2B,CAAC;AACvC,+BAAW,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACpD,8BAAU,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {AGENT_DIRECTORY_PATH, AgentDirectoryEntry, Stub, } from './agentDirectory.types';\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, CapGrantInfo, PeerMetaInfo, DisabledAppReason, AppStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile,\n/** entry */\n// @ts-ignore\nEntryDefLocation, EntryDefLocationType, AppEntryDefLocation, GetOptions, GetStrategy,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\nimport {ZomeProxy} from '@ddd-qc/lit-happ';\nimport {agentDirectoryFunctionNames} from './agentDirectory.fn';\nimport {AgentDirectoryUnitEnum} from './agentDirectory.integrity';\nimport {AgentDirectoryLinkType} from './agentDirectory.integrity';\n\n/**\n *\n */\nexport class AgentDirectoryProxy extends ZomeProxy {\n static override readonly DEFAULT_ZOME_NAME = \"agentDirectory\";\n static override readonly FN_NAMES = agentDirectoryFunctionNames;\n static override readonly ENTRY_TYPES = Object.values(AgentDirectoryUnitEnum);\n static override readonly LINK_TYPES = Object.values(AgentDirectoryLinkType);\n \n async getRegisteredAgents(): Promise<AgentArray[]> {\n return this.call('get_registered_agents', null);\n }\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const AGENT_DIRECTORY_PATH = "registered_agents";
|
|
2
1
|
/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */
|
|
3
2
|
export declare enum AgentDirectoryEntryType {
|
|
4
3
|
Stub = "Stub"
|
|
@@ -10,3 +9,4 @@ export type AgentDirectoryEntry = AgentDirectoryEntryVariantStub;
|
|
|
10
9
|
/** Bogus Entry */
|
|
11
10
|
export interface Stub {
|
|
12
11
|
}
|
|
12
|
+
export declare const AGENT_DIRECTORY_PATH = "registered_agents";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* This file is generated by zits. Do not edit manually */
|
|
2
|
-
export const AGENT_DIRECTORY_PATH = "registered_agents";
|
|
3
2
|
/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */
|
|
4
3
|
export var AgentDirectoryEntryType;
|
|
5
4
|
(function (AgentDirectoryEntryType) {
|
|
6
5
|
AgentDirectoryEntryType["Stub"] = "Stub";
|
|
7
6
|
})(AgentDirectoryEntryType || (AgentDirectoryEntryType = {}));
|
|
8
|
-
|
|
7
|
+
export const AGENT_DIRECTORY_PATH = "registered_agents";
|
|
8
|
+
//# sourceMappingURL=agentDirectory.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentDirectory.types.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAkF1D,8FAA8F;AAC9F,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;AACd,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AASD,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, CapGrantInfo, PeerMetaInfo, DisabledAppReason, AppStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile,\n/** entry */\n// @ts-ignore\nEntryDefLocation, EntryDefLocationType, AppEntryDefLocation, GetOptions, GetStrategy,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\n/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */\nexport enum AgentDirectoryEntryType {\n\tStub = 'Stub',\n}\nexport type AgentDirectoryEntryVariantStub = {Stub: Stub}\nexport type AgentDirectoryEntry = \n | AgentDirectoryEntryVariantStub;\n\n/** Bogus Entry */\nexport interface Stub {\n}\n\nexport const AGENT_DIRECTORY_PATH = \"registered_agents\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZomeElement } from "@ddd-qc/lit-happ";
|
|
2
|
-
import { AgentDirectoryPerspective, AgentDirectoryZvm } from "../
|
|
2
|
+
import { AgentDirectoryPerspective, AgentDirectoryZvm } from "../agentDirectory.zvm";
|
|
3
3
|
/**
|
|
4
4
|
* @element agent-directory-list
|
|
5
5
|
*/
|
|
@@ -14,5 +14,5 @@ export declare class AgentDirectoryList extends ZomeElement<AgentDirectoryPerspe
|
|
|
14
14
|
/** */
|
|
15
15
|
refresh(_e?: any): Promise<void>;
|
|
16
16
|
/** */
|
|
17
|
-
render(): import("lit
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
18
|
}
|
|
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { html } from "lit";
|
|
3
3
|
import { state, customElement } from "lit/decorators.js";
|
|
4
4
|
import { ZomeElement } from "@ddd-qc/lit-happ";
|
|
5
|
-
import { AgentDirectoryZvm } from "../
|
|
5
|
+
import { AgentDirectoryZvm } from "../agentDirectory.zvm";
|
|
6
6
|
/**
|
|
7
7
|
* @element agent-directory-list
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-directory-list.js","sourceRoot":"","sources":["../../src/elements/agent-directory-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAA4B,iBAAiB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"agent-directory-list.js","sourceRoot":"","sources":["../../src/elements/agent-directory-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAA4B,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAEnF;;GAEG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,WAAyD;IAC/F,WAAW;IACX;QACE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;QAG7C,mBAAmB;QAEF,iBAAY,GAAG,KAAK,CAAC;IAJtC,CAAC;IAOD,oBAAoB;IAEpB,mCAAmC;IACnC,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAGD,MAAM;IACN,KAAK,CAAC,OAAO,CAAC,EAAQ;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IACvB,CAAC;IAGD,MAAM;IACN,MAAM;QACJ,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAE/C,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACtB,OAAO,IAAI,CAAA,yBAAyB,CAAC;SACtC;QAED,YAAY;QACZ,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,CACvD,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE;YACpB,OAAO,IAAI,CAAC,cAAc,OAAO,CAAC,GAAG,KAAK,OAAO,CAAC,KAAK,OAAO,CAAA;QAChE,CAAC,CACJ,CAAA;QAED,iBAAiB;QACjB,OAAO,IAAI,CAAA,OAAO,OAAO,OAAO,CAAC;IACnC,CAAC;CACF,CAAA;AApCkB;IAAhB,KAAK,EAAE;wDAA8B;AAR3B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA4C9B","sourcesContent":["import {html} from \"lit\";\nimport {state, customElement} from \"lit/decorators.js\";\nimport {ZomeElement} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryPerspective, AgentDirectoryZvm} from \"../agentDirectory.zvm\";\n\n/**\n * @element agent-directory-list\n */\n@customElement(\"agent-directory-list\")\nexport class AgentDirectoryList extends ZomeElement<AgentDirectoryPerspective, AgentDirectoryZvm> {\n /** Ctor */\n constructor() {\n super(AgentDirectoryZvm.DEFAULT_ZOME_NAME);\n }\n\n /** -- Fields -- */\n\n @state() private _initialized = false;\n\n\n /** -- Methods -- */\n\n /** After first call to render() */\n async firstUpdated() {\n await this.refresh();\n this._initialized = true;\n }\n\n\n /** */\n async refresh(_e?: any) {\n this._zvm.probeAll();\n }\n\n\n /** */\n render() {\n console.debug(\"agent-directory-list render()\");\n\n if (!this._initialized) {\n return html`<span>Loading...</span>`;\n }\n\n /* Agents */\n const agentLi = Object.entries(this.perspective.agents).map(\n ([_index, agentId]) => {\n return html `<li value=\"${agentId.b64}\">${agentId.short}</li>`\n }\n )\n\n /** render all */\n return html`<ul>${agentLi}</ul>`;\n }\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './agentDirectory.zvm';
|
|
2
2
|
export * from './elements/agent-directory-list';
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './agentDirectory.zvm';\nexport * from './elements/agent-directory-list';\n"]}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent_directory.zvm.js","sourceRoot":"","sources":["../src/agent_directory.zvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAOrE,MAAM;AACN,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAApD;;QAQE,mBAAmB;QAEX,YAAO,GAAc,EAAE,CAAC;IA0BlC,CAAC;IAhCC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAiC,CAAC;IAChD,CAAC;IAMD,oBAAoB;IAEpB,KAAK;IACL,IAAI,WAAW;QACb,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAA;IAC/B,CAAC;IAED,MAAM;IACI,UAAU;QAClB,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAAE,OAAO,IAAI,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,oBAAkD,CAAC,MAAM,CAAC,CAAA;IACpI,CAAC;IAED,MAAM;IACN,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;IACpC,CAAC;IAED,MAAM;IACN,KAAK,CAAC,qBAAqB;QACzB,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,iBAAiB,EAAE,CAAA;IAC1B,CAAC;;AAjCe,4BAAU,GAAG,mBAAmB,AAAtB,CAAuB","sourcesContent":["import {ZomeViewModel, AgentId} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryProxy} from \"./bindings/agent_directory.proxy\";\n\n/** */\nexport interface AgentDirectoryPerspective {\n agents: AgentId[],\n}\n\n/** */\nexport class AgentDirectoryZvm extends ZomeViewModel {\n\n static readonly ZOME_PROXY = AgentDirectoryProxy;\n\n get zomeProxy(): AgentDirectoryProxy {\n return this._zomeProxy as AgentDirectoryProxy;\n }\n\n /** -- Fields -- */\n\n private _agents: AgentId[] = [];\n\n /** -- Methods -- */\n\n /* */\n get perspective(): AgentDirectoryPerspective {\n return {agents: this._agents}\n }\n\n /** */\n protected hasChanged(): boolean {\n if (!this._previousPerspective) return true;\n return JSON.stringify(this.perspective.agents) !== JSON.stringify((this._previousPerspective as AgentDirectoryPerspective).agents)\n }\n\n /** */\n async probeAllInner(): Promise<void> {\n await this.probeRegisteredAgents()\n }\n\n /** */\n async probeRegisteredAgents() {\n let agents = await this.zomeProxy.getRegisteredAgents();\n this._agents = agents.map((agentKey) => new AgentId(agentKey));\n this.notifySubscribers()\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent_directory.fn.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.fn.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAK1D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAAmB;IAC1D,YAAY;IACZ,eAAe;IACf,cAAc;IACd,uBAAuB;CACvB,CAAC;AAGF,iEAAiE;AACjE,MAAM,UAAU,wCAAwC,CAAC,QAAkB;IACxE,MAAM,GAAG,GAA+B,EAAE,CAAC;IAC3C,KAAK,MAAM,EAAE,IAAI,2BAA2B,EAAE;QAC3C,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;KAC3B;IACD,OAAO,GAAG,CAAC;AACd,CAAC;AAGD,sFAAsF;AACtF,MAAM,CAAC,MAAM,2BAA2B,GAA+B,wCAAwC,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {ZomeName, FunctionName} from '@holochain/client';\n\n\n/** Array of all zome function names in \"agentDirectory\" */\nexport const agentDirectoryFunctionNames: FunctionName[] = [\n\t\"entry_defs\", \n\t\"get_zome_info\", \n\t\"get_dna_info\",\n\t\"get_registered_agents\",\n];\n\n\n/** Generate tuple array of function names with given zomeName */\nexport function generateAgentDirectoryZomeFunctionsArray(zomeName: ZomeName): [ZomeName, FunctionName][] {\n const fns: [ZomeName, FunctionName][] = [];\n for (const fn of agentDirectoryFunctionNames) {\n fns.push([zomeName, fn]);\n }\n return fns;\n}\n\n\n/** Tuple array of all zome function names with default zome name \"agent_directory\" */\nexport const agentDirectoryZomeFunctions: [ZomeName, FunctionName][] = generateAgentDirectoryZomeFunctionsArray(\"agent_directory\");\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent_directory.integrity.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.integrity.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAG1D,2CAA2C;AAC3C,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,yCAAe,CAAA;AAChB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AACD,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,uCAAa,CAAA;AACd,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n\n/** All link types specific to this Zome */\nexport enum AgentDirectoryLinkType {\n\tAgent = 'Agent',\n}\nexport enum AgentDirectoryUnitEnum {\n\tStub = 'Stub',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent_directory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAiF1D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAE3F;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAMhD,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;;AAPwB,qCAAiB,GAAG,iBAAiB,CAAC;AACtC,4BAAQ,GAAG,2BAA2B,CAAC;AACvC,+BAAW,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACpD,8BAAU,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {AGENT_DIRECTORY_PATH, AgentDirectoryEntry, Stub, } from './agent_directory.types';\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, Duration, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, DisabledAppReason, AppInfoStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile, DnaDef,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\nimport {ZomeProxy} from '@ddd-qc/lit-happ';\nimport {agentDirectoryFunctionNames} from './agent_directory.fn';\nimport {AgentDirectoryUnitEnum, AgentDirectoryLinkType} from './agent_directory.integrity';\n\n/**\n *\n */\nexport class AgentDirectoryProxy extends ZomeProxy {\n static override readonly DEFAULT_ZOME_NAME = \"agent_directory\";\n static override readonly FN_NAMES = agentDirectoryFunctionNames;\n static override readonly ENTRY_TYPES = Object.values(AgentDirectoryUnitEnum);\n static override readonly LINK_TYPES = Object.values(AgentDirectoryLinkType);\n \n async getRegisteredAgents(): Promise<AgentArray[]> {\n return this.call('get_registered_agents', null);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent_directory.types.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AA+E1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAExD,8FAA8F;AAC9F,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;AACd,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, Duration, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, DisabledAppReason, AppInfoStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile, DnaDef,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\nexport const AGENT_DIRECTORY_PATH = \"registered_agents\";\n\n/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */\nexport enum AgentDirectoryEntryType {\n\tStub = 'Stub',\n}\nexport type AgentDirectoryEntryVariantStub = {Stub: Stub}\nexport type AgentDirectoryEntry = \n | AgentDirectoryEntryVariantStub;\n\n/** Bogus Entry */\nexport interface Stub {\n}\n"]}
|