Skip to content

Commit

Permalink
fix: fixing up RPC handler imports
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tegefaulkes committed Aug 1, 2023
1 parent c67dce2 commit ca23729
Show file tree
Hide file tree
Showing 71 changed files with 151 additions and 152 deletions.
2 changes: 1 addition & 1 deletion src/agent/handlers/nodesClaimsGet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Sigchain from '../../sigchain/Sigchain';
import type { DB } from '@matrixai/db';
import type { ClaimIdMessage, AgentClaimMessage } from './types';
import type Sigchain from '../../sigchain/Sigchain';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import * as claimsUtils from '../../claims/utils';
import { ServerHandler } from '../../rpc/handlers';
Expand Down
4 changes: 2 additions & 2 deletions src/agent/handlers/nodesClosestLocalNodesGet.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NodeAddressMessage, NodeIdMessage } from './types';
import type { NodeGraph } from '../../nodes';
import type { DB } from '@matrixai/db';
import type { NodeAddressMessage, NodeIdMessage } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type { NodeGraph } from '../../nodes';
import type { NodeId } from '../../ids';
import { validateSync } from '../../validation';
import { matchSync } from '../../utils';
Expand Down
4 changes: 2 additions & 2 deletions src/agent/handlers/nodesCrossSignClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { AgentClaimMessage } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type ACL from '../../acl/ACL';
import type NodeManager from '../../nodes/NodeManager';
import * as nodesErrors from '../../nodes/errors';
import { DuplexHandler } from '../../rpc/handlers';
import * as agentErrors from '../errors';
import * as agentUtils from '../utils';
import * as nodesErrors from '../../nodes/errors';
import { DuplexHandler } from '../../rpc/handlers';

class NodesCrossSignClaimHandler extends DuplexHandler<
{
Expand Down
10 changes: 5 additions & 5 deletions src/agent/handlers/nodesHolePunchMessageSend.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { DB } from '@matrixai/db';
import type Logger from '@matrixai/logger';
import type { HolePunchRelayMessage } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type NodeConnectionManager from '../../nodes/NodeConnectionManager';
import type NodeManager from '../../nodes/NodeManager';
import type KeyRing from '../../keys/KeyRing';
import type Logger from '@matrixai/logger';
import type { Host, Port } from '../../network/types';
import type NodeManager from '../../nodes/NodeManager';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type { NodeId } from '../../ids';
import type { HolePunchRelayMessage } from './types';
import * as agentErrors from '../errors';
import * as agentUtils from '../utils';
import { validateSync } from '../../validation';
import { matchSync } from '../../utils';
import * as validationUtils from '../../validation/utils';
import * as nodesUtils from '../../nodes/utils';
import * as agentUtils from '../utils';
import { UnaryHandler } from '../../rpc/handlers';

class NodesHolePunchMessageSendHandler extends UnaryHandler<
Expand Down
4 changes: 2 additions & 2 deletions src/agent/handlers/notificationsSend.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { DB } from '@matrixai/db';
import type { SignedNotificationEncoded } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type KeyRing from '../../keys/KeyRing';
import type NotificationsManager from '../../notifications/NotificationsManager';
import type { SignedNotification } from '../../notifications/types';
import type { SignedNotificationEncoded } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import { UnaryHandler } from '../../rpc/handlers';
import * as notificationsUtils from '../../notifications/utils';

Expand Down
6 changes: 3 additions & 3 deletions src/agent/handlers/serverManifest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { DB } from '@matrixai/db';
import type Logger from '@matrixai/logger';
import type KeyRing from '../../keys/KeyRing';
import type Sigchain from '../../sigchain/Sigchain';
import type NodeGraph from '../../nodes/NodeGraph';
import type ACL from '../../acl/ACL';
import type NodeGraph from '../../nodes/NodeGraph';
import type NodeManager from '../../nodes/NodeManager';
import type KeyRing from '../../keys/KeyRing';
import type NodeConnectionManager from '../../nodes/NodeConnectionManager';
import type Logger from '@matrixai/logger';
import type { NotificationsManager } from '../../notifications';
import type { VaultManager } from '../../vaults';
import { NodesClosestLocalNodesGetHandler } from './nodesClosestLocalNodesGet';
Expand Down
8 changes: 4 additions & 4 deletions src/agent/handlers/vaultsGitPackGet.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { VaultAction, VaultName } from '../../vaults/types';
import type VaultManager from '../../vaults/VaultManager';
import type ACL from '../../acl/ACL';
import type { DB } from '@matrixai/db';
import type { GitPackMessage, VaultsGitPackGetMessage } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type { VaultAction, VaultName } from '../../vaults/types';
import type VaultManager from '../../vaults/VaultManager';
import type ACL from '../../acl/ACL';
import * as agentErrors from '../errors';
import * as agentUtils from '../utils';
import * as nodesUtils from '../../nodes/utils';
import * as vaultsUtils from '../../vaults/utils';
import * as vaultsErrors from '../../vaults/errors';
import { validateSync } from '../../validation';
import { matchSync } from '../../utils';
import * as validationUtils from '../../validation/utils';
import { ServerHandler } from '../../rpc/handlers';
import * as agentUtils from '../utils';

class VaultsGitPackGetHandler extends ServerHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/agent/handlers/vaultsScan.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { DB } from '@matrixai/db';
import type { VaultsScanMessage } from './types';
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
import type VaultManager from '../../vaults/VaultManager';
import type { DB } from '@matrixai/db';
import * as agentErrors from '../errors';
import * as agentUtils from '../utils';
import { ServerHandler } from '../../rpc/handlers';
import * as vaultsUtils from '../../vaults/utils';
import * as agentUtils from '../utils';

class VaultsScanHandler extends ServerHandler<
{
Expand Down
2 changes: 1 addition & 1 deletion src/client/handlers/agentLockAll.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type SessionManager from '../../sessions/SessionManager';
import { UnaryHandler } from '../../rpc/handlers';

Expand Down
2 changes: 1 addition & 1 deletion src/client/handlers/agentStatus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { StatusResultMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type PolykeyAgent from '../../PolykeyAgent';
import * as nodesUtils from '../../nodes/utils';
import * as keysUtils from '../../keys/utils';
Expand Down
8 changes: 4 additions & 4 deletions src/client/handlers/gestaltsActionsGetByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { IdentityId, ProviderId } from '../../ids/index';
import type { GestaltAction } from '../../gestalts/types';
import type { IdentityMessage } from './types';
import type { IdentityId, ProviderId } from '../../ids/index';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsGetByIdentityHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsActionsGetByNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { ActionsListMessage, NodeIdMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { GestaltAction } from '../../gestalts/types';
import type { NodeId } from '../../ids/index';
import type { ActionsListMessage, NodeIdMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsGetByNodeHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsActionsSetByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type { SetIdentityActionMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type { GestaltAction } from '../../gestalts/types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { SetIdentityActionMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsSetByIdentityHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsActionsSetByNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type { SetNodeActionMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { GestaltAction } from '../../gestalts/types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { NodeId } from '../../ids/index';
import type { SetNodeActionMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsSetByNodeHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsActionsUnsetByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type { SetIdentityActionMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type { GestaltAction } from '../../gestalts/types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { SetIdentityActionMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsUnsetByIdentityHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsActionsUnsetByNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type { SetNodeActionMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { GestaltAction } from '../../gestalts/types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { NodeId } from '../../ids/index';
import type { SetNodeActionMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsActionsUnsetByNodeHandler extends UnaryHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/gestaltsDiscoveryByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type Discovery from '../../discovery/Discovery';
import type { IdentityMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsDiscoveryByIdentityHandler extends UnaryHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/gestaltsDiscoveryByNode.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { NodeIdMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { NodeId } from '../../ids/index';
import type Discovery from '../../discovery/Discovery';
import type { NodeIdMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsDiscoveryByNodeHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsGestaltGetByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { GestaltMessage, IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { GestaltMessage, IdentityMessage } from './types';
import * as nodesUtils from '../../nodes/utils';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsGestaltGetByIdentityHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsGestaltGetByNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { GestaltMessage, NodeIdMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { NodeId } from '../../ids/index';
import type { GestaltMessage, NodeIdMessage } from './types';
import * as nodesUtils from '../../nodes/utils';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsGestaltGetByNodeHandler extends UnaryHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/gestaltsGestaltList.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { DB } from '@matrixai/db';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { GestaltMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import * as nodesUtils from '../../nodes/utils';
import { ServerHandler } from '../../rpc/handlers';

Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsGestaltTrustByIdentity.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { IdentityId, ProviderId } from '../../ids/index';
import type Discovery from '../../discovery/Discovery';
import type { IdentityMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsGestaltTrustByIdentityHandler extends UnaryHandler<
{
Expand Down
6 changes: 3 additions & 3 deletions src/client/handlers/gestaltsGestaltTrustByNode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DB } from '@matrixai/db';
import type { NodeIdMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type GestaltGraph from '../../gestalts/GestaltGraph';
import type { DB } from '@matrixai/db';
import type { NodeId } from '../../ids/index';
import type Discovery from '../../discovery/Discovery';
import type { NodeIdMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class GestaltsGestaltTrustByNodeHandler extends UnaryHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/identitiesAuthenticate.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { AuthProcessMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { ProviderId } from '../../ids/index';
import type IdentitiesManager from '../../identities/IdentitiesManager';
import type { AuthProcessMessage } from './types';
import * as identitiesErrors from '../../identities/errors';
import { ServerHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync, never } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync, never } from '../../utils/index';

class IdentitiesAuthenticateHandler extends ServerHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/identitiesAuthenticatedGet.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { ProviderId } from '../../ids/index';
import type IdentitiesManager from '../../identities/IdentitiesManager';
import type { IdentityMessage } from './types';
import { ServerHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class IdentitiesAuthenticatedGetHandler extends ServerHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/identitiesClaim.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { ClaimIdMessage, IdentityMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type IdentitiesManager from '../../identities/IdentitiesManager';
import type { ClaimIdMessage, IdentityMessage } from './types';
import { UnaryHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';

class IdentitiesClaimHandler extends UnaryHandler<
{
Expand Down
4 changes: 2 additions & 2 deletions src/client/handlers/identitiesInfoConnectedGet.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { ProviderSearchMessage, IdentityInfoMessage } from './types';
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
import type { IdentityId, ProviderId } from '../../ids/index';
import type IdentitiesManager from '../../identities/IdentitiesManager';
import type { ProviderSearchMessage, IdentityInfoMessage } from './types';
import type { IdentityData } from '../../identities/types';
import { ServerHandler } from '../../rpc/handlers';
import { validateSync } from '../../validation/index';
import { matchSync } from '../../utils/index';
import * as validationUtils from '../../validation/utils';
import { matchSync } from '../../utils/index';
import * as identitiesErrors from '../../identities/errors';

class IdentitiesInfoConnectedGetHandler extends ServerHandler<
Expand Down
Loading

0 comments on commit ca23729

Please sign in to comment.