@ddd-qc/agent-directory 6.3.0 → 6.5.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.
@@ -1,9 +1,8 @@
1
- import { ZomeViewModel } from "@ddd-qc/lit-happ";
2
- import { AgentPubKeyB64 } from "@holochain/client";
1
+ import { ZomeViewModel, AgentId } from "@ddd-qc/lit-happ";
3
2
  import { AgentDirectoryProxy } from "./bindings/agent_directory.proxy";
4
3
  /** */
5
4
  export interface AgentDirectoryPerspective {
6
- agents: AgentPubKeyB64[];
5
+ agents: AgentId[];
7
6
  }
8
7
  /**
9
8
  *
@@ -18,7 +17,7 @@ export declare class AgentDirectoryZvm extends ZomeViewModel {
18
17
  /** */
19
18
  protected hasChanged(): boolean;
20
19
  /** */
21
- probeAll(): Promise<void>;
20
+ probeAllInner(): Promise<void>;
22
21
  /** */
23
22
  probeRegisteredAgents(): Promise<void>;
24
23
  }
@@ -1,5 +1,4 @@
1
- import { ZomeViewModel } from "@ddd-qc/lit-happ";
2
- import { encodeHashToBase64 } from "@holochain/client";
1
+ import { ZomeViewModel, AgentId } from "@ddd-qc/lit-happ";
3
2
  import { AgentDirectoryProxy } from "./bindings/agent_directory.proxy";
4
3
  /**
5
4
  *
@@ -26,13 +25,13 @@ export class AgentDirectoryZvm extends ZomeViewModel {
26
25
  return hasChanged;
27
26
  }
28
27
  /** */
29
- async probeAll() {
28
+ async probeAllInner() {
30
29
  await this.probeRegisteredAgents();
31
30
  }
32
31
  /** */
33
32
  async probeRegisteredAgents() {
34
33
  let agents = await this.zomeProxy.getRegisteredAgents();
35
- this._agents = agents.map((agentKey) => encodeHashToBase64(agentKey));
34
+ this._agents = agents.map((agentKey) => new AgentId(agentKey));
36
35
  // Debug add a random string to the perspective
37
36
  // this._agents.push(String.fromCharCode("A".charCodeAt(0) + Math.floor(Math.random() * 26)))
38
37
  this.notifySubscribers();
@@ -1 +1 @@
1
- {"version":3,"file":"agent_directory.zvm.js","sourceRoot":"","sources":["../src/agent_directory.zvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAkB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AASrE;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAApD;;QASE,mBAAmB;QAEX,YAAO,GAAqB,EAAE,CAAC;IAkCzC,CAAC;IAzCC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAiC,CAAC;IAChD,CAAC;IAQD,oBAAoB;IAEpB,KAAK;IACL,IAAI,WAAW;QACb,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAA;IAC/B,CAAC;IAGD,MAAM;IACI,UAAU;QAClB,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAAE,OAAO,IAAI,CAAC;QAC5C,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,oBAAkD,CAAC,MAAM,CAAC,CAAA;QAC5I,OAAO,UAAU,CAAA;IACnB,CAAC;IAGD,MAAM;IACN,KAAK,CAAC,QAAQ;QACZ,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;IACpC,CAAC;IAGD,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,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC;QACtE,+CAA+C;QAC/C,6FAA6F;QAC7F,IAAI,CAAC,iBAAiB,EAAE,CAAA;IAC1B,CAAC;;AAzCe,4BAAU,GAAG,mBAAmB,AAAtB,CAAuB","sourcesContent":["import {ZomeViewModel} from \"@ddd-qc/lit-happ\";\nimport { AgentPubKeyB64, encodeHashToBase64 } from \"@holochain/client\";\nimport {AgentDirectoryProxy} from \"./bindings/agent_directory.proxy\";\n\n\n/** */\nexport interface AgentDirectoryPerspective {\n agents: AgentPubKeyB64[],\n}\n\n\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\n /** -- Fields -- */\n\n private _agents: AgentPubKeyB64[] = [];\n\n\n /** -- Methods -- */\n\n /* */\n get perspective(): AgentDirectoryPerspective {\n return {agents: this._agents}\n }\n\n\n /** */\n protected hasChanged(): boolean {\n if (!this._previousPerspective) return true;\n let hasChanged = JSON.stringify(this.perspective.agents) !== JSON.stringify((this._previousPerspective as AgentDirectoryPerspective).agents)\n return hasChanged\n }\n\n\n /** */\n async probeAll(): Promise<void> {\n await this.probeRegisteredAgents()\n }\n\n\n /** */\n async probeRegisteredAgents() {\n let agents = await this.zomeProxy.getRegisteredAgents();\n this._agents = agents.map((agentKey) => encodeHashToBase64(agentKey));\n // Debug add a random string to the perspective\n // this._agents.push(String.fromCharCode(\"A\".charCodeAt(0) + Math.floor(Math.random() * 26)))\n this.notifySubscribers()\n }\n\n}"]}
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;AASrE;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAApD;;QASE,mBAAmB;QAEX,YAAO,GAAc,EAAE,CAAC;IAkClC,CAAC;IAzCC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAiC,CAAC;IAChD,CAAC;IAQD,oBAAoB;IAEpB,KAAK;IACL,IAAI,WAAW;QACb,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAA;IAC/B,CAAC;IAGD,MAAM;IACI,UAAU;QAClB,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAAE,OAAO,IAAI,CAAC;QAC5C,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,oBAAkD,CAAC,MAAM,CAAC,CAAA;QAC5I,OAAO,UAAU,CAAA;IACnB,CAAC;IAGD,MAAM;IACN,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;IACpC,CAAC;IAGD,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,+CAA+C;QAC/C,6FAA6F;QAC7F,IAAI,CAAC,iBAAiB,EAAE,CAAA;IAC1B,CAAC;;AAzCe,4BAAU,GAAG,mBAAmB,AAAtB,CAAuB","sourcesContent":["import {ZomeViewModel, AgentId} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryProxy} from \"./bindings/agent_directory.proxy\";\n\n\n/** */\nexport interface AgentDirectoryPerspective {\n agents: AgentId[],\n}\n\n\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\n /** -- Fields -- */\n\n private _agents: AgentId[] = [];\n\n\n /** -- Methods -- */\n\n /* */\n get perspective(): AgentDirectoryPerspective {\n return {agents: this._agents}\n }\n\n\n /** */\n protected hasChanged(): boolean {\n if (!this._previousPerspective) return true;\n let hasChanged = JSON.stringify(this.perspective.agents) !== JSON.stringify((this._previousPerspective as AgentDirectoryPerspective).agents)\n return hasChanged\n }\n\n\n /** */\n async probeAllInner(): Promise<void> {\n await this.probeRegisteredAgents()\n }\n\n\n /** */\n async probeRegisteredAgents() {\n let agents = await this.zomeProxy.getRegisteredAgents();\n this._agents = agents.map((agentKey) => new AgentId(agentKey));\n // Debug add a random string to the perspective\n // this._agents.push(String.fromCharCode(\"A\".charCodeAt(0) + Math.floor(Math.random() * 26)))\n this.notifySubscribers()\n }\n\n}\n"]}
@@ -1 +1 @@
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;CAEvB,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\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
+ {"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;IAEd,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\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 +1 @@
1
- {"version":3,"file":"agent_directory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAmJ1D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAIhD,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;;AALe,qCAAiB,GAAG,iBAAiB,CAAA;AACrC,4BAAQ,GAAG,2BAA2B,CAAA","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {AGENT_DIRECTORY_PATH, } from './agent_directory.types';\nimport {\n/** types.ts */\nHoloHash,\nAgentPubKey,\nDnaHash,\nWasmHash,\nEntryHash,\nActionHash,\nAnyDhtHash,\nExternalHash,\nKitsuneAgent,\nKitsuneSpace,\nHoloHashB64,\nAgentPubKeyB64,\nDnaHashB64,\nWasmHashB64,\nEntryHashB64,\nActionHashB64,\nAnyDhtHashB64,\nInstalledAppId,\nSignature,\nCellId,\nDnaProperties,\nRoleName,\nInstalledCell,\nTimestamp,\nDuration,\nHoloHashed,\nNetworkInfo,\nFetchPoolInfo,\n/** hdk/action.ts */\nSignedActionHashed,\nRegisterAgentActivity,\nActionHashed,\nActionType,\nAction,\nNewEntryAction,\nDna,\nAgentValidationPkg,\nInitZomesComplete,\nCreateLink,\nDeleteLink,\nOpenChain,\nCloseChain,\nUpdate,\nDelete,\nCreate,\n/** hdk/capabilities.ts */\nCapSecret,\nCapClaim,\nGrantedFunctionsType,\nGrantedFunctions,\nZomeCallCapGrant,\nCapAccessType,\nCapAccess,\nCapGrant,\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 */\nDhtOpType,\nDhtOp,\ngetDhtOpType,\ngetDhtOpAction,\ngetDhtOpEntry,\ngetDhtOpSignature,\n/** hdk/entry.ts */\nEntryVisibility,\nAppEntryDef,\nEntryType,\nEntryContent,\nEntry,\n/** hdk/record.ts */\nRecord as HcRecord,\nRecordEntry as HcRecordEntry,\n/** hdk/link.ts */\nAnyLinkableHash,\nZomeIndex,\nLinkType,\nLinkTag,\nRateWeight,\nRateBucketId,\nRateUnits,\nLink,\n/** api/admin/types.ts */\nInstalledAppInfoStatus,\nDeactivationReason,\nDisabledAppReason,\nStemCell,\nProvisionedCell,\nClonedCell,\nCellType,\nCellInfo,\nAppInfo,\nMembraneProof,\nFunctionName,\nZomeName,\nZomeDefinition,\nIntegrityZome,\nCoordinatorZome,\nDnaDefinition,\nResourceBytes,\nResourceMap,\nCellProvisioningStrategy,\nCellProvisioning,\nDnaVersionSpec,\nDnaVersionFlexible,\nAppRoleDnaManifest,\nAppRoleManifest,\nAppManifest,\nAppBundle,\nAppBundleSource,\nNetworkSeed,\nZomeLocation,\n } from '@holochain/client';\n\nimport {\n/** Common */\nDhtOpHashB64,\n//DnaHashB64, (duplicate)\n//AnyDhtHashB64, (duplicate)\nDhtOpHash,\n/** DnaFile */\nDnaFile,\nDnaDef,\nZomes,\nWasmCode,\n/** entry-details */\nEntryDetails,\nRecordDetails,\nDetails,\nDetailsType,\nEntryDhtStatus,\n/** Validation */\nValidationStatus,\nValidationReceipt,\n } from '@holochain-open-dev/core-types';\n\nimport {ZomeProxy} from '@ddd-qc/lit-happ';\nimport {agentDirectoryFunctionNames} from './agent_directory.fn';\n\n/**\n *\n */\nexport class AgentDirectoryProxy extends ZomeProxy {\n static readonly DEFAULT_ZOME_NAME = \"agent_directory\"\n static readonly FN_NAMES = agentDirectoryFunctionNames\n \n async getRegisteredAgents(): Promise<AgentPubKey[]> {\n return this.call('get_registered_agents', null);\n }\n\n\n}\n"]}
1
+ {"version":3,"file":"agent_directory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAoJ1D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAKhD,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;;AANe,qCAAiB,GAAG,iBAAiB,CAAA;AACrC,4BAAQ,GAAG,2BAA2B,CAAA","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {AGENT_DIRECTORY_PATH, AgentDirectoryEntry, Stub, } from './agent_directory.types';\nimport {\nWebsocketConnectionOptions,\n/** types.ts */\nHoloHash,\nAgentPubKey,\nDnaHash,\nWasmHash,\nEntryHash,\nActionHash,\nAnyDhtHash,\nExternalHash,\nKitsuneAgent,\nKitsuneSpace,\nHoloHashB64,\nAgentPubKeyB64,\nDnaHashB64,\nWasmHashB64,\nEntryHashB64,\nActionHashB64,\nAnyDhtHashB64,\nInstalledAppId,\nSignature,\nCellId,\nDnaProperties,\nRoleName,\nInstalledCell,\nTimestamp,\nDuration,\nHoloHashed,\nNetworkInfo,\nFetchPoolInfo,\n/** hdk/action.ts */\nSignedActionHashed,\nRegisterAgentActivity,\nActionHashed,\nActionType,\nAction,\nNewEntryAction,\nDna,\nAgentValidationPkg,\nInitZomesComplete,\nCreateLink,\nDeleteLink,\nOpenChain,\nCloseChain,\nUpdate,\nDelete,\nCreate,\n/** hdk/capabilities.ts */\nCapSecret,\nCapClaim,\nGrantedFunctionsType,\nGrantedFunctions,\nZomeCallCapGrant,\nCapAccessType,\nCapAccess,\nCapGrant,\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 */\nDhtOpType,\nDhtOp,\ngetDhtOpType,\ngetDhtOpAction,\ngetDhtOpEntry,\ngetDhtOpSignature,\n/** hdk/entry.ts */\nEntryVisibility,\nAppEntryDef,\nEntryType,\nEntryContent,\nEntry,\n/** hdk/record.ts */\nRecord as HcRecord,\nRecordEntry as HcRecordEntry,\n/** hdk/link.ts */\nAnyLinkableHash,\nZomeIndex,\nLinkType,\nLinkTag,\nRateWeight,\nRateBucketId,\nRateUnits,\nLink,\n/** api/admin/types.ts */\nInstalledAppInfoStatus,\nDeactivationReason,\nDisabledAppReason,\nStemCell,\nProvisionedCell,\nClonedCell,\nCellType,\nCellInfo,\nAppInfo,\nMembraneProof,\nFunctionName,\nZomeName,\nZomeDefinition,\nIntegrityZome,\nCoordinatorZome,\nDnaDefinition,\nResourceBytes,\nResourceMap,\nCellProvisioningStrategy,\nCellProvisioning,\nDnaVersionSpec,\nDnaVersionFlexible,\nAppRoleDnaManifest,\nAppRoleManifest,\nAppManifest,\nAppBundle,\nAppBundleSource,\nNetworkSeed,\nZomeLocation,\n } from '@holochain/client';\n\nimport {\n/** Common */\nDhtOpHashB64,\n//DnaHashB64, (duplicate)\n//AnyDhtHashB64, (duplicate)\nDhtOpHash,\n/** DnaFile */\nDnaFile,\nDnaDef,\nZomes,\nWasmCode,\n/** entry-details */\nEntryDetails,\nRecordDetails,\nDetails,\nDetailsType,\nEntryDhtStatus,\n/** Validation */\nValidationStatus,\nValidationReceipt,\n } from '@holochain-open-dev/core-types';\n\nimport {ZomeProxy} from '@ddd-qc/lit-happ';\nimport {agentDirectoryFunctionNames} from './agent_directory.fn';\n\n/**\n *\n */\nexport class AgentDirectoryProxy extends ZomeProxy {\n static readonly DEFAULT_ZOME_NAME = \"agent_directory\"\n static readonly FN_NAMES = agentDirectoryFunctionNames\n \n\n async getRegisteredAgents(): Promise<AgentPubKey[]> {\n return this.call('get_registered_agents', null);\n }\n\n}\n"]}
@@ -1 +1,12 @@
1
1
  export declare const AGENT_DIRECTORY_PATH = "registered_agents";
2
+ /** Entry types not really necessary but it is defined because we don't want entry_defs() to fail */
3
+ export declare enum AgentDirectoryEntryType {
4
+ Stub = "Stub"
5
+ }
6
+ export type AgentDirectoryEntryVariantStub = {
7
+ Stub: Stub;
8
+ };
9
+ export type AgentDirectoryEntry = AgentDirectoryEntryVariantStub;
10
+ /** Bogus Entry */
11
+ export interface Stub {
12
+ }
@@ -1,3 +1,8 @@
1
1
  /* This file is generated by zits. Do not edit manually */
2
2
  export const AGENT_DIRECTORY_PATH = "registered_agents";
3
+ /** Entry types not really necessary but it is defined because we don't want entry_defs() to fail */
4
+ export var AgentDirectoryEntryType;
5
+ (function (AgentDirectoryEntryType) {
6
+ AgentDirectoryEntryType["Stub"] = "Stub";
7
+ })(AgentDirectoryEntryType || (AgentDirectoryEntryType = {}));
3
8
  //# sourceMappingURL=agent_directory.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent_directory.types.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAkJ1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {\n/** types.ts */\nHoloHash,\nAgentPubKey,\nDnaHash,\nWasmHash,\nEntryHash,\nActionHash,\nAnyDhtHash,\nExternalHash,\nKitsuneAgent,\nKitsuneSpace,\nHoloHashB64,\nAgentPubKeyB64,\nDnaHashB64,\nWasmHashB64,\nEntryHashB64,\nActionHashB64,\nAnyDhtHashB64,\nInstalledAppId,\nSignature,\nCellId,\nDnaProperties,\nRoleName,\nInstalledCell,\nTimestamp,\nDuration,\nHoloHashed,\nNetworkInfo,\nFetchPoolInfo,\n/** hdk/action.ts */\nSignedActionHashed,\nRegisterAgentActivity,\nActionHashed,\nActionType,\nAction,\nNewEntryAction,\nDna,\nAgentValidationPkg,\nInitZomesComplete,\nCreateLink,\nDeleteLink,\nOpenChain,\nCloseChain,\nUpdate,\nDelete,\nCreate,\n/** hdk/capabilities.ts */\nCapSecret,\nCapClaim,\nGrantedFunctionsType,\nGrantedFunctions,\nZomeCallCapGrant,\nCapAccessType,\nCapAccess,\nCapGrant,\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 */\nDhtOpType,\nDhtOp,\ngetDhtOpType,\ngetDhtOpAction,\ngetDhtOpEntry,\ngetDhtOpSignature,\n/** hdk/entry.ts */\nEntryVisibility,\nAppEntryDef,\nEntryType,\nEntryContent,\nEntry,\n/** hdk/record.ts */\nRecord as HcRecord,\nRecordEntry as HcRecordEntry,\n/** hdk/link.ts */\nAnyLinkableHash,\nZomeIndex,\nLinkType,\nLinkTag,\nRateWeight,\nRateBucketId,\nRateUnits,\nLink,\n/** api/admin/types.ts */\nInstalledAppInfoStatus,\nDeactivationReason,\nDisabledAppReason,\nStemCell,\nProvisionedCell,\nClonedCell,\nCellType,\nCellInfo,\nAppInfo,\nMembraneProof,\nFunctionName,\nZomeName,\nZomeDefinition,\nIntegrityZome,\nCoordinatorZome,\nDnaDefinition,\nResourceBytes,\nResourceMap,\nCellProvisioningStrategy,\nCellProvisioning,\nDnaVersionSpec,\nDnaVersionFlexible,\nAppRoleDnaManifest,\nAppRoleManifest,\nAppManifest,\nAppBundle,\nAppBundleSource,\nNetworkSeed,\nZomeLocation,\n } from '@holochain/client';\n\nimport {\n/** Common */\nDhtOpHashB64,\n//DnaHashB64, (duplicate)\n//AnyDhtHashB64, (duplicate)\nDhtOpHash,\n/** DnaFile */\nDnaFile,\nDnaDef,\nZomes,\nWasmCode,\n/** entry-details */\nEntryDetails,\nRecordDetails,\nDetails,\nDetailsType,\nEntryDhtStatus,\n/** Validation */\nValidationStatus,\nValidationReceipt,\n } from '@holochain-open-dev/core-types';\n\nexport const AGENT_DIRECTORY_PATH = \"registered_agents\";\n"]}
1
+ {"version":3,"file":"agent_directory.types.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAmJ1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAExD,oGAAoG;AACpG,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\nimport {\nWebsocketConnectionOptions,\n/** types.ts */\nHoloHash,\nAgentPubKey,\nDnaHash,\nWasmHash,\nEntryHash,\nActionHash,\nAnyDhtHash,\nExternalHash,\nKitsuneAgent,\nKitsuneSpace,\nHoloHashB64,\nAgentPubKeyB64,\nDnaHashB64,\nWasmHashB64,\nEntryHashB64,\nActionHashB64,\nAnyDhtHashB64,\nInstalledAppId,\nSignature,\nCellId,\nDnaProperties,\nRoleName,\nInstalledCell,\nTimestamp,\nDuration,\nHoloHashed,\nNetworkInfo,\nFetchPoolInfo,\n/** hdk/action.ts */\nSignedActionHashed,\nRegisterAgentActivity,\nActionHashed,\nActionType,\nAction,\nNewEntryAction,\nDna,\nAgentValidationPkg,\nInitZomesComplete,\nCreateLink,\nDeleteLink,\nOpenChain,\nCloseChain,\nUpdate,\nDelete,\nCreate,\n/** hdk/capabilities.ts */\nCapSecret,\nCapClaim,\nGrantedFunctionsType,\nGrantedFunctions,\nZomeCallCapGrant,\nCapAccessType,\nCapAccess,\nCapGrant,\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 */\nDhtOpType,\nDhtOp,\ngetDhtOpType,\ngetDhtOpAction,\ngetDhtOpEntry,\ngetDhtOpSignature,\n/** hdk/entry.ts */\nEntryVisibility,\nAppEntryDef,\nEntryType,\nEntryContent,\nEntry,\n/** hdk/record.ts */\nRecord as HcRecord,\nRecordEntry as HcRecordEntry,\n/** hdk/link.ts */\nAnyLinkableHash,\nZomeIndex,\nLinkType,\nLinkTag,\nRateWeight,\nRateBucketId,\nRateUnits,\nLink,\n/** api/admin/types.ts */\nInstalledAppInfoStatus,\nDeactivationReason,\nDisabledAppReason,\nStemCell,\nProvisionedCell,\nClonedCell,\nCellType,\nCellInfo,\nAppInfo,\nMembraneProof,\nFunctionName,\nZomeName,\nZomeDefinition,\nIntegrityZome,\nCoordinatorZome,\nDnaDefinition,\nResourceBytes,\nResourceMap,\nCellProvisioningStrategy,\nCellProvisioning,\nDnaVersionSpec,\nDnaVersionFlexible,\nAppRoleDnaManifest,\nAppRoleManifest,\nAppManifest,\nAppBundle,\nAppBundleSource,\nNetworkSeed,\nZomeLocation,\n } from '@holochain/client';\n\nimport {\n/** Common */\nDhtOpHashB64,\n//DnaHashB64, (duplicate)\n//AnyDhtHashB64, (duplicate)\nDhtOpHash,\n/** DnaFile */\nDnaFile,\nDnaDef,\nZomes,\nWasmCode,\n/** entry-details */\nEntryDetails,\nRecordDetails,\nDetails,\nDetailsType,\nEntryDhtStatus,\n/** Validation */\nValidationStatus,\nValidationReceipt,\n } from '@holochain-open-dev/core-types';\n\nexport const AGENT_DIRECTORY_PATH = \"registered_agents\";\n\n/** Entry types not really necessary but it is defined because we don't want entry_defs() to 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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-qc/agent-directory",
3
- "version": "6.3.0",
3
+ "version": "6.5.0",
4
4
  "license" : "CAL-1.0",
5
5
  "keywords": ["holochain", "zome"],
6
6
  "main": "./dist/index.js",