From 8515532addf0a10d80e13e4530d523e999091cc6 Mon Sep 17 00:00:00 2001 From: Aryan Jassal Date: Tue, 1 Oct 2024 16:58:14 +1000 Subject: [PATCH] feat: added 'VaultsSecretsTouch' handler [ci skip] --- src/client/handlers/VaultsSecretsTouch.ts | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/client/handlers/VaultsSecretsTouch.ts diff --git a/src/client/handlers/VaultsSecretsTouch.ts b/src/client/handlers/VaultsSecretsTouch.ts new file mode 100644 index 000000000..c3a75fb33 --- /dev/null +++ b/src/client/handlers/VaultsSecretsTouch.ts @@ -0,0 +1,29 @@ +import type { DB } from '@matrixai/db'; +import type { + ClientRPCRequestParams, + ClientRPCResponseResult, + ContentWithErrorMessage, + SecretIdentifierMessage, +} from '../types'; +import type VaultManager from '../../vaults/VaultManager'; +import { DuplexHandler } from '@matrixai/rpc'; +import * as vaultsUtils from '../../vaults/utils'; +import * as vaultsErrors from '../../vaults/errors'; +import * as vaultOps from '../../vaults/VaultOps'; + +class VaultsSecretsTouch extends DuplexHandler< + { + vaultManager: VaultManager; + db: DB; + }, + ClientRPCRequestParams, + ClientRPCResponseResult +> { + public handle = async function* ( + input: AsyncIterable>, + ): AsyncGenerator> { + // still working on it + }; +} + +export default VaultsSecretsTouch;