feat(operations): add audited runtime catalog

This commit is contained in:
chick
2026-07-17 09:07:50 +08:00
parent 243565a75e
commit 8018b36adf
15 changed files with 1617 additions and 21 deletions
@@ -0,0 +1,139 @@
export interface OperationCatalogMetadata {
readonly title: string;
readonly parameterSchemaId: string;
}
/** Explicit reviewed titles keyed by every operation in the audited 58e2204 registry. */
const operationTitles58e2204: Readonly<Record<string, string>> = Object.freeze({
getDevice: 'Get Device',
getSim: 'Get SIM',
postSimDetailsRefresh: 'Run SIM Details Refresh',
postSimCache: 'Run SIM Cache',
getNetwork: 'Get Network',
getCells: 'Get Cells',
postCellMonitorStart: 'Start Cell Monitor',
postCellMonitorStop: 'Stop Cell Monitor',
getRadioMode: 'Get Radio Mode',
postRadioMode: 'Set Radio Mode',
getBandLock: 'Get Band Lock',
postBandLock: 'Set Band Lock',
getNetworkInterfaces: 'Get Network Interfaces',
getNetworkConnectionAddresses: 'Get Network Connection Addresses',
getDeviceNetworkDdnsConfig: 'Get Device Network DDNS Config',
postDeviceNetworkDdnsConfig: 'Set Device Network DDNS Config',
getDeviceNetworkDdnsStatus: 'Get Device Network DDNS Status',
postDeviceNetworkDdnsSync: 'Sync Device Network DDNS',
getDeviceNetworkDdnsLogs: 'Get Device Network DDNS Logs',
postDeviceNetworkDdnsLogsClear: 'Clear Device Network DDNS Logs',
getDeviceNetworkWlanStatus: 'Get Device Network WLAN Status',
postDeviceNetworkWlanEnabled: 'Set Device Network WLAN Enabled',
postDeviceNetworkWlanScan: 'Scan Device Network WLAN',
getDeviceNetworkWlanProfiles: 'Get Device Network WLAN Profiles',
postDeviceNetworkWlanForget: 'Forget Device Network WLAN',
postDeviceNetworkWlanConnect: 'Connect Device Network WLAN',
postDeviceNetworkWlanDisconnect: 'Disconnect Device Network WLAN',
postDeviceNetworkWlanProfile: 'Set Device Network WLAN Profile',
getNetworkSignalStrength: 'Get Network Signal Strength',
getLocationCellInfo: 'Get Location Cell Info',
getNetworkOperators: 'Get Network Operators',
getNetworkOperatorsScan: 'Scan Network Operators',
postNetworkRegisterManual: 'Register Network Manually',
postNetworkRegisterAuto: 'Register Network Automatically',
getApn: 'Get APN',
postApn: 'Set APN',
getCellLock: 'Get Cell Lock',
postCellLock: 'Set Cell Lock',
postCellLockUnlockAll: 'Unlock All Cell Locks',
getData: 'Get Data',
postData: 'Set Data',
getRoaming: 'Get Roaming',
postRoaming: 'Set Roaming',
getAirplaneMode: 'Get Airplane Mode',
postAirplaneMode: 'Set Airplane Mode',
postBasebandRestart: 'Restart Baseband',
getBasebandRestartStatus: 'Get Baseband Restart Status',
getWorkMode: 'Get Work Mode',
postWorkMode: 'Set Work Mode',
getEsimConfig: 'Get eSIM Config',
postEsimConfig: 'Set eSIM Config',
getEsimLpacStatus: 'Get eSIM LPAC Status',
postEsimLpacRepair: 'Repair eSIM LPAC',
getEsimEuicc: 'Get eSIM eUICC',
getEsimProfiles: 'Get eSIM Profiles',
postEsimProfiles: 'Add eSIM Profile',
postEsimProfilesIccidEnable: 'Enable eSIM Profile ICCID',
postEsimProfilesIccidRename: 'Rename eSIM Profile ICCID',
deleteEsimProfilesIccid: 'Delete eSIM Profile ICCID',
getCalls: 'Get Calls',
postCallDial: 'Dial Call',
postCallHangup: 'Hang Up Call',
postCallHangupAll: 'Hang Up All Calls',
postCallAnswer: 'Answer Call',
getCallVolume: 'Get Call Volume',
postCallVolume: 'Set Call Volume',
getCallForwarding: 'Get Call Forwarding',
postCallForwarding: 'Set Call Forwarding',
getCallSettings: 'Get Call Settings',
postCallSettings: 'Set Call Settings',
getCallHistory: 'Get Call History',
deleteCallHistoryId: 'Delete Call History ID',
postCallHistoryClear: 'Clear Call History',
getImsStatus: 'Get IMS Status',
getVoicemailStatus: 'Get Voicemail Status',
postSmsSend: 'Send SMS',
getSmsList: 'Get SMS List',
getSmsConversation: 'Get SMS Conversation',
getSmsStats: 'Get SMS Stats',
postSmsBatchDelete: 'Delete SMS Batch',
deleteSmsConversationPhoneNumber: 'Delete SMS Conversation Phone Number',
deleteSmsMessageId: 'Delete SMS Message ID',
postSmsClear: 'Clear SMS',
getStats: 'Get Stats',
getStatsCpu: 'Get Stats CPU',
getConnectivity: 'Get Connectivity',
postSystemReboot: 'Reboot System',
postServiceRestart: 'Restart Service',
getNotificationsConfig: 'Get Notifications Config',
postNotificationsConfig: 'Set Notifications Config',
postNotificationsTestChannel: 'Test Notifications Channel',
getNotificationsLogs: 'Get Notifications Logs',
postNotificationsLogsClear: 'Clear Notifications Logs',
getNotificationsQueue: 'Get Notifications Queue',
postNotificationsQueueRetryAll: 'Retry All Notifications Queue Items',
postNotificationsQueueClear: 'Clear Notifications Queue',
deleteNotificationsQueueId: 'Delete Notifications Queue ID',
postNotificationsQueueIdRetry: 'Retry Notifications Queue ID',
getAutomationConfig: 'Get Automation Config',
postAutomationConfig: 'Set Automation Config',
getAutomationLogs: 'Get Automation Logs',
postAutomationLogsClear: 'Clear Automation Logs',
postAutomationTestTaskId: 'Test Automation Task ID',
getOtaStatus: 'Get OTA Status',
postOtaUpload: 'Upload OTA',
postOtaLatestRelease: 'Get OTA Latest Release',
postOtaOnlinePrepare: 'Prepare OTA Online',
postOtaApply: 'Apply OTA',
postOtaCancel: 'Cancel OTA',
postAuthPassword: 'Change Auth Password',
getAuthSettings: 'Get Auth Settings',
postAuthSettings: 'Set Auth Settings',
getHealth: 'Get Health',
getAuthStatus: 'Get Auth Status',
postAuthSetup: 'Set Up Auth',
postAuthLogin: 'Log In',
postAuthLogout: 'Log Out',
});
/** Stable schema IDs are materialized once from the explicit, exact reviewed key set. */
export const operationMetadata58e2204: Readonly<Record<string, OperationCatalogMetadata>> =
Object.freeze(
Object.fromEntries(
Object.entries(operationTitles58e2204).map(([operationId, title]) => [
operationId,
Object.freeze({
title,
parameterSchemaId: `simadmin.58e2204.${operationId}.parameters.v1`,
}),
]),
),
);