@lovrabet/rabetbase-cli 2.5.1-beta.6 → 2.5.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 (311) 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.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/domain-routing-sync.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/rule/get.js +1 -1
  190. package/lib/commands/rule/index.js +1 -1
  191. package/lib/commands/rule/list.js +1 -1
  192. package/lib/commands/rule/set.js +1 -1
  193. package/lib/commands/rule/shared.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.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.js +1 -1
  232. package/lib/context/auth-resolver.js +1 -1
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.js +1 -1
  235. package/lib/core/alias-resolver.js +1 -1
  236. package/lib/core/api-client.js +1 -1
  237. package/lib/core/bff/config.js +1 -1
  238. package/lib/core/bff/file-system.js +1 -1
  239. package/lib/core/bff/hash.js +1 -1
  240. package/lib/core/bff/lock.js +1 -1
  241. package/lib/core/bff/utils.js +1 -1
  242. package/lib/core/db-resolver.js +1 -1
  243. package/lib/core/kb-search-client.js +1 -1
  244. package/lib/core/page/file-system.js +1 -1
  245. package/lib/core/page/hash.js +1 -1
  246. package/lib/core/page/lock.js +1 -1
  247. package/lib/core/sql-index-auditor.js +1 -1
  248. package/lib/core/sql-sync/config.js +1 -1
  249. package/lib/core/sql-sync/file-system.js +1 -1
  250. package/lib/core/sql-sync/hash.js +1 -1
  251. package/lib/core/sql-sync/lock.js +1 -1
  252. package/lib/core/sql-sync/utils.js +1 -1
  253. package/lib/core/sql-validator.js +1 -1
  254. package/lib/errors.js +1 -1
  255. package/lib/framework/build-all-flags.js +1 -1
  256. package/lib/framework/error-output.js +1 -1
  257. package/lib/framework/explicit-yes.js +1 -1
  258. package/lib/framework/flags.js +1 -1
  259. package/lib/framework/help.js +1 -1
  260. package/lib/framework/index.js +1 -1
  261. package/lib/framework/output.js +1 -1
  262. package/lib/framework/response.js +1 -1
  263. package/lib/framework/runner-alias.js +1 -1
  264. package/lib/framework/runner.js +1 -1
  265. package/lib/framework/schema-export.js +1 -1
  266. package/lib/framework/types.js +1 -1
  267. package/lib/generated/build-info.d.ts +4 -4
  268. package/lib/generated/build-info.js +1 -1
  269. package/lib/generated/official-routing.js +1 -1
  270. package/lib/generated/routing-contract.js +1 -1
  271. package/lib/help.js +1 -1
  272. package/lib/postinstall.js +1 -1
  273. package/lib/runtime/confirmation.js +1 -1
  274. package/lib/runtime/event.js +1 -1
  275. package/lib/runtime/index.js +1 -1
  276. package/lib/runtime/queue.js +1 -1
  277. package/lib/runtime/resolve.js +1 -1
  278. package/lib/skills/builtin-skill.js +1 -1
  279. package/lib/skills/main.js +1 -1
  280. package/lib/skills/npx-skills-add.js +1 -1
  281. package/lib/skills/skill-presence.js +1 -1
  282. package/lib/telemetry/cli-command-trace.js +1 -1
  283. package/lib/telemetry/cli-help-trace.js +1 -1
  284. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  285. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  286. package/lib/telemetry/send-cli-trace-log.js +1 -1
  287. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  288. package/lib/utils/ai_config.js +1 -1
  289. package/lib/utils/apply-jq-filter.js +1 -1
  290. package/lib/utils/cdn-config.js +1 -1
  291. package/lib/utils/check-sdk-version.js +1 -1
  292. package/lib/utils/cli-version-check.js +1 -1
  293. package/lib/utils/cli-version-policy.js +1 -1
  294. package/lib/utils/config.js +1 -1
  295. package/lib/utils/entity-with-id.js +1 -1
  296. package/lib/utils/file-utils.js +1 -1
  297. package/lib/utils/guides-cdn.js +1 -1
  298. package/lib/utils/http-client.js +1 -1
  299. package/lib/utils/is-non-interactive.js +1 -1
  300. package/lib/utils/logger.js +1 -1
  301. package/lib/utils/params.js +1 -1
  302. package/lib/utils/platform.js +1 -1
  303. package/lib/utils/sleep.js +1 -1
  304. package/lib/utils/template-replacer.js +1 -1
  305. package/lib/utils/update-notice.js +1 -1
  306. package/lib/utils/version.js +1 -1
  307. package/lib/utils/with-active-cookie.js +1 -1
  308. package/lib/utils/write-cli-side-channel.js +1 -1
  309. package/package.json +1 -1
  310. package/skills/rabetbase/SKILL.md +1 -1
  311. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a140_0x5d1117=a140_0x44a9;(function(_0x1de7af,_0xf1e56f){const _0x13ae7f=a140_0x44a9,_0x3c575e=_0x1de7af();while(!![]){try{const _0x1dba2d=parseInt(_0x13ae7f(0x1cf))/0x1*(-parseInt(_0x13ae7f(0x1f7))/0x2)+-parseInt(_0x13ae7f(0x1b7))/0x3+-parseInt(_0x13ae7f(0x1b9))/0x4*(parseInt(_0x13ae7f(0x1c9))/0x5)+parseInt(_0x13ae7f(0x19f))/0x6+parseInt(_0x13ae7f(0x1ae))/0x7*(parseInt(_0x13ae7f(0x1b4))/0x8)+-parseInt(_0x13ae7f(0x1f0))/0x9+-parseInt(_0x13ae7f(0x1e9))/0xa;if(_0x1dba2d===_0xf1e56f)break;else _0x3c575e['push'](_0x3c575e['shift']());}catch(_0x28d451){_0x3c575e['push'](_0x3c575e['shift']());}}}(a140_0x13a2,0xedb84));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_0x5d1117(0x1d2),'path':a140_0x5d1117(0x1b0)}];export const menuVisibilityUpdate={'service':a140_0x5d1117(0x1c2),'command':a140_0x5d1117(0x1cc),'description':a140_0x5d1117(0x1ab),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a140_0x5d1117(0x208),'type':a140_0x5d1117(0x209),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a140_0x5d1117(0x1ce),'type':a140_0x5d1117(0x209),'description':a140_0x5d1117(0x205)},{'name':a140_0x5d1117(0x1c3),'type':a140_0x5d1117(0x206),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a140_0x5d1117(0x1d6),'type':a140_0x5d1117(0x206),'description':a140_0x5d1117(0x1e3)},{'name':'expected-count','type':a140_0x5d1117(0x1d7),'description':a140_0x5d1117(0x1f9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3d9379){parseInput(_0x3d9379),requireExplicitYes(_0x3d9379);},async 'dryRun'(_0x4f8af6){const _0x582556=a140_0x5d1117,_0x423f02=await buildPlan(_0x4f8af6,!![]),_0x3a0a26=_0x423f02[_0x582556(0x202)][_0x582556(0x1a6)]?.[_0x582556(0x1b5)]??0x0,_0x52c7ab=_0x423f02[_0x582556(0x202)][_0x582556(0x1a9)][_0x582556(0x1b5)]-_0x3a0a26;return menuDryRunResult(_0x423f02[_0x582556(0x202)],{'method':_0x582556(0x1d2),'url':_0x582556(0x1b0),'body':{'updates':_0x423f02[_0x582556(0x202)][_0x582556(0x1a6)]?.[_0x582556(0x1ea)](_0xb0a928=>_0xb0a928[_0x582556(0x1da)])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x3a0a26+'\x20menu(s);\x20skip\x20'+_0x52c7ab+_0x582556(0x1e7)});},async 'execute'(_0x246122){const _0x1c6d50=a140_0x5d1117;requireExplicitYes(_0x246122);const _0x5a5f53=await buildPlan(_0x246122,![]);await recheckMutationSnapshot(_0x246122,_0x5a5f53['plan'],'update\x20menu\x20visibility');const _0x5ced5d=[],_0x79045f=[],_0x40d90f=[];for(const _0x9dc4eb of _0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1a9)]){if(_0x9dc4eb[_0x1c6d50(0x1e1)][_0x1c6d50(0x1c3)]===_0x5a5f53[_0x1c6d50(0x202)]['requestedVisible']){_0x5ced5d['push']({'id':_0x9dc4eb['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x246122[_0x1c6d50(0x1f4)],_0x246122[_0x1c6d50(0x198)],{'id':_0x9dc4eb['id'],'visible':_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1f8)]}),_0x5ced5d[_0x1c6d50(0x20b)]({'id':_0x9dc4eb['id'],'updated':!![],'skipped':![]});}catch(_0x16f95e){const _0x2eeb1a=mapMenuApiError(_0x16f95e,_0x1c6d50(0x1f5),_0x9dc4eb['id']);if(isMenuResponseLoss(_0x16f95e)&&_0x2eeb1a['code']!==_0x1c6d50(0x1df)){_0x40d90f[_0x1c6d50(0x20b)](_0x9dc4eb['id']);continue;}_0x79045f[_0x1c6d50(0x20b)]({'id':_0x9dc4eb['id'],'stage':_0x1c6d50(0x195),'code':_0x2eeb1a[_0x1c6d50(0x1c8)],'message':_0x2eeb1a[_0x1c6d50(0x19a)]});}}let _0x46d3f0;try{_0x46d3f0=await fetchMenuSnapshot(_0x246122['appCode'],_0x246122[_0x1c6d50(0x198)]);}catch(_0x3eccd4){const _0x4702b9=describeMenuErrorCause(_0x3eccd4,_0x1c6d50(0x1ee)),_0x2a0777=_0x40d90f[_0x1c6d50(0x1ea)](_0x57f09c=>({'id':_0x57f09c,'stage':_0x1c6d50(0x197),'code':_0x1c6d50(0x1a0),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x57f09c+_0x1c6d50(0x1d3),'requestedStateConfirmed':![],'recovered':![]})),_0x21fd86={'stage':'verification','code':_0x1c6d50(0x1a0),'message':_0x1c6d50(0x1aa),'targetIds':_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1a9)][_0x1c6d50(0x1ea)](_0xe897aa=>_0xe897aa['id']),'requestedStateConfirmed':![],..._0x4702b9};throw menuFailure(asVerificationError(_0x3eccd4,_0x1c6d50(0x19e)),_0x5a5f53['plan'],{'stage':'verification','succeeded':_0x5ced5d,'failedRecords':[..._0x79045f,..._0x2a0777,_0x21fd86],'warnings':[_0x1c6d50(0x1d4)],'verification':{'status':_0x1c6d50(0x1ed),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x452dc9=[];for(const _0x2aaa07 of _0x5ced5d){const _0x50d44d=Number(_0x2aaa07['id']),_0x3693f8=_0x5a5f53[_0x1c6d50(0x1f2)]['get'](_0x50d44d),_0x233344=_0x46d3f0[_0x1c6d50(0x1fa)][_0x1c6d50(0x1ca)](_0x50d44d);try{verifyVisibilityUpdate(_0x3693f8,_0x233344,_0x5a5f53['plan'][_0x1c6d50(0x1f8)]);}catch(_0x1b457e){const _0x16fbc8=asVerificationError(_0x1b457e,_0x1c6d50(0x1e8)+_0x50d44d+_0x1c6d50(0x212));_0x452dc9['push']({'id':_0x50d44d,'stage':_0x1c6d50(0x1c0),'code':_0x16fbc8[_0x1c6d50(0x1c8)],'message':_0x16fbc8[_0x1c6d50(0x19a)],'requestedStateConfirmed':![]});}}for(const _0x5a19a1 of _0x40d90f){const _0x25e56d=_0x5a5f53[_0x1c6d50(0x1f2)][_0x1c6d50(0x1ca)](_0x5a19a1),_0x3740df=_0x46d3f0['byId'][_0x1c6d50(0x1ca)](_0x5a19a1);try{verifyVisibilityUpdate(_0x25e56d,_0x3740df,_0x5a5f53['plan'][_0x1c6d50(0x1f8)]),_0x5ced5d['push']({'id':_0x5a19a1,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4ded5d){const _0x3af5b0=asVerificationError(_0x4ded5d,_0x1c6d50(0x210)+_0x5a19a1+_0x1c6d50(0x1bd));_0x452dc9[_0x1c6d50(0x20b)]({'id':_0x5a19a1,'stage':_0x1c6d50(0x197),'code':_0x3af5b0['code'],'message':_0x3af5b0[_0x1c6d50(0x19a)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x452dc9['length']>0x0){const _0x4321d9=_0x452dc9[_0x1c6d50(0x1ea)](_0x5e4a24=>Number(_0x5e4a24['id'])),_0x5e654b=_0x5ced5d[_0x1c6d50(0x1fe)](_0x40b4d6=>_0x40b4d6['recovered']===!![])[_0x1c6d50(0x1b5)],_0x278385=menuError('menu_verification_failed',_0x1c6d50(0x1a1)+_0x4321d9[_0x1c6d50(0x19c)](',\x20')+'.',_0x1c6d50(0x1af));throw menuFailure(_0x278385,_0x5a5f53['plan'],{'stage':_0x1c6d50(0x1c0),'succeeded':_0x5ced5d,'failedRecords':[..._0x79045f,..._0x452dc9],'warnings':[_0x1c6d50(0x1c7)],'verification':{'status':_0x1c6d50(0x1ed),..._0x4321d9[_0x1c6d50(0x1b5)]===0x1?{'targetId':_0x4321d9[0x0]}:{'targetIds':_0x4321d9},'recoveredCount':_0x5e654b,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0xd88611=_0x5ced5d[_0x1c6d50(0x1fe)](_0x3ae585=>_0x3ae585[_0x1c6d50(0x20e)]===!![])[_0x1c6d50(0x1b5)],_0x3db7a7=_0x5ced5d[_0x1c6d50(0x1b5)]-_0xd88611,_0x2a3eda={..._0x5a5f53[_0x1c6d50(0x202)],'succeeded':_0x5ced5d,'failed':_0x79045f,'warnings':_0x79045f[_0x1c6d50(0x1b5)]>0x0?[..._0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1ff)],_0x1c6d50(0x1db)]:_0x5a5f53[_0x1c6d50(0x202)][_0x1c6d50(0x1ff)],'verification':{'checkedBy':_0x1c6d50(0x1bc),'snapshotHash':_0x46d3f0['hash'],'matchesRequestedState':_0x79045f[_0x1c6d50(0x1b5)]===0x0,'recoveredCount':_0x40d90f[_0x1c6d50(0x1b5)]}};return{'ok':_0x79045f[_0x1c6d50(0x1b5)]===0x0,'data':_0x2a3eda,'message':_0x79045f[_0x1c6d50(0x1b5)]===0x0?_0x1c6d50(0x20c)+_0xd88611+_0x1c6d50(0x1d0)+_0x3db7a7+_0x1c6d50(0x1e7):_0x1c6d50(0x1ac)+_0xd88611+_0x1c6d50(0x1ef)+_0x3db7a7+_0x1c6d50(0x1d1)+_0x79045f['length']+_0x1c6d50(0x1a4)};}};function a140_0x13a2(){const _0x4316be=['\x20menu(s);\x20skipped\x20','\x20skipped,\x20','POST','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','expect-visible','number','childrenIds','has','body','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','update-menu-visibility','url','str','menu_permission_denied','Menu\x20path\x20selector\x20not\x20found:\x20','before','modelType','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','menu_expected_count_mismatch','childrenCount','\x20unchanged\x20menu(s).','Menu\x20','4204340vGYSMX','map','split','validation','failed','verify\x20menu\x20visibility\x20update','\x20updated,\x20','557883ZJznyv','resources','beforeById','type','appCode','update\x20visibility\x20for','expected-count','6hDmHkk','requestedVisible','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','byId','stringify','trim','Menu\x20id\x20selector(s)\x20not\x20found:\x20','filter','warnings','pageId','parentId','plan','values','datasetCode','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','boolean','true','menu-ids','string','expectVisible','push','Updated\x20visibility\x20for\x20','menu_state_drift','updated','flagMissing','Response\x20was\x20lost\x20and\x20menu\x20','Selected\x20','\x20visibility\x20update\x20could\x20not\x20be\x20verified','set','false','path','update','resourcesValid','update-recovery','cookie','menu_selector_ambiguous','message','update\x20menu\x20visibility','join','num','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','8544456WCaEIb','menu_verification_failed','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','depth','pageType','\x20failed.','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','plannedActions','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','isArray','targets','Final\x20menu\x20visibility\x20readback\x20failed.','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Menu\x20visibility\x20update\x20completed:\x20','label','346073bDalmf','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','/smartapi/menu/update','sort','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','expectedCount','80ZAoExS','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','842721wOjtRb','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','15356kbHmqh','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','menu_selector_not_found','menu\x20list','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','datasetId','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','verification','some','menu','visible','\x20must\x20be\x20true\x20or\x20false.','hash','menuIds','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','code','40GFIJPj','get','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','visibility-update','\x20menu(s),\x20expected\x20','paths','50242yOhrYh'];a140_0x13a2=function(){return _0x4316be;};return a140_0x13a2();}function parseInput(_0x4ec343){const _0x2ec8da=a140_0x5d1117,_0x114fa9=parseMenuIds(_0x4ec343[_0x2ec8da(0x1de)](_0x2ec8da(0x208))),_0x4f1236=parseCsv(_0x4ec343[_0x2ec8da(0x1de)](_0x2ec8da(0x1ce)));if(_0x114fa9[_0x2ec8da(0x1b5)]===0x0&&_0x4f1236['length']===0x0)throw CliErrors[_0x2ec8da(0x1ec)](_0x2ec8da(0x1d5));const _0x1b0cc6=parseBooleanFlag(_0x4ec343,_0x2ec8da(0x1c3),!![]),_0x1f4e09=parseBooleanFlag(_0x4ec343,_0x2ec8da(0x1d6),![]);let _0x2addc1;if(hasFlag(_0x4ec343,_0x2ec8da(0x1f6))){_0x2addc1=_0x4ec343[_0x2ec8da(0x19d)](_0x2ec8da(0x1f6));if(!Number['isSafeInteger'](_0x2addc1)||_0x2addc1<0x0)throw CliErrors[_0x2ec8da(0x1ec)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x114fa9,'paths':_0x4f1236,'visible':_0x1b0cc6,'expectVisible':_0x1f4e09,'expectedCount':_0x2addc1};}async function buildPlan(_0x21793b,_0x5748d2){const _0x412e12=a140_0x5d1117,_0x17fdac=parseInput(_0x21793b),_0x228408=await fetchMutationSnapshot(_0x21793b,_0x412e12(0x19b)),_0x4734f5=selectTargets(_0x228408['menus'],_0x17fdac[_0x412e12(0x1c6)],_0x17fdac[_0x412e12(0x1ce)]);if(_0x17fdac[_0x412e12(0x1b3)]!==undefined&&_0x4734f5[_0x412e12(0x1b5)]!==_0x17fdac[_0x412e12(0x1b3)])throw menuError(_0x412e12(0x1e5),_0x412e12(0x211)+_0x4734f5[_0x412e12(0x1b5)]+_0x412e12(0x1cd)+_0x17fdac['expectedCount']+'.',_0x412e12(0x1bf));if(_0x17fdac[_0x412e12(0x20a)]!==undefined){const _0x415db9=_0x4734f5[_0x412e12(0x1fe)](_0x3d9066=>_0x3d9066[_0x412e12(0x1c3)]!==_0x17fdac['expectVisible']);if(_0x415db9['length']>0x0)throw menuError(_0x412e12(0x20d),_0x412e12(0x1b2)+_0x415db9[_0x412e12(0x1ea)](_0x4ce78c=>_0x4ce78c['id'])[_0x412e12(0x19c)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x377e76=_0x4734f5[_0x412e12(0x1ea)](_0x4e0870=>({'id':_0x4e0870['id'],'label':_0x4e0870[_0x412e12(0x1ad)],'path':_0x4e0870[_0x412e12(0x194)],'before':{'visible':_0x4e0870[_0x412e12(0x1c3)]},'after':{'visible':_0x17fdac[_0x412e12(0x1c3)]}})),_0x3c1846=_0x377e76[_0x412e12(0x1fe)](_0xa85402=>_0xa85402[_0x412e12(0x1e1)][_0x412e12(0x1c3)]!==_0x17fdac[_0x412e12(0x1c3)])[_0x412e12(0x1ea)](_0x1492c3=>({'stage':_0x412e12(0x1dc),'method':_0x412e12(0x1d2),'path':_0x412e12(0x1b0),'body':{'appCode':_0x21793b[_0x412e12(0x1f4)],'id':_0x1492c3['id'],'visible':_0x17fdac[_0x412e12(0x1c3)]}})),_0x24614b=mutationResult({'operation':_0x412e12(0x1cc),'selector':{'menuIds':_0x17fdac[_0x412e12(0x1c6)],'paths':_0x17fdac[_0x412e12(0x1ce)]},'before':{'menus':_0x4734f5['map'](_0x57385f=>({'id':_0x57385f['id'],'path':_0x57385f[_0x412e12(0x194)],'visible':_0x57385f[_0x412e12(0x1c3)]}))},'after':{'menus':_0x4734f5['map'](_0x279768=>({'id':_0x279768['id'],'path':_0x279768[_0x412e12(0x194)],'visible':_0x17fdac[_0x412e12(0x1c3)]}))},'dryRun':_0x5748d2,'backend':[...BACKEND],'plannedActions':_0x3c1846,'snapshotHash':_0x228408[_0x412e12(0x1c5)],'warnings':_0x3c1846[_0x412e12(0x1b5)]===0x0?[_0x412e12(0x1a5)]:[]});return{'plan':{..._0x24614b,'requestedVisible':_0x17fdac['visible'],'targets':_0x377e76},'beforeById':new Map(_0x4734f5[_0x412e12(0x1ea)](_0x97ec1e=>[_0x97ec1e['id'],_0x97ec1e]))};}function selectTargets(_0x5a61a6,_0x323cb2,_0x60df6d){const _0x48c4f5=a140_0x5d1117,_0x337880=new Map(_0x5a61a6[_0x48c4f5(0x1ea)](_0x5e3e8a=>[_0x5e3e8a['id'],_0x5e3e8a])),_0x185e26=new Map(),_0x377046=_0x323cb2['filter'](_0x1a1d89=>!_0x337880[_0x48c4f5(0x1d9)](_0x1a1d89));if(_0x377046['length']>0x0)throw menuError(_0x48c4f5(0x1bb),_0x48c4f5(0x1fd)+_0x377046['join'](',\x20')+'.',_0x48c4f5(0x1ba));for(const _0x284210 of _0x323cb2){_0x185e26[_0x48c4f5(0x192)](_0x284210,_0x337880[_0x48c4f5(0x1ca)](_0x284210));}for(const _0x35ab95 of _0x60df6d){const _0x17ad38=_0x5a61a6[_0x48c4f5(0x1fe)](_0x4865f2=>_0x4865f2[_0x48c4f5(0x194)]===_0x35ab95);if(_0x17ad38['length']===0x0)throw menuError('menu_selector_not_found',_0x48c4f5(0x1e0)+JSON['stringify'](_0x35ab95)+'.',_0x48c4f5(0x1b8));if(_0x17ad38['length']>0x1)throw menuError(_0x48c4f5(0x199),_0x48c4f5(0x1cb)+JSON['stringify'](_0x35ab95)+'.',_0x48c4f5(0x1a7)+_0x17ad38['map'](_0x141a8e=>_0x141a8e['id'])[_0x48c4f5(0x19c)](',\x20')+'.');const _0x5566e0=_0x17ad38[0x0];_0x185e26[_0x48c4f5(0x192)](_0x5566e0['id'],_0x5566e0);}return[..._0x185e26[_0x48c4f5(0x203)]()];}function a140_0x44a9(_0x4cec2e,_0x1f0f93){_0x4cec2e=_0x4cec2e-0x192;const _0x13a280=a140_0x13a2();let _0x44a92a=_0x13a280[_0x4cec2e];return _0x44a92a;}function parseMenuIds(_0xdd5064){const _0x3071f9=a140_0x5d1117,_0x65b629=parseCsv(_0xdd5064),_0x210e60=_0x65b629['map'](Number);if(_0x210e60[_0x3071f9(0x1c1)](_0x2b69c3=>!Number['isSafeInteger'](_0x2b69c3)||_0x2b69c3<=0x0))throw CliErrors[_0x3071f9(0x1ec)](_0x3071f9(0x1e4));return[...new Set(_0x210e60)];}function parseCsv(_0x35e414){const _0x1fcebb=a140_0x5d1117;return[...new Set(_0x35e414[_0x1fcebb(0x1eb)](',')['map'](_0x23a1aa=>_0x23a1aa[_0x1fcebb(0x1fc)]())[_0x1fcebb(0x1fe)](Boolean))];}function parseBooleanFlag(_0x2b07c9,_0x3ca27b,_0x46a676){const _0x33b7f0=a140_0x5d1117;if(!hasFlag(_0x2b07c9,_0x3ca27b)){if(_0x46a676)throw CliErrors[_0x33b7f0(0x20f)](_0x3ca27b);return undefined;}const _0x4a2b9c=_0x2b07c9['rawFlags'][_0x3ca27b];if(_0x4a2b9c===!![]||_0x4a2b9c===![])return _0x4a2b9c;if(_0x4a2b9c===_0x33b7f0(0x207))return!![];if(_0x4a2b9c===_0x33b7f0(0x193))return![];throw CliErrors[_0x33b7f0(0x1ec)]('--'+_0x3ca27b+_0x33b7f0(0x1c4));}function verifyVisibilityUpdate(_0x4edee8,_0x36247d,_0x33d41e){const _0x21d2c3=a140_0x5d1117;assertVerified(!!_0x36247d,_0x21d2c3(0x1e8)+_0x4edee8['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x36247d[_0x21d2c3(0x1c3)]===_0x33d41e,_0x21d2c3(0x1e8)+_0x4edee8['id']+_0x21d2c3(0x1b6));const _0x29a2b4=[['id',_0x36247d['id'],_0x4edee8['id']],[_0x21d2c3(0x201),_0x36247d['parentId'],_0x4edee8[_0x21d2c3(0x201)]],[_0x21d2c3(0x1a2),_0x36247d[_0x21d2c3(0x1a2)],_0x4edee8[_0x21d2c3(0x1a2)]],[_0x21d2c3(0x1ad),_0x36247d[_0x21d2c3(0x1ad)],_0x4edee8[_0x21d2c3(0x1ad)]],[_0x21d2c3(0x194),_0x36247d[_0x21d2c3(0x194)],_0x4edee8[_0x21d2c3(0x194)]],['url',_0x36247d[_0x21d2c3(0x1dd)],_0x4edee8[_0x21d2c3(0x1dd)]],[_0x21d2c3(0x1f3),_0x36247d[_0x21d2c3(0x1f3)],_0x4edee8[_0x21d2c3(0x1f3)]],['sort',_0x36247d[_0x21d2c3(0x1b1)],_0x4edee8[_0x21d2c3(0x1b1)]],['resources',_0x36247d[_0x21d2c3(0x1f1)],_0x4edee8[_0x21d2c3(0x1f1)]],[_0x21d2c3(0x196),_0x36247d['resourcesValid'],_0x4edee8['resourcesValid']],[_0x21d2c3(0x1d8),_0x36247d[_0x21d2c3(0x1d8)],_0x4edee8[_0x21d2c3(0x1d8)]],[_0x21d2c3(0x1e6),_0x36247d['childrenCount'],_0x4edee8[_0x21d2c3(0x1e6)]],[_0x21d2c3(0x200),_0x36247d['pageId'],_0x4edee8[_0x21d2c3(0x200)]],[_0x21d2c3(0x1a3),_0x36247d[_0x21d2c3(0x1a3)],_0x4edee8['pageType']],[_0x21d2c3(0x1e2),_0x36247d[_0x21d2c3(0x1e2)],_0x4edee8[_0x21d2c3(0x1e2)]],[_0x21d2c3(0x1be),_0x36247d[_0x21d2c3(0x1be)],_0x4edee8[_0x21d2c3(0x1be)]],['datasetCode',_0x36247d[_0x21d2c3(0x204)],_0x4edee8[_0x21d2c3(0x204)]]];for(const [_0x3e716d,_0x23327f,_0xf5b816]of _0x29a2b4){assertVerified(sameValue(_0x23327f,_0xf5b816),_0x21d2c3(0x1e8)+_0x4edee8['id']+'\x20'+_0x3e716d+'\x20changed\x20unexpectedly.');}}function sameValue(_0x1af3a0,_0x1ad27b){const _0x20aa4d=a140_0x5d1117;if(Array[_0x20aa4d(0x1a8)](_0x1af3a0)||Array[_0x20aa4d(0x1a8)](_0x1ad27b))return JSON[_0x20aa4d(0x1fb)](_0x1af3a0)===JSON[_0x20aa4d(0x1fb)](_0x1ad27b);return _0x1af3a0===_0x1ad27b;}
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 +1 @@
1
- const a141_0x277ff9=a141_0x2629;(function(_0x5c30aa,_0x533ac1){const _0x864a39=a141_0x2629,_0x1b6ea9=_0x5c30aa();while(!![]){try{const _0x233b05=-parseInt(_0x864a39(0x1bc))/0x1*(-parseInt(_0x864a39(0x1a6))/0x2)+parseInt(_0x864a39(0x19f))/0x3+-parseInt(_0x864a39(0x1bf))/0x4+-parseInt(_0x864a39(0x1ad))/0x5+parseInt(_0x864a39(0x1a7))/0x6*(parseInt(_0x864a39(0x1a4))/0x7)+-parseInt(_0x864a39(0x1b6))/0x8*(parseInt(_0x864a39(0x1af))/0x9)+parseInt(_0x864a39(0x1b7))/0xa;if(_0x233b05===_0x533ac1)break;else _0x1b6ea9['push'](_0x1b6ea9['shift']());}catch(_0x2a10f0){_0x1b6ea9['push'](_0x1b6ea9['shift']());}}}(a141_0x8e97,0x80c9e));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a141_0x2629(_0x2b3352,_0x5799e3){_0x2b3352=_0x2b3352-0x19e;const _0x8e978b=a141_0x8e97();let _0x262944=_0x8e978b[_0x2b3352];return _0x262944;}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_0x277ff9(0x1ab);async function prepareCreate(_0x4a44ac){const _0x4eaad8=a141_0x277ff9,_0x280212=await readNotificationDocument(_0x4a44ac,_0x4eaad8(0x1b4)),_0x138af0=createMutationInput(_0x4a44ac[_0x4eaad8(0x1b5)],_0x280212);return{'document':_0x280212,'input':_0x138af0,'planned':projectNotificationConfig({'appCode':_0x4a44ac[_0x4eaad8(0x1b5)],'configName':_0x280212[_0x4eaad8(0x1c0)],'channelType':_0x280212[_0x4eaad8(0x1b2)],'endpointUrl':_0x280212[_0x4eaad8(0x1a8)],'channelConfig':_0x280212[_0x4eaad8(0x1a2)],'description':_0x280212[_0x4eaad8(0x19e)],'connectTimeout':_0x280212[_0x4eaad8(0x1a5)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x280212[_0x4eaad8(0x1a1)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x277ff9(0x1b1),'command':a141_0x277ff9(0x1b9),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a141_0x277ff9(0x1b0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x58e22a){assertSingleNotificationSource(_0x58e22a);},async 'dryRun'(_0x55d989){const _0x4067f0=a141_0x277ff9,_0x1c04e7=await prepareCreate(_0x55d989),_0x4c7341=notificationLookupCommand(_0x55d989[_0x4067f0(0x1b5)],_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1b2)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x55d989['appCode'],'configName':_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1c0)],'channelType':_0x1c04e7[_0x4067f0(0x1ba)][_0x4067f0(0x1b2)]},'before':null,'after':_0x1c04e7[_0x4067f0(0x1a0)],'dryRun':!![],'backend':{'method':_0x4067f0(0x1a3),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x4c7341}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x1e6cf){const _0x3d6e2a=a141_0x277ff9,_0x40e809=await prepareCreate(_0x1e6cf),_0x4f11c6=notificationLookupCommand(_0x1e6cf[_0x3d6e2a(0x1b5)],_0x40e809[_0x3d6e2a(0x1ba)]['channelType']);let _0x122108;try{_0x122108=await createNotificationChannelConfig(_0x40e809[_0x3d6e2a(0x1a9)]);}catch(_0x151145){if(isPlatformTransportFailure(_0x151145))throw notificationError(_0x3d6e2a(0x1ae),_0x3d6e2a(0x1b3),_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x3d6e2a(0x1b4),'mutation',_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x3d6e2a(0x1bd)](_0x122108)||_0x122108<=0x0)throw notificationError(_0x3d6e2a(0x1ae),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',_0x3d6e2a(0x1b8)+_0x4f11c6+';\x20do\x20not\x20resubmit.');let _0x4274f4;try{const _0x78463d=await getNotificationChannelConfig(_0x122108,_0x1e6cf[_0x3d6e2a(0x1b5)]);_0x4274f4=normalizeExactNotificationConfig(_0x78463d,_0x122108,_0x1e6cf[_0x3d6e2a(0x1b5)]);}catch{throw safeApiFailure(_0x3d6e2a(0x1b4),_0x3d6e2a(0x1be),'Inspect\x20with\x20'+_0x4f11c6+_0x3d6e2a(0x1aa));}return{'ok':!![],'data':{'operation':_0x3d6e2a(0x1b4),'selector':{'appCode':_0x4274f4[_0x3d6e2a(0x1b5)],'id':_0x4274f4['id'],'configCode':_0x4274f4[_0x3d6e2a(0x1ac)],'configName':_0x4274f4['configName'],'channelType':_0x4274f4[_0x3d6e2a(0x1b2)]},'before':null,'after':projectNotificationConfig(_0x4274f4),'dryRun':![],'backend':{'method':_0x3d6e2a(0x1a3),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3d6e2a(0x1bb),'lookupCommand':_0x4f11c6}},'message':'Created\x20notification\x20config\x20'+_0x4274f4['id']};}};function a141_0x8e97(){const _0x113006=['write','notification','channelType','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','create','appCode','16belbFV','6065840KupfIW','Inspect\x20with\x20','config-create','document','verified','1866EnNMYh','isSafeInteger','verification','1231072vVYHFM','configName','description','1077006RpVcNe','planned','readTimeout','channelConfig','POST','7jKfNaJ','connectTimeout','298Ltgroo','585030grPimS','endpointUrl','input',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/create','configCode','371385dZnBMi','notification_config_create_outcome_unknown','1942029wuZdif'];a141_0x8e97=function(){return _0x113006;};return a141_0x8e97();}
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 +1 @@
1
- const a142_0x20f33b=a142_0x493b;(function(_0x55c354,_0x57c580){const _0x5ecd53=a142_0x493b,_0x45735e=_0x55c354();while(!![]){try{const _0x5391d9=-parseInt(_0x5ecd53(0x16c))/0x1+parseInt(_0x5ecd53(0x16e))/0x2+-parseInt(_0x5ecd53(0x16f))/0x3+-parseInt(_0x5ecd53(0x168))/0x4+parseInt(_0x5ecd53(0x16d))/0x5*(-parseInt(_0x5ecd53(0x174))/0x6)+parseInt(_0x5ecd53(0x179))/0x7+parseInt(_0x5ecd53(0x162))/0x8;if(_0x5391d9===_0x57c580)break;else _0x45735e['push'](_0x45735e['shift']());}catch(_0x3ed773){_0x45735e['push'](_0x45735e['shift']());}}}(a142_0x3fa8,0x712a0));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_0x493b(_0x1bf6f4,_0xf34bfe){_0x1bf6f4=_0x1bf6f4-0x161;const _0x3fa819=a142_0x3fa8();let _0x493b0f=_0x3fa819[_0x1bf6f4];return _0x493b0f;}const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a142_0x20f33b(0x171);function a142_0x3fa8(){const _0x34c7b4=['channelType','11002952yYgmEK','Deleted\x20notification\x20config\x20','POST',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Notification\x20config\x20','1134608akTyej','mutation','high-risk-write','verified','587931ibGthf','25HRuKTk','696490UyxkIw','310122wkdhAz','\x20remains\x20present\x20after\x20delete.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','before','appCode','680934lyIQWu','some','config-delete','notification_config_delete_verification_failed','Inspect\x20with\x20','1976156TsCzTV','delete','notification'];a142_0x3fa8=function(){return _0x34c7b4;};return a142_0x3fa8();}async function prepareDelete(_0x5b7611){const _0x5befc2=a142_0x20f33b,_0x38fa47=readNotificationId(_0x5b7611),_0x2f0bfc=await requireExactNotificationConfig(_0x5b7611[_0x5befc2(0x173)],_0x38fa47,'delete');return{'id':_0x38fa47,'before':_0x2f0bfc};}export const notificationConfigDelete={'service':a142_0x20f33b(0x17b),'command':a142_0x20f33b(0x176),'description':a142_0x20f33b(0x166),'risk':a142_0x20f33b(0x16a),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x56caab){readNotificationId(_0x56caab),requireNotificationExplicitYes(_0x56caab);},async 'dryRun'(_0x3e7a24){const _0x5ec578=a142_0x20f33b,_0x5c40de=await prepareDelete(_0x3e7a24),_0x382977=notificationLookupCommand(_0x3e7a24[_0x5ec578(0x173)],_0x5c40de[_0x5ec578(0x172)][_0x5ec578(0x161)]);return asDryRunResult({'operation':_0x5ec578(0x17a),'selector':notificationSelector(_0x5c40de[_0x5ec578(0x172)]),'before':projectNotificationConfig(_0x5c40de[_0x5ec578(0x172)]),'after':null,'dryRun':!![],'backend':{'method':_0x5ec578(0x164),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x382977}},{'method':_0x5ec578(0x164),'url':DELETE_PATH});},async 'execute'(_0x2fc10f){const _0x1364e2=a142_0x20f33b;requireNotificationExplicitYes(_0x2fc10f);const _0x21615f=await prepareDelete(_0x2fc10f),_0x27e17a=notificationLookupCommand(_0x2fc10f[_0x1364e2(0x173)],_0x21615f['before']['channelType']);let _0x3a1989=![];try{await deleteNotificationChannelConfig(_0x21615f['id'],_0x2fc10f[_0x1364e2(0x173)]);}catch(_0x508808){if(!isPlatformTransportFailure(_0x508808))throw safeApiFailure('delete',_0x1364e2(0x169),_0x1364e2(0x178)+_0x27e17a+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x3a1989=!![];}let _0x1effb0;try{_0x1effb0=await listNotificationChannelConfigs(_0x2fc10f[_0x1364e2(0x173)],_0x21615f[_0x1364e2(0x172)][_0x1364e2(0x161)]),validateNotificationDeleteReadback(_0x1effb0,_0x2fc10f[_0x1364e2(0x173)],_0x21615f[_0x1364e2(0x172)]['channelType']);}catch{throw notificationError(_0x3a1989?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x1364e2(0x167)+_0x21615f['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x27e17a+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x1effb0[_0x1364e2(0x175)](_0x5bd600=>_0x5bd600['id']===_0x21615f['id']))throw notificationError(_0x3a1989?'notification_config_delete_outcome_unknown':_0x1364e2(0x177),_0x1364e2(0x167)+_0x21615f['id']+_0x1364e2(0x170),_0x1364e2(0x178)+_0x27e17a+_0x1364e2(0x165));const _0x7ba80d=[REFERENCE_WARNING];return _0x3a1989&&_0x7ba80d['unshift']('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x1364e2(0x17a),'selector':notificationSelector(_0x21615f['before']),'before':projectNotificationConfig(_0x21615f[_0x1364e2(0x172)]),'after':null,'dryRun':![],'backend':{'method':_0x1364e2(0x164),'path':DELETE_PATH},'warnings':_0x7ba80d,'verification':{'status':_0x1364e2(0x16b),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3a1989,'lookupCommand':_0x27e17a}},'message':_0x1364e2(0x163)+_0x21615f['id']};}};
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 +1 @@
1
- const a143_0x2acb3d=a143_0x7e12;function a143_0x30f8(){const _0x28a0dc=['3gkTUXD','3374vTPNSL','10648854xSsyQp','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','11wEIIyk','\x20notification\x20config(s)','18761090eNZEcu','985XncUXT','50239HeRRHq','6410358WPcUqp','571ixgcQM','notification','config-list','896ALfQZe','map','2457772UxcFcX','Notification\x20channel\x20type','appCode','type'];a143_0x30f8=function(){return _0x28a0dc;};return a143_0x30f8();}(function(_0x32d32d,_0x3fb047){const _0x5a1289=a143_0x7e12,_0x54057a=_0x32d32d();while(!![]){try{const _0x4fa1cb=-parseInt(_0x5a1289(0x8e))/0x1*(parseInt(_0x5a1289(0x85))/0x2)+parseInt(_0x5a1289(0x84))/0x3*(parseInt(_0x5a1289(0x93))/0x4)+parseInt(_0x5a1289(0x8b))/0x5+parseInt(_0x5a1289(0x8d))/0x6+parseInt(_0x5a1289(0x8c))/0x7*(parseInt(_0x5a1289(0x91))/0x8)+parseInt(_0x5a1289(0x86))/0x9+parseInt(_0x5a1289(0x8a))/0xa*(-parseInt(_0x5a1289(0x88))/0xb);if(_0x4fa1cb===_0x3fb047)break;else _0x54057a['push'](_0x54057a['shift']());}catch(_0x6f4661){_0x54057a['push'](_0x54057a['shift']());}}}(a143_0x30f8,0xcacd5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a143_0x7e12(_0x2f2b1c,_0x14bf24){_0x2f2b1c=_0x2f2b1c-0x81;const _0x30f8a9=a143_0x30f8();let _0x7e128=_0x30f8a9[_0x2f2b1c];return _0x7e128;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0x2acb3d(0x8f),'command':a143_0x2acb3d(0x90),'description':a143_0x2acb3d(0x87),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a143_0x2acb3d(0x83),'type':'string','description':a143_0x2acb3d(0x81),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x582145){readNotificationChannelType(_0x582145);},async 'execute'(_0xc8e69a){const _0x177df3=a143_0x2acb3d,_0x4f33d5=readNotificationChannelType(_0xc8e69a),_0x229f89=await listNotificationChannelConfigs(_0xc8e69a[_0x177df3(0x82)],_0x4f33d5),_0x5aa4a3=_0x229f89[_0x177df3(0x92)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0xc8e69a[_0x177df3(0x82)],'channelType':_0x4f33d5,'count':_0x5aa4a3['length'],'configs':_0x5aa4a3},'message':'Found\x20'+_0x5aa4a3['length']+'\x20'+_0x4f33d5+_0x177df3(0x89)};}};
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 +1 @@
1
- const a144_0x228206=a144_0x1130;(function(_0x1b95b4,_0x3f6e93){const _0x11af45=a144_0x1130,_0x3dffd3=_0x1b95b4();while(!![]){try{const _0xa6bc80=-parseInt(_0x11af45(0x76))/0x1+parseInt(_0x11af45(0x95))/0x2*(-parseInt(_0x11af45(0x96))/0x3)+parseInt(_0x11af45(0x7b))/0x4*(parseInt(_0x11af45(0x88))/0x5)+-parseInt(_0x11af45(0x8c))/0x6*(parseInt(_0x11af45(0x8e))/0x7)+-parseInt(_0x11af45(0x8f))/0x8+parseInt(_0x11af45(0x7f))/0x9*(parseInt(_0x11af45(0x73))/0xa)+-parseInt(_0x11af45(0x6f))/0xb*(-parseInt(_0x11af45(0x74))/0xc);if(_0xa6bc80===_0x3f6e93)break;else _0x3dffd3['push'](_0x3dffd3['shift']());}catch(_0x538f1f){_0x3dffd3['push'](_0x3dffd3['shift']());}}}(a144_0x4520,0x97678));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a144_0x4520(){const _0x10a6dc=['update','config-update','Inspect\x20with\x20--id\x20','6DMkHbI','\x20with\x20','3119606fQZtgf','971920jRFoNl','verifiedFields','channelType','/notification/channel-config/update','high-risk-write','appCode','6OgWTVH','762417BIOjYo','4886321kThvQa','notification_config_update_outcome_unknown','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','notification','471430OcyVTc','48tzTzrG','verified','212213VGEcmg','POST','allMatch','before','notification_config_update_verification_failed','220340prPQgr','provesChange','planned','mutation','63Algzpv','Updated\x20notification\x20config\x20','Notification\x20config\x20','Inspect\x20ID\x20',';\x20do\x20not\x20resubmit\x20automatically.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','\x20via\x20','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','5BNasfn'];a144_0x4520=function(){return _0x10a6dc;};return a144_0x4520();}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_0x228206(0x92);async function prepareUpdate(_0x195cf2){const _0xa9240=a144_0x228206,_0x49e4d3=readNotificationId(_0x195cf2),_0x4bc4fb=await readNotificationDocument(_0x195cf2,_0xa9240(0x89)),_0x1de596=await requireExactNotificationConfig(_0x195cf2['appCode'],_0x49e4d3,_0xa9240(0x89));return{'id':_0x49e4d3,'patch':_0x4bc4fb,'before':_0x1de596,'payload':mergeUpdateInput(_0x1de596,_0x4bc4fb),'planned':plannedUpdateProjection(_0x1de596,_0x4bc4fb)};}function a144_0x1130(_0x3bb410,_0x293353){_0x3bb410=_0x3bb410-0x6f;const _0x45202f=a144_0x4520();let _0x1130cf=_0x45202f[_0x3bb410];return _0x1130cf;}export const notificationConfigUpdate={'service':a144_0x228206(0x72),'command':a144_0x228206(0x8a),'description':a144_0x228206(0x71),'risk':a144_0x228206(0x93),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x38adf6){readNotificationId(_0x38adf6),assertSingleNotificationSource(_0x38adf6),requireNotificationExplicitYes(_0x38adf6);},async 'dryRun'(_0x40f60d){const _0x43eaa3=a144_0x228206,_0x22facc=await prepareUpdate(_0x40f60d),_0xd2b8aa=notificationLookupCommand(_0x40f60d[_0x43eaa3(0x94)],_0x22facc[_0x43eaa3(0x79)][_0x43eaa3(0x91)]);return asDryRunResult({'operation':_0x43eaa3(0x89),'selector':notificationSelector(_0x22facc[_0x43eaa3(0x79)]),'before':projectNotificationConfig(_0x22facc['before']),'after':_0x22facc['planned'],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x43eaa3(0x7d),'lookupCommand':_0xd2b8aa}},{'method':_0x43eaa3(0x77),'url':UPDATE_PATH});},async 'execute'(_0x1e65b3){const _0x21f8f7=a144_0x228206;requireNotificationExplicitYes(_0x1e65b3);const _0x704222=await prepareUpdate(_0x1e65b3),_0x3f1413=notificationLookupCommand(_0x1e65b3[_0x21f8f7(0x94)],_0x704222[_0x21f8f7(0x79)][_0x21f8f7(0x91)]);let _0x599a02=![];try{await updateNotificationChannelConfig(_0x704222['payload']);}catch(_0x5368e9){if(!isPlatformTransportFailure(_0x5368e9))throw safeApiFailure('update',_0x21f8f7(0x7e),_0x21f8f7(0x82)+_0x704222['id']+_0x21f8f7(0x8d)+_0x3f1413+_0x21f8f7(0x84));_0x599a02=!![];}let _0x549950;try{const _0x3c09c2=await getNotificationChannelConfig(_0x704222['id'],_0x1e65b3[_0x21f8f7(0x94)]);_0x549950=normalizeExactNotificationConfig(_0x3c09c2,_0x704222['id'],_0x1e65b3[_0x21f8f7(0x94)]);}catch{throw notificationError(_0x599a02?'notification_config_update_outcome_unknown':'notification_config_update_verification_unavailable',_0x21f8f7(0x81)+_0x704222['id']+_0x21f8f7(0x87),_0x21f8f7(0x8b)+_0x704222['id']+_0x21f8f7(0x86)+_0x3f1413+_0x21f8f7(0x83));}const _0x16ce88=requestedSafeFieldsMatch(_0x704222['before'],_0x549950,_0x704222['patch']);if(!_0x16ce88[_0x21f8f7(0x78)]||_0x599a02&&!_0x16ce88[_0x21f8f7(0x7c)])throw notificationError(_0x599a02?_0x21f8f7(0x70):_0x21f8f7(0x7a),'Notification\x20config\x20'+_0x704222['id']+_0x21f8f7(0x85),'Inspect\x20with\x20--id\x20'+_0x704222['id']+'\x20via\x20'+_0x3f1413+_0x21f8f7(0x83));const _0x40a1a1=_0x599a02?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x21f8f7(0x89),'selector':notificationSelector(_0x549950),'before':projectNotificationConfig(_0x704222[_0x21f8f7(0x79)]),'after':projectNotificationConfig(_0x549950),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x40a1a1,'verification':{'status':_0x21f8f7(0x75),'recoveredAfterUnknownResponse':_0x599a02,'verifiedFields':_0x16ce88[_0x21f8f7(0x90)],'lookupCommand':_0x3f1413}},'message':_0x21f8f7(0x80)+_0x549950['id']};}};
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 +1 @@
1
- function a145_0x2c97(){const _0x121da9=['7oKUCuX','1722743UyxWHW','4831450qYaLOj','9llZyvw','128AgRSaK','5759862ZjSYQX','2556584YLLOmB','23396TDIESU','7325336NsonfF','20elXCvz','681144gGsbyX'];a145_0x2c97=function(){return _0x121da9;};return a145_0x2c97();}(function(_0x117370,_0x2dcb41){const _0x2b2f0f=a145_0x31b6,_0x151433=_0x117370();while(!![]){try{const _0x32aa12=parseInt(_0x2b2f0f(0x13b))/0x1*(-parseInt(_0x2b2f0f(0x13e))/0x2)+-parseInt(_0x2b2f0f(0x136))/0x3+-parseInt(_0x2b2f0f(0x13d))/0x4+parseInt(_0x2b2f0f(0x139))/0x5+-parseInt(_0x2b2f0f(0x13c))/0x6*(-parseInt(_0x2b2f0f(0x137))/0x7)+parseInt(_0x2b2f0f(0x13f))/0x8*(parseInt(_0x2b2f0f(0x13a))/0x9)+parseInt(_0x2b2f0f(0x140))/0xa*(parseInt(_0x2b2f0f(0x138))/0xb);if(_0x32aa12===_0x2dcb41)break;else _0x151433['push'](_0x151433['shift']());}catch(_0x39bd10){_0x151433['push'](_0x151433['shift']());}}}(a145_0x2c97,0xc1446));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a145_0x31b6(_0x12df74,_0x4692b8){_0x12df74=_0x12df74-0x136;const _0x2c973d=a145_0x2c97();let _0x31b683=_0x2c973d[_0x12df74];return _0x31b683;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
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 +1 @@
1
- const a146_0xff8015=a146_0x4049;(function(_0x35bb52,_0xebc772){const _0x248931=a146_0x4049,_0x93dee4=_0x35bb52();while(!![]){try{const _0x1bc83d=-parseInt(_0x248931(0x173))/0x1*(-parseInt(_0x248931(0x152))/0x2)+-parseInt(_0x248931(0x185))/0x3*(parseInt(_0x248931(0x17a))/0x4)+-parseInt(_0x248931(0x17b))/0x5*(parseInt(_0x248931(0x166))/0x6)+parseInt(_0x248931(0x183))/0x7*(parseInt(_0x248931(0x174))/0x8)+-parseInt(_0x248931(0x194))/0x9*(parseInt(_0x248931(0x17c))/0xa)+-parseInt(_0x248931(0x15f))/0xb*(parseInt(_0x248931(0x134))/0xc)+parseInt(_0x248931(0x14b))/0xd*(parseInt(_0x248931(0x130))/0xe);if(_0x1bc83d===_0xebc772)break;else _0x93dee4['push'](_0x93dee4['shift']());}catch(_0x21e7a9){_0x93dee4['push'](_0x93dee4['shift']());}}}(a146_0x36c1,0x3e0fa));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=[a146_0xff8015(0x188),'FEISHU','DINGTALK',a146_0xff8015(0x150),a146_0xff8015(0x167)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0xff8015(0x165),'channelType',a146_0xff8015(0x148),a146_0xff8015(0x161),a146_0xff8015(0x184),a146_0xff8015(0x15c),'readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0xff8015(0x12a),a146_0xff8015(0x182),a146_0xff8015(0x15a)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a146_0xff8015(0x19e),'ccList',a146_0xff8015(0x18d),'replyTo','subjectPrefix',a146_0xff8015(0x16a),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0xff8015(0x18f),'type':a146_0xff8015(0x13f),'required':![],'description':a146_0xff8015(0x151)},{'name':'stdin','type':a146_0xff8015(0x125),'required':![],'default':![],'description':a146_0xff8015(0x120)},{'name':'from-env','type':a146_0xff8015(0x13f),'required':![],'description':a146_0xff8015(0x129)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0xff8015(0x195),'required':!![],'description':a146_0xff8015(0x18a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3b37b9,_0xa441fe,_0x23c4c8){return new CliError(_0x3b37b9,0x1,_0xa441fe,_0x23c4c8);}export function readNotificationId(_0x3680ad){const _0x24c0c0=a146_0xff8015,_0x4c452c=_0x3680ad[_0x24c0c0(0x180)]('id');if(!Number['isSafeInteger'](_0x4c452c)||_0x4c452c<=0x0)throw notificationError(_0x24c0c0(0x131),_0x24c0c0(0x11e));return _0x4c452c;}export function requireNotificationExplicitYes(_0x1928e5){const _0x5c6492=a146_0xff8015;if(_0x1928e5['bool'](_0x5c6492(0x11f))||_0x1928e5[_0x5c6492(0x191)](_0x5c6492(0x17d)))return;throw notificationError(_0x5c6492(0x177),'This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x37c25d,_0x513997=a146_0xff8015(0x16f),_0x251c6f=a146_0xff8015(0x188)){const _0x22355b=a146_0xff8015,_0x558fa7=_0x37c25d['str'](_0x513997)['trim']()||_0x251c6f;if(!NOTIFICATION_CHANNEL_TYPES[_0x22355b(0x171)](_0x558fa7))throw CliErrors[_0x22355b(0x189)](_0x22355b(0x132)+_0x513997+':\x20'+_0x558fa7,_0x22355b(0x179)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x558fa7;}export function assertSingleNotificationSource(_0x2fd9ee){const _0x4cf4e1=a146_0xff8015,_0x2b1de1=[],_0x4ceac2=_0x2fd9ee[_0x4cf4e1(0x157)](_0x4cf4e1(0x18f))[_0x4cf4e1(0x123)]();if(_0x4ceac2)_0x2b1de1[_0x4cf4e1(0x156)]({'kind':_0x4cf4e1(0x18f),'path':_0x4ceac2});if(_0x2fd9ee[_0x4cf4e1(0x191)](_0x4cf4e1(0x122)))_0x2b1de1['push']({'kind':'stdin'});const _0x4af7c0=_0x2fd9ee[_0x4cf4e1(0x157)](_0x4cf4e1(0x14c))[_0x4cf4e1(0x123)]();if(_0x4af7c0)_0x2b1de1[_0x4cf4e1(0x156)]({'kind':'env','name':_0x4af7c0});if(_0x2b1de1[_0x4cf4e1(0x199)]===0x0)throw CliErrors['validation'](_0x4cf4e1(0x121),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x2b1de1[_0x4cf4e1(0x199)]>0x1)throw CliErrors[_0x4cf4e1(0x189)]('Notification\x20JSON\x20source\x20is\x20ambiguous.','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');return _0x2b1de1[0x0];}export async function readNotificationDocument(_0x49f958,_0x2e8f95){const _0x1b489b=a146_0xff8015,_0x33697d=assertSingleNotificationSource(_0x49f958),_0x959fb2=_0x33697d['kind']===_0x1b489b(0x18f)?_0x1b489b(0x140)+_0x33697d[_0x1b489b(0x17f)]:_0x33697d[_0x1b489b(0x136)]===_0x1b489b(0x14a)?_0x1b489b(0x187)+_0x33697d[_0x1b489b(0x13a)]:_0x1b489b(0x122);let _0x2fb1b1;try{if(_0x33697d['kind']==='file')_0x2fb1b1=await readFile(_0x33697d[_0x1b489b(0x17f)],_0x1b489b(0x137));else{if(_0x33697d['kind']==='env'){if(!(_0x33697d[_0x1b489b(0x13a)]in process.env))throw notificationError('notification_config_source_unavailable',_0x1b489b(0x149)+_0x33697d[_0x1b489b(0x13a)]);_0x2fb1b1=process.env[_0x33697d.name]??'';}else _0x2fb1b1=await readStdin();}}catch(_0x515fd0){if(_0x515fd0 instanceof CliError)throw _0x515fd0;throw notificationError(_0x1b489b(0x146),'Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'+_0x959fb2+'.');}let _0x14ae77;try{_0x14ae77=JSON['parse'](_0x2fb1b1);}catch{throw notificationError(_0x1b489b(0x176),_0x1b489b(0x126)+_0x959fb2+_0x1b489b(0x162),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x14ae77))throw notificationError(_0x1b489b(0x176),_0x1b489b(0x126)+_0x959fb2+_0x1b489b(0x16b));return validateNotificationDocument(_0x14ae77,_0x2e8f95);}export function projectNotificationListConfig(_0xdc5262,_0x2bee26){const _0x12ff3b=a146_0xff8015;return{'id':typeof _0xdc5262['id']===_0x12ff3b(0x195)?_0xdc5262['id']:null,'configCode':requireResponseString(_0xdc5262[_0x12ff3b(0x182)],_0x12ff3b(0x182),_0x2bee26),'configName':requireResponseString(_0xdc5262[_0x12ff3b(0x165)],_0x12ff3b(0x165),_0x2bee26),'channelType':requireResponseString(_0xdc5262[_0x12ff3b(0x13b)],_0x12ff3b(0x13b),_0x2bee26),'description':normalizeNullableString(_0xdc5262['description']),'createTime':normalizeNullableString(_0xdc5262[_0x12ff3b(0x193)]),'updateTime':normalizeNullableString(_0xdc5262['updateTime'])};}export function normalizeExactNotificationConfig(_0x4ebe85,_0x3ade1c,_0x147283){const _0x1daebe=a146_0xff8015;if(!Number['isSafeInteger'](_0x4ebe85['id'])||_0x4ebe85['id']!==_0x3ade1c)throw notificationError('notification_config_response_invalid','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x3ade1c+'.');if(_0x4ebe85[_0x1daebe(0x12a)]!==_0x147283)throw notificationError(_0x1daebe(0x154),_0x1daebe(0x19b)+_0x3ade1c+_0x1daebe(0x128));const _0xf213a9=requireExactString(_0x4ebe85[_0x1daebe(0x165)],_0x1daebe(0x165),_0x3ade1c),_0x5a4db3=requireExactString(_0x4ebe85[_0x1daebe(0x182)],_0x1daebe(0x182),_0x3ade1c),_0x151840=requireExactString(_0x4ebe85[_0x1daebe(0x13b)],_0x1daebe(0x13b),_0x3ade1c);if(!NOTIFICATION_CHANNEL_TYPES[_0x1daebe(0x171)](_0x151840))throw notificationError(_0x1daebe(0x154),_0x1daebe(0x19b)+_0x3ade1c+_0x1daebe(0x141));const _0x4e6fe5=responseNullableString(_0x4ebe85['endpointUrl'],'endpointUrl',_0x3ade1c),_0x3179b6=responseNullableString(_0x4ebe85[_0x1daebe(0x161)],'channelConfig',_0x3ade1c),_0x1afc95=responseNullableString(_0x4ebe85[_0x1daebe(0x184)],_0x1daebe(0x184),_0x3ade1c),_0x1d5bed=responseNullableTimeout(_0x4ebe85[_0x1daebe(0x15c)],'connectTimeout',_0x3ade1c),_0x50870c=responseNullableTimeout(_0x4ebe85['readTimeout'],'readTimeout',_0x3ade1c);return{'id':_0x3ade1c,'appCode':_0x147283,'configCode':_0x5a4db3,'configName':_0xf213a9,'channelType':_0x151840,'endpointUrl':redactSensitive(_0x4e6fe5),'channelConfig':redactSensitive(_0x3179b6),'description':_0x1afc95,'connectTimeout':_0x1d5bed,'readTimeout':_0x50870c,'endpointUrlRaw':_0x4e6fe5,'channelConfigRaw':_0x3179b6};}export async function requireExactNotificationConfig(_0x18233b,_0x4d8a82,_0x465775){const _0x313b55=a146_0xff8015;let _0x51ed58;try{_0x51ed58=await getNotificationChannelConfig(_0x4d8a82,_0x18233b);}catch{throw safeApiFailure(_0x465775,'preflight','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x18233b+_0x313b55(0x186));}return normalizeExactNotificationConfig(_0x51ed58,_0x4d8a82,_0x18233b);}export function projectNotificationConfig(_0x374e03){const _0x3bcb08=a146_0xff8015;return{'id':_0x374e03['id']??null,'appCode':_0x374e03[_0x3bcb08(0x12a)],'configCode':_0x374e03['configCode']??null,'configName':_0x374e03[_0x3bcb08(0x165)],'channelType':_0x374e03[_0x3bcb08(0x13b)],'endpointUrl':redactSensitive(_0x374e03[_0x3bcb08(0x148)]),'channelConfig':redactSensitive(_0x374e03[_0x3bcb08(0x161)]),'description':_0x374e03[_0x3bcb08(0x184)]??null,'connectTimeout':_0x374e03[_0x3bcb08(0x15c)]??null,'readTimeout':_0x374e03[_0x3bcb08(0x16c)]??null};}export function notificationSelector(_0x37e08f){const _0x3a9a8a=a146_0xff8015;return{'appCode':_0x37e08f[_0x3a9a8a(0x12a)],'id':_0x37e08f['id'],'configCode':_0x37e08f['configCode'],'configName':_0x37e08f[_0x3a9a8a(0x165)],'channelType':_0x37e08f[_0x3a9a8a(0x13b)]};}export function createMutationInput(_0x74b72a,_0x3c40e9){const _0x270204=a146_0xff8015;return{'appCode':_0x74b72a,'configName':_0x3c40e9[_0x270204(0x165)],'channelType':_0x3c40e9['channelType'],...hasOwn(_0x3c40e9,_0x270204(0x148))?{'endpointUrl':_0x3c40e9[_0x270204(0x148)]}:{},...hasOwn(_0x3c40e9,_0x270204(0x161))?{'channelConfig':serializeChannelConfig(_0x3c40e9[_0x270204(0x161)])}:{},...hasOwn(_0x3c40e9,'description')?{'description':_0x3c40e9[_0x270204(0x184)]}:{},...hasOwn(_0x3c40e9,_0x270204(0x15c))?{'connectTimeout':_0x3c40e9['connectTimeout']}:{},...hasOwn(_0x3c40e9,_0x270204(0x16c))?{'readTimeout':_0x3c40e9[_0x270204(0x16c)]}:{}};}export function mergeUpdateInput(_0x59eddd,_0x58648a){const _0x116365=a146_0xff8015;return{'id':_0x59eddd['id'],'appCode':_0x59eddd[_0x116365(0x12a)],'configName':_0x58648a[_0x116365(0x165)]??_0x59eddd['configName'],'channelType':_0x58648a['channelType']??_0x59eddd[_0x116365(0x13b)],'endpointUrl':hasOwn(_0x58648a,_0x116365(0x148))?_0x58648a['endpointUrl']:_0x59eddd[_0x116365(0x196)],'channelConfig':hasOwn(_0x58648a,_0x116365(0x161))?serializeChannelConfig(_0x58648a['channelConfig']):_0x59eddd[_0x116365(0x175)],'description':hasOwn(_0x58648a,'description')?_0x58648a[_0x116365(0x184)]:_0x59eddd[_0x116365(0x184)],'connectTimeout':hasOwn(_0x58648a,_0x116365(0x15c))?_0x58648a[_0x116365(0x15c)]:_0x59eddd[_0x116365(0x15c)],'readTimeout':hasOwn(_0x58648a,_0x116365(0x16c))?_0x58648a[_0x116365(0x16c)]:_0x59eddd[_0x116365(0x16c)]};}export function plannedUpdateProjection(_0x3250f2,_0x29a47d){const _0x595f67=a146_0xff8015;return projectNotificationConfig({'id':_0x3250f2['id'],'appCode':_0x3250f2[_0x595f67(0x12a)],'configCode':_0x3250f2[_0x595f67(0x182)],'configName':_0x29a47d[_0x595f67(0x165)]??_0x3250f2['configName'],'channelType':_0x29a47d[_0x595f67(0x13b)]??_0x3250f2[_0x595f67(0x13b)],'endpointUrl':hasOwn(_0x29a47d,_0x595f67(0x148))?_0x29a47d[_0x595f67(0x148)]:_0x3250f2[_0x595f67(0x196)],'channelConfig':hasOwn(_0x29a47d,_0x595f67(0x161))?_0x29a47d[_0x595f67(0x161)]:_0x3250f2[_0x595f67(0x175)],'description':hasOwn(_0x29a47d,'description')?_0x29a47d[_0x595f67(0x184)]:_0x3250f2['description'],'connectTimeout':hasOwn(_0x29a47d,_0x595f67(0x15c))?_0x29a47d[_0x595f67(0x15c)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3250f2[_0x595f67(0x15c)],'readTimeout':hasOwn(_0x29a47d,_0x595f67(0x16c))?_0x29a47d[_0x595f67(0x16c)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3250f2['readTimeout']});}export function requestedSafeFieldsMatch(_0x80f8ef,_0x143af1,_0x2da8e9){const _0x219c7a=a146_0xff8015,_0x1208f2=[],_0x32fc40=[],_0x207bb5=[];for(const _0x1c48c2 of[_0x219c7a(0x165),_0x219c7a(0x13b),_0x219c7a(0x184)]){if(!hasOwn(_0x2da8e9,_0x1c48c2))continue;_0x207bb5[_0x219c7a(0x156)](_0x1c48c2),_0x1208f2[_0x219c7a(0x156)](_0x143af1[_0x1c48c2]===_0x2da8e9[_0x1c48c2]),_0x32fc40[_0x219c7a(0x156)](_0x80f8ef[_0x1c48c2]!==_0x2da8e9[_0x1c48c2]&&_0x143af1[_0x1c48c2]===_0x2da8e9[_0x1c48c2]);}for(const _0x2d0e25 of[_0x219c7a(0x15c),_0x219c7a(0x16c)]){if(!hasOwn(_0x2da8e9,_0x2d0e25))continue;const _0x2a7fd6=_0x2da8e9[_0x2d0e25]??(_0x2d0e25===_0x219c7a(0x15c)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x207bb5[_0x219c7a(0x156)](_0x2d0e25),_0x1208f2['push'](_0x143af1[_0x2d0e25]===_0x2a7fd6),_0x32fc40['push'](_0x80f8ef[_0x2d0e25]!==_0x2a7fd6&&_0x143af1[_0x2d0e25]===_0x2a7fd6);}return hasOwn(_0x2da8e9,_0x219c7a(0x148))&&_0x2da8e9[_0x219c7a(0x148)]===null&&(_0x207bb5[_0x219c7a(0x156)](_0x219c7a(0x11d)),_0x1208f2[_0x219c7a(0x156)](_0x143af1[_0x219c7a(0x196)]===null||_0x143af1['endpointUrlRaw']===''),_0x32fc40['push'](_0x80f8ef[_0x219c7a(0x196)]!==null&&_0x80f8ef[_0x219c7a(0x196)]!==''&&(_0x143af1[_0x219c7a(0x196)]===null||_0x143af1[_0x219c7a(0x196)]===''))),{'allMatch':_0x1208f2[_0x219c7a(0x14f)](Boolean),'provesChange':_0x32fc40['some'](Boolean),'verifiedFields':_0x207bb5};}function a146_0x4049(_0x41ff87,_0x446c97){_0x41ff87=_0x41ff87-0x11c;const _0x36c149=a146_0x36c1();let _0x404924=_0x36c149[_0x41ff87];return _0x404924;}export function validateNotificationDeleteReadback(_0x176c00,_0x33c1a2,_0x1dec1e){const _0x2c30aa=a146_0xff8015;for(const [_0x19de13,_0x593e1f]of _0x176c00[_0x2c30aa(0x19a)]()){if(!Number[_0x2c30aa(0x14d)](_0x593e1f['id'])||_0x593e1f['id']<=0x0)throw notificationError(_0x2c30aa(0x154),_0x2c30aa(0x135)+(_0x19de13+0x1)+_0x2c30aa(0x1a0));if(_0x593e1f[_0x2c30aa(0x12a)]!==_0x33c1a2)throw notificationError(_0x2c30aa(0x154),_0x2c30aa(0x135)+(_0x19de13+0x1)+_0x2c30aa(0x164));if(_0x593e1f[_0x2c30aa(0x13b)]!==_0x1dec1e)throw notificationError('notification_config_response_invalid',_0x2c30aa(0x135)+(_0x19de13+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x535810,_0x16bc25,_0x4e66c8){const _0x10c12c=a146_0xff8015;return notificationError(_0x10c12c(0x12d)+_0x535810+'_'+(_0x16bc25===_0x10c12c(0x145)?_0x10c12c(0x138):_0x16bc25+_0x10c12c(0x139)),_0x10c12c(0x19b)+_0x535810+'\x20'+_0x16bc25+_0x10c12c(0x15d),_0x4e66c8);}export function notificationLookupCommand(_0x4b6b9a,_0x2f1499){const _0x1632e1=a146_0xff8015;return _0x1632e1(0x127)+_0x4b6b9a+_0x1632e1(0x178)+_0x2f1499+_0x1632e1(0x19d);}function validateNotificationDocument(_0x437acd,_0x569a02){const _0x15857d=a146_0xff8015;for(const _0x35e912 of Object[_0x15857d(0x11c)](_0x437acd)){if(FORBIDDEN_IDENTITY_FIELDS[_0x15857d(0x168)](_0x35e912))throw notificationError(_0x15857d(0x15b),'Notification\x20JSON\x20field\x20\x22'+_0x35e912+_0x15857d(0x147));if(!ALLOWED_INPUT_FIELDS[_0x15857d(0x168)](_0x35e912))throw notificationError(_0x15857d(0x192),_0x15857d(0x19f)+_0x35e912+'\x22.');}if(_0x569a02===_0x15857d(0x190)&&Object['keys'](_0x437acd)[_0x15857d(0x199)]===0x0)throw notificationError('notification_config_update_empty',_0x15857d(0x12e));const _0x53e9cc={};if(hasOwn(_0x437acd,_0x15857d(0x165)))_0x53e9cc[_0x15857d(0x165)]=validateRequiredString(_0x437acd[_0x15857d(0x165)],_0x15857d(0x165),0x80);else{if(_0x569a02==='create')throw notificationError(_0x15857d(0x14e),_0x15857d(0x163)+_0x15857d(0x133));}if(hasOwn(_0x437acd,'channelType')){if(typeof _0x437acd['channelType']!==_0x15857d(0x13f))throw invalidFieldType(_0x15857d(0x13b),_0x15857d(0x13c));const _0x3c00f3=_0x437acd[_0x15857d(0x13b)][_0x15857d(0x123)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x15857d(0x171)](_0x3c00f3))throw notificationError(_0x15857d(0x18c),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x15857d(0x169)](',\x20')+'.');_0x53e9cc[_0x15857d(0x13b)]=_0x3c00f3;}else{if(_0x569a02===_0x15857d(0x170))throw notificationError(_0x15857d(0x14e),_0x15857d(0x163)+_0x15857d(0x13e));}for(const [_0x22a075,_0x6e1cca]of[['endpointUrl',0x200],[_0x15857d(0x184),0x100]]){if(!hasOwn(_0x437acd,_0x22a075))continue;const _0x19e029=_0x437acd[_0x22a075];if(_0x19e029!==null&&typeof _0x19e029!==_0x15857d(0x13f))throw invalidFieldType(_0x22a075,_0x15857d(0x142));if(typeof _0x19e029==='string'&&_0x19e029[_0x15857d(0x199)]>_0x6e1cca)throw notificationError(_0x15857d(0x18c),_0x15857d(0x12c)+_0x22a075+_0x15857d(0x124)+_0x6e1cca+_0x15857d(0x172));_0x53e9cc[_0x22a075]=_0x19e029;}if(hasOwn(_0x437acd,'channelConfig')){const _0x53fe48=_0x437acd[_0x15857d(0x161)];if(_0x53fe48===null&&_0x569a02===_0x15857d(0x170))throw invalidFieldType(_0x15857d(0x161),'a\x20JSON\x20object');if(_0x53fe48!==null&&!isJsonObject(_0x53fe48))throw invalidFieldType(_0x15857d(0x161),_0x569a02===_0x15857d(0x190)?_0x15857d(0x17e):_0x15857d(0x13d));_0x53fe48!==null&&validateChannelConfigFields(_0x53e9cc[_0x15857d(0x13b)],_0x53fe48),_0x53e9cc[_0x15857d(0x161)]=_0x53fe48;}for(const _0x264000 of[_0x15857d(0x15c),'readTimeout']){if(!hasOwn(_0x437acd,_0x264000))continue;const _0x1f7d88=_0x437acd[_0x264000];if(_0x1f7d88!==null&&(!Number[_0x15857d(0x14d)](_0x1f7d88)||_0x1f7d88<0x0))throw notificationError('notification_config_field_invalid',_0x15857d(0x12c)+_0x264000+_0x15857d(0x153));_0x53e9cc[_0x264000]=_0x1f7d88;}return _0x53e9cc;}function validateRequiredString(_0x3268bd,_0x2985de,_0x25d941){const _0x547add=a146_0xff8015;if(typeof _0x3268bd!==_0x547add(0x13f))throw invalidFieldType(_0x2985de,_0x547add(0x19c));const _0xf64dda=_0x3268bd[_0x547add(0x123)]();if(!_0xf64dda)throw notificationError(_0x547add(0x18c),'Notification\x20JSON\x20field\x20\x22'+_0x2985de+_0x547add(0x197));if(_0xf64dda['length']>_0x25d941)throw notificationError('notification_config_field_invalid',_0x547add(0x12c)+_0x2985de+_0x547add(0x124)+_0x25d941+_0x547add(0x172));return _0xf64dda;}function a146_0x36c1(){const _0x4b0742=['\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','notification_config_response_invalid','hasOwnProperty','push','str','stringify','messageTemplate','channelCode','notification_config_field_forbidden','connectTimeout','\x20failed.','apiError','2687729BdFtmx','\x20has\x20invalid\x20field\x20\x22','channelConfig','\x20is\x20invalid.','Create\x20JSON\x20requires\x20field\x20','\x20has\x20an\x20invalid\x20appCode.','configName','6IcpTGh','WEBHOOK','has','join','fromName','\x20must\x20be\x20an\x20object.','readTimeout','object','notification_config_channel_field_forbidden','type','create','includes','\x20characters.','2272ipZnzZ','1294152Fjprsd','channelConfigRaw','notification_config_json_invalid','notification_config_confirmation_required','\x20--type\x20','Allowed\x20values:\x20','1938688eroDFj','2200235hGtYiT','129830XgFuyt','yes','a\x20JSON\x20object\x20or\x20null','path','num','setEncoding','configCode','14JVsbgT','description','3lspwQa','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','environment\x20variable\x20','EMAIL','validation','Application-level\x20notification\x20config\x20ID','call','notification_config_field_invalid','bccList','\x20is\x20missing\x20required\x20field\x20\x22','file','update','bool','notification_config_field_unknown','createTime','153wWbYeK','number','endpointUrlRaw','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Item\x20','length','entries','Notification\x20config\x20','a\x20non-empty\x20string','\x20--format\x20compress','recipients','Unknown\x20notification\x20JSON\x20field\x20\x22','\x20has\x20an\x20invalid\x20id.','keys','endpointUrl:null','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','dry-run','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','Missing\x20notification\x20JSON\x20source.','stdin','trim','\x22\x20cannot\x20exceed\x20','boolean','Notification\x20JSON\x20from\x20','rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','appCode','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Notification\x20JSON\x20field\x20\x22','notification_config_','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','\x22\x20must\x20be\x20','322dIUxOB','notification_config_id_invalid','Invalid\x20--','\x22configName\x22.','12kxpnOq','Notification\x20config\x20list\x20item\x20','kind','utf8','failed','_unavailable','name','channelType','a\x20supported\x20string','a\x20JSON\x20object','\x22channelType\x22.','string','file\x20','\x20has\x20an\x20unsupported\x20channelType.','a\x20string\x20or\x20null','\x22\x20is\x20forbidden.','<redacted>','mutation','notification_config_source_unavailable','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','endpointUrl','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','env','563979Fbqmvj','from-env','isSafeInteger','notification_config_field_required','every','WECOM','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','284gPpKZb'];a146_0x36c1=function(){return _0x4b0742;};return a146_0x36c1();}function validateChannelConfigFields(_0x59ab90,_0x566c51){const _0x4a62e1=a146_0xff8015;if(hasOwn(_0x566c51,_0x4a62e1(0x159)))throw forbiddenChannelConfigField('messageTemplate');if(_0x59ab90===_0x4a62e1(0x188))for(const _0x386b3f of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x566c51,_0x386b3f))throw forbiddenChannelConfigField(_0x386b3f);}}function forbiddenChannelConfigField(_0x4607ba){const _0x28ae20=a146_0xff8015;return notificationError(_0x28ae20(0x16e),_0x28ae20(0x12b)+_0x4607ba+_0x28ae20(0x143));}function invalidFieldType(_0x49d718,_0x31acc9){const _0xae7fae=a146_0xff8015;return notificationError(_0xae7fae(0x18c),'Notification\x20JSON\x20field\x20\x22'+_0x49d718+_0xae7fae(0x12f)+_0x31acc9+'.');}function serializeChannelConfig(_0x36a005){const _0x1bb80f=a146_0xff8015;return _0x36a005===null||_0x36a005===undefined?null:JSON[_0x1bb80f(0x158)](_0x36a005);}function redactSensitive(_0x1fc64c){const _0x325839=a146_0xff8015;return _0x1fc64c===null||_0x1fc64c===undefined||_0x1fc64c===''?null:_0x325839(0x144);}function requireResponseString(_0x2df60b,_0x4a8005,_0x798535){const _0x5d9755=a146_0xff8015;if(typeof _0x2df60b!=='string'||_0x2df60b[_0x5d9755(0x123)]()==='')throw CliErrors[_0x5d9755(0x15e)]('Invalid\x20notification\x20config\x20response.',_0x5d9755(0x198)+(_0x798535+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x4a8005+'\x22.');return _0x2df60b[_0x5d9755(0x123)]();}function requireExactString(_0x35e7fb,_0x1f86f6,_0x271420){const _0x23eb7a=a146_0xff8015;if(typeof _0x35e7fb!==_0x23eb7a(0x13f)||_0x35e7fb['trim']()==='')throw notificationError(_0x23eb7a(0x154),'Notification\x20config\x20'+_0x271420+_0x23eb7a(0x18e)+_0x1f86f6+'\x22.');return _0x35e7fb[_0x23eb7a(0x123)]();}function responseNullableString(_0x4c1f6b,_0x3034b1,_0x38de6a){const _0x1667a6=a146_0xff8015;if(_0x4c1f6b===undefined||_0x4c1f6b===null)return null;if(typeof _0x4c1f6b!==_0x1667a6(0x13f))throw notificationError(_0x1667a6(0x154),_0x1667a6(0x19b)+_0x38de6a+_0x1667a6(0x160)+_0x3034b1+'\x22.');return _0x4c1f6b;}function responseNullableTimeout(_0x3d8900,_0x1b7741,_0x309596){const _0x132dbf=a146_0xff8015;if(_0x3d8900===undefined||_0x3d8900===null)return null;if(!Number[_0x132dbf(0x14d)](_0x3d8900)||_0x3d8900<0x0)throw notificationError(_0x132dbf(0x154),'Notification\x20config\x20'+_0x309596+_0x132dbf(0x160)+_0x1b7741+'\x22.');return _0x3d8900;}function normalizeNullableString(_0x97ab0){const _0x386e20=a146_0xff8015;return typeof _0x97ab0===_0x386e20(0x13f)?_0x97ab0:null;}function isJsonObject(_0x14d53d){const _0x2fe518=a146_0xff8015;return _0x14d53d!==null&&typeof _0x14d53d===_0x2fe518(0x16d)&&!Array['isArray'](_0x14d53d);}function hasOwn(_0x2b39f8,_0x3955f1){const _0x5cd38d=a146_0xff8015;return Object['prototype'][_0x5cd38d(0x155)][_0x5cd38d(0x18b)](_0x2b39f8,_0x3955f1);}async function readStdin(){const _0x28daf5=a146_0xff8015;let _0x7b8d2c='';process[_0x28daf5(0x122)][_0x28daf5(0x181)]('utf8');for await(const _0x3cf4e2 of process[_0x28daf5(0x122)])_0x7b8d2c+=_0x3cf4e2;return _0x7b8d2c;}
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 +1 @@
1
- const a147_0x4886ce=a147_0xfc4a;function a147_0xfc4a(_0x3394c9,_0x140d4e){_0x3394c9=_0x3394c9-0x86;const _0x5d66f9=a147_0x5d66();let _0xfc4aee=_0x5d66f9[_0x3394c9];return _0xfc4aee;}(function(_0x1e676b,_0x46bf10){const _0x3e252b=a147_0xfc4a,_0x222ccf=_0x1e676b();while(!![]){try{const _0xb5a2be=parseInt(_0x3e252b(0xa3))/0x1*(parseInt(_0x3e252b(0xbd))/0x2)+-parseInt(_0x3e252b(0x8d))/0x3*(parseInt(_0x3e252b(0x8e))/0x4)+parseInt(_0x3e252b(0x95))/0x5*(-parseInt(_0x3e252b(0x86))/0x6)+parseInt(_0x3e252b(0xb5))/0x7+parseInt(_0x3e252b(0xa2))/0x8+-parseInt(_0x3e252b(0xb8))/0x9+parseInt(_0x3e252b(0xb6))/0xa;if(_0xb5a2be===_0x46bf10)break;else _0x222ccf['push'](_0x222ccf['shift']());}catch(_0x22db16){_0x222ccf['push'](_0x222ccf['shift']());}}}(a147_0x5d66,0x5618e));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=['invoice',a147_0x4886ce(0xbb),a147_0x4886ce(0xae),a147_0x4886ce(0xa9)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x4886ce(0x9e),'general':'General','form':a147_0x4886ce(0xb1),'idCard':'IdCard'},SCENE_FLAG={'name':a147_0x4886ce(0x8c),'type':a147_0x4886ce(0xbc),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x4886ce(0xa4)},IMAGE_FILE_FLAG={'name':a147_0x4886ce(0xad),'type':a147_0x4886ce(0xbc),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a147_0x4886ce(0x98),'type':a147_0x4886ce(0xbc),'description':a147_0x4886ce(0x88)};function normalizeScene(_0x2f5d3){const _0xe482c3=a147_0x4886ce,_0x5dbc05=_0x2f5d3[_0xe482c3(0xb0)]()[_0xe482c3(0x8a)]();if(_0x5dbc05===_0xe482c3(0x8f))return _0xe482c3(0xa9);if(_0x5dbc05===_0xe482c3(0x89)||_0x5dbc05===_0xe482c3(0xbb)||_0x5dbc05===_0xe482c3(0xae))return _0x5dbc05;throw CliErrors['validation'](_0xe482c3(0x91)+_0x2f5d3+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0xe482c3(0x9d)](',\x20'));}function selectedInputs(_0x548cab){const _0x4c6152=a147_0x4886ce,_0x319856=_0x548cab[_0x4c6152(0x8b)]('image-file')['trim'](),_0x5ae06a=_0x548cab[_0x4c6152(0x8b)](_0x4c6152(0x98))[_0x4c6152(0xb0)]();return{'imageFile':_0x319856,'imageUrl':_0x5ae06a,'count':[_0x319856,_0x5ae06a][_0x4c6152(0xab)](Boolean)[_0x4c6152(0x9f)]};}function a147_0x5d66(){const _0x2f2363=['45gtEfRn','88052FmOYdc','idcard','\x20OCR','Unsupported\x20OCR\x20scene:\x20','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','File\x20upload\x20response\x20missing\x20filePath.','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','215uTWhmd','GET','fileName','image-url','fileUrl','/smartapi/ocr/recognize-text?','/smartapi/common/uploadFile','toString','join','Invoice','length','imageFile','imageUrl','1791944JcYZBh','240575UnBefE','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','filePath','appCode','path','idCard','validation','filter','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','image-file','form','\x20OCR\x20from\x20URL','trim','Table','apiError','recognize','POST','2389107kXQQFi','5102230dESrQz','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','4204980yVbzIJ','/smartapi/ocr/recognize-text','Preview:\x20recognize\x20','general','string','2MsEerD','23166eaAatL','read','Publicly\x20accessible\x20image\x20or\x20file\x20URL','invoice','toLowerCase','str','scene'];a147_0x5d66=function(){return _0x2f2363;};return a147_0x5d66();}function validateInputSelection(_0x317980){const _0x5a1ba3=a147_0x4886ce,_0x32b1c6=selectedInputs(_0x317980);if(_0x32b1c6['count']!==0x1)throw CliErrors[_0x5a1ba3(0xaa)](_0x5a1ba3(0x92));return _0x32b1c6;}function withScene(_0x31b1c6,_0x1b3142,_0x2358f4){const _0x2c4b58=a147_0x4886ce;return{..._0x31b1c6,'scene':_0x1b3142,..._0x2358f4?{'sourceFile':{'fileName':_0x2358f4[_0x2c4b58(0x97)],'filePath':_0x2358f4[_0x2c4b58(0xa6)]}}:{}};}const ocrRecognize={'service':'ocr','command':a147_0x4886ce(0xb3),'description':a147_0x4886ce(0x94),'risk':a147_0x4886ce(0x87),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x56ed17){const _0x5447f5=a147_0x4886ce,_0x49fcf4=normalizeScene(_0x56ed17[_0x5447f5(0x8b)](_0x5447f5(0x8c))),_0x3d028e=SCENE_TO_LEGACY_TYPE[_0x49fcf4],_0x24a4c3=validateInputSelection(_0x56ed17);if(_0x24a4c3[_0x5447f5(0xa1)]){const _0x2b74ff=new URLSearchParams({'url':_0x24a4c3[_0x5447f5(0xa1)],'type':_0x3d028e,'appCode':_0x56ed17['appCode']});return{'method':_0x5447f5(0x96),'url':_0x5447f5(0x9a)+_0x2b74ff[_0x5447f5(0x9c)](),'description':_0x5447f5(0xba)+_0x49fcf4+_0x5447f5(0xaf)};}const _0x471210=requireDevelopmentUploadFile(_0x24a4c3[_0x5447f5(0xa0)],_0x5447f5(0xad));return{'method':_0x5447f5(0xb4),'url':_0x5447f5(0x9b),'body':{'steps':[{'method':'POST','url':_0x5447f5(0x9b),'body':{'appCode':_0x56ed17[_0x5447f5(0xa7)],'multipart':{'file':_0x471210}}},{'method':'POST','url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x5447f5(0xa5),'downloadFlag':![]}},{'method':_0x5447f5(0x96),'url':_0x5447f5(0xb9),'query':{'appCode':_0x56ed17['appCode'],'url':_0x5447f5(0xac),'type':_0x3d028e}}]},'description':_0x5447f5(0xb7)+_0x49fcf4+_0x5447f5(0x90)};},async 'execute'(_0x5cfa5c){const _0x3fe296=a147_0x4886ce,_0x57b100=normalizeScene(_0x5cfa5c[_0x3fe296(0x8b)](_0x3fe296(0x8c))),_0x46ca41=SCENE_TO_LEGACY_TYPE[_0x57b100],_0x4b7a45=validateInputSelection(_0x5cfa5c);if(_0x4b7a45[_0x3fe296(0xa1)]){const _0x1bdeef=await recognizeDevelopmentOcr(_0x5cfa5c[_0x3fe296(0xa7)],{'url':_0x4b7a45['imageUrl'],'type':_0x46ca41});return{'ok':!![],'data':withScene(_0x1bdeef,_0x57b100)};}const _0x54e497=requireDevelopmentUploadFile(_0x4b7a45[_0x3fe296(0xa0)],_0x3fe296(0xad)),_0x507247=await uploadDevelopmentFile(_0x5cfa5c[_0x3fe296(0xa7)],_0x54e497[_0x3fe296(0xa8)]);if(!_0x507247[_0x3fe296(0xa6)])throw CliErrors[_0x3fe296(0xb2)](_0x3fe296(0x93));const _0x6afdc0=await queryDevelopmentFileUrl(_0x507247[_0x3fe296(0xa6)],{'download':![]});if(!_0x6afdc0[_0x3fe296(0x99)])throw CliErrors[_0x3fe296(0xb2)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x47e789=await recognizeDevelopmentOcr(_0x5cfa5c[_0x3fe296(0xa7)],{'url':_0x6afdc0['fileUrl'],'type':_0x46ca41});return{'ok':!![],'data':withScene(_0x47e789,_0x57b100,_0x507247)};}};export const ocrDefinitions=[ocrRecognize];
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 +1 @@
1
- function a148_0x1b77(){const _0x47e2b8=['page-pattern','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','createMenu','1911552NhwLRY','version','warnings','790951FTvBRF','11118PiTuRe','langs','1850ORNBPD','compress','string','page-content','appCode','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','isInteger','menuPath','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','number','Custom_page_','Would\x20create\x20Custom\x20Page\x20','/smartapi/webcode/page/create','3715390sOiNFe','page','1995064NXCcNT','pageName\x20cannot\x20exceed\x20100\x20characters.','write','page.create','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','parent-menu-id','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','193yYSeOJ','Created\x20Custom\x20Page\x20','create','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','isNaN','\x20and\x20its\x20menu\x20entry.','num','page\x20create\x20does\x20not\x20accept\x20--page-type.','now','POST','apiError','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','files','stringify','length','BLANK','input','en-US','name','52LrjePG','9vRpRag','menuId','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','pageId','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','pageName','validation','page-type','1702590DQEELp','trim','str','parentMenuId','enableI18n'];a148_0x1b77=function(){return _0x47e2b8;};return a148_0x1b77();}const a148_0x158077=a148_0x2b4b;(function(_0x253d6c,_0x46e46c){const _0x4406cc=a148_0x2b4b,_0x3b6648=_0x253d6c();while(!![]){try{const _0x1dff4e=-parseInt(_0x4406cc(0x100))/0x1*(-parseInt(_0x4406cc(0xea))/0x2)+-parseInt(_0x4406cc(0xe8))/0x3*(-parseInt(_0x4406cc(0xd3))/0x4)+-parseInt(_0x4406cc(0xdc))/0x5+parseInt(_0x4406cc(0xe4))/0x6+parseInt(_0x4406cc(0xe7))/0x7+-parseInt(_0x4406cc(0xf9))/0x8*(-parseInt(_0x4406cc(0xd4))/0x9)+-parseInt(_0x4406cc(0xf7))/0xa;if(_0x1dff4e===_0x46e46c)break;else _0x3b6648['push'](_0x3b6648['shift']());}catch(_0x5e8233){_0x3b6648['push'](_0x3b6648['shift']());}}}(a148_0x1b77,0x2fc1e));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';function a148_0x2b4b(_0x3f2b53,_0x52ea68){_0x3f2b53=_0x3f2b53-0xd3;const _0x1b7726=a148_0x1b77();let _0x2b4bb4=_0x1b7726[_0x3f2b53];return _0x2b4bb4;}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a148_0x158077(0x111)];export const pageCreate={'service':a148_0x158077(0xf8),'command':a148_0x158077(0x102),'description':a148_0x158077(0xd8),'risk':a148_0x158077(0xfb),'defaultOutputFormat':a148_0x158077(0xeb),'structuredErrors':!![],'rejectedFlags':[{'name':a148_0x158077(0xdb),'message':a148_0x158077(0x107),'hint':a148_0x158077(0xf2)}],'flags':[{'name':a148_0x158077(0x112),'type':a148_0x158077(0xec),'description':a148_0x158077(0xfd)},{'name':a148_0x158077(0xfe),'type':a148_0x158077(0xf3),'description':a148_0x158077(0xff)},{'name':a148_0x158077(0xe1),'type':a148_0x158077(0xec),'description':'Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','enum':[a148_0x158077(0x10f)]},{'name':a148_0x158077(0xed),'type':a148_0x158077(0xec),'description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x58fdfb){const _0x487856=a148_0x158077,_0x11f181=readPagePattern(_0x58fdfb);await validateCustomPageContent(readInput(_0x58fdfb,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x11f181)[_0x487856(0x10c)]);},async 'dryRun'(_0x2415cf){const _0x5b036f=a148_0x158077,{input:_0x131181}=await prepare(_0x2415cf);return{'method':_0x5b036f(0x109),'url':_0x5b036f(0xf6),'body':{'appCode':_0x131181[_0x5b036f(0xee)],'pageName':_0x131181[_0x5b036f(0xd9)],..._0x131181[_0x5b036f(0xdf)]!=null?{'parentMenuId':_0x131181[_0x5b036f(0xdf)]}:{},'createMenu':_0x131181[_0x5b036f(0xe3)],'codeContent':_0x131181[_0x5b036f(0x10c)]},'description':_0x5b036f(0xf5)+JSON[_0x5b036f(0x10d)](_0x131181[_0x5b036f(0xd9)])+_0x5b036f(0x105)};},async 'execute'(_0x1942a3){const _0x45f7aa=a148_0x158077,_0x4f5c79=await prepare(_0x1942a3),_0x13dbb3=await createCustomPage(_0x4f5c79[_0x45f7aa(0x110)]);if(!Number[_0x45f7aa(0xf0)](_0x13dbb3[_0x45f7aa(0xd7)])||_0x13dbb3['pageId']<=0x0)throw CliErrors[_0x45f7aa(0x10a)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');return{'ok':!![],'data':buildMutationData(_0x4f5c79,_0x13dbb3),'message':_0x45f7aa(0x101)+_0x13dbb3['pageId']+'.'};}};async function prepare(_0x453a58){const _0x2431df=a148_0x158077,_0x5de267=readPagePattern(_0x453a58);if(_0x5de267===null)return{'input':readInput(_0x453a58,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x5de267),'warnings':[],'pagePattern':_0x5de267};let _0x5f5168=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3ebc91=[];try{const _0x5c1824=await getI18nInfo(_0x453a58[_0x2431df(0xee)]);_0x5c1824[_0x2431df(0xe0)]&&_0x5c1824[_0x2431df(0xe9)]?.['length']&&(_0x5f5168=_0x5c1824[_0x2431df(0xe9)]);}catch{_0x3ebc91=['Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.'];}return{'input':readInput(_0x453a58,_0x5f5168,_0x5de267),'warnings':_0x3ebc91,'pagePattern':_0x5de267};}function readPagePattern(_0x16075a){const _0x375786=a148_0x158077,_0x3b6e87=_0x16075a[_0x375786(0xde)](_0x375786(0xe1))[_0x375786(0xdd)](),_0x210d11=_0x16075a['str'](_0x375786(0xed))[_0x375786(0xdd)]()['length']>0x0;if(_0x3b6e87&&_0x210d11)throw CliErrors[_0x375786(0xda)](_0x375786(0xd6));if(_0x210d11)return null;if(!_0x3b6e87)throw CliErrors[_0x375786(0xda)](_0x375786(0x103));if(_0x3b6e87!==_0x375786(0x10f))throw CliErrors[_0x375786(0xda)](_0x375786(0x10b));return _0x3b6e87;}function readInput(_0xb2837e,_0x21373b=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x25768a=readPagePattern(_0xb2837e)){const _0x268800=a148_0x158077,_0x491f03=_0xb2837e['str'](_0x268800(0x112))['trim']()||_0x268800(0xf4)+Date[_0x268800(0x108)]();if(_0x491f03[_0x268800(0x10e)]>0x64)throw CliErrors[_0x268800(0xda)](_0x268800(0xfa));const _0x992bd7=_0xb2837e[_0x268800(0x106)](_0x268800(0xfe),NaN),_0x76f5c8=!Number[_0x268800(0x104)](_0x992bd7);if(_0x76f5c8&&(!Number[_0x268800(0xf0)](_0x992bd7)||_0x992bd7<=0x0))throw CliErrors[_0x268800(0xda)](_0x268800(0xef));return{'appCode':_0xb2837e[_0x268800(0xee)],'pageName':_0x491f03,..._0x76f5c8?{'parentMenuId':_0x992bd7}:{},'createMenu':!![],'files':_0x25768a===null?parseCustomPageContent(_0xb2837e['str']('page-content')):buildInitialFiles(_0x491f03,_0x21373b)};}function buildMutationData(_0x146835,_0x31ef28){const _0x46c6af=a148_0x158077,{input:_0x2c7658}=_0x146835,_0x15c3bc=_0x31ef28&&buildCustomPageDevelopmentUrl(_0x2c7658[_0x46c6af(0xee)],_0x31ef28[_0x46c6af(0xf1)]),_0x528150=_0x31ef28&&buildCustomPageEditUrl(_0x2c7658['appCode'],_0x31ef28[_0x46c6af(0xd7)]);return{'operation':_0x46c6af(0xfc),'pageType':'CUSTOM','pagePattern':_0x146835['pagePattern'],'selector':{'appCode':_0x2c7658['appCode'],'pageName':_0x2c7658[_0x46c6af(0xd9)]},'before':null,'after':{'pageId':_0x31ef28?.['pageId']??null,'pageName':_0x31ef28?.['pageName']??_0x2c7658[_0x46c6af(0xd9)],'appCode':_0x31ef28?.[_0x46c6af(0xee)]??_0x2c7658['appCode'],'version':_0x31ef28?.[_0x46c6af(0xe5)]??null,'menuId':_0x31ef28?.[_0x46c6af(0xd5)]??null,'menuPath':_0x31ef28?.['menuPath']??null,'files':_0x31ef28?.[_0x46c6af(0x10c)]??Object['keys'](_0x2c7658['files'])},'dryRun':_0x31ef28===undefined,'request':_0x2c7658,..._0x15c3bc?{'pageUrl':_0x15c3bc}:{},..._0x528150?{'editPageUrl':_0x528150}:{},'warnings':[..._0x146835[_0x46c6af(0xe6)],..._0x31ef28&&!_0x15c3bc?[_0x46c6af(0xe2)]:[]]};}
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 +1 @@
1
- function a149_0x4a22(_0x1d22bf,_0x21799e){_0x1d22bf=_0x1d22bf-0x14b;const _0x4d2f2c=a149_0x4d2f();let _0x4a2255=_0x4d2f2c[_0x1d22bf];return _0x4a2255;}const a149_0x129cdb=a149_0x4a22;function a149_0x4d2f(){const _0x4793f5=['trim','isNaN','getTime','336279SRtiBn','getFullYear','str','appCode','Custom\x20Page\x20ID','352296cOeSMA','compress','number','Retrieved\x20Custom\x20Page\x20','getSeconds','custom-detail','getHours','716fglKQb','cookie','878166mghpAI','1112SPsPRZ','994165KRrNLx','21035lpsrKX','page','pageCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','getMinutes','getDate','read','538236aEuKPs','padStart','5490SAEeFf','join'];a149_0x4d2f=function(){return _0x4793f5;};return a149_0x4d2f();}(function(_0x43b22a,_0x434d92){const _0x5c3506=a149_0x4a22,_0x163f26=_0x43b22a();while(!![]){try{const _0x2c9587=-parseInt(_0x5c3506(0x165))/0x1+parseInt(_0x5c3506(0x15e))/0x2+-parseInt(_0x5c3506(0x160))/0x3*(-parseInt(_0x5c3506(0x152))/0x4)+parseInt(_0x5c3506(0x156))/0x5+parseInt(_0x5c3506(0x154))/0x6+parseInt(_0x5c3506(0x157))/0x7*(-parseInt(_0x5c3506(0x155))/0x8)+parseInt(_0x5c3506(0x14b))/0x9;if(_0x2c9587===_0x434d92)break;else _0x163f26['push'](_0x163f26['shift']());}catch(_0x410f58){_0x163f26['push'](_0x163f26['shift']());}}}(a149_0x4d2f,0x376ec));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_0x129cdb(0x158),'command':a149_0x129cdb(0x150),'description':a149_0x129cdb(0x15a),'risk':a149_0x129cdb(0x15d),'defaultOutputFormat':a149_0x129cdb(0x14c),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x129cdb(0x14d),'required':!![],'description':a149_0x129cdb(0x169)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45fb21){readCustomPageId(_0x45fb21);},async 'execute'(_0x16608d){const _0x28d804=a149_0x129cdb,_0x5a200b=readCustomPageId(_0x16608d),_0x510b3e=await getCustomPageSource(_0x5a200b),{bundle:_0x1a6b05,createTime:_0x424ca3,updateTime:_0x5951d5,..._0x9e00e}=_0x510b3e,_0x492c94=_0x510b3e['id']??_0x5a200b,_0xb54f69=_0x510b3e[_0x28d804(0x168)]?.[_0x28d804(0x162)]()||_0x16608d[_0x28d804(0x167)]('appcode')[_0x28d804(0x162)](),_0x130e6f=buildCustomPageRuntimeUrl(_0xb54f69,_0x510b3e[_0x28d804(0x159)]),_0x1d8015=buildCustomPageEditUrl(_0xb54f69,_0x492c94),_0x2237a2=await resolveCustomPageDevelopmentUrl(_0xb54f69,_0x492c94,_0x16608d[_0x28d804(0x153)]);return{'ok':!![],'data':{..._0x9e00e,..._0x130e6f?{'runtimePageUrl':_0x130e6f}:{},..._0x2237a2?{'pageUrl':_0x2237a2}:{},..._0x1d8015?{'editPageUrl':_0x1d8015}:{},..._0x424ca3==null?{}:{'createTime':formatTime(_0x424ca3)},..._0x5951d5==null?{}:{'updateTime':formatTime(_0x5951d5)}},'message':_0x28d804(0x14e)+_0x5a200b+'.'};}};function formatTime(_0x34d7ac){const _0x4dd70c=a149_0x129cdb,_0x4d0c1e=new Date(_0x34d7ac);if(Number[_0x4dd70c(0x163)](_0x4d0c1e[_0x4dd70c(0x164)]()))return String(_0x34d7ac);const _0x436e58=[_0x4d0c1e[_0x4dd70c(0x166)](),String(_0x4d0c1e['getMonth']()+0x1)[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x15c)]())['padStart'](0x2,'0')][_0x4dd70c(0x161)]('-'),_0x32f7f0=[String(_0x4d0c1e[_0x4dd70c(0x151)]())[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x15b)]())[_0x4dd70c(0x15f)](0x2,'0'),String(_0x4d0c1e[_0x4dd70c(0x14f)]())['padStart'](0x2,'0')][_0x4dd70c(0x161)](':');return _0x436e58+'\x20'+_0x32f7f0;}
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;}