1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16package OHOS.Security.AccessToken; 17 18struct UserStateIdl { 19 /** user id */ 20 int userId; 21 /** active status */ 22 boolean isActive; 23}; 24 25struct PermissionWithValueIdl { 26 String permissionName; 27 String value; 28}; 29 30struct UpdateHapInfoParamsIdl { 31 String appIDDesc; 32 /** which version of the SDK is used to develop the hap */ 33 int apiVersion; 34 /** indicates whether the hap is a system app */ 35 boolean isSystemApp; 36 /* app type */ 37 String appDistributionType; 38 /** Whether hap is a atomic service */ 39 boolean isAtomicService; 40 /** Whether ota update */ 41 boolean dataRefresh; 42}; 43 44enum PermissionRulesEnumIdl { 45 PERMISSION_EDM_RULE = 0, 46 PERMISSION_ACL_RULE, 47 PERMISSION_ENTERPRISE_NORMAL_RULE 48}; 49 50struct HapInfoCheckResultIdl { 51 String permissionName; 52 PermissionRulesEnumIdl rule; 53 int realResult 54};