import { Gi as errorShape, Wi as ErrorCodes } from "./src-Be_xtoAf.js";
import { r as invokeNativeHookRelay } from "./native-hook-relay-CKLER864.js";
//#region src/gateway/server-methods/native-hook-relay.ts
const nativeHookRelayHandlers = { "nativeHook.invoke": async ({ params, respond }) => {
	try {
		respond(true, await invokeNativeHookRelay({
			provider: params.provider,
			relayId: params.relayId,
			generation: params.generation,
			event: params.event,
			rawPayload: params.rawPayload,
			requireGeneration: true
		}));
	} catch (error) {
		respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, error instanceof Error ? error.message : "native hook relay failed"));
	}
} };
//#endregion
export { nativeHookRelayHandlers };
