@lovrabet/rabetbase-cli 2.5.1 → 2.5.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.d.ts +3 -11
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/issue/index.js +1 -1
  105. package/lib/commands/issue/nudge.js +1 -1
  106. package/lib/commands/issue/report.js +1 -1
  107. package/lib/commands/issue/shared.js +1 -1
  108. package/lib/commands/kb/create.js +1 -1
  109. package/lib/commands/kb/delete.js +1 -1
  110. package/lib/commands/kb/detail.js +1 -1
  111. package/lib/commands/kb/index.js +1 -1
  112. package/lib/commands/kb/list.js +1 -1
  113. package/lib/commands/kb/search.js +1 -1
  114. package/lib/commands/kb/shared.js +1 -1
  115. package/lib/commands/kb/update.js +1 -1
  116. package/lib/commands/logs/index.js +1 -1
  117. package/lib/commands/menu/asset-update.js +1 -1
  118. package/lib/commands/menu/delete.js +1 -1
  119. package/lib/commands/menu/external-link-create.js +1 -1
  120. package/lib/commands/menu/external-link-update.js +1 -1
  121. package/lib/commands/menu/group-create.js +1 -1
  122. package/lib/commands/menu/group-update.js +1 -1
  123. package/lib/commands/menu/index.js +1 -1
  124. package/lib/commands/menu/list.js +1 -1
  125. package/lib/commands/menu/move.js +1 -1
  126. package/lib/commands/menu/regroup-start.js +1 -1
  127. package/lib/commands/menu/rename.js +1 -1
  128. package/lib/commands/menu/shared/compare-table.js +1 -1
  129. package/lib/commands/menu/shared/delete-plan.js +1 -1
  130. package/lib/commands/menu/shared/facts.js +1 -1
  131. package/lib/commands/menu/shared/index.js +1 -1
  132. package/lib/commands/menu/shared/inquirer.js +1 -1
  133. package/lib/commands/menu/shared/local-pages.js +1 -1
  134. package/lib/commands/menu/shared/logic.js +1 -1
  135. package/lib/commands/menu/shared/mutations.js +1 -1
  136. package/lib/commands/menu/shared/service.js +1 -1
  137. package/lib/commands/menu/shared/sync-core.js +1 -1
  138. package/lib/commands/menu/shared/update-core.js +1 -1
  139. package/lib/commands/menu/shared/valid-url.js +1 -1
  140. package/lib/commands/menu/sync.js +1 -1
  141. package/lib/commands/menu/visibility-update.js +1 -1
  142. package/lib/commands/notification/config-create.js +1 -1
  143. package/lib/commands/notification/config-delete.js +1 -1
  144. package/lib/commands/notification/config-list.js +1 -1
  145. package/lib/commands/notification/config-update.js +1 -1
  146. package/lib/commands/notification/index.js +1 -1
  147. package/lib/commands/notification/shared.js +1 -1
  148. package/lib/commands/ocr/index.js +1 -1
  149. package/lib/commands/page/create.js +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -1
  151. package/lib/commands/page/custom/list.js +1 -1
  152. package/lib/commands/page/custom/publish.js +1 -1
  153. package/lib/commands/page/custom/shared.js +1 -1
  154. package/lib/commands/page/custom/syntax.js +1 -1
  155. package/lib/commands/page/custom/template.js +1 -1
  156. package/lib/commands/page/custom/update.js +1 -1
  157. package/lib/commands/page/data-list-status.js +1 -1
  158. package/lib/commands/page/generate-start.js +1 -1
  159. package/lib/commands/page/generate-status.js +1 -1
  160. package/lib/commands/page/index.js +1 -1
  161. package/lib/commands/page/pull.js +1 -1
  162. package/lib/commands/page/push.js +1 -1
  163. package/lib/commands/page/relation-audit.js +1 -1
  164. package/lib/commands/page/restore.js +1 -1
  165. package/lib/commands/page/shared.js +1 -1
  166. package/lib/commands/page/sync.js +1 -1
  167. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  168. package/lib/commands/project/create/format-elapsed.js +1 -1
  169. package/lib/commands/project/create/main.js +1 -1
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  175. package/lib/commands/project/create/use-format-code.js +1 -1
  176. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  177. package/lib/commands/project/domain-routing-sync.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/delete.js +1 -1
  182. package/lib/commands/role/detail.js +1 -1
  183. package/lib/commands/role/index.js +1 -1
  184. package/lib/commands/role/list.js +1 -1
  185. package/lib/commands/role/shared.js +1 -1
  186. package/lib/commands/role/update.js +1 -1
  187. package/lib/commands/role/user-add.js +1 -1
  188. package/lib/commands/role/user-remove.js +1 -1
  189. package/lib/commands/role/user-resolve.js +1 -1
  190. package/lib/commands/rule/get.js +1 -1
  191. package/lib/commands/rule/index.js +1 -1
  192. package/lib/commands/rule/list.js +1 -1
  193. package/lib/commands/rule/set.js +1 -1
  194. package/lib/commands/rule/shared.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.d.ts +0 -2
  232. package/lib/context/app-resolver.js +1 -1
  233. package/lib/context/auth-resolver.js +1 -1
  234. package/lib/context/config-loader.js +1 -1
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +0 -2
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/kb-search-client.js +1 -1
  246. package/lib/core/page/file-system.js +1 -1
  247. package/lib/core/page/hash.js +1 -1
  248. package/lib/core/page/lock.js +1 -1
  249. package/lib/core/sql-index-auditor.js +1 -1
  250. package/lib/core/sql-sync/config.js +1 -1
  251. package/lib/core/sql-sync/file-system.js +1 -1
  252. package/lib/core/sql-sync/hash.js +1 -1
  253. package/lib/core/sql-sync/lock.js +1 -1
  254. package/lib/core/sql-sync/utils.js +1 -1
  255. package/lib/core/sql-validator.js +1 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.js +1 -1
  262. package/lib/framework/index.js +1 -1
  263. package/lib/framework/output.js +1 -1
  264. package/lib/framework/response.js +1 -1
  265. package/lib/framework/runner-alias.js +1 -1
  266. package/lib/framework/runner.js +1 -1
  267. package/lib/framework/schema-export.js +1 -1
  268. package/lib/framework/supported-flags.d.ts +2 -0
  269. package/lib/framework/supported-flags.js +1 -0
  270. package/lib/framework/types.d.ts +2 -4
  271. package/lib/framework/types.js +1 -1
  272. package/lib/generated/build-info.d.ts +4 -4
  273. package/lib/generated/build-info.js +1 -1
  274. package/lib/generated/official-routing.js +1 -1
  275. package/lib/generated/routing-contract.js +1 -1
  276. package/lib/help.js +1 -1
  277. package/lib/postinstall.js +1 -1
  278. package/lib/runtime/confirmation.js +1 -1
  279. package/lib/runtime/event.js +1 -1
  280. package/lib/runtime/index.js +1 -1
  281. package/lib/runtime/queue.js +1 -1
  282. package/lib/runtime/resolve.js +1 -1
  283. package/lib/skills/builtin-skill.js +1 -1
  284. package/lib/skills/main.js +1 -1
  285. package/lib/skills/npx-skills-add.js +1 -1
  286. package/lib/skills/skill-presence.js +1 -1
  287. package/lib/telemetry/cli-command-trace.js +1 -1
  288. package/lib/telemetry/cli-help-trace.js +1 -1
  289. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  290. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  291. package/lib/telemetry/send-cli-trace-log.js +1 -1
  292. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  293. package/lib/utils/ai_config.js +1 -1
  294. package/lib/utils/apply-jq-filter.js +1 -1
  295. package/lib/utils/cdn-config.js +1 -1
  296. package/lib/utils/check-sdk-version.js +1 -1
  297. package/lib/utils/cli-version-check.js +1 -1
  298. package/lib/utils/cli-version-policy.js +1 -1
  299. package/lib/utils/config.js +1 -1
  300. package/lib/utils/entity-with-id.js +1 -1
  301. package/lib/utils/file-utils.js +1 -1
  302. package/lib/utils/guides-cdn.js +1 -1
  303. package/lib/utils/http-client.js +1 -1
  304. package/lib/utils/is-non-interactive.js +1 -1
  305. package/lib/utils/logger.js +1 -1
  306. package/lib/utils/params.js +1 -1
  307. package/lib/utils/platform.js +1 -1
  308. package/lib/utils/sleep.js +1 -1
  309. package/lib/utils/template-replacer.js +1 -1
  310. package/lib/utils/update-notice.js +1 -1
  311. package/lib/utils/version.js +1 -1
  312. package/lib/utils/with-active-cookie.js +1 -1
  313. package/lib/utils/write-cli-side-channel.js +1 -1
  314. package/package.json +1 -1
  315. package/skills/rabetbase/SKILL.md +3 -3
  316. package/skills/rabetbase/references/rabetbase-deployment-sync.md +16 -44
  317. package/skills/rabetbase.manifest.json +3 -3
  318. package/lib/config/deployment-sync.d.ts +0 -10
  319. package/lib/config/deployment-sync.js +0 -1
@@ -1 +1 @@
1
- const a140_0x5bc500=a140_0x4ea8;(function(_0x1fd2d6,_0x3c72e6){const _0x507064=a140_0x4ea8,_0x1cd569=_0x1fd2d6();while(!![]){try{const _0x32373d=-parseInt(_0x507064(0x211))/0x1+parseInt(_0x507064(0x226))/0x2+parseInt(_0x507064(0x1da))/0x3+-parseInt(_0x507064(0x23c))/0x4+-parseInt(_0x507064(0x206))/0x5*(parseInt(_0x507064(0x1f0))/0x6)+parseInt(_0x507064(0x1fb))/0x7+parseInt(_0x507064(0x20a))/0x8*(parseInt(_0x507064(0x227))/0x9);if(_0x32373d===_0x3c72e6)break;else _0x1cd569['push'](_0x1cd569['shift']());}catch(_0x2a6209){_0x1cd569['push'](_0x1cd569['shift']());}}}(a140_0x43d2,0x21d97));function a140_0x4ea8(_0x1086f7,_0x118aab){_0x1086f7=_0x1086f7-0x1c9;const _0x43d264=a140_0x43d2();let _0x4ea828=_0x43d264[_0x1086f7];return _0x4ea828;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a140_0x5bc500(0x210)}];export const menuVisibilityUpdate={'service':'menu','command':a140_0x5bc500(0x23a),'description':a140_0x5bc500(0x20e),'risk':a140_0x5bc500(0x204),'structuredErrors':!![],'flags':[{'name':a140_0x5bc500(0x1d1),'type':a140_0x5bc500(0x207),'description':a140_0x5bc500(0x1ec)},{'name':a140_0x5bc500(0x1eb),'type':'string','description':a140_0x5bc500(0x231)},{'name':a140_0x5bc500(0x1cf),'type':a140_0x5bc500(0x1f7),'required':!![],'description':a140_0x5bc500(0x223)},{'name':a140_0x5bc500(0x1d2),'type':'boolean','description':a140_0x5bc500(0x1f5)},{'name':a140_0x5bc500(0x212),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x258cc2){parseInput(_0x258cc2),requireExplicitYes(_0x258cc2);},async 'dryRun'(_0x468905){const _0x494689=a140_0x5bc500,_0x34beb9=await buildPlan(_0x468905,!![]),_0xb09748=_0x34beb9[_0x494689(0x1d5)]['plannedActions']?.[_0x494689(0x1e1)]??0x0,_0x1dc268=_0x34beb9['plan']['targets'][_0x494689(0x1e1)]-_0xb09748;return menuDryRunResult(_0x34beb9[_0x494689(0x1d5)],{'method':_0x494689(0x1d4),'url':_0x494689(0x210),'body':{'updates':_0x34beb9[_0x494689(0x1d5)][_0x494689(0x1f6)]?.[_0x494689(0x237)](_0x34f09a=>_0x34f09a[_0x494689(0x1fe)])??[]},'description':_0x494689(0x1ed)+_0xb09748+_0x494689(0x1ce)+_0x1dc268+_0x494689(0x1df)});},async 'execute'(_0x1903a3){const _0x45063e=a140_0x5bc500;requireExplicitYes(_0x1903a3);const _0x450b40=await buildPlan(_0x1903a3,![]);await recheckMutationSnapshot(_0x1903a3,_0x450b40['plan'],_0x45063e(0x220));const _0x41459c=[],_0x4d2089=[],_0x34d492=[];for(const _0x1cedb0 of _0x450b40[_0x45063e(0x1d5)][_0x45063e(0x22b)]){if(_0x1cedb0['before'][_0x45063e(0x1cf)]===_0x450b40['plan'][_0x45063e(0x1ea)]){_0x41459c['push']({'id':_0x1cedb0['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x1903a3[_0x45063e(0x1d7)],_0x1903a3[_0x45063e(0x205)],{'id':_0x1cedb0['id'],'visible':_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]}),_0x41459c[_0x45063e(0x214)]({'id':_0x1cedb0['id'],'updated':!![],'skipped':![]});}catch(_0x522172){const _0xc6b07f=mapMenuApiError(_0x522172,'update\x20visibility\x20for',_0x1cedb0['id']);if(isMenuResponseLoss(_0x522172)&&_0xc6b07f[_0x45063e(0x1dd)]!==_0x45063e(0x232)){_0x34d492['push'](_0x1cedb0['id']);continue;}_0x4d2089[_0x45063e(0x214)]({'id':_0x1cedb0['id'],'stage':_0x45063e(0x233),'code':_0xc6b07f[_0x45063e(0x1dd)],'message':_0xc6b07f[_0x45063e(0x22e)]});}}let _0x296ef2;try{_0x296ef2=await fetchMenuSnapshot(_0x1903a3[_0x45063e(0x1d7)],_0x1903a3['cookie']);}catch(_0x542ab3){const _0x19a91d=describeMenuErrorCause(_0x542ab3,_0x45063e(0x200)),_0x350f8a=_0x34d492[_0x45063e(0x237)](_0x225221=>({'id':_0x225221,'stage':_0x45063e(0x22a),'code':_0x45063e(0x1c9),'message':_0x45063e(0x1ee)+_0x225221+_0x45063e(0x1f2),'requestedStateConfirmed':![],'recovered':![]})),_0x569b19={'stage':'verification','code':_0x45063e(0x1c9),'message':_0x45063e(0x1e2),'targetIds':_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x22b)][_0x45063e(0x237)](_0x48abdc=>_0x48abdc['id']),'requestedStateConfirmed':![],..._0x19a91d};throw menuFailure(asVerificationError(_0x542ab3,_0x45063e(0x22f)),_0x450b40[_0x45063e(0x1d5)],{'stage':_0x45063e(0x236),'succeeded':_0x41459c,'failedRecords':[..._0x4d2089,..._0x350f8a,_0x569b19],'warnings':[_0x45063e(0x1fc)],'verification':{'status':_0x45063e(0x1e6),'recoveredCount':0x0,'lookupCommand':_0x45063e(0x1e5)}});}const _0x2efe78=[];for(const _0x5151ab of _0x41459c){const _0x9b8c03=Number(_0x5151ab['id']),_0x2b0199=_0x450b40[_0x45063e(0x1e3)][_0x45063e(0x1e7)](_0x9b8c03),_0x2e8919=_0x296ef2[_0x45063e(0x234)][_0x45063e(0x1e7)](_0x9b8c03);try{verifyVisibilityUpdate(_0x2b0199,_0x2e8919,_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]);}catch(_0x5b89a1){const _0xe6334b=asVerificationError(_0x5b89a1,'Menu\x20'+_0x9b8c03+_0x45063e(0x20c));_0x2efe78[_0x45063e(0x214)]({'id':_0x9b8c03,'stage':_0x45063e(0x236),'code':_0xe6334b[_0x45063e(0x1dd)],'message':_0xe6334b[_0x45063e(0x22e)],'requestedStateConfirmed':![]});}}for(const _0x4c5694 of _0x34d492){const _0x837ef5=_0x450b40['beforeById'][_0x45063e(0x1e7)](_0x4c5694),_0x4a39e5=_0x296ef2['byId'][_0x45063e(0x1e7)](_0x4c5694);try{verifyVisibilityUpdate(_0x837ef5,_0x4a39e5,_0x450b40[_0x45063e(0x1d5)][_0x45063e(0x1ea)]),_0x41459c[_0x45063e(0x214)]({'id':_0x4c5694,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3ad714){const _0x1cb405=asVerificationError(_0x3ad714,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x4c5694+_0x45063e(0x230));_0x2efe78['push']({'id':_0x4c5694,'stage':_0x45063e(0x22a),'code':_0x1cb405[_0x45063e(0x1dd)],'message':_0x1cb405[_0x45063e(0x22e)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2efe78[_0x45063e(0x1e1)]>0x0){const _0x48a72f=_0x2efe78['map'](_0x198f5f=>Number(_0x198f5f['id'])),_0x329c09=_0x41459c[_0x45063e(0x1ff)](_0x3e5d93=>_0x3e5d93[_0x45063e(0x1fd)]===!![])[_0x45063e(0x1e1)],_0x27eed2=menuError(_0x45063e(0x1c9),_0x45063e(0x1cc)+_0x48a72f[_0x45063e(0x1cd)](',\x20')+'.',_0x45063e(0x1de));throw menuFailure(_0x27eed2,_0x450b40[_0x45063e(0x1d5)],{'stage':_0x45063e(0x236),'succeeded':_0x41459c,'failedRecords':[..._0x4d2089,..._0x2efe78],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x45063e(0x1e6),..._0x48a72f[_0x45063e(0x1e1)]===0x1?{'targetId':_0x48a72f[0x0]}:{'targetIds':_0x48a72f},'recoveredCount':_0x329c09,'lookupCommand':_0x45063e(0x1e5)}});}const _0x5e49f1=_0x41459c['filter'](_0x53f939=>_0x53f939[_0x45063e(0x1e4)]===!![])[_0x45063e(0x1e1)],_0x4f7821=_0x41459c['length']-_0x5e49f1,_0x523620={..._0x450b40['plan'],'succeeded':_0x41459c,'failed':_0x4d2089,'warnings':_0x4d2089[_0x45063e(0x1e1)]>0x0?[..._0x450b40[_0x45063e(0x1d5)]['warnings'],_0x45063e(0x1cb)]:_0x450b40['plan']['warnings'],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x296ef2[_0x45063e(0x1f1)],'matchesRequestedState':_0x4d2089[_0x45063e(0x1e1)]===0x0,'recoveredCount':_0x34d492[_0x45063e(0x1e1)]}};return{'ok':_0x4d2089['length']===0x0,'data':_0x523620,'message':_0x4d2089[_0x45063e(0x1e1)]===0x0?_0x45063e(0x217)+_0x5e49f1+_0x45063e(0x1d8)+_0x4f7821+_0x45063e(0x1df):'Menu\x20visibility\x20update\x20completed:\x20'+_0x5e49f1+_0x45063e(0x215)+_0x4f7821+'\x20skipped,\x20'+_0x4d2089[_0x45063e(0x1e1)]+'\x20failed.'};}};function parseInput(_0x24c281){const _0x171019=a140_0x5bc500,_0xed16fd=parseMenuIds(_0x24c281[_0x171019(0x1dc)](_0x171019(0x1d1))),_0x27f430=parseCsv(_0x24c281[_0x171019(0x1dc)](_0x171019(0x1eb)));if(_0xed16fd[_0x171019(0x1e1)]===0x0&&_0x27f430[_0x171019(0x1e1)]===0x0)throw CliErrors[_0x171019(0x1d3)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x121cd6=parseBooleanFlag(_0x24c281,_0x171019(0x1cf),!![]),_0x5c8419=parseBooleanFlag(_0x24c281,'expect-visible',![]);let _0x4d0891;if(hasFlag(_0x24c281,_0x171019(0x212))){_0x4d0891=_0x24c281[_0x171019(0x21e)](_0x171019(0x212));if(!Number[_0x171019(0x21d)](_0x4d0891)||_0x4d0891<0x0)throw CliErrors['validation']('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0xed16fd,'paths':_0x27f430,'visible':_0x121cd6,'expectVisible':_0x5c8419,'expectedCount':_0x4d0891};}function a140_0x43d2(){const _0x1587b2=['body','filter','verify\x20menu\x20visibility\x20update','rawFlags','datasetCode','expectedCount','high-risk-write','cookie','505eVuIvI','string','pageId','menu_expected_count_mismatch','88848GoUzVC','datasetId','\x20visibility\x20update\x20could\x20not\x20be\x20verified','\x20menu(s),\x20expected\x20','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','resources','/smartapi/menu/update','35729YTffqI','expected-count','depth','push','\x20updated,\x20','some','Updated\x20visibility\x20for\x20','values','childrenCount','path','Menu\x20id\x20selector(s)\x20not\x20found:\x20','flagMissing','isSafeInteger','num','childrenIds','update\x20menu\x20visibility','parentId','stringify','Requested\x20menu\x20visibility','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','47086cTsBry','99QOLMkw','sort','\x20must\x20be\x20true\x20or\x20false.','update-recovery','targets','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','true','message','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','menu_permission_denied','update','byId','menus','verification','map','resourcesValid','Menu\x20','visibility-update','has','971660IHirOa','menu_selector_ambiguous','menu_verification_failed','menuIds','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','join','\x20menu(s);\x20skip\x20','visible','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','menu-ids','expect-visible','validation','POST','plan','trim','appCode','\x20menu(s);\x20skipped\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','770496zUbhdD','set','str','code','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20unchanged\x20menu(s).','pageType','length','Final\x20menu\x20visibility\x20readback\x20failed.','beforeById','updated','rabetbase\x20menu\x20list\x20--format\x20compress','failed','get','label','isArray','requestedVisible','paths','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','Would\x20update\x20visibility\x20for\x20','Response\x20was\x20lost\x20for\x20menu\x20','menu_selector_not_found','8130MCnLev','hash','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','false','split','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','plannedActions','boolean','type','Menu\x20path\x20selector\x20not\x20found:\x20','url','1061235ftBWUw','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','recovered'];a140_0x43d2=function(){return _0x1587b2;};return a140_0x43d2();}async function buildPlan(_0x3edd9c,_0x3f2d20){const _0x385403=a140_0x5bc500,_0x4703cd=parseInput(_0x3edd9c),_0x3dae59=await fetchMutationSnapshot(_0x3edd9c,_0x385403(0x220)),_0x14fc47=selectTargets(_0x3dae59[_0x385403(0x235)],_0x4703cd[_0x385403(0x1ca)],_0x4703cd[_0x385403(0x1eb)]);if(_0x4703cd[_0x385403(0x203)]!==undefined&&_0x14fc47[_0x385403(0x1e1)]!==_0x4703cd[_0x385403(0x203)])throw menuError(_0x385403(0x209),_0x385403(0x224)+_0x14fc47[_0x385403(0x1e1)]+_0x385403(0x20d)+_0x4703cd[_0x385403(0x203)]+'.',_0x385403(0x1d9));if(_0x4703cd['expectVisible']!==undefined){const _0x34bf49=_0x14fc47['filter'](_0x1dca98=>_0x1dca98[_0x385403(0x1cf)]!==_0x4703cd['expectVisible']);if(_0x34bf49['length']>0x0)throw menuError('menu_state_drift','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x34bf49[_0x385403(0x237)](_0x52c41b=>_0x52c41b['id'])[_0x385403(0x1cd)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x716f5e=_0x14fc47[_0x385403(0x237)](_0x8c9186=>({'id':_0x8c9186['id'],'label':_0x8c9186[_0x385403(0x1e8)],'path':_0x8c9186['path'],'before':{'visible':_0x8c9186[_0x385403(0x1cf)]},'after':{'visible':_0x4703cd[_0x385403(0x1cf)]}})),_0x3b5928=_0x716f5e[_0x385403(0x1ff)](_0x46b7cc=>_0x46b7cc['before'][_0x385403(0x1cf)]!==_0x4703cd[_0x385403(0x1cf)])['map'](_0x365996=>({'stage':'update-menu-visibility','method':_0x385403(0x1d4),'path':_0x385403(0x210),'body':{'appCode':_0x3edd9c[_0x385403(0x1d7)],'id':_0x365996['id'],'visible':_0x4703cd[_0x385403(0x1cf)]}})),_0x4fc05b=mutationResult({'operation':_0x385403(0x23a),'selector':{'menuIds':_0x4703cd[_0x385403(0x1ca)],'paths':_0x4703cd[_0x385403(0x1eb)]},'before':{'menus':_0x14fc47[_0x385403(0x237)](_0x911f4d=>({'id':_0x911f4d['id'],'path':_0x911f4d[_0x385403(0x21a)],'visible':_0x911f4d[_0x385403(0x1cf)]}))},'after':{'menus':_0x14fc47['map'](_0x45ad12=>({'id':_0x45ad12['id'],'path':_0x45ad12[_0x385403(0x21a)],'visible':_0x4703cd[_0x385403(0x1cf)]}))},'dryRun':_0x3f2d20,'backend':[...BACKEND],'plannedActions':_0x3b5928,'snapshotHash':_0x3dae59[_0x385403(0x1f1)],'warnings':_0x3b5928['length']===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x4fc05b,'requestedVisible':_0x4703cd[_0x385403(0x1cf)],'targets':_0x716f5e},'beforeById':new Map(_0x14fc47[_0x385403(0x237)](_0x56bf53=>[_0x56bf53['id'],_0x56bf53]))};}function selectTargets(_0x25a107,_0x52ee16,_0xbf798d){const _0x21b96e=a140_0x5bc500,_0x41f835=new Map(_0x25a107[_0x21b96e(0x237)](_0x1176b5=>[_0x1176b5['id'],_0x1176b5])),_0x241b62=new Map(),_0x325f67=_0x52ee16[_0x21b96e(0x1ff)](_0x3a785d=>!_0x41f835[_0x21b96e(0x23b)](_0x3a785d));if(_0x325f67['length']>0x0)throw menuError(_0x21b96e(0x1ef),_0x21b96e(0x21b)+_0x325f67[_0x21b96e(0x1cd)](',\x20')+'.',_0x21b96e(0x225));for(const _0x1354ef of _0x52ee16){_0x241b62[_0x21b96e(0x1db)](_0x1354ef,_0x41f835[_0x21b96e(0x1e7)](_0x1354ef));}for(const _0x3287aa of _0xbf798d){const _0x56b00c=_0x25a107[_0x21b96e(0x1ff)](_0x1475a8=>_0x1475a8[_0x21b96e(0x21a)]===_0x3287aa);if(_0x56b00c[_0x21b96e(0x1e1)]===0x0)throw menuError(_0x21b96e(0x1ef),_0x21b96e(0x1f9)+JSON[_0x21b96e(0x222)](_0x3287aa)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x56b00c[_0x21b96e(0x1e1)]>0x1)throw menuError(_0x21b96e(0x23d),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x21b96e(0x222)](_0x3287aa)+'.',_0x21b96e(0x1d0)+_0x56b00c['map'](_0x4d9411=>_0x4d9411['id'])['join'](',\x20')+'.');const _0x571ad4=_0x56b00c[0x0];_0x241b62['set'](_0x571ad4['id'],_0x571ad4);}return[..._0x241b62[_0x21b96e(0x218)]()];}function parseMenuIds(_0x26f0c5){const _0x7f3005=a140_0x5bc500,_0x38f4b0=parseCsv(_0x26f0c5),_0xad4dcc=_0x38f4b0[_0x7f3005(0x237)](Number);if(_0xad4dcc[_0x7f3005(0x216)](_0x5eaf82=>!Number[_0x7f3005(0x21d)](_0x5eaf82)||_0x5eaf82<=0x0))throw CliErrors[_0x7f3005(0x1d3)]('--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.');return[...new Set(_0xad4dcc)];}function parseCsv(_0x4b5747){const _0x5013c3=a140_0x5bc500;return[...new Set(_0x4b5747[_0x5013c3(0x1f4)](',')[_0x5013c3(0x237)](_0x342c7a=>_0x342c7a[_0x5013c3(0x1d6)]())[_0x5013c3(0x1ff)](Boolean))];}function parseBooleanFlag(_0x350b9f,_0x5b4150,_0x803a3c){const _0x5a3bf7=a140_0x5bc500;if(!hasFlag(_0x350b9f,_0x5b4150)){if(_0x803a3c)throw CliErrors[_0x5a3bf7(0x21c)](_0x5b4150);return undefined;}const _0x5949b2=_0x350b9f[_0x5a3bf7(0x201)][_0x5b4150];if(_0x5949b2===!![]||_0x5949b2===![])return _0x5949b2;if(_0x5949b2===_0x5a3bf7(0x22d))return!![];if(_0x5949b2===_0x5a3bf7(0x1f3))return![];throw CliErrors[_0x5a3bf7(0x1d3)]('--'+_0x5b4150+_0x5a3bf7(0x229));}function verifyVisibilityUpdate(_0x64d2f2,_0x4c3498,_0x9b81a5){const _0x563db6=a140_0x5bc500;assertVerified(!!_0x4c3498,_0x563db6(0x239)+_0x64d2f2['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x4c3498['visible']===_0x9b81a5,_0x563db6(0x239)+_0x64d2f2['id']+_0x563db6(0x22c));const _0x230598=[['id',_0x4c3498['id'],_0x64d2f2['id']],[_0x563db6(0x221),_0x4c3498[_0x563db6(0x221)],_0x64d2f2['parentId']],['depth',_0x4c3498[_0x563db6(0x213)],_0x64d2f2['depth']],['label',_0x4c3498[_0x563db6(0x1e8)],_0x64d2f2[_0x563db6(0x1e8)]],['path',_0x4c3498['path'],_0x64d2f2[_0x563db6(0x21a)]],[_0x563db6(0x1fa),_0x4c3498['url'],_0x64d2f2[_0x563db6(0x1fa)]],[_0x563db6(0x1f8),_0x4c3498[_0x563db6(0x1f8)],_0x64d2f2[_0x563db6(0x1f8)]],['sort',_0x4c3498['sort'],_0x64d2f2[_0x563db6(0x228)]],[_0x563db6(0x20f),_0x4c3498['resources'],_0x64d2f2[_0x563db6(0x20f)]],['resourcesValid',_0x4c3498[_0x563db6(0x238)],_0x64d2f2[_0x563db6(0x238)]],[_0x563db6(0x21f),_0x4c3498[_0x563db6(0x21f)],_0x64d2f2[_0x563db6(0x21f)]],['childrenCount',_0x4c3498[_0x563db6(0x219)],_0x64d2f2[_0x563db6(0x219)]],['pageId',_0x4c3498[_0x563db6(0x208)],_0x64d2f2[_0x563db6(0x208)]],['pageType',_0x4c3498[_0x563db6(0x1e0)],_0x64d2f2[_0x563db6(0x1e0)]],['modelType',_0x4c3498['modelType'],_0x64d2f2['modelType']],[_0x563db6(0x20b),_0x4c3498[_0x563db6(0x20b)],_0x64d2f2[_0x563db6(0x20b)]],['datasetCode',_0x4c3498[_0x563db6(0x202)],_0x64d2f2['datasetCode']]];for(const [_0x5c56ee,_0x5007d3,_0x2e452d]of _0x230598){assertVerified(sameValue(_0x5007d3,_0x2e452d),'Menu\x20'+_0x64d2f2['id']+'\x20'+_0x5c56ee+'\x20changed\x20unexpectedly.');}}function sameValue(_0x42c796,_0x440d2c){const _0x18c2b6=a140_0x5bc500;if(Array['isArray'](_0x42c796)||Array[_0x18c2b6(0x1e9)](_0x440d2c))return JSON[_0x18c2b6(0x222)](_0x42c796)===JSON['stringify'](_0x440d2c);return _0x42c796===_0x440d2c;}
1
+ const a140_0x564b38=a140_0x1a27;(function(_0x2ca418,_0x2bef85){const _0x409a1f=a140_0x1a27,_0x1f2f78=_0x2ca418();while(!![]){try{const _0x42d06e=parseInt(_0x409a1f(0x1e4))/0x1+-parseInt(_0x409a1f(0x1e1))/0x2+-parseInt(_0x409a1f(0x21f))/0x3*(-parseInt(_0x409a1f(0x1ef))/0x4)+-parseInt(_0x409a1f(0x232))/0x5+-parseInt(_0x409a1f(0x1f3))/0x6+-parseInt(_0x409a1f(0x236))/0x7+-parseInt(_0x409a1f(0x1c2))/0x8*(-parseInt(_0x409a1f(0x1de))/0x9);if(_0x42d06e===_0x2bef85)break;else _0x1f2f78['push'](_0x1f2f78['shift']());}catch(_0x32e0db){_0x1f2f78['push'](_0x1f2f78['shift']());}}}(a140_0x358e,0x23c15));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a140_0x564b38(0x1ce),'path':a140_0x564b38(0x1fb)}];export const menuVisibilityUpdate={'service':'menu','command':a140_0x564b38(0x209),'description':a140_0x564b38(0x1e7),'risk':a140_0x564b38(0x1f0),'structuredErrors':!![],'flags':[{'name':a140_0x564b38(0x21c),'type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x1d4)},{'name':'paths','type':a140_0x564b38(0x1f1),'description':a140_0x564b38(0x20f)},{'name':a140_0x564b38(0x1eb),'type':a140_0x564b38(0x22c),'required':!![],'description':a140_0x564b38(0x22b)},{'name':'expect-visible','type':a140_0x564b38(0x22c),'description':a140_0x564b38(0x1ee)},{'name':a140_0x564b38(0x1c4),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x304194){parseInput(_0x304194),requireExplicitYes(_0x304194);},async 'dryRun'(_0x202596){const _0x3ea5e3=a140_0x564b38,_0x5e32b8=await buildPlan(_0x202596,!![]),_0x5790c8=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x206)]?.[_0x3ea5e3(0x1d8)]??0x0,_0x5e855f=_0x5e32b8[_0x3ea5e3(0x216)][_0x3ea5e3(0x1d5)][_0x3ea5e3(0x1d8)]-_0x5790c8;return menuDryRunResult(_0x5e32b8[_0x3ea5e3(0x216)],{'method':_0x3ea5e3(0x1ce),'url':'/smartapi/menu/update','body':{'updates':_0x5e32b8[_0x3ea5e3(0x216)]['plannedActions']?.[_0x3ea5e3(0x204)](_0x489927=>_0x489927['body'])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x5790c8+_0x3ea5e3(0x1be)+_0x5e855f+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x4fb306){const _0x596fe2=a140_0x564b38;requireExplicitYes(_0x4fb306);const _0x295b8e=await buildPlan(_0x4fb306,![]);await recheckMutationSnapshot(_0x4fb306,_0x295b8e['plan'],_0x596fe2(0x1ed));const _0x2d3c9e=[],_0x3e64b5=[],_0x2a4ea5=[];for(const _0x3c2e2b of _0x295b8e[_0x596fe2(0x216)]['targets']){if(_0x3c2e2b[_0x596fe2(0x234)][_0x596fe2(0x1eb)]===_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]){_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x4fb306['appCode'],_0x4fb306['cookie'],{'id':_0x3c2e2b['id'],'visible':_0x295b8e['plan'][_0x596fe2(0x207)]}),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'updated':!![],'skipped':![]});}catch(_0x2c988d){const _0xce0566=mapMenuApiError(_0x2c988d,_0x596fe2(0x1e6),_0x3c2e2b['id']);if(isMenuResponseLoss(_0x2c988d)&&_0xce0566[_0x596fe2(0x1d7)]!==_0x596fe2(0x22d)){_0x2a4ea5[_0x596fe2(0x1cb)](_0x3c2e2b['id']);continue;}_0x3e64b5[_0x596fe2(0x1cb)]({'id':_0x3c2e2b['id'],'stage':_0x596fe2(0x1d6),'code':_0xce0566[_0x596fe2(0x1d7)],'message':_0xce0566['message']});}}let _0x4d5893;try{_0x4d5893=await fetchMenuSnapshot(_0x4fb306['appCode'],_0x4fb306[_0x596fe2(0x226)]);}catch(_0x1364eb){const _0x6956a7=describeMenuErrorCause(_0x1364eb,_0x596fe2(0x21b)),_0x1354b5=_0x2a4ea5['map'](_0x25b447=>({'id':_0x25b447,'stage':_0x596fe2(0x1c1),'code':_0x596fe2(0x1dc),'message':_0x596fe2(0x230)+_0x25b447+_0x596fe2(0x1fa),'requestedStateConfirmed':![],'recovered':![]})),_0x34d77f={'stage':'verification','code':_0x596fe2(0x1dc),'message':_0x596fe2(0x208),'targetIds':_0x295b8e['plan'][_0x596fe2(0x1d5)][_0x596fe2(0x204)](_0x2a9348=>_0x2a9348['id']),'requestedStateConfirmed':![],..._0x6956a7};throw menuFailure(asVerificationError(_0x1364eb,_0x596fe2(0x1c6)),_0x295b8e[_0x596fe2(0x216)],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x1354b5,_0x34d77f],'warnings':[_0x596fe2(0x1f8)],'verification':{'status':_0x596fe2(0x20c),'recoveredCount':0x0,'lookupCommand':_0x596fe2(0x223)}});}const _0x599a1e=[];for(const _0x3038f2 of _0x2d3c9e){const _0x2e8136=Number(_0x3038f2['id']),_0x1d5813=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x2e8136),_0x4f9735=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x2e8136);try{verifyVisibilityUpdate(_0x1d5813,_0x4f9735,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]);}catch(_0x21d7fb){const _0x4b8949=asVerificationError(_0x21d7fb,'Menu\x20'+_0x2e8136+_0x596fe2(0x217));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x2e8136,'stage':_0x596fe2(0x1c3),'code':_0x4b8949['code'],'message':_0x4b8949[_0x596fe2(0x1cc)],'requestedStateConfirmed':![]});}}for(const _0x30e42a of _0x2a4ea5){const _0x7437a7=_0x295b8e[_0x596fe2(0x224)][_0x596fe2(0x1f6)](_0x30e42a),_0x196255=_0x4d5893[_0x596fe2(0x1f7)][_0x596fe2(0x1f6)](_0x30e42a);try{verifyVisibilityUpdate(_0x7437a7,_0x196255,_0x295b8e[_0x596fe2(0x216)][_0x596fe2(0x207)]),_0x2d3c9e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x50df2){const _0x9397dc=asVerificationError(_0x50df2,_0x596fe2(0x1f5)+_0x30e42a+_0x596fe2(0x20b));_0x599a1e[_0x596fe2(0x1cb)]({'id':_0x30e42a,'stage':_0x596fe2(0x1c1),'code':_0x9397dc[_0x596fe2(0x1d7)],'message':_0x9397dc[_0x596fe2(0x1cc)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x599a1e[_0x596fe2(0x1d8)]>0x0){const _0x124c7e=_0x599a1e[_0x596fe2(0x204)](_0x11578d=>Number(_0x11578d['id'])),_0xd792b2=_0x2d3c9e[_0x596fe2(0x1bf)](_0x27b0b2=>_0x27b0b2[_0x596fe2(0x22e)]===!![])['length'],_0x5212e8=menuError(_0x596fe2(0x1dc),_0x596fe2(0x1da)+_0x124c7e[_0x596fe2(0x1ea)](',\x20')+'.',_0x596fe2(0x22f));throw menuFailure(_0x5212e8,_0x295b8e['plan'],{'stage':_0x596fe2(0x1c3),'succeeded':_0x2d3c9e,'failedRecords':[..._0x3e64b5,..._0x599a1e],'warnings':[_0x596fe2(0x222)],'verification':{'status':_0x596fe2(0x20c),..._0x124c7e[_0x596fe2(0x1d8)]===0x1?{'targetId':_0x124c7e[0x0]}:{'targetIds':_0x124c7e},'recoveredCount':_0xd792b2,'lookupCommand':_0x596fe2(0x223)}});}const _0x519438=_0x2d3c9e[_0x596fe2(0x1bf)](_0x45eb77=>_0x45eb77[_0x596fe2(0x1c9)]===!![])[_0x596fe2(0x1d8)],_0x1bc7f7=_0x2d3c9e[_0x596fe2(0x1d8)]-_0x519438,_0x16a356={..._0x295b8e[_0x596fe2(0x216)],'succeeded':_0x2d3c9e,'failed':_0x3e64b5,'warnings':_0x3e64b5[_0x596fe2(0x1d8)]>0x0?[..._0x295b8e['plan'][_0x596fe2(0x1ca)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x295b8e['plan']['warnings'],'verification':{'checkedBy':_0x596fe2(0x20e),'snapshotHash':_0x4d5893[_0x596fe2(0x22a)],'matchesRequestedState':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'recoveredCount':_0x2a4ea5[_0x596fe2(0x1d8)]}};return{'ok':_0x3e64b5[_0x596fe2(0x1d8)]===0x0,'data':_0x16a356,'message':_0x3e64b5[_0x596fe2(0x1d8)]===0x0?_0x596fe2(0x227)+_0x519438+_0x596fe2(0x1fd)+_0x1bc7f7+'\x20unchanged\x20menu(s).':_0x596fe2(0x1e0)+_0x519438+_0x596fe2(0x221)+_0x1bc7f7+_0x596fe2(0x21a)+_0x3e64b5[_0x596fe2(0x1d8)]+_0x596fe2(0x1ff)};}};function parseInput(_0x50cfa0){const _0x46e9f0=a140_0x564b38,_0x3f6d5a=parseMenuIds(_0x50cfa0['str'](_0x46e9f0(0x21c))),_0x5870e6=parseCsv(_0x50cfa0[_0x46e9f0(0x1d0)](_0x46e9f0(0x1f2)));if(_0x3f6d5a[_0x46e9f0(0x1d8)]===0x0&&_0x5870e6[_0x46e9f0(0x1d8)]===0x0)throw CliErrors[_0x46e9f0(0x21e)](_0x46e9f0(0x21d));const _0x24612b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1eb),!![]),_0x709b6b=parseBooleanFlag(_0x50cfa0,_0x46e9f0(0x1bc),![]);let _0x514da4;if(hasFlag(_0x50cfa0,_0x46e9f0(0x1c4))){_0x514da4=_0x50cfa0['num'](_0x46e9f0(0x1c4));if(!Number['isSafeInteger'](_0x514da4)||_0x514da4<0x0)throw CliErrors['validation'](_0x46e9f0(0x225));}return{'menuIds':_0x3f6d5a,'paths':_0x5870e6,'visible':_0x24612b,'expectVisible':_0x709b6b,'expectedCount':_0x514da4};}async function buildPlan(_0x49802f,_0x2c1725){const _0x524806=a140_0x564b38,_0x149b42=parseInput(_0x49802f),_0x50b05c=await fetchMutationSnapshot(_0x49802f,_0x524806(0x1ed)),_0x4d5128=selectTargets(_0x50b05c[_0x524806(0x1e5)],_0x149b42['menuIds'],_0x149b42[_0x524806(0x1f2)]);if(_0x149b42[_0x524806(0x1ec)]!==undefined&&_0x4d5128[_0x524806(0x1d8)]!==_0x149b42[_0x524806(0x1ec)])throw menuError(_0x524806(0x1bd),_0x524806(0x210)+_0x4d5128[_0x524806(0x1d8)]+'\x20menu(s),\x20expected\x20'+_0x149b42[_0x524806(0x1ec)]+'.',_0x524806(0x1c7));if(_0x149b42['expectVisible']!==undefined){const _0x59a9a4=_0x4d5128[_0x524806(0x1bf)](_0x5e455d=>_0x5e455d[_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x201)]);if(_0x59a9a4[_0x524806(0x1d8)]>0x0)throw menuError('menu_state_drift',_0x524806(0x233)+_0x59a9a4[_0x524806(0x204)](_0x152a93=>_0x152a93['id'])[_0x524806(0x1ea)](',\x20')+'.',_0x524806(0x1e8));}const _0x4a1ac4=_0x4d5128[_0x524806(0x204)](_0x4a134a=>({'id':_0x4a134a['id'],'label':_0x4a134a[_0x524806(0x1d2)],'path':_0x4a134a[_0x524806(0x237)],'before':{'visible':_0x4a134a[_0x524806(0x1eb)]},'after':{'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x309fe0=_0x4a1ac4[_0x524806(0x1bf)](_0x13e343=>_0x13e343['before'][_0x524806(0x1eb)]!==_0x149b42[_0x524806(0x1eb)])['map'](_0x1b5b7c=>({'stage':_0x524806(0x231),'method':'POST','path':_0x524806(0x1fb),'body':{'appCode':_0x49802f[_0x524806(0x215)],'id':_0x1b5b7c['id'],'visible':_0x149b42[_0x524806(0x1eb)]}})),_0x31cbe1=mutationResult({'operation':_0x524806(0x209),'selector':{'menuIds':_0x149b42[_0x524806(0x212)],'paths':_0x149b42[_0x524806(0x1f2)]},'before':{'menus':_0x4d5128[_0x524806(0x204)](_0x163325=>({'id':_0x163325['id'],'path':_0x163325[_0x524806(0x237)],'visible':_0x163325[_0x524806(0x1eb)]}))},'after':{'menus':_0x4d5128[_0x524806(0x204)](_0x2188e3=>({'id':_0x2188e3['id'],'path':_0x2188e3[_0x524806(0x237)],'visible':_0x149b42[_0x524806(0x1eb)]}))},'dryRun':_0x2c1725,'backend':[...BACKEND],'plannedActions':_0x309fe0,'snapshotHash':_0x50b05c[_0x524806(0x22a)],'warnings':_0x309fe0['length']===0x0?[_0x524806(0x1df)]:[]});return{'plan':{..._0x31cbe1,'requestedVisible':_0x149b42['visible'],'targets':_0x4a1ac4},'beforeById':new Map(_0x4d5128[_0x524806(0x204)](_0x91efb5=>[_0x91efb5['id'],_0x91efb5]))};}function selectTargets(_0x316522,_0x336815,_0xa205b3){const _0x2b670d=a140_0x564b38,_0x5bf3d6=new Map(_0x316522[_0x2b670d(0x204)](_0x5f3419=>[_0x5f3419['id'],_0x5f3419])),_0x3bff6c=new Map(),_0x1aad63=_0x336815[_0x2b670d(0x1bf)](_0x26dd6c=>!_0x5bf3d6['has'](_0x26dd6c));if(_0x1aad63[_0x2b670d(0x1d8)]>0x0)throw menuError(_0x2b670d(0x218),_0x2b670d(0x229)+_0x1aad63[_0x2b670d(0x1ea)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0xe53b10 of _0x336815){_0x3bff6c[_0x2b670d(0x1c0)](_0xe53b10,_0x5bf3d6['get'](_0xe53b10));}for(const _0x5d332f of _0xa205b3){const _0x43a684=_0x316522['filter'](_0x4e2690=>_0x4e2690[_0x2b670d(0x237)]===_0x5d332f);if(_0x43a684[_0x2b670d(0x1d8)]===0x0)throw menuError('menu_selector_not_found',_0x2b670d(0x205)+JSON['stringify'](_0x5d332f)+'.',_0x2b670d(0x1db));if(_0x43a684['length']>0x1)throw menuError(_0x2b670d(0x200),_0x2b670d(0x1fc)+JSON[_0x2b670d(0x214)](_0x5d332f)+'.',_0x2b670d(0x1c5)+_0x43a684['map'](_0xd0db32=>_0xd0db32['id'])[_0x2b670d(0x1ea)](',\x20')+'.');const _0x405ba3=_0x43a684[0x0];_0x3bff6c[_0x2b670d(0x1c0)](_0x405ba3['id'],_0x405ba3);}return[..._0x3bff6c[_0x2b670d(0x1d3)]()];}function a140_0x1a27(_0x4ce665,_0x2d1928){_0x4ce665=_0x4ce665-0x1bc;const _0x358ed9=a140_0x358e();let _0x1a2736=_0x358ed9[_0x4ce665];return _0x1a2736;}function parseMenuIds(_0x3b72e7){const _0x4cbc7d=a140_0x564b38,_0x6a199a=parseCsv(_0x3b72e7),_0x404bd7=_0x6a199a['map'](Number);if(_0x404bd7[_0x4cbc7d(0x220)](_0x308187=>!Number[_0x4cbc7d(0x20a)](_0x308187)||_0x308187<=0x0))throw CliErrors[_0x4cbc7d(0x21e)](_0x4cbc7d(0x228));return[...new Set(_0x404bd7)];}function parseCsv(_0x28f018){const _0x25f561=a140_0x564b38;return[...new Set(_0x28f018['split'](',')[_0x25f561(0x204)](_0x5a69e5=>_0x5a69e5[_0x25f561(0x1d9)]())['filter'](Boolean))];}function parseBooleanFlag(_0x3cb5f0,_0x6b21a7,_0x555a0c){const _0x4310da=a140_0x564b38;if(!hasFlag(_0x3cb5f0,_0x6b21a7)){if(_0x555a0c)throw CliErrors[_0x4310da(0x235)](_0x6b21a7);return undefined;}const _0x32908a=_0x3cb5f0['rawFlags'][_0x6b21a7];if(_0x32908a===!![]||_0x32908a===![])return _0x32908a;if(_0x32908a===_0x4310da(0x1f4))return!![];if(_0x32908a===_0x4310da(0x1f9))return![];throw CliErrors[_0x4310da(0x21e)]('--'+_0x6b21a7+'\x20must\x20be\x20true\x20or\x20false.');}function verifyVisibilityUpdate(_0x3b8ddc,_0x3d9055,_0x2ffa6a){const _0x5a8235=a140_0x564b38;assertVerified(!!_0x3d9055,_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x3d9055[_0x5a8235(0x1eb)]===_0x2ffa6a,'Menu\x20'+_0x3b8ddc['id']+_0x5a8235(0x213));const _0x115246=[['id',_0x3d9055['id'],_0x3b8ddc['id']],['parentId',_0x3d9055['parentId'],_0x3b8ddc['parentId']],['depth',_0x3d9055['depth'],_0x3b8ddc[_0x5a8235(0x1fe)]],[_0x5a8235(0x1d2),_0x3d9055[_0x5a8235(0x1d2)],_0x3b8ddc[_0x5a8235(0x1d2)]],['path',_0x3d9055[_0x5a8235(0x237)],_0x3b8ddc['path']],[_0x5a8235(0x1c8),_0x3d9055[_0x5a8235(0x1c8)],_0x3b8ddc[_0x5a8235(0x1c8)]],[_0x5a8235(0x203),_0x3d9055['type'],_0x3b8ddc[_0x5a8235(0x203)]],[_0x5a8235(0x20d),_0x3d9055['sort'],_0x3b8ddc[_0x5a8235(0x20d)]],[_0x5a8235(0x1e2),_0x3d9055['resources'],_0x3b8ddc['resources']],[_0x5a8235(0x1e9),_0x3d9055['resourcesValid'],_0x3b8ddc[_0x5a8235(0x1e9)]],[_0x5a8235(0x238),_0x3d9055[_0x5a8235(0x238)],_0x3b8ddc['childrenIds']],[_0x5a8235(0x1cd),_0x3d9055[_0x5a8235(0x1cd)],_0x3b8ddc[_0x5a8235(0x1cd)]],[_0x5a8235(0x1d1),_0x3d9055['pageId'],_0x3b8ddc[_0x5a8235(0x1d1)]],['pageType',_0x3d9055[_0x5a8235(0x211)],_0x3b8ddc[_0x5a8235(0x211)]],['modelType',_0x3d9055['modelType'],_0x3b8ddc['modelType']],[_0x5a8235(0x219),_0x3d9055[_0x5a8235(0x219)],_0x3b8ddc[_0x5a8235(0x219)]],[_0x5a8235(0x1dd),_0x3d9055[_0x5a8235(0x1dd)],_0x3b8ddc[_0x5a8235(0x1dd)]]];for(const [_0x3b330e,_0x2e8f81,_0xc6bf5e]of _0x115246){assertVerified(sameValue(_0x2e8f81,_0xc6bf5e),_0x5a8235(0x1cf)+_0x3b8ddc['id']+'\x20'+_0x3b330e+_0x5a8235(0x202));}}function sameValue(_0x41fc9d,_0x1efb10){const _0x19c8fd=a140_0x564b38;if(Array['isArray'](_0x41fc9d)||Array[_0x19c8fd(0x1e3)](_0x1efb10))return JSON['stringify'](_0x41fc9d)===JSON[_0x19c8fd(0x214)](_0x1efb10);return _0x41fc9d===_0x1efb10;}function a140_0x358e(){const _0x59f857=['filter','set','update-recovery','2621096HZccto','verification','expected-count','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','url','updated','warnings','push','message','childrenCount','POST','Menu\x20','str','pageId','label','values','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','targets','update','code','length','trim','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','menu_verification_failed','datasetCode','18iDywNU','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','Menu\x20visibility\x20update\x20completed:\x20','513494tKvwRk','resources','isArray','218498ZUcTOj','menus','update\x20visibility\x20for','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','resourcesValid','join','visible','expectedCount','update\x20menu\x20visibility','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','7636wZhJVj','high-risk-write','string','paths','1445652NYUBpf','true','Response\x20was\x20lost\x20and\x20menu\x20','get','byId','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','false','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','/smartapi/menu/update','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','\x20menu(s);\x20skipped\x20','depth','\x20failed.','menu_selector_ambiguous','expectVisible','\x20changed\x20unexpectedly.','type','map','Menu\x20path\x20selector\x20not\x20found:\x20','plannedActions','requestedVisible','Final\x20menu\x20visibility\x20readback\x20failed.','visibility-update','isSafeInteger','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','failed','sort','menu\x20list','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Selected\x20','pageType','menuIds','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','stringify','appCode','plan','\x20visibility\x20update\x20could\x20not\x20be\x20verified','menu_selector_not_found','datasetId','\x20skipped,\x20','verify\x20menu\x20visibility\x20update','menu-ids','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','validation','243EIohNB','some','\x20updated,\x20','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','rabetbase\x20menu\x20list\x20--format\x20compress','beforeById','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','cookie','Updated\x20visibility\x20for\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','hash','Requested\x20menu\x20visibility','boolean','menu_permission_denied','recovered','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','Response\x20was\x20lost\x20for\x20menu\x20','update-menu-visibility','813930chbLvA','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','before','flagMissing','1550311phksMF','path','childrenIds','expect-visible','menu_expected_count_mismatch','\x20menu(s);\x20skip\x20'];a140_0x358e=function(){return _0x59f857;};return a140_0x358e();}
@@ -1 +1 @@
1
- function a141_0x4211(){const _0x6c2f85=['configName','POST','readTimeout','channelType','36MoGMIY','appCode','notification','channelConfig','505092RhPZEt','notification_config_create_outcome_unknown',';\x20do\x20not\x20resubmit\x20automatically.','planned','description','4hHfoao','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Inspect\x20with\x20','create','9myiuaq','2605670Yeiadz','/notification/channel-config/create','4312072WdpnER','580733WTpuIl','109322CRpYrO','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','isSafeInteger','Created\x20notification\x20config\x20','document','2352855LbXWDi','endpointUrl','2229065XHcdAl','configCode'];a141_0x4211=function(){return _0x6c2f85;};return a141_0x4211();}const a141_0x1632f3=a141_0x2acb;function a141_0x2acb(_0x1f57ca,_0x5a137c){_0x1f57ca=_0x1f57ca-0x175;const _0x4211c2=a141_0x4211();let _0x2acb61=_0x4211c2[_0x1f57ca];return _0x2acb61;}(function(_0x45d8c2,_0x3bd6af){const _0x20dce9=a141_0x2acb,_0x44e780=_0x45d8c2();while(!![]){try{const _0x29f337=-parseInt(_0x20dce9(0x17f))/0x1+-parseInt(_0x20dce9(0x180))/0x2+parseInt(_0x20dce9(0x185))/0x3+-parseInt(_0x20dce9(0x176))/0x4*(parseInt(_0x20dce9(0x187))/0x5)+-parseInt(_0x20dce9(0x18d))/0x6*(-parseInt(_0x20dce9(0x191))/0x7)+parseInt(_0x20dce9(0x17e))/0x8*(parseInt(_0x20dce9(0x17b))/0x9)+-parseInt(_0x20dce9(0x17c))/0xa;if(_0x29f337===_0x3bd6af)break;else _0x44e780['push'](_0x44e780['shift']());}catch(_0x24ab96){_0x44e780['push'](_0x44e780['shift']());}}}(a141_0x4211,0x652f8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a141_0x1632f3(0x17d);async function prepareCreate(_0x2fde64){const _0x402c72=a141_0x1632f3,_0x1911e8=await readNotificationDocument(_0x2fde64,_0x402c72(0x17a)),_0x37021d=createMutationInput(_0x2fde64[_0x402c72(0x18e)],_0x1911e8);return{'document':_0x1911e8,'input':_0x37021d,'planned':projectNotificationConfig({'appCode':_0x2fde64[_0x402c72(0x18e)],'configName':_0x1911e8['configName'],'channelType':_0x1911e8[_0x402c72(0x18c)],'endpointUrl':_0x1911e8[_0x402c72(0x186)],'channelConfig':_0x1911e8[_0x402c72(0x190)],'description':_0x1911e8[_0x402c72(0x175)],'connectTimeout':_0x1911e8['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1911e8[_0x402c72(0x18b)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x1632f3(0x18f),'command':'config-create','description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x8a75e7){assertSingleNotificationSource(_0x8a75e7);},async 'dryRun'(_0x187b47){const _0x436561=a141_0x1632f3,_0x356ad0=await prepareCreate(_0x187b47),_0x161401=notificationLookupCommand(_0x187b47[_0x436561(0x18e)],_0x356ad0[_0x436561(0x184)][_0x436561(0x18c)]);return asDryRunResult({'operation':_0x436561(0x17a),'selector':{'appCode':_0x187b47[_0x436561(0x18e)],'configName':_0x356ad0[_0x436561(0x184)]['configName'],'channelType':_0x356ad0['document']['channelType']},'before':null,'after':_0x356ad0[_0x436561(0x194)],'dryRun':!![],'backend':{'method':_0x436561(0x18a),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x436561(0x194),'lookupCommand':_0x161401}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x44b167){const _0x404a4d=a141_0x1632f3,_0x36a963=await prepareCreate(_0x44b167),_0x2ac931=notificationLookupCommand(_0x44b167[_0x404a4d(0x18e)],_0x36a963[_0x404a4d(0x184)][_0x404a4d(0x18c)]);let _0x4d0cf0;try{_0x4d0cf0=await createNotificationChannelConfig(_0x36a963['input']);}catch(_0x1d4879){if(isPlatformTransportFailure(_0x1d4879))throw notificationError('notification_config_create_outcome_unknown',_0x404a4d(0x181),_0x404a4d(0x179)+_0x2ac931+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x404a4d(0x17a),'mutation','Inspect\x20with\x20'+_0x2ac931+_0x404a4d(0x178));}if(!Number[_0x404a4d(0x182)](_0x4d0cf0)||_0x4d0cf0<=0x0)throw notificationError(_0x404a4d(0x192),_0x404a4d(0x177),_0x404a4d(0x179)+_0x2ac931+';\x20do\x20not\x20resubmit.');let _0x7901e9;try{const _0x1c603f=await getNotificationChannelConfig(_0x4d0cf0,_0x44b167[_0x404a4d(0x18e)]);_0x7901e9=normalizeExactNotificationConfig(_0x1c603f,_0x4d0cf0,_0x44b167[_0x404a4d(0x18e)]);}catch{throw safeApiFailure(_0x404a4d(0x17a),'verification',_0x404a4d(0x179)+_0x2ac931+_0x404a4d(0x193));}return{'ok':!![],'data':{'operation':_0x404a4d(0x17a),'selector':{'appCode':_0x7901e9[_0x404a4d(0x18e)],'id':_0x7901e9['id'],'configCode':_0x7901e9[_0x404a4d(0x188)],'configName':_0x7901e9[_0x404a4d(0x189)],'channelType':_0x7901e9[_0x404a4d(0x18c)]},'before':null,'after':projectNotificationConfig(_0x7901e9),'dryRun':![],'backend':{'method':_0x404a4d(0x18a),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x2ac931}},'message':_0x404a4d(0x183)+_0x7901e9['id']};}};
1
+ const a141_0x55cbb5=a141_0x45cf;(function(_0x377c0c,_0x5bd9c3){const _0x1e2ab6=a141_0x45cf,_0xb89255=_0x377c0c();while(!![]){try{const _0x37a8c5=parseInt(_0x1e2ab6(0xc6))/0x1+parseInt(_0x1e2ab6(0xc3))/0x2*(-parseInt(_0x1e2ab6(0xc5))/0x3)+parseInt(_0x1e2ab6(0xd7))/0x4+-parseInt(_0x1e2ab6(0xd6))/0x5*(parseInt(_0x1e2ab6(0xc0))/0x6)+-parseInt(_0x1e2ab6(0xcd))/0x7+parseInt(_0x1e2ab6(0xcb))/0x8*(parseInt(_0x1e2ab6(0xd0))/0x9)+-parseInt(_0x1e2ab6(0xc7))/0xa*(-parseInt(_0x1e2ab6(0xcf))/0xb);if(_0x37a8c5===_0x5bd9c3)break;else _0xb89255['push'](_0xb89255['shift']());}catch(_0x1d6556){_0xb89255['push'](_0xb89255['shift']());}}}(a141_0x3f1d,0x9fa6a));import{asDryRunResult}from'../../commands/common/dry-run.js';function a141_0x45cf(_0xd2fe52,_0x8014e2){_0xd2fe52=_0xd2fe52-0xc0;const _0x3f1d94=a141_0x3f1d();let _0x45cf3f=_0x3f1d94[_0xd2fe52];return _0x45cf3f;}import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0xd4faba){const _0x44ea8b=a141_0x45cf,_0xcf4e3c=await readNotificationDocument(_0xd4faba,_0x44ea8b(0xc2)),_0x35830d=createMutationInput(_0xd4faba[_0x44ea8b(0xd1)],_0xcf4e3c);return{'document':_0xcf4e3c,'input':_0x35830d,'planned':projectNotificationConfig({'appCode':_0xd4faba[_0x44ea8b(0xd1)],'configName':_0xcf4e3c[_0x44ea8b(0xe0)],'channelType':_0xcf4e3c[_0x44ea8b(0xd8)],'endpointUrl':_0xcf4e3c['endpointUrl'],'channelConfig':_0xcf4e3c[_0x44ea8b(0xde)],'description':_0xcf4e3c[_0x44ea8b(0xd9)],'connectTimeout':_0xcf4e3c[_0x44ea8b(0xca)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xcf4e3c[_0x44ea8b(0xd4)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}function a141_0x3f1d(){const _0x18de93=['24irKhwA','configCode','5179125GkkGvz','Created\x20notification\x20config\x20','801834NJiuJy','656901fjmBsm','appCode','document','Inspect\x20with\x20','readTimeout','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','105dvlhMl','4063560irNAoT','channelType','description',';\x20no\x20automatic\x20retry\x20was\x20attempted.','verification','planned',';\x20do\x20not\x20resubmit.','channelConfig','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','configName','197718JPEbZv','notification_config_create_outcome_unknown','create','10zYMtLA','POST','10068FPGQAY','576165LXfCAY','40aUKqzf','config-create',';\x20do\x20not\x20resubmit\x20automatically.','connectTimeout'];a141_0x3f1d=function(){return _0x18de93;};return a141_0x3f1d();}export const notificationConfigCreate={'service':'notification','command':a141_0x55cbb5(0xc8),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3e7386){assertSingleNotificationSource(_0x3e7386);},async 'dryRun'(_0x5c89cd){const _0x1fca7c=a141_0x55cbb5,_0x4f2cf9=await prepareCreate(_0x5c89cd),_0x3784a6=notificationLookupCommand(_0x5c89cd[_0x1fca7c(0xd1)],_0x4f2cf9[_0x1fca7c(0xd2)][_0x1fca7c(0xd8)]);return asDryRunResult({'operation':_0x1fca7c(0xc2),'selector':{'appCode':_0x5c89cd[_0x1fca7c(0xd1)],'configName':_0x4f2cf9[_0x1fca7c(0xd2)][_0x1fca7c(0xe0)],'channelType':_0x4f2cf9[_0x1fca7c(0xd2)]['channelType']},'before':null,'after':_0x4f2cf9['planned'],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x1fca7c(0xdc),'lookupCommand':_0x3784a6}},{'method':_0x1fca7c(0xc4),'url':CREATE_PATH});},async 'execute'(_0x465f6d){const _0x38ac7b=a141_0x55cbb5,_0x25faf0=await prepareCreate(_0x465f6d),_0xce819e=notificationLookupCommand(_0x465f6d[_0x38ac7b(0xd1)],_0x25faf0[_0x38ac7b(0xd2)][_0x38ac7b(0xd8)]);let _0x3e453b;try{_0x3e453b=await createNotificationChannelConfig(_0x25faf0['input']);}catch(_0x84665f){if(isPlatformTransportFailure(_0x84665f))throw notificationError(_0x38ac7b(0xc1),_0x38ac7b(0xdf),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xdd));throw safeApiFailure(_0x38ac7b(0xc2),'mutation',_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xda));}if(!Number['isSafeInteger'](_0x3e453b)||_0x3e453b<=0x0)throw notificationError(_0x38ac7b(0xc1),_0x38ac7b(0xd5),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xdd));let _0x199f5e;try{const _0x4198fd=await getNotificationChannelConfig(_0x3e453b,_0x465f6d[_0x38ac7b(0xd1)]);_0x199f5e=normalizeExactNotificationConfig(_0x4198fd,_0x3e453b,_0x465f6d[_0x38ac7b(0xd1)]);}catch{throw safeApiFailure(_0x38ac7b(0xc2),_0x38ac7b(0xdb),_0x38ac7b(0xd3)+_0xce819e+_0x38ac7b(0xc9));}return{'ok':!![],'data':{'operation':_0x38ac7b(0xc2),'selector':{'appCode':_0x199f5e[_0x38ac7b(0xd1)],'id':_0x199f5e['id'],'configCode':_0x199f5e[_0x38ac7b(0xcc)],'configName':_0x199f5e[_0x38ac7b(0xe0)],'channelType':_0x199f5e[_0x38ac7b(0xd8)]},'before':null,'after':projectNotificationConfig(_0x199f5e),'dryRun':![],'backend':{'method':_0x38ac7b(0xc4),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0xce819e}},'message':_0x38ac7b(0xce)+_0x199f5e['id']};}};
@@ -1 +1 @@
1
- const a142_0x22c449=a142_0x19c8;function a142_0x5643(){const _0x3612ac=['94300yqOxzN','POST',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Notification\x20config\x20','\x20remains\x20present\x20after\x20delete.','114455kSOsPQ','30oDSDyX','/notification/channel-config/delete','unshift','high-risk-write','delete','verified','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','appCode','Deleted\x20notification\x20config\x20','683711vudSst','channelType','Inspect\x20with\x20','1830776EyzGNn','63033JDZUEX','9543735AVUyof',';\x20do\x20not\x20resubmit\x20automatically.','26PGuGXd','129IkdNTm','notification_config_delete_verification_failed','mutation','config-delete','notification_config_delete_verification_unavailable','\x20delete\x20could\x20not\x20be\x20verified.','notification_config_delete_outcome_unknown','790DsJQeY','11258766QCEaRx','notification','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','planned'];a142_0x5643=function(){return _0x3612ac;};return a142_0x5643();}(function(_0x33fa0d,_0x13e047){const _0x26878d=a142_0x19c8,_0x1d4aae=_0x33fa0d();while(!![]){try{const _0x3c456f=-parseInt(_0x26878d(0xbb))/0x1*(parseInt(_0x26878d(0xbe))/0x2)+-parseInt(_0x26878d(0xbf))/0x3*(-parseInt(_0x26878d(0xa8))/0x4)+parseInt(_0x26878d(0xbc))/0x5+-parseInt(_0x26878d(0xae))/0x6*(parseInt(_0x26878d(0xb7))/0x7)+-parseInt(_0x26878d(0xba))/0x8+-parseInt(_0x26878d(0xc7))/0x9+-parseInt(_0x26878d(0xc6))/0xa*(-parseInt(_0x26878d(0xad))/0xb);if(_0x3c456f===_0x13e047)break;else _0x1d4aae['push'](_0x1d4aae['shift']());}catch(_0xd0ca5e){_0x1d4aae['push'](_0x1d4aae['shift']());}}}(a142_0x5643,0xe99b4));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a142_0x19c8(_0x2cebf6,_0x5538b9){_0x2cebf6=_0x2cebf6-0xa5;const _0x56438e=a142_0x5643();let _0x19c835=_0x56438e[_0x2cebf6];return _0x19c835;}const DELETE_PATH=a142_0x22c449(0xaf),REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x3f4f78){const _0x758c83=a142_0x22c449,_0x386835=readNotificationId(_0x3f4f78),_0x25e265=await requireExactNotificationConfig(_0x3f4f78['appCode'],_0x386835,_0x758c83(0xb2));return{'id':_0x386835,'before':_0x25e265};}export const notificationConfigDelete={'service':a142_0x22c449(0xc8),'command':a142_0x22c449(0xc2),'description':a142_0x22c449(0xb4),'risk':a142_0x22c449(0xb1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x5c4460){readNotificationId(_0x5c4460),requireNotificationExplicitYes(_0x5c4460);},async 'dryRun'(_0x18ffd7){const _0xf95503=a142_0x22c449,_0x4ef734=await prepareDelete(_0x18ffd7),_0x1c3c60=notificationLookupCommand(_0x18ffd7['appCode'],_0x4ef734[_0xf95503(0xa5)]['channelType']);return asDryRunResult({'operation':_0xf95503(0xb2),'selector':notificationSelector(_0x4ef734['before']),'before':projectNotificationConfig(_0x4ef734['before']),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0xf95503(0xa7),'lookupCommand':_0x1c3c60}},{'method':_0xf95503(0xa9),'url':DELETE_PATH});},async 'execute'(_0x3538ec){const _0x167ac1=a142_0x22c449;requireNotificationExplicitYes(_0x3538ec);const _0x3e9135=await prepareDelete(_0x3538ec),_0x1561ce=notificationLookupCommand(_0x3538ec['appCode'],_0x3e9135[_0x167ac1(0xa5)][_0x167ac1(0xb8)]);let _0x14455=![];try{await deleteNotificationChannelConfig(_0x3e9135['id'],_0x3538ec[_0x167ac1(0xb5)]);}catch(_0x2ec130){if(!isPlatformTransportFailure(_0x2ec130))throw safeApiFailure(_0x167ac1(0xb2),_0x167ac1(0xc1),_0x167ac1(0xb9)+_0x1561ce+_0x167ac1(0xaa));_0x14455=!![];}let _0x5c7d25;try{_0x5c7d25=await listNotificationChannelConfigs(_0x3538ec[_0x167ac1(0xb5)],_0x3e9135['before'][_0x167ac1(0xb8)]),validateNotificationDeleteReadback(_0x5c7d25,_0x3538ec[_0x167ac1(0xb5)],_0x3e9135[_0x167ac1(0xa5)][_0x167ac1(0xb8)]);}catch{throw notificationError(_0x14455?_0x167ac1(0xc5):_0x167ac1(0xc3),_0x167ac1(0xab)+_0x3e9135['id']+_0x167ac1(0xc4),'Inspect\x20with\x20'+_0x1561ce+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x5c7d25['some'](_0x2883a9=>_0x2883a9['id']===_0x3e9135['id']))throw notificationError(_0x14455?_0x167ac1(0xc5):_0x167ac1(0xc0),_0x167ac1(0xab)+_0x3e9135['id']+_0x167ac1(0xac),_0x167ac1(0xb9)+_0x1561ce+_0x167ac1(0xbd));const _0xdcb740=[REFERENCE_WARNING];return _0x14455&&_0xdcb740[_0x167ac1(0xb0)](_0x167ac1(0xa6)),{'ok':!![],'data':{'operation':_0x167ac1(0xb2),'selector':notificationSelector(_0x3e9135[_0x167ac1(0xa5)]),'before':projectNotificationConfig(_0x3e9135[_0x167ac1(0xa5)]),'after':null,'dryRun':![],'backend':{'method':_0x167ac1(0xa9),'path':DELETE_PATH},'warnings':_0xdcb740,'verification':{'status':_0x167ac1(0xb3),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x14455,'lookupCommand':_0x1561ce}},'message':_0x167ac1(0xb6)+_0x3e9135['id']};}};
1
+ function a142_0x3490(_0x158a9d,_0x3d5279){_0x158a9d=_0x158a9d-0x10c;const _0x8fc45d=a142_0x8fc4();let _0x34901e=_0x8fc45d[_0x158a9d];return _0x34901e;}const a142_0x289447=a142_0x3490;(function(_0x4c52ca,_0x3e9d9c){const _0x51d2be=a142_0x3490,_0x3a5a5c=_0x4c52ca();while(!![]){try{const _0x3b9dc7=parseInt(_0x51d2be(0x125))/0x1+-parseInt(_0x51d2be(0x10e))/0x2*(-parseInt(_0x51d2be(0x120))/0x3)+parseInt(_0x51d2be(0x11e))/0x4*(parseInt(_0x51d2be(0x10d))/0x5)+parseInt(_0x51d2be(0x118))/0x6+parseInt(_0x51d2be(0x113))/0x7+parseInt(_0x51d2be(0x128))/0x8*(-parseInt(_0x51d2be(0x114))/0x9)+-parseInt(_0x51d2be(0x110))/0xa;if(_0x3b9dc7===_0x3e9d9c)break;else _0x3a5a5c['push'](_0x3a5a5c['shift']());}catch(_0x537854){_0x3a5a5c['push'](_0x3a5a5c['shift']());}}}(a142_0x8fc4,0x8ace8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a142_0x289447(0x117),REFERENCE_WARNING=a142_0x289447(0x11d);function a142_0x8fc4(){const _0x5c72e1=['unshift','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','config-delete','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','17636eODyUV','notification_config_delete_verification_unavailable','897IfMhGg','verified','high-risk-write',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','964958CJJRgw','some','delete','473512ITLDnk','appCode','\x20delete\x20could\x20not\x20be\x20verified.','notification_config_delete_outcome_unknown','Notification\x20config\x20','POST','875ObfPmM','5204zEyGVi','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','12427610pQYiFS','\x20remains\x20present\x20after\x20delete.','channelType','1225875grzWLb','153DNfZLQ','planned','before','/notification/channel-config/delete','767220GpULdd','mutation'];a142_0x8fc4=function(){return _0x5c72e1;};return a142_0x8fc4();}async function prepareDelete(_0x526e9c){const _0x350469=a142_0x289447,_0x267112=readNotificationId(_0x526e9c),_0x51e8c2=await requireExactNotificationConfig(_0x526e9c[_0x350469(0x129)],_0x267112,_0x350469(0x127));return{'id':_0x267112,'before':_0x51e8c2};}export const notificationConfigDelete={'service':'notification','command':a142_0x289447(0x11c),'description':a142_0x289447(0x10f),'risk':a142_0x289447(0x122),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x49d817){readNotificationId(_0x49d817),requireNotificationExplicitYes(_0x49d817);},async 'dryRun'(_0xb2bab6){const _0x4813ce=a142_0x289447,_0xd14826=await prepareDelete(_0xb2bab6),_0x442d8c=notificationLookupCommand(_0xb2bab6[_0x4813ce(0x129)],_0xd14826[_0x4813ce(0x116)]['channelType']);return asDryRunResult({'operation':_0x4813ce(0x127),'selector':notificationSelector(_0xd14826[_0x4813ce(0x116)]),'before':projectNotificationConfig(_0xd14826['before']),'after':null,'dryRun':!![],'backend':{'method':_0x4813ce(0x10c),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x4813ce(0x115),'lookupCommand':_0x442d8c}},{'method':_0x4813ce(0x10c),'url':DELETE_PATH});},async 'execute'(_0x2729a3){const _0x450d16=a142_0x289447;requireNotificationExplicitYes(_0x2729a3);const _0xa48b93=await prepareDelete(_0x2729a3),_0x45c118=notificationLookupCommand(_0x2729a3[_0x450d16(0x129)],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]);let _0x1f38fe=![];try{await deleteNotificationChannelConfig(_0xa48b93['id'],_0x2729a3[_0x450d16(0x129)]);}catch(_0x1592f4){if(!isPlatformTransportFailure(_0x1592f4))throw safeApiFailure(_0x450d16(0x127),_0x450d16(0x119),_0x450d16(0x124)+_0x45c118+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1f38fe=!![];}let _0x42f7c7;try{_0x42f7c7=await listNotificationChannelConfigs(_0x2729a3['appCode'],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]),validateNotificationDeleteReadback(_0x42f7c7,_0x2729a3[_0x450d16(0x129)],_0xa48b93[_0x450d16(0x116)][_0x450d16(0x112)]);}catch{throw notificationError(_0x1f38fe?_0x450d16(0x12b):_0x450d16(0x11f),_0x450d16(0x12c)+_0xa48b93['id']+_0x450d16(0x12a),_0x450d16(0x124)+_0x45c118+_0x450d16(0x123));}if(_0x42f7c7[_0x450d16(0x126)](_0x330981=>_0x330981['id']===_0xa48b93['id']))throw notificationError(_0x1f38fe?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_failed',_0x450d16(0x12c)+_0xa48b93['id']+_0x450d16(0x111),_0x450d16(0x124)+_0x45c118+';\x20do\x20not\x20resubmit\x20automatically.');const _0x2b78cb=[REFERENCE_WARNING];return _0x1f38fe&&_0x2b78cb[_0x450d16(0x11a)](_0x450d16(0x11b)),{'ok':!![],'data':{'operation':_0x450d16(0x127),'selector':notificationSelector(_0xa48b93['before']),'before':projectNotificationConfig(_0xa48b93[_0x450d16(0x116)]),'after':null,'dryRun':![],'backend':{'method':_0x450d16(0x10c),'path':DELETE_PATH},'warnings':_0x2b78cb,'verification':{'status':_0x450d16(0x121),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1f38fe,'lookupCommand':_0x45c118}},'message':'Deleted\x20notification\x20config\x20'+_0xa48b93['id']};}};
@@ -1 +1 @@
1
- const a143_0x43464f=a143_0x414b;function a143_0x4de0(){const _0x1e6592=['\x20notification\x20config(s)','2XjIbUN','read','Notification\x20channel\x20type','3706080ZQaXzb','5858902cmjAUA','config-list','notification','5743545QHDbzr','4222272FTeiyv','Found\x20','1636733WbjWRL','map','appCode','length','4541109mZsZsd','16581592bBbHjR'];a143_0x4de0=function(){return _0x1e6592;};return a143_0x4de0();}(function(_0x515207,_0x4d361a){const _0xe09d7a=a143_0x414b,_0x29b476=_0x515207();while(!![]){try{const _0x536b70=parseInt(_0xe09d7a(0x202))/0x1+parseInt(_0xe09d7a(0x1f8))/0x2*(-parseInt(_0xe09d7a(0x1f5))/0x3)+-parseInt(_0xe09d7a(0x1fb))/0x4+parseInt(_0xe09d7a(0x1ff))/0x5+-parseInt(_0xe09d7a(0x200))/0x6+-parseInt(_0xe09d7a(0x1fc))/0x7+parseInt(_0xe09d7a(0x1f6))/0x8;if(_0x536b70===_0x4d361a)break;else _0x29b476['push'](_0x29b476['shift']());}catch(_0xf92caf){_0x29b476['push'](_0x29b476['shift']());}}}(a143_0x4de0,0xd62a4));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a143_0x414b(_0x52f01a,_0x53d3d3){_0x52f01a=_0x52f01a-0x1f2;const _0x4de01d=a143_0x4de0();let _0x414b57=_0x4de01d[_0x52f01a];return _0x414b57;}export const notificationConfigList={'service':a143_0x43464f(0x1fe),'command':a143_0x43464f(0x1fd),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a143_0x43464f(0x1f9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':'string','description':a143_0x43464f(0x1fa),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0xb9bda4){readNotificationChannelType(_0xb9bda4);},async 'execute'(_0x973f83){const _0x3f9a76=a143_0x43464f,_0xad0331=readNotificationChannelType(_0x973f83),_0x4eb3b3=await listNotificationChannelConfigs(_0x973f83[_0x3f9a76(0x1f3)],_0xad0331),_0x149efa=_0x4eb3b3[_0x3f9a76(0x1f2)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x973f83['appCode'],'channelType':_0xad0331,'count':_0x149efa[_0x3f9a76(0x1f4)],'configs':_0x149efa},'message':_0x3f9a76(0x201)+_0x149efa['length']+'\x20'+_0xad0331+_0x3f9a76(0x1f7)};}};
1
+ const a143_0xf3aa4f=a143_0x143e;(function(_0x33e1e0,_0x154598){const _0x3cd2cc=a143_0x143e,_0x164523=_0x33e1e0();while(!![]){try{const _0x2e8de3=-parseInt(_0x3cd2cc(0xec))/0x1+-parseInt(_0x3cd2cc(0xf9))/0x2+-parseInt(_0x3cd2cc(0xe9))/0x3*(parseInt(_0x3cd2cc(0xf4))/0x4)+parseInt(_0x3cd2cc(0xf3))/0x5+parseInt(_0x3cd2cc(0xf7))/0x6+-parseInt(_0x3cd2cc(0xed))/0x7+parseInt(_0x3cd2cc(0xf8))/0x8;if(_0x2e8de3===_0x154598)break;else _0x164523['push'](_0x164523['shift']());}catch(_0x39e88f){_0x164523['push'](_0x164523['shift']());}}}(a143_0x2c46,0xa8152));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a143_0x143e(_0x5f12f1,_0x1816eb){_0x5f12f1=_0x5f12f1-0xe8;const _0x2c4653=a143_0x2c46();let _0x143e15=_0x2c4653[_0x5f12f1];return _0x143e15;}function a143_0x2c46(){const _0xadacda=['15GcpNPc','map','\x20notification\x20config(s)','1268086uaMSll','5096231KoGLUs','config-list','type','length','notification','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5532395HjFWNc','704516RzHWMb','Found\x20','string','4876890spKxAp','17002456mVVaro','958742kuLFsx','appCode'];a143_0x2c46=function(){return _0xadacda;};return a143_0x2c46();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0xf3aa4f(0xf1),'command':a143_0xf3aa4f(0xee),'description':a143_0xf3aa4f(0xf2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a143_0xf3aa4f(0xef),'type':a143_0xf3aa4f(0xf6),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x582d72){readNotificationChannelType(_0x582d72);},async 'execute'(_0x6099fc){const _0x1d8da2=a143_0xf3aa4f,_0x36b86f=readNotificationChannelType(_0x6099fc),_0x4da035=await listNotificationChannelConfigs(_0x6099fc[_0x1d8da2(0xe8)],_0x36b86f),_0x1609d9=_0x4da035[_0x1d8da2(0xea)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x6099fc[_0x1d8da2(0xe8)],'channelType':_0x36b86f,'count':_0x1609d9[_0x1d8da2(0xf0)],'configs':_0x1609d9},'message':_0x1d8da2(0xf5)+_0x1609d9[_0x1d8da2(0xf0)]+'\x20'+_0x36b86f+_0x1d8da2(0xeb)};}};
@@ -1 +1 @@
1
- const a144_0x4c3df4=a144_0x4e01;(function(_0x8d5260,_0x2a419b){const _0x407e7a=a144_0x4e01,_0x2a3280=_0x8d5260();while(!![]){try{const _0x2a9a9e=-parseInt(_0x407e7a(0x16e))/0x1+-parseInt(_0x407e7a(0x17d))/0x2+-parseInt(_0x407e7a(0x182))/0x3+parseInt(_0x407e7a(0x181))/0x4+-parseInt(_0x407e7a(0x171))/0x5+-parseInt(_0x407e7a(0x17b))/0x6*(-parseInt(_0x407e7a(0x187))/0x7)+parseInt(_0x407e7a(0x17a))/0x8;if(_0x2a9a9e===_0x2a419b)break;else _0x2a3280['push'](_0x2a3280['shift']());}catch(_0x3ad188){_0x2a3280['push'](_0x2a3280['shift']());}}}(a144_0x367a,0xaf8bf));import{asDryRunResult}from'../../commands/common/dry-run.js';function a144_0x4e01(_0x3bac9e,_0x432d05){_0x3bac9e=_0x3bac9e-0x167;const _0x367aac=a144_0x367a();let _0x4e011c=_0x367aac[_0x3bac9e];return _0x4e011c;}import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a144_0x4c3df4(0x186);function a144_0x367a(){const _0x54af8a=['Notification\x20config\x20','1740928eNJeoo','1591374xArfcE','channelType','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','update','/notification/channel-config/update','4606mhHjZL','planned','notification_config_update_verification_failed','notification_config_update_outcome_unknown','\x20via\x20','mutation','notification_config_update_verification_unavailable','patch','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','Inspect\x20ID\x20','747277sARLkk','verifiedFields','notification','5327185ELYduc','high-risk-write','POST','allMatch','Inspect\x20with\x20--id\x20','verified','provesChange','before',';\x20no\x20automatic\x20retry\x20was\x20attempted.','17100136FvVrGh','7608JhzCXW',';\x20do\x20not\x20resubmit\x20automatically.','689764ISonJc','appCode','payload'];a144_0x367a=function(){return _0x54af8a;};return a144_0x367a();}async function prepareUpdate(_0x36bdc4){const _0x522dcc=a144_0x4c3df4,_0x109c2b=readNotificationId(_0x36bdc4),_0x4949ec=await readNotificationDocument(_0x36bdc4,_0x522dcc(0x185)),_0x33ef45=await requireExactNotificationConfig(_0x36bdc4['appCode'],_0x109c2b,_0x522dcc(0x185));return{'id':_0x109c2b,'patch':_0x4949ec,'before':_0x33ef45,'payload':mergeUpdateInput(_0x33ef45,_0x4949ec),'planned':plannedUpdateProjection(_0x33ef45,_0x4949ec)};}export const notificationConfigUpdate={'service':a144_0x4c3df4(0x170),'command':'config-update','description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':a144_0x4c3df4(0x172),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x1eae5c){readNotificationId(_0x1eae5c),assertSingleNotificationSource(_0x1eae5c),requireNotificationExplicitYes(_0x1eae5c);},async 'dryRun'(_0x5d1616){const _0x45f283=a144_0x4c3df4,_0x395a36=await prepareUpdate(_0x5d1616),_0x3d55cb=notificationLookupCommand(_0x5d1616[_0x45f283(0x17e)],_0x395a36[_0x45f283(0x178)][_0x45f283(0x183)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x395a36['before']),'before':projectNotificationConfig(_0x395a36[_0x45f283(0x178)]),'after':_0x395a36['planned'],'dryRun':!![],'backend':{'method':_0x45f283(0x173),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x45f283(0x188),'lookupCommand':_0x3d55cb}},{'method':_0x45f283(0x173),'url':UPDATE_PATH});},async 'execute'(_0x17c06d){const _0x5da3ed=a144_0x4c3df4;requireNotificationExplicitYes(_0x17c06d);const _0x3aef4a=await prepareUpdate(_0x17c06d),_0x2b9113=notificationLookupCommand(_0x17c06d['appCode'],_0x3aef4a['before']['channelType']);let _0x2b1e5d=![];try{await updateNotificationChannelConfig(_0x3aef4a[_0x5da3ed(0x17f)]);}catch(_0x4c7a4e){if(!isPlatformTransportFailure(_0x4c7a4e))throw safeApiFailure(_0x5da3ed(0x185),_0x5da3ed(0x169),_0x5da3ed(0x16d)+_0x3aef4a['id']+'\x20with\x20'+_0x2b9113+_0x5da3ed(0x179));_0x2b1e5d=!![];}let _0x3b1b25;try{const _0x39052f=await getNotificationChannelConfig(_0x3aef4a['id'],_0x17c06d[_0x5da3ed(0x17e)]);_0x3b1b25=normalizeExactNotificationConfig(_0x39052f,_0x3aef4a['id'],_0x17c06d[_0x5da3ed(0x17e)]);}catch{throw notificationError(_0x2b1e5d?_0x5da3ed(0x167):_0x5da3ed(0x16a),_0x5da3ed(0x180)+_0x3aef4a['id']+_0x5da3ed(0x16c),_0x5da3ed(0x175)+_0x3aef4a['id']+_0x5da3ed(0x168)+_0x2b9113+_0x5da3ed(0x17c));}const _0x529933=requestedSafeFieldsMatch(_0x3aef4a[_0x5da3ed(0x178)],_0x3b1b25,_0x3aef4a[_0x5da3ed(0x16b)]);if(!_0x529933[_0x5da3ed(0x174)]||_0x2b1e5d&&!_0x529933[_0x5da3ed(0x177)])throw notificationError(_0x2b1e5d?_0x5da3ed(0x167):_0x5da3ed(0x189),_0x5da3ed(0x180)+_0x3aef4a['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x5da3ed(0x175)+_0x3aef4a['id']+_0x5da3ed(0x168)+_0x2b9113+_0x5da3ed(0x17c));const _0x3fc5e0=_0x2b1e5d?[_0x5da3ed(0x184)]:[];return{'ok':!![],'data':{'operation':_0x5da3ed(0x185),'selector':notificationSelector(_0x3b1b25),'before':projectNotificationConfig(_0x3aef4a['before']),'after':projectNotificationConfig(_0x3b1b25),'dryRun':![],'backend':{'method':_0x5da3ed(0x173),'path':UPDATE_PATH},'warnings':_0x3fc5e0,'verification':{'status':_0x5da3ed(0x176),'recoveredAfterUnknownResponse':_0x2b1e5d,'verifiedFields':_0x529933[_0x5da3ed(0x16f)],'lookupCommand':_0x2b9113}},'message':'Updated\x20notification\x20config\x20'+_0x3b1b25['id']};}};
1
+ const a144_0x12f4a4=a144_0x3d60;(function(_0x31d1ca,_0x8585d8){const _0x1f56a1=a144_0x3d60,_0x28c4aa=_0x31d1ca();while(!![]){try{const _0x549abe=parseInt(_0x1f56a1(0x137))/0x1*(-parseInt(_0x1f56a1(0x146))/0x2)+parseInt(_0x1f56a1(0x149))/0x3*(-parseInt(_0x1f56a1(0x12d))/0x4)+-parseInt(_0x1f56a1(0x139))/0x5+-parseInt(_0x1f56a1(0x130))/0x6*(parseInt(_0x1f56a1(0x147))/0x7)+parseInt(_0x1f56a1(0x131))/0x8+parseInt(_0x1f56a1(0x12e))/0x9+parseInt(_0x1f56a1(0x127))/0xa;if(_0x549abe===_0x8585d8)break;else _0x28c4aa['push'](_0x28c4aa['shift']());}catch(_0x245351){_0x28c4aa['push'](_0x28c4aa['shift']());}}}(a144_0x737e,0x56c61));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a144_0x737e(){const _0x31c7be=['\x20via\x20','mutation','config-update','planned','patch','1pluBAF','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','1485660mWNkrH','notification_config_update_verification_failed','/notification/channel-config/update','\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','POST','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','high-risk-write','Notification\x20config\x20','notification_config_update_verification_unavailable','update','verifiedFields','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','881350HTqsRu','7JoqNaJ','Inspect\x20with\x20--id\x20','1824VAgmpk','appCode','channelType','payload','12833180ntsIcF','notification_config_update_outcome_unknown','before','Updated\x20notification\x20config\x20','notification',';\x20no\x20automatic\x20retry\x20was\x20attempted.','2740KOGXtI','27783KxxzDq','verified','2487258UdenwH','5102800tSylBJ'];a144_0x737e=function(){return _0x31c7be;};return a144_0x737e();}function a144_0x3d60(_0xc8f040,_0x586133){_0xc8f040=_0xc8f040-0x124;const _0x737ea9=a144_0x737e();let _0x3d6080=_0x737ea9[_0xc8f040];return _0x3d6080;}const UPDATE_PATH=a144_0x12f4a4(0x13b);async function prepareUpdate(_0x198f00){const _0x3202ae=a144_0x12f4a4,_0x52f572=readNotificationId(_0x198f00),_0x66e21c=await readNotificationDocument(_0x198f00,'update'),_0x224cd8=await requireExactNotificationConfig(_0x198f00['appCode'],_0x52f572,_0x3202ae(0x143));return{'id':_0x52f572,'patch':_0x66e21c,'before':_0x224cd8,'payload':mergeUpdateInput(_0x224cd8,_0x66e21c),'planned':plannedUpdateProjection(_0x224cd8,_0x66e21c)};}export const notificationConfigUpdate={'service':a144_0x12f4a4(0x12b),'command':a144_0x12f4a4(0x134),'description':a144_0x12f4a4(0x13f),'risk':a144_0x12f4a4(0x140),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x1be192){readNotificationId(_0x1be192),assertSingleNotificationSource(_0x1be192),requireNotificationExplicitYes(_0x1be192);},async 'dryRun'(_0x1e6e7f){const _0x1ab6d1=a144_0x12f4a4,_0x39e762=await prepareUpdate(_0x1e6e7f),_0x4b0354=notificationLookupCommand(_0x1e6e7f[_0x1ab6d1(0x124)],_0x39e762[_0x1ab6d1(0x129)]['channelType']);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x39e762[_0x1ab6d1(0x129)]),'before':projectNotificationConfig(_0x39e762[_0x1ab6d1(0x129)]),'after':_0x39e762[_0x1ab6d1(0x135)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1ab6d1(0x135),'lookupCommand':_0x4b0354}},{'method':_0x1ab6d1(0x13e),'url':UPDATE_PATH});},async 'execute'(_0x1f67b5){const _0x38c65e=a144_0x12f4a4;requireNotificationExplicitYes(_0x1f67b5);const _0x28e322=await prepareUpdate(_0x1f67b5),_0x48daac=notificationLookupCommand(_0x1f67b5['appCode'],_0x28e322['before'][_0x38c65e(0x125)]);let _0x316881=![];try{await updateNotificationChannelConfig(_0x28e322[_0x38c65e(0x126)]);}catch(_0x4c62d9){if(!isPlatformTransportFailure(_0x4c62d9))throw safeApiFailure(_0x38c65e(0x143),_0x38c65e(0x133),'Inspect\x20ID\x20'+_0x28e322['id']+_0x38c65e(0x13c)+_0x48daac+_0x38c65e(0x12c));_0x316881=!![];}let _0x56d6dd;try{const _0x1b78d1=await getNotificationChannelConfig(_0x28e322['id'],_0x1f67b5[_0x38c65e(0x124)]);_0x56d6dd=normalizeExactNotificationConfig(_0x1b78d1,_0x28e322['id'],_0x1f67b5['appCode']);}catch{throw notificationError(_0x316881?'notification_config_update_outcome_unknown':_0x38c65e(0x142),_0x38c65e(0x141)+_0x28e322['id']+_0x38c65e(0x138),_0x38c65e(0x148)+_0x28e322['id']+_0x38c65e(0x132)+_0x48daac+_0x38c65e(0x13d));}const _0x1f7c8d=requestedSafeFieldsMatch(_0x28e322[_0x38c65e(0x129)],_0x56d6dd,_0x28e322[_0x38c65e(0x136)]);if(!_0x1f7c8d['allMatch']||_0x316881&&!_0x1f7c8d['provesChange'])throw notificationError(_0x316881?_0x38c65e(0x128):_0x38c65e(0x13a),'Notification\x20config\x20'+_0x28e322['id']+_0x38c65e(0x145),'Inspect\x20with\x20--id\x20'+_0x28e322['id']+_0x38c65e(0x132)+_0x48daac+_0x38c65e(0x13d));const _0x59a79f=_0x316881?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x38c65e(0x143),'selector':notificationSelector(_0x56d6dd),'before':projectNotificationConfig(_0x28e322['before']),'after':projectNotificationConfig(_0x56d6dd),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x59a79f,'verification':{'status':_0x38c65e(0x12f),'recoveredAfterUnknownResponse':_0x316881,'verifiedFields':_0x1f7c8d[_0x38c65e(0x144)],'lookupCommand':_0x48daac}},'message':_0x38c65e(0x12a)+_0x56d6dd['id']};}};
@@ -1 +1 @@
1
- function a145_0x52ee(){const _0x9f8b7=['70ChFQuG','4994935mbmMJG','3055476jsfIaR','1690pGWaZA','960gwtzsh','2532990ixBEiW','2681945yzechG','6512128DMECii','3PUgGjw','1816731cHnuVl'];a145_0x52ee=function(){return _0x9f8b7;};return a145_0x52ee();}(function(_0x56f4ac,_0x15d72e){const _0x167b50=a145_0x1c9a,_0x326317=_0x56f4ac();while(!![]){try{const _0x59fb78=parseInt(_0x167b50(0xd9))/0x1*(-parseInt(_0x167b50(0xda))/0x2)+-parseInt(_0x167b50(0xd4))/0x3*(parseInt(_0x167b50(0xd8))/0x4)+parseInt(_0x167b50(0xd7))/0x5+-parseInt(_0x167b50(0xdb))/0x6+-parseInt(_0x167b50(0xd2))/0x7+parseInt(_0x167b50(0xd3))/0x8+-parseInt(_0x167b50(0xd5))/0x9*(-parseInt(_0x167b50(0xd6))/0xa);if(_0x59fb78===_0x15d72e)break;else _0x326317['push'](_0x326317['shift']());}catch(_0x3d13d1){_0x326317['push'](_0x326317['shift']());}}}(a145_0x52ee,0xce74f));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a145_0x1c9a(_0x35377f,_0x36f567){_0x35377f=_0x35377f-0xd2;const _0x52ee1b=a145_0x52ee();let _0x1c9a26=_0x52ee1b[_0x35377f];return _0x1c9a26;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x8d48bc,_0x53d661){const _0x1a8a50=a145_0x1713,_0xfdfaf7=_0x8d48bc();while(!![]){try{const _0x17bd16=parseInt(_0x1a8a50(0x96))/0x1*(parseInt(_0x1a8a50(0x92))/0x2)+-parseInt(_0x1a8a50(0x99))/0x3+-parseInt(_0x1a8a50(0x97))/0x4*(-parseInt(_0x1a8a50(0x91))/0x5)+-parseInt(_0x1a8a50(0x90))/0x6*(-parseInt(_0x1a8a50(0x94))/0x7)+parseInt(_0x1a8a50(0x95))/0x8+-parseInt(_0x1a8a50(0x98))/0x9+-parseInt(_0x1a8a50(0x93))/0xa;if(_0x17bd16===_0x53d661)break;else _0xfdfaf7['push'](_0xfdfaf7['shift']());}catch(_0x1e3903){_0xfdfaf7['push'](_0xfdfaf7['shift']());}}}(a145_0x300e,0x2241a));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a145_0x1713(_0x37481a,_0x7dc4a9){_0x37481a=_0x37481a-0x90;const _0x300e19=a145_0x300e();let _0x171321=_0x300e19[_0x37481a];return _0x171321;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a145_0x300e(){const _0x281ca5=['14ohCakI','1012816nHcAxf','1QxOcuV','304brPBPl','87345IgTHRd','354405LudZme','162726MPROpc','16410WxIVZw','347962ZaqtdB','3361030deeGGv'];a145_0x300e=function(){return _0x281ca5;};return a145_0x300e();}
@@ -1 +1 @@
1
- const a146_0x128dcc=a146_0x4d91;(function(_0x57b184,_0x538f37){const _0x56e36d=a146_0x4d91,_0x250f91=_0x57b184();while(!![]){try{const _0x4803f1=parseInt(_0x56e36d(0x152))/0x1*(-parseInt(_0x56e36d(0x12e))/0x2)+parseInt(_0x56e36d(0x165))/0x3*(-parseInt(_0x56e36d(0x128))/0x4)+parseInt(_0x56e36d(0x169))/0x5*(parseInt(_0x56e36d(0x125))/0x6)+-parseInt(_0x56e36d(0x197))/0x7+-parseInt(_0x56e36d(0x187))/0x8+-parseInt(_0x56e36d(0x151))/0x9+-parseInt(_0x56e36d(0x15e))/0xa*(-parseInt(_0x56e36d(0x13f))/0xb);if(_0x4803f1===_0x538f37)break;else _0x250f91['push'](_0x250f91['shift']());}catch(_0x21362f){_0x250f91['push'](_0x250f91['shift']());}}}(a146_0x6940,0x3de5e));import{readFile}from'node:fs/promises';function a146_0x6940(){const _0x5bc803=['setEncoding','\x20failed.','validation','a\x20JSON\x20object','rabetbase\x20notification\x20config-list\x20--appcode\x20','EMAIL','mutation','1155vRhYLV','endpointUrl','from-env','Notification\x20JSON\x20field\x20\x22','subjectPrefix','DINGTALK','Missing\x20notification\x20JSON\x20source.','\x22channelType\x22.','bccList','\x22configName\x22.','environment\x20variable\x20','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','notification_config_field_forbidden','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','stdin','WECOM','Invalid\x20notification\x20config\x20response.','1201104PEFyuW','1JphXTF','has','\x20has\x20an\x20invalid\x20appCode.','\x20must\x20be\x20an\x20object.','update','join','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Notification\x20config\x20list\x20item\x20','trim','create','WEBHOOK','72350urwVaN','entries','bool','type','messageTemplate','updateTime','Unknown\x20notification\x20JSON\x20field\x20\x22','127866vrfozP','\x22\x20cannot\x20exceed\x20','file\x20','object','37400JXhSte','some','keys','notification_config_confirmation_required','a\x20JSON\x20object\x20or\x20null','\x20has\x20invalid\x20field\x20\x22','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','path','configCode','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','env','appCode','file','string','Notification\x20JSON\x20source\x20is\x20ambiguous.','notification_config_source_unavailable','every','\x20is\x20missing\x20required\x20field\x20\x22','createTime','channelConfig','includes','emailTargets','length','kind','a\x20non-empty\x20string','channelConfigRaw','num','readTimeout','<redacted>','Allowed\x20values:\x20','2769024pvmfHc','endpointUrlRaw','a\x20string\x20or\x20null','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','_unavailable','Notification\x20config\x20','notification_config_update_empty','utf8','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','FEISHU','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Application-level\x20notification\x20config\x20ID','notification_config_field_invalid','fromName','isSafeInteger','replyTo','1280146RmuLZW','parse','\x20has\x20an\x20unsupported\x20channelType.','notification_config_channel_field_forbidden','\x20is\x20invalid.','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','a\x20supported\x20string','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','stringify','Notification\x20JSON\x20from\x20','Invalid\x20--','name','notification_config_response_invalid','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','channelType','notification_config_json_invalid','notification_config_field_required','hasOwnProperty','312LmThdr','\x20has\x20an\x20invalid\x20id.','Create\x20JSON\x20requires\x20field\x20','16YJpjPX','push','dry-run','number','configName','channelCode','124302cdUAYt','notification_config_field_unknown','str','yes','connectTimeout','\x20characters.','\x22\x20is\x20forbidden.','prototype','description','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.'];a146_0x6940=function(){return _0x5bc803;};return a146_0x6940();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x128dcc(0x13d),a146_0x128dcc(0x190),a146_0x128dcc(0x144),a146_0x128dcc(0x14f),a146_0x128dcc(0x15d)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set(['configName',a146_0x128dcc(0x121),a146_0x128dcc(0x140),a146_0x128dcc(0x17c),'description','connectTimeout','readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x128dcc(0x174),a146_0x128dcc(0x171),a146_0x128dcc(0x12d)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x128dcc(0x17e),'recipients','ccList',a146_0x128dcc(0x147),a146_0x128dcc(0x196),a146_0x128dcc(0x143),a146_0x128dcc(0x194),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':'string','required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':a146_0x128dcc(0x14e),'type':'boolean','required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a146_0x128dcc(0x141),'type':a146_0x128dcc(0x176),'required':![],'description':a146_0x128dcc(0x14c)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x128dcc(0x12b),'required':!![],'description':a146_0x128dcc(0x192)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x39ee73,_0x166f25,_0x5d8a8f){return new CliError(_0x39ee73,0x1,_0x166f25,_0x5d8a8f);}export function readNotificationId(_0x30f695){const _0x34651c=a146_0x128dcc,_0x1cbf37=_0x30f695[_0x34651c(0x183)]('id');if(!Number[_0x34651c(0x195)](_0x1cbf37)||_0x1cbf37<=0x0)throw notificationError('notification_config_id_invalid',_0x34651c(0x137));return _0x1cbf37;}export function requireNotificationExplicitYes(_0x57cdc6){const _0x1243bc=a146_0x128dcc;if(_0x57cdc6[_0x1243bc(0x160)](_0x1243bc(0x12a))||_0x57cdc6[_0x1243bc(0x160)](_0x1243bc(0x131)))return;throw notificationError(_0x1243bc(0x16c),_0x1243bc(0x14a),_0x1243bc(0x19e));}export function readNotificationChannelType(_0x110620,_0x4161b1=a146_0x128dcc(0x161),_0x4b7992='EMAIL'){const _0x476e1e=a146_0x128dcc,_0x269a20=_0x110620['str'](_0x4161b1)[_0x476e1e(0x15b)]()||_0x4b7992;if(!NOTIFICATION_CHANNEL_TYPES[_0x476e1e(0x17d)](_0x269a20))throw CliErrors['validation'](_0x476e1e(0x11d)+_0x4161b1+':\x20'+_0x269a20,_0x476e1e(0x186)+NOTIFICATION_CHANNEL_TYPES[_0x476e1e(0x157)](',\x20')+'.');return _0x269a20;}export function assertSingleNotificationSource(_0x59e536){const _0x5d721d=a146_0x128dcc,_0x589fbe=[],_0x5cf20a=_0x59e536[_0x5d721d(0x130)](_0x5d721d(0x175))[_0x5d721d(0x15b)]();if(_0x5cf20a)_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x175),'path':_0x5cf20a});if(_0x59e536[_0x5d721d(0x160)](_0x5d721d(0x14e)))_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x14e)});const _0x49d73e=_0x59e536[_0x5d721d(0x130)](_0x5d721d(0x141))[_0x5d721d(0x15b)]();if(_0x49d73e)_0x589fbe[_0x5d721d(0x129)]({'kind':_0x5d721d(0x173),'name':_0x49d73e});if(_0x589fbe['length']===0x0)throw CliErrors[_0x5d721d(0x13a)](_0x5d721d(0x145),_0x5d721d(0x158));if(_0x589fbe[_0x5d721d(0x17f)]>0x1)throw CliErrors[_0x5d721d(0x13a)](_0x5d721d(0x177),_0x5d721d(0x158));return _0x589fbe[0x0];}export async function readNotificationDocument(_0x30c500,_0xfb5c9c){const _0x487685=a146_0x128dcc,_0x4f6115=assertSingleNotificationSource(_0x30c500),_0x1d27ea=_0x4f6115[_0x487685(0x180)]===_0x487685(0x175)?_0x487685(0x167)+_0x4f6115[_0x487685(0x170)]:_0x4f6115[_0x487685(0x180)]===_0x487685(0x173)?_0x487685(0x149)+_0x4f6115['name']:'stdin';let _0x3bed95;try{if(_0x4f6115[_0x487685(0x180)]===_0x487685(0x175))_0x3bed95=await readFile(_0x4f6115[_0x487685(0x170)],_0x487685(0x18e));else{if(_0x4f6115['kind']===_0x487685(0x173)){if(!(_0x4f6115[_0x487685(0x11e)]in process.env))throw notificationError(_0x487685(0x178),_0x487685(0x16f)+_0x4f6115['name']);_0x3bed95=process.env[_0x4f6115.name]??'';}else _0x3bed95=await readStdin();}}catch(_0x5666fd){if(_0x5666fd instanceof CliError)throw _0x5666fd;throw notificationError(_0x487685(0x178),_0x487685(0x120)+_0x1d27ea+'.');}let _0xc06bed;try{_0xc06bed=JSON[_0x487685(0x198)](_0x3bed95);}catch{throw notificationError(_0x487685(0x122),'Notification\x20JSON\x20from\x20'+_0x1d27ea+_0x487685(0x19b),_0x487685(0x18a));}if(!isJsonObject(_0xc06bed))throw notificationError('notification_config_json_invalid',_0x487685(0x11c)+_0x1d27ea+_0x487685(0x155));return validateNotificationDocument(_0xc06bed,_0xfb5c9c);}export function projectNotificationListConfig(_0xcd19d3,_0x39ddcd){const _0x46517c=a146_0x128dcc;return{'id':typeof _0xcd19d3['id']===_0x46517c(0x12b)?_0xcd19d3['id']:null,'configCode':requireResponseString(_0xcd19d3[_0x46517c(0x171)],'configCode',_0x39ddcd),'configName':requireResponseString(_0xcd19d3[_0x46517c(0x12c)],'configName',_0x39ddcd),'channelType':requireResponseString(_0xcd19d3[_0x46517c(0x121)],_0x46517c(0x121),_0x39ddcd),'description':normalizeNullableString(_0xcd19d3[_0x46517c(0x136)]),'createTime':normalizeNullableString(_0xcd19d3[_0x46517c(0x17b)]),'updateTime':normalizeNullableString(_0xcd19d3[_0x46517c(0x163)])};}export function normalizeExactNotificationConfig(_0x47f032,_0x1903f0,_0x4d9715){const _0x9496af=a146_0x128dcc;if(!Number[_0x9496af(0x195)](_0x47f032['id'])||_0x47f032['id']!==_0x1903f0)throw notificationError('notification_config_response_invalid',_0x9496af(0x18f)+_0x1903f0+'.');if(_0x47f032[_0x9496af(0x174)]!==_0x4d9715)throw notificationError(_0x9496af(0x11f),'Notification\x20config\x20'+_0x1903f0+_0x9496af(0x14d));const _0xe6b896=requireExactString(_0x47f032['configName'],_0x9496af(0x12c),_0x1903f0),_0x392320=requireExactString(_0x47f032[_0x9496af(0x171)],_0x9496af(0x171),_0x1903f0),_0xfc158d=requireExactString(_0x47f032['channelType'],_0x9496af(0x121),_0x1903f0);if(!NOTIFICATION_CHANNEL_TYPES[_0x9496af(0x17d)](_0xfc158d))throw notificationError(_0x9496af(0x11f),_0x9496af(0x18c)+_0x1903f0+_0x9496af(0x199));const _0x434951=responseNullableString(_0x47f032[_0x9496af(0x140)],_0x9496af(0x140),_0x1903f0),_0x5f3490=responseNullableString(_0x47f032[_0x9496af(0x17c)],_0x9496af(0x17c),_0x1903f0),_0x317d51=responseNullableString(_0x47f032[_0x9496af(0x136)],_0x9496af(0x136),_0x1903f0),_0x4ec5d7=responseNullableTimeout(_0x47f032[_0x9496af(0x132)],_0x9496af(0x132),_0x1903f0),_0x425475=responseNullableTimeout(_0x47f032[_0x9496af(0x184)],_0x9496af(0x184),_0x1903f0);return{'id':_0x1903f0,'appCode':_0x4d9715,'configCode':_0x392320,'configName':_0xe6b896,'channelType':_0xfc158d,'endpointUrl':redactSensitive(_0x434951),'channelConfig':redactSensitive(_0x5f3490),'description':_0x317d51,'connectTimeout':_0x4ec5d7,'readTimeout':_0x425475,'endpointUrlRaw':_0x434951,'channelConfigRaw':_0x5f3490};}export async function requireExactNotificationConfig(_0x23dcb2,_0x58511a,_0x312cbb){const _0xac7a51=a146_0x128dcc;let _0x4f1eab;try{_0x4f1eab=await getNotificationChannelConfig(_0x58511a,_0x23dcb2);}catch{throw safeApiFailure(_0x312cbb,'preflight','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x23dcb2+_0xac7a51(0x172));}return normalizeExactNotificationConfig(_0x4f1eab,_0x58511a,_0x23dcb2);}export function projectNotificationConfig(_0x491178){const _0x58d992=a146_0x128dcc;return{'id':_0x491178['id']??null,'appCode':_0x491178[_0x58d992(0x174)],'configCode':_0x491178[_0x58d992(0x171)]??null,'configName':_0x491178[_0x58d992(0x12c)],'channelType':_0x491178[_0x58d992(0x121)],'endpointUrl':redactSensitive(_0x491178[_0x58d992(0x140)]),'channelConfig':redactSensitive(_0x491178[_0x58d992(0x17c)]),'description':_0x491178[_0x58d992(0x136)]??null,'connectTimeout':_0x491178[_0x58d992(0x132)]??null,'readTimeout':_0x491178['readTimeout']??null};}export function notificationSelector(_0x302f2b){const _0x1c8cd1=a146_0x128dcc;return{'appCode':_0x302f2b[_0x1c8cd1(0x174)],'id':_0x302f2b['id'],'configCode':_0x302f2b['configCode'],'configName':_0x302f2b[_0x1c8cd1(0x12c)],'channelType':_0x302f2b['channelType']};}export function createMutationInput(_0xa9a264,_0x1aaeec){const _0x558d2f=a146_0x128dcc;return{'appCode':_0xa9a264,'configName':_0x1aaeec[_0x558d2f(0x12c)],'channelType':_0x1aaeec['channelType'],...hasOwn(_0x1aaeec,_0x558d2f(0x140))?{'endpointUrl':_0x1aaeec[_0x558d2f(0x140)]}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x17c))?{'channelConfig':serializeChannelConfig(_0x1aaeec['channelConfig'])}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x136))?{'description':_0x1aaeec['description']}:{},...hasOwn(_0x1aaeec,'connectTimeout')?{'connectTimeout':_0x1aaeec[_0x558d2f(0x132)]}:{},...hasOwn(_0x1aaeec,_0x558d2f(0x184))?{'readTimeout':_0x1aaeec[_0x558d2f(0x184)]}:{}};}export function mergeUpdateInput(_0x3dd423,_0x2fc1fb){const _0x157085=a146_0x128dcc;return{'id':_0x3dd423['id'],'appCode':_0x3dd423[_0x157085(0x174)],'configName':_0x2fc1fb[_0x157085(0x12c)]??_0x3dd423[_0x157085(0x12c)],'channelType':_0x2fc1fb['channelType']??_0x3dd423['channelType'],'endpointUrl':hasOwn(_0x2fc1fb,_0x157085(0x140))?_0x2fc1fb['endpointUrl']:_0x3dd423['endpointUrlRaw'],'channelConfig':hasOwn(_0x2fc1fb,_0x157085(0x17c))?serializeChannelConfig(_0x2fc1fb['channelConfig']):_0x3dd423[_0x157085(0x182)],'description':hasOwn(_0x2fc1fb,_0x157085(0x136))?_0x2fc1fb['description']:_0x3dd423[_0x157085(0x136)],'connectTimeout':hasOwn(_0x2fc1fb,'connectTimeout')?_0x2fc1fb['connectTimeout']:_0x3dd423[_0x157085(0x132)],'readTimeout':hasOwn(_0x2fc1fb,_0x157085(0x184))?_0x2fc1fb['readTimeout']:_0x3dd423['readTimeout']};}export function plannedUpdateProjection(_0x8bf0f5,_0x433cd4){const _0xb82b6e=a146_0x128dcc;return projectNotificationConfig({'id':_0x8bf0f5['id'],'appCode':_0x8bf0f5[_0xb82b6e(0x174)],'configCode':_0x8bf0f5[_0xb82b6e(0x171)],'configName':_0x433cd4[_0xb82b6e(0x12c)]??_0x8bf0f5['configName'],'channelType':_0x433cd4[_0xb82b6e(0x121)]??_0x8bf0f5[_0xb82b6e(0x121)],'endpointUrl':hasOwn(_0x433cd4,'endpointUrl')?_0x433cd4[_0xb82b6e(0x140)]:_0x8bf0f5[_0xb82b6e(0x188)],'channelConfig':hasOwn(_0x433cd4,_0xb82b6e(0x17c))?_0x433cd4['channelConfig']:_0x8bf0f5['channelConfigRaw'],'description':hasOwn(_0x433cd4,'description')?_0x433cd4[_0xb82b6e(0x136)]:_0x8bf0f5[_0xb82b6e(0x136)],'connectTimeout':hasOwn(_0x433cd4,_0xb82b6e(0x132))?_0x433cd4['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x8bf0f5[_0xb82b6e(0x132)],'readTimeout':hasOwn(_0x433cd4,'readTimeout')?_0x433cd4[_0xb82b6e(0x184)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x8bf0f5[_0xb82b6e(0x184)]});}export function requestedSafeFieldsMatch(_0xa07fc0,_0x5b19d1,_0x1368a2){const _0x131c75=a146_0x128dcc,_0x1ee1b9=[],_0xe7463a=[],_0x5a1695=[];for(const _0x5c68c2 of[_0x131c75(0x12c),_0x131c75(0x121),'description']){if(!hasOwn(_0x1368a2,_0x5c68c2))continue;_0x5a1695[_0x131c75(0x129)](_0x5c68c2),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1[_0x5c68c2]===_0x1368a2[_0x5c68c2]),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x5c68c2]!==_0x1368a2[_0x5c68c2]&&_0x5b19d1[_0x5c68c2]===_0x1368a2[_0x5c68c2]);}for(const _0x4e41ea of[_0x131c75(0x132),'readTimeout']){if(!hasOwn(_0x1368a2,_0x4e41ea))continue;const _0x4efecc=_0x1368a2[_0x4e41ea]??(_0x4e41ea===_0x131c75(0x132)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x5a1695[_0x131c75(0x129)](_0x4e41ea),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1[_0x4e41ea]===_0x4efecc),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x4e41ea]!==_0x4efecc&&_0x5b19d1[_0x4e41ea]===_0x4efecc);}return hasOwn(_0x1368a2,_0x131c75(0x140))&&_0x1368a2['endpointUrl']===null&&(_0x5a1695[_0x131c75(0x129)]('endpointUrl:null'),_0x1ee1b9[_0x131c75(0x129)](_0x5b19d1['endpointUrlRaw']===null||_0x5b19d1[_0x131c75(0x188)]===''),_0xe7463a[_0x131c75(0x129)](_0xa07fc0[_0x131c75(0x188)]!==null&&_0xa07fc0[_0x131c75(0x188)]!==''&&(_0x5b19d1[_0x131c75(0x188)]===null||_0x5b19d1['endpointUrlRaw']===''))),{'allMatch':_0x1ee1b9[_0x131c75(0x179)](Boolean),'provesChange':_0xe7463a[_0x131c75(0x16a)](Boolean),'verifiedFields':_0x5a1695};}export function validateNotificationDeleteReadback(_0x49784d,_0x52d495,_0xc170b4){const _0x50f167=a146_0x128dcc;for(const [_0x5263ff,_0x285acd]of _0x49784d[_0x50f167(0x15f)]()){if(!Number['isSafeInteger'](_0x285acd['id'])||_0x285acd['id']<=0x0)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+_0x50f167(0x126));if(_0x285acd[_0x50f167(0x174)]!==_0x52d495)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+_0x50f167(0x154));if(_0x285acd[_0x50f167(0x121)]!==_0xc170b4)throw notificationError(_0x50f167(0x11f),_0x50f167(0x15a)+(_0x5263ff+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x282cfc,_0x1c1ec1,_0x6e44dc){const _0x3eb41e=a146_0x128dcc;return notificationError('notification_config_'+_0x282cfc+'_'+(_0x1c1ec1===_0x3eb41e(0x13e)?'failed':_0x1c1ec1+_0x3eb41e(0x18b)),'Notification\x20config\x20'+_0x282cfc+'\x20'+_0x1c1ec1+_0x3eb41e(0x139),_0x6e44dc);}export function notificationLookupCommand(_0x459beb,_0x5c8f70){const _0x15ebdf=a146_0x128dcc;return _0x15ebdf(0x13c)+_0x459beb+'\x20--type\x20'+_0x5c8f70+'\x20--format\x20compress';}function validateNotificationDocument(_0x5948ea,_0x8e87d5){const _0x467fc3=a146_0x128dcc;for(const _0x377379 of Object[_0x467fc3(0x16b)](_0x5948ea)){if(FORBIDDEN_IDENTITY_FIELDS[_0x467fc3(0x153)](_0x377379))throw notificationError(_0x467fc3(0x14b),'Notification\x20JSON\x20field\x20\x22'+_0x377379+_0x467fc3(0x159));if(!ALLOWED_INPUT_FIELDS[_0x467fc3(0x153)](_0x377379))throw notificationError(_0x467fc3(0x12f),_0x467fc3(0x164)+_0x377379+'\x22.');}if(_0x8e87d5===_0x467fc3(0x156)&&Object[_0x467fc3(0x16b)](_0x5948ea)[_0x467fc3(0x17f)]===0x0)throw notificationError(_0x467fc3(0x18d),_0x467fc3(0x19c));const _0x43465c={};if(hasOwn(_0x5948ea,_0x467fc3(0x12c)))_0x43465c['configName']=validateRequiredString(_0x5948ea[_0x467fc3(0x12c)],_0x467fc3(0x12c),0x80);else{if(_0x8e87d5===_0x467fc3(0x15c))throw notificationError(_0x467fc3(0x123),_0x467fc3(0x127)+_0x467fc3(0x148));}if(hasOwn(_0x5948ea,_0x467fc3(0x121))){if(typeof _0x5948ea[_0x467fc3(0x121)]!==_0x467fc3(0x176))throw invalidFieldType(_0x467fc3(0x121),_0x467fc3(0x19d));const _0x391858=_0x5948ea[_0x467fc3(0x121)][_0x467fc3(0x15b)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x467fc3(0x17d)](_0x391858))throw notificationError(_0x467fc3(0x193),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x467fc3(0x157)](',\x20')+'.');_0x43465c[_0x467fc3(0x121)]=_0x391858;}else{if(_0x8e87d5===_0x467fc3(0x15c))throw notificationError(_0x467fc3(0x123),_0x467fc3(0x127)+_0x467fc3(0x146));}for(const [_0x4371ce,_0x5ba08a]of[[_0x467fc3(0x140),0x200],[_0x467fc3(0x136),0x100]]){if(!hasOwn(_0x5948ea,_0x4371ce))continue;const _0xf387b2=_0x5948ea[_0x4371ce];if(_0xf387b2!==null&&typeof _0xf387b2!==_0x467fc3(0x176))throw invalidFieldType(_0x4371ce,_0x467fc3(0x189));if(typeof _0xf387b2===_0x467fc3(0x176)&&_0xf387b2[_0x467fc3(0x17f)]>_0x5ba08a)throw notificationError(_0x467fc3(0x193),_0x467fc3(0x142)+_0x4371ce+_0x467fc3(0x166)+_0x5ba08a+_0x467fc3(0x133));_0x43465c[_0x4371ce]=_0xf387b2;}if(hasOwn(_0x5948ea,_0x467fc3(0x17c))){const _0x90cdd9=_0x5948ea[_0x467fc3(0x17c)];if(_0x90cdd9===null&&_0x8e87d5===_0x467fc3(0x15c))throw invalidFieldType('channelConfig',_0x467fc3(0x13b));if(_0x90cdd9!==null&&!isJsonObject(_0x90cdd9))throw invalidFieldType(_0x467fc3(0x17c),_0x8e87d5===_0x467fc3(0x156)?_0x467fc3(0x16d):_0x467fc3(0x13b));_0x90cdd9!==null&&validateChannelConfigFields(_0x43465c[_0x467fc3(0x121)],_0x90cdd9),_0x43465c[_0x467fc3(0x17c)]=_0x90cdd9;}for(const _0x1e5196 of[_0x467fc3(0x132),_0x467fc3(0x184)]){if(!hasOwn(_0x5948ea,_0x1e5196))continue;const _0x23dcf8=_0x5948ea[_0x1e5196];if(_0x23dcf8!==null&&(!Number[_0x467fc3(0x195)](_0x23dcf8)||_0x23dcf8<0x0))throw notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x1e5196+'\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.');_0x43465c[_0x1e5196]=_0x23dcf8;}return _0x43465c;}function validateRequiredString(_0xea09a2,_0x1cb810,_0x95fa30){const _0x3e5cf1=a146_0x128dcc;if(typeof _0xea09a2!=='string')throw invalidFieldType(_0x1cb810,_0x3e5cf1(0x181));const _0x1806d1=_0xea09a2[_0x3e5cf1(0x15b)]();if(!_0x1806d1)throw notificationError(_0x3e5cf1(0x193),_0x3e5cf1(0x142)+_0x1cb810+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');if(_0x1806d1['length']>_0x95fa30)throw notificationError(_0x3e5cf1(0x193),'Notification\x20JSON\x20field\x20\x22'+_0x1cb810+_0x3e5cf1(0x166)+_0x95fa30+_0x3e5cf1(0x133));return _0x1806d1;}function a146_0x4d91(_0x17c363,_0x503f36){_0x17c363=_0x17c363-0x11b;const _0x69408e=a146_0x6940();let _0x4d918b=_0x69408e[_0x17c363];return _0x4d918b;}function validateChannelConfigFields(_0x54a3ff,_0x34bf84){const _0x2f267a=a146_0x128dcc;if(hasOwn(_0x34bf84,'messageTemplate'))throw forbiddenChannelConfigField(_0x2f267a(0x162));if(_0x54a3ff===_0x2f267a(0x13d))for(const _0x159c8c of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x34bf84,_0x159c8c))throw forbiddenChannelConfigField(_0x159c8c);}}function forbiddenChannelConfigField(_0x1d00a8){const _0xc73e8b=a146_0x128dcc;return notificationError(_0xc73e8b(0x19a),_0xc73e8b(0x191)+_0x1d00a8+_0xc73e8b(0x134));}function invalidFieldType(_0x3461cb,_0x52d0fa){const _0x5d2d4=a146_0x128dcc;return notificationError('notification_config_field_invalid',_0x5d2d4(0x142)+_0x3461cb+'\x22\x20must\x20be\x20'+_0x52d0fa+'.');}function serializeChannelConfig(_0x2e01e4){const _0x405aac=a146_0x128dcc;return _0x2e01e4===null||_0x2e01e4===undefined?null:JSON[_0x405aac(0x11b)](_0x2e01e4);}function redactSensitive(_0x34494b){const _0x2237e2=a146_0x128dcc;return _0x34494b===null||_0x34494b===undefined||_0x34494b===''?null:_0x2237e2(0x185);}function requireResponseString(_0x3a9ea3,_0x458921,_0xce7c0){const _0x24ddb=a146_0x128dcc;if(typeof _0x3a9ea3!==_0x24ddb(0x176)||_0x3a9ea3[_0x24ddb(0x15b)]()==='')throw CliErrors['apiError'](_0x24ddb(0x150),'Item\x20'+(_0xce7c0+0x1)+_0x24ddb(0x17a)+_0x458921+'\x22.');return _0x3a9ea3[_0x24ddb(0x15b)]();}function requireExactString(_0x2f66ef,_0x3ea079,_0x49901c){const _0x530a8f=a146_0x128dcc;if(typeof _0x2f66ef!==_0x530a8f(0x176)||_0x2f66ef[_0x530a8f(0x15b)]()==='')throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x49901c+_0x530a8f(0x17a)+_0x3ea079+'\x22.');return _0x2f66ef[_0x530a8f(0x15b)]();}function responseNullableString(_0x1d50ca,_0x2c9d20,_0x4954d0){const _0x4487da=a146_0x128dcc;if(_0x1d50ca===undefined||_0x1d50ca===null)return null;if(typeof _0x1d50ca!==_0x4487da(0x176))throw notificationError(_0x4487da(0x11f),_0x4487da(0x18c)+_0x4954d0+_0x4487da(0x16e)+_0x2c9d20+'\x22.');return _0x1d50ca;}function responseNullableTimeout(_0x35fe34,_0x5caf9b,_0x9828b9){const _0x856831=a146_0x128dcc;if(_0x35fe34===undefined||_0x35fe34===null)return null;if(!Number[_0x856831(0x195)](_0x35fe34)||_0x35fe34<0x0)throw notificationError(_0x856831(0x11f),_0x856831(0x18c)+_0x9828b9+_0x856831(0x16e)+_0x5caf9b+'\x22.');return _0x35fe34;}function normalizeNullableString(_0x29861c){const _0x1a5b88=a146_0x128dcc;return typeof _0x29861c===_0x1a5b88(0x176)?_0x29861c:null;}function isJsonObject(_0xaf4b33){const _0x168884=a146_0x128dcc;return _0xaf4b33!==null&&typeof _0xaf4b33===_0x168884(0x168)&&!Array['isArray'](_0xaf4b33);}function hasOwn(_0x12ecdf,_0x555dff){const _0x8cb2a5=a146_0x128dcc;return Object[_0x8cb2a5(0x135)][_0x8cb2a5(0x124)]['call'](_0x12ecdf,_0x555dff);}async function readStdin(){const _0x2a26cf=a146_0x128dcc;let _0x168628='';process['stdin'][_0x2a26cf(0x138)](_0x2a26cf(0x18e));for await(const _0x50805a of process[_0x2a26cf(0x14e)])_0x168628+=_0x50805a;return _0x168628;}
1
+ const a146_0x4de633=a146_0x49f4;(function(_0x4fc32e,_0x18493f){const _0x6fa3e8=a146_0x49f4,_0x11717f=_0x4fc32e();while(!![]){try{const _0x301cb8=-parseInt(_0x6fa3e8(0xd5))/0x1*(-parseInt(_0x6fa3e8(0xde))/0x2)+parseInt(_0x6fa3e8(0xe7))/0x3*(-parseInt(_0x6fa3e8(0xb4))/0x4)+parseInt(_0x6fa3e8(0x106))/0x5+-parseInt(_0x6fa3e8(0xe4))/0x6*(-parseInt(_0x6fa3e8(0xfd))/0x7)+-parseInt(_0x6fa3e8(0xb6))/0x8*(-parseInt(_0x6fa3e8(0xb9))/0x9)+parseInt(_0x6fa3e8(0xf6))/0xa*(-parseInt(_0x6fa3e8(0xf3))/0xb)+-parseInt(_0x6fa3e8(0xdd))/0xc;if(_0x301cb8===_0x18493f)break;else _0x11717f['push'](_0x11717f['shift']());}catch(_0xcd9f75){_0x11717f['push'](_0x11717f['shift']());}}}(a146_0x3bf9,0x38fc4));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a146_0x4de633(0xa8),a146_0x4de633(0xea),a146_0x4de633(0x103),a146_0x4de633(0x11e)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x4de633(0xc9),'channelType',a146_0x4de633(0xcf),a146_0x4de633(0x10c),'description',a146_0x4de633(0xee),a146_0x4de633(0xa1)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x4de633(0xc4),'configCode',a146_0x4de633(0xf1)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x4de633(0xbf),a146_0x4de633(0x10b),a146_0x4de633(0xd2),a146_0x4de633(0x11d),a146_0x4de633(0x117),a146_0x4de633(0xc2),a146_0x4de633(0xc3),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x4de633(0xf0),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xa6)},{'name':'stdin','type':a146_0x4de633(0xef),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a146_0x4de633(0xf2),'type':a146_0x4de633(0xa7),'required':![],'description':a146_0x4de633(0xfb)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x4de633(0x121),'required':!![],'description':a146_0x4de633(0xb8)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x4586d0,_0xd7726a,_0x4d7935){return new CliError(_0x4586d0,0x1,_0xd7726a,_0x4d7935);}export function readNotificationId(_0x40faf6){const _0x303bc2=a146_0x4de633,_0x3e227a=_0x40faf6['num']('id');if(!Number[_0x303bc2(0xc6)](_0x3e227a)||_0x3e227a<=0x0)throw notificationError('notification_config_id_invalid',_0x303bc2(0x122));return _0x3e227a;}export function requireNotificationExplicitYes(_0x2bf1f4){const _0x11c354=a146_0x4de633;if(_0x2bf1f4['bool'](_0x11c354(0xeb))||_0x2bf1f4[_0x11c354(0xa3)](_0x11c354(0xba)))return;throw notificationError(_0x11c354(0xaf),_0x11c354(0xff),_0x11c354(0xf7));}export function readNotificationChannelType(_0x28a97c,_0x212820=a146_0x4de633(0xe9),_0x3c8f51=a146_0x4de633(0x102)){const _0x153368=a146_0x4de633,_0x162564=_0x28a97c[_0x153368(0xbe)](_0x212820)[_0x153368(0x114)]()||_0x3c8f51;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x162564))throw CliErrors[_0x153368(0xe1)]('Invalid\x20--'+_0x212820+':\x20'+_0x162564,_0x153368(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x153368(0xac)](',\x20')+'.');return _0x162564;}function a146_0x3bf9(){const _0x13a714=['stdin','configCode','24CLPOGm','environment\x20variable\x20','type','DINGTALK','dry-run','\x22channelType\x22.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','connectTimeout','boolean','file','channelCode','from-env','827662uxseQj','Unknown\x20notification\x20JSON\x20field\x20\x22','keys','40hGYitU','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','<redacted>','endpointUrl:null','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','parse','791ICGSDk','\x22\x20must\x20be\x20a\x20non-empty\x20string.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','entries','isArray','EMAIL','WECOM','Invalid\x20notification\x20config\x20response.','update','1898405SdvrUQ','\x22\x20cannot\x20exceed\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','Notification\x20config\x20list\x20item\x20','notification_config_field_unknown','recipients','channelConfig','hasOwnProperty','notification_config_field_invalid','notification_config_field_required','Notification\x20JSON\x20from\x20','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','notification_config_channel_field_forbidden','create','trim','updateTime','utf8','replyTo','preflight','includes','channelType','\x20has\x20invalid\x20field\x20\x22','\x20is\x20missing\x20required\x20field\x20\x22','bccList','WEBHOOK','\x22\x20must\x20be\x20','name','number','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','every','notification_config_update_empty','rabetbase\x20notification\x20config-list\x20--appcode\x20','Allowed\x20values:\x20','messageTemplate','readTimeout','\x20has\x20an\x20unsupported\x20channelType.','bool','notification_config_source_unavailable','\x20is\x20invalid.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','string','FEISHU','length','push','endpointUrlRaw','join','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','\x20has\x20an\x20invalid\x20id.','notification_config_confirmation_required','notification_config_json_invalid','Notification\x20config\x20','\x20has\x20an\x20invalid\x20appCode.','\x20--type\x20','16800ffzlPS','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','8sPpNjF','channelConfigRaw','Application-level\x20notification\x20config\x20ID','957123xQKFaS','yes','Notification\x20JSON\x20field\x20\x22','Missing\x20notification\x20JSON\x20source.','apiError','str','emailTargets','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','path','subjectPrefix','fromName','appCode','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','isSafeInteger','prototype','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','configName','some','_unavailable','\x20characters.','has','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','endpointUrl','a\x20string\x20or\x20null','description','ccList','\x20must\x20be\x20an\x20object.','object','22wsrjEp','kind','a\x20non-empty\x20string','notification_config_field_forbidden','a\x20JSON\x20object','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','env','stringify','2639652uHkZal','14884IaCWvf','\x22\x20is\x20forbidden.','notification_config_response_invalid','validation','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Create\x20JSON\x20requires\x20field\x20','7338dqbqoZ'];a146_0x3bf9=function(){return _0x13a714;};return a146_0x3bf9();}export function assertSingleNotificationSource(_0x138bc6){const _0x2da31d=a146_0x4de633,_0x362df7=[],_0xa76a7a=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf0))[_0x2da31d(0x114)]();if(_0xa76a7a)_0x362df7[_0x2da31d(0xaa)]({'kind':_0x2da31d(0xf0),'path':_0xa76a7a});if(_0x138bc6[_0x2da31d(0xa3)]('stdin'))_0x362df7['push']({'kind':_0x2da31d(0xe5)});const _0x5a8fb6=_0x138bc6[_0x2da31d(0xbe)](_0x2da31d(0xf2))[_0x2da31d(0x114)]();if(_0x5a8fb6)_0x362df7['push']({'kind':_0x2da31d(0xdb),'name':_0x5a8fb6});if(_0x362df7['length']===0x0)throw CliErrors['validation'](_0x2da31d(0xbc),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x362df7[_0x2da31d(0xa9)]>0x1)throw CliErrors[_0x2da31d(0xe1)](_0x2da31d(0x108),_0x2da31d(0xc0));return _0x362df7[0x0];}function a146_0x49f4(_0x286a16,_0xe62a5b){_0x286a16=_0x286a16-0x9f;const _0x3bf9a6=a146_0x3bf9();let _0x49f479=_0x3bf9a6[_0x286a16];return _0x49f479;}export async function readNotificationDocument(_0x3f5981,_0x58d762){const _0x5028e3=a146_0x4de633,_0x272e8d=assertSingleNotificationSource(_0x3f5981),_0x1b0d9d=_0x272e8d['kind']===_0x5028e3(0xf0)?'file\x20'+_0x272e8d[_0x5028e3(0xc1)]:_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)?_0x5028e3(0xe8)+_0x272e8d['name']:_0x5028e3(0xe5);let _0x606655;try{if(_0x272e8d['kind']===_0x5028e3(0xf0))_0x606655=await readFile(_0x272e8d[_0x5028e3(0xc1)],'utf8');else{if(_0x272e8d[_0x5028e3(0xd6)]===_0x5028e3(0xdb)){if(!(_0x272e8d[_0x5028e3(0x120)]in process.env))throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xf8)+_0x272e8d[_0x5028e3(0x120)]);_0x606655=process.env[_0x272e8d.name]??'';}else _0x606655=await readStdin();}}catch(_0x5e6707){if(_0x5e6707 instanceof CliError)throw _0x5e6707;throw notificationError(_0x5028e3(0xa4),_0x5028e3(0xce)+_0x1b0d9d+'.');}let _0x5a6ead;try{_0x5a6ead=JSON[_0x5028e3(0xfc)](_0x606655);}catch{throw notificationError(_0x5028e3(0xb0),'Notification\x20JSON\x20from\x20'+_0x1b0d9d+_0x5028e3(0xa5),_0x5028e3(0xda));}if(!isJsonObject(_0x5a6ead))throw notificationError(_0x5028e3(0xb0),_0x5028e3(0x110)+_0x1b0d9d+_0x5028e3(0xd3));return validateNotificationDocument(_0x5a6ead,_0x58d762);}export function projectNotificationListConfig(_0x15c05b,_0x2490f2){const _0x3b2f9c=a146_0x4de633;return{'id':typeof _0x15c05b['id']===_0x3b2f9c(0x121)?_0x15c05b['id']:null,'configCode':requireResponseString(_0x15c05b[_0x3b2f9c(0xe6)],_0x3b2f9c(0xe6),_0x2490f2),'configName':requireResponseString(_0x15c05b['configName'],'configName',_0x2490f2),'channelType':requireResponseString(_0x15c05b['channelType'],'channelType',_0x2490f2),'description':normalizeNullableString(_0x15c05b[_0x3b2f9c(0xd1)]),'createTime':normalizeNullableString(_0x15c05b['createTime']),'updateTime':normalizeNullableString(_0x15c05b[_0x3b2f9c(0x115)])};}export function normalizeExactNotificationConfig(_0x3ba245,_0x484a96,_0x47b045){const _0x51de37=a146_0x4de633;if(!Number['isSafeInteger'](_0x3ba245['id'])||_0x3ba245['id']!==_0x484a96)throw notificationError('notification_config_response_invalid',_0x51de37(0x111)+_0x484a96+'.');if(_0x3ba245[_0x51de37(0xc4)]!==_0x47b045)throw notificationError('notification_config_response_invalid',_0x51de37(0xb1)+_0x484a96+_0x51de37(0xc8));const _0x1c910f=requireExactString(_0x3ba245[_0x51de37(0xc9)],_0x51de37(0xc9),_0x484a96),_0x3e0227=requireExactString(_0x3ba245[_0x51de37(0xe6)],_0x51de37(0xe6),_0x484a96),_0x3b8f7b=requireExactString(_0x3ba245[_0x51de37(0x11a)],_0x51de37(0x11a),_0x484a96);if(!NOTIFICATION_CHANNEL_TYPES[_0x51de37(0x119)](_0x3b8f7b))throw notificationError(_0x51de37(0xe0),_0x51de37(0xb1)+_0x484a96+_0x51de37(0xa2));const _0x1487f9=responseNullableString(_0x3ba245['endpointUrl'],_0x51de37(0xcf),_0x484a96),_0x24bed2=responseNullableString(_0x3ba245[_0x51de37(0x10c)],_0x51de37(0x10c),_0x484a96),_0x2b2b1f=responseNullableString(_0x3ba245['description'],_0x51de37(0xd1),_0x484a96),_0x2b8dd3=responseNullableTimeout(_0x3ba245[_0x51de37(0xee)],'connectTimeout',_0x484a96),_0x39aacb=responseNullableTimeout(_0x3ba245[_0x51de37(0xa1)],_0x51de37(0xa1),_0x484a96);return{'id':_0x484a96,'appCode':_0x47b045,'configCode':_0x3e0227,'configName':_0x1c910f,'channelType':_0x3b8f7b,'endpointUrl':redactSensitive(_0x1487f9),'channelConfig':redactSensitive(_0x24bed2),'description':_0x2b2b1f,'connectTimeout':_0x2b8dd3,'readTimeout':_0x39aacb,'endpointUrlRaw':_0x1487f9,'channelConfigRaw':_0x24bed2};}export async function requireExactNotificationConfig(_0x4b6cdc,_0x2882c0,_0x3065be){const _0x3ad2c0=a146_0x4de633;let _0x1e1c7c;try{_0x1e1c7c=await getNotificationChannelConfig(_0x2882c0,_0x4b6cdc);}catch{throw safeApiFailure(_0x3065be,_0x3ad2c0(0x118),_0x3ad2c0(0xc5)+_0x4b6cdc+'\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.');}return normalizeExactNotificationConfig(_0x1e1c7c,_0x2882c0,_0x4b6cdc);}export function projectNotificationConfig(_0x10f180){const _0xfe4f52=a146_0x4de633;return{'id':_0x10f180['id']??null,'appCode':_0x10f180[_0xfe4f52(0xc4)],'configCode':_0x10f180['configCode']??null,'configName':_0x10f180[_0xfe4f52(0xc9)],'channelType':_0x10f180[_0xfe4f52(0x11a)],'endpointUrl':redactSensitive(_0x10f180[_0xfe4f52(0xcf)]),'channelConfig':redactSensitive(_0x10f180['channelConfig']),'description':_0x10f180[_0xfe4f52(0xd1)]??null,'connectTimeout':_0x10f180[_0xfe4f52(0xee)]??null,'readTimeout':_0x10f180['readTimeout']??null};}export function notificationSelector(_0x1fad25){const _0x78b6f5=a146_0x4de633;return{'appCode':_0x1fad25['appCode'],'id':_0x1fad25['id'],'configCode':_0x1fad25['configCode'],'configName':_0x1fad25[_0x78b6f5(0xc9)],'channelType':_0x1fad25[_0x78b6f5(0x11a)]};}export function createMutationInput(_0x42f816,_0x4474d5){const _0x2fec16=a146_0x4de633;return{'appCode':_0x42f816,'configName':_0x4474d5['configName'],'channelType':_0x4474d5[_0x2fec16(0x11a)],...hasOwn(_0x4474d5,_0x2fec16(0xcf))?{'endpointUrl':_0x4474d5[_0x2fec16(0xcf)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0x10c))?{'channelConfig':serializeChannelConfig(_0x4474d5['channelConfig'])}:{},...hasOwn(_0x4474d5,'description')?{'description':_0x4474d5[_0x2fec16(0xd1)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xee))?{'connectTimeout':_0x4474d5[_0x2fec16(0xee)]}:{},...hasOwn(_0x4474d5,_0x2fec16(0xa1))?{'readTimeout':_0x4474d5['readTimeout']}:{}};}export function mergeUpdateInput(_0xa0f6e3,_0x2b0c6e){const _0x4408fd=a146_0x4de633;return{'id':_0xa0f6e3['id'],'appCode':_0xa0f6e3[_0x4408fd(0xc4)],'configName':_0x2b0c6e[_0x4408fd(0xc9)]??_0xa0f6e3[_0x4408fd(0xc9)],'channelType':_0x2b0c6e[_0x4408fd(0x11a)]??_0xa0f6e3[_0x4408fd(0x11a)],'endpointUrl':hasOwn(_0x2b0c6e,_0x4408fd(0xcf))?_0x2b0c6e[_0x4408fd(0xcf)]:_0xa0f6e3[_0x4408fd(0xab)],'channelConfig':hasOwn(_0x2b0c6e,'channelConfig')?serializeChannelConfig(_0x2b0c6e['channelConfig']):_0xa0f6e3[_0x4408fd(0xb7)],'description':hasOwn(_0x2b0c6e,_0x4408fd(0xd1))?_0x2b0c6e[_0x4408fd(0xd1)]:_0xa0f6e3['description'],'connectTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xee))?_0x2b0c6e[_0x4408fd(0xee)]:_0xa0f6e3[_0x4408fd(0xee)],'readTimeout':hasOwn(_0x2b0c6e,_0x4408fd(0xa1))?_0x2b0c6e[_0x4408fd(0xa1)]:_0xa0f6e3[_0x4408fd(0xa1)]};}export function plannedUpdateProjection(_0x5339f0,_0x5d5d9c){const _0x4de016=a146_0x4de633;return projectNotificationConfig({'id':_0x5339f0['id'],'appCode':_0x5339f0[_0x4de016(0xc4)],'configCode':_0x5339f0[_0x4de016(0xe6)],'configName':_0x5d5d9c['configName']??_0x5339f0['configName'],'channelType':_0x5d5d9c[_0x4de016(0x11a)]??_0x5339f0[_0x4de016(0x11a)],'endpointUrl':hasOwn(_0x5d5d9c,_0x4de016(0xcf))?_0x5d5d9c['endpointUrl']:_0x5339f0[_0x4de016(0xab)],'channelConfig':hasOwn(_0x5d5d9c,'channelConfig')?_0x5d5d9c[_0x4de016(0x10c)]:_0x5339f0[_0x4de016(0xb7)],'description':hasOwn(_0x5d5d9c,_0x4de016(0xd1))?_0x5d5d9c[_0x4de016(0xd1)]:_0x5339f0[_0x4de016(0xd1)],'connectTimeout':hasOwn(_0x5d5d9c,'connectTimeout')?_0x5d5d9c[_0x4de016(0xee)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x5339f0[_0x4de016(0xee)],'readTimeout':hasOwn(_0x5d5d9c,_0x4de016(0xa1))?_0x5d5d9c[_0x4de016(0xa1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x5339f0[_0x4de016(0xa1)]});}export function requestedSafeFieldsMatch(_0xfce139,_0x4327b6,_0x52eeec){const _0xaf7776=a146_0x4de633,_0x294d92=[],_0x2147e0=[],_0xae386=[];for(const _0x2b5420 of[_0xaf7776(0xc9),'channelType',_0xaf7776(0xd1)]){if(!hasOwn(_0x52eeec,_0x2b5420))continue;_0xae386[_0xaf7776(0xaa)](_0x2b5420),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]),_0x2147e0[_0xaf7776(0xaa)](_0xfce139[_0x2b5420]!==_0x52eeec[_0x2b5420]&&_0x4327b6[_0x2b5420]===_0x52eeec[_0x2b5420]);}for(const _0x230081 of[_0xaf7776(0xee),_0xaf7776(0xa1)]){if(!hasOwn(_0x52eeec,_0x230081))continue;const _0x5af703=_0x52eeec[_0x230081]??(_0x230081===_0xaf7776(0xee)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0xae386[_0xaf7776(0xaa)](_0x230081),_0x294d92[_0xaf7776(0xaa)](_0x4327b6[_0x230081]===_0x5af703),_0x2147e0['push'](_0xfce139[_0x230081]!==_0x5af703&&_0x4327b6[_0x230081]===_0x5af703);}return hasOwn(_0x52eeec,'endpointUrl')&&_0x52eeec['endpointUrl']===null&&(_0xae386[_0xaf7776(0xaa)](_0xaf7776(0xfa)),_0x294d92[_0xaf7776(0xaa)](_0x4327b6['endpointUrlRaw']===null||_0x4327b6[_0xaf7776(0xab)]===''),_0x2147e0['push'](_0xfce139[_0xaf7776(0xab)]!==null&&_0xfce139[_0xaf7776(0xab)]!==''&&(_0x4327b6[_0xaf7776(0xab)]===null||_0x4327b6[_0xaf7776(0xab)]===''))),{'allMatch':_0x294d92[_0xaf7776(0x123)](Boolean),'provesChange':_0x2147e0[_0xaf7776(0xca)](Boolean),'verifiedFields':_0xae386};}export function validateNotificationDeleteReadback(_0x2d4037,_0x3511f2,_0xf8f690){const _0x2efe2c=a146_0x4de633;for(const [_0x40d6a6,_0x48e47b]of _0x2d4037[_0x2efe2c(0x100)]()){if(!Number[_0x2efe2c(0xc6)](_0x48e47b['id'])||_0x48e47b['id']<=0x0)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xae));if(_0x48e47b[_0x2efe2c(0xc4)]!==_0x3511f2)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+_0x2efe2c(0xb2));if(_0x48e47b[_0x2efe2c(0x11a)]!==_0xf8f690)throw notificationError(_0x2efe2c(0xe0),_0x2efe2c(0x109)+(_0x40d6a6+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x2252a1,_0x503490,_0x1bb407){const _0x3345d5=a146_0x4de633;return notificationError('notification_config_'+_0x2252a1+'_'+(_0x503490==='mutation'?'failed':_0x503490+_0x3345d5(0xcb)),_0x3345d5(0xb1)+_0x2252a1+'\x20'+_0x503490+'\x20failed.',_0x1bb407);}export function notificationLookupCommand(_0x3d0239,_0x58577b){const _0x517b00=a146_0x4de633;return _0x517b00(0x125)+_0x3d0239+_0x517b00(0xb3)+_0x58577b+'\x20--format\x20compress';}function validateNotificationDocument(_0x297825,_0x45bde7){const _0x34a775=a146_0x4de633;for(const _0x2accfb of Object['keys'](_0x297825)){if(FORBIDDEN_IDENTITY_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0xd8),_0x34a775(0xbb)+_0x2accfb+_0x34a775(0xb5));if(!ALLOWED_INPUT_FIELDS[_0x34a775(0xcd)](_0x2accfb))throw notificationError(_0x34a775(0x10a),_0x34a775(0xf4)+_0x2accfb+'\x22.');}if(_0x45bde7===_0x34a775(0x105)&&Object[_0x34a775(0xf5)](_0x297825)[_0x34a775(0xa9)]===0x0)throw notificationError(_0x34a775(0x124),_0x34a775(0xad));const _0x158823={};if(hasOwn(_0x297825,_0x34a775(0xc9)))_0x158823[_0x34a775(0xc9)]=validateRequiredString(_0x297825['configName'],_0x34a775(0xc9),0x80);else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),_0x34a775(0xe3)+'\x22configName\x22.');}if(hasOwn(_0x297825,_0x34a775(0x11a))){if(typeof _0x297825[_0x34a775(0x11a)]!=='string')throw invalidFieldType(_0x34a775(0x11a),'a\x20supported\x20string');const _0x475be8=_0x297825['channelType']['trim']();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x475be8))throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x34a775(0x9f)+NOTIFICATION_CHANNEL_TYPES[_0x34a775(0xac)](',\x20')+'.');_0x158823[_0x34a775(0x11a)]=_0x475be8;}else{if(_0x45bde7===_0x34a775(0x113))throw notificationError(_0x34a775(0x10f),'Create\x20JSON\x20requires\x20field\x20'+_0x34a775(0xec));}for(const [_0x5c61db,_0x2eb546]of[[_0x34a775(0xcf),0x200],[_0x34a775(0xd1),0x100]]){if(!hasOwn(_0x297825,_0x5c61db))continue;const _0x2d4cbb=_0x297825[_0x5c61db];if(_0x2d4cbb!==null&&typeof _0x2d4cbb!=='string')throw invalidFieldType(_0x5c61db,_0x34a775(0xd0));if(typeof _0x2d4cbb==='string'&&_0x2d4cbb[_0x34a775(0xa9)]>_0x2eb546)throw notificationError(_0x34a775(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x5c61db+_0x34a775(0x107)+_0x2eb546+'\x20characters.');_0x158823[_0x5c61db]=_0x2d4cbb;}if(hasOwn(_0x297825,_0x34a775(0x10c))){const _0x314055=_0x297825[_0x34a775(0x10c)];if(_0x314055===null&&_0x45bde7===_0x34a775(0x113))throw invalidFieldType('channelConfig',_0x34a775(0xd9));if(_0x314055!==null&&!isJsonObject(_0x314055))throw invalidFieldType(_0x34a775(0x10c),_0x45bde7===_0x34a775(0x105)?'a\x20JSON\x20object\x20or\x20null':_0x34a775(0xd9));_0x314055!==null&&validateChannelConfigFields(_0x158823[_0x34a775(0x11a)],_0x314055),_0x158823[_0x34a775(0x10c)]=_0x314055;}for(const _0x526370 of['connectTimeout',_0x34a775(0xa1)]){if(!hasOwn(_0x297825,_0x526370))continue;const _0x50c220=_0x297825[_0x526370];if(_0x50c220!==null&&(!Number[_0x34a775(0xc6)](_0x50c220)||_0x50c220<0x0))throw notificationError(_0x34a775(0x10e),_0x34a775(0xbb)+_0x526370+_0x34a775(0xed));_0x158823[_0x526370]=_0x50c220;}return _0x158823;}function validateRequiredString(_0x32e39d,_0x4f51fb,_0x92ed9c){const _0xc0ed33=a146_0x4de633;if(typeof _0x32e39d!==_0xc0ed33(0xa7))throw invalidFieldType(_0x4f51fb,_0xc0ed33(0xd7));const _0x281bc0=_0x32e39d[_0xc0ed33(0x114)]();if(!_0x281bc0)throw notificationError(_0xc0ed33(0x10e),_0xc0ed33(0xbb)+_0x4f51fb+_0xc0ed33(0xfe));if(_0x281bc0[_0xc0ed33(0xa9)]>_0x92ed9c)throw notificationError(_0xc0ed33(0x10e),'Notification\x20JSON\x20field\x20\x22'+_0x4f51fb+_0xc0ed33(0x107)+_0x92ed9c+_0xc0ed33(0xcc));return _0x281bc0;}function validateChannelConfigFields(_0x2b8937,_0x522701){const _0x1997fb=a146_0x4de633;if(hasOwn(_0x522701,'messageTemplate'))throw forbiddenChannelConfigField(_0x1997fb(0xa0));if(_0x2b8937==='EMAIL')for(const _0x293d70 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x522701,_0x293d70))throw forbiddenChannelConfigField(_0x293d70);}}function forbiddenChannelConfigField(_0x1cb26c){const _0x1a33f8=a146_0x4de633;return notificationError(_0x1a33f8(0x112),_0x1a33f8(0xe2)+_0x1cb26c+_0x1a33f8(0xdf));}function invalidFieldType(_0x58c79f,_0x5bd539){const _0x180288=a146_0x4de633;return notificationError('notification_config_field_invalid',_0x180288(0xbb)+_0x58c79f+_0x180288(0x11f)+_0x5bd539+'.');}function serializeChannelConfig(_0x48b07f){const _0x104f89=a146_0x4de633;return _0x48b07f===null||_0x48b07f===undefined?null:JSON[_0x104f89(0xdc)](_0x48b07f);}function redactSensitive(_0x1d666c){const _0x248775=a146_0x4de633;return _0x1d666c===null||_0x1d666c===undefined||_0x1d666c===''?null:_0x248775(0xf9);}function requireResponseString(_0x3ba707,_0x520068,_0x5478ea){const _0x4d1bb3=a146_0x4de633;if(typeof _0x3ba707!==_0x4d1bb3(0xa7)||_0x3ba707['trim']()==='')throw CliErrors[_0x4d1bb3(0xbd)](_0x4d1bb3(0x104),'Item\x20'+(_0x5478ea+0x1)+_0x4d1bb3(0x11c)+_0x520068+'\x22.');return _0x3ba707[_0x4d1bb3(0x114)]();}function requireExactString(_0xa2e31,_0x51a250,_0x1794ba){const _0x189b46=a146_0x4de633;if(typeof _0xa2e31!==_0x189b46(0xa7)||_0xa2e31[_0x189b46(0x114)]()==='')throw notificationError(_0x189b46(0xe0),'Notification\x20config\x20'+_0x1794ba+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x51a250+'\x22.');return _0xa2e31[_0x189b46(0x114)]();}function responseNullableString(_0x596458,_0x4ef08e,_0x54fefe){const _0x4da756=a146_0x4de633;if(_0x596458===undefined||_0x596458===null)return null;if(typeof _0x596458!==_0x4da756(0xa7))throw notificationError(_0x4da756(0xe0),_0x4da756(0xb1)+_0x54fefe+_0x4da756(0x11b)+_0x4ef08e+'\x22.');return _0x596458;}function responseNullableTimeout(_0x1f2621,_0xfdf4fa,_0x7666b3){const _0x231029=a146_0x4de633;if(_0x1f2621===undefined||_0x1f2621===null)return null;if(!Number[_0x231029(0xc6)](_0x1f2621)||_0x1f2621<0x0)throw notificationError(_0x231029(0xe0),'Notification\x20config\x20'+_0x7666b3+_0x231029(0x11b)+_0xfdf4fa+'\x22.');return _0x1f2621;}function normalizeNullableString(_0x2a7b67){const _0x594670=a146_0x4de633;return typeof _0x2a7b67===_0x594670(0xa7)?_0x2a7b67:null;}function isJsonObject(_0x2e5e73){const _0x3f948c=a146_0x4de633;return _0x2e5e73!==null&&typeof _0x2e5e73===_0x3f948c(0xd4)&&!Array[_0x3f948c(0x101)](_0x2e5e73);}function hasOwn(_0x3008cc,_0x397282){const _0x12aca4=a146_0x4de633;return Object[_0x12aca4(0xc7)][_0x12aca4(0x10d)]['call'](_0x3008cc,_0x397282);}async function readStdin(){const _0x1b60a4=a146_0x4de633;let _0x226f8a='';process[_0x1b60a4(0xe5)]['setEncoding'](_0x1b60a4(0x116));for await(const _0x20e60d of process[_0x1b60a4(0xe5)])_0x226f8a+=_0x20e60d;return _0x226f8a;}
@@ -1 +1 @@
1
- const a147_0x13e33d=a147_0x4277;(function(_0x14f1c2,_0x38c34b){const _0x14f7f6=a147_0x4277,_0x289bb7=_0x14f1c2();while(!![]){try{const _0x1f6de0=parseInt(_0x14f7f6(0xe8))/0x1*(parseInt(_0x14f7f6(0xed))/0x2)+-parseInt(_0x14f7f6(0x11f))/0x3*(-parseInt(_0x14f7f6(0xea))/0x4)+parseInt(_0x14f7f6(0x117))/0x5+-parseInt(_0x14f7f6(0xf6))/0x6*(-parseInt(_0x14f7f6(0x119))/0x7)+-parseInt(_0x14f7f6(0x114))/0x8*(-parseInt(_0x14f7f6(0x10c))/0x9)+parseInt(_0x14f7f6(0x109))/0xa+-parseInt(_0x14f7f6(0xf8))/0xb;if(_0x1f6de0===_0x38c34b)break;else _0x289bb7['push'](_0x289bb7['shift']());}catch(_0x12b57a){_0x289bb7['push'](_0x289bb7['shift']());}}}(a147_0x473a,0x494ba));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a147_0x13e33d(0x100),'general',a147_0x13e33d(0x10f),a147_0x13e33d(0xf0)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x13e33d(0xf9),'general':a147_0x13e33d(0x11b),'form':a147_0x13e33d(0x107),'idCard':a147_0x13e33d(0x116)},SCENE_FLAG={'name':a147_0x13e33d(0xfb),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x13e33d(0x106)},IMAGE_FILE_FLAG={'name':a147_0x13e33d(0xe7),'type':a147_0x13e33d(0xec),'description':a147_0x13e33d(0x101)},IMAGE_URL_FLAG={'name':a147_0x13e33d(0xfd),'type':a147_0x13e33d(0xec),'description':a147_0x13e33d(0xf7)};function normalizeScene(_0x6f03fa){const _0x19ee23=a147_0x13e33d,_0x3000d1=_0x6f03fa[_0x19ee23(0x104)]()['toLowerCase']();if(_0x3000d1===_0x19ee23(0x111))return _0x19ee23(0xf0);if(_0x3000d1==='invoice'||_0x3000d1==='general'||_0x3000d1===_0x19ee23(0x10f))return _0x3000d1;throw CliErrors[_0x19ee23(0xf4)](_0x19ee23(0xef)+_0x6f03fa+_0x19ee23(0x110)+SUPPORTED_SCENES[_0x19ee23(0xeb)](',\x20'));}function a147_0x473a(){const _0x4c39d7=['Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','File\x20URL\x20response\x20missing\x20fileUrl.','image-file','323mpGBOl','toString','8OELXCV','join','string','1658gkAPBV','str','Unsupported\x20OCR\x20scene:\x20','idCard','appCode','fileName','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','validation','fileUrl','13938PrGaNr','Publicly\x20accessible\x20image\x20or\x20file\x20URL','9256060qZENrz','Invoice','/smartapi/common/uploadFile','scene','path','image-url','apiError','filePath','invoice','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','/smartapi/ocr/recognize-text','trim','imageUrl','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Table','/smartapi/common/queryFileUrl','3640Fjmlzc','\x20OCR','GET','1188ncUxjp','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','recognize','form','.\x20Supported\x20scenes:\x20','idcard','/smartapi/ocr/recognize-text?','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','9672uvEwDk','imageFile','IdCard','559860viTzde','ocr','1337haNqCV','\x20OCR\x20from\x20URL','General','length','POST','File\x20upload\x20response\x20missing\x20filePath.','237441lqBLdl'];a147_0x473a=function(){return _0x4c39d7;};return a147_0x473a();}function a147_0x4277(_0x271ef0,_0x173919){_0x271ef0=_0x271ef0-0xe6;const _0x473a16=a147_0x473a();let _0x427799=_0x473a16[_0x271ef0];return _0x427799;}function selectedInputs(_0x5c8d89){const _0x25941a=a147_0x13e33d,_0x514704=_0x5c8d89[_0x25941a(0xee)](_0x25941a(0xe7))['trim'](),_0x41f5cf=_0x5c8d89['str']('image-url')['trim']();return{'imageFile':_0x514704,'imageUrl':_0x41f5cf,'count':[_0x514704,_0x41f5cf]['filter'](Boolean)[_0x25941a(0x11c)]};}function validateInputSelection(_0x3c5607){const _0x3bab89=a147_0x13e33d,_0x17c001=selectedInputs(_0x3c5607);if(_0x17c001['count']!==0x1)throw CliErrors[_0x3bab89(0xf4)](_0x3bab89(0x120));return _0x17c001;}function withScene(_0x295853,_0x4fd8fe,_0x558836){const _0x415e20=a147_0x13e33d;return{..._0x295853,'scene':_0x4fd8fe,..._0x558836?{'sourceFile':{'fileName':_0x558836[_0x415e20(0xf2)],'filePath':_0x558836[_0x415e20(0xff)]}}:{}};}const ocrRecognize={'service':a147_0x13e33d(0x118),'command':a147_0x13e33d(0x10e),'description':a147_0x13e33d(0x113),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3a0c5b){const _0x364bf8=a147_0x13e33d,_0x4212e3=normalizeScene(_0x3a0c5b[_0x364bf8(0xee)](_0x364bf8(0xfb))),_0x474bef=SCENE_TO_LEGACY_TYPE[_0x4212e3],_0x964fa7=validateInputSelection(_0x3a0c5b);if(_0x964fa7['imageUrl']){const _0xceb2e1=new URLSearchParams({'url':_0x964fa7[_0x364bf8(0x105)],'type':_0x474bef,'appCode':_0x3a0c5b[_0x364bf8(0xf1)]});return{'method':_0x364bf8(0x10b),'url':_0x364bf8(0x112)+_0xceb2e1[_0x364bf8(0xe9)](),'description':'Preview:\x20recognize\x20'+_0x4212e3+_0x364bf8(0x11a)};}const _0x43152d=requireDevelopmentUploadFile(_0x964fa7[_0x364bf8(0x115)],_0x364bf8(0xe7));return{'method':_0x364bf8(0x11d),'url':_0x364bf8(0xfa),'body':{'steps':[{'method':_0x364bf8(0x11d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x3a0c5b[_0x364bf8(0xf1)],'multipart':{'file':_0x43152d}}},{'method':_0x364bf8(0x11d),'url':_0x364bf8(0x108),'body':{'filePath':_0x364bf8(0xf3),'downloadFlag':![]}},{'method':_0x364bf8(0x10b),'url':_0x364bf8(0x103),'query':{'appCode':_0x3a0c5b['appCode'],'url':_0x364bf8(0x102),'type':_0x474bef}}]},'description':_0x364bf8(0x10d)+_0x4212e3+_0x364bf8(0x10a)};},async 'execute'(_0x44ccdc){const _0x10188b=a147_0x13e33d,_0xd84253=normalizeScene(_0x44ccdc[_0x10188b(0xee)](_0x10188b(0xfb))),_0x239e74=SCENE_TO_LEGACY_TYPE[_0xd84253],_0x3a2701=validateInputSelection(_0x44ccdc);if(_0x3a2701['imageUrl']){const _0x4e0d42=await recognizeDevelopmentOcr(_0x44ccdc[_0x10188b(0xf1)],{'url':_0x3a2701['imageUrl'],'type':_0x239e74});return{'ok':!![],'data':withScene(_0x4e0d42,_0xd84253)};}const _0x36f6bc=requireDevelopmentUploadFile(_0x3a2701['imageFile'],_0x10188b(0xe7)),_0x153178=await uploadDevelopmentFile(_0x44ccdc[_0x10188b(0xf1)],_0x36f6bc[_0x10188b(0xfc)]);if(!_0x153178[_0x10188b(0xff)])throw CliErrors[_0x10188b(0xfe)](_0x10188b(0x11e));const _0x123609=await queryDevelopmentFileUrl(_0x153178[_0x10188b(0xff)],{'download':![]});if(!_0x123609[_0x10188b(0xf5)])throw CliErrors[_0x10188b(0xfe)](_0x10188b(0xe6));const _0x40eb9f=await recognizeDevelopmentOcr(_0x44ccdc[_0x10188b(0xf1)],{'url':_0x123609[_0x10188b(0xf5)],'type':_0x239e74});return{'ok':!![],'data':withScene(_0x40eb9f,_0xd84253,_0x153178)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a147_0x180acd=a147_0x21d8;(function(_0x4c5768,_0x1d7680){const _0x256f33=a147_0x21d8,_0x15d5a4=_0x4c5768();while(!![]){try{const _0xa90fd=-parseInt(_0x256f33(0x14e))/0x1*(-parseInt(_0x256f33(0x160))/0x2)+parseInt(_0x256f33(0x15a))/0x3*(parseInt(_0x256f33(0x165))/0x4)+-parseInt(_0x256f33(0x15f))/0x5*(-parseInt(_0x256f33(0x16a))/0x6)+parseInt(_0x256f33(0x156))/0x7+-parseInt(_0x256f33(0x142))/0x8*(-parseInt(_0x256f33(0x157))/0x9)+-parseInt(_0x256f33(0x150))/0xa+-parseInt(_0x256f33(0x14b))/0xb;if(_0xa90fd===_0x1d7680)break;else _0x15d5a4['push'](_0x15d5a4['shift']());}catch(_0x5ba4dd){_0x15d5a4['push'](_0x15d5a4['shift']());}}}(a147_0x2600,0x1c166));function a147_0x21d8(_0x98c236,_0x11e45e){_0x98c236=_0x98c236-0x13f;const _0x2600f8=a147_0x2600();let _0x21d89c=_0x2600f8[_0x98c236];return _0x21d89c;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a147_0x180acd(0x147),a147_0x180acd(0x171),a147_0x180acd(0x15b),a147_0x180acd(0x162)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x180acd(0x161),'general':a147_0x180acd(0x151),'form':a147_0x180acd(0x144),'idCard':a147_0x180acd(0x16e)},SCENE_FLAG={'name':a147_0x180acd(0x14d),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':'image-file','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x166)},IMAGE_URL_FLAG={'name':'image-url','type':a147_0x180acd(0x152),'description':a147_0x180acd(0x148)};function normalizeScene(_0x56fd3f){const _0xbf0a6a=a147_0x180acd,_0x27541b=_0x56fd3f[_0xbf0a6a(0x158)]()[_0xbf0a6a(0x159)]();if(_0x27541b==='idcard')return _0xbf0a6a(0x162);if(_0x27541b===_0xbf0a6a(0x147)||_0x27541b===_0xbf0a6a(0x171)||_0x27541b==='form')return _0x27541b;throw CliErrors['validation'](_0xbf0a6a(0x163)+_0x56fd3f+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0xbf0a6a(0x146)](',\x20'));}function selectedInputs(_0x354b95){const _0x33bf7d=a147_0x180acd,_0x5bed83=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x176))[_0x33bf7d(0x158)](),_0x3c1c31=_0x354b95[_0x33bf7d(0x170)](_0x33bf7d(0x168))[_0x33bf7d(0x158)]();return{'imageFile':_0x5bed83,'imageUrl':_0x3c1c31,'count':[_0x5bed83,_0x3c1c31]['filter'](Boolean)[_0x33bf7d(0x141)]};}function validateInputSelection(_0xa92c11){const _0x2c1bcc=a147_0x180acd,_0x46d62d=selectedInputs(_0xa92c11);if(_0x46d62d[_0x2c1bcc(0x16b)]!==0x1)throw CliErrors['validation'](_0x2c1bcc(0x16f));return _0x46d62d;}function withScene(_0x2ef9c6,_0x167a86,_0x59ffa1){const _0x315ed9=a147_0x180acd;return{..._0x2ef9c6,'scene':_0x167a86,..._0x59ffa1?{'sourceFile':{'fileName':_0x59ffa1[_0x315ed9(0x155)],'filePath':_0x59ffa1[_0x315ed9(0x169)]}}:{}};}const ocrRecognize={'service':a147_0x180acd(0x15e),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a147_0x180acd(0x175),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x48bfee){const _0xd61e79=a147_0x180acd,_0x1f77b2=normalizeScene(_0x48bfee[_0xd61e79(0x170)](_0xd61e79(0x14d))),_0x3cd50a=SCENE_TO_LEGACY_TYPE[_0x1f77b2],_0x19fb78=validateInputSelection(_0x48bfee);if(_0x19fb78[_0xd61e79(0x153)]){const _0xfe3a07=new URLSearchParams({'url':_0x19fb78['imageUrl'],'type':_0x3cd50a,'appCode':_0x48bfee[_0xd61e79(0x140)]});return{'method':_0xd61e79(0x164),'url':_0xd61e79(0x15d)+_0xfe3a07[_0xd61e79(0x16c)](),'description':'Preview:\x20recognize\x20'+_0x1f77b2+'\x20OCR\x20from\x20URL'};}const _0x2e5db3=requireDevelopmentUploadFile(_0x19fb78[_0xd61e79(0x174)],_0xd61e79(0x176));return{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x154),'body':{'steps':[{'method':_0xd61e79(0x16d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x48bfee[_0xd61e79(0x140)],'multipart':{'file':_0x2e5db3}}},{'method':_0xd61e79(0x16d),'url':_0xd61e79(0x172),'body':{'filePath':_0xd61e79(0x143),'downloadFlag':![]}},{'method':_0xd61e79(0x164),'url':_0xd61e79(0x167),'query':{'appCode':_0x48bfee[_0xd61e79(0x140)],'url':_0xd61e79(0x173),'type':_0x3cd50a}}]},'description':_0xd61e79(0x15c)+_0x1f77b2+_0xd61e79(0x149)};},async 'execute'(_0x4520bc){const _0x30b1af=a147_0x180acd,_0x3b0130=normalizeScene(_0x4520bc[_0x30b1af(0x170)](_0x30b1af(0x14d))),_0x48c6d1=SCENE_TO_LEGACY_TYPE[_0x3b0130],_0x6f3e4=validateInputSelection(_0x4520bc);if(_0x6f3e4[_0x30b1af(0x153)]){const _0x1d6734=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x6f3e4[_0x30b1af(0x153)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x1d6734,_0x3b0130)};}const _0x4abbe2=requireDevelopmentUploadFile(_0x6f3e4['imageFile'],_0x30b1af(0x176)),_0x455f1d=await uploadDevelopmentFile(_0x4520bc['appCode'],_0x4abbe2[_0x30b1af(0x14a)]);if(!_0x455f1d[_0x30b1af(0x169)])throw CliErrors['apiError'](_0x30b1af(0x13f));const _0x3070fd=await queryDevelopmentFileUrl(_0x455f1d[_0x30b1af(0x169)],{'download':![]});if(!_0x3070fd[_0x30b1af(0x14f)])throw CliErrors[_0x30b1af(0x145)](_0x30b1af(0x14c));const _0x4c774e=await recognizeDevelopmentOcr(_0x4520bc['appCode'],{'url':_0x3070fd[_0x30b1af(0x14f)],'type':_0x48c6d1});return{'ok':!![],'data':withScene(_0x4c774e,_0x3b0130,_0x455f1d)};}};export const ocrDefinitions=[ocrRecognize];function a147_0x2600(){const _0x14b1fe=['filePath','12LqRiWG','count','toString','POST','IdCard','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','str','general','/smartapi/common/queryFileUrl','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','imageFile','read','image-file','File\x20upload\x20response\x20missing\x20filePath.','appCode','length','1102328kIeXsF','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Table','apiError','join','invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','\x20OCR','path','3516007UaWxeE','File\x20URL\x20response\x20missing\x20fileUrl.','scene','49ryQKES','fileUrl','2174090bBDDGD','General','string','imageUrl','/smartapi/common/uploadFile','fileName','1035930GbnHNT','9vsAVqB','trim','toLowerCase','27DSJfLn','form','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','/smartapi/ocr/recognize-text?','ocr','263185nGyyBH','7034VTNZsB','Invoice','idCard','Unsupported\x20OCR\x20scene:\x20','GET','39424TacXpV','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/smartapi/ocr/recognize-text','image-url'];a147_0x2600=function(){return _0x14b1fe;};return a147_0x2600();}
@@ -1 +1 @@
1
- const a148_0x310024=a148_0x4cc9;(function(_0x412532,_0x5620cf){const _0x512a60=a148_0x4cc9,_0x5c73ce=_0x412532();while(!![]){try{const _0x255ef2=parseInt(_0x512a60(0x1eb))/0x1+parseInt(_0x512a60(0x1d0))/0x2*(-parseInt(_0x512a60(0x1d1))/0x3)+parseInt(_0x512a60(0x1f0))/0x4+-parseInt(_0x512a60(0x1e3))/0x5+-parseInt(_0x512a60(0x200))/0x6*(-parseInt(_0x512a60(0x1e0))/0x7)+-parseInt(_0x512a60(0x1d5))/0x8+parseInt(_0x512a60(0x20b))/0x9*(-parseInt(_0x512a60(0x1ef))/0xa);if(_0x255ef2===_0x5620cf)break;else _0x5c73ce['push'](_0x5c73ce['shift']());}catch(_0x4e545){_0x5c73ce['push'](_0x5c73ce['shift']());}}}(a148_0x1115,0x8115c));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a148_0x4cc9(_0x9c2f63,_0x1f9f70){_0x9c2f63=_0x9c2f63-0x1d0;const _0x1115d6=a148_0x1115();let _0x4cc94b=_0x1115d6[_0x9c2f63];return _0x4cc94b;}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';function a148_0x1115(){const _0xf0f116=['213040tjOAGE','18QngOMa','keys','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','CUSTOM','3079120JDIUFq','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isInteger','version','string','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','createMenu','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','page-type','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','75859UhGyqx','appCode','Would\x20create\x20Custom\x20Page\x20','575075ysHQcy','pagePattern','page-content','length','page','stringify','str','pageName\x20cannot\x20exceed\x20100\x20characters.','943804lnltDB','POST','Custom_page_','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','6123190ajjVeP','2007292cjXlXf','files','pageId','create','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','validation','name','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','pageName','parentMenuId','menuPath','menuId','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','langs','page\x20create\x20does\x20not\x20accept\x20--page-type.','462zlxLjF','warnings','parent-menu-id','input','zh-CN','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','now','trim','/smartapi/webcode/page/create','BLANK','page-pattern','9uReanw','\x20and\x20its\x20menu\x20entry.'];a148_0x1115=function(){return _0xf0f116;};return a148_0x1115();}const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a148_0x310024(0x204),'en-US'];export const pageCreate={'service':a148_0x310024(0x1e7),'command':a148_0x310024(0x1f3),'description':a148_0x310024(0x1db),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x310024(0x1de),'message':a148_0x310024(0x1ff),'hint':a148_0x310024(0x205)}],'flags':[{'name':a148_0x310024(0x1f6),'type':'string','description':a148_0x310024(0x1d6)},{'name':'parent-menu-id','type':'number','description':a148_0x310024(0x1f4)},{'name':'page-pattern','type':a148_0x310024(0x1d9),'description':a148_0x310024(0x1f8),'enum':[a148_0x310024(0x209)]},{'name':a148_0x310024(0x1e5),'type':'string','description':a148_0x310024(0x1da)},APPCODE_FLAG],async 'validate'(_0x442a7d){const _0x82eace=a148_0x310024,_0x276905=readPagePattern(_0x442a7d);await validateCustomPageContent(readInput(_0x442a7d,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x276905)[_0x82eace(0x1f1)]);},async 'dryRun'(_0xfefc92){const _0x1c69e8=a148_0x310024,{input:_0xe36efd}=await prepare(_0xfefc92);return{'method':_0x1c69e8(0x1ec),'url':_0x1c69e8(0x208),'body':{'appCode':_0xe36efd['appCode'],'pageName':_0xe36efd[_0x1c69e8(0x1f9)],..._0xe36efd[_0x1c69e8(0x1fa)]!=null?{'parentMenuId':_0xe36efd[_0x1c69e8(0x1fa)]}:{},'createMenu':_0xe36efd[_0x1c69e8(0x1dc)],'codeContent':_0xe36efd[_0x1c69e8(0x1f1)]},'description':_0x1c69e8(0x1e2)+JSON[_0x1c69e8(0x1e8)](_0xe36efd[_0x1c69e8(0x1f9)])+_0x1c69e8(0x20c)};},async 'execute'(_0x2f68f4){const _0xa45a5b=a148_0x310024,_0x5a0141=await prepare(_0x2f68f4),_0x5cce86=await createCustomPage(_0x5a0141[_0xa45a5b(0x203)]);if(!Number[_0xa45a5b(0x1d7)](_0x5cce86[_0xa45a5b(0x1f2)])||_0x5cce86[_0xa45a5b(0x1f2)]<=0x0)throw CliErrors['apiError'](_0xa45a5b(0x1df));return{'ok':!![],'data':buildMutationData(_0x5a0141,_0x5cce86),'message':'Created\x20Custom\x20Page\x20'+_0x5cce86[_0xa45a5b(0x1f2)]+'.'};}};async function prepare(_0x51f214){const _0x50525e=a148_0x310024,_0x1d38d1=readPagePattern(_0x51f214);if(_0x1d38d1===null)return{'input':readInput(_0x51f214,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1d38d1),'warnings':[],'pagePattern':_0x1d38d1};let _0x1f4143=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1a25d2=[];try{const _0x256020=await getI18nInfo(_0x51f214['appCode']);_0x256020['enableI18n']&&_0x256020[_0x50525e(0x1fe)]?.[_0x50525e(0x1e6)]&&(_0x1f4143=_0x256020[_0x50525e(0x1fe)]);}catch{_0x1a25d2=[_0x50525e(0x1dd)];}return{'input':readInput(_0x51f214,_0x1f4143,_0x1d38d1),'warnings':_0x1a25d2,'pagePattern':_0x1d38d1};}function readPagePattern(_0x138747){const _0x2612ba=a148_0x310024,_0xb825e3=_0x138747[_0x2612ba(0x1e9)](_0x2612ba(0x20a))[_0x2612ba(0x207)](),_0x51e08d=_0x138747[_0x2612ba(0x1e9)](_0x2612ba(0x1e5))[_0x2612ba(0x207)]()[_0x2612ba(0x1e6)]>0x0;if(_0xb825e3&&_0x51e08d)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x51e08d)return null;if(!_0xb825e3)throw CliErrors[_0x2612ba(0x1f5)](_0x2612ba(0x1ee));if(_0xb825e3!=='BLANK')throw CliErrors[_0x2612ba(0x1f5)](_0x2612ba(0x1fd));return _0xb825e3;}function readInput(_0x575219,_0x1e15f7=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x11ac02=readPagePattern(_0x575219)){const _0x56a2d4=a148_0x310024,_0x362eb7=_0x575219[_0x56a2d4(0x1e9)](_0x56a2d4(0x1f6))['trim']()||_0x56a2d4(0x1ed)+Date[_0x56a2d4(0x206)]();if(_0x362eb7[_0x56a2d4(0x1e6)]>0x64)throw CliErrors[_0x56a2d4(0x1f5)](_0x56a2d4(0x1ea));const _0xc2d013=_0x575219['num'](_0x56a2d4(0x202),NaN),_0x3ce989=!Number['isNaN'](_0xc2d013);if(_0x3ce989&&(!Number[_0x56a2d4(0x1d7)](_0xc2d013)||_0xc2d013<=0x0))throw CliErrors[_0x56a2d4(0x1f5)](_0x56a2d4(0x1d3));return{'appCode':_0x575219[_0x56a2d4(0x1e1)],'pageName':_0x362eb7,..._0x3ce989?{'parentMenuId':_0xc2d013}:{},'createMenu':!![],'files':_0x11ac02===null?parseCustomPageContent(_0x575219['str'](_0x56a2d4(0x1e5))):buildInitialFiles(_0x362eb7,_0x1e15f7)};}function buildMutationData(_0x23bac8,_0x2aa7c2){const _0x2d0c8b=a148_0x310024,{input:_0x3daf12}=_0x23bac8,_0x258d62=_0x2aa7c2&&buildCustomPageDevelopmentUrl(_0x3daf12[_0x2d0c8b(0x1e1)],_0x2aa7c2[_0x2d0c8b(0x1fb)]),_0xf0a78d=_0x2aa7c2&&buildCustomPageEditUrl(_0x3daf12[_0x2d0c8b(0x1e1)],_0x2aa7c2[_0x2d0c8b(0x1f2)]);return{'operation':'page.create','pageType':_0x2d0c8b(0x1d4),'pagePattern':_0x23bac8[_0x2d0c8b(0x1e4)],'selector':{'appCode':_0x3daf12[_0x2d0c8b(0x1e1)],'pageName':_0x3daf12['pageName']},'before':null,'after':{'pageId':_0x2aa7c2?.[_0x2d0c8b(0x1f2)]??null,'pageName':_0x2aa7c2?.[_0x2d0c8b(0x1f9)]??_0x3daf12[_0x2d0c8b(0x1f9)],'appCode':_0x2aa7c2?.[_0x2d0c8b(0x1e1)]??_0x3daf12[_0x2d0c8b(0x1e1)],'version':_0x2aa7c2?.[_0x2d0c8b(0x1d8)]??null,'menuId':_0x2aa7c2?.[_0x2d0c8b(0x1fc)]??null,'menuPath':_0x2aa7c2?.['menuPath']??null,'files':_0x2aa7c2?.['files']??Object[_0x2d0c8b(0x1d2)](_0x3daf12[_0x2d0c8b(0x1f1)])},'dryRun':_0x2aa7c2===undefined,'request':_0x3daf12,..._0x258d62?{'pageUrl':_0x258d62}:{},..._0xf0a78d?{'editPageUrl':_0xf0a78d}:{},'warnings':[..._0x23bac8[_0x2d0c8b(0x201)],..._0x2aa7c2&&!_0x258d62?[_0x2d0c8b(0x1f7)]:[]]};}
1
+ const a148_0x411d5b=a148_0x9800;function a148_0x29fc(){const _0x4d161b=['length','parent-menu-id','10hUfkHJ','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','stringify','create','string','name','num','1706058fsxPYe','createMenu','86935mYcltK','isNaN','page','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','18643806laQeoE','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','en-US','page-type','page-content','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','BLANK','keys','1747832LqDeER','351LLwqWf','\x20and\x20its\x20menu\x20entry.','pageId','parentMenuId','Would\x20create\x20Custom\x20Page\x20','validation','page-pattern','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','appCode','Custom_page_','files','str','POST','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','isInteger','CUSTOM','pageName','620350rzHLGs','6551405pWFORJ','write','2DhCAxN','warnings','menuPath','apiError','pagePattern','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','page\x20create\x20does\x20not\x20accept\x20--page-type.','36408eHKVlN'];a148_0x29fc=function(){return _0x4d161b;};return a148_0x29fc();}(function(_0x168d0f,_0x3c7689){const _0x499a58=a148_0x9800,_0x19a765=_0x168d0f();while(!![]){try{const _0xc68f5a=parseInt(_0x499a58(0x105))/0x1*(parseInt(_0x499a58(0xf2))/0x2)+-parseInt(_0x499a58(0x114))/0x3*(parseInt(_0x499a58(0xf9))/0x4)+-parseInt(_0x499a58(0xef))/0x5+parseInt(_0x499a58(0x103))/0x6+-parseInt(_0x499a58(0xf0))/0x7+parseInt(_0x499a58(0x113))/0x8+-parseInt(_0x499a58(0x10a))/0x9*(-parseInt(_0x499a58(0xfc))/0xa);if(_0xc68f5a===_0x3c7689)break;else _0x19a765['push'](_0x19a765['shift']());}catch(_0x4ec1bd){_0x19a765['push'](_0x19a765['shift']());}}}(a148_0x29fc,0x82f34));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a148_0x411d5b(0x10d)];function a148_0x9800(_0x9c2518,_0x57ee43){_0x9c2518=_0x9c2518-0xeb;const _0x29fcd4=a148_0x29fc();let _0x980037=_0x29fcd4[_0x9c2518];return _0x980037;}export const pageCreate={'service':a148_0x411d5b(0x107),'command':a148_0x411d5b(0xff),'description':a148_0x411d5b(0xfd),'risk':a148_0x411d5b(0xf1),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x411d5b(0x10e),'message':a148_0x411d5b(0xf8),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.'}],'flags':[{'name':'name','type':'string','description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a148_0x411d5b(0xfb),'type':'number','description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a148_0x411d5b(0x11a),'type':a148_0x411d5b(0x100),'description':a148_0x411d5b(0x10b),'enum':[a148_0x411d5b(0x111)]},{'name':a148_0x411d5b(0x10f),'type':a148_0x411d5b(0x100),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x6bcfcb){const _0x115a0b=a148_0x411d5b,_0x5e770d=readPagePattern(_0x6bcfcb);await validateCustomPageContent(readInput(_0x6bcfcb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5e770d)[_0x115a0b(0x11e)]);},async 'dryRun'(_0x34769c){const _0x52402e=a148_0x411d5b,{input:_0x14f1a0}=await prepare(_0x34769c);return{'method':_0x52402e(0x120),'url':'/smartapi/webcode/page/create','body':{'appCode':_0x14f1a0[_0x52402e(0x11c)],'pageName':_0x14f1a0['pageName'],..._0x14f1a0[_0x52402e(0x117)]!=null?{'parentMenuId':_0x14f1a0[_0x52402e(0x117)]}:{},'createMenu':_0x14f1a0[_0x52402e(0x104)],'codeContent':_0x14f1a0[_0x52402e(0x11e)]},'description':_0x52402e(0x118)+JSON[_0x52402e(0xfe)](_0x14f1a0[_0x52402e(0xee)])+_0x52402e(0x115)};},async 'execute'(_0x261049){const _0x5ede0f=a148_0x411d5b,_0x555b7e=await prepare(_0x261049),_0x5c92bc=await createCustomPage(_0x555b7e['input']);if(!Number[_0x5ede0f(0xec)](_0x5c92bc[_0x5ede0f(0x116)])||_0x5c92bc[_0x5ede0f(0x116)]<=0x0)throw CliErrors[_0x5ede0f(0xf5)](_0x5ede0f(0xf7));return{'ok':!![],'data':buildMutationData(_0x555b7e,_0x5c92bc),'message':'Created\x20Custom\x20Page\x20'+_0x5c92bc[_0x5ede0f(0x116)]+'.'};}};async function prepare(_0x426ca3){const _0x54b10b=a148_0x411d5b,_0xd9d22b=readPagePattern(_0x426ca3);if(_0xd9d22b===null)return{'input':readInput(_0x426ca3,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xd9d22b),'warnings':[],'pagePattern':_0xd9d22b};let _0x438183=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3023da=[];try{const _0x18ac59=await getI18nInfo(_0x426ca3['appCode']);_0x18ac59['enableI18n']&&_0x18ac59['langs']?.[_0x54b10b(0xfa)]&&(_0x438183=_0x18ac59['langs']);}catch{_0x3023da=[_0x54b10b(0x10c)];}return{'input':readInput(_0x426ca3,_0x438183,_0xd9d22b),'warnings':_0x3023da,'pagePattern':_0xd9d22b};}function readPagePattern(_0x30c48e){const _0x288077=a148_0x411d5b,_0x25b9e0=_0x30c48e['str'](_0x288077(0x11a))[_0x288077(0x109)](),_0x14ee0c=_0x30c48e[_0x288077(0x11f)](_0x288077(0x10f))['trim']()['length']>0x0;if(_0x25b9e0&&_0x14ee0c)throw CliErrors['validation'](_0x288077(0x110));if(_0x14ee0c)return null;if(!_0x25b9e0)throw CliErrors['validation'](_0x288077(0xeb));if(_0x25b9e0!==_0x288077(0x111))throw CliErrors[_0x288077(0x119)]('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x25b9e0;}function readInput(_0x2dca46,_0x1f49d5=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xcd6b48=readPagePattern(_0x2dca46)){const _0x199b76=a148_0x411d5b,_0x4328ce=_0x2dca46[_0x199b76(0x11f)](_0x199b76(0x101))['trim']()||_0x199b76(0x11d)+Date['now']();if(_0x4328ce[_0x199b76(0xfa)]>0x64)throw CliErrors[_0x199b76(0x119)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x37be61=_0x2dca46[_0x199b76(0x102)]('parent-menu-id',NaN),_0x35a98d=!Number[_0x199b76(0x106)](_0x37be61);if(_0x35a98d&&(!Number[_0x199b76(0xec)](_0x37be61)||_0x37be61<=0x0))throw CliErrors['validation'](_0x199b76(0x11b));return{'appCode':_0x2dca46['appCode'],'pageName':_0x4328ce,..._0x35a98d?{'parentMenuId':_0x37be61}:{},'createMenu':!![],'files':_0xcd6b48===null?parseCustomPageContent(_0x2dca46[_0x199b76(0x11f)]('page-content')):buildInitialFiles(_0x4328ce,_0x1f49d5)};}function buildMutationData(_0x1ea52a,_0x1ee59b){const _0x111f38=a148_0x411d5b,{input:_0x27dc8e}=_0x1ea52a,_0x32c83d=_0x1ee59b&&buildCustomPageDevelopmentUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0xf4)]),_0x50282c=_0x1ee59b&&buildCustomPageEditUrl(_0x27dc8e[_0x111f38(0x11c)],_0x1ee59b[_0x111f38(0x116)]);return{'operation':'page.create','pageType':_0x111f38(0xed),'pagePattern':_0x1ea52a[_0x111f38(0xf6)],'selector':{'appCode':_0x27dc8e['appCode'],'pageName':_0x27dc8e[_0x111f38(0xee)]},'before':null,'after':{'pageId':_0x1ee59b?.[_0x111f38(0x116)]??null,'pageName':_0x1ee59b?.[_0x111f38(0xee)]??_0x27dc8e[_0x111f38(0xee)],'appCode':_0x1ee59b?.[_0x111f38(0x11c)]??_0x27dc8e[_0x111f38(0x11c)],'version':_0x1ee59b?.['version']??null,'menuId':_0x1ee59b?.['menuId']??null,'menuPath':_0x1ee59b?.['menuPath']??null,'files':_0x1ee59b?.[_0x111f38(0x11e)]??Object[_0x111f38(0x112)](_0x27dc8e[_0x111f38(0x11e)])},'dryRun':_0x1ee59b===undefined,'request':_0x27dc8e,..._0x32c83d?{'pageUrl':_0x32c83d}:{},..._0x50282c?{'editPageUrl':_0x50282c}:{},'warnings':[..._0x1ea52a[_0x111f38(0xf3)],..._0x1ee59b&&!_0x32c83d?[_0x111f38(0x108)]:[]]};}
@@ -1 +1 @@
1
- function a149_0x19f5(_0x53f5b9,_0x485c22){_0x53f5b9=_0x53f5b9-0x15a;const _0x4a5c36=a149_0x4a5c();let _0x19f560=_0x4a5c36[_0x53f5b9];return _0x19f560;}function a149_0x4a5c(){const _0x40ccf2=['20CWmOyB','getFullYear','8854952pnZSzV','435VuOyDJ','23492SQLQJQ','498662ucFdzd','761733gideAS','getMinutes','padStart','317872OqdDsz','16880171KrWQEj','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','getDate','str','page','getHours','cookie','read','getTime','join','getMonth','appcode','getSeconds','3714672iQkFTt','number','12NQrjpg','trim','custom-detail','9XpOFGT'];a149_0x4a5c=function(){return _0x40ccf2;};return a149_0x4a5c();}const a149_0x12c96a=a149_0x19f5;(function(_0xc10e6,_0x1057d7){const _0x3f313f=a149_0x19f5,_0x470fcc=_0xc10e6();while(!![]){try{const _0x1ba5aa=-parseInt(_0x3f313f(0x16c))/0x1+-parseInt(_0x3f313f(0x170))/0x2*(parseInt(_0x3f313f(0x163))/0x3)+parseInt(_0x3f313f(0x16b))/0x4*(parseInt(_0x3f313f(0x16a))/0x5)+-parseInt(_0x3f313f(0x161))/0x6+-parseInt(_0x3f313f(0x16d))/0x7+parseInt(_0x3f313f(0x169))/0x8*(-parseInt(_0x3f313f(0x166))/0x9)+parseInt(_0x3f313f(0x167))/0xa*(parseInt(_0x3f313f(0x171))/0xb);if(_0x1ba5aa===_0x1057d7)break;else _0x470fcc['push'](_0x470fcc['shift']());}catch(_0x17d7e1){_0x470fcc['push'](_0x470fcc['shift']());}}}(a149_0x4a5c,0x95233));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a149_0x12c96a(0x175),'command':a149_0x12c96a(0x165),'description':a149_0x12c96a(0x172),'risk':a149_0x12c96a(0x15b),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x12c96a(0x162),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x46fb4e){readCustomPageId(_0x46fb4e);},async 'execute'(_0x46259b){const _0x11273d=a149_0x12c96a,_0x31e174=readCustomPageId(_0x46259b),_0x2064ae=await getCustomPageSource(_0x31e174),{bundle:_0x4378cf,createTime:_0x3d4541,updateTime:_0x266ec7,..._0x1b3be2}=_0x2064ae,_0x649781=_0x2064ae['id']??_0x31e174,_0x507090=_0x2064ae['appCode']?.['trim']()||_0x46259b[_0x11273d(0x174)](_0x11273d(0x15f))[_0x11273d(0x164)](),_0x503b31=buildCustomPageRuntimeUrl(_0x507090,_0x2064ae['pageCode']),_0x324acc=buildCustomPageEditUrl(_0x507090,_0x649781),_0x59f3bc=await resolveCustomPageDevelopmentUrl(_0x507090,_0x649781,_0x46259b[_0x11273d(0x15a)]);return{'ok':!![],'data':{..._0x1b3be2,..._0x503b31?{'runtimePageUrl':_0x503b31}:{},..._0x59f3bc?{'pageUrl':_0x59f3bc}:{},..._0x324acc?{'editPageUrl':_0x324acc}:{},..._0x3d4541==null?{}:{'createTime':formatTime(_0x3d4541)},..._0x266ec7==null?{}:{'updateTime':formatTime(_0x266ec7)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x31e174+'.'};}};function formatTime(_0x59ef0a){const _0x4d4a5f=a149_0x12c96a,_0x7f12c=new Date(_0x59ef0a);if(Number['isNaN'](_0x7f12c[_0x4d4a5f(0x15c)]()))return String(_0x59ef0a);const _0x55bf01=[_0x7f12c[_0x4d4a5f(0x168)](),String(_0x7f12c[_0x4d4a5f(0x15e)]()+0x1)[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x173)]())[_0x4d4a5f(0x16f)](0x2,'0')][_0x4d4a5f(0x15d)]('-'),_0x405f84=[String(_0x7f12c[_0x4d4a5f(0x176)]())[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x16e)]())[_0x4d4a5f(0x16f)](0x2,'0'),String(_0x7f12c[_0x4d4a5f(0x160)]())['padStart'](0x2,'0')][_0x4d4a5f(0x15d)](':');return _0x55bf01+'\x20'+_0x405f84;}
1
+ const a149_0x2fcc16=a149_0xb76b;(function(_0x1dfb48,_0x1beb44){const _0xb5066f=a149_0xb76b,_0x1241ee=_0x1dfb48();while(!![]){try{const _0x36c83e=-parseInt(_0xb5066f(0xbb))/0x1*(-parseInt(_0xb5066f(0xad))/0x2)+parseInt(_0xb5066f(0xbe))/0x3+-parseInt(_0xb5066f(0xa9))/0x4+-parseInt(_0xb5066f(0xc2))/0x5*(parseInt(_0xb5066f(0xbc))/0x6)+-parseInt(_0xb5066f(0xa5))/0x7*(parseInt(_0xb5066f(0xaf))/0x8)+parseInt(_0xb5066f(0xc3))/0x9*(-parseInt(_0xb5066f(0xb9))/0xa)+parseInt(_0xb5066f(0xb4))/0xb;if(_0x36c83e===_0x1beb44)break;else _0x1241ee['push'](_0x1241ee['shift']());}catch(_0xd7cd12){_0x1241ee['push'](_0x1241ee['shift']());}}}(a149_0x1474,0x9ac77));function a149_0x1474(){const _0x1db19d=['appcode','getTime','cookie','2189644ATQLDl','read','compress','Custom\x20Page\x20ID','2xPwHRE','getDate','104iImLag','getHours','padStart','getMinutes','custom-detail','7533229YXzcPk','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','isNaN','appCode','20kHSplO','getFullYear','603419VeFZbY','2311032jWjenx','getSeconds','3233511XqJywE','getMonth','join','trim','5tqkRLo','1580661alZMQs','Retrieved\x20Custom\x20Page\x20','pageCode','241381yJFwwN'];a149_0x1474=function(){return _0x1db19d;};return a149_0x1474();}import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';function a149_0xb76b(_0x319b1f,_0x44c763){_0x319b1f=_0x319b1f-0xa4;const _0x147403=a149_0x1474();let _0xb76b85=_0x147403[_0x319b1f];return _0xb76b85;}export const pageCustomDetail={'service':'page','command':a149_0x2fcc16(0xb3),'description':a149_0x2fcc16(0xb5),'risk':a149_0x2fcc16(0xaa),'defaultOutputFormat':a149_0x2fcc16(0xab),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x2fcc16(0xb6),'required':!![],'description':a149_0x2fcc16(0xac)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc45065){readCustomPageId(_0xc45065);},async 'execute'(_0x28dc3a){const _0x2f9e5f=a149_0x2fcc16,_0x4502d0=readCustomPageId(_0x28dc3a),_0x51dfaf=await getCustomPageSource(_0x4502d0),{bundle:_0xc32c37,createTime:_0x3c5148,updateTime:_0x336f7a,..._0x2c9c5a}=_0x51dfaf,_0xb0bc60=_0x51dfaf['id']??_0x4502d0,_0x505e44=_0x51dfaf[_0x2f9e5f(0xb8)]?.[_0x2f9e5f(0xc1)]()||_0x28dc3a['str'](_0x2f9e5f(0xa6))[_0x2f9e5f(0xc1)](),_0x298b39=buildCustomPageRuntimeUrl(_0x505e44,_0x51dfaf[_0x2f9e5f(0xa4)]),_0xa812d9=buildCustomPageEditUrl(_0x505e44,_0xb0bc60),_0x18dee6=await resolveCustomPageDevelopmentUrl(_0x505e44,_0xb0bc60,_0x28dc3a[_0x2f9e5f(0xa8)]);return{'ok':!![],'data':{..._0x2c9c5a,..._0x298b39?{'runtimePageUrl':_0x298b39}:{},..._0x18dee6?{'pageUrl':_0x18dee6}:{},..._0xa812d9?{'editPageUrl':_0xa812d9}:{},..._0x3c5148==null?{}:{'createTime':formatTime(_0x3c5148)},..._0x336f7a==null?{}:{'updateTime':formatTime(_0x336f7a)}},'message':_0x2f9e5f(0xc4)+_0x4502d0+'.'};}};function formatTime(_0x48c378){const _0x278c1c=a149_0x2fcc16,_0x39748a=new Date(_0x48c378);if(Number[_0x278c1c(0xb7)](_0x39748a[_0x278c1c(0xa7)]()))return String(_0x48c378);const _0x120028=[_0x39748a[_0x278c1c(0xba)](),String(_0x39748a[_0x278c1c(0xbf)]()+0x1)['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xae)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)]('-'),_0x2517fb=[String(_0x39748a[_0x278c1c(0xb0)]())[_0x278c1c(0xb1)](0x2,'0'),String(_0x39748a[_0x278c1c(0xb2)]())['padStart'](0x2,'0'),String(_0x39748a[_0x278c1c(0xbd)]())[_0x278c1c(0xb1)](0x2,'0')][_0x278c1c(0xc0)](':');return _0x120028+'\x20'+_0x2517fb;}