import type { KbxOperationRun, KbxRuntimeNotice, KbxUserNotification } from '@kbx/contracts' import { kbxApi } from '../http/generated/kbxApiClient' export const runtimeApi = { getNotice() { return kbxApi.request('common.runtime.notice') }, getOperations() { return kbxApi.request('common.runtime.operations', { query: { limit: 20 } }) }, getNotifications() { return kbxApi.request('common.runtime.notifications', { query: { limit: 30 } }) }, markNotificationRead(id: string) { return kbxApi.request('common.runtime.notificationRead', { path: { Id: id } }) }, }