//#region src/gateway/protocol.ts
function apiOk(payload) {
	return {
		ok: true,
		payload
	};
}
function apiError(code, message) {
	return {
		ok: false,
		error: {
			code,
			message
		}
	};
}
//#endregion
export { apiError, apiOk };

//# sourceMappingURL=protocol.js.map