/** * Agent queries * * :TODO: wire into Personas hApp and replace generated agent names with serving of profile data * * @package: Holo-REA * @since: 2020-02-19 */ import { DNAIdMappings } from '../types.js'; import { Agent, AgentConnection, AgentEdge, Organization, OrganizationConnection, Person, PersonConnection } from '@valueflows/vf-graphql'; import { AgentPubKey } from '@connoropolous/holochain-client'; import { PagingParams } from '../resolvers/zomeSearchInputTypes.js'; export interface RegistrationQueryParams { pubKey: AgentPubKey; } export declare type AgentWithType = Agent & { agentType: string; }; export interface AgentWithTypeResponse { agent: AgentWithType; } export interface AgentEdgeWithTypeEdge extends Omit { node: AgentWithType; } export interface AgentConnectionWithType extends Omit { edges: AgentEdgeWithTypeEdge[]; } declare const _default: (dnaConfig: DNAIdMappings, conductorUri: string) => { myAgent: (root: any, args: any) => Promise; agent: (root: any, args: any) => Promise; organization: (root: any, args: any) => Promise; person: (root: any, args: any) => Promise; agents: (root: any, args: PagingParams) => Promise; organizations: (root: any, args: PagingParams) => Promise; people: (root: any, args: PagingParams) => Promise; agentRelationship: () => never; agentRelationships: () => never; agentRelationshipRole: () => never; agentRelationshipRoles: () => never; }; export default _default;