@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.1-beta.4

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 (309) 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/index.js +1 -1
  177. package/lib/commands/project/upgrade.js +1 -1
  178. package/lib/commands/registry.js +1 -1
  179. package/lib/commands/role/delete.js +1 -1
  180. package/lib/commands/role/detail.js +1 -1
  181. package/lib/commands/role/index.js +1 -1
  182. package/lib/commands/role/list.js +1 -1
  183. package/lib/commands/role/shared.js +1 -1
  184. package/lib/commands/role/update.js +1 -1
  185. package/lib/commands/role/user-add.js +1 -1
  186. package/lib/commands/role/user-remove.js +1 -1
  187. package/lib/commands/role/user-resolve.js +1 -1
  188. package/lib/commands/run/index.js +1 -1
  189. package/lib/commands/schema.js +1 -1
  190. package/lib/commands/sql/create.js +1 -1
  191. package/lib/commands/sql/delete.js +1 -1
  192. package/lib/commands/sql/detail.js +1 -1
  193. package/lib/commands/sql/exec.js +1 -1
  194. package/lib/commands/sql/index.js +1 -1
  195. package/lib/commands/sql/list.js +1 -1
  196. package/lib/commands/sql/pull.js +1 -1
  197. package/lib/commands/sql/push.js +1 -1
  198. package/lib/commands/sql/shared.js +1 -1
  199. package/lib/commands/sql/status.js +1 -1
  200. package/lib/commands/sql/validate.js +1 -1
  201. package/lib/commands/task/index.js +1 -1
  202. package/lib/commands/task/status.js +1 -1
  203. package/lib/commands/tenant/index.js +1 -1
  204. package/lib/commands/tenant/members-list.js +1 -1
  205. package/lib/commands/tenant/shared.js +1 -1
  206. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  207. package/lib/commands/user-account/index.js +1 -1
  208. package/lib/commands/workspace/add.js +1 -1
  209. package/lib/commands/workspace/index.js +1 -1
  210. package/lib/commands/workspace/remove.js +1 -1
  211. package/lib/config/deployment-sync.js +1 -1
  212. package/lib/config/domain-config.js +1 -1
  213. package/lib/config/project-routing.js +1 -1
  214. package/lib/config/schema.js +1 -1
  215. package/lib/constant/cdn.js +1 -1
  216. package/lib/constant/cli.js +1 -1
  217. package/lib/constant/defaults.js +1 -1
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.js +1 -1
  223. package/lib/constant/risk.js +1 -1
  224. package/lib/constant/routing-profile.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +0 -16
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/kb-search-client.d.ts +30 -0
  239. package/lib/core/kb-search-client.js +1 -0
  240. package/lib/core/page/file-system.js +1 -1
  241. package/lib/core/page/hash.js +1 -1
  242. package/lib/core/page/lock.js +1 -1
  243. package/lib/core/sql-index-auditor.js +1 -1
  244. package/lib/core/sql-sync/config.js +1 -1
  245. package/lib/core/sql-sync/file-system.js +1 -1
  246. package/lib/core/sql-sync/hash.js +1 -1
  247. package/lib/core/sql-sync/lock.js +1 -1
  248. package/lib/core/sql-sync/utils.js +1 -1
  249. package/lib/core/sql-validator.js +1 -1
  250. package/lib/errors.js +1 -1
  251. package/lib/framework/build-all-flags.js +1 -1
  252. package/lib/framework/error-output.js +1 -1
  253. package/lib/framework/explicit-yes.js +1 -1
  254. package/lib/framework/flags.js +1 -1
  255. package/lib/framework/help.js +1 -1
  256. package/lib/framework/index.js +1 -1
  257. package/lib/framework/output.js +1 -1
  258. package/lib/framework/response.js +1 -1
  259. package/lib/framework/runner-alias.js +1 -1
  260. package/lib/framework/runner.js +1 -1
  261. package/lib/framework/schema-export.js +1 -1
  262. package/lib/framework/types.d.ts +1 -0
  263. package/lib/framework/types.js +1 -1
  264. package/lib/generated/build-info.d.ts +4 -4
  265. package/lib/generated/build-info.js +1 -1
  266. package/lib/help.js +1 -1
  267. package/lib/postinstall.js +1 -1
  268. package/lib/runtime/confirmation.js +1 -1
  269. package/lib/runtime/event.js +1 -1
  270. package/lib/runtime/index.js +1 -1
  271. package/lib/runtime/queue.js +1 -1
  272. package/lib/runtime/resolve.js +1 -1
  273. package/lib/skills/builtin-skill.js +1 -1
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/entity-with-id.js +1 -1
  291. package/lib/utils/file-utils.js +1 -1
  292. package/lib/utils/guides-cdn.js +1 -1
  293. package/lib/utils/http-client.js +1 -1
  294. package/lib/utils/is-non-interactive.js +1 -1
  295. package/lib/utils/logger.js +1 -1
  296. package/lib/utils/params.js +1 -1
  297. package/lib/utils/platform.js +1 -1
  298. package/lib/utils/sleep.js +1 -1
  299. package/lib/utils/template-replacer.js +1 -1
  300. package/lib/utils/update-notice.js +1 -1
  301. package/lib/utils/version.js +1 -1
  302. package/lib/utils/with-active-cookie.js +1 -1
  303. package/lib/utils/write-cli-side-channel.js +1 -1
  304. package/package.json +1 -1
  305. package/skills/rabetbase/SKILL.md +2 -2
  306. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  308. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  309. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a140_0x2fc943=a140_0x4163;(function(_0x84a020,_0x3d36b3){const _0x4027d6=a140_0x4163,_0x45fea4=_0x84a020();while(!![]){try{const _0xd94a0a=-parseInt(_0x4027d6(0x159))/0x1*(parseInt(_0x4027d6(0x150))/0x2)+parseInt(_0x4027d6(0x102))/0x3*(parseInt(_0x4027d6(0x10c))/0x4)+-parseInt(_0x4027d6(0x14d))/0x5+parseInt(_0x4027d6(0x134))/0x6*(-parseInt(_0x4027d6(0x140))/0x7)+-parseInt(_0x4027d6(0xee))/0x8+-parseInt(_0x4027d6(0x13d))/0x9+parseInt(_0x4027d6(0x107))/0xa;if(_0xd94a0a===_0x3d36b3)break;else _0x45fea4['push'](_0x45fea4['shift']());}catch(_0x53009a){_0x45fea4['push'](_0x45fea4['shift']());}}}(a140_0x1057,0x465d9));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';function a140_0x1057(){const _0x218034=['beforeById','path','expectVisible','pageType','rabetbase\x20menu\x20list\x20--format\x20compress','\x20failed.','body','plan','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','resources','rawFlags','requestedVisible','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','type','warnings','split','141HgWlWZ','trim','message','resourcesValid','num','14525400pbTrwx','plannedActions','label','childrenIds','update','45484DUnNHL','url','boolean','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','hash','childrenCount','some','\x20menu(s);\x20skipped\x20','\x20menu(s);\x20skip\x20','get','Response\x20was\x20lost\x20for\x20menu\x20','\x20visibility\x20update\x20could\x20not\x20be\x20verified','set','Final\x20menu\x20visibility\x20readback\x20failed.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','isArray','expected-count','POST','menu_selector_not_found','verification','appCode','pageId','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','update\x20visibility\x20for','byId','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','/smartapi/menu/update','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','menu','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','menu_permission_denied','verify\x20menu\x20visibility\x20update','update-menu-visibility','Menu\x20id\x20selector(s)\x20not\x20found:\x20','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','menu-ids','targets','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','code','44274AMJtdH','Would\x20update\x20visibility\x20for\x20','Response\x20was\x20lost\x20and\x20menu\x20','join','before','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','stringify','3545487iUCHjr','expect-visible','validation','385NhWIOK','values','datasetId','paths','\x20must\x20be\x20true\x20or\x20false.','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','modelType','push','visibility-update','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','failed','update-recovery','\x20updated,\x20','2595865YCkRAE','menu_expected_count_mismatch','\x20unchanged\x20menu(s).','200726xlQXje','visible','cookie','map','depth','parentId','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','filter','expectedCount','3jcQTNq','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','isSafeInteger','high-risk-write','menuIds','flagMissing','menu_verification_failed','Selected\x20','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','str','sort','update\x20menu\x20visibility','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','menus','string','datasetCode','false','Menu\x20','629680nfWcoa','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','length','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.'];a140_0x1057=function(){return _0x218034;};return a140_0x1057();}function a140_0x4163(_0x46508f,_0x239b08){_0x46508f=_0x46508f-0xee;const _0x10576e=a140_0x1057();let _0x41633a=_0x10576e[_0x46508f];return _0x41633a;}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a140_0x2fc943(0x126)}];export const menuVisibilityUpdate={'service':a140_0x2fc943(0x128),'command':a140_0x2fc943(0x148),'description':a140_0x2fc943(0x12e),'risk':a140_0x2fc943(0x15c),'structuredErrors':!![],'flags':[{'name':a140_0x2fc943(0x130),'type':a140_0x2fc943(0x167),'description':a140_0x2fc943(0xef)},{'name':a140_0x2fc943(0x143),'type':'string','description':a140_0x2fc943(0x149)},{'name':a140_0x2fc943(0x151),'type':a140_0x2fc943(0x10e),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a140_0x2fc943(0x13e),'type':a140_0x2fc943(0x10e),'description':a140_0x2fc943(0x15a)},{'name':a140_0x2fc943(0x11c),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cb7cf){parseInput(_0x3cb7cf),requireExplicitYes(_0x3cb7cf);},async 'dryRun'(_0x137634){const _0xcecb00=a140_0x2fc943,_0x3bfb59=await buildPlan(_0x137634,!![]),_0x458664=_0x3bfb59[_0xcecb00(0xf9)]['plannedActions']?.['length']??0x0,_0xde7bac=_0x3bfb59[_0xcecb00(0xf9)][_0xcecb00(0x131)]['length']-_0x458664;return menuDryRunResult(_0x3bfb59[_0xcecb00(0xf9)],{'method':_0xcecb00(0x11d),'url':_0xcecb00(0x126),'body':{'updates':_0x3bfb59[_0xcecb00(0xf9)][_0xcecb00(0x108)]?.[_0xcecb00(0x153)](_0x2f99c3=>_0x2f99c3[_0xcecb00(0xf8)])??[]},'description':_0xcecb00(0x135)+_0x458664+_0xcecb00(0x114)+_0xde7bac+_0xcecb00(0x14f)});},async 'execute'(_0xb13b74){const _0xf93c19=a140_0x2fc943;requireExplicitYes(_0xb13b74);const _0x46065f=await buildPlan(_0xb13b74,![]);await recheckMutationSnapshot(_0xb13b74,_0x46065f[_0xf93c19(0xf9)],_0xf93c19(0x164));const _0x3c7e03=[],_0x1a2d91=[],_0x5887cc=[];for(const _0x502654 of _0x46065f['plan'][_0xf93c19(0x131)]){if(_0x502654[_0xf93c19(0x138)]['visible']===_0x46065f['plan'][_0xf93c19(0xfd)]){_0x3c7e03[_0xf93c19(0x147)]({'id':_0x502654['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0xb13b74['appCode'],_0xb13b74[_0xf93c19(0x152)],{'id':_0x502654['id'],'visible':_0x46065f[_0xf93c19(0xf9)][_0xf93c19(0xfd)]}),_0x3c7e03[_0xf93c19(0x147)]({'id':_0x502654['id'],'updated':!![],'skipped':![]});}catch(_0xb63e25){const _0x2bde04=mapMenuApiError(_0xb63e25,_0xf93c19(0x123),_0x502654['id']);if(isMenuResponseLoss(_0xb63e25)&&_0x2bde04[_0xf93c19(0x133)]!==_0xf93c19(0x12a)){_0x5887cc['push'](_0x502654['id']);continue;}_0x1a2d91[_0xf93c19(0x147)]({'id':_0x502654['id'],'stage':_0xf93c19(0x10b),'code':_0x2bde04['code'],'message':_0x2bde04[_0xf93c19(0x104)]});}}let _0x287a7a;try{_0x287a7a=await fetchMenuSnapshot(_0xb13b74[_0xf93c19(0x120)],_0xb13b74[_0xf93c19(0x152)]);}catch(_0x20ed61){const _0x2ba776=describeMenuErrorCause(_0x20ed61,_0xf93c19(0x12b)),_0x477537=_0x5887cc[_0xf93c19(0x153)](_0x50ac0f=>({'id':_0x50ac0f,'stage':_0xf93c19(0x14b),'code':_0xf93c19(0x15f),'message':_0xf93c19(0x116)+_0x50ac0f+_0xf93c19(0x12f),'requestedStateConfirmed':![],'recovered':![]})),_0x283402={'stage':_0xf93c19(0x11f),'code':_0xf93c19(0x15f),'message':_0xf93c19(0x119),'targetIds':_0x46065f[_0xf93c19(0xf9)][_0xf93c19(0x131)][_0xf93c19(0x153)](_0x49b940=>_0x49b940['id']),'requestedStateConfirmed':![],..._0x2ba776};throw menuFailure(asVerificationError(_0x20ed61,_0xf93c19(0x132)),_0x46065f[_0xf93c19(0xf9)],{'stage':'verification','succeeded':_0x3c7e03,'failedRecords':[..._0x1a2d91,..._0x477537,_0x283402],'warnings':[_0xf93c19(0x13b)],'verification':{'status':_0xf93c19(0x14a),'recoveredCount':0x0,'lookupCommand':_0xf93c19(0xf6)}});}const _0xaa5d70=[];for(const _0x164bea of _0x3c7e03){const _0x4b972c=Number(_0x164bea['id']),_0x299266=_0x46065f[_0xf93c19(0xf2)]['get'](_0x4b972c),_0x228a45=_0x287a7a[_0xf93c19(0x124)][_0xf93c19(0x115)](_0x4b972c);try{verifyVisibilityUpdate(_0x299266,_0x228a45,_0x46065f[_0xf93c19(0xf9)][_0xf93c19(0xfd)]);}catch(_0x5a31dc){const _0xab60bc=asVerificationError(_0x5a31dc,_0xf93c19(0x16a)+_0x4b972c+_0xf93c19(0x117));_0xaa5d70[_0xf93c19(0x147)]({'id':_0x4b972c,'stage':_0xf93c19(0x11f),'code':_0xab60bc[_0xf93c19(0x133)],'message':_0xab60bc[_0xf93c19(0x104)],'requestedStateConfirmed':![]});}}for(const _0x24141d of _0x5887cc){const _0x137f34=_0x46065f[_0xf93c19(0xf2)]['get'](_0x24141d),_0x3b468e=_0x287a7a[_0xf93c19(0x124)][_0xf93c19(0x115)](_0x24141d);try{verifyVisibilityUpdate(_0x137f34,_0x3b468e,_0x46065f[_0xf93c19(0xf9)][_0xf93c19(0xfd)]),_0x3c7e03[_0xf93c19(0x147)]({'id':_0x24141d,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x278d56){const _0x3a73dc=asVerificationError(_0x278d56,_0xf93c19(0x136)+_0x24141d+_0xf93c19(0x139));_0xaa5d70[_0xf93c19(0x147)]({'id':_0x24141d,'stage':_0xf93c19(0x14b),'code':_0x3a73dc[_0xf93c19(0x133)],'message':_0x3a73dc[_0xf93c19(0x104)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0xaa5d70[_0xf93c19(0xf0)]>0x0){const _0x117cdd=_0xaa5d70[_0xf93c19(0x153)](_0x4e90e6=>Number(_0x4e90e6['id'])),_0x2fe915=_0x3c7e03[_0xf93c19(0x157)](_0x4cbd4c=>_0x4cbd4c['recovered']===!![])['length'],_0x28b7a3=menuError(_0xf93c19(0x15f),_0xf93c19(0x156)+_0x117cdd[_0xf93c19(0x137)](',\x20')+'.',_0xf93c19(0x165));throw menuFailure(_0x28b7a3,_0x46065f['plan'],{'stage':_0xf93c19(0x11f),'succeeded':_0x3c7e03,'failedRecords':[..._0x1a2d91,..._0xaa5d70],'warnings':[_0xf93c19(0xfe)],'verification':{'status':_0xf93c19(0x14a),..._0x117cdd[_0xf93c19(0xf0)]===0x1?{'targetId':_0x117cdd[0x0]}:{'targetIds':_0x117cdd},'recoveredCount':_0x2fe915,'lookupCommand':_0xf93c19(0xf6)}});}const _0x5d4d4c=_0x3c7e03[_0xf93c19(0x157)](_0x552ae9=>_0x552ae9['updated']===!![])[_0xf93c19(0xf0)],_0xb1090c=_0x3c7e03['length']-_0x5d4d4c,_0x1b0ba4={..._0x46065f[_0xf93c19(0xf9)],'succeeded':_0x3c7e03,'failed':_0x1a2d91,'warnings':_0x1a2d91[_0xf93c19(0xf0)]>0x0?[..._0x46065f[_0xf93c19(0xf9)]['warnings'],_0xf93c19(0x125)]:_0x46065f[_0xf93c19(0xf9)][_0xf93c19(0x100)],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x287a7a['hash'],'matchesRequestedState':_0x1a2d91[_0xf93c19(0xf0)]===0x0,'recoveredCount':_0x5887cc['length']}};return{'ok':_0x1a2d91['length']===0x0,'data':_0x1b0ba4,'message':_0x1a2d91[_0xf93c19(0xf0)]===0x0?'Updated\x20visibility\x20for\x20'+_0x5d4d4c+_0xf93c19(0x113)+_0xb1090c+_0xf93c19(0x14f):'Menu\x20visibility\x20update\x20completed:\x20'+_0x5d4d4c+_0xf93c19(0x14c)+_0xb1090c+'\x20skipped,\x20'+_0x1a2d91[_0xf93c19(0xf0)]+_0xf93c19(0xf7)};}};function parseInput(_0x5f0609){const _0x4ce4d6=a140_0x2fc943,_0x23844d=parseMenuIds(_0x5f0609[_0x4ce4d6(0x162)](_0x4ce4d6(0x130))),_0x590dc4=parseCsv(_0x5f0609['str']('paths'));if(_0x23844d[_0x4ce4d6(0xf0)]===0x0&&_0x590dc4[_0x4ce4d6(0xf0)]===0x0)throw CliErrors[_0x4ce4d6(0x13f)](_0x4ce4d6(0xfa));const _0x67ee58=parseBooleanFlag(_0x5f0609,_0x4ce4d6(0x151),!![]),_0x404092=parseBooleanFlag(_0x5f0609,_0x4ce4d6(0x13e),![]);let _0x31e9aa;if(hasFlag(_0x5f0609,'expected-count')){_0x31e9aa=_0x5f0609[_0x4ce4d6(0x106)]('expected-count');if(!Number[_0x4ce4d6(0x15b)](_0x31e9aa)||_0x31e9aa<0x0)throw CliErrors[_0x4ce4d6(0x13f)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x23844d,'paths':_0x590dc4,'visible':_0x67ee58,'expectVisible':_0x404092,'expectedCount':_0x31e9aa};}async function buildPlan(_0x167e02,_0x22e2bc){const _0x12606e=a140_0x2fc943,_0x20020c=parseInput(_0x167e02),_0x14d40e=await fetchMutationSnapshot(_0x167e02,_0x12606e(0x164)),_0x1f5423=selectTargets(_0x14d40e[_0x12606e(0x166)],_0x20020c[_0x12606e(0x15d)],_0x20020c['paths']);if(_0x20020c[_0x12606e(0x158)]!==undefined&&_0x1f5423[_0x12606e(0xf0)]!==_0x20020c['expectedCount'])throw menuError(_0x12606e(0x14e),_0x12606e(0x160)+_0x1f5423['length']+'\x20menu(s),\x20expected\x20'+_0x20020c['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x20020c['expectVisible']!==undefined){const _0x409f60=_0x1f5423[_0x12606e(0x157)](_0x50461b=>_0x50461b[_0x12606e(0x151)]!==_0x20020c[_0x12606e(0xf4)]);if(_0x409f60[_0x12606e(0xf0)]>0x0)throw menuError('menu_state_drift',_0x12606e(0x145)+_0x409f60[_0x12606e(0x153)](_0x1cc920=>_0x1cc920['id'])[_0x12606e(0x137)](',\x20')+'.',_0x12606e(0x11a));}const _0x37b0b8=_0x1f5423[_0x12606e(0x153)](_0x1e5db4=>({'id':_0x1e5db4['id'],'label':_0x1e5db4[_0x12606e(0x109)],'path':_0x1e5db4[_0x12606e(0xf3)],'before':{'visible':_0x1e5db4['visible']},'after':{'visible':_0x20020c['visible']}})),_0x5a9b14=_0x37b0b8[_0x12606e(0x157)](_0x13ee14=>_0x13ee14['before'][_0x12606e(0x151)]!==_0x20020c[_0x12606e(0x151)])[_0x12606e(0x153)](_0x3814af=>({'stage':_0x12606e(0x12c),'method':_0x12606e(0x11d),'path':_0x12606e(0x126),'body':{'appCode':_0x167e02[_0x12606e(0x120)],'id':_0x3814af['id'],'visible':_0x20020c[_0x12606e(0x151)]}})),_0x2464f8=mutationResult({'operation':_0x12606e(0x148),'selector':{'menuIds':_0x20020c[_0x12606e(0x15d)],'paths':_0x20020c[_0x12606e(0x143)]},'before':{'menus':_0x1f5423[_0x12606e(0x153)](_0x4ba413=>({'id':_0x4ba413['id'],'path':_0x4ba413[_0x12606e(0xf3)],'visible':_0x4ba413[_0x12606e(0x151)]}))},'after':{'menus':_0x1f5423[_0x12606e(0x153)](_0x3ef595=>({'id':_0x3ef595['id'],'path':_0x3ef595['path'],'visible':_0x20020c[_0x12606e(0x151)]}))},'dryRun':_0x22e2bc,'backend':[...BACKEND],'plannedActions':_0x5a9b14,'snapshotHash':_0x14d40e[_0x12606e(0x110)],'warnings':_0x5a9b14[_0x12606e(0xf0)]===0x0?[_0x12606e(0x13a)]:[]});return{'plan':{..._0x2464f8,'requestedVisible':_0x20020c[_0x12606e(0x151)],'targets':_0x37b0b8},'beforeById':new Map(_0x1f5423['map'](_0x5c2956=>[_0x5c2956['id'],_0x5c2956]))};}function selectTargets(_0x29bbc5,_0x284804,_0x4ec104){const _0x92741a=a140_0x2fc943,_0x5030e5=new Map(_0x29bbc5[_0x92741a(0x153)](_0x4233e7=>[_0x4233e7['id'],_0x4233e7])),_0x3e9ffd=new Map(),_0x2e8278=_0x284804[_0x92741a(0x157)](_0x23a2ec=>!_0x5030e5['has'](_0x23a2ec));if(_0x2e8278[_0x92741a(0xf0)]>0x0)throw menuError('menu_selector_not_found',_0x92741a(0x12d)+_0x2e8278[_0x92741a(0x137)](',\x20')+'.',_0x92741a(0x127));for(const _0x123990 of _0x284804){_0x3e9ffd[_0x92741a(0x118)](_0x123990,_0x5030e5['get'](_0x123990));}for(const _0x2e2cd0 of _0x4ec104){const _0x4da482=_0x29bbc5[_0x92741a(0x157)](_0x48ceab=>_0x48ceab[_0x92741a(0xf3)]===_0x2e2cd0);if(_0x4da482[_0x92741a(0xf0)]===0x0)throw menuError(_0x92741a(0x11e),'Menu\x20path\x20selector\x20not\x20found:\x20'+JSON['stringify'](_0x2e2cd0)+'.',_0x92741a(0xf1));if(_0x4da482[_0x92741a(0xf0)]>0x1)throw menuError('menu_selector_ambiguous',_0x92741a(0x161)+JSON[_0x92741a(0x13c)](_0x2e2cd0)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x4da482[_0x92741a(0x153)](_0x572dcb=>_0x572dcb['id'])['join'](',\x20')+'.');const _0x59f99e=_0x4da482[0x0];_0x3e9ffd['set'](_0x59f99e['id'],_0x59f99e);}return[..._0x3e9ffd[_0x92741a(0x141)]()];}function parseMenuIds(_0x33d268){const _0x16d8db=a140_0x2fc943,_0x41e14e=parseCsv(_0x33d268),_0x218344=_0x41e14e[_0x16d8db(0x153)](Number);if(_0x218344[_0x16d8db(0x112)](_0x5a10de=>!Number[_0x16d8db(0x15b)](_0x5a10de)||_0x5a10de<=0x0))throw CliErrors[_0x16d8db(0x13f)](_0x16d8db(0x122));return[...new Set(_0x218344)];}function parseCsv(_0x395d64){const _0x2c1178=a140_0x2fc943;return[...new Set(_0x395d64[_0x2c1178(0x101)](',')[_0x2c1178(0x153)](_0x3d3e4e=>_0x3d3e4e[_0x2c1178(0x103)]())['filter'](Boolean))];}function parseBooleanFlag(_0x56681c,_0x41ccdb,_0x4c7f3c){const _0x2b0c11=a140_0x2fc943;if(!hasFlag(_0x56681c,_0x41ccdb)){if(_0x4c7f3c)throw CliErrors[_0x2b0c11(0x15e)](_0x41ccdb);return undefined;}const _0x1c80b7=_0x56681c[_0x2b0c11(0xfc)][_0x41ccdb];if(_0x1c80b7===!![]||_0x1c80b7===![])return _0x1c80b7;if(_0x1c80b7==='true')return!![];if(_0x1c80b7===_0x2b0c11(0x169))return![];throw CliErrors[_0x2b0c11(0x13f)]('--'+_0x41ccdb+_0x2b0c11(0x144));}function verifyVisibilityUpdate(_0x5cd8d7,_0x2179ae,_0x2b8169){const _0x55554c=a140_0x2fc943;assertVerified(!!_0x2179ae,_0x55554c(0x16a)+_0x5cd8d7['id']+_0x55554c(0x129)),assertVerified(_0x2179ae['visible']===_0x2b8169,_0x55554c(0x16a)+_0x5cd8d7['id']+_0x55554c(0x10f));const _0x2ff6c7=[['id',_0x2179ae['id'],_0x5cd8d7['id']],[_0x55554c(0x155),_0x2179ae[_0x55554c(0x155)],_0x5cd8d7['parentId']],[_0x55554c(0x154),_0x2179ae[_0x55554c(0x154)],_0x5cd8d7[_0x55554c(0x154)]],['label',_0x2179ae['label'],_0x5cd8d7[_0x55554c(0x109)]],[_0x55554c(0xf3),_0x2179ae[_0x55554c(0xf3)],_0x5cd8d7[_0x55554c(0xf3)]],[_0x55554c(0x10d),_0x2179ae[_0x55554c(0x10d)],_0x5cd8d7[_0x55554c(0x10d)]],[_0x55554c(0xff),_0x2179ae[_0x55554c(0xff)],_0x5cd8d7[_0x55554c(0xff)]],[_0x55554c(0x163),_0x2179ae[_0x55554c(0x163)],_0x5cd8d7[_0x55554c(0x163)]],[_0x55554c(0xfb),_0x2179ae[_0x55554c(0xfb)],_0x5cd8d7[_0x55554c(0xfb)]],[_0x55554c(0x105),_0x2179ae[_0x55554c(0x105)],_0x5cd8d7[_0x55554c(0x105)]],['childrenIds',_0x2179ae[_0x55554c(0x10a)],_0x5cd8d7['childrenIds']],[_0x55554c(0x111),_0x2179ae[_0x55554c(0x111)],_0x5cd8d7['childrenCount']],['pageId',_0x2179ae[_0x55554c(0x121)],_0x5cd8d7[_0x55554c(0x121)]],[_0x55554c(0xf5),_0x2179ae[_0x55554c(0xf5)],_0x5cd8d7[_0x55554c(0xf5)]],[_0x55554c(0x146),_0x2179ae['modelType'],_0x5cd8d7[_0x55554c(0x146)]],[_0x55554c(0x142),_0x2179ae[_0x55554c(0x142)],_0x5cd8d7[_0x55554c(0x142)]],[_0x55554c(0x168),_0x2179ae[_0x55554c(0x168)],_0x5cd8d7['datasetCode']]];for(const [_0x31cf45,_0x1d696b,_0x51f5da]of _0x2ff6c7){assertVerified(sameValue(_0x1d696b,_0x51f5da),'Menu\x20'+_0x5cd8d7['id']+'\x20'+_0x31cf45+'\x20changed\x20unexpectedly.');}}function sameValue(_0x598afa,_0x252288){const _0x4ac1ea=a140_0x2fc943;if(Array[_0x4ac1ea(0x11b)](_0x598afa)||Array['isArray'](_0x252288))return JSON[_0x4ac1ea(0x13c)](_0x598afa)===JSON[_0x4ac1ea(0x13c)](_0x252288);return _0x598afa===_0x252288;}
1
+ const a140_0x2c08d4=a140_0x5cdb;(function(_0xf5457d,_0x5a0d72){const _0x54a10c=a140_0x5cdb,_0x3fd88f=_0xf5457d();while(!![]){try{const _0x469e59=parseInt(_0x54a10c(0x109))/0x1*(-parseInt(_0x54a10c(0x138))/0x2)+-parseInt(_0x54a10c(0x145))/0x3+-parseInt(_0x54a10c(0xfb))/0x4*(-parseInt(_0x54a10c(0xdd))/0x5)+parseInt(_0x54a10c(0x10b))/0x6+parseInt(_0x54a10c(0xee))/0x7*(-parseInt(_0x54a10c(0x144))/0x8)+-parseInt(_0x54a10c(0x13d))/0x9*(parseInt(_0x54a10c(0x153))/0xa)+parseInt(_0x54a10c(0x106))/0xb;if(_0x469e59===_0x5a0d72)break;else _0x3fd88f['push'](_0x3fd88f['shift']());}catch(_0x289f80){_0x3fd88f['push'](_0x3fd88f['shift']());}}}(a140_0x4b45,0x4f4d4));function a140_0x5cdb(_0x42b3f3,_0x55f6d8){_0x42b3f3=_0x42b3f3-0xd8;const _0x4b45ce=a140_0x4b45();let _0x5cdbbc=_0x4b45ce[_0x42b3f3];return _0x5cdbbc;}function a140_0x4b45(){const _0x17ffd4=['message','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','menu_expected_count_mismatch','Would\x20update\x20visibility\x20for\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','appCode','Menu\x20id\x20selector(s)\x20not\x20found:\x20','requestedVisible','resources','update\x20visibility\x20for','Response\x20was\x20lost\x20and\x20menu\x20','childrenIds','update-recovery','\x20updated,\x20','menus','paths','targets','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','38bjqJFg','byId','visibility-update','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','\x20unchanged\x20menu(s).','4761324KbhrGl','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','map','pageType','recovered','get','expectedCount','16wZFVnD','1294383dTAPfm','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Menu\x20','updated','update','beforeById','filter','sort','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Selected\x20','datasetCode','validation','\x20menu(s);\x20skipped\x20','pageId','10VXmUWD','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','path','trim','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','menu','menu_state_drift','type','130ivQeRY','high-risk-write','Menu\x20visibility\x20update\x20completed:\x20','Menu\x20path\x20selector\x20not\x20found:\x20','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','resourcesValid','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','menu_permission_denied','Requested\x20menu\x20visibility','verification','plan','expectVisible','code','modelType','rabetbase\x20menu\x20list\x20--format\x20compress','false','\x20failed.','22519JqmncG','push','str','datasetId','some','\x20changed\x20unexpectedly.','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','stringify','POST','boolean','flagMissing','verify\x20menu\x20visibility\x20update','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','43716BruWpI','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','cookie','expected-count','num','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','depth','\x20skipped,\x20','hash','menu-ids','/smartapi/menu/update','13617098PLaGkK','length','menu_selector_not_found','18719jdDktV','expect-visible','752040TZtDgW','update-menu-visibility','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','rawFlags','plannedActions','body','url','isArray','Updated\x20visibility\x20for\x20','set','join','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','failed','before','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','update\x20menu\x20visibility','parentId','visible','values','\x20must\x20be\x20true\x20or\x20false.','string','menuIds','label','menu_verification_failed','\x20visibility\x20update\x20could\x20not\x20be\x20verified','split'];a140_0x4b45=function(){return _0x17ffd4;};return a140_0x4b45();}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':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a140_0x2c08d4(0xda),'command':a140_0x2c08d4(0x13a),'description':a140_0x2c08d4(0x146),'risk':a140_0x2c08d4(0xde),'structuredErrors':!![],'flags':[{'name':a140_0x2c08d4(0x104),'type':a140_0x2c08d4(0x11f),'description':a140_0x2c08d4(0x127)},{'name':a140_0x2c08d4(0x135),'type':a140_0x2c08d4(0x11f),'description':a140_0x2c08d4(0x154)},{'name':a140_0x2c08d4(0x11c),'type':a140_0x2c08d4(0xf7),'required':!![],'description':a140_0x2c08d4(0xe5)},{'name':a140_0x2c08d4(0x10a),'type':'boolean','description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':a140_0x2c08d4(0xfe),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2b7abc){parseInput(_0x2b7abc),requireExplicitYes(_0x2b7abc);},async 'dryRun'(_0x1e52fb){const _0x15816a=a140_0x2c08d4,_0x518162=await buildPlan(_0x1e52fb,!![]),_0x53c6c5=_0x518162[_0x15816a(0xe7)][_0x15816a(0x10f)]?.['length']??0x0,_0x5863e9=_0x518162[_0x15816a(0xe7)][_0x15816a(0x136)][_0x15816a(0x107)]-_0x53c6c5;return menuDryRunResult(_0x518162[_0x15816a(0xe7)],{'method':_0x15816a(0xf6),'url':_0x15816a(0x105),'body':{'updates':_0x518162[_0x15816a(0xe7)][_0x15816a(0x10f)]?.[_0x15816a(0x13f)](_0x168883=>_0x168883[_0x15816a(0x110)])??[]},'description':_0x15816a(0x129)+_0x53c6c5+'\x20menu(s);\x20skip\x20'+_0x5863e9+_0x15816a(0x13c)});},async 'execute'(_0x3dc7f9){const _0xaf808f=a140_0x2c08d4;requireExplicitYes(_0x3dc7f9);const _0x348f24=await buildPlan(_0x3dc7f9,![]);await recheckMutationSnapshot(_0x3dc7f9,_0x348f24[_0xaf808f(0xe7)],_0xaf808f(0x11a));const _0x11d109=[],_0x5d51ba=[],_0x3a4bc1=[];for(const _0x469cb9 of _0x348f24['plan'][_0xaf808f(0x136)]){if(_0x469cb9[_0xaf808f(0x118)][_0xaf808f(0x11c)]===_0x348f24[_0xaf808f(0xe7)][_0xaf808f(0x12d)]){_0x11d109[_0xaf808f(0xef)]({'id':_0x469cb9['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x3dc7f9[_0xaf808f(0x12b)],_0x3dc7f9['cookie'],{'id':_0x469cb9['id'],'visible':_0x348f24[_0xaf808f(0xe7)][_0xaf808f(0x12d)]}),_0x11d109[_0xaf808f(0xef)]({'id':_0x469cb9['id'],'updated':!![],'skipped':![]});}catch(_0x313084){const _0x1cbd4c=mapMenuApiError(_0x313084,_0xaf808f(0x12f),_0x469cb9['id']);if(isMenuResponseLoss(_0x313084)&&_0x1cbd4c[_0xaf808f(0xe9)]!==_0xaf808f(0xe4)){_0x3a4bc1['push'](_0x469cb9['id']);continue;}_0x5d51ba[_0xaf808f(0xef)]({'id':_0x469cb9['id'],'stage':_0xaf808f(0x149),'code':_0x1cbd4c['code'],'message':_0x1cbd4c[_0xaf808f(0x125)]});}}let _0x365f9b;try{_0x365f9b=await fetchMenuSnapshot(_0x3dc7f9[_0xaf808f(0x12b)],_0x3dc7f9[_0xaf808f(0xfd)]);}catch(_0x441bf6){const _0x319e4a=describeMenuErrorCause(_0x441bf6,_0xaf808f(0xf9)),_0x237446=_0x3a4bc1[_0xaf808f(0x13f)](_0x5333ed=>({'id':_0x5333ed,'stage':'update-recovery','code':_0xaf808f(0x122),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x5333ed+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x1cce2e={'stage':_0xaf808f(0xe6),'code':_0xaf808f(0x122),'message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x348f24[_0xaf808f(0xe7)][_0xaf808f(0x136)][_0xaf808f(0x13f)](_0x51e4fd=>_0x51e4fd['id']),'requestedStateConfirmed':![],..._0x319e4a};throw menuFailure(asVerificationError(_0x441bf6,_0xaf808f(0x12a)),_0x348f24[_0xaf808f(0xe7)],{'stage':_0xaf808f(0xe6),'succeeded':_0x11d109,'failedRecords':[..._0x5d51ba,..._0x237446,_0x1cce2e],'warnings':[_0xaf808f(0x14d)],'verification':{'status':'failed','recoveredCount':0x0,'lookupCommand':_0xaf808f(0xeb)}});}const _0x18db2d=[];for(const _0x510d62 of _0x11d109){const _0x25e1b7=Number(_0x510d62['id']),_0x308a21=_0x348f24['beforeById']['get'](_0x25e1b7),_0x4e3888=_0x365f9b[_0xaf808f(0x139)][_0xaf808f(0x142)](_0x25e1b7);try{verifyVisibilityUpdate(_0x308a21,_0x4e3888,_0x348f24[_0xaf808f(0xe7)][_0xaf808f(0x12d)]);}catch(_0x4db6fd){const _0x1b65ed=asVerificationError(_0x4db6fd,_0xaf808f(0x147)+_0x25e1b7+_0xaf808f(0x123));_0x18db2d[_0xaf808f(0xef)]({'id':_0x25e1b7,'stage':'verification','code':_0x1b65ed['code'],'message':_0x1b65ed[_0xaf808f(0x125)],'requestedStateConfirmed':![]});}}for(const _0x3d0f2d of _0x3a4bc1){const _0x3f9b4e=_0x348f24[_0xaf808f(0x14a)][_0xaf808f(0x142)](_0x3d0f2d),_0x5dded0=_0x365f9b[_0xaf808f(0x139)][_0xaf808f(0x142)](_0x3d0f2d);try{verifyVisibilityUpdate(_0x3f9b4e,_0x5dded0,_0x348f24[_0xaf808f(0xe7)][_0xaf808f(0x12d)]),_0x11d109['push']({'id':_0x3d0f2d,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x16a67d){const _0x4fe2aa=asVerificationError(_0x16a67d,_0xaf808f(0x130)+_0x3d0f2d+_0xaf808f(0x13e));_0x18db2d[_0xaf808f(0xef)]({'id':_0x3d0f2d,'stage':_0xaf808f(0x132),'code':_0x4fe2aa['code'],'message':_0x4fe2aa[_0xaf808f(0x125)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x18db2d[_0xaf808f(0x107)]>0x0){const _0x2d85df=_0x18db2d[_0xaf808f(0x13f)](_0x256e19=>Number(_0x256e19['id'])),_0x5d1715=_0x11d109[_0xaf808f(0x14b)](_0x442e3e=>_0x442e3e[_0xaf808f(0x141)]===!![])['length'],_0x39aab7=menuError('menu_verification_failed',_0xaf808f(0xf4)+_0x2d85df[_0xaf808f(0x115)](',\x20')+'.',_0xaf808f(0x126));throw menuFailure(_0x39aab7,_0x348f24['plan'],{'stage':_0xaf808f(0xe6),'succeeded':_0x11d109,'failedRecords':[..._0x5d51ba,..._0x18db2d],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0xaf808f(0x117),..._0x2d85df[_0xaf808f(0x107)]===0x1?{'targetId':_0x2d85df[0x0]}:{'targetIds':_0x2d85df},'recoveredCount':_0x5d1715,'lookupCommand':_0xaf808f(0xeb)}});}const _0x5efbdc=_0x11d109['filter'](_0x195685=>_0x195685[_0xaf808f(0x148)]===!![])[_0xaf808f(0x107)],_0x3bff6=_0x11d109[_0xaf808f(0x107)]-_0x5efbdc,_0x220dd3={..._0x348f24['plan'],'succeeded':_0x11d109,'failed':_0x5d51ba,'warnings':_0x5d51ba[_0xaf808f(0x107)]>0x0?[..._0x348f24[_0xaf808f(0xe7)]['warnings'],_0xaf808f(0x10d)]:_0x348f24[_0xaf808f(0xe7)]['warnings'],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x365f9b[_0xaf808f(0x103)],'matchesRequestedState':_0x5d51ba[_0xaf808f(0x107)]===0x0,'recoveredCount':_0x3a4bc1[_0xaf808f(0x107)]}};return{'ok':_0x5d51ba[_0xaf808f(0x107)]===0x0,'data':_0x220dd3,'message':_0x5d51ba[_0xaf808f(0x107)]===0x0?_0xaf808f(0x113)+_0x5efbdc+_0xaf808f(0x151)+_0x3bff6+_0xaf808f(0x13c):_0xaf808f(0xdf)+_0x5efbdc+_0xaf808f(0x133)+_0x3bff6+_0xaf808f(0x102)+_0x5d51ba[_0xaf808f(0x107)]+_0xaf808f(0xed)};}};function parseInput(_0x57c136){const _0x26e069=a140_0x2c08d4,_0x15a572=parseMenuIds(_0x57c136[_0x26e069(0xf0)](_0x26e069(0x104))),_0x1dabe5=parseCsv(_0x57c136[_0x26e069(0xf0)](_0x26e069(0x135)));if(_0x15a572[_0x26e069(0x107)]===0x0&&_0x1dabe5[_0x26e069(0x107)]===0x0)throw CliErrors[_0x26e069(0x150)](_0x26e069(0x119));const _0x537f1b=parseBooleanFlag(_0x57c136,_0x26e069(0x11c),!![]),_0x16bbe2=parseBooleanFlag(_0x57c136,_0x26e069(0x10a),![]);let _0x5d2be7;if(hasFlag(_0x57c136,_0x26e069(0xfe))){_0x5d2be7=_0x57c136[_0x26e069(0xff)](_0x26e069(0xfe));if(!Number['isSafeInteger'](_0x5d2be7)||_0x5d2be7<0x0)throw CliErrors[_0x26e069(0x150)](_0x26e069(0x100));}return{'menuIds':_0x15a572,'paths':_0x1dabe5,'visible':_0x537f1b,'expectVisible':_0x16bbe2,'expectedCount':_0x5d2be7};}async function buildPlan(_0x49d0fb,_0x5cb687){const _0x37bd1b=a140_0x2c08d4,_0x34e467=parseInput(_0x49d0fb),_0x5e8b50=await fetchMutationSnapshot(_0x49d0fb,_0x37bd1b(0x11a)),_0x11c15f=selectTargets(_0x5e8b50[_0x37bd1b(0x134)],_0x34e467[_0x37bd1b(0x120)],_0x34e467[_0x37bd1b(0x135)]);if(_0x34e467['expectedCount']!==undefined&&_0x11c15f['length']!==_0x34e467[_0x37bd1b(0x143)])throw menuError(_0x37bd1b(0x128),_0x37bd1b(0x14e)+_0x11c15f[_0x37bd1b(0x107)]+'\x20menu(s),\x20expected\x20'+_0x34e467['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x34e467[_0x37bd1b(0xe8)]!==undefined){const _0x42cb6f=_0x11c15f[_0x37bd1b(0x14b)](_0x3ddc40=>_0x3ddc40[_0x37bd1b(0x11c)]!==_0x34e467[_0x37bd1b(0xe8)]);if(_0x42cb6f[_0x37bd1b(0x107)]>0x0)throw menuError(_0x37bd1b(0xdb),_0x37bd1b(0xe1)+_0x42cb6f[_0x37bd1b(0x13f)](_0x1ab066=>_0x1ab066['id'])[_0x37bd1b(0x115)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x5ee14b=_0x11c15f[_0x37bd1b(0x13f)](_0x26cf07=>({'id':_0x26cf07['id'],'label':_0x26cf07[_0x37bd1b(0x121)],'path':_0x26cf07[_0x37bd1b(0x155)],'before':{'visible':_0x26cf07['visible']},'after':{'visible':_0x34e467['visible']}})),_0x43af67=_0x5ee14b[_0x37bd1b(0x14b)](_0x30a73a=>_0x30a73a[_0x37bd1b(0x118)][_0x37bd1b(0x11c)]!==_0x34e467[_0x37bd1b(0x11c)])[_0x37bd1b(0x13f)](_0x1bd832=>({'stage':_0x37bd1b(0x10c),'method':_0x37bd1b(0xf6),'path':_0x37bd1b(0x105),'body':{'appCode':_0x49d0fb[_0x37bd1b(0x12b)],'id':_0x1bd832['id'],'visible':_0x34e467[_0x37bd1b(0x11c)]}})),_0x1fccc9=mutationResult({'operation':_0x37bd1b(0x13a),'selector':{'menuIds':_0x34e467[_0x37bd1b(0x120)],'paths':_0x34e467[_0x37bd1b(0x135)]},'before':{'menus':_0x11c15f[_0x37bd1b(0x13f)](_0x39d0a9=>({'id':_0x39d0a9['id'],'path':_0x39d0a9['path'],'visible':_0x39d0a9['visible']}))},'after':{'menus':_0x11c15f[_0x37bd1b(0x13f)](_0x31139d=>({'id':_0x31139d['id'],'path':_0x31139d[_0x37bd1b(0x155)],'visible':_0x34e467['visible']}))},'dryRun':_0x5cb687,'backend':[...BACKEND],'plannedActions':_0x43af67,'snapshotHash':_0x5e8b50['hash'],'warnings':_0x43af67[_0x37bd1b(0x107)]===0x0?[_0x37bd1b(0x13b)]:[]});return{'plan':{..._0x1fccc9,'requestedVisible':_0x34e467[_0x37bd1b(0x11c)],'targets':_0x5ee14b},'beforeById':new Map(_0x11c15f[_0x37bd1b(0x13f)](_0x5ef04f=>[_0x5ef04f['id'],_0x5ef04f]))};}function selectTargets(_0x399c3c,_0x7fab55,_0x5b6964){const _0x28417f=a140_0x2c08d4,_0x296ed0=new Map(_0x399c3c[_0x28417f(0x13f)](_0x455e4d=>[_0x455e4d['id'],_0x455e4d])),_0x5b95e2=new Map(),_0x4c2318=_0x7fab55[_0x28417f(0x14b)](_0x38c53a=>!_0x296ed0['has'](_0x38c53a));if(_0x4c2318[_0x28417f(0x107)]>0x0)throw menuError(_0x28417f(0x108),_0x28417f(0x12c)+_0x4c2318[_0x28417f(0x115)](',\x20')+'.',_0x28417f(0x137));for(const _0x53119b of _0x7fab55){_0x5b95e2[_0x28417f(0x114)](_0x53119b,_0x296ed0[_0x28417f(0x142)](_0x53119b));}for(const _0x578f5c of _0x5b6964){const _0x230698=_0x399c3c[_0x28417f(0x14b)](_0x15b567=>_0x15b567[_0x28417f(0x155)]===_0x578f5c);if(_0x230698[_0x28417f(0x107)]===0x0)throw menuError('menu_selector_not_found',_0x28417f(0xe0)+JSON[_0x28417f(0xf5)](_0x578f5c)+'.',_0x28417f(0xfa));if(_0x230698[_0x28417f(0x107)]>0x1)throw menuError('menu_selector_ambiguous',_0x28417f(0xd9)+JSON[_0x28417f(0xf5)](_0x578f5c)+'.',_0x28417f(0x116)+_0x230698[_0x28417f(0x13f)](_0x200a5d=>_0x200a5d['id'])[_0x28417f(0x115)](',\x20')+'.');const _0x32de89=_0x230698[0x0];_0x5b95e2[_0x28417f(0x114)](_0x32de89['id'],_0x32de89);}return[..._0x5b95e2[_0x28417f(0x11d)]()];}function parseMenuIds(_0x7b92b6){const _0xa3c9b=a140_0x2c08d4,_0x52b452=parseCsv(_0x7b92b6),_0x33be5b=_0x52b452['map'](Number);if(_0x33be5b[_0xa3c9b(0xf2)](_0x49f6d5=>!Number['isSafeInteger'](_0x49f6d5)||_0x49f6d5<=0x0))throw CliErrors[_0xa3c9b(0x150)](_0xa3c9b(0xfc));return[...new Set(_0x33be5b)];}function parseCsv(_0x376a9e){const _0x5dabe5=a140_0x2c08d4;return[...new Set(_0x376a9e[_0x5dabe5(0x124)](',')[_0x5dabe5(0x13f)](_0x437643=>_0x437643[_0x5dabe5(0xd8)]())['filter'](Boolean))];}function parseBooleanFlag(_0x437601,_0x5dfb80,_0x54bfd6){const _0xd6c787=a140_0x2c08d4;if(!hasFlag(_0x437601,_0x5dfb80)){if(_0x54bfd6)throw CliErrors[_0xd6c787(0xf8)](_0x5dfb80);return undefined;}const _0x5dcb29=_0x437601[_0xd6c787(0x10e)][_0x5dfb80];if(_0x5dcb29===!![]||_0x5dcb29===![])return _0x5dcb29;if(_0x5dcb29==='true')return!![];if(_0x5dcb29===_0xd6c787(0xec))return![];throw CliErrors[_0xd6c787(0x150)]('--'+_0x5dfb80+_0xd6c787(0x11e));}function verifyVisibilityUpdate(_0x4ae871,_0x255fe2,_0x12d33f){const _0xf3450f=a140_0x2c08d4;assertVerified(!!_0x255fe2,_0xf3450f(0x147)+_0x4ae871['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x255fe2[_0xf3450f(0x11c)]===_0x12d33f,_0xf3450f(0x147)+_0x4ae871['id']+_0xf3450f(0xe3));const _0xb5f290=[['id',_0x255fe2['id'],_0x4ae871['id']],[_0xf3450f(0x11b),_0x255fe2[_0xf3450f(0x11b)],_0x4ae871[_0xf3450f(0x11b)]],[_0xf3450f(0x101),_0x255fe2[_0xf3450f(0x101)],_0x4ae871[_0xf3450f(0x101)]],[_0xf3450f(0x121),_0x255fe2[_0xf3450f(0x121)],_0x4ae871['label']],[_0xf3450f(0x155),_0x255fe2['path'],_0x4ae871[_0xf3450f(0x155)]],[_0xf3450f(0x111),_0x255fe2[_0xf3450f(0x111)],_0x4ae871[_0xf3450f(0x111)]],[_0xf3450f(0xdc),_0x255fe2['type'],_0x4ae871[_0xf3450f(0xdc)]],['sort',_0x255fe2[_0xf3450f(0x14c)],_0x4ae871[_0xf3450f(0x14c)]],[_0xf3450f(0x12e),_0x255fe2['resources'],_0x4ae871[_0xf3450f(0x12e)]],[_0xf3450f(0xe2),_0x255fe2[_0xf3450f(0xe2)],_0x4ae871['resourcesValid']],['childrenIds',_0x255fe2[_0xf3450f(0x131)],_0x4ae871['childrenIds']],['childrenCount',_0x255fe2['childrenCount'],_0x4ae871['childrenCount']],[_0xf3450f(0x152),_0x255fe2[_0xf3450f(0x152)],_0x4ae871[_0xf3450f(0x152)]],[_0xf3450f(0x140),_0x255fe2[_0xf3450f(0x140)],_0x4ae871[_0xf3450f(0x140)]],[_0xf3450f(0xea),_0x255fe2['modelType'],_0x4ae871[_0xf3450f(0xea)]],['datasetId',_0x255fe2[_0xf3450f(0xf1)],_0x4ae871[_0xf3450f(0xf1)]],['datasetCode',_0x255fe2[_0xf3450f(0x14f)],_0x4ae871[_0xf3450f(0x14f)]]];for(const [_0x2f48a8,_0x1a5c57,_0x34f82b]of _0xb5f290){assertVerified(sameValue(_0x1a5c57,_0x34f82b),_0xf3450f(0x147)+_0x4ae871['id']+'\x20'+_0x2f48a8+_0xf3450f(0xf3));}}function sameValue(_0x1550f0,_0x19eaff){const _0x4df342=a140_0x2c08d4;if(Array[_0x4df342(0x112)](_0x1550f0)||Array[_0x4df342(0x112)](_0x19eaff))return JSON[_0x4df342(0xf5)](_0x1550f0)===JSON['stringify'](_0x19eaff);return _0x1550f0===_0x19eaff;}
@@ -1 +1 @@
1
- function a141_0x438a(_0x355ffc,_0x4c2424){_0x355ffc=_0x355ffc-0xb3;const _0x1711ca=a141_0x1711();let _0x438aa1=_0x1711ca[_0x355ffc];return _0x438aa1;}const a141_0x2234fa=a141_0x438a;(function(_0x49f6e0,_0x1c500d){const _0x571519=a141_0x438a,_0x1aa013=_0x49f6e0();while(!![]){try{const _0x1cade5=-parseInt(_0x571519(0xc6))/0x1+-parseInt(_0x571519(0xc8))/0x2+-parseInt(_0x571519(0xbf))/0x3*(-parseInt(_0x571519(0xcf))/0x4)+-parseInt(_0x571519(0xc1))/0x5*(-parseInt(_0x571519(0xb5))/0x6)+parseInt(_0x571519(0xcb))/0x7+-parseInt(_0x571519(0xbe))/0x8*(parseInt(_0x571519(0xcd))/0x9)+-parseInt(_0x571519(0xb9))/0xa;if(_0x1cade5===_0x1c500d)break;else _0x1aa013['push'](_0x1aa013['shift']());}catch(_0x2723c6){_0x1aa013['push'](_0x1aa013['shift']());}}}(a141_0x1711,0x2aa36));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_0x2234fa(0xce);async function prepareCreate(_0x4472de){const _0x58c628=a141_0x2234fa,_0x43d7d3=await readNotificationDocument(_0x4472de,'create'),_0x395eac=createMutationInput(_0x4472de[_0x58c628(0xd0)],_0x43d7d3);return{'document':_0x43d7d3,'input':_0x395eac,'planned':projectNotificationConfig({'appCode':_0x4472de[_0x58c628(0xd0)],'configName':_0x43d7d3[_0x58c628(0xd4)],'channelType':_0x43d7d3[_0x58c628(0xb3)],'endpointUrl':_0x43d7d3['endpointUrl'],'channelConfig':_0x43d7d3[_0x58c628(0xbc)],'description':_0x43d7d3[_0x58c628(0xd1)],'connectTimeout':_0x43d7d3['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x43d7d3[_0x58c628(0xb7)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x2234fa(0xd2),'command':a141_0x2234fa(0xd5),'description':a141_0x2234fa(0xc7),'risk':a141_0x2234fa(0xc9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xf47ae3){assertSingleNotificationSource(_0xf47ae3);},async 'dryRun'(_0x254b26){const _0x4002c2=a141_0x2234fa,_0x3c1ce7=await prepareCreate(_0x254b26),_0x1ac8a9=notificationLookupCommand(_0x254b26[_0x4002c2(0xd0)],_0x3c1ce7[_0x4002c2(0xbd)][_0x4002c2(0xb3)]);return asDryRunResult({'operation':_0x4002c2(0xc3),'selector':{'appCode':_0x254b26['appCode'],'configName':_0x3c1ce7['document'][_0x4002c2(0xd4)],'channelType':_0x3c1ce7[_0x4002c2(0xbd)][_0x4002c2(0xb3)]},'before':null,'after':_0x3c1ce7['planned'],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x4002c2(0xd3),'lookupCommand':_0x1ac8a9}},{'method':_0x4002c2(0xcc),'url':CREATE_PATH});},async 'execute'(_0x4b3f1c){const _0x352834=a141_0x2234fa,_0x3a417e=await prepareCreate(_0x4b3f1c),_0x5cf7b0=notificationLookupCommand(_0x4b3f1c[_0x352834(0xd0)],_0x3a417e[_0x352834(0xbd)]['channelType']);let _0xafe6f7;try{_0xafe6f7=await createNotificationChannelConfig(_0x3a417e[_0x352834(0xc4)]);}catch(_0x2f3adf){if(isPlatformTransportFailure(_0x2f3adf))throw notificationError(_0x352834(0xca),_0x352834(0xc2),'Inspect\x20with\x20'+_0x5cf7b0+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x352834(0xc3),_0x352834(0xba),_0x352834(0xc0)+_0x5cf7b0+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x352834(0xbb)](_0xafe6f7)||_0xafe6f7<=0x0)throw notificationError(_0x352834(0xca),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',_0x352834(0xc0)+_0x5cf7b0+_0x352834(0xc5));let _0x1624ec;try{const _0x4ce55f=await getNotificationChannelConfig(_0xafe6f7,_0x4b3f1c['appCode']);_0x1624ec=normalizeExactNotificationConfig(_0x4ce55f,_0xafe6f7,_0x4b3f1c[_0x352834(0xd0)]);}catch{throw safeApiFailure('create','verification',_0x352834(0xc0)+_0x5cf7b0+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x352834(0xc3),'selector':{'appCode':_0x1624ec[_0x352834(0xd0)],'id':_0x1624ec['id'],'configCode':_0x1624ec[_0x352834(0xb6)],'configName':_0x1624ec[_0x352834(0xd4)],'channelType':_0x1624ec[_0x352834(0xb3)]},'before':null,'after':projectNotificationConfig(_0x1624ec),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x352834(0xb8),'lookupCommand':_0x5cf7b0}},'message':_0x352834(0xb4)+_0x1624ec['id']};}};function a141_0x1711(){const _0x4f589b=['readTimeout','verified','2764490WHLdFL','mutation','isSafeInteger','channelConfig','document','5880WLoiMD','346455jUfgcA','Inspect\x20with\x20','1543795EQqioP','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','create','input',';\x20do\x20not\x20resubmit.','84184mJInyd','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','82622wrRyik','write','notification_config_create_outcome_unknown','1045212SJHzNX','POST','1377KHxCXW','/notification/channel-config/create','8IRGLrh','appCode','description','notification','planned','configName','config-create','channelType','Created\x20notification\x20config\x20','6wesMjs','configCode'];a141_0x1711=function(){return _0x4f589b;};return a141_0x1711();}
1
+ function a141_0x41f5(_0x4d3d77,_0x25f8cf){_0x4d3d77=_0x4d3d77-0x14e;const _0x861825=a141_0x8618();let _0x41f560=_0x861825[_0x4d3d77];return _0x41f560;}function a141_0x8618(){const _0xe786be=['configCode','POST','134296vYypQh','540145NzIetA','1718199UmwZxp','input','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','config-create','connectTimeout','create','171122eotlTI','notification_config_create_outcome_unknown','planned',';\x20do\x20not\x20resubmit\x20automatically.','321392aoYCqk','139169fEXRur','notification','endpointUrl','36459MwwKMT','appCode','6NttrHX','document','/notification/channel-config/create','write','configName',';\x20do\x20not\x20resubmit.','430HJJIal','isSafeInteger','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source',';\x20no\x20automatic\x20retry\x20was\x20attempted.','channelType','description','Inspect\x20with\x20','42ONvAyg'];a141_0x8618=function(){return _0xe786be;};return a141_0x8618();}const a141_0x154505=a141_0x41f5;(function(_0x227add,_0x5655a7){const _0x3bffb2=a141_0x41f5,_0x11d625=_0x227add();while(!![]){try{const _0x360943=-parseInt(_0x3bffb2(0x152))/0x1+parseInt(_0x3bffb2(0x170))/0x2+parseInt(_0x3bffb2(0x165))/0x3*(parseInt(_0x3bffb2(0x168))/0x4)+-parseInt(_0x3bffb2(0x169))/0x5+parseInt(_0x3bffb2(0x157))/0x6*(-parseInt(_0x3bffb2(0x16a))/0x7)+parseInt(_0x3bffb2(0x151))/0x8+-parseInt(_0x3bffb2(0x155))/0x9*(-parseInt(_0x3bffb2(0x15d))/0xa);if(_0x360943===_0x5655a7)break;else _0x11d625['push'](_0x11d625['shift']());}catch(_0x3d2f06){_0x11d625['push'](_0x11d625['shift']());}}}(a141_0x8618,0x43b3d));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_0x154505(0x159);async function prepareCreate(_0x30f2f5){const _0xe3d401=a141_0x154505,_0x4d1ca=await readNotificationDocument(_0x30f2f5,_0xe3d401(0x16f)),_0x5167bd=createMutationInput(_0x30f2f5['appCode'],_0x4d1ca);return{'document':_0x4d1ca,'input':_0x5167bd,'planned':projectNotificationConfig({'appCode':_0x30f2f5[_0xe3d401(0x156)],'configName':_0x4d1ca[_0xe3d401(0x15b)],'channelType':_0x4d1ca['channelType'],'endpointUrl':_0x4d1ca[_0xe3d401(0x154)],'channelConfig':_0x4d1ca['channelConfig'],'description':_0x4d1ca[_0xe3d401(0x163)],'connectTimeout':_0x4d1ca[_0xe3d401(0x16e)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x4d1ca['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x154505(0x153),'command':a141_0x154505(0x16d),'description':a141_0x154505(0x160),'risk':a141_0x154505(0x15a),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x24f6fe){assertSingleNotificationSource(_0x24f6fe);},async 'dryRun'(_0x553cc6){const _0x17ede9=a141_0x154505,_0x943bf3=await prepareCreate(_0x553cc6),_0x3556e6=notificationLookupCommand(_0x553cc6[_0x17ede9(0x156)],_0x943bf3['document'][_0x17ede9(0x162)]);return asDryRunResult({'operation':_0x17ede9(0x16f),'selector':{'appCode':_0x553cc6['appCode'],'configName':_0x943bf3[_0x17ede9(0x158)]['configName'],'channelType':_0x943bf3[_0x17ede9(0x158)][_0x17ede9(0x162)]},'before':null,'after':_0x943bf3[_0x17ede9(0x14f)],'dryRun':!![],'backend':{'method':_0x17ede9(0x167),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x3556e6}},{'method':_0x17ede9(0x167),'url':CREATE_PATH});},async 'execute'(_0xe570dd){const _0x25d187=a141_0x154505,_0x122caa=await prepareCreate(_0xe570dd),_0x56f150=notificationLookupCommand(_0xe570dd[_0x25d187(0x156)],_0x122caa[_0x25d187(0x158)]['channelType']);let _0x3a022a;try{_0x3a022a=await createNotificationChannelConfig(_0x122caa[_0x25d187(0x16b)]);}catch(_0x3c9910){if(isPlatformTransportFailure(_0x3c9910))throw notificationError(_0x25d187(0x14e),_0x25d187(0x16c),'Inspect\x20with\x20'+_0x56f150+_0x25d187(0x15c));throw safeApiFailure(_0x25d187(0x16f),'mutation',_0x25d187(0x164)+_0x56f150+_0x25d187(0x161));}if(!Number[_0x25d187(0x15e)](_0x3a022a)||_0x3a022a<=0x0)throw notificationError(_0x25d187(0x14e),_0x25d187(0x15f),_0x25d187(0x164)+_0x56f150+';\x20do\x20not\x20resubmit.');let _0x11d430;try{const _0x39171b=await getNotificationChannelConfig(_0x3a022a,_0xe570dd[_0x25d187(0x156)]);_0x11d430=normalizeExactNotificationConfig(_0x39171b,_0x3a022a,_0xe570dd['appCode']);}catch{throw safeApiFailure(_0x25d187(0x16f),'verification',_0x25d187(0x164)+_0x56f150+_0x25d187(0x150));}return{'ok':!![],'data':{'operation':'create','selector':{'appCode':_0x11d430[_0x25d187(0x156)],'id':_0x11d430['id'],'configCode':_0x11d430[_0x25d187(0x166)],'configName':_0x11d430[_0x25d187(0x15b)],'channelType':_0x11d430[_0x25d187(0x162)]},'before':null,'after':projectNotificationConfig(_0x11d430),'dryRun':![],'backend':{'method':_0x25d187(0x167),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x56f150}},'message':'Created\x20notification\x20config\x20'+_0x11d430['id']};}};
@@ -1 +1 @@
1
- function a142_0x4210(_0x1e7e35,_0x3f1d76){_0x1e7e35=_0x1e7e35-0x1bb;const _0x549b03=a142_0x549b();let _0x421073=_0x549b03[_0x1e7e35];return _0x421073;}const a142_0x1a0c04=a142_0x4210;function a142_0x549b(){const _0x2a8d76=['delete','Notification\x20config\x20','88697XTrlSo','mutation','5FZDKsd','channelType','1097416YgmZfX','\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20','verified',';\x20no\x20automatic\x20retry\x20was\x20attempted.','appCode','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','unshift','287046LOEMTu','3116928SzNdNJ','high-risk-write','2784500nLCpel','2OqrCie','264947narxBq','/notification/channel-config/delete','some','config-delete','POST','9vVfxxT','8600163rIemJU','before','planned','notification_config_delete_verification_failed','notification_config_delete_outcome_unknown','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','90NKSQlF'];a142_0x549b=function(){return _0x2a8d76;};return a142_0x549b();}(function(_0x249abd,_0x2ce970){const _0x26e974=a142_0x4210,_0x37ad50=_0x249abd();while(!![]){try{const _0x14fc9=-parseInt(_0x26e974(0x1d5))/0x1*(-parseInt(_0x26e974(0x1d4))/0x2)+-parseInt(_0x26e974(0x1d0))/0x3+-parseInt(_0x26e974(0x1c8))/0x4*(parseInt(_0x26e974(0x1c6))/0x5)+-parseInt(_0x26e974(0x1c1))/0x6*(-parseInt(_0x26e974(0x1c4))/0x7)+-parseInt(_0x26e974(0x1d1))/0x8+-parseInt(_0x26e974(0x1da))/0x9*(parseInt(_0x26e974(0x1d3))/0xa)+parseInt(_0x26e974(0x1bb))/0xb;if(_0x14fc9===_0x2ce970)break;else _0x37ad50['push'](_0x37ad50['shift']());}catch(_0x311f6e){_0x37ad50['push'](_0x37ad50['shift']());}}}(a142_0x549b,0x30857));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a142_0x1a0c04(0x1d6),REFERENCE_WARNING=a142_0x1a0c04(0x1c0);async function prepareDelete(_0x26b5e6){const _0x5e29ca=a142_0x1a0c04,_0x95e722=readNotificationId(_0x26b5e6),_0x14d5a3=await requireExactNotificationConfig(_0x26b5e6['appCode'],_0x95e722,_0x5e29ca(0x1c2));return{'id':_0x95e722,'before':_0x14d5a3};}export const notificationConfigDelete={'service':'notification','command':a142_0x1a0c04(0x1d8),'description':a142_0x1a0c04(0x1ce),'risk':a142_0x1a0c04(0x1d2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x5f227f){readNotificationId(_0x5f227f),requireNotificationExplicitYes(_0x5f227f);},async 'dryRun'(_0x32bce1){const _0x56a34d=a142_0x1a0c04,_0x3c06d5=await prepareDelete(_0x32bce1),_0x411bf9=notificationLookupCommand(_0x32bce1[_0x56a34d(0x1cd)],_0x3c06d5['before'][_0x56a34d(0x1c7)]);return asDryRunResult({'operation':_0x56a34d(0x1c2),'selector':notificationSelector(_0x3c06d5[_0x56a34d(0x1bc)]),'before':projectNotificationConfig(_0x3c06d5[_0x56a34d(0x1bc)]),'after':null,'dryRun':!![],'backend':{'method':_0x56a34d(0x1d9),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x56a34d(0x1bd),'lookupCommand':_0x411bf9}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x3afed9){const _0x4cc6e6=a142_0x1a0c04;requireNotificationExplicitYes(_0x3afed9);const _0x140107=await prepareDelete(_0x3afed9),_0x423e44=notificationLookupCommand(_0x3afed9['appCode'],_0x140107[_0x4cc6e6(0x1bc)][_0x4cc6e6(0x1c7)]);let _0x4d349d=![];try{await deleteNotificationChannelConfig(_0x140107['id'],_0x3afed9['appCode']);}catch(_0x492b98){if(!isPlatformTransportFailure(_0x492b98))throw safeApiFailure(_0x4cc6e6(0x1c2),_0x4cc6e6(0x1c5),_0x4cc6e6(0x1ca)+_0x423e44+_0x4cc6e6(0x1cc));_0x4d349d=!![];}let _0x4fc1ae;try{_0x4fc1ae=await listNotificationChannelConfigs(_0x3afed9[_0x4cc6e6(0x1cd)],_0x140107['before'][_0x4cc6e6(0x1c7)]),validateNotificationDeleteReadback(_0x4fc1ae,_0x3afed9[_0x4cc6e6(0x1cd)],_0x140107[_0x4cc6e6(0x1bc)][_0x4cc6e6(0x1c7)]);}catch{throw notificationError(_0x4d349d?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x4cc6e6(0x1c3)+_0x140107['id']+_0x4cc6e6(0x1c9),_0x4cc6e6(0x1ca)+_0x423e44+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x4fc1ae[_0x4cc6e6(0x1d7)](_0x38dfdf=>_0x38dfdf['id']===_0x140107['id']))throw notificationError(_0x4d349d?_0x4cc6e6(0x1bf):_0x4cc6e6(0x1be),_0x4cc6e6(0x1c3)+_0x140107['id']+'\x20remains\x20present\x20after\x20delete.',_0x4cc6e6(0x1ca)+_0x423e44+';\x20do\x20not\x20resubmit\x20automatically.');const _0x1cf35f=[REFERENCE_WARNING];return _0x4d349d&&_0x1cf35f[_0x4cc6e6(0x1cf)]('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4cc6e6(0x1c2),'selector':notificationSelector(_0x140107[_0x4cc6e6(0x1bc)]),'before':projectNotificationConfig(_0x140107[_0x4cc6e6(0x1bc)]),'after':null,'dryRun':![],'backend':{'method':_0x4cc6e6(0x1d9),'path':DELETE_PATH},'warnings':_0x1cf35f,'verification':{'status':_0x4cc6e6(0x1cb),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x4d349d,'lookupCommand':_0x423e44}},'message':'Deleted\x20notification\x20config\x20'+_0x140107['id']};}};
1
+ const a142_0x1b2459=a142_0x4227;(function(_0x7bd731,_0xa1e1ed){const _0x5c5c8e=a142_0x4227,_0x5bbdb2=_0x7bd731();while(!![]){try{const _0x3a0e6a=-parseInt(_0x5c5c8e(0x9b))/0x1*(parseInt(_0x5c5c8e(0x8a))/0x2)+-parseInt(_0x5c5c8e(0x8e))/0x3+-parseInt(_0x5c5c8e(0x97))/0x4+-parseInt(_0x5c5c8e(0x8b))/0x5+-parseInt(_0x5c5c8e(0xa2))/0x6*(parseInt(_0x5c5c8e(0x95))/0x7)+-parseInt(_0x5c5c8e(0xa6))/0x8*(-parseInt(_0x5c5c8e(0x93))/0x9)+-parseInt(_0x5c5c8e(0x9a))/0xa*(-parseInt(_0x5c5c8e(0x8d))/0xb);if(_0x3a0e6a===_0xa1e1ed)break;else _0x5bbdb2['push'](_0x5bbdb2['shift']());}catch(_0x51d636){_0x5bbdb2['push'](_0x5bbdb2['shift']());}}}(a142_0x85df,0xbfca3));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a142_0x1b2459(0x85),REFERENCE_WARNING=a142_0x1b2459(0x87);function a142_0x4227(_0x17fbd4,_0x42d159){_0x17fbd4=_0x17fbd4-0x84;const _0x85df5f=a142_0x85df();let _0x422769=_0x85df5f[_0x17fbd4];return _0x422769;}async function prepareDelete(_0x107bc3){const _0x4048be=a142_0x1b2459,_0x3b8ccc=readNotificationId(_0x107bc3),_0x2843ae=await requireExactNotificationConfig(_0x107bc3['appCode'],_0x3b8ccc,_0x4048be(0x9f));return{'id':_0x3b8ccc,'before':_0x2843ae};}export const notificationConfigDelete={'service':a142_0x1b2459(0x90),'command':a142_0x1b2459(0xa4),'description':a142_0x1b2459(0x88),'risk':a142_0x1b2459(0x94),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x179e7c){readNotificationId(_0x179e7c),requireNotificationExplicitYes(_0x179e7c);},async 'dryRun'(_0x1f6f03){const _0x26d67f=a142_0x1b2459,_0x4bba65=await prepareDelete(_0x1f6f03),_0x1ebfed=notificationLookupCommand(_0x1f6f03['appCode'],_0x4bba65[_0x26d67f(0x99)][_0x26d67f(0xa7)]);return asDryRunResult({'operation':_0x26d67f(0x9f),'selector':notificationSelector(_0x4bba65[_0x26d67f(0x99)]),'before':projectNotificationConfig(_0x4bba65[_0x26d67f(0x99)]),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x26d67f(0xa3),'lookupCommand':_0x1ebfed}},{'method':_0x26d67f(0xa0),'url':DELETE_PATH});},async 'execute'(_0x23b217){const _0x58b6de=a142_0x1b2459;requireNotificationExplicitYes(_0x23b217);const _0x430fff=await prepareDelete(_0x23b217),_0x20abee=notificationLookupCommand(_0x23b217['appCode'],_0x430fff[_0x58b6de(0x99)]['channelType']);let _0x3628fa=![];try{await deleteNotificationChannelConfig(_0x430fff['id'],_0x23b217['appCode']);}catch(_0x400343){if(!isPlatformTransportFailure(_0x400343))throw safeApiFailure(_0x58b6de(0x9f),_0x58b6de(0x84),_0x58b6de(0x9e)+_0x20abee+_0x58b6de(0x92));_0x3628fa=!![];}let _0x42fe47;try{_0x42fe47=await listNotificationChannelConfigs(_0x23b217[_0x58b6de(0x8f)],_0x430fff['before'][_0x58b6de(0xa7)]),validateNotificationDeleteReadback(_0x42fe47,_0x23b217[_0x58b6de(0x8f)],_0x430fff[_0x58b6de(0x99)][_0x58b6de(0xa7)]);}catch{throw notificationError(_0x3628fa?_0x58b6de(0x86):_0x58b6de(0x91),'Notification\x20config\x20'+_0x430fff['id']+_0x58b6de(0x8c),_0x58b6de(0x9e)+_0x20abee+_0x58b6de(0x98));}if(_0x42fe47[_0x58b6de(0xa8)](_0x563d4c=>_0x563d4c['id']===_0x430fff['id']))throw notificationError(_0x3628fa?_0x58b6de(0x86):_0x58b6de(0x9c),_0x58b6de(0x89)+_0x430fff['id']+'\x20remains\x20present\x20after\x20delete.',_0x58b6de(0x9e)+_0x20abee+_0x58b6de(0x98));const _0x527a39=[REFERENCE_WARNING];return _0x3628fa&&_0x527a39[_0x58b6de(0x96)](_0x58b6de(0xa5)),{'ok':!![],'data':{'operation':_0x58b6de(0x9f),'selector':notificationSelector(_0x430fff[_0x58b6de(0x99)]),'before':projectNotificationConfig(_0x430fff['before']),'after':null,'dryRun':![],'backend':{'method':_0x58b6de(0xa0),'path':DELETE_PATH},'warnings':_0x527a39,'verification':{'status':_0x58b6de(0xa1),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3628fa,'lookupCommand':_0x20abee}},'message':_0x58b6de(0x9d)+_0x430fff['id']};}};function a142_0x85df(){const _0x310039=['2642985VcSCCO','\x20delete\x20could\x20not\x20be\x20verified.','220858RRlTwo','2278062DjMJxu','appCode','notification','notification_config_delete_verification_unavailable',';\x20no\x20automatic\x20retry\x20was\x20attempted.','63BPPXpi','high-risk-write','28ddBPvN','unshift','5661664RSzlCi',';\x20do\x20not\x20resubmit\x20automatically.','before','1540rcTBvh','1elcACr','notification_config_delete_verification_failed','Deleted\x20notification\x20config\x20','Inspect\x20with\x20','delete','POST','verified','905016KTkAbb','planned','config-delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','1725064KxBCMG','channelType','some','mutation','/notification/channel-config/delete','notification_config_delete_outcome_unknown','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Notification\x20config\x20','1018322jguaco'];a142_0x85df=function(){return _0x310039;};return a142_0x85df();}
@@ -1 +1 @@
1
- const a143_0x54b312=a143_0x3c5b;function a143_0x3c5b(_0x3cdab0,_0x4e5e6a){_0x3cdab0=_0x3cdab0-0xdf;const _0xf09ce8=a143_0xf09c();let _0x3c5be7=_0xf09ce8[_0x3cdab0];return _0x3c5be7;}(function(_0x418d7f,_0x46b28e){const _0x14ac2b=a143_0x3c5b,_0x33b69f=_0x418d7f();while(!![]){try{const _0x36840f=-parseInt(_0x14ac2b(0xf1))/0x1+-parseInt(_0x14ac2b(0xe9))/0x2*(parseInt(_0x14ac2b(0xf3))/0x3)+-parseInt(_0x14ac2b(0xe3))/0x4+-parseInt(_0x14ac2b(0xed))/0x5*(parseInt(_0x14ac2b(0xeb))/0x6)+parseInt(_0x14ac2b(0xe5))/0x7*(-parseInt(_0x14ac2b(0xe8))/0x8)+-parseInt(_0x14ac2b(0xf4))/0x9*(-parseInt(_0x14ac2b(0xef))/0xa)+parseInt(_0x14ac2b(0xe2))/0xb*(parseInt(_0x14ac2b(0xee))/0xc);if(_0x36840f===_0x46b28e)break;else _0x33b69f['push'](_0x33b69f['shift']());}catch(_0x2c38c4){_0x33b69f['push'](_0x33b69f['shift']());}}}(a143_0xf09c,0x64005));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a143_0xf09c(){const _0x4aafaf=['130151EBALEi','\x20notification\x20config(s)','string','296JXdVny','464138PRCLzp','config-list','3576810eZxRDP','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5tKHWyY','12IuWjPZ','34190HBpTkr','notification','468565qZubuD','Notification\x20channel\x20type','6FlhEoN','1809IvTOFg','Found\x20','appCode','map','29528411UkEnlb','2980944YStNeS','length'];a143_0xf09c=function(){return _0x4aafaf;};return a143_0xf09c();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0x54b312(0xf0),'command':a143_0x54b312(0xea),'description':a143_0x54b312(0xec),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a143_0x54b312(0xe7),'description':a143_0x54b312(0xf2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x20d9c1){readNotificationChannelType(_0x20d9c1);},async 'execute'(_0xb22cf1){const _0x59b957=a143_0x54b312,_0xac7c0c=readNotificationChannelType(_0xb22cf1),_0xa7db1e=await listNotificationChannelConfigs(_0xb22cf1[_0x59b957(0xe0)],_0xac7c0c),_0x3d3cee=_0xa7db1e[_0x59b957(0xe1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0xb22cf1['appCode'],'channelType':_0xac7c0c,'count':_0x3d3cee[_0x59b957(0xe4)],'configs':_0x3d3cee},'message':_0x59b957(0xdf)+_0x3d3cee[_0x59b957(0xe4)]+'\x20'+_0xac7c0c+_0x59b957(0xe6)};}};
1
+ const a143_0x5b016d=a143_0x3561;(function(_0x5153bf,_0x340f98){const _0x573a25=a143_0x3561,_0x4d1f7e=_0x5153bf();while(!![]){try{const _0x5a1cb6=parseInt(_0x573a25(0x11f))/0x1*(-parseInt(_0x573a25(0x11b))/0x2)+-parseInt(_0x573a25(0x11d))/0x3+-parseInt(_0x573a25(0x118))/0x4*(-parseInt(_0x573a25(0x115))/0x5)+parseInt(_0x573a25(0x121))/0x6*(parseInt(_0x573a25(0x10e))/0x7)+-parseInt(_0x573a25(0x10f))/0x8*(-parseInt(_0x573a25(0x113))/0x9)+parseInt(_0x573a25(0x114))/0xa*(-parseInt(_0x573a25(0x10c))/0xb)+parseInt(_0x573a25(0x116))/0xc;if(_0x5a1cb6===_0x340f98)break;else _0x4d1f7e['push'](_0x4d1f7e['shift']());}catch(_0x46b512){_0x4d1f7e['push'](_0x4d1f7e['shift']());}}}(a143_0x5e51,0xa4354));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a143_0x5e51(){const _0x8886e5=['string','1916327bVRNPF','5168560UGaemY','EMAIL','read','config-list','18aGwRYm','11240yAxLcT','11065NEpUhp','12381288ZXtrSp','Notification\x20channel\x20type','268VWRPOZ','length','type','472652uHknNk','\x20notification\x20config(s)','3011733xqCgTX','Found\x20','4GFNgJf','appCode','12AbMkyi','3894KkvsFP'];a143_0x5e51=function(){return _0x8886e5;};return a143_0x5e51();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a143_0x3561(_0x91da4e,_0x1eea33){_0x91da4e=_0x91da4e-0x10c;const _0x5e51f4=a143_0x5e51();let _0x3561a5=_0x5e51f4[_0x91da4e];return _0x3561a5;}export const notificationConfigList={'service':'notification','command':a143_0x5b016d(0x112),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a143_0x5b016d(0x111),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a143_0x5b016d(0x11a),'type':a143_0x5b016d(0x10d),'description':a143_0x5b016d(0x117),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a143_0x5b016d(0x110)}],async 'validate'(_0x42b3d0){readNotificationChannelType(_0x42b3d0);},async 'execute'(_0x32576a){const _0x554778=a143_0x5b016d,_0x4c4988=readNotificationChannelType(_0x32576a),_0x4f5656=await listNotificationChannelConfigs(_0x32576a[_0x554778(0x120)],_0x4c4988),_0x375dee=_0x4f5656['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x32576a['appCode'],'channelType':_0x4c4988,'count':_0x375dee['length'],'configs':_0x375dee},'message':_0x554778(0x11e)+_0x375dee[_0x554778(0x119)]+'\x20'+_0x4c4988+_0x554778(0x11c)};}};
@@ -1 +1 @@
1
- function a144_0x50a3(){const _0x4540ef=['payload','2456NxWYZF','45243VxiOae','config-update','5553670ZTKdqX','21UzVQEc','planned','Notification\x20config\x20','146361kbsXQk','high-risk-write','729604nIeiWG','Inspect\x20with\x20--id\x20','858PjSLdz','appCode','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','13332121nMZMJy','POST','30hAaqrp',';\x20do\x20not\x20resubmit\x20automatically.','provesChange','\x20with\x20','allMatch','verified','notification','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','before','1739820OoQxYb',';\x20no\x20automatic\x20retry\x20was\x20attempted.','patch','notification_config_update_verification_unavailable','19092zTFLUa','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','notification_config_update_verification_failed','notification_config_update_outcome_unknown','channelType','/notification/channel-config/update','\x20via\x20','verifiedFields','update','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.'];a144_0x50a3=function(){return _0x4540ef;};return a144_0x50a3();}const a144_0x1234a9=a144_0x232f;(function(_0x2d1beb,_0x7b1858){const _0xc4274f=a144_0x232f,_0x1d3b9f=_0x2d1beb();while(!![]){try{const _0x3fe552=parseInt(_0xc4274f(0x9c))/0x1+parseInt(_0xc4274f(0x9e))/0x2+-parseInt(_0xc4274f(0xa0))/0x3*(parseInt(_0xc4274f(0xb2))/0x4)+-parseInt(_0xc4274f(0x98))/0x5+-parseInt(_0xc4274f(0xae))/0x6*(-parseInt(_0xc4274f(0x99))/0x7)+-parseInt(_0xc4274f(0xbd))/0x8*(parseInt(_0xc4274f(0x96))/0x9)+-parseInt(_0xc4274f(0xa5))/0xa*(-parseInt(_0xc4274f(0xa3))/0xb);if(_0x3fe552===_0x7b1858)break;else _0x1d3b9f['push'](_0x1d3b9f['shift']());}catch(_0x8cb9a2){_0x1d3b9f['push'](_0x1d3b9f['shift']());}}}(a144_0x50a3,0xf3a75));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a144_0x1234a9(0xb7);async function prepareUpdate(_0xdd9060){const _0x35ef85=a144_0x1234a9,_0x17e664=readNotificationId(_0xdd9060),_0x253755=await readNotificationDocument(_0xdd9060,_0x35ef85(0xba)),_0x27f4a9=await requireExactNotificationConfig(_0xdd9060[_0x35ef85(0xa1)],_0x17e664,'update');return{'id':_0x17e664,'patch':_0x253755,'before':_0x27f4a9,'payload':mergeUpdateInput(_0x27f4a9,_0x253755),'planned':plannedUpdateProjection(_0x27f4a9,_0x253755)};}function a144_0x232f(_0x529754,_0x3c8aa0){_0x529754=_0x529754-0x96;const _0x50a3dc=a144_0x50a3();let _0x232f6a=_0x50a3dc[_0x529754];return _0x232f6a;}export const notificationConfigUpdate={'service':a144_0x1234a9(0xab),'command':a144_0x1234a9(0x97),'description':a144_0x1234a9(0xb3),'risk':a144_0x1234a9(0x9d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2422dc){readNotificationId(_0x2422dc),assertSingleNotificationSource(_0x2422dc),requireNotificationExplicitYes(_0x2422dc);},async 'dryRun'(_0x4ba418){const _0x4ce4aa=a144_0x1234a9,_0x512178=await prepareUpdate(_0x4ba418),_0x4608bb=notificationLookupCommand(_0x4ba418[_0x4ce4aa(0xa1)],_0x512178[_0x4ce4aa(0xad)][_0x4ce4aa(0xb6)]);return asDryRunResult({'operation':_0x4ce4aa(0xba),'selector':notificationSelector(_0x512178['before']),'before':projectNotificationConfig(_0x512178[_0x4ce4aa(0xad)]),'after':_0x512178[_0x4ce4aa(0x9a)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x4ce4aa(0x9a),'lookupCommand':_0x4608bb}},{'method':_0x4ce4aa(0xa4),'url':UPDATE_PATH});},async 'execute'(_0x6d8078){const _0x3d54d8=a144_0x1234a9;requireNotificationExplicitYes(_0x6d8078);const _0x2c8896=await prepareUpdate(_0x6d8078),_0x24ca4e=notificationLookupCommand(_0x6d8078[_0x3d54d8(0xa1)],_0x2c8896[_0x3d54d8(0xad)][_0x3d54d8(0xb6)]);let _0x3b7b39=![];try{await updateNotificationChannelConfig(_0x2c8896[_0x3d54d8(0xbc)]);}catch(_0x5162ce){if(!isPlatformTransportFailure(_0x5162ce))throw safeApiFailure(_0x3d54d8(0xba),'mutation','Inspect\x20ID\x20'+_0x2c8896['id']+_0x3d54d8(0xa8)+_0x24ca4e+_0x3d54d8(0xaf));_0x3b7b39=!![];}let _0x36c646;try{const _0x4655a6=await getNotificationChannelConfig(_0x2c8896['id'],_0x6d8078[_0x3d54d8(0xa1)]);_0x36c646=normalizeExactNotificationConfig(_0x4655a6,_0x2c8896['id'],_0x6d8078[_0x3d54d8(0xa1)]);}catch{throw notificationError(_0x3b7b39?_0x3d54d8(0xb5):_0x3d54d8(0xb1),_0x3d54d8(0x9b)+_0x2c8896['id']+_0x3d54d8(0xac),_0x3d54d8(0x9f)+_0x2c8896['id']+'\x20via\x20'+_0x24ca4e+_0x3d54d8(0xa6));}const _0x1d869=requestedSafeFieldsMatch(_0x2c8896[_0x3d54d8(0xad)],_0x36c646,_0x2c8896[_0x3d54d8(0xb0)]);if(!_0x1d869[_0x3d54d8(0xa9)]||_0x3b7b39&&!_0x1d869[_0x3d54d8(0xa7)])throw notificationError(_0x3b7b39?_0x3d54d8(0xb5):_0x3d54d8(0xb4),_0x3d54d8(0x9b)+_0x2c8896['id']+_0x3d54d8(0xa2),_0x3d54d8(0x9f)+_0x2c8896['id']+_0x3d54d8(0xb8)+_0x24ca4e+_0x3d54d8(0xa6));const _0x535d77=_0x3b7b39?[_0x3d54d8(0xbb)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x36c646),'before':projectNotificationConfig(_0x2c8896[_0x3d54d8(0xad)]),'after':projectNotificationConfig(_0x36c646),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x535d77,'verification':{'status':_0x3d54d8(0xaa),'recoveredAfterUnknownResponse':_0x3b7b39,'verifiedFields':_0x1d869[_0x3d54d8(0xb9)],'lookupCommand':_0x24ca4e}},'message':'Updated\x20notification\x20config\x20'+_0x36c646['id']};}};
1
+ const a144_0x3cdaf6=a144_0x5d77;function a144_0x5d77(_0x47096f,_0x2d417f){_0x47096f=_0x47096f-0x139;const _0x2ce698=a144_0x2ce6();let _0x5d7705=_0x2ce698[_0x47096f];return _0x5d7705;}(function(_0x1dad78,_0x12922d){const _0x3615bf=a144_0x5d77,_0x22af8f=_0x1dad78();while(!![]){try{const _0x58f4b3=parseInt(_0x3615bf(0x139))/0x1*(parseInt(_0x3615bf(0x159))/0x2)+-parseInt(_0x3615bf(0x144))/0x3*(-parseInt(_0x3615bf(0x15a))/0x4)+parseInt(_0x3615bf(0x154))/0x5*(parseInt(_0x3615bf(0x14a))/0x6)+-parseInt(_0x3615bf(0x15f))/0x7+-parseInt(_0x3615bf(0x15b))/0x8*(parseInt(_0x3615bf(0x13a))/0x9)+-parseInt(_0x3615bf(0x162))/0xa+parseInt(_0x3615bf(0x14b))/0xb*(-parseInt(_0x3615bf(0x13e))/0xc);if(_0x58f4b3===_0x12922d)break;else _0x22af8f['push'](_0x22af8f['shift']());}catch(_0x2568be){_0x22af8f['push'](_0x22af8f['shift']());}}}(a144_0x2ce6,0x37020));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a144_0x2ce6(){const _0x57e186=['321OZjoRg','channelType','Notification\x20config\x20',';\x20do\x20not\x20resubmit\x20automatically.','POST','verified','5514QNXNdB','1607947XTmeFs','payload','notification_config_update_outcome_unknown','provesChange','allMatch','notification_config_update_verification_unavailable','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','config-update','\x20via\x20','215exjXAc','verifiedFields','/notification/channel-config/update','Inspect\x20with\x20--id\x20','mutation','8272JaltJB','14308yUxwjh','8sDhaCo','\x20with\x20','patch',';\x20no\x20automatic\x20retry\x20was\x20attempted.','405433hZqPRE','Updated\x20notification\x20config\x20','planned','3404770Ejhmbm','update','90TXXOaA','221499iFMWig','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','high-risk-write','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','12auHMMD','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Inspect\x20ID\x20','appCode','before','notification_config_update_verification_failed'];a144_0x2ce6=function(){return _0x57e186;};return a144_0x2ce6();}const UPDATE_PATH=a144_0x3cdaf6(0x156);async function prepareUpdate(_0xd1a541){const _0x1145c5=a144_0x3cdaf6,_0x9c5962=readNotificationId(_0xd1a541),_0x508719=await readNotificationDocument(_0xd1a541,'update'),_0xc7db9f=await requireExactNotificationConfig(_0xd1a541[_0x1145c5(0x141)],_0x9c5962,_0x1145c5(0x163));return{'id':_0x9c5962,'patch':_0x508719,'before':_0xc7db9f,'payload':mergeUpdateInput(_0xc7db9f,_0x508719),'planned':plannedUpdateProjection(_0xc7db9f,_0x508719)};}export const notificationConfigUpdate={'service':'notification','command':a144_0x3cdaf6(0x152),'description':a144_0x3cdaf6(0x13d),'risk':a144_0x3cdaf6(0x13c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x708c3d){readNotificationId(_0x708c3d),assertSingleNotificationSource(_0x708c3d),requireNotificationExplicitYes(_0x708c3d);},async 'dryRun'(_0x2198ec){const _0x557fc1=a144_0x3cdaf6,_0x2a24e5=await prepareUpdate(_0x2198ec),_0x5967f5=notificationLookupCommand(_0x2198ec['appCode'],_0x2a24e5[_0x557fc1(0x142)][_0x557fc1(0x145)]);return asDryRunResult({'operation':_0x557fc1(0x163),'selector':notificationSelector(_0x2a24e5['before']),'before':projectNotificationConfig(_0x2a24e5['before']),'after':_0x2a24e5[_0x557fc1(0x161)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x5967f5}},{'method':_0x557fc1(0x148),'url':UPDATE_PATH});},async 'execute'(_0x3bf4d0){const _0x49f254=a144_0x3cdaf6;requireNotificationExplicitYes(_0x3bf4d0);const _0x33915f=await prepareUpdate(_0x3bf4d0),_0x142edf=notificationLookupCommand(_0x3bf4d0['appCode'],_0x33915f[_0x49f254(0x142)][_0x49f254(0x145)]);let _0x1e4704=![];try{await updateNotificationChannelConfig(_0x33915f[_0x49f254(0x14c)]);}catch(_0x198e08){if(!isPlatformTransportFailure(_0x198e08))throw safeApiFailure(_0x49f254(0x163),_0x49f254(0x158),_0x49f254(0x140)+_0x33915f['id']+_0x49f254(0x15c)+_0x142edf+_0x49f254(0x15e));_0x1e4704=!![];}let _0x5cb74f;try{const _0x408b98=await getNotificationChannelConfig(_0x33915f['id'],_0x3bf4d0[_0x49f254(0x141)]);_0x5cb74f=normalizeExactNotificationConfig(_0x408b98,_0x33915f['id'],_0x3bf4d0[_0x49f254(0x141)]);}catch{throw notificationError(_0x1e4704?_0x49f254(0x14d):_0x49f254(0x150),_0x49f254(0x146)+_0x33915f['id']+_0x49f254(0x13b),_0x49f254(0x157)+_0x33915f['id']+_0x49f254(0x153)+_0x142edf+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x45c51f=requestedSafeFieldsMatch(_0x33915f[_0x49f254(0x142)],_0x5cb74f,_0x33915f[_0x49f254(0x15d)]);if(!_0x45c51f[_0x49f254(0x14f)]||_0x1e4704&&!_0x45c51f[_0x49f254(0x14e)])throw notificationError(_0x1e4704?_0x49f254(0x14d):_0x49f254(0x143),_0x49f254(0x146)+_0x33915f['id']+_0x49f254(0x13f),_0x49f254(0x157)+_0x33915f['id']+_0x49f254(0x153)+_0x142edf+_0x49f254(0x147));const _0x38f261=_0x1e4704?[_0x49f254(0x151)]:[];return{'ok':!![],'data':{'operation':_0x49f254(0x163),'selector':notificationSelector(_0x5cb74f),'before':projectNotificationConfig(_0x33915f['before']),'after':projectNotificationConfig(_0x5cb74f),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x38f261,'verification':{'status':_0x49f254(0x149),'recoveredAfterUnknownResponse':_0x1e4704,'verifiedFields':_0x45c51f[_0x49f254(0x155)],'lookupCommand':_0x142edf}},'message':_0x49f254(0x160)+_0x5cb74f['id']};}};
@@ -1 +1 @@
1
- (function(_0x4fd7aa,_0x19c3b5){const _0x4689d2=a145_0x184d,_0x19cc41=_0x4fd7aa();while(!![]){try{const _0x294549=parseInt(_0x4689d2(0x121))/0x1+-parseInt(_0x4689d2(0x127))/0x2*(parseInt(_0x4689d2(0x120))/0x3)+parseInt(_0x4689d2(0x126))/0x4+parseInt(_0x4689d2(0x129))/0x5*(parseInt(_0x4689d2(0x12a))/0x6)+-parseInt(_0x4689d2(0x122))/0x7*(parseInt(_0x4689d2(0x123))/0x8)+-parseInt(_0x4689d2(0x125))/0x9*(-parseInt(_0x4689d2(0x128))/0xa)+-parseInt(_0x4689d2(0x124))/0xb;if(_0x294549===_0x19c3b5)break;else _0x19cc41['push'](_0x19cc41['shift']());}catch(_0x3a4e4d){_0x19cc41['push'](_0x19cc41['shift']());}}}(a145_0x297c,0xca35e));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a145_0x297c(){const _0x3b6d03=['5143725LJrrSS','4156924UXwyiN','100ECjUwm','10ssLYpo','95SnOshQ','365658LYjeIL','51753bKIRxT','1257638wVSfKV','63ANNOOK','134608HnXCWT','24024803vgKefy'];a145_0x297c=function(){return _0x3b6d03;};return a145_0x297c();}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a145_0x184d(_0x2b2d40,_0xb1c683){_0x2b2d40=_0x2b2d40-0x120;const _0x297c07=a145_0x297c();let _0x184db0=_0x297c07[_0x2b2d40];return _0x184db0;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x2bf38d,_0x3b00f2){const _0x2f9e77=a145_0x3edb,_0x3b5666=_0x2bf38d();while(!![]){try{const _0x261957=-parseInt(_0x2f9e77(0x113))/0x1+parseInt(_0x2f9e77(0x114))/0x2+parseInt(_0x2f9e77(0x118))/0x3*(parseInt(_0x2f9e77(0x11a))/0x4)+-parseInt(_0x2f9e77(0x116))/0x5+-parseInt(_0x2f9e77(0x117))/0x6*(parseInt(_0x2f9e77(0x11b))/0x7)+parseInt(_0x2f9e77(0x115))/0x8+parseInt(_0x2f9e77(0x119))/0x9;if(_0x261957===_0x3b00f2)break;else _0x3b5666['push'](_0x3b5666['shift']());}catch(_0x4eb285){_0x3b5666['push'](_0x3b5666['shift']());}}}(a145_0x19af,0x5d930));import{notificationConfigList}from'../../commands/notification/config-list.js';function a145_0x19af(){const _0x2575d4=['6xMLTCZ','51282Yxbvmr','12910410QXpcqQ','48eiXRjD','3277148fdpePc','736725ptlFOJ','532550ccwrQj','1710536sfbMJJ','2657705aUNsOQ'];a145_0x19af=function(){return _0x2575d4;};return a145_0x19af();}import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a145_0x3edb(_0x7cb0de,_0x146e13){_0x7cb0de=_0x7cb0de-0x113;const _0x19aff7=a145_0x19af();let _0x3edbd9=_0x19aff7[_0x7cb0de];return _0x3edbd9;}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
@@ -1 +1 @@
1
- const a146_0x29555b=a146_0x4f3f;(function(_0x2b1968,_0x709479){const _0x397234=a146_0x4f3f,_0x3b285a=_0x2b1968();while(!![]){try{const _0x345ea=-parseInt(_0x397234(0xed))/0x1+parseInt(_0x397234(0xbe))/0x2*(parseInt(_0x397234(0xbc))/0x3)+parseInt(_0x397234(0xbd))/0x4*(-parseInt(_0x397234(0xd2))/0x5)+-parseInt(_0x397234(0xad))/0x6+-parseInt(_0x397234(0x114))/0x7+-parseInt(_0x397234(0xfc))/0x8+parseInt(_0x397234(0xc9))/0x9*(parseInt(_0x397234(0x10c))/0xa);if(_0x345ea===_0x709479)break;else _0x3b285a['push'](_0x3b285a['shift']());}catch(_0x2db2a3){_0x3b285a['push'](_0x3b285a['shift']());}}}(a146_0x3f48,0xea3e0));import{readFile}from'node:fs/promises';function a146_0x3f48(){const _0x20b1ce=['stdin','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','9441186QYtFgJ','FEISHU','\x22\x20must\x20be\x20a\x20non-empty\x20string.','readTimeout','\x22configName\x22.','Invalid\x20--','<redacted>','parse','failed','bool','endpointUrl','Item\x20','create','validation','str','3gPXrOu','12WdSkgD','1347298PdIOSx','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','\x20--type\x20','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','notification_config_field_unknown','\x20has\x20invalid\x20field\x20\x22','a\x20non-empty\x20string','some','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','\x20characters.','Notification\x20config\x20','90KOlwAd','messageTemplate','notification_config_field_required','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','number','ccList','replyTo','name','1514830PtkOyH','a\x20supported\x20string','_unavailable','WECOM','notification_config_confirmation_required','Notification\x20JSON\x20source\x20is\x20ambiguous.','notification_config_json_invalid','Application-level\x20notification\x20config\x20ID','path','\x20failed.','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','isArray','channelType','length','appCode','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','hasOwnProperty','\x20has\x20an\x20invalid\x20appCode.','\x20has\x20an\x20invalid\x20id.','endpointUrlRaw','configCode','update','channelConfigRaw','includes','isSafeInteger','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','rabetbase\x20notification\x20config-list\x20--appcode\x20','978706QTafli','Notification\x20JSON\x20field\x20\x22','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','environment\x20variable\x20','description','entries','\x22\x20must\x20be\x20','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Invalid\x20notification\x20config\x20response.','Allowed\x20values:\x20','notification_config_response_invalid','prototype','EMAIL','\x20must\x20be\x20an\x20object.','notification_config_field_forbidden','14233000sHPyvU','num','trim','notification_config_field_invalid','kind','a\x20JSON\x20object\x20or\x20null','keys','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','apiError','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','Missing\x20notification\x20JSON\x20source.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Notification\x20config\x20list\x20item\x20','join','dry-run','6142530KEhauj','\x22channelType\x22.','channelConfig','Notification\x20JSON\x20from\x20','file','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','\x20has\x20an\x20invalid\x20channelType.','createTime','4315241RvHbIC','boolean','\x20is\x20invalid.','a\x20JSON\x20object','Notification\x20JSON\x20channelConfig\x20field\x20\x22','yes','from-env','utf8','every','configName','has','stringify','env','recipients','file\x20','string','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','connectTimeout','notification_config_id_invalid','push','notification_config_source_unavailable','\x22\x20cannot\x20exceed\x20','notification_config_channel_field_forbidden','channelCode'];a146_0x3f48=function(){return _0x20b1ce;};return a146_0x3f48();}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_0x29555b(0xf9),a146_0x29555b(0xae),'DINGTALK',a146_0x29555b(0xd5),'WEBHOOK'];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x29555b(0x11d),a146_0x29555b(0xde),a146_0x29555b(0xb7),a146_0x29555b(0x10e),a146_0x29555b(0xf1),a146_0x29555b(0xa4),a146_0x29555b(0xb0)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x29555b(0xe0),a146_0x29555b(0xe6),a146_0x29555b(0xaa)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a146_0x29555b(0x121),a146_0x29555b(0xcf),'bccList',a146_0x29555b(0xd0),'subjectPrefix','fromName','to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a146_0x29555b(0xa2),'required':![],'description':a146_0x29555b(0xef)},{'name':a146_0x29555b(0xab),'type':a146_0x29555b(0x115),'required':![],'default':![],'description':a146_0x29555b(0x106)},{'name':'from-env','type':'string','required':![],'description':a146_0x29555b(0x103)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x29555b(0xce),'required':!![],'description':a146_0x29555b(0xd9)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x51b02c,_0x3ebede,_0x298c02){return new CliError(_0x51b02c,0x1,_0x3ebede,_0x298c02);}export function readNotificationId(_0x47e115){const _0x56d1cf=a146_0x29555b,_0x558818=_0x47e115[_0x56d1cf(0xfd)]('id');if(!Number[_0x56d1cf(0xea)](_0x558818)||_0x558818<=0x0)throw notificationError(_0x56d1cf(0xa5),_0x56d1cf(0xc1));return _0x558818;}export function requireNotificationExplicitYes(_0x54d055){const _0x5d29b8=a146_0x29555b;if(_0x54d055[_0x5d29b8(0xb6)](_0x5d29b8(0x10b))||_0x54d055[_0x5d29b8(0xb6)](_0x5d29b8(0x119)))return;throw notificationError(_0x5d29b8(0xd6),_0x5d29b8(0x108),_0x5d29b8(0xa3));}export function readNotificationChannelType(_0x380e64,_0x3de8e7='type',_0x2b09e5=a146_0x29555b(0xf9)){const _0x4f8bb8=a146_0x29555b,_0xf42768=_0x380e64['str'](_0x3de8e7)[_0x4f8bb8(0xfe)]()||_0x2b09e5;if(!NOTIFICATION_CHANNEL_TYPES[_0x4f8bb8(0xe9)](_0xf42768))throw CliErrors[_0x4f8bb8(0xba)](_0x4f8bb8(0xb2)+_0x3de8e7+':\x20'+_0xf42768,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x4f8bb8(0x10a)](',\x20')+'.');return _0xf42768;}export function assertSingleNotificationSource(_0x3b0b2b){const _0x3318b5=a146_0x29555b,_0x2d125a=[],_0x26c84c=_0x3b0b2b[_0x3318b5(0xbb)]('file')[_0x3318b5(0xfe)]();if(_0x26c84c)_0x2d125a['push']({'kind':_0x3318b5(0x110),'path':_0x26c84c});if(_0x3b0b2b['bool']('stdin'))_0x2d125a['push']({'kind':_0x3318b5(0xab)});const _0x7c834a=_0x3b0b2b['str'](_0x3318b5(0x11a))[_0x3318b5(0xfe)]();if(_0x7c834a)_0x2d125a[_0x3318b5(0xa6)]({'kind':'env','name':_0x7c834a});if(_0x2d125a[_0x3318b5(0xdf)]===0x0)throw CliErrors[_0x3318b5(0xba)](_0x3318b5(0x107),_0x3318b5(0xe1));if(_0x2d125a['length']>0x1)throw CliErrors[_0x3318b5(0xba)](_0x3318b5(0xd7),_0x3318b5(0xe1));return _0x2d125a[0x0];}export async function readNotificationDocument(_0x5035fe,_0x358533){const _0x326235=a146_0x29555b,_0x4178f5=assertSingleNotificationSource(_0x5035fe),_0xaf91e2=_0x4178f5[_0x326235(0x100)]===_0x326235(0x110)?_0x326235(0xa1)+_0x4178f5['path']:_0x4178f5[_0x326235(0x100)]===_0x326235(0x120)?_0x326235(0xf0)+_0x4178f5['name']:_0x326235(0xab);let _0x1502ba;try{if(_0x4178f5[_0x326235(0x100)]===_0x326235(0x110))_0x1502ba=await readFile(_0x4178f5[_0x326235(0xda)],_0x326235(0x11b));else{if(_0x4178f5[_0x326235(0x100)]===_0x326235(0x120)){if(!(_0x4178f5[_0x326235(0xd1)]in process.env))throw notificationError(_0x326235(0xa7),_0x326235(0xc6)+_0x4178f5[_0x326235(0xd1)]);_0x1502ba=process.env[_0x4178f5.name]??'';}else _0x1502ba=await readStdin();}}catch(_0x50c13a){if(_0x50c13a instanceof CliError)throw _0x50c13a;throw notificationError(_0x326235(0xa7),_0x326235(0xdc)+_0xaf91e2+'.');}let _0x48a146;try{_0x48a146=JSON[_0x326235(0xb4)](_0x1502ba);}catch{throw notificationError('notification_config_json_invalid',_0x326235(0x10f)+_0xaf91e2+_0x326235(0x116),_0x326235(0x111));}if(!isJsonObject(_0x48a146))throw notificationError(_0x326235(0xd8),_0x326235(0x10f)+_0xaf91e2+_0x326235(0xfa));return validateNotificationDocument(_0x48a146,_0x358533);}export function projectNotificationListConfig(_0x3be64a,_0x5aa0fa){const _0x4c10e=a146_0x29555b;return{'id':typeof _0x3be64a['id']==='number'?_0x3be64a['id']:null,'configCode':requireResponseString(_0x3be64a[_0x4c10e(0xe6)],_0x4c10e(0xe6),_0x5aa0fa),'configName':requireResponseString(_0x3be64a['configName'],_0x4c10e(0x11d),_0x5aa0fa),'channelType':requireResponseString(_0x3be64a[_0x4c10e(0xde)],_0x4c10e(0xde),_0x5aa0fa),'description':normalizeNullableString(_0x3be64a[_0x4c10e(0xf1)]),'createTime':normalizeNullableString(_0x3be64a[_0x4c10e(0x113)]),'updateTime':normalizeNullableString(_0x3be64a['updateTime'])};}export function normalizeExactNotificationConfig(_0x566994,_0x4dd531,_0x2c2cac){const _0x5df8ef=a146_0x29555b;if(!Number[_0x5df8ef(0xea)](_0x566994['id'])||_0x566994['id']!==_0x4dd531)throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xcd)+_0x4dd531+'.');if(_0x566994['appCode']!==_0x2c2cac)throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xc8)+_0x4dd531+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x4deeb5=requireExactString(_0x566994[_0x5df8ef(0x11d)],_0x5df8ef(0x11d),_0x4dd531),_0x22bc08=requireExactString(_0x566994['configCode'],_0x5df8ef(0xe6),_0x4dd531),_0x52b54f=requireExactString(_0x566994[_0x5df8ef(0xde)],_0x5df8ef(0xde),_0x4dd531);if(!NOTIFICATION_CHANNEL_TYPES[_0x5df8ef(0xe9)](_0x52b54f))throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xc8)+_0x4dd531+'\x20has\x20an\x20unsupported\x20channelType.');const _0x28506d=responseNullableString(_0x566994['endpointUrl'],'endpointUrl',_0x4dd531),_0x38779d=responseNullableString(_0x566994[_0x5df8ef(0x10e)],'channelConfig',_0x4dd531),_0x33d7db=responseNullableString(_0x566994[_0x5df8ef(0xf1)],_0x5df8ef(0xf1),_0x4dd531),_0x5168ee=responseNullableTimeout(_0x566994['connectTimeout'],_0x5df8ef(0xa4),_0x4dd531),_0x4eb0e0=responseNullableTimeout(_0x566994[_0x5df8ef(0xb0)],_0x5df8ef(0xb0),_0x4dd531);return{'id':_0x4dd531,'appCode':_0x2c2cac,'configCode':_0x22bc08,'configName':_0x4deeb5,'channelType':_0x52b54f,'endpointUrl':redactSensitive(_0x28506d),'channelConfig':redactSensitive(_0x38779d),'description':_0x33d7db,'connectTimeout':_0x5168ee,'readTimeout':_0x4eb0e0,'endpointUrlRaw':_0x28506d,'channelConfigRaw':_0x38779d};}export async function requireExactNotificationConfig(_0x126ba7,_0x4252b3,_0x41c75b){const _0x1f3018=a146_0x29555b;let _0x7f7f2e;try{_0x7f7f2e=await getNotificationChannelConfig(_0x4252b3,_0x126ba7);}catch{throw safeApiFailure(_0x41c75b,'preflight',_0x1f3018(0xeb)+_0x126ba7+_0x1f3018(0xbf));}return normalizeExactNotificationConfig(_0x7f7f2e,_0x4252b3,_0x126ba7);}export function projectNotificationConfig(_0x3f81b5){const _0x5323b7=a146_0x29555b;return{'id':_0x3f81b5['id']??null,'appCode':_0x3f81b5[_0x5323b7(0xe0)],'configCode':_0x3f81b5[_0x5323b7(0xe6)]??null,'configName':_0x3f81b5[_0x5323b7(0x11d)],'channelType':_0x3f81b5[_0x5323b7(0xde)],'endpointUrl':redactSensitive(_0x3f81b5[_0x5323b7(0xb7)]),'channelConfig':redactSensitive(_0x3f81b5[_0x5323b7(0x10e)]),'description':_0x3f81b5[_0x5323b7(0xf1)]??null,'connectTimeout':_0x3f81b5[_0x5323b7(0xa4)]??null,'readTimeout':_0x3f81b5[_0x5323b7(0xb0)]??null};}export function notificationSelector(_0x35b2ce){const _0x12c78a=a146_0x29555b;return{'appCode':_0x35b2ce[_0x12c78a(0xe0)],'id':_0x35b2ce['id'],'configCode':_0x35b2ce['configCode'],'configName':_0x35b2ce[_0x12c78a(0x11d)],'channelType':_0x35b2ce[_0x12c78a(0xde)]};}export function createMutationInput(_0x3bbaec,_0x6fdfb8){const _0x187178=a146_0x29555b;return{'appCode':_0x3bbaec,'configName':_0x6fdfb8[_0x187178(0x11d)],'channelType':_0x6fdfb8['channelType'],...hasOwn(_0x6fdfb8,_0x187178(0xb7))?{'endpointUrl':_0x6fdfb8[_0x187178(0xb7)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0x10e))?{'channelConfig':serializeChannelConfig(_0x6fdfb8['channelConfig'])}:{},...hasOwn(_0x6fdfb8,'description')?{'description':_0x6fdfb8[_0x187178(0xf1)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0xa4))?{'connectTimeout':_0x6fdfb8[_0x187178(0xa4)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0xb0))?{'readTimeout':_0x6fdfb8[_0x187178(0xb0)]}:{}};}export function mergeUpdateInput(_0x342677,_0x44456d){const _0x4d0b51=a146_0x29555b;return{'id':_0x342677['id'],'appCode':_0x342677[_0x4d0b51(0xe0)],'configName':_0x44456d[_0x4d0b51(0x11d)]??_0x342677[_0x4d0b51(0x11d)],'channelType':_0x44456d[_0x4d0b51(0xde)]??_0x342677[_0x4d0b51(0xde)],'endpointUrl':hasOwn(_0x44456d,_0x4d0b51(0xb7))?_0x44456d[_0x4d0b51(0xb7)]:_0x342677[_0x4d0b51(0xe5)],'channelConfig':hasOwn(_0x44456d,_0x4d0b51(0x10e))?serializeChannelConfig(_0x44456d['channelConfig']):_0x342677[_0x4d0b51(0xe8)],'description':hasOwn(_0x44456d,'description')?_0x44456d[_0x4d0b51(0xf1)]:_0x342677[_0x4d0b51(0xf1)],'connectTimeout':hasOwn(_0x44456d,_0x4d0b51(0xa4))?_0x44456d[_0x4d0b51(0xa4)]:_0x342677[_0x4d0b51(0xa4)],'readTimeout':hasOwn(_0x44456d,_0x4d0b51(0xb0))?_0x44456d[_0x4d0b51(0xb0)]:_0x342677[_0x4d0b51(0xb0)]};}export function plannedUpdateProjection(_0xb61e,_0x5f47b2){const _0x2b28b5=a146_0x29555b;return projectNotificationConfig({'id':_0xb61e['id'],'appCode':_0xb61e[_0x2b28b5(0xe0)],'configCode':_0xb61e[_0x2b28b5(0xe6)],'configName':_0x5f47b2['configName']??_0xb61e[_0x2b28b5(0x11d)],'channelType':_0x5f47b2[_0x2b28b5(0xde)]??_0xb61e['channelType'],'endpointUrl':hasOwn(_0x5f47b2,_0x2b28b5(0xb7))?_0x5f47b2[_0x2b28b5(0xb7)]:_0xb61e[_0x2b28b5(0xe5)],'channelConfig':hasOwn(_0x5f47b2,_0x2b28b5(0x10e))?_0x5f47b2[_0x2b28b5(0x10e)]:_0xb61e['channelConfigRaw'],'description':hasOwn(_0x5f47b2,_0x2b28b5(0xf1))?_0x5f47b2[_0x2b28b5(0xf1)]:_0xb61e[_0x2b28b5(0xf1)],'connectTimeout':hasOwn(_0x5f47b2,'connectTimeout')?_0x5f47b2[_0x2b28b5(0xa4)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0xb61e[_0x2b28b5(0xa4)],'readTimeout':hasOwn(_0x5f47b2,_0x2b28b5(0xb0))?_0x5f47b2[_0x2b28b5(0xb0)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0xb61e['readTimeout']});}export function requestedSafeFieldsMatch(_0x20f735,_0x1966de,_0x26e2f6){const _0x409223=a146_0x29555b,_0x4f4dc3=[],_0x22d86c=[],_0x53274a=[];for(const _0x1695ba of[_0x409223(0x11d),_0x409223(0xde),_0x409223(0xf1)]){if(!hasOwn(_0x26e2f6,_0x1695ba))continue;_0x53274a[_0x409223(0xa6)](_0x1695ba),_0x4f4dc3['push'](_0x1966de[_0x1695ba]===_0x26e2f6[_0x1695ba]),_0x22d86c[_0x409223(0xa6)](_0x20f735[_0x1695ba]!==_0x26e2f6[_0x1695ba]&&_0x1966de[_0x1695ba]===_0x26e2f6[_0x1695ba]);}for(const _0x12fcaf of[_0x409223(0xa4),_0x409223(0xb0)]){if(!hasOwn(_0x26e2f6,_0x12fcaf))continue;const _0x4cb52e=_0x26e2f6[_0x12fcaf]??(_0x12fcaf===_0x409223(0xa4)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x53274a[_0x409223(0xa6)](_0x12fcaf),_0x4f4dc3[_0x409223(0xa6)](_0x1966de[_0x12fcaf]===_0x4cb52e),_0x22d86c['push'](_0x20f735[_0x12fcaf]!==_0x4cb52e&&_0x1966de[_0x12fcaf]===_0x4cb52e);}return hasOwn(_0x26e2f6,_0x409223(0xb7))&&_0x26e2f6[_0x409223(0xb7)]===null&&(_0x53274a['push']('endpointUrl:null'),_0x4f4dc3[_0x409223(0xa6)](_0x1966de[_0x409223(0xe5)]===null||_0x1966de[_0x409223(0xe5)]===''),_0x22d86c['push'](_0x20f735['endpointUrlRaw']!==null&&_0x20f735['endpointUrlRaw']!==''&&(_0x1966de[_0x409223(0xe5)]===null||_0x1966de[_0x409223(0xe5)]===''))),{'allMatch':_0x4f4dc3[_0x409223(0x11c)](Boolean),'provesChange':_0x22d86c[_0x409223(0xc5)](Boolean),'verifiedFields':_0x53274a};}export function validateNotificationDeleteReadback(_0x5626fc,_0x5cb862,_0x14c5bb){const _0x4680b9=a146_0x29555b;for(const [_0x11d03e,_0x125104]of _0x5626fc[_0x4680b9(0xf2)]()){if(!Number[_0x4680b9(0xea)](_0x125104['id'])||_0x125104['id']<=0x0)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0xe4));if(_0x125104['appCode']!==_0x5cb862)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0xe3));if(_0x125104[_0x4680b9(0xde)]!==_0x14c5bb)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0x112));}}export function safeApiFailure(_0xf3cb97,_0x4a58fc,_0x22d944){const _0x29a7f0=a146_0x29555b;return notificationError('notification_config_'+_0xf3cb97+'_'+(_0x4a58fc==='mutation'?_0x29a7f0(0xb5):_0x4a58fc+_0x29a7f0(0xd4)),_0x29a7f0(0xc8)+_0xf3cb97+'\x20'+_0x4a58fc+_0x29a7f0(0xdb),_0x22d944);}function a146_0x4f3f(_0xfb410d,_0x47b8e5){_0xfb410d=_0xfb410d-0xa1;const _0x3f48e5=a146_0x3f48();let _0x4f3fa4=_0x3f48e5[_0xfb410d];return _0x4f3fa4;}export function notificationLookupCommand(_0x29ee5e,_0x806dc){const _0x46b51e=a146_0x29555b;return _0x46b51e(0xec)+_0x29ee5e+_0x46b51e(0xc0)+_0x806dc+'\x20--format\x20compress';}function validateNotificationDocument(_0x282348,_0x58576c){const _0x4f359e=a146_0x29555b;for(const _0x5a5816 of Object[_0x4f359e(0x102)](_0x282348)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x5a5816))throw notificationError(_0x4f359e(0xfb),_0x4f359e(0xee)+_0x5a5816+_0x4f359e(0xcc));if(!ALLOWED_INPUT_FIELDS[_0x4f359e(0x11e)](_0x5a5816))throw notificationError(_0x4f359e(0xc2),'Unknown\x20notification\x20JSON\x20field\x20\x22'+_0x5a5816+'\x22.');}if(_0x58576c===_0x4f359e(0xe7)&&Object['keys'](_0x282348)[_0x4f359e(0xdf)]===0x0)throw notificationError('notification_config_update_empty',_0x4f359e(0xac));const _0x18f883={};if(hasOwn(_0x282348,_0x4f359e(0x11d)))_0x18f883[_0x4f359e(0x11d)]=validateRequiredString(_0x282348[_0x4f359e(0x11d)],'configName',0x80);else{if(_0x58576c===_0x4f359e(0xb9))throw notificationError(_0x4f359e(0xcb),'Create\x20JSON\x20requires\x20field\x20'+_0x4f359e(0xb1));}if(hasOwn(_0x282348,_0x4f359e(0xde))){if(typeof _0x282348['channelType']!==_0x4f359e(0xa2))throw invalidFieldType('channelType',_0x4f359e(0xd3));const _0x4b80d9=_0x282348[_0x4f359e(0xde)][_0x4f359e(0xfe)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x4b80d9))throw notificationError(_0x4f359e(0xff),_0x4f359e(0xf4),_0x4f359e(0xf6)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');_0x18f883[_0x4f359e(0xde)]=_0x4b80d9;}else{if(_0x58576c==='create')throw notificationError(_0x4f359e(0xcb),'Create\x20JSON\x20requires\x20field\x20'+_0x4f359e(0x10d));}for(const [_0x2ead55,_0x30a0db]of[[_0x4f359e(0xb7),0x200],[_0x4f359e(0xf1),0x100]]){if(!hasOwn(_0x282348,_0x2ead55))continue;const _0x18af1f=_0x282348[_0x2ead55];if(_0x18af1f!==null&&typeof _0x18af1f!==_0x4f359e(0xa2))throw invalidFieldType(_0x2ead55,'a\x20string\x20or\x20null');if(typeof _0x18af1f==='string'&&_0x18af1f[_0x4f359e(0xdf)]>_0x30a0db)throw notificationError(_0x4f359e(0xff),_0x4f359e(0xee)+_0x2ead55+_0x4f359e(0xa8)+_0x30a0db+_0x4f359e(0xc7));_0x18f883[_0x2ead55]=_0x18af1f;}if(hasOwn(_0x282348,_0x4f359e(0x10e))){const _0x4518b2=_0x282348[_0x4f359e(0x10e)];if(_0x4518b2===null&&_0x58576c===_0x4f359e(0xb9))throw invalidFieldType(_0x4f359e(0x10e),_0x4f359e(0x117));if(_0x4518b2!==null&&!isJsonObject(_0x4518b2))throw invalidFieldType('channelConfig',_0x58576c===_0x4f359e(0xe7)?_0x4f359e(0x101):'a\x20JSON\x20object');_0x4518b2!==null&&validateChannelConfigFields(_0x18f883[_0x4f359e(0xde)],_0x4518b2),_0x18f883[_0x4f359e(0x10e)]=_0x4518b2;}for(const _0x89aa88 of['connectTimeout',_0x4f359e(0xb0)]){if(!hasOwn(_0x282348,_0x89aa88))continue;const _0x22d625=_0x282348[_0x89aa88];if(_0x22d625!==null&&(!Number[_0x4f359e(0xea)](_0x22d625)||_0x22d625<0x0))throw notificationError(_0x4f359e(0xff),_0x4f359e(0xee)+_0x89aa88+_0x4f359e(0x105));_0x18f883[_0x89aa88]=_0x22d625;}return _0x18f883;}function validateRequiredString(_0x26bc40,_0x1565fc,_0x1acc04){const _0x11a7bb=a146_0x29555b;if(typeof _0x26bc40!==_0x11a7bb(0xa2))throw invalidFieldType(_0x1565fc,_0x11a7bb(0xc4));const _0xd1b3e8=_0x26bc40[_0x11a7bb(0xfe)]();if(!_0xd1b3e8)throw notificationError(_0x11a7bb(0xff),_0x11a7bb(0xee)+_0x1565fc+_0x11a7bb(0xaf));if(_0xd1b3e8[_0x11a7bb(0xdf)]>_0x1acc04)throw notificationError(_0x11a7bb(0xff),'Notification\x20JSON\x20field\x20\x22'+_0x1565fc+_0x11a7bb(0xa8)+_0x1acc04+'\x20characters.');return _0xd1b3e8;}function validateChannelConfigFields(_0x57d386,_0x12cca6){const _0x2309dd=a146_0x29555b;if(hasOwn(_0x12cca6,'messageTemplate'))throw forbiddenChannelConfigField(_0x2309dd(0xca));if(_0x57d386===_0x2309dd(0xf9))for(const _0x151566 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x12cca6,_0x151566))throw forbiddenChannelConfigField(_0x151566);}}function forbiddenChannelConfigField(_0x1dd2d4){const _0x4fbe60=a146_0x29555b;return notificationError(_0x4fbe60(0xa9),_0x4fbe60(0x118)+_0x1dd2d4+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x3ccc1e,_0x10f51e){const _0x58a84a=a146_0x29555b;return notificationError(_0x58a84a(0xff),_0x58a84a(0xee)+_0x3ccc1e+_0x58a84a(0xf3)+_0x10f51e+'.');}function serializeChannelConfig(_0x240a80){const _0x5548a2=a146_0x29555b;return _0x240a80===null||_0x240a80===undefined?null:JSON[_0x5548a2(0x11f)](_0x240a80);}function redactSensitive(_0x25b92e){const _0x53b46c=a146_0x29555b;return _0x25b92e===null||_0x25b92e===undefined||_0x25b92e===''?null:_0x53b46c(0xb3);}function requireResponseString(_0x5e1109,_0x553deb,_0x54e486){const _0x312975=a146_0x29555b;if(typeof _0x5e1109!==_0x312975(0xa2)||_0x5e1109[_0x312975(0xfe)]()==='')throw CliErrors[_0x312975(0x104)](_0x312975(0xf5),_0x312975(0xb8)+(_0x54e486+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x553deb+'\x22.');return _0x5e1109[_0x312975(0xfe)]();}function requireExactString(_0x5c1cfc,_0x57bfe4,_0x24ac2f){const _0x3460be=a146_0x29555b;if(typeof _0x5c1cfc!==_0x3460be(0xa2)||_0x5c1cfc[_0x3460be(0xfe)]()==='')throw notificationError(_0x3460be(0xf7),_0x3460be(0xc8)+_0x24ac2f+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x57bfe4+'\x22.');return _0x5c1cfc['trim']();}function responseNullableString(_0x1e1f35,_0x1431ef,_0x3112ad){const _0xd5f767=a146_0x29555b;if(_0x1e1f35===undefined||_0x1e1f35===null)return null;if(typeof _0x1e1f35!==_0xd5f767(0xa2))throw notificationError(_0xd5f767(0xf7),_0xd5f767(0xc8)+_0x3112ad+_0xd5f767(0xc3)+_0x1431ef+'\x22.');return _0x1e1f35;}function responseNullableTimeout(_0xd1d164,_0x2bb82a,_0x663371){const _0x5ecde3=a146_0x29555b;if(_0xd1d164===undefined||_0xd1d164===null)return null;if(!Number[_0x5ecde3(0xea)](_0xd1d164)||_0xd1d164<0x0)throw notificationError(_0x5ecde3(0xf7),_0x5ecde3(0xc8)+_0x663371+_0x5ecde3(0xc3)+_0x2bb82a+'\x22.');return _0xd1d164;}function normalizeNullableString(_0x37ba36){const _0x452725=a146_0x29555b;return typeof _0x37ba36===_0x452725(0xa2)?_0x37ba36:null;}function isJsonObject(_0x45408c){const _0x536234=a146_0x29555b;return _0x45408c!==null&&typeof _0x45408c==='object'&&!Array[_0x536234(0xdd)](_0x45408c);}function hasOwn(_0x5e60b3,_0x519c8e){const _0x3768dc=a146_0x29555b;return Object[_0x3768dc(0xf8)][_0x3768dc(0xe2)]['call'](_0x5e60b3,_0x519c8e);}async function readStdin(){const _0x4e703d=a146_0x29555b;let _0x1d441a='';process[_0x4e703d(0xab)]['setEncoding'](_0x4e703d(0x11b));for await(const _0x4b23b4 of process['stdin'])_0x1d441a+=_0x4b23b4;return _0x1d441a;}
1
+ const a146_0x505f1e=a146_0x30ef;(function(_0x16ac7a,_0x139b54){const _0x5c2016=a146_0x30ef,_0x583ed1=_0x16ac7a();while(!![]){try{const _0x20860f=-parseInt(_0x5c2016(0x85))/0x1+parseInt(_0x5c2016(0xef))/0x2+-parseInt(_0x5c2016(0xc3))/0x3*(-parseInt(_0x5c2016(0x97))/0x4)+-parseInt(_0x5c2016(0xe9))/0x5+parseInt(_0x5c2016(0xcb))/0x6+parseInt(_0x5c2016(0xd9))/0x7+parseInt(_0x5c2016(0xa1))/0x8*(parseInt(_0x5c2016(0xb8))/0x9);if(_0x20860f===_0x139b54)break;else _0x583ed1['push'](_0x583ed1['shift']());}catch(_0xb3da37){_0x583ed1['push'](_0x583ed1['shift']());}}}(a146_0x48b2,0xed779));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a146_0x30ef(_0x552d33,_0x4fd7e7){_0x552d33=_0x552d33-0x7e;const _0x48b280=a146_0x48b2();let _0x30ef44=_0x48b280[_0x552d33];return _0x30ef44;}import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x505f1e(0xe8),'FEISHU','DINGTALK','WECOM',a146_0x505f1e(0x86)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x505f1e(0xd7),a146_0x505f1e(0x95),'endpointUrl',a146_0x505f1e(0xdd),a146_0x505f1e(0xf1),'connectTimeout',a146_0x505f1e(0x91)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id','appCode',a146_0x505f1e(0xc5),a146_0x505f1e(0xb3)]),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x505f1e(0xda),'recipients',a146_0x505f1e(0x9d),'bccList',a146_0x505f1e(0x8b),a146_0x505f1e(0xb4),a146_0x505f1e(0xb7),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x505f1e(0xc7),'type':a146_0x505f1e(0xe4),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':'stdin','type':a146_0x505f1e(0xae),'required':![],'default':![],'description':a146_0x505f1e(0x9c)},{'name':a146_0x505f1e(0xb5),'type':a146_0x505f1e(0xe4),'required':![],'description':a146_0x505f1e(0x99)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':'number','required':!![],'description':a146_0x505f1e(0xde)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x540b3a,_0x30f11f,_0x541a42){return new CliError(_0x540b3a,0x1,_0x30f11f,_0x541a42);}export function readNotificationId(_0x196f22){const _0x316a0c=a146_0x505f1e,_0x5394df=_0x196f22[_0x316a0c(0xe5)]('id');if(!Number[_0x316a0c(0xcf)](_0x5394df)||_0x5394df<=0x0)throw notificationError(_0x316a0c(0xa2),_0x316a0c(0x94));return _0x5394df;}export function requireNotificationExplicitYes(_0x1e537f){const _0x1d60fb=a146_0x505f1e;if(_0x1e537f['bool']('dry-run')||_0x1e537f[_0x1d60fb(0xe3)]('yes'))return;throw notificationError(_0x1d60fb(0x9b),_0x1d60fb(0x81),'Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x1d5d34,_0x49bf3f=a146_0x505f1e(0x90),_0x2d1992='EMAIL'){const _0x5a88e6=a146_0x505f1e,_0x46ac9b=_0x1d5d34[_0x5a88e6(0xa3)](_0x49bf3f)['trim']()||_0x2d1992;if(!NOTIFICATION_CHANNEL_TYPES[_0x5a88e6(0xdb)](_0x46ac9b))throw CliErrors[_0x5a88e6(0x7f)](_0x5a88e6(0xd3)+_0x49bf3f+':\x20'+_0x46ac9b,_0x5a88e6(0xd6)+NOTIFICATION_CHANNEL_TYPES[_0x5a88e6(0xdc)](',\x20')+'.');return _0x46ac9b;}export function assertSingleNotificationSource(_0x10ee32){const _0xa02b5f=a146_0x505f1e,_0x499e44=[],_0x2dfba4=_0x10ee32[_0xa02b5f(0xa3)](_0xa02b5f(0xc7))[_0xa02b5f(0xc9)]();if(_0x2dfba4)_0x499e44[_0xa02b5f(0x89)]({'kind':'file','path':_0x2dfba4});if(_0x10ee32[_0xa02b5f(0xe3)](_0xa02b5f(0xc6)))_0x499e44[_0xa02b5f(0x89)]({'kind':_0xa02b5f(0xc6)});const _0x13808a=_0x10ee32[_0xa02b5f(0xa3)](_0xa02b5f(0xb5))[_0xa02b5f(0xc9)]();if(_0x13808a)_0x499e44[_0xa02b5f(0x89)]({'kind':_0xa02b5f(0xd8),'name':_0x13808a});if(_0x499e44['length']===0x0)throw CliErrors['validation']('Missing\x20notification\x20JSON\x20source.',_0xa02b5f(0xcc));if(_0x499e44['length']>0x1)throw CliErrors[_0xa02b5f(0x7f)](_0xa02b5f(0x96),'Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');return _0x499e44[0x0];}export async function readNotificationDocument(_0x5181ab,_0x2fb30c){const _0x34f7ef=a146_0x505f1e,_0x3bb5e2=assertSingleNotificationSource(_0x5181ab),_0x5870ec=_0x3bb5e2[_0x34f7ef(0xd4)]==='file'?_0x34f7ef(0x82)+_0x3bb5e2[_0x34f7ef(0xc0)]:_0x3bb5e2[_0x34f7ef(0xd4)]===_0x34f7ef(0xd8)?'environment\x20variable\x20'+_0x3bb5e2[_0x34f7ef(0x84)]:_0x34f7ef(0xc6);let _0x1f1814;try{if(_0x3bb5e2[_0x34f7ef(0xd4)]==='file')_0x1f1814=await readFile(_0x3bb5e2[_0x34f7ef(0xc0)],'utf8');else{if(_0x3bb5e2[_0x34f7ef(0xd4)]==='env'){if(!(_0x3bb5e2[_0x34f7ef(0x84)]in process.env))throw notificationError(_0x34f7ef(0x9f),_0x34f7ef(0xa6)+_0x3bb5e2['name']);_0x1f1814=process.env[_0x3bb5e2.name]??'';}else _0x1f1814=await readStdin();}}catch(_0x1aad77){if(_0x1aad77 instanceof CliError)throw _0x1aad77;throw notificationError(_0x34f7ef(0x9f),_0x34f7ef(0xf3)+_0x5870ec+'.');}let _0x40855a;try{_0x40855a=JSON['parse'](_0x1f1814);}catch{throw notificationError('notification_config_json_invalid','Notification\x20JSON\x20from\x20'+_0x5870ec+_0x34f7ef(0xa4),'Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.');}if(!isJsonObject(_0x40855a))throw notificationError('notification_config_json_invalid','Notification\x20JSON\x20from\x20'+_0x5870ec+'\x20must\x20be\x20an\x20object.');return validateNotificationDocument(_0x40855a,_0x2fb30c);}export function projectNotificationListConfig(_0x2b9bd0,_0xc858e4){const _0x1e9504=a146_0x505f1e;return{'id':typeof _0x2b9bd0['id']==='number'?_0x2b9bd0['id']:null,'configCode':requireResponseString(_0x2b9bd0[_0x1e9504(0xc5)],'configCode',_0xc858e4),'configName':requireResponseString(_0x2b9bd0[_0x1e9504(0xd7)],_0x1e9504(0xd7),_0xc858e4),'channelType':requireResponseString(_0x2b9bd0[_0x1e9504(0x95)],'channelType',_0xc858e4),'description':normalizeNullableString(_0x2b9bd0[_0x1e9504(0xf1)]),'createTime':normalizeNullableString(_0x2b9bd0[_0x1e9504(0xed)]),'updateTime':normalizeNullableString(_0x2b9bd0[_0x1e9504(0x9a)])};}function a146_0x48b2(){const _0x583fea=['notification_config_response_invalid','description','endpointUrlRaw','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','Unknown\x20notification\x20JSON\x20field\x20\x22','notification_config_field_forbidden','appCode','Notification\x20JSON\x20field\x20\x22','has','validation','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','file\x20','\x20characters.','name','1935335Ocsahw','WEBHOOK','apiError','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','push','messageTemplate','replyTo','connectTimeout','\x22channelType\x22.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','a\x20JSON\x20object\x20or\x20null','type','readTimeout','a\x20supported\x20string','\x20has\x20invalid\x20field\x20\x22','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','channelType','Notification\x20JSON\x20source\x20is\x20ambiguous.','329348qOQCqa','keys','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','updateTime','notification_config_confirmation_required','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','ccList','prototype','notification_config_source_unavailable','failed','12310720HzlRGM','notification_config_id_invalid','str','\x20is\x20invalid.','_unavailable','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','channelConfigRaw','Notification\x20config\x20list\x20item\x20','a\x20JSON\x20object','entries','a\x20string\x20or\x20null','some','\x20--format\x20compress','boolean','object','\x20has\x20an\x20invalid\x20appCode.','\x20is\x20missing\x20required\x20field\x20\x22','notification_config_field_required','channelCode','subjectPrefix','from-env','Item\x20','fromName','9QRFUNA','\x22\x20is\x20forbidden.','notification_config_channel_field_forbidden','notification_config_field_unknown','Invalid\x20notification\x20config\x20response.','Create\x20JSON\x20requires\x20field\x20','\x20failed.','call','path','update','\x22\x20must\x20be\x20','9SSTwkw','Notification\x20config\x20','configCode','stdin','file','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','trim','\x20has\x20an\x20unsupported\x20channelType.','1829472RlZmvl','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','<redacted>','isArray','isSafeInteger','\x22configName\x22.','endpointUrl','notification_config_field_invalid','Invalid\x20--','kind','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Allowed\x20values:\x20','configName','env','3892413oXBnKm','emailTargets','includes','join','channelConfig','Application-level\x20notification\x20config\x20ID','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','preflight','length','notification_config_update_empty','bool','string','num','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','\x20has\x20an\x20invalid\x20id.','EMAIL','5230710QwFWqD','endpointUrl:null','create','a\x20non-empty\x20string','createTime','\x22\x20cannot\x20exceed\x20','2614640ccXtyC'];a146_0x48b2=function(){return _0x583fea;};return a146_0x48b2();}export function normalizeExactNotificationConfig(_0x1854db,_0x4ebeaf,_0x366806){const _0x185c35=a146_0x505f1e;if(!Number[_0x185c35(0xcf)](_0x1854db['id'])||_0x1854db['id']!==_0x4ebeaf)throw notificationError(_0x185c35(0xf0),'Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x4ebeaf+'.');if(_0x1854db['appCode']!==_0x366806)throw notificationError(_0x185c35(0xf0),'Notification\x20config\x20'+_0x4ebeaf+_0x185c35(0xdf));const _0x2f3a73=requireExactString(_0x1854db[_0x185c35(0xd7)],_0x185c35(0xd7),_0x4ebeaf),_0x281eb6=requireExactString(_0x1854db['configCode'],'configCode',_0x4ebeaf),_0x3bc2a5=requireExactString(_0x1854db[_0x185c35(0x95)],_0x185c35(0x95),_0x4ebeaf);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x3bc2a5))throw notificationError(_0x185c35(0xf0),'Notification\x20config\x20'+_0x4ebeaf+_0x185c35(0xca));const _0x2445a3=responseNullableString(_0x1854db[_0x185c35(0xd1)],_0x185c35(0xd1),_0x4ebeaf),_0x36fbf9=responseNullableString(_0x1854db[_0x185c35(0xdd)],_0x185c35(0xdd),_0x4ebeaf),_0x2ecb21=responseNullableString(_0x1854db['description'],_0x185c35(0xf1),_0x4ebeaf),_0x4cc95f=responseNullableTimeout(_0x1854db[_0x185c35(0x8c)],_0x185c35(0x8c),_0x4ebeaf),_0x499348=responseNullableTimeout(_0x1854db[_0x185c35(0x91)],'readTimeout',_0x4ebeaf);return{'id':_0x4ebeaf,'appCode':_0x366806,'configCode':_0x281eb6,'configName':_0x2f3a73,'channelType':_0x3bc2a5,'endpointUrl':redactSensitive(_0x2445a3),'channelConfig':redactSensitive(_0x36fbf9),'description':_0x2ecb21,'connectTimeout':_0x4cc95f,'readTimeout':_0x499348,'endpointUrlRaw':_0x2445a3,'channelConfigRaw':_0x36fbf9};}export async function requireExactNotificationConfig(_0x5d14e1,_0x58c69e,_0x3018a4){const _0xb7c6f=a146_0x505f1e;let _0x28c130;try{_0x28c130=await getNotificationChannelConfig(_0x58c69e,_0x5d14e1);}catch{throw safeApiFailure(_0x3018a4,_0xb7c6f(0xe0),'Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x5d14e1+_0xb7c6f(0x88));}return normalizeExactNotificationConfig(_0x28c130,_0x58c69e,_0x5d14e1);}export function projectNotificationConfig(_0x3b98ab){const _0x111aa8=a146_0x505f1e;return{'id':_0x3b98ab['id']??null,'appCode':_0x3b98ab[_0x111aa8(0xf6)],'configCode':_0x3b98ab[_0x111aa8(0xc5)]??null,'configName':_0x3b98ab[_0x111aa8(0xd7)],'channelType':_0x3b98ab['channelType'],'endpointUrl':redactSensitive(_0x3b98ab[_0x111aa8(0xd1)]),'channelConfig':redactSensitive(_0x3b98ab['channelConfig']),'description':_0x3b98ab[_0x111aa8(0xf1)]??null,'connectTimeout':_0x3b98ab[_0x111aa8(0x8c)]??null,'readTimeout':_0x3b98ab[_0x111aa8(0x91)]??null};}export function notificationSelector(_0x4a77d4){return{'appCode':_0x4a77d4['appCode'],'id':_0x4a77d4['id'],'configCode':_0x4a77d4['configCode'],'configName':_0x4a77d4['configName'],'channelType':_0x4a77d4['channelType']};}export function createMutationInput(_0xc13d28,_0x1b4c08){const _0x23659b=a146_0x505f1e;return{'appCode':_0xc13d28,'configName':_0x1b4c08[_0x23659b(0xd7)],'channelType':_0x1b4c08['channelType'],...hasOwn(_0x1b4c08,_0x23659b(0xd1))?{'endpointUrl':_0x1b4c08[_0x23659b(0xd1)]}:{},...hasOwn(_0x1b4c08,_0x23659b(0xdd))?{'channelConfig':serializeChannelConfig(_0x1b4c08[_0x23659b(0xdd)])}:{},...hasOwn(_0x1b4c08,'description')?{'description':_0x1b4c08[_0x23659b(0xf1)]}:{},...hasOwn(_0x1b4c08,'connectTimeout')?{'connectTimeout':_0x1b4c08['connectTimeout']}:{},...hasOwn(_0x1b4c08,_0x23659b(0x91))?{'readTimeout':_0x1b4c08[_0x23659b(0x91)]}:{}};}export function mergeUpdateInput(_0x217d5e,_0x2e71a9){const _0x409284=a146_0x505f1e;return{'id':_0x217d5e['id'],'appCode':_0x217d5e[_0x409284(0xf6)],'configName':_0x2e71a9['configName']??_0x217d5e[_0x409284(0xd7)],'channelType':_0x2e71a9[_0x409284(0x95)]??_0x217d5e['channelType'],'endpointUrl':hasOwn(_0x2e71a9,_0x409284(0xd1))?_0x2e71a9[_0x409284(0xd1)]:_0x217d5e['endpointUrlRaw'],'channelConfig':hasOwn(_0x2e71a9,_0x409284(0xdd))?serializeChannelConfig(_0x2e71a9[_0x409284(0xdd)]):_0x217d5e[_0x409284(0xa7)],'description':hasOwn(_0x2e71a9,'description')?_0x2e71a9[_0x409284(0xf1)]:_0x217d5e[_0x409284(0xf1)],'connectTimeout':hasOwn(_0x2e71a9,_0x409284(0x8c))?_0x2e71a9[_0x409284(0x8c)]:_0x217d5e[_0x409284(0x8c)],'readTimeout':hasOwn(_0x2e71a9,_0x409284(0x91))?_0x2e71a9[_0x409284(0x91)]:_0x217d5e[_0x409284(0x91)]};}export function plannedUpdateProjection(_0x3a4229,_0x21754e){const _0xdb884a=a146_0x505f1e;return projectNotificationConfig({'id':_0x3a4229['id'],'appCode':_0x3a4229[_0xdb884a(0xf6)],'configCode':_0x3a4229[_0xdb884a(0xc5)],'configName':_0x21754e[_0xdb884a(0xd7)]??_0x3a4229[_0xdb884a(0xd7)],'channelType':_0x21754e[_0xdb884a(0x95)]??_0x3a4229[_0xdb884a(0x95)],'endpointUrl':hasOwn(_0x21754e,'endpointUrl')?_0x21754e[_0xdb884a(0xd1)]:_0x3a4229[_0xdb884a(0xf2)],'channelConfig':hasOwn(_0x21754e,_0xdb884a(0xdd))?_0x21754e['channelConfig']:_0x3a4229[_0xdb884a(0xa7)],'description':hasOwn(_0x21754e,_0xdb884a(0xf1))?_0x21754e[_0xdb884a(0xf1)]:_0x3a4229[_0xdb884a(0xf1)],'connectTimeout':hasOwn(_0x21754e,_0xdb884a(0x8c))?_0x21754e[_0xdb884a(0x8c)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3a4229[_0xdb884a(0x8c)],'readTimeout':hasOwn(_0x21754e,'readTimeout')?_0x21754e[_0xdb884a(0x91)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3a4229[_0xdb884a(0x91)]});}export function requestedSafeFieldsMatch(_0x15b9a5,_0x71209f,_0x3b9519){const _0x8dff69=a146_0x505f1e,_0x5c25f2=[],_0x1d0bf6=[],_0x422392=[];for(const _0x208117 of[_0x8dff69(0xd7),_0x8dff69(0x95),_0x8dff69(0xf1)]){if(!hasOwn(_0x3b9519,_0x208117))continue;_0x422392[_0x8dff69(0x89)](_0x208117),_0x5c25f2[_0x8dff69(0x89)](_0x71209f[_0x208117]===_0x3b9519[_0x208117]),_0x1d0bf6['push'](_0x15b9a5[_0x208117]!==_0x3b9519[_0x208117]&&_0x71209f[_0x208117]===_0x3b9519[_0x208117]);}for(const _0x5527f4 of[_0x8dff69(0x8c),_0x8dff69(0x91)]){if(!hasOwn(_0x3b9519,_0x5527f4))continue;const _0x4688cb=_0x3b9519[_0x5527f4]??(_0x5527f4===_0x8dff69(0x8c)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x422392[_0x8dff69(0x89)](_0x5527f4),_0x5c25f2[_0x8dff69(0x89)](_0x71209f[_0x5527f4]===_0x4688cb),_0x1d0bf6[_0x8dff69(0x89)](_0x15b9a5[_0x5527f4]!==_0x4688cb&&_0x71209f[_0x5527f4]===_0x4688cb);}return hasOwn(_0x3b9519,_0x8dff69(0xd1))&&_0x3b9519[_0x8dff69(0xd1)]===null&&(_0x422392[_0x8dff69(0x89)](_0x8dff69(0xea)),_0x5c25f2[_0x8dff69(0x89)](_0x71209f[_0x8dff69(0xf2)]===null||_0x71209f[_0x8dff69(0xf2)]===''),_0x1d0bf6[_0x8dff69(0x89)](_0x15b9a5[_0x8dff69(0xf2)]!==null&&_0x15b9a5[_0x8dff69(0xf2)]!==''&&(_0x71209f[_0x8dff69(0xf2)]===null||_0x71209f[_0x8dff69(0xf2)]===''))),{'allMatch':_0x5c25f2['every'](Boolean),'provesChange':_0x1d0bf6[_0x8dff69(0xac)](Boolean),'verifiedFields':_0x422392};}export function validateNotificationDeleteReadback(_0x461e46,_0x397331,_0x547e8c){const _0x346b3f=a146_0x505f1e;for(const [_0x55a2ab,_0x1de6aa]of _0x461e46[_0x346b3f(0xaa)]()){if(!Number[_0x346b3f(0xcf)](_0x1de6aa['id'])||_0x1de6aa['id']<=0x0)throw notificationError('notification_config_response_invalid',_0x346b3f(0xa8)+(_0x55a2ab+0x1)+_0x346b3f(0xe7));if(_0x1de6aa[_0x346b3f(0xf6)]!==_0x397331)throw notificationError('notification_config_response_invalid',_0x346b3f(0xa8)+(_0x55a2ab+0x1)+_0x346b3f(0xb0));if(_0x1de6aa[_0x346b3f(0x95)]!==_0x547e8c)throw notificationError(_0x346b3f(0xf0),_0x346b3f(0xa8)+(_0x55a2ab+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0xc64740,_0x1b8644,_0x5e01aa){const _0x12f60c=a146_0x505f1e;return notificationError('notification_config_'+_0xc64740+'_'+(_0x1b8644==='mutation'?_0x12f60c(0xa0):_0x1b8644+_0x12f60c(0xa5)),_0x12f60c(0xc4)+_0xc64740+'\x20'+_0x1b8644+_0x12f60c(0xbe),_0x5e01aa);}export function notificationLookupCommand(_0x31d8d4,_0x57ceed){const _0x532930=a146_0x505f1e;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x31d8d4+'\x20--type\x20'+_0x57ceed+_0x532930(0xad);}function validateNotificationDocument(_0x20d7cf,_0x22c8a0){const _0x350a2d=a146_0x505f1e;for(const _0x580b21 of Object[_0x350a2d(0x98)](_0x20d7cf)){if(FORBIDDEN_IDENTITY_FIELDS[_0x350a2d(0x7e)](_0x580b21))throw notificationError(_0x350a2d(0xf5),'Notification\x20JSON\x20field\x20\x22'+_0x580b21+_0x350a2d(0xe6));if(!ALLOWED_INPUT_FIELDS[_0x350a2d(0x7e)](_0x580b21))throw notificationError(_0x350a2d(0xbb),_0x350a2d(0xf4)+_0x580b21+'\x22.');}if(_0x22c8a0===_0x350a2d(0xc1)&&Object[_0x350a2d(0x98)](_0x20d7cf)[_0x350a2d(0xe1)]===0x0)throw notificationError(_0x350a2d(0xe2),_0x350a2d(0xc8));const _0x3e5212={};if(hasOwn(_0x20d7cf,'configName'))_0x3e5212[_0x350a2d(0xd7)]=validateRequiredString(_0x20d7cf[_0x350a2d(0xd7)],_0x350a2d(0xd7),0x80);else{if(_0x22c8a0===_0x350a2d(0xeb))throw notificationError(_0x350a2d(0xb2),_0x350a2d(0xbd)+_0x350a2d(0xd0));}if(hasOwn(_0x20d7cf,_0x350a2d(0x95))){if(typeof _0x20d7cf['channelType']!==_0x350a2d(0xe4))throw invalidFieldType(_0x350a2d(0x95),_0x350a2d(0x92));const _0x48d301=_0x20d7cf['channelType'][_0x350a2d(0xc9)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x48d301))throw notificationError(_0x350a2d(0xd2),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x350a2d(0xd6)+NOTIFICATION_CHANNEL_TYPES[_0x350a2d(0xdc)](',\x20')+'.');_0x3e5212[_0x350a2d(0x95)]=_0x48d301;}else{if(_0x22c8a0===_0x350a2d(0xeb))throw notificationError(_0x350a2d(0xb2),_0x350a2d(0xbd)+_0x350a2d(0x8d));}for(const [_0x136d6b,_0x320a7a]of[[_0x350a2d(0xd1),0x200],[_0x350a2d(0xf1),0x100]]){if(!hasOwn(_0x20d7cf,_0x136d6b))continue;const _0x219da8=_0x20d7cf[_0x136d6b];if(_0x219da8!==null&&typeof _0x219da8!=='string')throw invalidFieldType(_0x136d6b,_0x350a2d(0xab));if(typeof _0x219da8===_0x350a2d(0xe4)&&_0x219da8[_0x350a2d(0xe1)]>_0x320a7a)throw notificationError(_0x350a2d(0xd2),'Notification\x20JSON\x20field\x20\x22'+_0x136d6b+_0x350a2d(0xee)+_0x320a7a+_0x350a2d(0x83));_0x3e5212[_0x136d6b]=_0x219da8;}if(hasOwn(_0x20d7cf,'channelConfig')){const _0xedf49=_0x20d7cf[_0x350a2d(0xdd)];if(_0xedf49===null&&_0x22c8a0==='create')throw invalidFieldType(_0x350a2d(0xdd),'a\x20JSON\x20object');if(_0xedf49!==null&&!isJsonObject(_0xedf49))throw invalidFieldType('channelConfig',_0x22c8a0===_0x350a2d(0xc1)?_0x350a2d(0x8f):_0x350a2d(0xa9));_0xedf49!==null&&validateChannelConfigFields(_0x3e5212['channelType'],_0xedf49),_0x3e5212[_0x350a2d(0xdd)]=_0xedf49;}for(const _0x470cf0 of[_0x350a2d(0x8c),_0x350a2d(0x91)]){if(!hasOwn(_0x20d7cf,_0x470cf0))continue;const _0x371ebe=_0x20d7cf[_0x470cf0];if(_0x371ebe!==null&&(!Number[_0x350a2d(0xcf)](_0x371ebe)||_0x371ebe<0x0))throw notificationError(_0x350a2d(0xd2),_0x350a2d(0xf7)+_0x470cf0+_0x350a2d(0x80));_0x3e5212[_0x470cf0]=_0x371ebe;}return _0x3e5212;}function validateRequiredString(_0x3b9e77,_0x38446d,_0x140aac){const _0x2df356=a146_0x505f1e;if(typeof _0x3b9e77!==_0x2df356(0xe4))throw invalidFieldType(_0x38446d,_0x2df356(0xec));const _0x3cbe51=_0x3b9e77['trim']();if(!_0x3cbe51)throw notificationError(_0x2df356(0xd2),'Notification\x20JSON\x20field\x20\x22'+_0x38446d+_0x2df356(0x8e));if(_0x3cbe51['length']>_0x140aac)throw notificationError('notification_config_field_invalid',_0x2df356(0xf7)+_0x38446d+_0x2df356(0xee)+_0x140aac+_0x2df356(0x83));return _0x3cbe51;}function validateChannelConfigFields(_0x897d41,_0x286d84){const _0x535b9d=a146_0x505f1e;if(hasOwn(_0x286d84,_0x535b9d(0x8a)))throw forbiddenChannelConfigField(_0x535b9d(0x8a));if(_0x897d41==='EMAIL')for(const _0x172c32 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x286d84,_0x172c32))throw forbiddenChannelConfigField(_0x172c32);}}function forbiddenChannelConfigField(_0xc47e2d){const _0x45b3d0=a146_0x505f1e;return notificationError(_0x45b3d0(0xba),_0x45b3d0(0xd5)+_0xc47e2d+_0x45b3d0(0xb9));}function invalidFieldType(_0x3cb69e,_0x4f13ab){const _0xff6e94=a146_0x505f1e;return notificationError(_0xff6e94(0xd2),_0xff6e94(0xf7)+_0x3cb69e+_0xff6e94(0xc2)+_0x4f13ab+'.');}function serializeChannelConfig(_0x40a4ed){return _0x40a4ed===null||_0x40a4ed===undefined?null:JSON['stringify'](_0x40a4ed);}function redactSensitive(_0x5cee5c){const _0x1c0528=a146_0x505f1e;return _0x5cee5c===null||_0x5cee5c===undefined||_0x5cee5c===''?null:_0x1c0528(0xcd);}function requireResponseString(_0x48bc68,_0x4ed8f0,_0x29ae15){const _0x540980=a146_0x505f1e;if(typeof _0x48bc68!=='string'||_0x48bc68[_0x540980(0xc9)]()==='')throw CliErrors[_0x540980(0x87)](_0x540980(0xbc),_0x540980(0xb6)+(_0x29ae15+0x1)+_0x540980(0xb1)+_0x4ed8f0+'\x22.');return _0x48bc68[_0x540980(0xc9)]();}function requireExactString(_0x11b508,_0xd63570,_0x2324b7){const _0xd1122a=a146_0x505f1e;if(typeof _0x11b508!==_0xd1122a(0xe4)||_0x11b508[_0xd1122a(0xc9)]()==='')throw notificationError(_0xd1122a(0xf0),_0xd1122a(0xc4)+_0x2324b7+_0xd1122a(0xb1)+_0xd63570+'\x22.');return _0x11b508[_0xd1122a(0xc9)]();}function responseNullableString(_0x569108,_0x1b6a79,_0x5ed03f){const _0x42b29b=a146_0x505f1e;if(_0x569108===undefined||_0x569108===null)return null;if(typeof _0x569108!==_0x42b29b(0xe4))throw notificationError(_0x42b29b(0xf0),_0x42b29b(0xc4)+_0x5ed03f+'\x20has\x20invalid\x20field\x20\x22'+_0x1b6a79+'\x22.');return _0x569108;}function responseNullableTimeout(_0x150f2d,_0x29a515,_0x4c903c){const _0x45adc7=a146_0x505f1e;if(_0x150f2d===undefined||_0x150f2d===null)return null;if(!Number[_0x45adc7(0xcf)](_0x150f2d)||_0x150f2d<0x0)throw notificationError(_0x45adc7(0xf0),'Notification\x20config\x20'+_0x4c903c+_0x45adc7(0x93)+_0x29a515+'\x22.');return _0x150f2d;}function normalizeNullableString(_0x4b65dc){const _0x271e02=a146_0x505f1e;return typeof _0x4b65dc===_0x271e02(0xe4)?_0x4b65dc:null;}function isJsonObject(_0x317647){const _0x5079f2=a146_0x505f1e;return _0x317647!==null&&typeof _0x317647===_0x5079f2(0xaf)&&!Array[_0x5079f2(0xce)](_0x317647);}function hasOwn(_0x2f389d,_0x2f3f7c){const _0x2b72db=a146_0x505f1e;return Object[_0x2b72db(0x9e)]['hasOwnProperty'][_0x2b72db(0xbf)](_0x2f389d,_0x2f3f7c);}async function readStdin(){const _0x2f7cc0=a146_0x505f1e;let _0x36d914='';process[_0x2f7cc0(0xc6)]['setEncoding']('utf8');for await(const _0x2695b3 of process['stdin'])_0x36d914+=_0x2695b3;return _0x36d914;}
@@ -1 +1 @@
1
- const a147_0x1df4f2=a147_0x5e6b;(function(_0xde3e9f,_0x2e213d){const _0x380689=a147_0x5e6b,_0x160cd2=_0xde3e9f();while(!![]){try{const _0x39fe2b=parseInt(_0x380689(0xa7))/0x1+-parseInt(_0x380689(0x9b))/0x2+-parseInt(_0x380689(0xb3))/0x3*(parseInt(_0x380689(0x9c))/0x4)+parseInt(_0x380689(0x8a))/0x5*(parseInt(_0x380689(0xa2))/0x6)+parseInt(_0x380689(0x8f))/0x7*(-parseInt(_0x380689(0x82))/0x8)+parseInt(_0x380689(0xa5))/0x9+-parseInt(_0x380689(0x84))/0xa;if(_0x39fe2b===_0x2e213d)break;else _0x160cd2['push'](_0x160cd2['shift']());}catch(_0x3fb763){_0x160cd2['push'](_0x160cd2['shift']());}}}(a147_0x1979,0xd14cf));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_0x1df4f2(0x94),'general','form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a147_0x1df4f2(0xb4),'form':a147_0x1df4f2(0xa8),'idCard':'IdCard'},SCENE_FLAG={'name':a147_0x1df4f2(0xae),'type':a147_0x1df4f2(0x98),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x1df4f2(0xb2)},IMAGE_FILE_FLAG={'name':a147_0x1df4f2(0x9a),'type':a147_0x1df4f2(0x98),'description':a147_0x1df4f2(0xac)},IMAGE_URL_FLAG={'name':'image-url','type':a147_0x1df4f2(0x98),'description':a147_0x1df4f2(0x97)};function normalizeScene(_0x2a645c){const _0x6418c4=a147_0x1df4f2,_0xef1d32=_0x2a645c[_0x6418c4(0x85)]()[_0x6418c4(0xb0)]();if(_0xef1d32===_0x6418c4(0xab))return'idCard';if(_0xef1d32===_0x6418c4(0x94)||_0xef1d32==='general'||_0xef1d32===_0x6418c4(0xa1))return _0xef1d32;throw CliErrors[_0x6418c4(0x89)](_0x6418c4(0xa4)+_0x2a645c+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x6418c4(0x99)](',\x20'));}function a147_0x5e6b(_0x66c8ce,_0xe4bc7c){_0x66c8ce=_0x66c8ce-0x7d;const _0x197978=a147_0x1979();let _0x5e6b09=_0x197978[_0x66c8ce];return _0x5e6b09;}function selectedInputs(_0x17c6e9){const _0x3a647e=a147_0x1df4f2,_0x318a87=_0x17c6e9['str'](_0x3a647e(0x9a))['trim'](),_0x3232e6=_0x17c6e9[_0x3a647e(0x7e)](_0x3a647e(0x86))['trim']();return{'imageFile':_0x318a87,'imageUrl':_0x3232e6,'count':[_0x318a87,_0x3232e6][_0x3a647e(0x83)](Boolean)['length']};}function validateInputSelection(_0x4c9188){const _0x22cfbb=a147_0x1df4f2,_0x2a9c57=selectedInputs(_0x4c9188);if(_0x2a9c57[_0x22cfbb(0x95)]!==0x1)throw CliErrors[_0x22cfbb(0x89)](_0x22cfbb(0x8c));return _0x2a9c57;}function a147_0x1979(){const _0x41288f=['str','read','\x20OCR','/smartapi/common/queryFileUrl','56qbOYsU','filter','5657820qONztf','trim','image-url','toString','\x20OCR\x20from\x20URL','validation','205060vkuYwl','GET','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','/smartapi/common/uploadFile','path','548863UZzDuT','File\x20URL\x20response\x20missing\x20fileUrl.','fileName','/smartapi/ocr/recognize-text?','fileUrl','invoice','count','filePath','Publicly\x20accessible\x20image\x20or\x20file\x20URL','string','join','image-file','8118AgPobZ','5044840pHbaMl','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','apiError','appCode','form','168aiclae','/smartapi/ocr/recognize-text','Unsupported\x20OCR\x20scene:\x20','10811718ASVBEN','Preview:\x20recognize\x20','887571iiahMc','Table','POST','imageUrl','idcard','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','scene','ocr','toLowerCase','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','3LkUHBP','General','imageFile'];a147_0x1979=function(){return _0x41288f;};return a147_0x1979();}function withScene(_0x261719,_0x469a5c,_0x444a85){const _0x2810c8=a147_0x1df4f2;return{..._0x261719,'scene':_0x469a5c,..._0x444a85?{'sourceFile':{'fileName':_0x444a85[_0x2810c8(0x91)],'filePath':_0x444a85[_0x2810c8(0x96)]}}:{}};}const ocrRecognize={'service':a147_0x1df4f2(0xaf),'command':'recognize','description':a147_0x1df4f2(0x9d),'risk':a147_0x1df4f2(0x7f),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3861a4){const _0x55002f=a147_0x1df4f2,_0x561409=normalizeScene(_0x3861a4[_0x55002f(0x7e)]('scene')),_0x30a7ea=SCENE_TO_LEGACY_TYPE[_0x561409],_0x315bc4=validateInputSelection(_0x3861a4);if(_0x315bc4['imageUrl']){const _0x538f43=new URLSearchParams({'url':_0x315bc4[_0x55002f(0xaa)],'type':_0x30a7ea,'appCode':_0x3861a4[_0x55002f(0xa0)]});return{'method':_0x55002f(0x8b),'url':_0x55002f(0x92)+_0x538f43[_0x55002f(0x87)](),'description':_0x55002f(0xa6)+_0x561409+_0x55002f(0x88)};}const _0x35fedd=requireDevelopmentUploadFile(_0x315bc4[_0x55002f(0x7d)],'image-file');return{'method':_0x55002f(0xa9),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':_0x55002f(0x8d),'body':{'appCode':_0x3861a4[_0x55002f(0xa0)],'multipart':{'file':_0x35fedd}}},{'method':_0x55002f(0xa9),'url':_0x55002f(0x81),'body':{'filePath':_0x55002f(0x9e),'downloadFlag':![]}},{'method':'GET','url':_0x55002f(0xa3),'query':{'appCode':_0x3861a4[_0x55002f(0xa0)],'url':_0x55002f(0xb1),'type':_0x30a7ea}}]},'description':_0x55002f(0xad)+_0x561409+_0x55002f(0x80)};},async 'execute'(_0x3887d9){const _0x464bc0=a147_0x1df4f2,_0x7826c6=normalizeScene(_0x3887d9[_0x464bc0(0x7e)](_0x464bc0(0xae))),_0x552af4=SCENE_TO_LEGACY_TYPE[_0x7826c6],_0x5227c8=validateInputSelection(_0x3887d9);if(_0x5227c8['imageUrl']){const _0x3bdcea=await recognizeDevelopmentOcr(_0x3887d9[_0x464bc0(0xa0)],{'url':_0x5227c8['imageUrl'],'type':_0x552af4});return{'ok':!![],'data':withScene(_0x3bdcea,_0x7826c6)};}const _0x7e5661=requireDevelopmentUploadFile(_0x5227c8['imageFile'],_0x464bc0(0x9a)),_0x49e6a0=await uploadDevelopmentFile(_0x3887d9['appCode'],_0x7e5661[_0x464bc0(0x8e)]);if(!_0x49e6a0[_0x464bc0(0x96)])throw CliErrors[_0x464bc0(0x9f)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x47956a=await queryDevelopmentFileUrl(_0x49e6a0['filePath'],{'download':![]});if(!_0x47956a['fileUrl'])throw CliErrors[_0x464bc0(0x9f)](_0x464bc0(0x90));const _0x4fcee2=await recognizeDevelopmentOcr(_0x3887d9['appCode'],{'url':_0x47956a[_0x464bc0(0x93)],'type':_0x552af4});return{'ok':!![],'data':withScene(_0x4fcee2,_0x7826c6,_0x49e6a0)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a147_0x5e9871=a147_0x5b19;(function(_0x10269b,_0x1f9b90){const _0x57cd78=a147_0x5b19,_0x4bd9e1=_0x10269b();while(!![]){try{const _0x456fc4=-parseInt(_0x57cd78(0xef))/0x1*(-parseInt(_0x57cd78(0xf3))/0x2)+-parseInt(_0x57cd78(0xfa))/0x3+-parseInt(_0x57cd78(0xd7))/0x4+parseInt(_0x57cd78(0xe9))/0x5+-parseInt(_0x57cd78(0xf1))/0x6*(parseInt(_0x57cd78(0xe6))/0x7)+parseInt(_0x57cd78(0xf0))/0x8*(parseInt(_0x57cd78(0xf7))/0x9)+parseInt(_0x57cd78(0xff))/0xa*(-parseInt(_0x57cd78(0xed))/0xb);if(_0x456fc4===_0x1f9b90)break;else _0x4bd9e1['push'](_0x4bd9e1['shift']());}catch(_0x3765c5){_0x4bd9e1['push'](_0x4bd9e1['shift']());}}}(a147_0x1528,0xafd80));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a147_0x1528(){const _0x1f6342=['apiError','Table','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','fileUrl','4958200BFadYF','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','validation','join','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/smartapi/common/uploadFile','recognize','toLowerCase','.\x20Supported\x20scenes:\x20','form','filter','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','idCard','/smartapi/ocr/recognize-text?','IdCard','1341053qgmnzS','Unsupported\x20OCR\x20scene:\x20','File\x20URL\x20response\x20missing\x20fileUrl.','5526275CLsnzi','GET','string','/smartapi/ocr/recognize-text','2381687xgvbSq','imageUrl','1182667CnOptB','19560onPUdE','30plJTFK','str','2pnXqLi','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','appCode','image-url','4518lqZnGt','idcard','imageFile','1143282dBuvaD','ocr','File\x20upload\x20response\x20missing\x20filePath.','filePath','POST','10vqsJrc','image-file','scene','general','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','fileName','\x20OCR\x20from\x20URL','trim','General','length','Preview:\x20recognize\x20','invoice','count','toString'];a147_0x1528=function(){return _0x1f6342;};return a147_0x1528();}const SUPPORTED_SCENES=['invoice',a147_0x5e9871(0x102),a147_0x5e9871(0xe0),a147_0x5e9871(0xe3)],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a147_0x5e9871(0x107),'form':a147_0x5e9871(0x10e),'idCard':a147_0x5e9871(0xe5)},SCENE_FLAG={'name':'scene','type':a147_0x5e9871(0xeb),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x5e9871(0x103)},IMAGE_FILE_FLAG={'name':a147_0x5e9871(0x100),'type':a147_0x5e9871(0xeb),'description':a147_0x5e9871(0xdb)},IMAGE_URL_FLAG={'name':a147_0x5e9871(0xf6),'type':'string','description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x2d3dcd){const _0x5104aa=a147_0x5e9871,_0x30dc7c=_0x2d3dcd[_0x5104aa(0x106)]()[_0x5104aa(0xde)]();if(_0x30dc7c===_0x5104aa(0xf8))return _0x5104aa(0xe3);if(_0x30dc7c===_0x5104aa(0x10a)||_0x30dc7c===_0x5104aa(0x102)||_0x30dc7c===_0x5104aa(0xe0))return _0x30dc7c;throw CliErrors[_0x5104aa(0xd9)](_0x5104aa(0xe7)+_0x2d3dcd+_0x5104aa(0xdf)+SUPPORTED_SCENES[_0x5104aa(0xda)](',\x20'));}function selectedInputs(_0x35b8ee){const _0x3ad515=a147_0x5e9871,_0x5e2301=_0x35b8ee[_0x3ad515(0xf2)](_0x3ad515(0x100))['trim'](),_0x424ed4=_0x35b8ee[_0x3ad515(0xf2)](_0x3ad515(0xf6))[_0x3ad515(0x106)]();return{'imageFile':_0x5e2301,'imageUrl':_0x424ed4,'count':[_0x5e2301,_0x424ed4][_0x3ad515(0xe1)](Boolean)[_0x3ad515(0x108)]};}function a147_0x5b19(_0x895d40,_0x2b4cf3){_0x895d40=_0x895d40-0xd6;const _0x15287f=a147_0x1528();let _0x5b19a3=_0x15287f[_0x895d40];return _0x5b19a3;}function validateInputSelection(_0x34a6a3){const _0x65205b=a147_0x5e9871,_0x1b5116=selectedInputs(_0x34a6a3);if(_0x1b5116[_0x65205b(0x10b)]!==0x1)throw CliErrors['validation'](_0x65205b(0x110));return _0x1b5116;}function withScene(_0xee95ce,_0x310f00,_0x36d5a3){const _0x25d20a=a147_0x5e9871;return{..._0xee95ce,'scene':_0x310f00,..._0x36d5a3?{'sourceFile':{'fileName':_0x36d5a3[_0x25d20a(0x104)],'filePath':_0x36d5a3[_0x25d20a(0xfd)]}}:{}};}const ocrRecognize={'service':a147_0x5e9871(0xfb),'command':a147_0x5e9871(0xdd),'description':a147_0x5e9871(0x10f),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3fe914){const _0x259e7f=a147_0x5e9871,_0x11a24d=normalizeScene(_0x3fe914[_0x259e7f(0xf2)](_0x259e7f(0x101))),_0x2666cd=SCENE_TO_LEGACY_TYPE[_0x11a24d],_0x38d511=validateInputSelection(_0x3fe914);if(_0x38d511[_0x259e7f(0xee)]){const _0x59b4ab=new URLSearchParams({'url':_0x38d511[_0x259e7f(0xee)],'type':_0x2666cd,'appCode':_0x3fe914[_0x259e7f(0xf5)]});return{'method':_0x259e7f(0xea),'url':_0x259e7f(0xe4)+_0x59b4ab[_0x259e7f(0x10c)](),'description':_0x259e7f(0x109)+_0x11a24d+_0x259e7f(0x105)};}const _0x152c24=requireDevelopmentUploadFile(_0x38d511[_0x259e7f(0xf9)],_0x259e7f(0x100));return{'method':_0x259e7f(0xfe),'url':_0x259e7f(0xdc),'body':{'steps':[{'method':_0x259e7f(0xfe),'url':_0x259e7f(0xdc),'body':{'appCode':_0x3fe914[_0x259e7f(0xf5)],'multipart':{'file':_0x152c24}}},{'method':_0x259e7f(0xfe),'url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x259e7f(0xf4),'downloadFlag':![]}},{'method':_0x259e7f(0xea),'url':_0x259e7f(0xec),'query':{'appCode':_0x3fe914['appCode'],'url':_0x259e7f(0xd8),'type':_0x2666cd}}]},'description':_0x259e7f(0xe2)+_0x11a24d+'\x20OCR'};},async 'execute'(_0x3e56fc){const _0x2c3662=a147_0x5e9871,_0x20b0ad=normalizeScene(_0x3e56fc[_0x2c3662(0xf2)](_0x2c3662(0x101))),_0x4c298e=SCENE_TO_LEGACY_TYPE[_0x20b0ad],_0x941c5=validateInputSelection(_0x3e56fc);if(_0x941c5['imageUrl']){const _0x3972f2=await recognizeDevelopmentOcr(_0x3e56fc[_0x2c3662(0xf5)],{'url':_0x941c5[_0x2c3662(0xee)],'type':_0x4c298e});return{'ok':!![],'data':withScene(_0x3972f2,_0x20b0ad)};}const _0x559d82=requireDevelopmentUploadFile(_0x941c5['imageFile'],_0x2c3662(0x100)),_0x226445=await uploadDevelopmentFile(_0x3e56fc[_0x2c3662(0xf5)],_0x559d82['path']);if(!_0x226445['filePath'])throw CliErrors[_0x2c3662(0x10d)](_0x2c3662(0xfc));const _0x26a247=await queryDevelopmentFileUrl(_0x226445['filePath'],{'download':![]});if(!_0x26a247[_0x2c3662(0xd6)])throw CliErrors['apiError'](_0x2c3662(0xe8));const _0x3b4166=await recognizeDevelopmentOcr(_0x3e56fc[_0x2c3662(0xf5)],{'url':_0x26a247[_0x2c3662(0xd6)],'type':_0x4c298e});return{'ok':!![],'data':withScene(_0x3b4166,_0x20b0ad,_0x226445)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a148_0x55242a=a148_0x37bf;(function(_0x2c3468,_0x15c5f2){const _0x1eca71=a148_0x37bf,_0x5f5396=_0x2c3468();while(!![]){try{const _0xa4ea33=parseInt(_0x1eca71(0x1d5))/0x1*(parseInt(_0x1eca71(0x1c5))/0x2)+-parseInt(_0x1eca71(0x1ce))/0x3+parseInt(_0x1eca71(0x1e2))/0x4*(-parseInt(_0x1eca71(0x1b0))/0x5)+parseInt(_0x1eca71(0x1b9))/0x6+-parseInt(_0x1eca71(0x1d4))/0x7*(parseInt(_0x1eca71(0x1ba))/0x8)+-parseInt(_0x1eca71(0x1b3))/0x9*(-parseInt(_0x1eca71(0x1b2))/0xa)+-parseInt(_0x1eca71(0x1c4))/0xb;if(_0xa4ea33===_0x15c5f2)break;else _0x5f5396['push'](_0x5f5396['shift']());}catch(_0x6565b6){_0x5f5396['push'](_0x5f5396['shift']());}}}(a148_0x242e,0x4ee76));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a148_0x242e(){const _0x4fe3e4=['--page-pattern\x20currently\x20supports\x20only\x20BLANK.','stringify','1257267rZKXRH','30sNzWbb','pageId','page-pattern','Would\x20create\x20Custom\x20Page\x20','parent-menu-id','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','page\x20create\x20does\x20not\x20accept\x20--page-type.','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','358167opKAhK','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Created\x20Custom\x20Page\x20','warnings','Custom_page_','str','875qBhjuI','22463KrXxTs','appCode','page-content','pageName','parentMenuId','menuPath','length','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','apiError','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','pageName\x20cannot\x20exceed\x20100\x20characters.','validation','files','16972uOIyDj','write','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','compress','name','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','POST','120GbiXWu','/smartapi/webcode/page/create','2135910ruXSit','9jXuqTB','trim','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','langs','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','create','2737782Ondhgr','22280YZwypI','\x20and\x20its\x20menu\x20entry.','menuId','BLANK','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','isNaN','string','pagePattern'];a148_0x242e=function(){return _0x4fe3e4;};return a148_0x242e();}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a148_0x37bf(_0x41cc1f,_0x3de08f){_0x41cc1f=_0x41cc1f-0x1aa;const _0x242ef9=a148_0x242e();let _0x37bf33=_0x242ef9[_0x41cc1f];return _0x37bf33;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN','en-US'];export const pageCreate={'service':'page','command':a148_0x55242a(0x1b8),'description':a148_0x55242a(0x1de),'risk':a148_0x55242a(0x1aa),'defaultOutputFormat':a148_0x55242a(0x1ac),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a148_0x55242a(0x1cb),'hint':a148_0x55242a(0x1ae)}],'flags':[{'name':a148_0x55242a(0x1ad),'type':a148_0x55242a(0x1c0),'description':a148_0x55242a(0x1cd)},{'name':a148_0x55242a(0x1c9),'type':'number','description':a148_0x55242a(0x1b5)},{'name':a148_0x55242a(0x1c7),'type':a148_0x55242a(0x1c0),'description':a148_0x55242a(0x1b7),'enum':[a148_0x55242a(0x1bd)]},{'name':a148_0x55242a(0x1d7),'type':'string','description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x303e7c){const _0x58a1d0=readPagePattern(_0x303e7c);await validateCustomPageContent(readInput(_0x303e7c,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x58a1d0)['files']);},async 'dryRun'(_0x4c9893){const _0xb9c35f=a148_0x55242a,{input:_0x33fd14}=await prepare(_0x4c9893);return{'method':_0xb9c35f(0x1af),'url':_0xb9c35f(0x1b1),'body':{'appCode':_0x33fd14[_0xb9c35f(0x1d6)],'pageName':_0x33fd14[_0xb9c35f(0x1d8)],..._0x33fd14['parentMenuId']!=null?{'parentMenuId':_0x33fd14[_0xb9c35f(0x1d9)]}:{},'createMenu':_0x33fd14['createMenu'],'codeContent':_0x33fd14['files']},'description':_0xb9c35f(0x1c8)+JSON[_0xb9c35f(0x1c3)](_0x33fd14[_0xb9c35f(0x1d8)])+_0xb9c35f(0x1bb)};},async 'execute'(_0x24dae0){const _0x1cafe7=a148_0x55242a,_0x197c95=await prepare(_0x24dae0),_0x4c6759=await createCustomPage(_0x197c95['input']);if(!Number['isInteger'](_0x4c6759[_0x1cafe7(0x1c6)])||_0x4c6759[_0x1cafe7(0x1c6)]<=0x0)throw CliErrors[_0x1cafe7(0x1dd)](_0x1cafe7(0x1cf));return{'ok':!![],'data':buildMutationData(_0x197c95,_0x4c6759),'message':_0x1cafe7(0x1d0)+_0x4c6759['pageId']+'.'};}};async function prepare(_0x3675e1){const _0x1b83ab=a148_0x55242a,_0x28a6cb=readPagePattern(_0x3675e1);if(_0x28a6cb===null)return{'input':readInput(_0x3675e1,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x28a6cb),'warnings':[],'pagePattern':_0x28a6cb};let _0x23c96a=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xa4d908=[];try{const _0x1b6638=await getI18nInfo(_0x3675e1[_0x1b83ab(0x1d6)]);_0x1b6638['enableI18n']&&_0x1b6638[_0x1b83ab(0x1b6)]?.[_0x1b83ab(0x1db)]&&(_0x23c96a=_0x1b6638[_0x1b83ab(0x1b6)]);}catch{_0xa4d908=[_0x1b83ab(0x1be)];}return{'input':readInput(_0x3675e1,_0x23c96a,_0x28a6cb),'warnings':_0xa4d908,'pagePattern':_0x28a6cb};}function readPagePattern(_0x2852a1){const _0x2ac2d8=a148_0x55242a,_0x56ebf4=_0x2852a1[_0x2ac2d8(0x1d3)](_0x2ac2d8(0x1c7))[_0x2ac2d8(0x1b4)](),_0x46b5a4=_0x2852a1[_0x2ac2d8(0x1d3)]('page-content')[_0x2ac2d8(0x1b4)]()[_0x2ac2d8(0x1db)]>0x0;if(_0x56ebf4&&_0x46b5a4)throw CliErrors[_0x2ac2d8(0x1e0)](_0x2ac2d8(0x1dc));if(_0x46b5a4)return null;if(!_0x56ebf4)throw CliErrors['validation'](_0x2ac2d8(0x1ca));if(_0x56ebf4!==_0x2ac2d8(0x1bd))throw CliErrors[_0x2ac2d8(0x1e0)](_0x2ac2d8(0x1c2));return _0x56ebf4;}function readInput(_0x2ed0c8,_0x534b03=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x275be6=readPagePattern(_0x2ed0c8)){const _0x1939fb=a148_0x55242a,_0x10c998=_0x2ed0c8[_0x1939fb(0x1d3)](_0x1939fb(0x1ad))[_0x1939fb(0x1b4)]()||_0x1939fb(0x1d2)+Date['now']();if(_0x10c998['length']>0x64)throw CliErrors[_0x1939fb(0x1e0)](_0x1939fb(0x1df));const _0x2e23e0=_0x2ed0c8['num'](_0x1939fb(0x1c9),NaN),_0xd3cf5b=!Number[_0x1939fb(0x1bf)](_0x2e23e0);if(_0xd3cf5b&&(!Number['isInteger'](_0x2e23e0)||_0x2e23e0<=0x0))throw CliErrors[_0x1939fb(0x1e0)](_0x1939fb(0x1ab));return{'appCode':_0x2ed0c8[_0x1939fb(0x1d6)],'pageName':_0x10c998,..._0xd3cf5b?{'parentMenuId':_0x2e23e0}:{},'createMenu':!![],'files':_0x275be6===null?parseCustomPageContent(_0x2ed0c8[_0x1939fb(0x1d3)](_0x1939fb(0x1d7))):buildInitialFiles(_0x10c998,_0x534b03)};}function buildMutationData(_0x2d0e7e,_0x304086){const _0x5c9b24=a148_0x55242a,{input:_0x5dd20e}=_0x2d0e7e,_0x2dbad3=_0x304086&&buildCustomPageDevelopmentUrl(_0x5dd20e[_0x5c9b24(0x1d6)],_0x304086[_0x5c9b24(0x1da)]),_0x2d32c2=_0x304086&&buildCustomPageEditUrl(_0x5dd20e[_0x5c9b24(0x1d6)],_0x304086['pageId']);return{'operation':'page.create','pageType':'CUSTOM','pagePattern':_0x2d0e7e[_0x5c9b24(0x1c1)],'selector':{'appCode':_0x5dd20e[_0x5c9b24(0x1d6)],'pageName':_0x5dd20e[_0x5c9b24(0x1d8)]},'before':null,'after':{'pageId':_0x304086?.[_0x5c9b24(0x1c6)]??null,'pageName':_0x304086?.[_0x5c9b24(0x1d8)]??_0x5dd20e[_0x5c9b24(0x1d8)],'appCode':_0x304086?.['appCode']??_0x5dd20e[_0x5c9b24(0x1d6)],'version':_0x304086?.['version']??null,'menuId':_0x304086?.[_0x5c9b24(0x1bc)]??null,'menuPath':_0x304086?.['menuPath']??null,'files':_0x304086?.['files']??Object['keys'](_0x5dd20e[_0x5c9b24(0x1e1)])},'dryRun':_0x304086===undefined,'request':_0x5dd20e,..._0x2dbad3?{'pageUrl':_0x2dbad3}:{},..._0x2d32c2?{'editPageUrl':_0x2d32c2}:{},'warnings':[..._0x2d0e7e[_0x5c9b24(0x1d1)],..._0x304086&&!_0x2dbad3?[_0x5c9b24(0x1cc)]:[]]};}
1
+ const a148_0x4f2ec4=a148_0x12e8;(function(_0x3f2648,_0x567981){const _0x1ec166=a148_0x12e8,_0x163aa7=_0x3f2648();while(!![]){try{const _0x165b0b=parseInt(_0x1ec166(0xd3))/0x1*(-parseInt(_0x1ec166(0xbe))/0x2)+parseInt(_0x1ec166(0xc6))/0x3*(-parseInt(_0x1ec166(0xdf))/0x4)+-parseInt(_0x1ec166(0xbb))/0x5+-parseInt(_0x1ec166(0xce))/0x6*(-parseInt(_0x1ec166(0xd4))/0x7)+-parseInt(_0x1ec166(0xe5))/0x8+-parseInt(_0x1ec166(0xb5))/0x9+parseInt(_0x1ec166(0xcb))/0xa;if(_0x165b0b===_0x567981)break;else _0x163aa7['push'](_0x163aa7['shift']());}catch(_0x3ad6e2){_0x163aa7['push'](_0x163aa7['shift']());}}}(a148_0x25b2,0x6ba4e));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a148_0x4f2ec4(0xd2),a148_0x4f2ec4(0xd9)];export const pageCreate={'service':'page','command':a148_0x4f2ec4(0xc5),'description':a148_0x4f2ec4(0xe1),'risk':'write','defaultOutputFormat':a148_0x4f2ec4(0xc3),'structuredErrors':!![],'rejectedFlags':[{'name':a148_0x4f2ec4(0xb4),'message':a148_0x4f2ec4(0xc9),'hint':a148_0x4f2ec4(0xc2)}],'flags':[{'name':a148_0x4f2ec4(0xbf),'type':a148_0x4f2ec4(0xdc),'description':a148_0x4f2ec4(0xb8)},{'name':a148_0x4f2ec4(0xb3),'type':'number','description':a148_0x4f2ec4(0xb6)},{'name':a148_0x4f2ec4(0xe6),'type':'string','description':a148_0x4f2ec4(0xca),'enum':[a148_0x4f2ec4(0xea)]},{'name':a148_0x4f2ec4(0xd5),'type':a148_0x4f2ec4(0xdc),'description':a148_0x4f2ec4(0xed)},APPCODE_FLAG],async 'validate'(_0x25f7b8){const _0x49a563=a148_0x4f2ec4,_0x316aee=readPagePattern(_0x25f7b8);await validateCustomPageContent(readInput(_0x25f7b8,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x316aee)[_0x49a563(0xb9)]);},async 'dryRun'(_0x18c18c){const _0xcd0ac5=a148_0x4f2ec4,{input:_0x474356}=await prepare(_0x18c18c);return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x474356[_0xcd0ac5(0xde)],'pageName':_0x474356[_0xcd0ac5(0xdd)],..._0x474356[_0xcd0ac5(0xc4)]!=null?{'parentMenuId':_0x474356[_0xcd0ac5(0xc4)]}:{},'createMenu':_0x474356[_0xcd0ac5(0xe3)],'codeContent':_0x474356[_0xcd0ac5(0xb9)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON['stringify'](_0x474356[_0xcd0ac5(0xdd)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0xff5823){const _0x19150f=a148_0x4f2ec4,_0x2af683=await prepare(_0xff5823),_0x259c6f=await createCustomPage(_0x2af683[_0x19150f(0xc0)]);if(!Number['isInteger'](_0x259c6f[_0x19150f(0xbd)])||_0x259c6f[_0x19150f(0xbd)]<=0x0)throw CliErrors[_0x19150f(0xd7)](_0x19150f(0xeb));return{'ok':!![],'data':buildMutationData(_0x2af683,_0x259c6f),'message':'Created\x20Custom\x20Page\x20'+_0x259c6f[_0x19150f(0xbd)]+'.'};}};function a148_0x12e8(_0x5c0d6c,_0x329b61){_0x5c0d6c=_0x5c0d6c-0xb2;const _0x25b2fe=a148_0x25b2();let _0x12e823=_0x25b2fe[_0x5c0d6c];return _0x12e823;}async function prepare(_0x4b0918){const _0xb47acd=a148_0x4f2ec4,_0xd7d62a=readPagePattern(_0x4b0918);if(_0xd7d62a===null)return{'input':readInput(_0x4b0918,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xd7d62a),'warnings':[],'pagePattern':_0xd7d62a};let _0x24d602=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x4d6863=[];try{const _0x1f5a74=await getI18nInfo(_0x4b0918[_0xb47acd(0xde)]);_0x1f5a74[_0xb47acd(0xcc)]&&_0x1f5a74[_0xb47acd(0xd1)]?.[_0xb47acd(0xcd)]&&(_0x24d602=_0x1f5a74[_0xb47acd(0xd1)]);}catch{_0x4d6863=[_0xb47acd(0xda)];}return{'input':readInput(_0x4b0918,_0x24d602,_0xd7d62a),'warnings':_0x4d6863,'pagePattern':_0xd7d62a};}function readPagePattern(_0xaf5b2f){const _0x1cbe30=a148_0x4f2ec4,_0x31cea4=_0xaf5b2f[_0x1cbe30(0xe7)](_0x1cbe30(0xe6))[_0x1cbe30(0xd6)](),_0x37b09c=_0xaf5b2f[_0x1cbe30(0xe7)]('page-content')[_0x1cbe30(0xd6)]()['length']>0x0;if(_0x31cea4&&_0x37b09c)throw CliErrors[_0x1cbe30(0xb2)](_0x1cbe30(0xbc));if(_0x37b09c)return null;if(!_0x31cea4)throw CliErrors[_0x1cbe30(0xb2)](_0x1cbe30(0xc8));if(_0x31cea4!==_0x1cbe30(0xea))throw CliErrors[_0x1cbe30(0xb2)](_0x1cbe30(0xee));return _0x31cea4;}function readInput(_0x51e15e,_0x4aef94=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x399de8=readPagePattern(_0x51e15e)){const _0x1478a1=a148_0x4f2ec4,_0x11c7fb=_0x51e15e[_0x1478a1(0xe7)](_0x1478a1(0xbf))[_0x1478a1(0xd6)]()||_0x1478a1(0xec)+Date[_0x1478a1(0xe0)]();if(_0x11c7fb[_0x1478a1(0xcd)]>0x64)throw CliErrors[_0x1478a1(0xb2)](_0x1478a1(0xc7));const _0xd14ba6=_0x51e15e[_0x1478a1(0xcf)]('parent-menu-id',NaN),_0xc30b68=!Number[_0x1478a1(0xd0)](_0xd14ba6);if(_0xc30b68&&(!Number['isInteger'](_0xd14ba6)||_0xd14ba6<=0x0))throw CliErrors[_0x1478a1(0xb2)](_0x1478a1(0xba));return{'appCode':_0x51e15e[_0x1478a1(0xde)],'pageName':_0x11c7fb,..._0xc30b68?{'parentMenuId':_0xd14ba6}:{},'createMenu':!![],'files':_0x399de8===null?parseCustomPageContent(_0x51e15e[_0x1478a1(0xe7)](_0x1478a1(0xd5))):buildInitialFiles(_0x11c7fb,_0x4aef94)};}function buildMutationData(_0x5b4175,_0x1d01af){const _0x46a08e=a148_0x4f2ec4,{input:_0x24c7bc}=_0x5b4175,_0x3d347c=_0x1d01af&&buildCustomPageDevelopmentUrl(_0x24c7bc[_0x46a08e(0xde)],_0x1d01af[_0x46a08e(0xb7)]),_0x4a70fa=_0x1d01af&&buildCustomPageEditUrl(_0x24c7bc['appCode'],_0x1d01af[_0x46a08e(0xbd)]);return{'operation':_0x46a08e(0xc1),'pageType':_0x46a08e(0xe2),'pagePattern':_0x5b4175[_0x46a08e(0xe8)],'selector':{'appCode':_0x24c7bc[_0x46a08e(0xde)],'pageName':_0x24c7bc[_0x46a08e(0xdd)]},'before':null,'after':{'pageId':_0x1d01af?.[_0x46a08e(0xbd)]??null,'pageName':_0x1d01af?.['pageName']??_0x24c7bc[_0x46a08e(0xdd)],'appCode':_0x1d01af?.['appCode']??_0x24c7bc[_0x46a08e(0xde)],'version':_0x1d01af?.[_0x46a08e(0xd8)]??null,'menuId':_0x1d01af?.['menuId']??null,'menuPath':_0x1d01af?.[_0x46a08e(0xb7)]??null,'files':_0x1d01af?.[_0x46a08e(0xb9)]??Object[_0x46a08e(0xe4)](_0x24c7bc[_0x46a08e(0xb9)])},'dryRun':_0x1d01af===undefined,'request':_0x24c7bc,..._0x3d347c?{'pageUrl':_0x3d347c}:{},..._0x4a70fa?{'editPageUrl':_0x4a70fa}:{},'warnings':[..._0x5b4175[_0x46a08e(0xdb)],..._0x1d01af&&!_0x3d347c?[_0x46a08e(0xe9)]:[]]};}function a148_0x25b2(){const _0x2037f8=['2288205oigxXx','pageName\x20cannot\x20exceed\x20100\x20characters.','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','page\x20create\x20does\x20not\x20accept\x20--page-type.','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','31645900NYZrkx','enableI18n','length','888beHCOC','num','isNaN','langs','zh-CN','16CEpvuS','25312RjNKDg','page-content','trim','apiError','version','en-US','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','warnings','string','pageName','appCode','4EtUQra','now','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','CUSTOM','createMenu','keys','5624384hlBRgx','page-pattern','str','pagePattern','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','BLANK','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Custom_page_','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','validation','parent-menu-id','page-type','6645789gllwDr','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','menuPath','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','files','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','3226500VslmYm','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','pageId','51168pVWXnt','name','input','page.create','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','compress','parentMenuId','create'];a148_0x25b2=function(){return _0x2037f8;};return a148_0x25b2();}
@@ -1 +1 @@
1
- function a149_0x2266(_0x5b32ba,_0x28d1fb){_0x5b32ba=_0x5b32ba-0x1b7;const _0x22d42a=a149_0x22d4();let _0x2266f0=_0x22d42a[_0x5b32ba];return _0x2266f0;}const a149_0x38e34a=a149_0x2266;(function(_0x3646d1,_0x3db48e){const _0x12efb6=a149_0x2266,_0xbc247e=_0x3646d1();while(!![]){try{const _0x279c47=parseInt(_0x12efb6(0x1c8))/0x1*(-parseInt(_0x12efb6(0x1c9))/0x2)+parseInt(_0x12efb6(0x1bc))/0x3+parseInt(_0x12efb6(0x1b8))/0x4+-parseInt(_0x12efb6(0x1d2))/0x5+-parseInt(_0x12efb6(0x1ba))/0x6*(-parseInt(_0x12efb6(0x1d1))/0x7)+parseInt(_0x12efb6(0x1be))/0x8+-parseInt(_0x12efb6(0x1cb))/0x9*(-parseInt(_0x12efb6(0x1c6))/0xa);if(_0x279c47===_0x3db48e)break;else _0xbc247e['push'](_0xbc247e['shift']());}catch(_0x3663bd){_0xbc247e['push'](_0xbc247e['shift']());}}}(a149_0x22d4,0x19690));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':'custom-detail','description':a149_0x38e34a(0x1c4),'risk':'read','defaultOutputFormat':a149_0x38e34a(0x1cf),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x38e34a(0x1bb),'required':!![],'description':a149_0x38e34a(0x1cd)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49bece){readCustomPageId(_0x49bece);},async 'execute'(_0x2117ee){const _0x27568f=a149_0x38e34a,_0x5e1f47=readCustomPageId(_0x2117ee),_0x42d0eb=await getCustomPageSource(_0x5e1f47),{bundle:_0x34bd0e,createTime:_0x2353b9,updateTime:_0x5a6816,..._0x3f62d6}=_0x42d0eb,_0xb611fc=_0x42d0eb['id']??_0x5e1f47,_0x3434f1=_0x42d0eb[_0x27568f(0x1d3)]?.[_0x27568f(0x1b9)]()||_0x2117ee[_0x27568f(0x1bd)](_0x27568f(0x1c0))['trim'](),_0x4cb38d=buildCustomPageRuntimeUrl(_0x3434f1,_0x42d0eb[_0x27568f(0x1c1)]),_0x372e8c=buildCustomPageEditUrl(_0x3434f1,_0xb611fc),_0x46caa5=await resolveCustomPageDevelopmentUrl(_0x3434f1,_0xb611fc,_0x2117ee[_0x27568f(0x1ce)]);return{'ok':!![],'data':{..._0x3f62d6,..._0x4cb38d?{'runtimePageUrl':_0x4cb38d}:{},..._0x46caa5?{'pageUrl':_0x46caa5}:{},..._0x372e8c?{'editPageUrl':_0x372e8c}:{},..._0x2353b9==null?{}:{'createTime':formatTime(_0x2353b9)},..._0x5a6816==null?{}:{'updateTime':formatTime(_0x5a6816)}},'message':_0x27568f(0x1c3)+_0x5e1f47+'.'};}};function a149_0x22d4(){const _0x54342c=['str','1090680PuHyIb','getMinutes','appcode','pageCode','getTime','Retrieved\x20Custom\x20Page\x20','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','isNaN','370fpovvk','padStart','7AxNeok','58390AucAcs','getFullYear','12933YsxzLX','getSeconds','Custom\x20Page\x20ID','cookie','compress','join','7ewweoc','590260rFaUxG','appCode','getHours','47108rFUrPy','trim','265332FryWba','number','542982hfwsei'];a149_0x22d4=function(){return _0x54342c;};return a149_0x22d4();}function formatTime(_0x366e91){const _0x37690b=a149_0x38e34a,_0x3a4806=new Date(_0x366e91);if(Number[_0x37690b(0x1c5)](_0x3a4806[_0x37690b(0x1c2)]()))return String(_0x366e91);const _0x160e2c=[_0x3a4806[_0x37690b(0x1ca)](),String(_0x3a4806['getMonth']()+0x1)[_0x37690b(0x1c7)](0x2,'0'),String(_0x3a4806['getDate']())[_0x37690b(0x1c7)](0x2,'0')][_0x37690b(0x1d0)]('-'),_0x5f57ec=[String(_0x3a4806[_0x37690b(0x1b7)]())[_0x37690b(0x1c7)](0x2,'0'),String(_0x3a4806[_0x37690b(0x1bf)]())['padStart'](0x2,'0'),String(_0x3a4806[_0x37690b(0x1cc)]())['padStart'](0x2,'0')][_0x37690b(0x1d0)](':');return _0x160e2c+'\x20'+_0x5f57ec;}
1
+ function a149_0x385f(){const _0x18e121=['24savjiu','852569imjSUg','53739YotdXx','Retrieved\x20Custom\x20Page\x20','padStart','5176176JUBGvM','1420740pDKcKT','trim','join','compress','getDate','getMonth','getFullYear','page','getTime','pageCode','1877070PinRfC','11105332xLImqO','getMinutes','number','appcode','1098034BYtQlD','getHours','read','Custom\x20Page\x20ID','392teRucb'];a149_0x385f=function(){return _0x18e121;};return a149_0x385f();}const a149_0x4fd3fc=a149_0x2483;(function(_0x27f319,_0x102eb7){const _0x283c3e=a149_0x2483,_0x45fef3=_0x27f319();while(!![]){try{const _0x2d191c=parseInt(_0x283c3e(0x15b))/0x1+-parseInt(_0x283c3e(0x155))/0x2+-parseInt(_0x283c3e(0x150))/0x3+-parseInt(_0x283c3e(0x15f))/0x4+parseInt(_0x283c3e(0x160))/0x5*(parseInt(_0x283c3e(0x15a))/0x6)+parseInt(_0x283c3e(0x151))/0x7+parseInt(_0x283c3e(0x159))/0x8*(-parseInt(_0x283c3e(0x15c))/0x9);if(_0x2d191c===_0x102eb7)break;else _0x45fef3['push'](_0x45fef3['shift']());}catch(_0x35ca76){_0x45fef3['push'](_0x45fef3['shift']());}}}(a149_0x385f,0xc6ce3));function a149_0x2483(_0x48f213,_0x240d58){_0x48f213=_0x48f213-0x14f;const _0x385f1f=a149_0x385f();let _0x24832d=_0x385f1f[_0x48f213];return _0x24832d;}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_0x4fd3fc(0x167),'command':'custom-detail','description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a149_0x4fd3fc(0x157),'defaultOutputFormat':a149_0x4fd3fc(0x163),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x4fd3fc(0x153),'required':!![],'description':a149_0x4fd3fc(0x158)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2e4bb5){readCustomPageId(_0x2e4bb5);},async 'execute'(_0x2269ba){const _0xc3e63c=a149_0x4fd3fc,_0x230104=readCustomPageId(_0x2269ba),_0x3c4e1d=await getCustomPageSource(_0x230104),{bundle:_0xa56ee7,createTime:_0x1e1b53,updateTime:_0x1ba893,..._0x2647f8}=_0x3c4e1d,_0x414e95=_0x3c4e1d['id']??_0x230104,_0x5e4319=_0x3c4e1d['appCode']?.['trim']()||_0x2269ba['str'](_0xc3e63c(0x154))[_0xc3e63c(0x161)](),_0x19d9ea=buildCustomPageRuntimeUrl(_0x5e4319,_0x3c4e1d[_0xc3e63c(0x14f)]),_0x6a9508=buildCustomPageEditUrl(_0x5e4319,_0x414e95),_0x2badcd=await resolveCustomPageDevelopmentUrl(_0x5e4319,_0x414e95,_0x2269ba['cookie']);return{'ok':!![],'data':{..._0x2647f8,..._0x19d9ea?{'runtimePageUrl':_0x19d9ea}:{},..._0x2badcd?{'pageUrl':_0x2badcd}:{},..._0x6a9508?{'editPageUrl':_0x6a9508}:{},..._0x1e1b53==null?{}:{'createTime':formatTime(_0x1e1b53)},..._0x1ba893==null?{}:{'updateTime':formatTime(_0x1ba893)}},'message':_0xc3e63c(0x15d)+_0x230104+'.'};}};function formatTime(_0x572cf0){const _0x26a703=a149_0x4fd3fc,_0x1894b5=new Date(_0x572cf0);if(Number['isNaN'](_0x1894b5[_0x26a703(0x168)]()))return String(_0x572cf0);const _0x339582=[_0x1894b5[_0x26a703(0x166)](),String(_0x1894b5[_0x26a703(0x165)]()+0x1)[_0x26a703(0x15e)](0x2,'0'),String(_0x1894b5[_0x26a703(0x164)]())[_0x26a703(0x15e)](0x2,'0')][_0x26a703(0x162)]('-'),_0x456040=[String(_0x1894b5[_0x26a703(0x156)]())[_0x26a703(0x15e)](0x2,'0'),String(_0x1894b5[_0x26a703(0x152)]())[_0x26a703(0x15e)](0x2,'0'),String(_0x1894b5['getSeconds']())[_0x26a703(0x15e)](0x2,'0')][_0x26a703(0x162)](':');return _0x339582+'\x20'+_0x456040;}
@@ -1 +1 @@
1
- function a150_0x17f6(_0x20cc0c,_0x3d98fd){_0x20cc0c=_0x20cc0c-0x1ea;const _0x57c202=a150_0x57c2();let _0x17f6f5=_0x57c202[_0x20cc0c];return _0x17f6f5;}const a150_0x216475=a150_0x17f6;(function(_0x371e08,_0x2f1e78){const _0x4f4bf6=a150_0x17f6,_0x6bec33=_0x371e08();while(!![]){try{const _0x4c410a=-parseInt(_0x4f4bf6(0x1ef))/0x1+-parseInt(_0x4f4bf6(0x1fc))/0x2*(-parseInt(_0x4f4bf6(0x1ee))/0x3)+parseInt(_0x4f4bf6(0x1f8))/0x4+-parseInt(_0x4f4bf6(0x1f9))/0x5*(-parseInt(_0x4f4bf6(0x1ec))/0x6)+parseInt(_0x4f4bf6(0x1f7))/0x7+-parseInt(_0x4f4bf6(0x1f1))/0x8+parseInt(_0x4f4bf6(0x1ed))/0x9*(-parseInt(_0x4f4bf6(0x1f2))/0xa);if(_0x4c410a===_0x2f1e78)break;else _0x6bec33['push'](_0x6bec33['shift']());}catch(_0x5bdadc){_0x6bec33['push'](_0x6bec33['shift']());}}}(a150_0x57c2,0x6f833));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a150_0x57c2(){const _0xad3ba8=['144gXhzaR','3owEdIb','676203cpZyWX','appCode','1744504cTGtpz','831730JTUFhs','label','type','cookie','length','1450666ObVqRb','3254692huOvWJ','1957940bpaNLk','pageId','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','1755404vTfJDW','path','compress','read','react','page','12HtIWuW'];a150_0x57c2=function(){return _0xad3ba8;};return a150_0x57c2();}export const pageCustomList={'service':a150_0x216475(0x1eb),'command':'custom-list','description':a150_0x216475(0x1fb),'risk':a150_0x216475(0x1ff),'defaultOutputFormat':a150_0x216475(0x1fe),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x436395){const _0x16afde=a150_0x216475,_0x385c23=(await fetchMenuSnapshot(_0x436395[_0x16afde(0x1f0)],_0x436395[_0x16afde(0x1f5)]))['menus']['flatMap'](_0x143a94=>{const _0x4c5a48=_0x16afde;if(_0x143a94[_0x4c5a48(0x1f4)]!==_0x4c5a48(0x1ea)||_0x143a94[_0x4c5a48(0x1fa)]==null)return[];const _0x3c31e4=buildCustomPageDevelopmentUrl(_0x436395[_0x4c5a48(0x1f0)],_0x143a94[_0x4c5a48(0x1fd)]),_0xf6aaf=buildCustomPageEditUrl(_0x436395[_0x4c5a48(0x1f0)],_0x143a94[_0x4c5a48(0x1fa)]);return[{'pageId':_0x143a94[_0x4c5a48(0x1fa)],'label':_0x143a94[_0x4c5a48(0x1f3)],..._0x3c31e4?{'pageUrl':_0x3c31e4}:{},..._0xf6aaf?{'editPageUrl':_0xf6aaf}:{}}];});return{'ok':!![],'data':{'pages':_0x385c23},'message':_0x385c23[_0x16afde(0x1f6)]===0x0?'No\x20Custom\x20Pages\x20found.':'Found\x20'+_0x385c23[_0x16afde(0x1f6)]+'\x20Custom\x20Page(s).'};}};
1
+ const a150_0x639186=a150_0xce1a;(function(_0x814528,_0x3ed667){const _0x222f34=a150_0xce1a,_0x5ba729=_0x814528();while(!![]){try{const _0x26a3f6=-parseInt(_0x222f34(0x1f9))/0x1*(parseInt(_0x222f34(0x1f2))/0x2)+parseInt(_0x222f34(0x1f5))/0x3*(-parseInt(_0x222f34(0x202))/0x4)+-parseInt(_0x222f34(0x203))/0x5*(parseInt(_0x222f34(0x204))/0x6)+parseInt(_0x222f34(0x200))/0x7+parseInt(_0x222f34(0x1f7))/0x8+parseInt(_0x222f34(0x1f0))/0x9+-parseInt(_0x222f34(0x1f4))/0xa*(-parseInt(_0x222f34(0x1ff))/0xb);if(_0x26a3f6===_0x3ed667)break;else _0x5ba729['push'](_0x5ba729['shift']());}catch(_0x22ad35){_0x5ba729['push'](_0x5ba729['shift']());}}}(a150_0x1c43,0x30f3a));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a150_0xce1a(_0x161b53,_0x2e4f3f){_0x161b53=_0x161b53-0x1eb;const _0x1c43f2=a150_0x1c43();let _0xce1a1e=_0x1c43f2[_0x161b53];return _0xce1a1e;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a150_0x1c43(){const _0x4aa12d=['page','6388suittn','\x20Custom\x20Page(s).','pageId','type','flatMap','appCode','44vNIjER','995526HdQqyy','compress','44QtlzKU','1115cWKqrP','5190zfePOB','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','cookie','Found\x20','length','label','menus','2656548hvfoHo','custom-list','118qeCIZj','path','1373420RzoYSB','104187LOijYP','react','1324432ywyxoZ'];a150_0x1c43=function(){return _0x4aa12d;};return a150_0x1c43();}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a150_0x639186(0x1f8),'command':a150_0x639186(0x1f1),'description':a150_0x639186(0x205),'risk':'read','defaultOutputFormat':a150_0x639186(0x201),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x36f70c){const _0x253747=a150_0x639186,_0x3422a9=(await fetchMenuSnapshot(_0x36f70c[_0x253747(0x1fe)],_0x36f70c[_0x253747(0x1eb)]))[_0x253747(0x1ef)][_0x253747(0x1fd)](_0x13e8d2=>{const _0x5e2cb0=_0x253747;if(_0x13e8d2[_0x5e2cb0(0x1fc)]!==_0x5e2cb0(0x1f6)||_0x13e8d2[_0x5e2cb0(0x1fb)]==null)return[];const _0x7fd0ff=buildCustomPageDevelopmentUrl(_0x36f70c['appCode'],_0x13e8d2[_0x5e2cb0(0x1f3)]),_0x39927f=buildCustomPageEditUrl(_0x36f70c[_0x5e2cb0(0x1fe)],_0x13e8d2[_0x5e2cb0(0x1fb)]);return[{'pageId':_0x13e8d2['pageId'],'label':_0x13e8d2[_0x5e2cb0(0x1ee)],..._0x7fd0ff?{'pageUrl':_0x7fd0ff}:{},..._0x39927f?{'editPageUrl':_0x39927f}:{}}];});return{'ok':!![],'data':{'pages':_0x3422a9},'message':_0x3422a9[_0x253747(0x1ed)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x253747(0x1ec)+_0x3422a9[_0x253747(0x1ed)]+_0x253747(0x1fa)};}};