Skip to content

Commit 703ec5d

Browse files
committed
fix: fixing up RPC handler imports
[ci skip]
1 parent e3db77b commit 703ec5d

File tree

71 files changed

+151
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+151
-152
lines changed

src/agent/handlers/nodesClaimsGet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type Sigchain from '../../sigchain/Sigchain';
21
import type { DB } from '@matrixai/db';
32
import type { ClaimIdMessage, AgentClaimMessage } from './types';
3+
import type Sigchain from '../../sigchain/Sigchain';
44
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
55
import * as claimsUtils from '../../claims/utils';
66
import { ServerHandler } from '../../rpc/handlers';

src/agent/handlers/nodesClosestLocalNodesGet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { NodeAddressMessage, NodeIdMessage } from './types';
2-
import type { NodeGraph } from '../../nodes';
31
import type { DB } from '@matrixai/db';
2+
import type { NodeAddressMessage, NodeIdMessage } from './types';
43
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
4+
import type { NodeGraph } from '../../nodes';
55
import type { NodeId } from '../../ids';
66
import { validateSync } from '../../validation';
77
import { matchSync } from '../../utils';

src/agent/handlers/nodesCrossSignClaim.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { AgentClaimMessage } from './types';
22
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
33
import type ACL from '../../acl/ACL';
44
import type NodeManager from '../../nodes/NodeManager';
5-
import * as nodesErrors from '../../nodes/errors';
6-
import { DuplexHandler } from '../../rpc/handlers';
75
import * as agentErrors from '../errors';
86
import * as agentUtils from '../utils';
7+
import * as nodesErrors from '../../nodes/errors';
8+
import { DuplexHandler } from '../../rpc/handlers';
99

1010
class NodesCrossSignClaimHandler extends DuplexHandler<
1111
{

src/agent/handlers/nodesHolePunchMessageSend.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import type { DB } from '@matrixai/db';
2+
import type Logger from '@matrixai/logger';
3+
import type { HolePunchRelayMessage } from './types';
4+
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
25
import type NodeConnectionManager from '../../nodes/NodeConnectionManager';
6+
import type NodeManager from '../../nodes/NodeManager';
37
import type KeyRing from '../../keys/KeyRing';
4-
import type Logger from '@matrixai/logger';
58
import type { Host, Port } from '../../network/types';
6-
import type NodeManager from '../../nodes/NodeManager';
7-
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
89
import type { NodeId } from '../../ids';
9-
import type { HolePunchRelayMessage } from './types';
1010
import * as agentErrors from '../errors';
11+
import * as agentUtils from '../utils';
1112
import { validateSync } from '../../validation';
1213
import { matchSync } from '../../utils';
1314
import * as validationUtils from '../../validation/utils';
1415
import * as nodesUtils from '../../nodes/utils';
15-
import * as agentUtils from '../utils';
1616
import { UnaryHandler } from '../../rpc/handlers';
1717

1818
class NodesHolePunchMessageSendHandler extends UnaryHandler<

src/agent/handlers/notificationsSend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { DB } from '@matrixai/db';
2+
import type { SignedNotificationEncoded } from './types';
3+
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
24
import type KeyRing from '../../keys/KeyRing';
35
import type NotificationsManager from '../../notifications/NotificationsManager';
46
import type { SignedNotification } from '../../notifications/types';
5-
import type { SignedNotificationEncoded } from './types';
6-
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
77
import { UnaryHandler } from '../../rpc/handlers';
88
import * as notificationsUtils from '../../notifications/utils';
99

src/agent/handlers/serverManifest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { DB } from '@matrixai/db';
2+
import type Logger from '@matrixai/logger';
3+
import type KeyRing from '../../keys/KeyRing';
24
import type Sigchain from '../../sigchain/Sigchain';
3-
import type NodeGraph from '../../nodes/NodeGraph';
45
import type ACL from '../../acl/ACL';
6+
import type NodeGraph from '../../nodes/NodeGraph';
57
import type NodeManager from '../../nodes/NodeManager';
6-
import type KeyRing from '../../keys/KeyRing';
78
import type NodeConnectionManager from '../../nodes/NodeConnectionManager';
8-
import type Logger from '@matrixai/logger';
99
import type { NotificationsManager } from '../../notifications';
1010
import type { VaultManager } from '../../vaults';
1111
import { NodesClosestLocalNodesGetHandler } from './nodesClosestLocalNodesGet';

src/agent/handlers/vaultsGitPackGet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import type { VaultAction, VaultName } from '../../vaults/types';
2-
import type VaultManager from '../../vaults/VaultManager';
3-
import type ACL from '../../acl/ACL';
41
import type { DB } from '@matrixai/db';
52
import type { GitPackMessage, VaultsGitPackGetMessage } from './types';
63
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
4+
import type { VaultAction, VaultName } from '../../vaults/types';
5+
import type VaultManager from '../../vaults/VaultManager';
6+
import type ACL from '../../acl/ACL';
77
import * as agentErrors from '../errors';
8+
import * as agentUtils from '../utils';
89
import * as nodesUtils from '../../nodes/utils';
910
import * as vaultsUtils from '../../vaults/utils';
1011
import * as vaultsErrors from '../../vaults/errors';
1112
import { validateSync } from '../../validation';
1213
import { matchSync } from '../../utils';
1314
import * as validationUtils from '../../validation/utils';
1415
import { ServerHandler } from '../../rpc/handlers';
15-
import * as agentUtils from '../utils';
1616

1717
class VaultsGitPackGetHandler extends ServerHandler<
1818
{

src/agent/handlers/vaultsScan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import type { DB } from '@matrixai/db';
12
import type { VaultsScanMessage } from './types';
23
import type { AgentRPCRequestParams, AgentRPCResponseResult } from '../types';
34
import type VaultManager from '../../vaults/VaultManager';
4-
import type { DB } from '@matrixai/db';
55
import * as agentErrors from '../errors';
6+
import * as agentUtils from '../utils';
67
import { ServerHandler } from '../../rpc/handlers';
78
import * as vaultsUtils from '../../vaults/utils';
8-
import * as agentUtils from '../utils';
99

1010
class VaultsScanHandler extends ServerHandler<
1111
{

src/client/handlers/agentLockAll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
21
import type { DB } from '@matrixai/db';
2+
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
33
import type SessionManager from '../../sessions/SessionManager';
44
import { UnaryHandler } from '../../rpc/handlers';
55

src/client/handlers/agentStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
21
import type { StatusResultMessage } from './types';
2+
import type { ClientRPCRequestParams, ClientRPCResponseResult } from '../types';
33
import type PolykeyAgent from '../../PolykeyAgent';
44
import * as nodesUtils from '../../nodes/utils';
55
import * as keysUtils from '../../keys/utils';

0 commit comments

Comments
 (0)