/* eslint-disable */
// Generated by scripts/generate-api-client.mjs. Do not edit manually.
import type { PermissionCode } from "@/app/permissions";

export type ApiHttpMethod = "DELETE" | "GET" | "PATCH" | "POST" | "PUT";

export interface ApiEndpoint {
  method: ApiHttpMethod;
  operationId: string;
  path: string;
  permission?: PermissionCode;
  permissions?: PermissionCode[];
}

export const API_OPERATIONS = {
  addGameWhitelistUser: "addGameWhitelistUser",
  adjustDicePool: "adjustDicePool",
  adminAddAgencyHost: "adminAddAgencyHost",
  appAdjustUserLevels: "appAdjustUserLevels",
  appBanUser: "appBanUser",
  appExportUsers: "appExportUsers",
  appGetUser: "appGetUser",
  appIssueUserAccessToken: "appIssueUserAccessToken",
  appListBannedUsers: "appListBannedUsers",
  appListLoginLogs: "appListLoginLogs",
  appListUserLoginLogs: "appListUserLoginLogs",
  appListUsers: "appListUsers",
  approveCoinSellerSubApplication: "approveCoinSellerSubApplication",
  approveFinanceWithdrawalApplication: "approveFinanceWithdrawalApplication",
  approveOperationsWithdrawalApplication: "approveOperationsWithdrawalApplication",
  appSetPassword: "appSetPassword",
  appUnbanUser: "appUnbanUser",
  appUpdateUser: "appUpdateUser",
  batchCreateGifts: "batchCreateGifts",
  batchDeleteResources: "batchDeleteResources",
  batchUpdateUserStatus: "batchUpdateUserStatus",
  batchUpsertLevelConfig: "batchUpsertLevelConfig",
  cancelJob: "cancelJob",
  cancelRoomPin: "cancelRoomPin",
  changePassword: "changePassword",
  cloneActivityTemplate: "cloneActivityTemplate",
  closeAgency: "closeAgency",
  createAchievementDefinition: "createAchievementDefinition",
  createActivityTemplate: "createActivityTemplate",
  createAgency: "createAgency",
  createAppVersion: "createAppVersion",
  createBanner: "createBanner",
  createBD: "createBD",
  createBDLeader: "createBDLeader",
  createCatalog: "createCatalog",
  createCoinAdjustment: "createCoinAdjustment",
  createCoinSeller: "createCoinSeller",
  createCountry: "createCountry",
  createEmojiPack: "createEmojiPack",
  createExploreTab: "createExploreTab",
  createExternalAdminUser: "createExternalAdminUser",
  createExternalWithdrawalApplication: "createExternalWithdrawalApplication",
  createFinanceCoinSellerRechargeOrder: "createFinanceCoinSellerRechargeOrder",
  createFullServerNoticeFanout: "createFullServerNoticeFanout",
  createGift: "createGift",
  createH5Link: "createH5Link",
  createHostAgencyPolicy: "createHostAgencyPolicy",
  createLuckyGiftExperiment: "createLuckyGiftExperiment",
  createManager: "createManager",
  createMenu: "createMenu",
  createPermission: "createPermission",
  createPlatform: "createPlatform",
  createPolicyInstance: "createPolicyInstance",
  createPopup: "createPopup",
  createPrettyIdPool: "createPrettyIdPool",
  createRechargeProduct: "createRechargeProduct",
  createRegion: "createRegion",
  createResource: "createResource",
  createResourceGroup: "createResourceGroup",
  createRobotRoom: "createRobotRoom",
  createRole: "createRole",
  createRoomPin: "createRoomPin",
  createSplashScreen: "createSplashScreen",
  createTaskDefinition: "createTaskDefinition",
  createTeam: "createTeam",
  createTeamSalaryPolicy: "createTeamSalaryPolicy",
  createTemporaryPaymentLink: "createTemporaryPaymentLink",
  createTier: "createTier",
  createUser: "createUser",
  createWeeklyStarCycle: "createWeeklyStarCycle",
  creditCoinSellerStock: "creditCoinSellerStock",
  creditLuckyGiftPool: "creditLuckyGiftPool",
  dashboardOverview: "dashboardOverview",
  dashboardUserProfileOverview: "dashboardUserProfileOverview",
  debitCoinSellerStock: "debitCoinSellerStock",
  debitLuckyGiftPool: "debitLuckyGiftPool",
  deleteAchievementDefinition: "deleteAchievementDefinition",
  deleteActivityTemplate: "deleteActivityTemplate",
  deleteAgency: "deleteAgency",
  deleteAppVersion: "deleteAppVersion",
  deleteBanner: "deleteBanner",
  deleteBDLeader: "deleteBDLeader",
  deleteCatalog: "deleteCatalog",
  deleteCountry: "deleteCountry",
  deleteDiceRobot: "deleteDiceRobot",
  deleteExploreTab: "deleteExploreTab",
  deleteGameWhitelistUser: "deleteGameWhitelistUser",
  deleteGift: "deleteGift",
  deleteH5Link: "deleteH5Link",
  deleteHostAgencyPolicy: "deleteHostAgencyPolicy",
  deleteMenu: "deleteMenu",
  deletePermission: "deletePermission",
  deletePopup: "deletePopup",
  deleteRechargeProduct: "deleteRechargeProduct",
  deleteResource: "deleteResource",
  deleteRole: "deleteRole",
  deleteRoom: "deleteRoom",
  deleteSplashScreen: "deleteSplashScreen",
  deleteTeamSalaryPolicy: "deleteTeamSalaryPolicy",
  disableCountry: "disableCountry",
  disableGift: "disableGift",
  disableRegion: "disableRegion",
  disableResource: "disableResource",
  disableResourceGroup: "disableResourceGroup",
  disableResourceShopItem: "disableResourceShopItem",
  downloadJobArtifact: "downloadJobArtifact",
  enableCountry: "enableCountry",
  enableGift: "enableGift",
  enableRegion: "enableRegion",
  enableResource: "enableResource",
  enableResourceGroup: "enableResourceGroup",
  enableResourceShopItem: "enableResourceShopItem",
  endLuckyGiftExperiment: "endLuckyGiftExperiment",
  expireRoomRpsChallenge: "expireRoomRpsChallenge",
  exportActivityTemplateData: "exportActivityTemplateData",
  exportCoinSellerLedger: "exportCoinSellerLedger",
  exportLoginLogs: "exportLoginLogs",
  exportOperationLogs: "exportOperationLogs",
  exportRechargeBills: "exportRechargeBills",
  exportUsers: "exportUsers",
  generateDiceRobots: "generateDiceRobots",
  generatePrettyIds: "generatePrettyIds",
  getActivityTemplate: "getActivityTemplate",
  getActivityTemplateData: "getActivityTemplateData",
  getCoinSellerSalaryRates: "getCoinSellerSalaryRates",
  getCountry: "getCountry",
  getCPConfig: "getCPConfig",
  getCPWeeklyRankConfig: "getCPWeeklyRankConfig",
  getCumulativeRechargeRewardConfig: "getCumulativeRechargeRewardConfig",
  getExternalAdminUserPermissions: "getExternalAdminUserPermissions",
  getFinanceCoinSellerRechargeExchangeRate: "getFinanceCoinSellerRechargeExchangeRate",
  getFinanceScope: "getFinanceScope",
  getFinanceUSDTAddresses: "getFinanceUSDTAddresses",
  getFirstRechargeRewardConfig: "getFirstRechargeRewardConfig",
  getHumanRoomRobotConfig: "getHumanRoomRobotConfig",
  getInviteActivityRewardConfig: "getInviteActivityRewardConfig",
  getJob: "getJob",
  getLuckyGiftConfig: "getLuckyGiftConfig",
  getLuckyGiftDrawSummary: "getLuckyGiftDrawSummary",
  getLuckyGiftUserProfile: "getLuckyGiftUserProfile",
  getRechargeBillOverview: "getRechargeBillOverview",
  getRechargeBillSummary: "getRechargeBillSummary",
  getRedPacket: "getRedPacket",
  getRedPacketConfig: "getRedPacketConfig",
  getRegion: "getRegion",
  getRegistrationRewardConfig: "getRegistrationRewardConfig",
  getResource: "getResource",
  getResourceGroup: "getResourceGroup",
  getResourceIdentityAutoGrantConfig: "getResourceIdentityAutoGrantConfig",
  getRiskConfig: "getRiskConfig",
  getRoleDataScopes: "getRoleDataScopes",
  getRoomConfig: "getRoomConfig",
  getRoomRocketConfig: "getRoomRocketConfig",
  getRoomRpsChallenge: "getRoomRpsChallenge",
  getRoomRpsConfig: "getRoomRpsConfig",
  getRoomTurnoverRewardConfig: "getRoomTurnoverRewardConfig",
  getRoomWhitelistConfig: "getRoomWhitelistConfig",
  getSevenDayCheckInConfig: "getSevenDayCheckInConfig",
  getSocialBiFunnel: "getSocialBiFunnel",
  getSocialBiKpi: "getSocialBiKpi",
  getSocialBiMaster: "getSocialBiMaster",
  getSocialBiOverview: "getSocialBiOverview",
  getSocialBiRequirements: "getSocialBiRequirements",
  getTemporaryPaymentLink: "getTemporaryPaymentLink",
  getUser: "getUser",
  getUserAppScopes: "getUserAppScopes",
  getVipConfig: "getVipConfig",
  getVipProgram: "getVipProgram",
  getWeeklyStarCycle: "getWeeklyStarCycle",
  getWheelConfig: "getWheelConfig",
  getWheelDrawSummary: "getWheelDrawSummary",
  grantFinanceCoinSellerRechargeOrder: "grantFinanceCoinSellerRechargeOrder",
  grantPrettyId: "grantPrettyId",
  grantResource: "grantResource",
  grantResourceGroup: "grantResourceGroup",
  grantVip: "grantVip",
  grantVipTrialCard: "grantVipTrialCard",
  listAchievementDefinitions: "listAchievementDefinitions",
  listActivityTemplateLeaderboard: "listActivityTemplateLeaderboard",
  listActivityTemplateRewardJobs: "listActivityTemplateRewardJobs",
  listActivityTemplates: "listActivityTemplates",
  listActivityTemplateTaskClaims: "listActivityTemplateTaskClaims",
  listActivityTemplateVersions: "listActivityTemplateVersions",
  listAgencies: "listAgencies",
  listApps: "listApps",
  listAppVersions: "listAppVersions",
  listAvailableRoomRobots: "listAvailableRoomRobots",
  listBanners: "listBanners",
  listBDLeaders: "listBDLeaders",
  listBDs: "listBDs",
  listCatalog: "listCatalog",
  listCoinAdjustments: "listCoinAdjustments",
  listCoinLedger: "listCoinLedger",
  listCoinSellerLedger: "listCoinSellerLedger",
  listCoinSellers: "listCoinSellers",
  listCoinSellerSubApplications: "listCoinSellerSubApplications",
  listCoinSellerSubSellers: "listCoinSellerSubSellers",
  listCountries: "listCountries",
  listCPApplications: "listCPApplications",
  listCPRelationships: "listCPRelationships",
  listCPWeeklyRankSettlements: "listCPWeeklyRankSettlements",
  listCumulativeRechargeRewardGrants: "listCumulativeRechargeRewardGrants",
  listDiceRobots: "listDiceRobots",
  listEmojiPackCategories: "listEmojiPackCategories",
  listEmojiPacks: "listEmojiPacks",
  listExploreTabs: "listExploreTabs",
  listExternalAdminPermissionCatalog: "listExternalAdminPermissionCatalog",
  listExternalAdminUsers: "listExternalAdminUsers",
  listFinanceCoinSellerRechargeOrders: "listFinanceCoinSellerRechargeOrders",
  listFinanceScopeAssignments: "listFinanceScopeAssignments",
  listFinanceWithdrawalApplications: "listFinanceWithdrawalApplications",
  listFirstRechargeRewardClaims: "listFirstRechargeRewardClaims",
  listGameWhitelistUsers: "listGameWhitelistUsers",
  listGiftRecords: "listGiftRecords",
  listGifts: "listGifts",
  listGiftTypes: "listGiftTypes",
  listH5Links: "listH5Links",
  listHostAgencyPolicies: "listHostAgencyPolicies",
  listHosts: "listHosts",
  listHostSalarySettlements: "listHostSalarySettlements",
  listHostWithdrawals: "listHostWithdrawals",
  listInviteActivityRewardClaims: "listInviteActivityRewardClaims",
  listJobs: "listJobs",
  listLevelConfig: "listLevelConfig",
  listLoginLogs: "listLoginLogs",
  listLuckyGiftConfigs: "listLuckyGiftConfigs",
  listLuckyGiftConfigVersions: "listLuckyGiftConfigVersions",
  listLuckyGiftDraws: "listLuckyGiftDraws",
  listLuckyGiftExperiments: "listLuckyGiftExperiments",
  listLuckyGiftPoolBalances: "listLuckyGiftPoolBalances",
  listLuckyGiftUserProfiles: "listLuckyGiftUserProfiles",
  listManagers: "listManagers",
  listOperationLogs: "listOperationLogs",
  listOperationsWithdrawalApplications: "listOperationsWithdrawalApplications",
  listPermissions: "listPermissions",
  listPlatformGrantRecords: "listPlatformGrantRecords",
  listPlatformGrantUsers: "listPlatformGrantUsers",
  listPlatforms: "listPlatforms",
  listPolicyInstances: "listPolicyInstances",
  listPolicyTemplates: "listPolicyTemplates",
  listPopups: "listPopups",
  listPrettyIdPools: "listPrettyIdPools",
  listPrettyIds: "listPrettyIds",
  listRechargeApps: "listRechargeApps",
  listRechargeBills: "listRechargeBills",
  listRechargeProducts: "listRechargeProducts",
  listRechargeRegions: "listRechargeRegions",
  listRedPackets: "listRedPackets",
  listRegionBlocks: "listRegionBlocks",
  listRegions: "listRegions",
  listRegistrationRewardClaims: "listRegistrationRewardClaims",
  listReports: "listReports",
  listResourceGrants: "listResourceGrants",
  listResourceGroups: "listResourceGroups",
  listResources: "listResources",
  listResourceShopItems: "listResourceShopItems",
  listResourceShopPurchaseOrders: "listResourceShopPurchaseOrders",
  listRobotRooms: "listRobotRooms",
  listRoles: "listRoles",
  listRoomPins: "listRoomPins",
  listRoomRpsChallenges: "listRoomRpsChallenges",
  listRooms: "listRooms",
  listRoomTurnoverRewardSettlements: "listRoomTurnoverRewardSettlements",
  listSelfGames: "listSelfGames",
  listSevenDayCheckInClaims: "listSevenDayCheckInClaims",
  listSplashScreens: "listSplashScreens",
  listSystemMenus: "listSystemMenus",
  listTaskDefinitions: "listTaskDefinitions",
  listTeams: "listTeams",
  listTeamSalaryPolicies: "listTeamSalaryPolicies",
  listTeamUsers: "listTeamUsers",
  listTemporaryPaymentLinks: "listTemporaryPaymentLinks",
  listThirdPartyPaymentChannels: "listThirdPartyPaymentChannels",
  listUserFinanceScopes: "listUserFinanceScopes",
  listUserLeaderboards: "listUserLeaderboards",
  listUsers: "listUsers",
  listVisibleApps: "listVisibleApps",
  listWeeklyStarCycles: "listWeeklyStarCycles",
  listWeeklyStarLeaderboard: "listWeeklyStarLeaderboard",
  listWeeklyStarSettlements: "listWeeklyStarSettlements",
  listWheelDraws: "listWheelDraws",
  login: "login",
  logout: "logout",
  lookupCoinAdjustmentTarget: "lookupCoinAdjustmentTarget",
  lookupExternalAdminUserTarget: "lookupExternalAdminUserTarget",
  lookupResourceGrantTarget: "lookupResourceGrantTarget",
  me: "me",
  navigationMenus: "navigationMenus",
  publishHostAgencyPolicy: "publishHostAgencyPolicy",
  publishPolicyInstance: "publishPolicyInstance",
  quoteFinanceCoinSellerRechargeOrder: "quoteFinanceCoinSellerRechargeOrder",
  recyclePrettyId: "recyclePrettyId",
  refresh: "refresh",
  refreshGoogleRechargePaid: "refreshGoogleRechargePaid",
  rejectCoinSellerSubApplication: "rejectCoinSellerSubApplication",
  rejectFinanceWithdrawalApplication: "rejectFinanceWithdrawalApplication",
  rejectOperationsWithdrawalApplication: "rejectOperationsWithdrawalApplication",
  renameCountryCode: "renameCountryCode",
  replaceCoinSellerSalaryRates: "replaceCoinSellerSalaryRates",
  replaceFinanceCoinSellerRechargeExchangeRate: "replaceFinanceCoinSellerRechargeExchangeRate",
  replaceRegionBlocks: "replaceRegionBlocks",
  replaceRegionCountries: "replaceRegionCountries",
  replaceRoleDataScopes: "replaceRoleDataScopes",
  replaceRolePermissions: "replaceRolePermissions",
  replaceUserAppScopes: "replaceUserAppScopes",
  replaceUserFinanceScopes: "replaceUserFinanceScopes",
  resetExternalAdminUserPassword: "resetExternalAdminUserPassword",
  resetUserPassword: "resetUserPassword",
  retryActivityTemplateRewardJob: "retryActivityTemplateRewardJob",
  retryActivityTemplateTaskClaim: "retryActivityTemplateTaskClaim",
  retryRedPacketRefund: "retryRedPacketRefund",
  retryRoomRpsSettlement: "retryRoomRpsSettlement",
  retryRoomTurnoverRewardSettlement: "retryRoomTurnoverRewardSettlement",
  revokeAppUserResource: "revokeAppUserResource",
  revokeResourceGrant: "revokeResourceGrant",
  rollbackLuckyGiftConfig: "rollbackLuckyGiftConfig",
  savePolicyTemplate: "savePolicyTemplate",
  search: "search",
  selfGameStatisticsOverview: "selfGameStatisticsOverview",
  setActivityTemplateStatus: "setActivityTemplateStatus",
  setAgencyJoinEnabled: "setAgencyJoinEnabled",
  setAgencyStatus: "setAgencyStatus",
  setBDLeaderStatus: "setBDLeaderStatus",
  setBDStatus: "setBDStatus",
  setCoinSellerStatus: "setCoinSellerStatus",
  setDiceRobotStatus: "setDiceRobotStatus",
  setGameStatus: "setGameStatus",
  setGameWhitelistEnabled: "setGameWhitelistEnabled",
  setLuckyGiftExperimentOverrides: "setLuckyGiftExperimentOverrides",
  setPrettyIdStatus: "setPrettyIdStatus",
  setTaskDefinitionStatus: "setTaskDefinitionStatus",
  setThirdPartyPaymentMethodStatus: "setThirdPartyPaymentMethodStatus",
  setWeeklyStarCycleStatus: "setWeeklyStarCycleStatus",
  sortMenus: "sortMenus",
  startRobotRoom: "startRobotRoom",
  statisticsOverview: "statisticsOverview",
  stopRobotRoom: "stopRobotRoom",
  syncPermissions: "syncPermissions",
  syncThirdPartyPaymentMethods: "syncThirdPartyPaymentMethods",
  syncThirdPartyPaymentRates: "syncThirdPartyPaymentRates",
  updateAchievementDefinition: "updateAchievementDefinition",
  updateActivityTemplate: "updateActivityTemplate",
  updateAppVersion: "updateAppVersion",
  updateBanner: "updateBanner",
  updateCatalog: "updateCatalog",
  updateCountry: "updateCountry",
  updateCPConfig: "updateCPConfig",
  updateCPWeeklyRankConfig: "updateCPWeeklyRankConfig",
  updateCumulativeRechargeRewardConfig: "updateCumulativeRechargeRewardConfig",
  updateDiceConfig: "updateDiceConfig",
  updateExploreTab: "updateExploreTab",
  updateExternalAdminUserPermissions: "updateExternalAdminUserPermissions",
  updateExternalAdminUserStatus: "updateExternalAdminUserStatus",
  updateFirstRechargeRewardConfig: "updateFirstRechargeRewardConfig",
  updateGift: "updateGift",
  updateGiftType: "updateGiftType",
  updateGiftTypes: "updateGiftTypes",
  updateH5Link: "updateH5Link",
  updateH5Links: "updateH5Links",
  updateHostAgencyPolicy: "updateHostAgencyPolicy",
  updateHumanRoomRobotConfig: "updateHumanRoomRobotConfig",
  updateInviteActivityRewardConfig: "updateInviteActivityRewardConfig",
  updateLuckyGiftExperiment: "updateLuckyGiftExperiment",
  updateManager: "updateManager",
  updateMenu: "updateMenu",
  updateMenuVisible: "updateMenuVisible",
  updatePermission: "updatePermission",
  updatePlatform: "updatePlatform",
  updatePolicyInstanceStatus: "updatePolicyInstanceStatus",
  updatePopup: "updatePopup",
  updatePrettyIdPool: "updatePrettyIdPool",
  updateRechargeProduct: "updateRechargeProduct",
  updateRedPacketConfig: "updateRedPacketConfig",
  updateRegion: "updateRegion",
  updateRegistrationRewardConfig: "updateRegistrationRewardConfig",
  updateResource: "updateResource",
  updateResourceGroup: "updateResourceGroup",
  updateResourceGroupItems: "updateResourceGroupItems",
  updateResourceIdentityAutoGrantConfig: "updateResourceIdentityAutoGrantConfig",
  updateRiskConfig: "updateRiskConfig",
  updateRole: "updateRole",
  updateRoom: "updateRoom",
  updateRoomConfig: "updateRoomConfig",
  updateRoomRocketConfig: "updateRoomRocketConfig",
  updateRoomRpsConfig: "updateRoomRpsConfig",
  updateRoomTurnoverRewardConfig: "updateRoomTurnoverRewardConfig",
  updateRoomWhitelistConfig: "updateRoomWhitelistConfig",
  updateSevenDayCheckInConfig: "updateSevenDayCheckInConfig",
  updateSplashScreen: "updateSplashScreen",
  updateTaskDefinition: "updateTaskDefinition",
  updateTeam: "updateTeam",
  updateTeamSalaryPolicy: "updateTeamSalaryPolicy",
  updateThirdPartyPaymentRate: "updateThirdPartyPaymentRate",
  updateTier: "updateTier",
  updateTrack: "updateTrack",
  updateUser: "updateUser",
  updateUserStatus: "updateUserStatus",
  updateVipConfig: "updateVipConfig",
  updateVipProgram: "updateVipProgram",
  updateWeeklyStarCycle: "updateWeeklyStarCycle",
  uploadFile: "uploadFile",
  uploadImage: "uploadImage",
  upsertFinanceUSDTAddress: "upsertFinanceUSDTAddress",
  upsertLuckyGiftConfig: "upsertLuckyGiftConfig",
  upsertResourceShopItems: "upsertResourceShopItems",
  upsertRule: "upsertRule",
  upsertWheelConfig: "upsertWheelConfig",
  validateActivityTemplate: "validateActivityTemplate",
  verifyFinanceCoinSellerRechargeOrder: "verifyFinanceCoinSellerRechargeOrder",
  verifyFinanceCoinSellerRechargeReceipt: "verifyFinanceCoinSellerRechargeReceipt"
} as const;

export type ApiOperationId = (typeof API_OPERATIONS)[keyof typeof API_OPERATIONS];

export const API_ENDPOINTS: Record<ApiOperationId, ApiEndpoint> = {
  addGameWhitelistUser: {
    method: "POST",
    operationId: API_OPERATIONS.addGameWhitelistUser,
    path: "/v1/admin/game/games/{game_id}/whitelist/users",
    permission: "game:update",
    permissions: ["game:update"]
  },
  adjustDicePool: {
    method: "POST",
    operationId: API_OPERATIONS.adjustDicePool,
    path: "/v1/admin/game/self-games/{game_id}/pool/adjust",
    permission: "game:update",
    permissions: ["game:update"]
  },
  adminAddAgencyHost: {
    method: "POST",
    operationId: API_OPERATIONS.adminAddAgencyHost,
    path: "/v1/admin/agencies/{agency_id}/hosts",
    permission: "agency:create",
    permissions: ["agency:create"]
  },
  appAdjustUserLevels: {
    method: "PUT",
    operationId: API_OPERATIONS.appAdjustUserLevels,
    path: "/v1/app/users/{id}/levels",
    permission: "app-user:level",
    permissions: ["app-user:level"]
  },
  appBanUser: {
    method: "POST",
    operationId: API_OPERATIONS.appBanUser,
    path: "/v1/app/users/{id}/ban",
    permission: "app-user:status",
    permissions: ["app-user:status"]
  },
  appExportUsers: {
    method: "POST",
    operationId: API_OPERATIONS.appExportUsers,
    path: "/v1/exports/app-users",
    permission: "app-user:export",
    permissions: ["app-user:export"]
  },
  appGetUser: {
    method: "GET",
    operationId: API_OPERATIONS.appGetUser,
    path: "/v1/app/users/{id}",
    permission: "app-user:view",
    permissions: ["app-user:view"]
  },
  appIssueUserAccessToken: {
    method: "POST",
    operationId: API_OPERATIONS.appIssueUserAccessToken,
    path: "/v1/app/users/{id}/access-token",
    permission: "app-user:token",
    permissions: ["app-user:token"]
  },
  appListBannedUsers: {
    method: "GET",
    operationId: API_OPERATIONS.appListBannedUsers,
    path: "/v1/app/users/bans",
    permission: "app-user:view",
    permissions: ["app-user:view"]
  },
  appListLoginLogs: {
    method: "GET",
    operationId: API_OPERATIONS.appListLoginLogs,
    path: "/v1/app/users/login-logs",
    permission: "app-user:view",
    permissions: ["app-user:view"]
  },
  appListUserLoginLogs: {
    method: "GET",
    operationId: API_OPERATIONS.appListUserLoginLogs,
    path: "/v1/app/users/{id}/login-logs",
    permission: "app-user:view",
    permissions: ["app-user:view"]
  },
  appListUsers: {
    method: "GET",
    operationId: API_OPERATIONS.appListUsers,
    path: "/v1/app/users",
    permission: "app-user:view",
    permissions: ["app-user:view"]
  },
  approveCoinSellerSubApplication: {
    method: "POST",
    operationId: API_OPERATIONS.approveCoinSellerSubApplication,
    path: "/v1/admin/coin-seller-sub-applications/{application_id}/approve",
    permission: "coin-seller-sub-application:audit",
    permissions: ["coin-seller-sub-application:audit"]
  },
  approveFinanceWithdrawalApplication: {
    method: "POST",
    operationId: API_OPERATIONS.approveFinanceWithdrawalApplication,
    path: "/v1/admin/finance/withdrawal-applications/{application_id}/approve",
    permission: "finance-withdrawal:audit",
    permissions: ["finance-withdrawal:audit"]
  },
  approveOperationsWithdrawalApplication: {
    method: "POST",
    operationId: API_OPERATIONS.approveOperationsWithdrawalApplication,
    path: "/v1/admin/operations/withdrawal-applications/{application_id}/approve",
    permission: "operations-withdrawal:audit",
    permissions: ["operations-withdrawal:audit"]
  },
  appSetPassword: {
    method: "POST",
    operationId: API_OPERATIONS.appSetPassword,
    path: "/v1/app/users/{id}/password",
    permission: "app-user:password",
    permissions: ["app-user:password"]
  },
  appUnbanUser: {
    method: "POST",
    operationId: API_OPERATIONS.appUnbanUser,
    path: "/v1/app/users/{id}/unban",
    permission: "app-user:status",
    permissions: ["app-user:status"]
  },
  appUpdateUser: {
    method: "PATCH",
    operationId: API_OPERATIONS.appUpdateUser,
    path: "/v1/app/users/{id}",
    permission: "app-user:update",
    permissions: ["app-user:update"]
  },
  batchCreateGifts: {
    method: "POST",
    operationId: API_OPERATIONS.batchCreateGifts,
    path: "/v1/admin/gifts/batch",
    permission: "gift:create",
    permissions: ["gift:create"]
  },
  batchDeleteResources: {
    method: "POST",
    operationId: API_OPERATIONS.batchDeleteResources,
    path: "/v1/admin/resources/batch-delete",
    permission: "resource:delete",
    permissions: ["resource:delete"]
  },
  batchUpdateUserStatus: {
    method: "POST",
    operationId: API_OPERATIONS.batchUpdateUserStatus,
    path: "/v1/users/batch/status",
    permission: "user:status",
    permissions: ["user:status"]
  },
  batchUpsertLevelConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.batchUpsertLevelConfig,
    path: "/v1/admin/users/level-config/batch",
    permission: "level-config:update",
    permissions: ["level-config:update"]
  },
  cancelJob: {
    method: "POST",
    operationId: API_OPERATIONS.cancelJob,
    path: "/v1/jobs/{id}/cancel",
    permission: "job:cancel",
    permissions: ["job:cancel"]
  },
  cancelRoomPin: {
    method: "DELETE",
    operationId: API_OPERATIONS.cancelRoomPin,
    path: "/v1/admin/rooms/pins/{pin_id}",
    permission: "room-pin:cancel",
    permissions: ["room-pin:cancel"]
  },
  changePassword: {
    method: "POST",
    operationId: API_OPERATIONS.changePassword,
    path: "/v1/auth/change-password"
  },
  cloneActivityTemplate: {
    method: "POST",
    operationId: API_OPERATIONS.cloneActivityTemplate,
    path: "/v1/admin/activities/templates/{template_id}/clone",
    permission: "activity-template:create",
    permissions: ["activity-template:create"]
  },
  closeAgency: {
    method: "POST",
    operationId: API_OPERATIONS.closeAgency,
    path: "/v1/admin/agencies/{agency_id}/close",
    permission: "agency:status",
    permissions: ["agency:status"]
  },
  createAchievementDefinition: {
    method: "POST",
    operationId: API_OPERATIONS.createAchievementDefinition,
    path: "/v1/admin/activity/achievements",
    permission: "achievement:create",
    permissions: ["achievement:create"]
  },
  createActivityTemplate: {
    method: "POST",
    operationId: API_OPERATIONS.createActivityTemplate,
    path: "/v1/admin/activities/templates",
    permission: "activity-template:create",
    permissions: ["activity-template:create"]
  },
  createAgency: {
    method: "POST",
    operationId: API_OPERATIONS.createAgency,
    path: "/v1/admin/agencies",
    permission: "agency:create",
    permissions: ["agency:create"]
  },
  createAppVersion: {
    method: "POST",
    operationId: API_OPERATIONS.createAppVersion,
    path: "/v1/admin/app-config/versions",
    permission: "app-version:create",
    permissions: ["app-version:create"]
  },
  createBanner: {
    method: "POST",
    operationId: API_OPERATIONS.createBanner,
    path: "/v1/admin/app-config/banners",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  createBD: {
    method: "POST",
    operationId: API_OPERATIONS.createBD,
    path: "/v1/admin/bds",
    permission: "bd:create",
    permissions: ["bd:create"]
  },
  createBDLeader: {
    method: "POST",
    operationId: API_OPERATIONS.createBDLeader,
    path: "/v1/admin/bd-leaders",
    permission: "bd:create",
    permissions: ["bd:create"]
  },
  createCatalog: {
    method: "POST",
    operationId: API_OPERATIONS.createCatalog,
    path: "/v1/admin/game/games",
    permission: "game:create",
    permissions: ["game:create"]
  },
  createCoinAdjustment: {
    method: "POST",
    operationId: API_OPERATIONS.createCoinAdjustment,
    path: "/v1/admin/operations/coin-adjustments",
    permission: "coin-adjustment:create",
    permissions: ["coin-adjustment:create"]
  },
  createCoinSeller: {
    method: "POST",
    operationId: API_OPERATIONS.createCoinSeller,
    path: "/v1/admin/coin-sellers",
    permission: "coin-seller:create",
    permissions: ["coin-seller:create"]
  },
  createCountry: {
    method: "POST",
    operationId: API_OPERATIONS.createCountry,
    path: "/v1/admin/countries",
    permission: "country:create",
    permissions: ["country:create"]
  },
  createEmojiPack: {
    method: "POST",
    operationId: API_OPERATIONS.createEmojiPack,
    path: "/v1/admin/emoji-packs",
    permission: "emoji-pack:create",
    permissions: ["emoji-pack:create"]
  },
  createExploreTab: {
    method: "POST",
    operationId: API_OPERATIONS.createExploreTab,
    path: "/v1/admin/app-config/explore-tabs",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  createExternalAdminUser: {
    method: "POST",
    operationId: API_OPERATIONS.createExternalAdminUser,
    path: "/v1/admin/external-admin-users",
    permission: "external-admin-user:create",
    permissions: ["external-admin-user:create","external-admin-user:permissions"]
  },
  createExternalWithdrawalApplication: {
    method: "POST",
    operationId: API_OPERATIONS.createExternalWithdrawalApplication,
    path: "/v1/integrations/withdrawal-applications"
  },
  createFinanceCoinSellerRechargeOrder: {
    method: "POST",
    operationId: API_OPERATIONS.createFinanceCoinSellerRechargeOrder,
    path: "/v1/admin/finance/orders/coin-seller-recharges",
    permission: "finance-order:coin-seller-recharge:create",
    permissions: ["finance-order:coin-seller-recharge:create"]
  },
  createFullServerNoticeFanout: {
    method: "POST",
    operationId: API_OPERATIONS.createFullServerNoticeFanout,
    path: "/v1/admin/operations/full-server-notices/fanout",
    permission: "full-server-notice:send",
    permissions: ["full-server-notice:send"]
  },
  createGift: {
    method: "POST",
    operationId: API_OPERATIONS.createGift,
    path: "/v1/admin/gifts",
    permission: "gift:create",
    permissions: ["gift:create"]
  },
  createH5Link: {
    method: "POST",
    operationId: API_OPERATIONS.createH5Link,
    path: "/v1/admin/app-config/h5-links",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  createHostAgencyPolicy: {
    method: "POST",
    operationId: API_OPERATIONS.createHostAgencyPolicy,
    path: "/v1/admin/host-agency-policies",
    permission: "host-agency-policy:create",
    permissions: ["host-agency-policy:create"]
  },
  createLuckyGiftExperiment: {
    method: "POST",
    operationId: API_OPERATIONS.createLuckyGiftExperiment,
    path: "/v1/admin/ops-center/lucky-gifts/experiments",
    permission: "lucky-gift:experiment",
    permissions: ["lucky-gift:experiment"]
  },
  createManager: {
    method: "POST",
    operationId: API_OPERATIONS.createManager,
    path: "/v1/admin/managers",
    permission: "bd:create",
    permissions: ["bd:create"]
  },
  createMenu: {
    method: "POST",
    operationId: API_OPERATIONS.createMenu,
    path: "/v1/system/menus",
    permission: "menu:create",
    permissions: ["menu:create"]
  },
  createPermission: {
    method: "POST",
    operationId: API_OPERATIONS.createPermission,
    path: "/v1/permissions",
    permission: "permission:create",
    permissions: ["permission:create"]
  },
  createPlatform: {
    method: "POST",
    operationId: API_OPERATIONS.createPlatform,
    path: "/v1/admin/game/platforms",
    permission: "game:update",
    permissions: ["game:update"]
  },
  createPolicyInstance: {
    method: "POST",
    operationId: API_OPERATIONS.createPolicyInstance,
    path: "/v1/admin/policy-instances",
    permission: "policy-instance:create",
    permissions: ["policy-instance:create"]
  },
  createPopup: {
    method: "POST",
    operationId: API_OPERATIONS.createPopup,
    path: "/v1/admin/app-config/popups",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  createPrettyIdPool: {
    method: "POST",
    operationId: API_OPERATIONS.createPrettyIdPool,
    path: "/v1/admin/users/pretty-id-pools",
    permission: "pretty-id:update",
    permissions: ["pretty-id:update"]
  },
  createRechargeProduct: {
    method: "POST",
    operationId: API_OPERATIONS.createRechargeProduct,
    path: "/v1/admin/payment/recharge-products",
    permission: "payment-product:create",
    permissions: ["payment-product:create"]
  },
  createRegion: {
    method: "POST",
    operationId: API_OPERATIONS.createRegion,
    path: "/v1/admin/regions",
    permission: "region:create",
    permissions: ["region:create"]
  },
  createResource: {
    method: "POST",
    operationId: API_OPERATIONS.createResource,
    path: "/v1/admin/resources",
    permission: "resource:create",
    permissions: ["resource:create"]
  },
  createResourceGroup: {
    method: "POST",
    operationId: API_OPERATIONS.createResourceGroup,
    path: "/v1/admin/resource-groups",
    permission: "resource-group:create",
    permissions: ["resource-group:create"]
  },
  createRobotRoom: {
    method: "POST",
    operationId: API_OPERATIONS.createRobotRoom,
    path: "/v1/admin/rooms/robot-rooms",
    permission: "room-robot:create",
    permissions: ["room-robot:create"]
  },
  createRole: {
    method: "POST",
    operationId: API_OPERATIONS.createRole,
    path: "/v1/roles",
    permission: "role:create",
    permissions: ["role:create","role:manage"]
  },
  createRoomPin: {
    method: "POST",
    operationId: API_OPERATIONS.createRoomPin,
    path: "/v1/admin/rooms/pins",
    permission: "room-pin:create",
    permissions: ["room-pin:create"]
  },
  createSplashScreen: {
    method: "POST",
    operationId: API_OPERATIONS.createSplashScreen,
    path: "/v1/admin/app-config/splash-screens",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  createTaskDefinition: {
    method: "POST",
    operationId: API_OPERATIONS.createTaskDefinition,
    path: "/v1/admin/activity/daily-tasks",
    permission: "daily-task:create",
    permissions: ["daily-task:create"]
  },
  createTeam: {
    method: "POST",
    operationId: API_OPERATIONS.createTeam,
    path: "/v1/teams",
    permission: "team:create",
    permissions: ["team:create"]
  },
  createTeamSalaryPolicy: {
    method: "POST",
    operationId: API_OPERATIONS.createTeamSalaryPolicy,
    path: "/v1/admin/team-salary-policies",
    permission: "team-salary-policy:create",
    permissions: ["team-salary-policy:create"]
  },
  createTemporaryPaymentLink: {
    method: "POST",
    operationId: API_OPERATIONS.createTemporaryPaymentLink,
    path: "/v1/admin/payment/temporary-links",
    permission: "payment-temporary-link:create",
    permissions: ["payment-temporary-link:create"]
  },
  createTier: {
    method: "POST",
    operationId: API_OPERATIONS.createTier,
    path: "/v1/admin/users/level-config/tiers",
    permission: "level-config:update",
    permissions: ["level-config:update"]
  },
  createUser: {
    method: "POST",
    operationId: API_OPERATIONS.createUser,
    path: "/v1/users",
    permission: "user:create",
    permissions: ["user:create"]
  },
  createWeeklyStarCycle: {
    method: "POST",
    operationId: API_OPERATIONS.createWeeklyStarCycle,
    path: "/v1/admin/activity/weekly-star/cycles",
    permission: "weekly-star:create",
    permissions: ["weekly-star:create"]
  },
  creditCoinSellerStock: {
    method: "POST",
    operationId: API_OPERATIONS.creditCoinSellerStock,
    path: "/v1/admin/coin-sellers/{user_id}/stock-credits",
    permission: "coin-seller:stock-credit",
    permissions: ["coin-seller:stock-credit"]
  },
  creditLuckyGiftPool: {
    method: "POST",
    operationId: API_OPERATIONS.creditLuckyGiftPool,
    path: "/v1/admin/ops-center/lucky-gifts/pools/credit",
    permission: "lucky-gift:pool-credit",
    permissions: ["lucky-gift:pool-credit"]
  },
  dashboardOverview: {
    method: "GET",
    operationId: API_OPERATIONS.dashboardOverview,
    path: "/v1/dashboard/overview",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  dashboardUserProfileOverview: {
    method: "GET",
    operationId: API_OPERATIONS.dashboardUserProfileOverview,
    path: "/v1/dashboard/user-profile-overview",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  debitCoinSellerStock: {
    method: "POST",
    operationId: API_OPERATIONS.debitCoinSellerStock,
    path: "/v1/admin/coin-sellers/{user_id}/stock-debits",
    permission: "coin-seller:stock-credit",
    permissions: ["coin-seller:stock-credit"]
  },
  debitLuckyGiftPool: {
    method: "POST",
    operationId: API_OPERATIONS.debitLuckyGiftPool,
    path: "/v1/admin/ops-center/lucky-gifts/pools/debit",
    permission: "lucky-gift:pool-debit",
    permissions: ["lucky-gift:pool-debit"]
  },
  deleteAchievementDefinition: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteAchievementDefinition,
    path: "/v1/admin/activity/achievements/{achievement_id}",
    permission: "achievement:update",
    permissions: ["achievement:update"]
  },
  deleteActivityTemplate: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteActivityTemplate,
    path: "/v1/admin/activities/templates/{template_id}",
    permission: "activity-template:delete",
    permissions: ["activity-template:delete"]
  },
  deleteAgency: {
    method: "POST",
    operationId: API_OPERATIONS.deleteAgency,
    path: "/v1/admin/agencies/{agency_id}/delete",
    permission: "agency:delete",
    permissions: ["agency:delete"]
  },
  deleteAppVersion: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteAppVersion,
    path: "/v1/admin/app-config/versions/{version_id}",
    permission: "app-version:delete",
    permissions: ["app-version:delete"]
  },
  deleteBanner: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteBanner,
    path: "/v1/admin/app-config/banners/{banner_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  deleteBDLeader: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteBDLeader,
    path: "/v1/admin/bd-leaders/{user_id}",
    permission: "bd:update",
    permissions: ["bd:update"]
  },
  deleteCatalog: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteCatalog,
    path: "/v1/admin/game/games/{game_id}",
    permission: "game:delete",
    permissions: ["game:delete"]
  },
  deleteCountry: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteCountry,
    path: "/v1/admin/countries/{country_id}",
    permission: "country:status",
    permissions: ["country:status"]
  },
  deleteDiceRobot: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteDiceRobot,
    path: "/v1/admin/game/robots/{user_id}",
    permission: "game:delete",
    permissions: ["game:delete"]
  },
  deleteExploreTab: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteExploreTab,
    path: "/v1/admin/app-config/explore-tabs/{tab_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  deleteGameWhitelistUser: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteGameWhitelistUser,
    path: "/v1/admin/game/games/{game_id}/whitelist/users/{user_id}",
    permission: "game:update",
    permissions: ["game:update"]
  },
  deleteGift: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteGift,
    path: "/v1/admin/gifts/{gift_id}",
    permission: "gift:delete",
    permissions: ["gift:delete"]
  },
  deleteH5Link: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteH5Link,
    path: "/v1/admin/app-config/h5-links/{key}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  deleteHostAgencyPolicy: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteHostAgencyPolicy,
    path: "/v1/admin/host-agency-policies/{policy_id}",
    permission: "host-agency-policy:delete",
    permissions: ["host-agency-policy:delete"]
  },
  deleteMenu: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteMenu,
    path: "/v1/system/menus/{id}",
    permission: "menu:delete",
    permissions: ["menu:delete"]
  },
  deletePermission: {
    method: "DELETE",
    operationId: API_OPERATIONS.deletePermission,
    path: "/v1/permissions/{id}",
    permission: "permission:delete",
    permissions: ["permission:delete"]
  },
  deletePopup: {
    method: "DELETE",
    operationId: API_OPERATIONS.deletePopup,
    path: "/v1/admin/app-config/popups/{popup_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  deleteRechargeProduct: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteRechargeProduct,
    path: "/v1/admin/payment/recharge-products/{product_id}",
    permission: "payment-product:delete",
    permissions: ["payment-product:delete"]
  },
  deleteResource: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteResource,
    path: "/v1/admin/resources/{resource_id}",
    permission: "resource:delete",
    permissions: ["resource:delete"]
  },
  deleteRole: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteRole,
    path: "/v1/roles/{id}",
    permission: "role:delete",
    permissions: ["role:delete","role:manage"]
  },
  deleteRoom: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteRoom,
    path: "/v1/admin/rooms/{room_id}",
    permission: "room:delete",
    permissions: ["room:delete"]
  },
  deleteSplashScreen: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteSplashScreen,
    path: "/v1/admin/app-config/splash-screens/{splash_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  deleteTeamSalaryPolicy: {
    method: "DELETE",
    operationId: API_OPERATIONS.deleteTeamSalaryPolicy,
    path: "/v1/admin/team-salary-policies/{policy_id}",
    permission: "team-salary-policy:delete",
    permissions: ["team-salary-policy:delete"]
  },
  disableCountry: {
    method: "POST",
    operationId: API_OPERATIONS.disableCountry,
    path: "/v1/admin/countries/{country_id}/disable",
    permission: "country:status",
    permissions: ["country:status"]
  },
  disableGift: {
    method: "POST",
    operationId: API_OPERATIONS.disableGift,
    path: "/v1/admin/gifts/{gift_id}/disable",
    permission: "gift:status",
    permissions: ["gift:status"]
  },
  disableRegion: {
    method: "DELETE",
    operationId: API_OPERATIONS.disableRegion,
    path: "/v1/admin/regions/{region_id}",
    permission: "region:status",
    permissions: ["region:status"]
  },
  disableResource: {
    method: "POST",
    operationId: API_OPERATIONS.disableResource,
    path: "/v1/admin/resources/{resource_id}/disable",
    permission: "resource:update",
    permissions: ["resource:update"]
  },
  disableResourceGroup: {
    method: "POST",
    operationId: API_OPERATIONS.disableResourceGroup,
    path: "/v1/admin/resource-groups/{group_id}/disable",
    permission: "resource-group:update",
    permissions: ["resource-group:update"]
  },
  disableResourceShopItem: {
    method: "POST",
    operationId: API_OPERATIONS.disableResourceShopItem,
    path: "/v1/admin/resource-shop/items/{shop_item_id}/disable",
    permission: "resource-shop:update",
    permissions: ["resource-shop:update"]
  },
  downloadJobArtifact: {
    method: "GET",
    operationId: API_OPERATIONS.downloadJobArtifact,
    path: "/v1/jobs/{id}/artifact",
    permission: "job:view",
    permissions: ["job:view","app-user:export"]
  },
  enableCountry: {
    method: "POST",
    operationId: API_OPERATIONS.enableCountry,
    path: "/v1/admin/countries/{country_id}/enable",
    permission: "country:status",
    permissions: ["country:status"]
  },
  enableGift: {
    method: "POST",
    operationId: API_OPERATIONS.enableGift,
    path: "/v1/admin/gifts/{gift_id}/enable",
    permission: "gift:status",
    permissions: ["gift:status"]
  },
  enableRegion: {
    method: "POST",
    operationId: API_OPERATIONS.enableRegion,
    path: "/v1/admin/regions/{region_id}/enable",
    permission: "region:status",
    permissions: ["region:status"]
  },
  enableResource: {
    method: "POST",
    operationId: API_OPERATIONS.enableResource,
    path: "/v1/admin/resources/{resource_id}/enable",
    permission: "resource:update",
    permissions: ["resource:update"]
  },
  enableResourceGroup: {
    method: "POST",
    operationId: API_OPERATIONS.enableResourceGroup,
    path: "/v1/admin/resource-groups/{group_id}/enable",
    permission: "resource-group:update",
    permissions: ["resource-group:update"]
  },
  enableResourceShopItem: {
    method: "POST",
    operationId: API_OPERATIONS.enableResourceShopItem,
    path: "/v1/admin/resource-shop/items/{shop_item_id}/enable",
    permission: "resource-shop:update",
    permissions: ["resource-shop:update"]
  },
  endLuckyGiftExperiment: {
    method: "POST",
    operationId: API_OPERATIONS.endLuckyGiftExperiment,
    path: "/v1/admin/ops-center/lucky-gifts/experiments/{experimentId}/end",
    permission: "lucky-gift:experiment",
    permissions: ["lucky-gift:experiment"]
  },
  expireRoomRpsChallenge: {
    method: "POST",
    operationId: API_OPERATIONS.expireRoomRpsChallenge,
    path: "/v1/admin/game/room-rps/challenges/{challenge_id}/expire",
    permission: "game:update",
    permissions: ["game:update"]
  },
  exportActivityTemplateData: {
    method: "GET",
    operationId: API_OPERATIONS.exportActivityTemplateData,
    path: "/v1/admin/activities/templates/{template_id}/data/export",
    permission: "activity-template:export",
    permissions: ["activity-template:export"]
  },
  exportCoinSellerLedger: {
    method: "GET",
    operationId: API_OPERATIONS.exportCoinSellerLedger,
    path: "/v1/admin/operations/coin-seller-ledger/export",
    permission: "coin-seller-ledger:view",
    permissions: ["coin-seller-ledger:view"]
  },
  exportLoginLogs: {
    method: "GET",
    operationId: API_OPERATIONS.exportLoginLogs,
    path: "/v1/logs/login/export",
    permission: "log:export",
    permissions: ["log:export"]
  },
  exportOperationLogs: {
    method: "GET",
    operationId: API_OPERATIONS.exportOperationLogs,
    path: "/v1/logs/operations/export",
    permission: "log:export",
    permissions: ["log:export"]
  },
  exportRechargeBills: {
    method: "GET",
    operationId: API_OPERATIONS.exportRechargeBills,
    path: "/v1/admin/payment/recharge-bills/export",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  exportUsers: {
    method: "GET",
    operationId: API_OPERATIONS.exportUsers,
    path: "/v1/users/export",
    permission: "user:export",
    permissions: ["user:export"]
  },
  generateDiceRobots: {
    method: "POST",
    operationId: API_OPERATIONS.generateDiceRobots,
    path: "/v1/admin/game/robots/generate",
    permission: "game:create",
    permissions: ["game:create"]
  },
  generatePrettyIds: {
    method: "POST",
    operationId: API_OPERATIONS.generatePrettyIds,
    path: "/v1/admin/users/pretty-id-pools/{pool_id}/generate",
    permission: "pretty-id:generate",
    permissions: ["pretty-id:generate"]
  },
  getActivityTemplate: {
    method: "GET",
    operationId: API_OPERATIONS.getActivityTemplate,
    path: "/v1/admin/activities/templates/{template_id}",
    permission: "activity-template:view",
    permissions: ["activity-template:view"]
  },
  getActivityTemplateData: {
    method: "GET",
    operationId: API_OPERATIONS.getActivityTemplateData,
    path: "/v1/admin/activities/templates/{template_id}/data",
    permission: "activity-template:data",
    permissions: ["activity-template:data"]
  },
  getCoinSellerSalaryRates: {
    method: "GET",
    operationId: API_OPERATIONS.getCoinSellerSalaryRates,
    path: "/v1/admin/coin-seller-salary-rates/{region_id}",
    permission: "coin-seller:exchange-rate",
    permissions: ["coin-seller:exchange-rate"]
  },
  getCountry: {
    method: "GET",
    operationId: API_OPERATIONS.getCountry,
    path: "/v1/admin/countries/{country_id}",
    permission: "country:view",
    permissions: ["country:view"]
  },
  getCPConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getCPConfig,
    path: "/v1/admin/activity/cp/config",
    permission: "cp-config:view",
    permissions: ["cp-config:view"]
  },
  getCPWeeklyRankConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getCPWeeklyRankConfig,
    path: "/v1/admin/activity/cp-weekly-rank/config",
    permission: "cp-weekly-rank:view",
    permissions: ["cp-weekly-rank:view"]
  },
  getCumulativeRechargeRewardConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getCumulativeRechargeRewardConfig,
    path: "/v1/admin/activity/cumulative-recharge-reward/config",
    permission: "cumulative-recharge-reward:view",
    permissions: ["cumulative-recharge-reward:view"]
  },
  getExternalAdminUserPermissions: {
    method: "GET",
    operationId: API_OPERATIONS.getExternalAdminUserPermissions,
    path: "/v1/admin/external-admin-users/{id}/permissions",
    permission: "external-admin-user:permissions",
    permissions: ["external-admin-user:permissions"]
  },
  getFinanceCoinSellerRechargeExchangeRate: {
    method: "GET",
    operationId: API_OPERATIONS.getFinanceCoinSellerRechargeExchangeRate,
    path: "/v1/admin/finance/coin-seller-recharge-exchange-rates/{app_code}",
    permission: "coin-seller:exchange-rate",
    permissions: ["coin-seller:exchange-rate"]
  },
  getFinanceScope: {
    method: "GET",
    operationId: API_OPERATIONS.getFinanceScope,
    path: "/v1/admin/finance/scope",
    permission: "finance:view",
    permissions: ["finance:view","finance-withdrawal:view","finance-withdrawal:audit","operations-withdrawal:view","operations-withdrawal:audit"]
  },
  getFinanceUSDTAddresses: {
    method: "GET",
    operationId: API_OPERATIONS.getFinanceUSDTAddresses,
    path: "/v1/admin/finance/usdt-addresses/{app_code}",
    permission: "finance-order:coin-seller-recharge:view",
    permissions: ["finance-order:coin-seller-recharge:view"]
  },
  getFirstRechargeRewardConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getFirstRechargeRewardConfig,
    path: "/v1/admin/activity/first-recharge-reward/config",
    permission: "first-recharge-reward:view",
    permissions: ["first-recharge-reward:view"]
  },
  getHumanRoomRobotConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getHumanRoomRobotConfig,
    path: "/v1/admin/rooms/robot-rooms/human-config",
    permission: "room-robot:view",
    permissions: ["room-robot:view"]
  },
  getInviteActivityRewardConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getInviteActivityRewardConfig,
    path: "/v1/admin/activity/invite-reward/config",
    permission: "invite-activity-reward:view",
    permissions: ["invite-activity-reward:view"]
  },
  getJob: {
    method: "GET",
    operationId: API_OPERATIONS.getJob,
    path: "/v1/jobs/{id}",
    permission: "job:view",
    permissions: ["job:view","country:update","app-user:export"]
  },
  getLuckyGiftConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getLuckyGiftConfig,
    path: "/v1/admin/ops-center/lucky-gifts/config",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  getLuckyGiftDrawSummary: {
    method: "GET",
    operationId: API_OPERATIONS.getLuckyGiftDrawSummary,
    path: "/v1/admin/ops-center/lucky-gifts/summary",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  getLuckyGiftUserProfile: {
    method: "GET",
    operationId: API_OPERATIONS.getLuckyGiftUserProfile,
    path: "/v1/admin/ops-center/lucky-gifts/user-profile",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  getRechargeBillOverview: {
    method: "GET",
    operationId: API_OPERATIONS.getRechargeBillOverview,
    path: "/v1/admin/payment/recharge-bills/overview",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  getRechargeBillSummary: {
    method: "GET",
    operationId: API_OPERATIONS.getRechargeBillSummary,
    path: "/v1/admin/payment/recharge-bills/summary",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  getRedPacket: {
    method: "GET",
    operationId: API_OPERATIONS.getRedPacket,
    path: "/v1/admin/activity/red-packets/{packet_id}",
    permission: "red-packet:view",
    permissions: ["red-packet:view"]
  },
  getRedPacketConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRedPacketConfig,
    path: "/v1/admin/activity/red-packets/config",
    permission: "red-packet:view",
    permissions: ["red-packet:view"]
  },
  getRegion: {
    method: "GET",
    operationId: API_OPERATIONS.getRegion,
    path: "/v1/admin/regions/{region_id}",
    permission: "region:view",
    permissions: ["region:view"]
  },
  getRegistrationRewardConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRegistrationRewardConfig,
    path: "/v1/admin/activity/registration-reward/config",
    permission: "registration-reward:view",
    permissions: ["registration-reward:view"]
  },
  getResource: {
    method: "GET",
    operationId: API_OPERATIONS.getResource,
    path: "/v1/admin/resources/{resource_id}",
    permission: "resource:view",
    permissions: ["resource:view"]
  },
  getResourceGroup: {
    method: "GET",
    operationId: API_OPERATIONS.getResourceGroup,
    path: "/v1/admin/resource-groups/{group_id}",
    permission: "resource-group:view",
    permissions: ["resource-group:view"]
  },
  getResourceIdentityAutoGrantConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getResourceIdentityAutoGrantConfig,
    path: "/v1/admin/resource-groups/identity-auto-grant-config",
    permission: "resource-group:view",
    permissions: ["resource-group:view"]
  },
  getRiskConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRiskConfig,
    path: "/v1/admin/users/risk-config",
    permission: "risk-config:view",
    permissions: ["risk-config:view"]
  },
  getRoleDataScopes: {
    method: "GET",
    operationId: API_OPERATIONS.getRoleDataScopes,
    path: "/v1/roles/{id}/data-scopes",
    permission: "role:data-scope",
    permissions: ["role:data-scope"]
  },
  getRoomConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomConfig,
    path: "/v1/admin/rooms/config",
    permission: "room-config:view",
    permissions: ["room-config:view"]
  },
  getRoomRocketConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomRocketConfig,
    path: "/v1/admin/activity/room-rocket/config",
    permission: "room-rocket:view",
    permissions: ["room-rocket:view"]
  },
  getRoomRpsChallenge: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomRpsChallenge,
    path: "/v1/admin/game/room-rps/challenges/{challenge_id}",
    permission: "game:view",
    permissions: ["game:view"]
  },
  getRoomRpsConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomRpsConfig,
    path: "/v1/admin/game/room-rps/config",
    permission: "game:view",
    permissions: ["game:view"]
  },
  getRoomTurnoverRewardConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomTurnoverRewardConfig,
    path: "/v1/admin/activity/room-turnover-reward/config",
    permission: "room-turnover-reward:view",
    permissions: ["room-turnover-reward:view"]
  },
  getRoomWhitelistConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getRoomWhitelistConfig,
    path: "/v1/admin/rooms/whitelist",
    permission: "room-whitelist:view",
    permissions: ["room-whitelist:view"]
  },
  getSevenDayCheckInConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getSevenDayCheckInConfig,
    path: "/v1/admin/activity/seven-day-checkin/config",
    permission: "seven-day-checkin:view",
    permissions: ["seven-day-checkin:view"]
  },
  getSocialBiFunnel: {
    method: "GET",
    operationId: API_OPERATIONS.getSocialBiFunnel,
    path: "/v1/admin/databi/social/funnel",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  getSocialBiKpi: {
    method: "GET",
    operationId: API_OPERATIONS.getSocialBiKpi,
    path: "/v1/admin/databi/social/kpi",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  getSocialBiMaster: {
    method: "GET",
    operationId: API_OPERATIONS.getSocialBiMaster,
    path: "/v1/admin/databi/social/master",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  getSocialBiOverview: {
    method: "GET",
    operationId: API_OPERATIONS.getSocialBiOverview,
    path: "/v1/admin/databi/social/overview",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  getSocialBiRequirements: {
    method: "GET",
    operationId: API_OPERATIONS.getSocialBiRequirements,
    path: "/v1/admin/databi/social/requirements",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  getTemporaryPaymentLink: {
    method: "GET",
    operationId: API_OPERATIONS.getTemporaryPaymentLink,
    path: "/v1/admin/payment/temporary-links/{order_id}",
    permission: "payment-temporary-link:view",
    permissions: ["payment-temporary-link:view"]
  },
  getUser: {
    method: "GET",
    operationId: API_OPERATIONS.getUser,
    path: "/v1/users/{id}",
    permission: "user:view",
    permissions: ["user:view"]
  },
  getUserAppScopes: {
    method: "GET",
    operationId: API_OPERATIONS.getUserAppScopes,
    path: "/v1/users/{id}/app-scopes",
    permission: "user:view",
    permissions: ["user:view"]
  },
  getVipConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getVipConfig,
    path: "/v1/admin/activity/vip-levels",
    permission: "vip-config:view",
    permissions: ["vip-config:view"]
  },
  getVipProgram: {
    method: "GET",
    operationId: API_OPERATIONS.getVipProgram,
    path: "/v1/admin/activity/vip-program",
    permission: "vip-config:view",
    permissions: ["vip-config:view"]
  },
  getWeeklyStarCycle: {
    method: "GET",
    operationId: API_OPERATIONS.getWeeklyStarCycle,
    path: "/v1/admin/activity/weekly-star/cycles/{cycle_id}",
    permission: "weekly-star:view",
    permissions: ["weekly-star:view"]
  },
  getWheelConfig: {
    method: "GET",
    operationId: API_OPERATIONS.getWheelConfig,
    path: "/v1/admin/activity/wheel/config",
    permission: "wheel:view",
    permissions: ["wheel:view"]
  },
  getWheelDrawSummary: {
    method: "GET",
    operationId: API_OPERATIONS.getWheelDrawSummary,
    path: "/v1/admin/activity/wheel/draw-summary",
    permission: "wheel:view",
    permissions: ["wheel:view"]
  },
  grantFinanceCoinSellerRechargeOrder: {
    method: "POST",
    operationId: API_OPERATIONS.grantFinanceCoinSellerRechargeOrder,
    path: "/v1/admin/finance/orders/coin-seller-recharges/{order_id}/grant",
    permission: "finance-order:coin-seller-recharge:grant",
    permissions: ["finance-order:coin-seller-recharge:grant"]
  },
  grantPrettyId: {
    method: "POST",
    operationId: API_OPERATIONS.grantPrettyId,
    path: "/v1/admin/users/pretty-ids/grant",
    permission: "pretty-id:grant",
    permissions: ["pretty-id:grant"]
  },
  grantResource: {
    method: "POST",
    operationId: API_OPERATIONS.grantResource,
    path: "/v1/admin/resource-grants/resource",
    permission: "resource-grant:create",
    permissions: ["resource-grant:create"]
  },
  grantResourceGroup: {
    method: "POST",
    operationId: API_OPERATIONS.grantResourceGroup,
    path: "/v1/admin/resource-grants/group",
    permission: "resource-grant:create",
    permissions: ["resource-grant:create"]
  },
  grantVip: {
    method: "POST",
    operationId: API_OPERATIONS.grantVip,
    path: "/v1/admin/activity/vip-grants",
    permission: "vip-config:grant",
    permissions: ["vip-config:grant"]
  },
  grantVipTrialCard: {
    method: "POST",
    operationId: API_OPERATIONS.grantVipTrialCard,
    path: "/v1/admin/activity/vip-trial-card-grants",
    permission: "vip-config:grant",
    permissions: ["vip-config:grant"]
  },
  listAchievementDefinitions: {
    method: "GET",
    operationId: API_OPERATIONS.listAchievementDefinitions,
    path: "/v1/admin/activity/achievements",
    permission: "achievement:view",
    permissions: ["achievement:view"]
  },
  listActivityTemplateLeaderboard: {
    method: "GET",
    operationId: API_OPERATIONS.listActivityTemplateLeaderboard,
    path: "/v1/admin/activities/templates/{template_id}/leaderboard",
    permission: "activity-template:data",
    permissions: ["activity-template:data"]
  },
  listActivityTemplateRewardJobs: {
    method: "GET",
    operationId: API_OPERATIONS.listActivityTemplateRewardJobs,
    path: "/v1/admin/activities/templates/{template_id}/rewards",
    permission: "activity-template:data",
    permissions: ["activity-template:data"]
  },
  listActivityTemplates: {
    method: "GET",
    operationId: API_OPERATIONS.listActivityTemplates,
    path: "/v1/admin/activities/templates",
    permission: "activity-template:view",
    permissions: ["activity-template:view"]
  },
  listActivityTemplateTaskClaims: {
    method: "GET",
    operationId: API_OPERATIONS.listActivityTemplateTaskClaims,
    path: "/v1/admin/activities/templates/{template_id}/task-claims",
    permission: "activity-template:data",
    permissions: ["activity-template:data"]
  },
  listActivityTemplateVersions: {
    method: "GET",
    operationId: API_OPERATIONS.listActivityTemplateVersions,
    path: "/v1/admin/activities/templates/{template_id}/versions",
    permission: "activity-template:view",
    permissions: ["activity-template:view"]
  },
  listAgencies: {
    method: "GET",
    operationId: API_OPERATIONS.listAgencies,
    path: "/v1/admin/agencies",
    permission: "agency:view",
    permissions: ["agency:view"]
  },
  listApps: {
    method: "GET",
    operationId: API_OPERATIONS.listApps,
    path: "/v1/admin/apps"
  },
  listAppVersions: {
    method: "GET",
    operationId: API_OPERATIONS.listAppVersions,
    path: "/v1/admin/app-config/versions",
    permission: "app-version:view",
    permissions: ["app-version:view"]
  },
  listAvailableRoomRobots: {
    method: "GET",
    operationId: API_OPERATIONS.listAvailableRoomRobots,
    path: "/v1/admin/rooms/robot-rooms/available-robots",
    permission: "room-robot:view",
    permissions: ["room-robot:view"]
  },
  listBanners: {
    method: "GET",
    operationId: API_OPERATIONS.listBanners,
    path: "/v1/admin/app-config/banners",
    permission: "app-config:view",
    permissions: ["app-config:view"]
  },
  listBDLeaders: {
    method: "GET",
    operationId: API_OPERATIONS.listBDLeaders,
    path: "/v1/admin/bd-leaders",
    permission: "bd:view",
    permissions: ["bd:view"]
  },
  listBDs: {
    method: "GET",
    operationId: API_OPERATIONS.listBDs,
    path: "/v1/admin/bds",
    permission: "bd:view",
    permissions: ["bd:view"]
  },
  listCatalog: {
    method: "GET",
    operationId: API_OPERATIONS.listCatalog,
    path: "/v1/admin/game/games",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listCoinAdjustments: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinAdjustments,
    path: "/v1/admin/operations/coin-adjustments",
    permission: "coin-adjustment:view",
    permissions: ["coin-adjustment:view"]
  },
  listCoinLedger: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinLedger,
    path: "/v1/admin/operations/coin-ledger",
    permission: "coin-ledger:view",
    permissions: ["coin-ledger:view"]
  },
  listCoinSellerLedger: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinSellerLedger,
    path: "/v1/admin/operations/coin-seller-ledger",
    permission: "coin-seller-ledger:view",
    permissions: ["coin-seller-ledger:view"]
  },
  listCoinSellers: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinSellers,
    path: "/v1/admin/coin-sellers",
    permission: "coin-seller:view",
    permissions: ["coin-seller:view"]
  },
  listCoinSellerSubApplications: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinSellerSubApplications,
    path: "/v1/admin/coin-seller-sub-applications",
    permission: "coin-seller-sub-application:view",
    permissions: ["coin-seller-sub-application:view"]
  },
  listCoinSellerSubSellers: {
    method: "GET",
    operationId: API_OPERATIONS.listCoinSellerSubSellers,
    path: "/v1/admin/coin-sellers/{user_id}/sub-sellers",
    permission: "coin-seller:view",
    permissions: ["coin-seller:view"]
  },
  listCountries: {
    method: "GET",
    operationId: API_OPERATIONS.listCountries,
    path: "/v1/admin/countries",
    permission: "country:view",
    permissions: ["country:view"]
  },
  listCPApplications: {
    method: "GET",
    operationId: API_OPERATIONS.listCPApplications,
    path: "/v1/admin/activity/cp/applications",
    permission: "cp-config:view",
    permissions: ["cp-config:view"]
  },
  listCPRelationships: {
    method: "GET",
    operationId: API_OPERATIONS.listCPRelationships,
    path: "/v1/admin/activity/cp/relationships",
    permission: "cp-config:view",
    permissions: ["cp-config:view"]
  },
  listCPWeeklyRankSettlements: {
    method: "GET",
    operationId: API_OPERATIONS.listCPWeeklyRankSettlements,
    path: "/v1/admin/activity/cp-weekly-rank/settlements",
    permission: "cp-weekly-rank:view",
    permissions: ["cp-weekly-rank:view"]
  },
  listCumulativeRechargeRewardGrants: {
    method: "GET",
    operationId: API_OPERATIONS.listCumulativeRechargeRewardGrants,
    path: "/v1/admin/activity/cumulative-recharge-reward/grants",
    permission: "cumulative-recharge-reward:view",
    permissions: ["cumulative-recharge-reward:view"]
  },
  listDiceRobots: {
    method: "GET",
    operationId: API_OPERATIONS.listDiceRobots,
    path: "/v1/admin/game/robots",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listEmojiPackCategories: {
    method: "GET",
    operationId: API_OPERATIONS.listEmojiPackCategories,
    path: "/v1/admin/emoji-packs/categories",
    permission: "emoji-pack:view",
    permissions: ["emoji-pack:view"]
  },
  listEmojiPacks: {
    method: "GET",
    operationId: API_OPERATIONS.listEmojiPacks,
    path: "/v1/admin/emoji-packs",
    permission: "emoji-pack:view",
    permissions: ["emoji-pack:view"]
  },
  listExploreTabs: {
    method: "GET",
    operationId: API_OPERATIONS.listExploreTabs,
    path: "/v1/admin/app-config/explore-tabs",
    permission: "app-config:view",
    permissions: ["app-config:view"]
  },
  listExternalAdminPermissionCatalog: {
    method: "GET",
    operationId: API_OPERATIONS.listExternalAdminPermissionCatalog,
    path: "/v1/admin/external-admin-users/permission-catalog",
    permission: "external-admin-user:permissions",
    permissions: ["external-admin-user:permissions"]
  },
  listExternalAdminUsers: {
    method: "GET",
    operationId: API_OPERATIONS.listExternalAdminUsers,
    path: "/v1/admin/external-admin-users",
    permission: "external-admin-user:view",
    permissions: ["external-admin-user:view"]
  },
  listFinanceCoinSellerRechargeOrders: {
    method: "GET",
    operationId: API_OPERATIONS.listFinanceCoinSellerRechargeOrders,
    path: "/v1/admin/finance/orders/coin-seller-recharges",
    permission: "finance-order:coin-seller-recharge:view",
    permissions: ["finance-order:coin-seller-recharge:view"]
  },
  listFinanceScopeAssignments: {
    method: "GET",
    operationId: API_OPERATIONS.listFinanceScopeAssignments,
    path: "/v1/users/finance-scope-assignments",
    permission: "user:view",
    permissions: ["user:view"]
  },
  listFinanceWithdrawalApplications: {
    method: "GET",
    operationId: API_OPERATIONS.listFinanceWithdrawalApplications,
    path: "/v1/admin/finance/withdrawal-applications",
    permission: "finance-withdrawal:view",
    permissions: ["finance-withdrawal:view","finance-withdrawal:audit"]
  },
  listFirstRechargeRewardClaims: {
    method: "GET",
    operationId: API_OPERATIONS.listFirstRechargeRewardClaims,
    path: "/v1/admin/activity/first-recharge-reward/claims",
    permission: "first-recharge-reward:view",
    permissions: ["first-recharge-reward:view"]
  },
  listGameWhitelistUsers: {
    method: "GET",
    operationId: API_OPERATIONS.listGameWhitelistUsers,
    path: "/v1/admin/game/games/{game_id}/whitelist/users",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listGiftRecords: {
    method: "GET",
    operationId: API_OPERATIONS.listGiftRecords,
    path: "/v1/admin/operations/gift-records",
    permission: "gift-record:view",
    permissions: ["gift-record:view"]
  },
  listGifts: {
    method: "GET",
    operationId: API_OPERATIONS.listGifts,
    path: "/v1/admin/gifts",
    permission: "gift:view",
    permissions: ["gift:view"]
  },
  listGiftTypes: {
    method: "GET",
    operationId: API_OPERATIONS.listGiftTypes,
    path: "/v1/admin/gift-types",
    permission: "gift:view",
    permissions: ["gift:view"]
  },
  listH5Links: {
    method: "GET",
    operationId: API_OPERATIONS.listH5Links,
    path: "/v1/admin/app-config/h5-links",
    permission: "app-config:view",
    permissions: ["app-config:view"]
  },
  listHostAgencyPolicies: {
    method: "GET",
    operationId: API_OPERATIONS.listHostAgencyPolicies,
    path: "/v1/admin/host-agency-policies",
    permission: "host-agency-policy:view",
    permissions: ["host-agency-policy:view"]
  },
  listHosts: {
    method: "GET",
    operationId: API_OPERATIONS.listHosts,
    path: "/v1/admin/hosts",
    permission: "host:view",
    permissions: ["host:view"]
  },
  listHostSalarySettlements: {
    method: "GET",
    operationId: API_OPERATIONS.listHostSalarySettlements,
    path: "/v1/admin/host-salary-settlements",
    permission: "host-salary-settlement:view",
    permissions: ["host-salary-settlement:view"]
  },
  listHostWithdrawals: {
    method: "GET",
    operationId: API_OPERATIONS.listHostWithdrawals,
    path: "/v1/admin/host-withdrawals",
    permission: "host-withdrawal:view",
    permissions: ["host-withdrawal:view"]
  },
  listInviteActivityRewardClaims: {
    method: "GET",
    operationId: API_OPERATIONS.listInviteActivityRewardClaims,
    path: "/v1/admin/activity/invite-reward/claims",
    permission: "invite-activity-reward:view",
    permissions: ["invite-activity-reward:view"]
  },
  listJobs: {
    method: "GET",
    operationId: API_OPERATIONS.listJobs,
    path: "/v1/jobs",
    permission: "job:view",
    permissions: ["job:view"]
  },
  listLevelConfig: {
    method: "GET",
    operationId: API_OPERATIONS.listLevelConfig,
    path: "/v1/admin/users/level-config",
    permission: "level-config:view",
    permissions: ["level-config:view"]
  },
  listLoginLogs: {
    method: "GET",
    operationId: API_OPERATIONS.listLoginLogs,
    path: "/v1/logs/login",
    permission: "log:view",
    permissions: ["log:view"]
  },
  listLuckyGiftConfigs: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftConfigs,
    path: "/v1/admin/ops-center/lucky-gifts/configs",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listLuckyGiftConfigVersions: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftConfigVersions,
    path: "/v1/admin/ops-center/lucky-gifts/config/versions",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listLuckyGiftDraws: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftDraws,
    path: "/v1/admin/ops-center/lucky-gifts/draws",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listLuckyGiftExperiments: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftExperiments,
    path: "/v1/admin/ops-center/lucky-gifts/experiments",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listLuckyGiftPoolBalances: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftPoolBalances,
    path: "/v1/admin/ops-center/lucky-gifts/pools",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listLuckyGiftUserProfiles: {
    method: "GET",
    operationId: API_OPERATIONS.listLuckyGiftUserProfiles,
    path: "/v1/admin/ops-center/lucky-gifts/user-profiles",
    permission: "lucky-gift:view",
    permissions: ["lucky-gift:view"]
  },
  listManagers: {
    method: "GET",
    operationId: API_OPERATIONS.listManagers,
    path: "/v1/admin/managers",
    permission: "bd:view",
    permissions: ["bd:view"]
  },
  listOperationLogs: {
    method: "GET",
    operationId: API_OPERATIONS.listOperationLogs,
    path: "/v1/logs/operations",
    permission: "log:view",
    permissions: ["log:view"]
  },
  listOperationsWithdrawalApplications: {
    method: "GET",
    operationId: API_OPERATIONS.listOperationsWithdrawalApplications,
    path: "/v1/admin/operations/withdrawal-applications",
    permission: "operations-withdrawal:view",
    permissions: ["operations-withdrawal:view","operations-withdrawal:audit"]
  },
  listPermissions: {
    method: "GET",
    operationId: API_OPERATIONS.listPermissions,
    path: "/v1/permissions",
    permission: "permission:view",
    permissions: ["permission:view","role:permission","role:manage"]
  },
  listPlatformGrantRecords: {
    method: "GET",
    operationId: API_OPERATIONS.listPlatformGrantRecords,
    path: "/v1/statistics/platform-grants/records",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  listPlatformGrantUsers: {
    method: "GET",
    operationId: API_OPERATIONS.listPlatformGrantUsers,
    path: "/v1/statistics/platform-grants/users",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  listPlatforms: {
    method: "GET",
    operationId: API_OPERATIONS.listPlatforms,
    path: "/v1/admin/game/platforms",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listPolicyInstances: {
    method: "GET",
    operationId: API_OPERATIONS.listPolicyInstances,
    path: "/v1/admin/policy-instances",
    permission: "policy-template:view",
    permissions: ["policy-template:view"]
  },
  listPolicyTemplates: {
    method: "GET",
    operationId: API_OPERATIONS.listPolicyTemplates,
    path: "/v1/admin/policy-templates",
    permission: "policy-template:view",
    permissions: ["policy-template:view"]
  },
  listPopups: {
    method: "GET",
    operationId: API_OPERATIONS.listPopups,
    path: "/v1/admin/app-config/popups",
    permission: "app-config:view",
    permissions: ["app-config:view"]
  },
  listPrettyIdPools: {
    method: "GET",
    operationId: API_OPERATIONS.listPrettyIdPools,
    path: "/v1/admin/users/pretty-id-pools",
    permission: "pretty-id:view",
    permissions: ["pretty-id:view"]
  },
  listPrettyIds: {
    method: "GET",
    operationId: API_OPERATIONS.listPrettyIds,
    path: "/v1/admin/users/pretty-ids",
    permission: "pretty-id:view",
    permissions: ["pretty-id:view"]
  },
  listRechargeApps: {
    method: "GET",
    operationId: API_OPERATIONS.listRechargeApps,
    path: "/v1/admin/payment/recharge-apps",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  listRechargeBills: {
    method: "GET",
    operationId: API_OPERATIONS.listRechargeBills,
    path: "/v1/admin/payment/recharge-bills",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  listRechargeProducts: {
    method: "GET",
    operationId: API_OPERATIONS.listRechargeProducts,
    path: "/v1/admin/payment/recharge-products",
    permission: "payment-product:view",
    permissions: ["payment-product:view"]
  },
  listRechargeRegions: {
    method: "GET",
    operationId: API_OPERATIONS.listRechargeRegions,
    path: "/v1/admin/payment/recharge-regions",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  listRedPackets: {
    method: "GET",
    operationId: API_OPERATIONS.listRedPackets,
    path: "/v1/admin/activity/red-packets",
    permission: "red-packet:view",
    permissions: ["red-packet:view"]
  },
  listRegionBlocks: {
    method: "GET",
    operationId: API_OPERATIONS.listRegionBlocks,
    path: "/v1/admin/users/region-blocks",
    permission: "region-block:view",
    permissions: ["region-block:view"]
  },
  listRegions: {
    method: "GET",
    operationId: API_OPERATIONS.listRegions,
    path: "/v1/admin/regions",
    permission: "region:view",
    permissions: ["region:view"]
  },
  listRegistrationRewardClaims: {
    method: "GET",
    operationId: API_OPERATIONS.listRegistrationRewardClaims,
    path: "/v1/admin/activity/registration-reward/claims",
    permission: "registration-reward:view",
    permissions: ["registration-reward:view"]
  },
  listReports: {
    method: "GET",
    operationId: API_OPERATIONS.listReports,
    path: "/v1/admin/operations/reports",
    permission: "report:view",
    permissions: ["report:view"]
  },
  listResourceGrants: {
    method: "GET",
    operationId: API_OPERATIONS.listResourceGrants,
    path: "/v1/admin/resource-grants",
    permission: "resource-grant:view",
    permissions: ["resource-grant:view"]
  },
  listResourceGroups: {
    method: "GET",
    operationId: API_OPERATIONS.listResourceGroups,
    path: "/v1/admin/resource-groups",
    permission: "resource-group:view",
    permissions: ["resource-group:view"]
  },
  listResources: {
    method: "GET",
    operationId: API_OPERATIONS.listResources,
    path: "/v1/admin/resources",
    permission: "resource:view",
    permissions: ["resource:view"]
  },
  listResourceShopItems: {
    method: "GET",
    operationId: API_OPERATIONS.listResourceShopItems,
    path: "/v1/admin/resource-shop/items",
    permission: "resource-shop:view",
    permissions: ["resource-shop:view"]
  },
  listResourceShopPurchaseOrders: {
    method: "GET",
    operationId: API_OPERATIONS.listResourceShopPurchaseOrders,
    path: "/v1/admin/resource-shop/purchase-orders",
    permission: "resource-shop:view",
    permissions: ["resource-shop:view"]
  },
  listRobotRooms: {
    method: "GET",
    operationId: API_OPERATIONS.listRobotRooms,
    path: "/v1/admin/rooms/robot-rooms",
    permission: "room-robot:view",
    permissions: ["room-robot:view"]
  },
  listRoles: {
    method: "GET",
    operationId: API_OPERATIONS.listRoles,
    path: "/v1/roles",
    permission: "role:view",
    permissions: ["role:view"]
  },
  listRoomPins: {
    method: "GET",
    operationId: API_OPERATIONS.listRoomPins,
    path: "/v1/admin/rooms/pins",
    permission: "room-pin:view",
    permissions: ["room-pin:view"]
  },
  listRoomRpsChallenges: {
    method: "GET",
    operationId: API_OPERATIONS.listRoomRpsChallenges,
    path: "/v1/admin/game/room-rps/challenges",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listRooms: {
    method: "GET",
    operationId: API_OPERATIONS.listRooms,
    path: "/v1/admin/rooms",
    permission: "room:view",
    permissions: ["room:view"]
  },
  listRoomTurnoverRewardSettlements: {
    method: "GET",
    operationId: API_OPERATIONS.listRoomTurnoverRewardSettlements,
    path: "/v1/admin/activity/room-turnover-reward/settlements",
    permission: "room-turnover-reward:view",
    permissions: ["room-turnover-reward:view"]
  },
  listSelfGames: {
    method: "GET",
    operationId: API_OPERATIONS.listSelfGames,
    path: "/v1/admin/game/self-games",
    permission: "game:view",
    permissions: ["game:view"]
  },
  listSevenDayCheckInClaims: {
    method: "GET",
    operationId: API_OPERATIONS.listSevenDayCheckInClaims,
    path: "/v1/admin/activity/seven-day-checkin/claims",
    permission: "seven-day-checkin:view",
    permissions: ["seven-day-checkin:view"]
  },
  listSplashScreens: {
    method: "GET",
    operationId: API_OPERATIONS.listSplashScreens,
    path: "/v1/admin/app-config/splash-screens",
    permission: "app-config:view",
    permissions: ["app-config:view"]
  },
  listSystemMenus: {
    method: "GET",
    operationId: API_OPERATIONS.listSystemMenus,
    path: "/v1/system/menus",
    permission: "menu:view",
    permissions: ["menu:view"]
  },
  listTaskDefinitions: {
    method: "GET",
    operationId: API_OPERATIONS.listTaskDefinitions,
    path: "/v1/admin/activity/daily-tasks",
    permission: "daily-task:view",
    permissions: ["daily-task:view"]
  },
  listTeams: {
    method: "GET",
    operationId: API_OPERATIONS.listTeams,
    path: "/v1/teams",
    permission: "team:view",
    permissions: ["team:view"]
  },
  listTeamSalaryPolicies: {
    method: "GET",
    operationId: API_OPERATIONS.listTeamSalaryPolicies,
    path: "/v1/admin/team-salary-policies",
    permission: "team-salary-policy:view",
    permissions: ["team-salary-policy:view"]
  },
  listTeamUsers: {
    method: "GET",
    operationId: API_OPERATIONS.listTeamUsers,
    path: "/v1/teams/{team_id}/users",
    permission: "user:view",
    permissions: ["user:view"]
  },
  listTemporaryPaymentLinks: {
    method: "GET",
    operationId: API_OPERATIONS.listTemporaryPaymentLinks,
    path: "/v1/admin/payment/temporary-links",
    permission: "payment-temporary-link:view",
    permissions: ["payment-temporary-link:view"]
  },
  listThirdPartyPaymentChannels: {
    method: "GET",
    operationId: API_OPERATIONS.listThirdPartyPaymentChannels,
    path: "/v1/admin/payment/third-party-channels",
    permission: "payment-third-party:view",
    permissions: ["payment-third-party:view"]
  },
  listUserFinanceScopes: {
    method: "GET",
    operationId: API_OPERATIONS.listUserFinanceScopes,
    path: "/v1/users/{id}/finance-scopes",
    permission: "user:view",
    permissions: ["user:view"]
  },
  listUserLeaderboards: {
    method: "GET",
    operationId: API_OPERATIONS.listUserLeaderboards,
    path: "/v1/admin/activity/user-leaderboards",
    permission: "user-leaderboard:view",
    permissions: ["user-leaderboard:view"]
  },
  listUsers: {
    method: "GET",
    operationId: API_OPERATIONS.listUsers,
    path: "/v1/users",
    permission: "user:view",
    permissions: ["user:view"]
  },
  listVisibleApps: {
    method: "GET",
    operationId: API_OPERATIONS.listVisibleApps,
    path: "/v1/admin/apps/visible"
  },
  listWeeklyStarCycles: {
    method: "GET",
    operationId: API_OPERATIONS.listWeeklyStarCycles,
    path: "/v1/admin/activity/weekly-star/cycles",
    permission: "weekly-star:view",
    permissions: ["weekly-star:view"]
  },
  listWeeklyStarLeaderboard: {
    method: "GET",
    operationId: API_OPERATIONS.listWeeklyStarLeaderboard,
    path: "/v1/admin/activity/weekly-star/cycles/{cycle_id}/leaderboard",
    permission: "weekly-star:view",
    permissions: ["weekly-star:view"]
  },
  listWeeklyStarSettlements: {
    method: "GET",
    operationId: API_OPERATIONS.listWeeklyStarSettlements,
    path: "/v1/admin/activity/weekly-star/cycles/{cycle_id}/settlements",
    permission: "weekly-star:settle",
    permissions: ["weekly-star:settle"]
  },
  listWheelDraws: {
    method: "GET",
    operationId: API_OPERATIONS.listWheelDraws,
    path: "/v1/admin/activity/wheel/draws",
    permission: "wheel:view",
    permissions: ["wheel:view"]
  },
  login: {
    method: "POST",
    operationId: API_OPERATIONS.login,
    path: "/v1/auth/login"
  },
  logout: {
    method: "POST",
    operationId: API_OPERATIONS.logout,
    path: "/v1/auth/logout"
  },
  lookupCoinAdjustmentTarget: {
    method: "GET",
    operationId: API_OPERATIONS.lookupCoinAdjustmentTarget,
    path: "/v1/admin/operations/coin-adjustments/target",
    permission: "coin-adjustment:create",
    permissions: ["coin-adjustment:create"]
  },
  lookupExternalAdminUserTarget: {
    method: "GET",
    operationId: API_OPERATIONS.lookupExternalAdminUserTarget,
    path: "/v1/admin/external-admin-users/target",
    permission: "external-admin-user:create",
    permissions: ["external-admin-user:create"]
  },
  lookupResourceGrantTarget: {
    method: "GET",
    operationId: API_OPERATIONS.lookupResourceGrantTarget,
    path: "/v1/admin/resource-grants/target",
    permission: "resource-grant:create",
    permissions: ["resource-grant:create"]
  },
  me: {
    method: "GET",
    operationId: API_OPERATIONS.me,
    path: "/v1/auth/me"
  },
  navigationMenus: {
    method: "GET",
    operationId: API_OPERATIONS.navigationMenus,
    path: "/v1/navigation/menus"
  },
  publishHostAgencyPolicy: {
    method: "POST",
    operationId: API_OPERATIONS.publishHostAgencyPolicy,
    path: "/v1/admin/host-agency-policies/{policy_id}/publish",
    permission: "host-agency-policy:publish",
    permissions: ["host-agency-policy:publish"]
  },
  publishPolicyInstance: {
    method: "POST",
    operationId: API_OPERATIONS.publishPolicyInstance,
    path: "/v1/admin/policy-instances/{instance_id}/publish",
    permission: "policy-instance:publish",
    permissions: ["policy-instance:publish"]
  },
  quoteFinanceCoinSellerRechargeOrder: {
    method: "POST",
    operationId: API_OPERATIONS.quoteFinanceCoinSellerRechargeOrder,
    path: "/v1/admin/finance/orders/coin-seller-recharges/quotes",
    permission: "finance-order:coin-seller-recharge:create",
    permissions: ["finance-order:coin-seller-recharge:create"]
  },
  recyclePrettyId: {
    method: "POST",
    operationId: API_OPERATIONS.recyclePrettyId,
    path: "/v1/admin/users/pretty-ids/{pretty_id}/recycle",
    permission: "pretty-id:update",
    permissions: ["pretty-id:update"]
  },
  refresh: {
    method: "POST",
    operationId: API_OPERATIONS.refresh,
    path: "/v1/auth/refresh"
  },
  refreshGoogleRechargePaid: {
    method: "POST",
    operationId: API_OPERATIONS.refreshGoogleRechargePaid,
    path: "/v1/admin/payment/recharge-bills/google-paid/refresh",
    permission: "payment-bill:view",
    permissions: ["payment-bill:view"]
  },
  rejectCoinSellerSubApplication: {
    method: "POST",
    operationId: API_OPERATIONS.rejectCoinSellerSubApplication,
    path: "/v1/admin/coin-seller-sub-applications/{application_id}/reject",
    permission: "coin-seller-sub-application:audit",
    permissions: ["coin-seller-sub-application:audit"]
  },
  rejectFinanceWithdrawalApplication: {
    method: "POST",
    operationId: API_OPERATIONS.rejectFinanceWithdrawalApplication,
    path: "/v1/admin/finance/withdrawal-applications/{application_id}/reject",
    permission: "finance-withdrawal:audit",
    permissions: ["finance-withdrawal:audit"]
  },
  rejectOperationsWithdrawalApplication: {
    method: "POST",
    operationId: API_OPERATIONS.rejectOperationsWithdrawalApplication,
    path: "/v1/admin/operations/withdrawal-applications/{application_id}/reject",
    permission: "operations-withdrawal:audit",
    permissions: ["operations-withdrawal:audit"]
  },
  renameCountryCode: {
    method: "POST",
    operationId: API_OPERATIONS.renameCountryCode,
    path: "/v1/admin/countries/{country_id}/rename-code",
    permission: "country:update",
    permissions: ["country:update"]
  },
  replaceCoinSellerSalaryRates: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceCoinSellerSalaryRates,
    path: "/v1/admin/coin-seller-salary-rates/{region_id}",
    permission: "coin-seller:exchange-rate",
    permissions: ["coin-seller:exchange-rate"]
  },
  replaceFinanceCoinSellerRechargeExchangeRate: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceFinanceCoinSellerRechargeExchangeRate,
    path: "/v1/admin/finance/coin-seller-recharge-exchange-rates/{app_code}",
    permission: "coin-seller:exchange-rate",
    permissions: ["coin-seller:exchange-rate"]
  },
  replaceRegionBlocks: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceRegionBlocks,
    path: "/v1/admin/users/region-blocks",
    permission: "region-block:update",
    permissions: ["region-block:update"]
  },
  replaceRegionCountries: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceRegionCountries,
    path: "/v1/admin/regions/{region_id}/countries",
    permission: "region:update",
    permissions: ["region:update"]
  },
  replaceRoleDataScopes: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceRoleDataScopes,
    path: "/v1/roles/{id}/data-scopes",
    permission: "role:data-scope",
    permissions: ["role:data-scope"]
  },
  replaceRolePermissions: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceRolePermissions,
    path: "/v1/roles/{id}/permissions",
    permission: "role:permission",
    permissions: ["role:permission","role:manage"]
  },
  replaceUserAppScopes: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceUserAppScopes,
    path: "/v1/users/{id}/app-scopes",
    permission: "user:update",
    permissions: ["user:update"]
  },
  replaceUserFinanceScopes: {
    method: "PUT",
    operationId: API_OPERATIONS.replaceUserFinanceScopes,
    path: "/v1/users/{id}/finance-scopes",
    permission: "user:update",
    permissions: ["user:update"]
  },
  resetExternalAdminUserPassword: {
    method: "POST",
    operationId: API_OPERATIONS.resetExternalAdminUserPassword,
    path: "/v1/admin/external-admin-users/{id}/password",
    permission: "external-admin-user:reset-password",
    permissions: ["external-admin-user:reset-password"]
  },
  resetUserPassword: {
    method: "POST",
    operationId: API_OPERATIONS.resetUserPassword,
    path: "/v1/users/{id}/reset-password",
    permission: "user:reset-password",
    permissions: ["user:reset-password"]
  },
  retryActivityTemplateRewardJob: {
    method: "POST",
    operationId: API_OPERATIONS.retryActivityTemplateRewardJob,
    path: "/v1/admin/activities/templates/{template_id}/rewards/{reward_job_id}/retry",
    permission: "activity-template:retry",
    permissions: ["activity-template:retry"]
  },
  retryActivityTemplateTaskClaim: {
    method: "POST",
    operationId: API_OPERATIONS.retryActivityTemplateTaskClaim,
    path: "/v1/admin/activities/templates/{template_id}/task-claims/{claim_id}/retry",
    permission: "activity-template:retry",
    permissions: ["activity-template:retry"]
  },
  retryRedPacketRefund: {
    method: "POST",
    operationId: API_OPERATIONS.retryRedPacketRefund,
    path: "/v1/admin/activity/red-packets/refund/retry",
    permission: "red-packet:update",
    permissions: ["red-packet:update"]
  },
  retryRoomRpsSettlement: {
    method: "POST",
    operationId: API_OPERATIONS.retryRoomRpsSettlement,
    path: "/v1/admin/game/room-rps/challenges/{challenge_id}/retry-settlement",
    permission: "game:update",
    permissions: ["game:update"]
  },
  retryRoomTurnoverRewardSettlement: {
    method: "POST",
    operationId: API_OPERATIONS.retryRoomTurnoverRewardSettlement,
    path: "/v1/admin/activity/room-turnover-reward/settlements/{settlement_id}/retry",
    permission: "room-turnover-reward:retry",
    permissions: ["room-turnover-reward:retry"]
  },
  revokeAppUserResource: {
    method: "POST",
    operationId: API_OPERATIONS.revokeAppUserResource,
    path: "/v1/admin/users/{user_id}/resources/{entitlement_id}/revoke",
    permission: "resource-grant:revoke",
    permissions: ["resource-grant:revoke"]
  },
  revokeResourceGrant: {
    method: "POST",
    operationId: API_OPERATIONS.revokeResourceGrant,
    path: "/v1/admin/resource-grants/{grant_id}/revoke",
    permission: "resource-grant:revoke",
    permissions: ["resource-grant:revoke"]
  },
  rollbackLuckyGiftConfig: {
    method: "POST",
    operationId: API_OPERATIONS.rollbackLuckyGiftConfig,
    path: "/v1/admin/ops-center/lucky-gifts/config/rollback",
    permission: "lucky-gift:update",
    permissions: ["lucky-gift:update"]
  },
  savePolicyTemplate: {
    method: "POST",
    operationId: API_OPERATIONS.savePolicyTemplate,
    path: "/v1/admin/policy-templates",
    permission: "policy-template:create",
    permissions: ["policy-template:create"]
  },
  search: {
    method: "GET",
    operationId: API_OPERATIONS.search,
    path: "/v1/search"
  },
  selfGameStatisticsOverview: {
    method: "GET",
    operationId: API_OPERATIONS.selfGameStatisticsOverview,
    path: "/v1/statistics/self-games/overview",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  setActivityTemplateStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setActivityTemplateStatus,
    path: "/v1/admin/activities/templates/{template_id}/status",
    permission: "activity-template:publish",
    permissions: ["activity-template:publish"]
  },
  setAgencyJoinEnabled: {
    method: "POST",
    operationId: API_OPERATIONS.setAgencyJoinEnabled,
    path: "/v1/admin/agencies/{agency_id}/join-enabled",
    permission: "agency:status",
    permissions: ["agency:status"]
  },
  setAgencyStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setAgencyStatus,
    path: "/v1/admin/agencies/{agency_id}/status",
    permission: "agency:status",
    permissions: ["agency:status"]
  },
  setBDLeaderStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setBDLeaderStatus,
    path: "/v1/admin/bd-leaders/{user_id}/status",
    permission: "bd:update",
    permissions: ["bd:update"]
  },
  setBDStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setBDStatus,
    path: "/v1/admin/bds/{user_id}/status",
    permission: "bd:update",
    permissions: ["bd:update"]
  },
  setCoinSellerStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setCoinSellerStatus,
    path: "/v1/admin/coin-sellers/{user_id}/status",
    permission: "coin-seller:update",
    permissions: ["coin-seller:update"]
  },
  setDiceRobotStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setDiceRobotStatus,
    path: "/v1/admin/game/robots/{user_id}/status",
    permission: "game:update",
    permissions: ["game:update"]
  },
  setGameStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setGameStatus,
    path: "/v1/admin/game/games/{game_id}/status",
    permission: "game:status",
    permissions: ["game:status"]
  },
  setGameWhitelistEnabled: {
    method: "PATCH",
    operationId: API_OPERATIONS.setGameWhitelistEnabled,
    path: "/v1/admin/game/games/{game_id}/whitelist",
    permission: "game:update",
    permissions: ["game:update"]
  },
  setLuckyGiftExperimentOverrides: {
    method: "PUT",
    operationId: API_OPERATIONS.setLuckyGiftExperimentOverrides,
    path: "/v1/admin/ops-center/lucky-gifts/experiments/{experimentId}/overrides",
    permission: "lucky-gift:experiment",
    permissions: ["lucky-gift:experiment"]
  },
  setPrettyIdStatus: {
    method: "POST",
    operationId: API_OPERATIONS.setPrettyIdStatus,
    path: "/v1/admin/users/pretty-ids/{pretty_id}/status",
    permission: "pretty-id:update",
    permissions: ["pretty-id:update"]
  },
  setTaskDefinitionStatus: {
    method: "POST",
    operationId: API_OPERATIONS.setTaskDefinitionStatus,
    path: "/v1/admin/activity/daily-tasks/{task_id}/status",
    permission: "daily-task:status",
    permissions: ["daily-task:status"]
  },
  setThirdPartyPaymentMethodStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setThirdPartyPaymentMethodStatus,
    path: "/v1/admin/payment/third-party-methods/{method_id}/status",
    permission: "payment-third-party:update",
    permissions: ["payment-third-party:update"]
  },
  setWeeklyStarCycleStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.setWeeklyStarCycleStatus,
    path: "/v1/admin/activity/weekly-star/cycles/{cycle_id}/status",
    permission: "weekly-star:update",
    permissions: ["weekly-star:update"]
  },
  sortMenus: {
    method: "PUT",
    operationId: API_OPERATIONS.sortMenus,
    path: "/v1/system/menus/sort",
    permission: "menu:sort",
    permissions: ["menu:sort"]
  },
  startRobotRoom: {
    method: "POST",
    operationId: API_OPERATIONS.startRobotRoom,
    path: "/v1/admin/rooms/robot-rooms/{room_id}/start",
    permission: "room-robot:update",
    permissions: ["room-robot:update"]
  },
  statisticsOverview: {
    method: "GET",
    operationId: API_OPERATIONS.statisticsOverview,
    path: "/v1/statistics/overview",
    permission: "overview:view",
    permissions: ["overview:view"]
  },
  stopRobotRoom: {
    method: "POST",
    operationId: API_OPERATIONS.stopRobotRoom,
    path: "/v1/admin/rooms/robot-rooms/{room_id}/stop",
    permission: "room-robot:update",
    permissions: ["room-robot:update"]
  },
  syncPermissions: {
    method: "POST",
    operationId: API_OPERATIONS.syncPermissions,
    path: "/v1/permissions/sync",
    permission: "permission:sync",
    permissions: ["permission:sync"]
  },
  syncThirdPartyPaymentMethods: {
    method: "POST",
    operationId: API_OPERATIONS.syncThirdPartyPaymentMethods,
    path: "/v1/admin/payment/third-party-methods/sync",
    permission: "payment-third-party:update",
    permissions: ["payment-third-party:update"]
  },
  syncThirdPartyPaymentRates: {
    method: "POST",
    operationId: API_OPERATIONS.syncThirdPartyPaymentRates,
    path: "/v1/admin/payment/third-party-rates/sync",
    permission: "payment-third-party:update",
    permissions: ["payment-third-party:update"]
  },
  updateAchievementDefinition: {
    method: "PUT",
    operationId: API_OPERATIONS.updateAchievementDefinition,
    path: "/v1/admin/activity/achievements/{achievement_id}",
    permission: "achievement:update",
    permissions: ["achievement:update"]
  },
  updateActivityTemplate: {
    method: "PUT",
    operationId: API_OPERATIONS.updateActivityTemplate,
    path: "/v1/admin/activities/templates/{template_id}",
    permission: "activity-template:update",
    permissions: ["activity-template:update"]
  },
  updateAppVersion: {
    method: "PUT",
    operationId: API_OPERATIONS.updateAppVersion,
    path: "/v1/admin/app-config/versions/{version_id}",
    permission: "app-version:update",
    permissions: ["app-version:update"]
  },
  updateBanner: {
    method: "PUT",
    operationId: API_OPERATIONS.updateBanner,
    path: "/v1/admin/app-config/banners/{banner_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updateCatalog: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateCatalog,
    path: "/v1/admin/game/games/{game_id}",
    permission: "game:update",
    permissions: ["game:update"]
  },
  updateCountry: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateCountry,
    path: "/v1/admin/countries/{country_id}",
    permission: "country:update",
    permissions: ["country:update"]
  },
  updateCPConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateCPConfig,
    path: "/v1/admin/activity/cp/config",
    permission: "cp-config:update",
    permissions: ["cp-config:update"]
  },
  updateCPWeeklyRankConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateCPWeeklyRankConfig,
    path: "/v1/admin/activity/cp-weekly-rank/config",
    permission: "cp-weekly-rank:update",
    permissions: ["cp-weekly-rank:update"]
  },
  updateCumulativeRechargeRewardConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateCumulativeRechargeRewardConfig,
    path: "/v1/admin/activity/cumulative-recharge-reward/config",
    permission: "cumulative-recharge-reward:update",
    permissions: ["cumulative-recharge-reward:update"]
  },
  updateDiceConfig: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateDiceConfig,
    path: "/v1/admin/game/self-games/{game_id}/config",
    permission: "game:update",
    permissions: ["game:update"]
  },
  updateExploreTab: {
    method: "PUT",
    operationId: API_OPERATIONS.updateExploreTab,
    path: "/v1/admin/app-config/explore-tabs/{tab_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updateExternalAdminUserPermissions: {
    method: "PUT",
    operationId: API_OPERATIONS.updateExternalAdminUserPermissions,
    path: "/v1/admin/external-admin-users/{id}/permissions",
    permission: "external-admin-user:permissions",
    permissions: ["external-admin-user:permissions"]
  },
  updateExternalAdminUserStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateExternalAdminUserStatus,
    path: "/v1/admin/external-admin-users/{id}/status",
    permission: "external-admin-user:status",
    permissions: ["external-admin-user:status"]
  },
  updateFirstRechargeRewardConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateFirstRechargeRewardConfig,
    path: "/v1/admin/activity/first-recharge-reward/config",
    permission: "first-recharge-reward:update",
    permissions: ["first-recharge-reward:update"]
  },
  updateGift: {
    method: "PUT",
    operationId: API_OPERATIONS.updateGift,
    path: "/v1/admin/gifts/{gift_id}",
    permission: "gift:update",
    permissions: ["gift:update"]
  },
  updateGiftType: {
    method: "PUT",
    operationId: API_OPERATIONS.updateGiftType,
    path: "/v1/admin/gift-types/{type_code}",
    permission: "gift:update",
    permissions: ["gift:update"]
  },
  updateGiftTypes: {
    method: "PUT",
    operationId: API_OPERATIONS.updateGiftTypes,
    path: "/v1/admin/gift-types",
    permission: "gift:update",
    permissions: ["gift:update"]
  },
  updateH5Link: {
    method: "PUT",
    operationId: API_OPERATIONS.updateH5Link,
    path: "/v1/admin/app-config/h5-links/{key}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updateH5Links: {
    method: "PUT",
    operationId: API_OPERATIONS.updateH5Links,
    path: "/v1/admin/app-config/h5-links",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updateHostAgencyPolicy: {
    method: "PUT",
    operationId: API_OPERATIONS.updateHostAgencyPolicy,
    path: "/v1/admin/host-agency-policies/{policy_id}",
    permission: "host-agency-policy:update",
    permissions: ["host-agency-policy:update"]
  },
  updateHumanRoomRobotConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateHumanRoomRobotConfig,
    path: "/v1/admin/rooms/robot-rooms/human-config",
    permission: "room-robot:update",
    permissions: ["room-robot:update"]
  },
  updateInviteActivityRewardConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateInviteActivityRewardConfig,
    path: "/v1/admin/activity/invite-reward/config",
    permission: "invite-activity-reward:update",
    permissions: ["invite-activity-reward:update"]
  },
  updateLuckyGiftExperiment: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateLuckyGiftExperiment,
    path: "/v1/admin/ops-center/lucky-gifts/experiments/{experimentId}",
    permission: "lucky-gift:experiment",
    permissions: ["lucky-gift:experiment"]
  },
  updateManager: {
    method: "PUT",
    operationId: API_OPERATIONS.updateManager,
    path: "/v1/admin/managers/{user_id}",
    permission: "bd:update",
    permissions: ["bd:update"]
  },
  updateMenu: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateMenu,
    path: "/v1/system/menus/{id}",
    permission: "menu:update",
    permissions: ["menu:update"]
  },
  updateMenuVisible: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateMenuVisible,
    path: "/v1/system/menus/{id}/visible",
    permission: "menu:visible",
    permissions: ["menu:visible"]
  },
  updatePermission: {
    method: "PATCH",
    operationId: API_OPERATIONS.updatePermission,
    path: "/v1/permissions/{id}",
    permission: "permission:update",
    permissions: ["permission:update"]
  },
  updatePlatform: {
    method: "PATCH",
    operationId: API_OPERATIONS.updatePlatform,
    path: "/v1/admin/game/platforms/{platform_code}",
    permission: "game:update",
    permissions: ["game:update"]
  },
  updatePolicyInstanceStatus: {
    method: "PUT",
    operationId: API_OPERATIONS.updatePolicyInstanceStatus,
    path: "/v1/admin/policy-instances/{instance_id}/status",
    permission: "policy-instance:update",
    permissions: ["policy-instance:update"]
  },
  updatePopup: {
    method: "PUT",
    operationId: API_OPERATIONS.updatePopup,
    path: "/v1/admin/app-config/popups/{popup_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updatePrettyIdPool: {
    method: "PUT",
    operationId: API_OPERATIONS.updatePrettyIdPool,
    path: "/v1/admin/users/pretty-id-pools/{pool_id}",
    permission: "pretty-id:update",
    permissions: ["pretty-id:update"]
  },
  updateRechargeProduct: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRechargeProduct,
    path: "/v1/admin/payment/recharge-products/{product_id}",
    permission: "payment-product:update",
    permissions: ["payment-product:update"]
  },
  updateRedPacketConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRedPacketConfig,
    path: "/v1/admin/activity/red-packets/config",
    permission: "red-packet:update",
    permissions: ["red-packet:update"]
  },
  updateRegion: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateRegion,
    path: "/v1/admin/regions/{region_id}",
    permission: "region:update",
    permissions: ["region:update"]
  },
  updateRegistrationRewardConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRegistrationRewardConfig,
    path: "/v1/admin/activity/registration-reward/config",
    permission: "registration-reward:update",
    permissions: ["registration-reward:update"]
  },
  updateResource: {
    method: "PUT",
    operationId: API_OPERATIONS.updateResource,
    path: "/v1/admin/resources/{resource_id}",
    permission: "resource:update",
    permissions: ["resource:update"]
  },
  updateResourceGroup: {
    method: "PUT",
    operationId: API_OPERATIONS.updateResourceGroup,
    path: "/v1/admin/resource-groups/{group_id}",
    permission: "resource-group:update",
    permissions: ["resource-group:update"]
  },
  updateResourceGroupItems: {
    method: "PUT",
    operationId: API_OPERATIONS.updateResourceGroupItems,
    path: "/v1/admin/resource-groups/{group_id}/items",
    permission: "resource-group:update",
    permissions: ["resource-group:update"]
  },
  updateResourceIdentityAutoGrantConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateResourceIdentityAutoGrantConfig,
    path: "/v1/admin/resource-groups/identity-auto-grant-config",
    permission: "resource-group:update",
    permissions: ["resource-group:update"]
  },
  updateRiskConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRiskConfig,
    path: "/v1/admin/users/risk-config",
    permission: "risk-config:update",
    permissions: ["risk-config:update"]
  },
  updateRole: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateRole,
    path: "/v1/roles/{id}",
    permission: "role:update",
    permissions: ["role:update","role:manage"]
  },
  updateRoom: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateRoom,
    path: "/v1/admin/rooms/{room_id}",
    permission: "room:update",
    permissions: ["room:update"]
  },
  updateRoomConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRoomConfig,
    path: "/v1/admin/rooms/config",
    permission: "room-config:update",
    permissions: ["room-config:update"]
  },
  updateRoomRocketConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRoomRocketConfig,
    path: "/v1/admin/activity/room-rocket/config",
    permission: "room-rocket:update",
    permissions: ["room-rocket:update"]
  },
  updateRoomRpsConfig: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateRoomRpsConfig,
    path: "/v1/admin/game/room-rps/config",
    permission: "game:update",
    permissions: ["game:update"]
  },
  updateRoomTurnoverRewardConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRoomTurnoverRewardConfig,
    path: "/v1/admin/activity/room-turnover-reward/config",
    permission: "room-turnover-reward:update",
    permissions: ["room-turnover-reward:update"]
  },
  updateRoomWhitelistConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateRoomWhitelistConfig,
    path: "/v1/admin/rooms/whitelist",
    permission: "room-whitelist:update",
    permissions: ["room-whitelist:update"]
  },
  updateSevenDayCheckInConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateSevenDayCheckInConfig,
    path: "/v1/admin/activity/seven-day-checkin/config",
    permission: "seven-day-checkin:update",
    permissions: ["seven-day-checkin:update"]
  },
  updateSplashScreen: {
    method: "PUT",
    operationId: API_OPERATIONS.updateSplashScreen,
    path: "/v1/admin/app-config/splash-screens/{splash_id}",
    permission: "app-config:update",
    permissions: ["app-config:update"]
  },
  updateTaskDefinition: {
    method: "PUT",
    operationId: API_OPERATIONS.updateTaskDefinition,
    path: "/v1/admin/activity/daily-tasks/{task_id}",
    permission: "daily-task:update",
    permissions: ["daily-task:update"]
  },
  updateTeam: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateTeam,
    path: "/v1/teams/{team_id}",
    permission: "team:update",
    permissions: ["team:update"]
  },
  updateTeamSalaryPolicy: {
    method: "PUT",
    operationId: API_OPERATIONS.updateTeamSalaryPolicy,
    path: "/v1/admin/team-salary-policies/{policy_id}",
    permission: "team-salary-policy:update",
    permissions: ["team-salary-policy:update"]
  },
  updateThirdPartyPaymentRate: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateThirdPartyPaymentRate,
    path: "/v1/admin/payment/third-party-rates/{method_id}",
    permission: "payment-third-party:update",
    permissions: ["payment-third-party:update"]
  },
  updateTier: {
    method: "PUT",
    operationId: API_OPERATIONS.updateTier,
    path: "/v1/admin/users/level-config/tiers/{tier_id}",
    permission: "level-config:update",
    permissions: ["level-config:update"]
  },
  updateTrack: {
    method: "PUT",
    operationId: API_OPERATIONS.updateTrack,
    path: "/v1/admin/users/level-config/tracks/{track}",
    permission: "level-config:update",
    permissions: ["level-config:update"]
  },
  updateUser: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateUser,
    path: "/v1/users/{id}",
    permission: "user:update",
    permissions: ["user:update"]
  },
  updateUserStatus: {
    method: "PATCH",
    operationId: API_OPERATIONS.updateUserStatus,
    path: "/v1/users/{id}/status",
    permission: "user:status",
    permissions: ["user:status"]
  },
  updateVipConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.updateVipConfig,
    path: "/v1/admin/activity/vip-levels",
    permission: "vip-config:update",
    permissions: ["vip-config:update"]
  },
  updateVipProgram: {
    method: "PUT",
    operationId: API_OPERATIONS.updateVipProgram,
    path: "/v1/admin/activity/vip-program",
    permission: "vip-config:update",
    permissions: ["vip-config:update"]
  },
  updateWeeklyStarCycle: {
    method: "PUT",
    operationId: API_OPERATIONS.updateWeeklyStarCycle,
    path: "/v1/admin/activity/weekly-star/cycles/{cycle_id}",
    permission: "weekly-star:update",
    permissions: ["weekly-star:update"]
  },
  uploadFile: {
    method: "POST",
    operationId: API_OPERATIONS.uploadFile,
    path: "/v1/admin/files/upload",
    permission: "upload:create",
    permissions: ["upload:create"]
  },
  uploadImage: {
    method: "POST",
    operationId: API_OPERATIONS.uploadImage,
    path: "/v1/admin/files/image/upload",
    permission: "upload:create",
    permissions: ["upload:create"]
  },
  upsertFinanceUSDTAddress: {
    method: "PUT",
    operationId: API_OPERATIONS.upsertFinanceUSDTAddress,
    path: "/v1/admin/finance/usdt-addresses/{app_code}/{chain}",
    permission: "finance-order:usdt-address:update",
    permissions: ["finance-order:usdt-address:update"]
  },
  upsertLuckyGiftConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.upsertLuckyGiftConfig,
    path: "/v1/admin/ops-center/lucky-gifts/config",
    permission: "lucky-gift:update",
    permissions: ["lucky-gift:update"]
  },
  upsertResourceShopItems: {
    method: "POST",
    operationId: API_OPERATIONS.upsertResourceShopItems,
    path: "/v1/admin/resource-shop/items",
    permission: "resource-shop:update",
    permissions: ["resource-shop:update"]
  },
  upsertRule: {
    method: "PUT",
    operationId: API_OPERATIONS.upsertRule,
    path: "/v1/admin/users/level-config/rules/{track}/{level}",
    permission: "level-config:update",
    permissions: ["level-config:update"]
  },
  upsertWheelConfig: {
    method: "PUT",
    operationId: API_OPERATIONS.upsertWheelConfig,
    path: "/v1/admin/activity/wheel/config",
    permission: "wheel:update",
    permissions: ["wheel:update"]
  },
  validateActivityTemplate: {
    method: "POST",
    operationId: API_OPERATIONS.validateActivityTemplate,
    path: "/v1/admin/activities/templates/validate",
    permission: "activity-template:update",
    permissions: ["activity-template:create","activity-template:update","activity-template:publish"]
  },
  verifyFinanceCoinSellerRechargeOrder: {
    method: "POST",
    operationId: API_OPERATIONS.verifyFinanceCoinSellerRechargeOrder,
    path: "/v1/admin/finance/orders/coin-seller-recharges/{order_id}/verify",
    permission: "finance-order:coin-seller-recharge:verify",
    permissions: ["finance-order:coin-seller-recharge:verify"]
  },
  verifyFinanceCoinSellerRechargeReceipt: {
    method: "POST",
    operationId: API_OPERATIONS.verifyFinanceCoinSellerRechargeReceipt,
    path: "/v1/admin/finance/orders/coin-seller-recharges/receipt-verifications",
    permission: "finance-order:coin-seller-recharge:verify",
    permissions: ["finance-order:coin-seller-recharge:verify"]
  }
};

export const API_OPERATION_IDS = Object.values(API_OPERATIONS);

export const API_PERMISSION_CODES = Array.from(
  new Set(
    Object.values(API_ENDPOINTS)
      .flatMap((endpoint) => endpoint.permissions || (endpoint.permission ? [endpoint.permission] : []))
      .filter((permission): permission is PermissionCode => Boolean(permission))
  )
);

export type ApiPathParams = Record<string, number | string>;

export function apiEndpointPath(operationId: ApiOperationId, params: ApiPathParams = {}) {
  let endpointPath = API_ENDPOINTS[operationId].path;

  for (const [key, value] of Object.entries(params)) {
    endpointPath = endpointPath.replace(`{${key}}`, encodeURIComponent(String(value)));
  }

  return endpointPath;
}
