@lovrabet/rabetbase-cli 2.4.4-beta.1 → 2.4.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 (299) 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/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.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-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -1
  103. package/lib/commands/kb/delete.js +1 -1
  104. package/lib/commands/kb/detail.js +1 -1
  105. package/lib/commands/kb/index.js +1 -1
  106. package/lib/commands/kb/list.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/notification/config-create.js +1 -1
  135. package/lib/commands/notification/config-delete.js +1 -1
  136. package/lib/commands/notification/config-list.js +1 -1
  137. package/lib/commands/notification/config-update.js +1 -1
  138. package/lib/commands/notification/index.js +1 -1
  139. package/lib/commands/notification/shared.js +1 -1
  140. package/lib/commands/ocr/index.js +1 -1
  141. package/lib/commands/page/generate-start.js +1 -1
  142. package/lib/commands/page/generate-status.js +1 -1
  143. package/lib/commands/page/index.js +1 -1
  144. package/lib/commands/page/pull.js +1 -1
  145. package/lib/commands/page/push.js +1 -1
  146. package/lib/commands/page/react/create.js +1 -1
  147. package/lib/commands/page/react/detail.js +1 -1
  148. package/lib/commands/page/react/list.js +1 -1
  149. package/lib/commands/page/react/publish.js +1 -1
  150. package/lib/commands/page/react/shared.js +1 -1
  151. package/lib/commands/page/react/syntax.js +1 -1
  152. package/lib/commands/page/react/template.js +1 -1
  153. package/lib/commands/page/react/update.js +1 -1
  154. package/lib/commands/page/relation-audit.js +1 -1
  155. package/lib/commands/page/restore.js +1 -1
  156. package/lib/commands/page/shared.js +1 -1
  157. package/lib/commands/page/standard-page-status.js +1 -1
  158. package/lib/commands/page/sync.js +1 -1
  159. package/lib/commands/permit/index.js +1 -1
  160. package/lib/commands/permit/page-get.js +1 -1
  161. package/lib/commands/permit/page-set.js +1 -1
  162. package/lib/commands/permit/role-apis-set.js +1 -1
  163. package/lib/commands/permit/role-menus-set.js +1 -1
  164. package/lib/commands/permit/role-menus.js +1 -1
  165. package/lib/commands/permit/shared.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/create.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/run/index.js +1 -1
  190. package/lib/commands/schema.js +1 -1
  191. package/lib/commands/sql/create.js +1 -1
  192. package/lib/commands/sql/delete.js +1 -1
  193. package/lib/commands/sql/detail.js +1 -1
  194. package/lib/commands/sql/exec.js +1 -1
  195. package/lib/commands/sql/index.js +1 -1
  196. package/lib/commands/sql/list.js +1 -1
  197. package/lib/commands/sql/pull.js +1 -1
  198. package/lib/commands/sql/push.js +1 -1
  199. package/lib/commands/sql/shared.js +1 -1
  200. package/lib/commands/sql/status.js +1 -1
  201. package/lib/commands/sql/validate.js +1 -1
  202. package/lib/commands/task/index.js +1 -1
  203. package/lib/commands/task/status.js +1 -1
  204. package/lib/commands/tenant/index.js +1 -1
  205. package/lib/commands/tenant/members-list.js +1 -1
  206. package/lib/commands/tenant/shared.js +1 -1
  207. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  208. package/lib/commands/user-account/index.js +1 -1
  209. package/lib/commands/workspace/add.js +1 -1
  210. package/lib/commands/workspace/index.js +1 -1
  211. package/lib/commands/workspace/remove.js +1 -1
  212. package/lib/config/schema.js +1 -1
  213. package/lib/constant/cdn.js +1 -1
  214. package/lib/constant/cli.js +1 -1
  215. package/lib/constant/defaults.js +1 -1
  216. package/lib/constant/domain.js +1 -1
  217. package/lib/constant/env.js +1 -1
  218. package/lib/constant/output.js +1 -1
  219. package/lib/constant/paths.js +1 -1
  220. package/lib/constant/risk.js +1 -1
  221. package/lib/context/app-resolver.js +1 -1
  222. package/lib/context/auth-resolver.js +1 -1
  223. package/lib/context/config-loader.js +1 -1
  224. package/lib/context.js +1 -1
  225. package/lib/core/alias-resolver.js +1 -1
  226. package/lib/core/api-client.js +1 -1
  227. package/lib/core/bff/config.js +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.js +1 -1
  230. package/lib/core/bff/lock.js +1 -1
  231. package/lib/core/bff/utils.js +1 -1
  232. package/lib/core/db-resolver.js +1 -1
  233. package/lib/core/page/file-system.js +1 -1
  234. package/lib/core/page/hash.js +1 -1
  235. package/lib/core/page/lock.js +1 -1
  236. package/lib/core/sql-index-auditor.js +1 -1
  237. package/lib/core/sql-sync/config.js +1 -1
  238. package/lib/core/sql-sync/file-system.js +1 -1
  239. package/lib/core/sql-sync/hash.js +1 -1
  240. package/lib/core/sql-sync/lock.js +1 -1
  241. package/lib/core/sql-sync/utils.js +1 -1
  242. package/lib/core/sql-validator.js +1 -1
  243. package/lib/errors.js +1 -1
  244. package/lib/framework/build-all-flags.js +1 -1
  245. package/lib/framework/error-output.js +1 -1
  246. package/lib/framework/explicit-yes.js +1 -1
  247. package/lib/framework/flags.js +1 -1
  248. package/lib/framework/help.js +1 -1
  249. package/lib/framework/index.js +1 -1
  250. package/lib/framework/output.js +1 -1
  251. package/lib/framework/response.js +1 -1
  252. package/lib/framework/runner-alias.js +1 -1
  253. package/lib/framework/runner.js +1 -1
  254. package/lib/framework/schema-export.js +1 -1
  255. package/lib/framework/types.js +1 -1
  256. package/lib/generated/build-info.d.ts +4 -4
  257. package/lib/generated/build-info.js +1 -1
  258. package/lib/help.js +1 -1
  259. package/lib/postinstall.js +1 -1
  260. package/lib/runtime/confirmation.js +1 -1
  261. package/lib/runtime/event.js +1 -1
  262. package/lib/runtime/index.js +1 -1
  263. package/lib/runtime/queue.js +1 -1
  264. package/lib/runtime/resolve.js +1 -1
  265. package/lib/skills/builtin-skill.js +1 -1
  266. package/lib/skills/main.js +1 -1
  267. package/lib/skills/npx-skills-add.js +1 -1
  268. package/lib/skills/skill-presence.js +1 -1
  269. package/lib/telemetry/cli-command-trace.js +1 -1
  270. package/lib/telemetry/cli-help-trace.js +1 -1
  271. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  272. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  273. package/lib/telemetry/send-cli-trace-log.js +1 -1
  274. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  275. package/lib/utils/ai_config.js +1 -1
  276. package/lib/utils/apply-jq-filter.js +1 -1
  277. package/lib/utils/cdn-config.js +1 -1
  278. package/lib/utils/check-sdk-version.js +1 -1
  279. package/lib/utils/cli-version-check.js +1 -1
  280. package/lib/utils/cli-version-policy.js +1 -1
  281. package/lib/utils/config.js +1 -1
  282. package/lib/utils/entity-with-id.js +1 -1
  283. package/lib/utils/file-utils.js +1 -1
  284. package/lib/utils/guides-cdn.js +1 -1
  285. package/lib/utils/http-client.js +1 -1
  286. package/lib/utils/is-non-interactive.js +1 -1
  287. package/lib/utils/logger.js +1 -1
  288. package/lib/utils/params.js +1 -1
  289. package/lib/utils/platform.js +1 -1
  290. package/lib/utils/rules-cdn.js +1 -1
  291. package/lib/utils/sleep.js +1 -1
  292. package/lib/utils/template-replacer.js +1 -1
  293. package/lib/utils/update-notice.js +1 -1
  294. package/lib/utils/version.js +1 -1
  295. package/lib/utils/with-active-cookie.js +1 -1
  296. package/lib/utils/write-cli-side-channel.js +1 -1
  297. package/package.json +1 -1
  298. package/skills/rabetbase/SKILL.md +1 -1
  299. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a134_0x5d9504=a134_0x4368;(function(_0x2814ef,_0x2138cb){const _0x15d0f7=a134_0x4368,_0x35e619=_0x2814ef();while(!![]){try{const _0xf3366d=-parseInt(_0x15d0f7(0xda))/0x1*(parseInt(_0x15d0f7(0xe5))/0x2)+parseInt(_0x15d0f7(0xd4))/0x3+-parseInt(_0x15d0f7(0xcb))/0x4+parseInt(_0x15d0f7(0xc7))/0x5+-parseInt(_0x15d0f7(0xc9))/0x6+-parseInt(_0x15d0f7(0xd0))/0x7+parseInt(_0x15d0f7(0xcd))/0x8*(parseInt(_0x15d0f7(0xe0))/0x9);if(_0xf3366d===_0x2138cb)break;else _0x35e619['push'](_0x35e619['shift']());}catch(_0x5ccb03){_0x35e619['push'](_0x35e619['shift']());}}}(a134_0x575c,0xe7c69));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a134_0x575c(){const _0x3cdb64=['2262808oGjycA','verification','readTimeout','POST','Created\x20notification\x20config\x20','7197225BxejCT','appCode','4819656GaaeNl',';\x20do\x20not\x20resubmit\x20automatically.','4552400zkboVK','notification_config_create_outcome_unknown','13110992jIzvnv','connectTimeout','verified','5961004dCuNse','planned','mutation','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','5386158yaDvrM','/notification/channel-config/create','endpointUrl','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','notification','isSafeInteger','1iBbMVX','channelType','config-create','channelConfig','Inspect\x20with\x20','document','9XewmQA','configCode',';\x20do\x20not\x20resubmit.','configName','create'];a134_0x575c=function(){return _0x3cdb64;};return a134_0x575c();}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=a134_0x5d9504(0xd5);function a134_0x4368(_0xcf468,_0x3f59be){_0xcf468=_0xcf468-0xc3;const _0x575cb9=a134_0x575c();let _0x4368d2=_0x575cb9[_0xcf468];return _0x4368d2;}async function prepareCreate(_0x13079c){const _0x3c80f1=a134_0x5d9504,_0x21bb4c=await readNotificationDocument(_0x13079c,_0x3c80f1(0xe4)),_0xed7960=createMutationInput(_0x13079c['appCode'],_0x21bb4c);return{'document':_0x21bb4c,'input':_0xed7960,'planned':projectNotificationConfig({'appCode':_0x13079c[_0x3c80f1(0xc8)],'configName':_0x21bb4c[_0x3c80f1(0xe3)],'channelType':_0x21bb4c['channelType'],'endpointUrl':_0x21bb4c[_0x3c80f1(0xd6)],'channelConfig':_0x21bb4c[_0x3c80f1(0xdd)],'description':_0x21bb4c['description'],'connectTimeout':_0x21bb4c[_0x3c80f1(0xce)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x21bb4c[_0x3c80f1(0xc4)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a134_0x5d9504(0xd8),'command':a134_0x5d9504(0xdc),'description':a134_0x5d9504(0xd3),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x35bf70){assertSingleNotificationSource(_0x35bf70);},async 'dryRun'(_0x26159f){const _0x3bcf74=a134_0x5d9504,_0x21690c=await prepareCreate(_0x26159f),_0x288357=notificationLookupCommand(_0x26159f[_0x3bcf74(0xc8)],_0x21690c[_0x3bcf74(0xdf)][_0x3bcf74(0xdb)]);return asDryRunResult({'operation':_0x3bcf74(0xe4),'selector':{'appCode':_0x26159f['appCode'],'configName':_0x21690c[_0x3bcf74(0xdf)]['configName'],'channelType':_0x21690c[_0x3bcf74(0xdf)][_0x3bcf74(0xdb)]},'before':null,'after':_0x21690c[_0x3bcf74(0xd1)],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3bcf74(0xd1),'lookupCommand':_0x288357}},{'method':_0x3bcf74(0xc5),'url':CREATE_PATH});},async 'execute'(_0x4745d3){const _0x45e0b0=a134_0x5d9504,_0x404056=await prepareCreate(_0x4745d3),_0x2073dd=notificationLookupCommand(_0x4745d3[_0x45e0b0(0xc8)],_0x404056[_0x45e0b0(0xdf)]['channelType']);let _0x3b4b1f;try{_0x3b4b1f=await createNotificationChannelConfig(_0x404056['input']);}catch(_0x5dc486){if(isPlatformTransportFailure(_0x5dc486))throw notificationError(_0x45e0b0(0xcc),'Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.',_0x45e0b0(0xde)+_0x2073dd+_0x45e0b0(0xe2));throw safeApiFailure(_0x45e0b0(0xe4),_0x45e0b0(0xd2),_0x45e0b0(0xde)+_0x2073dd+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x45e0b0(0xd9)](_0x3b4b1f)||_0x3b4b1f<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x45e0b0(0xd7),_0x45e0b0(0xde)+_0x2073dd+_0x45e0b0(0xe2));let _0x32e26d;try{const _0x3ae744=await getNotificationChannelConfig(_0x3b4b1f,_0x4745d3['appCode']);_0x32e26d=normalizeExactNotificationConfig(_0x3ae744,_0x3b4b1f,_0x4745d3[_0x45e0b0(0xc8)]);}catch{throw safeApiFailure(_0x45e0b0(0xe4),_0x45e0b0(0xc3),'Inspect\x20with\x20'+_0x2073dd+_0x45e0b0(0xca));}return{'ok':!![],'data':{'operation':'create','selector':{'appCode':_0x32e26d[_0x45e0b0(0xc8)],'id':_0x32e26d['id'],'configCode':_0x32e26d[_0x45e0b0(0xe1)],'configName':_0x32e26d[_0x45e0b0(0xe3)],'channelType':_0x32e26d['channelType']},'before':null,'after':projectNotificationConfig(_0x32e26d),'dryRun':![],'backend':{'method':_0x45e0b0(0xc5),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x45e0b0(0xcf),'lookupCommand':_0x2073dd}},'message':_0x45e0b0(0xc6)+_0x32e26d['id']};}};
1
+ const a134_0x8b54e8=a134_0x5b5c;(function(_0x5db76e,_0x24e359){const _0x1f141a=a134_0x5b5c,_0x5d5c2e=_0x5db76e();while(!![]){try{const _0x3286d2=-parseInt(_0x1f141a(0xa5))/0x1*(-parseInt(_0x1f141a(0xaa))/0x2)+parseInt(_0x1f141a(0xa7))/0x3+parseInt(_0x1f141a(0x91))/0x4+parseInt(_0x1f141a(0xa6))/0x5+-parseInt(_0x1f141a(0xb6))/0x6+parseInt(_0x1f141a(0x9b))/0x7*(parseInt(_0x1f141a(0xb5))/0x8)+-parseInt(_0x1f141a(0xb3))/0x9*(parseInt(_0x1f141a(0xad))/0xa);if(_0x3286d2===_0x24e359)break;else _0x5d5c2e['push'](_0x5d5c2e['shift']());}catch(_0x1fc5dd){_0x5d5c2e['push'](_0x5d5c2e['shift']());}}}(a134_0x1cb5,0x5bf2d));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a134_0x1cb5(){const _0x2ab816=['2860102AvnpnA',';\x20do\x20not\x20resubmit.','POST','description','notification_config_create_outcome_unknown','readTimeout','notification','input','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','Created\x20notification\x20config\x20','1KIoabS','3083075rwWYzq','1058832VkRQBu','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','config-create','1450886cxMXmc',';\x20no\x20automatic\x20retry\x20was\x20attempted.','document','310RckeoE','channelType','create','verified','configCode','verification','564966qQFOXt','Inspect\x20with\x20','8iKAJZJ','2241192FvtHeP','2370236ckqcCc','planned','mutation','configName','write','isSafeInteger','channelConfig','appCode','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source',';\x20do\x20not\x20resubmit\x20automatically.'];a134_0x1cb5=function(){return _0x2ab816;};return a134_0x1cb5();}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';function a134_0x5b5c(_0x5a1528,_0x3dda3d){_0x5a1528=_0x5a1528-0x91;const _0x1cb518=a134_0x1cb5();let _0x5b5c3c=_0x1cb518[_0x5a1528];return _0x5b5c3c;}const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x5be972){const _0x2ef084=a134_0x5b5c,_0x407586=await readNotificationDocument(_0x5be972,_0x2ef084(0xaf)),_0xd58c53=createMutationInput(_0x5be972[_0x2ef084(0x98)],_0x407586);return{'document':_0x407586,'input':_0xd58c53,'planned':projectNotificationConfig({'appCode':_0x5be972[_0x2ef084(0x98)],'configName':_0x407586[_0x2ef084(0x94)],'channelType':_0x407586['channelType'],'endpointUrl':_0x407586['endpointUrl'],'channelConfig':_0x407586[_0x2ef084(0x97)],'description':_0x407586[_0x2ef084(0x9e)],'connectTimeout':_0x407586['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x407586[_0x2ef084(0xa0)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a134_0x8b54e8(0xa1),'command':a134_0x8b54e8(0xa9),'description':a134_0x8b54e8(0x99),'risk':a134_0x8b54e8(0x95),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x132f70){assertSingleNotificationSource(_0x132f70);},async 'dryRun'(_0x3f53f2){const _0x312150=a134_0x8b54e8,_0x441429=await prepareCreate(_0x3f53f2),_0x3f7c79=notificationLookupCommand(_0x3f53f2[_0x312150(0x98)],_0x441429[_0x312150(0xac)][_0x312150(0xae)]);return asDryRunResult({'operation':_0x312150(0xaf),'selector':{'appCode':_0x3f53f2[_0x312150(0x98)],'configName':_0x441429['document']['configName'],'channelType':_0x441429[_0x312150(0xac)][_0x312150(0xae)]},'before':null,'after':_0x441429[_0x312150(0x92)],'dryRun':!![],'backend':{'method':_0x312150(0x9d),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x3f7c79}},{'method':_0x312150(0x9d),'url':CREATE_PATH});},async 'execute'(_0x4e5f08){const _0x47abb9=a134_0x8b54e8,_0x3dcc9d=await prepareCreate(_0x4e5f08),_0x17fae9=notificationLookupCommand(_0x4e5f08[_0x47abb9(0x98)],_0x3dcc9d[_0x47abb9(0xac)][_0x47abb9(0xae)]);let _0x410c84;try{_0x410c84=await createNotificationChannelConfig(_0x3dcc9d[_0x47abb9(0xa2)]);}catch(_0x57f6a9){if(isPlatformTransportFailure(_0x57f6a9))throw notificationError(_0x47abb9(0x9f),_0x47abb9(0xa3),_0x47abb9(0xb4)+_0x17fae9+_0x47abb9(0x9c));throw safeApiFailure(_0x47abb9(0xaf),_0x47abb9(0x93),_0x47abb9(0xb4)+_0x17fae9+_0x47abb9(0xab));}if(!Number[_0x47abb9(0x96)](_0x410c84)||_0x410c84<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x47abb9(0xa8),_0x47abb9(0xb4)+_0x17fae9+';\x20do\x20not\x20resubmit.');let _0x163a12;try{const _0x2a2215=await getNotificationChannelConfig(_0x410c84,_0x4e5f08[_0x47abb9(0x98)]);_0x163a12=normalizeExactNotificationConfig(_0x2a2215,_0x410c84,_0x4e5f08[_0x47abb9(0x98)]);}catch{throw safeApiFailure('create',_0x47abb9(0xb2),'Inspect\x20with\x20'+_0x17fae9+_0x47abb9(0x9a));}return{'ok':!![],'data':{'operation':'create','selector':{'appCode':_0x163a12['appCode'],'id':_0x163a12['id'],'configCode':_0x163a12[_0x47abb9(0xb1)],'configName':_0x163a12[_0x47abb9(0x94)],'channelType':_0x163a12[_0x47abb9(0xae)]},'before':null,'after':projectNotificationConfig(_0x163a12),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x47abb9(0xb0),'lookupCommand':_0x17fae9}},'message':_0x47abb9(0xa4)+_0x163a12['id']};}};
@@ -1 +1 @@
1
- const a135_0x50a90a=a135_0x253b;(function(_0x3d931d,_0x51e1d5){const _0x14bba5=a135_0x253b,_0x1bddfa=_0x3d931d();while(!![]){try{const _0x325ac8=-parseInt(_0x14bba5(0x133))/0x1+parseInt(_0x14bba5(0x120))/0x2+-parseInt(_0x14bba5(0x132))/0x3+parseInt(_0x14bba5(0x134))/0x4+-parseInt(_0x14bba5(0x118))/0x5*(-parseInt(_0x14bba5(0x123))/0x6)+-parseInt(_0x14bba5(0x11f))/0x7+parseInt(_0x14bba5(0x12f))/0x8;if(_0x325ac8===_0x51e1d5)break;else _0x1bddfa['push'](_0x1bddfa['shift']());}catch(_0x4f60bb){_0x1bddfa['push'](_0x1bddfa['shift']());}}}(a135_0x7a52,0x65b50));function a135_0x7a52(){const _0x3f9ca2=['Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','high-risk-write','Notification\x20config\x20','5405687NtpbES','1441602vHJYDA','delete','verified','7884qUdSHt',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','unshift','mutation','some','\x20remains\x20present\x20after\x20delete.','notification','notification_config_delete_outcome_unknown','channelType','\x20delete\x20could\x20not\x20be\x20verified.','POST','10228160TyWZco',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','2215824FjFzlc','152561tBcpZu','291188DyfsdY','30lACRAC','appCode','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','before'];a135_0x7a52=function(){return _0x3f9ca2;};return a135_0x7a52();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a135_0x253b(_0x292632,_0x1d1c14){_0x292632=_0x292632-0x118;const _0x7a52da=a135_0x7a52();let _0x253bc8=_0x7a52da[_0x292632];return _0x253bc8;}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a135_0x50a90a(0x131);async function prepareDelete(_0x8a9ebb){const _0x527a77=a135_0x50a90a,_0x2b5ed8=readNotificationId(_0x8a9ebb),_0x59b5b8=await requireExactNotificationConfig(_0x8a9ebb[_0x527a77(0x119)],_0x2b5ed8,_0x527a77(0x121));return{'id':_0x2b5ed8,'before':_0x59b5b8};}export const notificationConfigDelete={'service':a135_0x50a90a(0x12a),'command':'config-delete','description':a135_0x50a90a(0x11a),'risk':a135_0x50a90a(0x11d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x572308){readNotificationId(_0x572308),requireNotificationExplicitYes(_0x572308);},async 'dryRun'(_0x215022){const _0x4c0048=a135_0x50a90a,_0x12f888=await prepareDelete(_0x215022),_0x3f9242=notificationLookupCommand(_0x215022[_0x4c0048(0x119)],_0x12f888[_0x4c0048(0x11b)][_0x4c0048(0x12c)]);return asDryRunResult({'operation':_0x4c0048(0x121),'selector':notificationSelector(_0x12f888[_0x4c0048(0x11b)]),'before':projectNotificationConfig(_0x12f888[_0x4c0048(0x11b)]),'after':null,'dryRun':!![],'backend':{'method':_0x4c0048(0x12e),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x3f9242}},{'method':_0x4c0048(0x12e),'url':DELETE_PATH});},async 'execute'(_0x3f612c){const _0x533e76=a135_0x50a90a;requireNotificationExplicitYes(_0x3f612c);const _0x3e035c=await prepareDelete(_0x3f612c),_0x4755f5=notificationLookupCommand(_0x3f612c['appCode'],_0x3e035c[_0x533e76(0x11b)]['channelType']);let _0x37d7c6=![];try{await deleteNotificationChannelConfig(_0x3e035c['id'],_0x3f612c[_0x533e76(0x119)]);}catch(_0x3a9d48){if(!isPlatformTransportFailure(_0x3a9d48))throw safeApiFailure(_0x533e76(0x121),_0x533e76(0x127),_0x533e76(0x125)+_0x4755f5+_0x533e76(0x130));_0x37d7c6=!![];}let _0x12b6f7;try{_0x12b6f7=await listNotificationChannelConfigs(_0x3f612c[_0x533e76(0x119)],_0x3e035c[_0x533e76(0x11b)][_0x533e76(0x12c)]),validateNotificationDeleteReadback(_0x12b6f7,_0x3f612c[_0x533e76(0x119)],_0x3e035c[_0x533e76(0x11b)][_0x533e76(0x12c)]);}catch{throw notificationError(_0x37d7c6?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x533e76(0x11e)+_0x3e035c['id']+_0x533e76(0x12d),_0x533e76(0x125)+_0x4755f5+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x12b6f7[_0x533e76(0x128)](_0x1554a8=>_0x1554a8['id']===_0x3e035c['id']))throw notificationError(_0x37d7c6?_0x533e76(0x12b):'notification_config_delete_verification_failed','Notification\x20config\x20'+_0x3e035c['id']+_0x533e76(0x129),_0x533e76(0x125)+_0x4755f5+_0x533e76(0x124));const _0x56da08=[REFERENCE_WARNING];return _0x37d7c6&&_0x56da08[_0x533e76(0x126)](_0x533e76(0x11c)),{'ok':!![],'data':{'operation':'delete','selector':notificationSelector(_0x3e035c[_0x533e76(0x11b)]),'before':projectNotificationConfig(_0x3e035c[_0x533e76(0x11b)]),'after':null,'dryRun':![],'backend':{'method':_0x533e76(0x12e),'path':DELETE_PATH},'warnings':_0x56da08,'verification':{'status':_0x533e76(0x122),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x37d7c6,'lookupCommand':_0x4755f5}},'message':'Deleted\x20notification\x20config\x20'+_0x3e035c['id']};}};
1
+ const a135_0x4ced75=a135_0x58d7;(function(_0x5edc94,_0x4d3cf8){const _0x13ea26=a135_0x58d7,_0x12720b=_0x5edc94();while(!![]){try{const _0x2c6a6c=-parseInt(_0x13ea26(0xc4))/0x1*(-parseInt(_0x13ea26(0xc8))/0x2)+-parseInt(_0x13ea26(0xb8))/0x3+parseInt(_0x13ea26(0xc2))/0x4*(parseInt(_0x13ea26(0xc7))/0x5)+-parseInt(_0x13ea26(0xca))/0x6*(parseInt(_0x13ea26(0xb5))/0x7)+-parseInt(_0x13ea26(0xd1))/0x8+parseInt(_0x13ea26(0xc6))/0x9*(-parseInt(_0x13ea26(0xc0))/0xa)+parseInt(_0x13ea26(0xc5))/0xb;if(_0x2c6a6c===_0x4d3cf8)break;else _0x12720b['push'](_0x12720b['shift']());}catch(_0x51d528){_0x12720b['push'](_0x12720b['shift']());}}}(a135_0x4853,0x2d3ad));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=a135_0x4ced75(0xbc),REFERENCE_WARNING=a135_0x4ced75(0xce);function a135_0x4853(){const _0x1c0634=['mutation','/notification/channel-config/delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','planned','POST','282660RuWYGX','high-risk-write','16XCooKq','channelType','115131pBPZcV','10320365IeuFZy','81NluJHm','272510aytNZE','2KYvGYt','unshift','6OUDAkE','verified','notification_config_delete_verification_unavailable','Deleted\x20notification\x20config\x20','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','Inspect\x20with\x20','notification_config_delete_outcome_unknown','1842224eDEBod',';\x20no\x20automatic\x20retry\x20was\x20attempted.','delete','Notification\x20config\x20','notification','2554237vyXnes',';\x20do\x20not\x20resubmit\x20automatically.','before','709590EmLhGf','appCode','\x20remains\x20present\x20after\x20delete.'];a135_0x4853=function(){return _0x1c0634;};return a135_0x4853();}function a135_0x58d7(_0x56e327,_0xbd7e0d){_0x56e327=_0x56e327-0xb5;const _0x4853e5=a135_0x4853();let _0x58d7e6=_0x4853e5[_0x56e327];return _0x58d7e6;}async function prepareDelete(_0x34a246){const _0x3e71cd=a135_0x4ced75,_0x5f3b5a=readNotificationId(_0x34a246),_0x31082a=await requireExactNotificationConfig(_0x34a246['appCode'],_0x5f3b5a,_0x3e71cd(0xd3));return{'id':_0x5f3b5a,'before':_0x31082a};}export const notificationConfigDelete={'service':a135_0x4ced75(0xd5),'command':'config-delete','description':'Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','risk':a135_0x4ced75(0xc1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x3954f5){readNotificationId(_0x3954f5),requireNotificationExplicitYes(_0x3954f5);},async 'dryRun'(_0x2457be){const _0x4621d7=a135_0x4ced75,_0x409562=await prepareDelete(_0x2457be),_0x101bc1=notificationLookupCommand(_0x2457be[_0x4621d7(0xb9)],_0x409562[_0x4621d7(0xb7)][_0x4621d7(0xc3)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x409562['before']),'before':projectNotificationConfig(_0x409562[_0x4621d7(0xb7)]),'after':null,'dryRun':!![],'backend':{'method':_0x4621d7(0xbf),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x4621d7(0xbe),'lookupCommand':_0x101bc1}},{'method':_0x4621d7(0xbf),'url':DELETE_PATH});},async 'execute'(_0x49b197){const _0x20f956=a135_0x4ced75;requireNotificationExplicitYes(_0x49b197);const _0x5efbc4=await prepareDelete(_0x49b197),_0x3b0c1b=notificationLookupCommand(_0x49b197[_0x20f956(0xb9)],_0x5efbc4[_0x20f956(0xb7)][_0x20f956(0xc3)]);let _0x22e42f=![];try{await deleteNotificationChannelConfig(_0x5efbc4['id'],_0x49b197['appCode']);}catch(_0x1bf61d){if(!isPlatformTransportFailure(_0x1bf61d))throw safeApiFailure('delete',_0x20f956(0xbb),_0x20f956(0xcf)+_0x3b0c1b+_0x20f956(0xd2));_0x22e42f=!![];}let _0x43838e;try{_0x43838e=await listNotificationChannelConfigs(_0x49b197['appCode'],_0x5efbc4[_0x20f956(0xb7)][_0x20f956(0xc3)]),validateNotificationDeleteReadback(_0x43838e,_0x49b197['appCode'],_0x5efbc4[_0x20f956(0xb7)][_0x20f956(0xc3)]);}catch{throw notificationError(_0x22e42f?'notification_config_delete_outcome_unknown':_0x20f956(0xcc),_0x20f956(0xd4)+_0x5efbc4['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x20f956(0xcf)+_0x3b0c1b+_0x20f956(0xb6));}if(_0x43838e['some'](_0x18854e=>_0x18854e['id']===_0x5efbc4['id']))throw notificationError(_0x22e42f?_0x20f956(0xd0):'notification_config_delete_verification_failed',_0x20f956(0xd4)+_0x5efbc4['id']+_0x20f956(0xba),_0x20f956(0xcf)+_0x3b0c1b+_0x20f956(0xb6));const _0x47cfdc=[REFERENCE_WARNING];return _0x22e42f&&_0x47cfdc[_0x20f956(0xc9)](_0x20f956(0xbd)),{'ok':!![],'data':{'operation':_0x20f956(0xd3),'selector':notificationSelector(_0x5efbc4[_0x20f956(0xb7)]),'before':projectNotificationConfig(_0x5efbc4[_0x20f956(0xb7)]),'after':null,'dryRun':![],'backend':{'method':_0x20f956(0xbf),'path':DELETE_PATH},'warnings':_0x47cfdc,'verification':{'status':_0x20f956(0xcb),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x22e42f,'lookupCommand':_0x3b0c1b}},'message':_0x20f956(0xcd)+_0x5efbc4['id']};}};
@@ -1 +1 @@
1
- const a136_0x111fe1=a136_0xde54;(function(_0x2f7951,_0x39e155){const _0x5bbe2a=a136_0xde54,_0x12e1f2=_0x2f7951();while(!![]){try{const _0x5bbf03=parseInt(_0x5bbe2a(0xdb))/0x1+-parseInt(_0x5bbe2a(0xde))/0x2*(parseInt(_0x5bbe2a(0xd5))/0x3)+parseInt(_0x5bbe2a(0xdd))/0x4+-parseInt(_0x5bbe2a(0xd3))/0x5*(-parseInt(_0x5bbe2a(0xe4))/0x6)+-parseInt(_0x5bbe2a(0xdc))/0x7*(parseInt(_0x5bbe2a(0xd4))/0x8)+parseInt(_0x5bbe2a(0xd7))/0x9+-parseInt(_0x5bbe2a(0xe3))/0xa;if(_0x5bbf03===_0x39e155)break;else _0x12e1f2['push'](_0x12e1f2['shift']());}catch(_0x125626){_0x12e1f2['push'](_0x12e1f2['shift']());}}}(a136_0x3555,0x9eee8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a136_0xde54(_0x560c87,_0x3894cc){_0x560c87=_0x560c87-0xd2;const _0x355503=a136_0x3555();let _0xde54e0=_0x355503[_0x560c87];return _0xde54e0;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a136_0x111fe1(0xd6),'description':a136_0x111fe1(0xdf),'risk':a136_0x111fe1(0xe2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a136_0x111fe1(0xd8),'description':a136_0x111fe1(0xe1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x158b1c){readNotificationChannelType(_0x158b1c);},async 'execute'(_0x217a59){const _0x4d091b=a136_0x111fe1,_0x546301=readNotificationChannelType(_0x217a59),_0x293335=await listNotificationChannelConfigs(_0x217a59[_0x4d091b(0xe0)],_0x546301),_0x4629c4=_0x293335[_0x4d091b(0xd9)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x217a59[_0x4d091b(0xe0)],'channelType':_0x546301,'count':_0x4629c4[_0x4d091b(0xda)],'configs':_0x4629c4},'message':_0x4d091b(0xd2)+_0x4629c4[_0x4d091b(0xda)]+'\x20'+_0x546301+'\x20notification\x20config(s)'};}};function a136_0x3555(){const _0x29d43f=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','appCode','Notification\x20channel\x20type','read','13061770yGsyIE','12GpLzsw','Found\x20','1470375LxCMMR','1317944pLcckD','12oELQdu','config-list','7461666DyZExa','string','map','length','1052267aFVCjk','28SQcQUy','2554056rLlcPX','245936DpSYpY'];a136_0x3555=function(){return _0x29d43f;};return a136_0x3555();}
1
+ const a136_0x3a49e6=a136_0x267a;function a136_0x267a(_0x3faa67,_0x3e78d){_0x3faa67=_0x3faa67-0x137;const _0x508932=a136_0x5089();let _0x267abe=_0x508932[_0x3faa67];return _0x267abe;}function a136_0x5089(){const _0x5b1dfe=['\x20notification\x20config(s)','7667464FbXBIY','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','2153098piRkGz','EMAIL','read','Notification\x20channel\x20type','13118409JHIVGI','notification','83876JRosGJ','appCode','length','config-list','1YbjgVW','1783645ODouCy','5581440vjLHlx','18hSJUea','type','map','3435817QYPygK'];a136_0x5089=function(){return _0x5b1dfe;};return a136_0x5089();}(function(_0x3ae51c,_0x54dc30){const _0x3e7e48=a136_0x267a,_0x58a39b=_0x3ae51c();while(!![]){try{const _0x6dccb5=parseInt(_0x3e7e48(0x146))/0x1*(parseInt(_0x3e7e48(0x13c))/0x2)+-parseInt(_0x3e7e48(0x149))/0x3*(-parseInt(_0x3e7e48(0x142))/0x4)+parseInt(_0x3e7e48(0x147))/0x5+-parseInt(_0x3e7e48(0x148))/0x6+-parseInt(_0x3e7e48(0x138))/0x7+-parseInt(_0x3e7e48(0x13a))/0x8+parseInt(_0x3e7e48(0x140))/0x9;if(_0x6dccb5===_0x54dc30)break;else _0x58a39b['push'](_0x58a39b['shift']());}catch(_0x338d4a){_0x58a39b['push'](_0x58a39b['shift']());}}}(a136_0x5089,0x9b905));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a136_0x3a49e6(0x141),'command':a136_0x3a49e6(0x145),'description':a136_0x3a49e6(0x13b),'risk':a136_0x3a49e6(0x13e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a136_0x3a49e6(0x14a),'type':'string','description':a136_0x3a49e6(0x13f),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a136_0x3a49e6(0x13d)}],async 'validate'(_0x3c2814){readNotificationChannelType(_0x3c2814);},async 'execute'(_0x511912){const _0xad6ed9=a136_0x3a49e6,_0x2e1e6d=readNotificationChannelType(_0x511912),_0x144ea6=await listNotificationChannelConfigs(_0x511912[_0xad6ed9(0x143)],_0x2e1e6d),_0xd29a9=_0x144ea6[_0xad6ed9(0x137)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x511912[_0xad6ed9(0x143)],'channelType':_0x2e1e6d,'count':_0xd29a9['length'],'configs':_0xd29a9},'message':'Found\x20'+_0xd29a9[_0xad6ed9(0x144)]+'\x20'+_0x2e1e6d+_0xad6ed9(0x139)};}};
@@ -1 +1 @@
1
- function a137_0x2e9b(){const _0x1d2df8=['1754765cEnFwS','notification_config_update_verification_unavailable','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','12YlAIzK','Notification\x20config\x20','before','11mrXfQN','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','high-risk-write','1994193DPitEM','appCode','patch','channelType','verifiedFields','allMatch','verified','planned','8sQfRSm','mutation','config-update','16006850DrIkwB','157087qUoGWZ','notification','POST','notification_config_update_outcome_unknown','payload','notification_config_update_verification_failed','2ukobnS','\x20via\x20','2217921uzekWn','264416tvtFbR','Inspect\x20ID\x20','3360200aPVXte','update',';\x20do\x20not\x20resubmit\x20automatically.','Updated\x20notification\x20config\x20','Inspect\x20with\x20--id\x20','provesChange','/notification/channel-config/update'];a137_0x2e9b=function(){return _0x1d2df8;};return a137_0x2e9b();}const a137_0x4bce88=a137_0x5ad5;(function(_0x14fbe7,_0x2a5c24){const _0x3fb2ca=a137_0x5ad5,_0x57053f=_0x14fbe7();while(!![]){try{const _0x4def18=parseInt(_0x3fb2ca(0xdf))/0x1+-parseInt(_0x3fb2ca(0xdc))/0x2*(parseInt(_0x3fb2ca(0xde))/0x3)+-parseInt(_0x3fb2ca(0xe1))/0x4+parseInt(_0x3fb2ca(0xe8))/0x5+-parseInt(_0x3fb2ca(0xeb))/0x6*(-parseInt(_0x3fb2ca(0xd6))/0x7)+-parseInt(_0x3fb2ca(0xd2))/0x8*(parseInt(_0x3fb2ca(0xca))/0x9)+parseInt(_0x3fb2ca(0xd5))/0xa*(parseInt(_0x3fb2ca(0xee))/0xb);if(_0x4def18===_0x2a5c24)break;else _0x57053f['push'](_0x57053f['shift']());}catch(_0x1290ab){_0x57053f['push'](_0x57053f['shift']());}}}(a137_0x2e9b,0x704e2));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=a137_0x4bce88(0xe7);async function prepareUpdate(_0x3499ae){const _0x536f2e=a137_0x4bce88,_0x4548b0=readNotificationId(_0x3499ae),_0x5b7163=await readNotificationDocument(_0x3499ae,'update'),_0x95e647=await requireExactNotificationConfig(_0x3499ae[_0x536f2e(0xcb)],_0x4548b0,_0x536f2e(0xe2));return{'id':_0x4548b0,'patch':_0x5b7163,'before':_0x95e647,'payload':mergeUpdateInput(_0x95e647,_0x5b7163),'planned':plannedUpdateProjection(_0x95e647,_0x5b7163)};}function a137_0x5ad5(_0x5da6db,_0x4d555f){_0x5da6db=_0x5da6db-0xc8;const _0x2e9bdf=a137_0x2e9b();let _0x5ad542=_0x2e9bdf[_0x5da6db];return _0x5ad542;}export const notificationConfigUpdate={'service':a137_0x4bce88(0xd7),'command':a137_0x4bce88(0xd4),'description':a137_0x4bce88(0xea),'risk':a137_0x4bce88(0xc9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x26ad36){readNotificationId(_0x26ad36),assertSingleNotificationSource(_0x26ad36),requireNotificationExplicitYes(_0x26ad36);},async 'dryRun'(_0x4e85ac){const _0x5b34d2=a137_0x4bce88,_0x3704e6=await prepareUpdate(_0x4e85ac),_0x3838e8=notificationLookupCommand(_0x4e85ac[_0x5b34d2(0xcb)],_0x3704e6[_0x5b34d2(0xed)][_0x5b34d2(0xcd)]);return asDryRunResult({'operation':_0x5b34d2(0xe2),'selector':notificationSelector(_0x3704e6[_0x5b34d2(0xed)]),'before':projectNotificationConfig(_0x3704e6['before']),'after':_0x3704e6[_0x5b34d2(0xd1)],'dryRun':!![],'backend':{'method':_0x5b34d2(0xd8),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x5b34d2(0xd1),'lookupCommand':_0x3838e8}},{'method':_0x5b34d2(0xd8),'url':UPDATE_PATH});},async 'execute'(_0x3276fe){const _0x104ac1=a137_0x4bce88;requireNotificationExplicitYes(_0x3276fe);const _0x138e74=await prepareUpdate(_0x3276fe),_0x389f90=notificationLookupCommand(_0x3276fe['appCode'],_0x138e74['before'][_0x104ac1(0xcd)]);let _0x5e06cb=![];try{await updateNotificationChannelConfig(_0x138e74[_0x104ac1(0xda)]);}catch(_0x2c6a42){if(!isPlatformTransportFailure(_0x2c6a42))throw safeApiFailure(_0x104ac1(0xe2),_0x104ac1(0xd3),_0x104ac1(0xe0)+_0x138e74['id']+'\x20with\x20'+_0x389f90+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x5e06cb=!![];}let _0x5305b5;try{const _0x462f53=await getNotificationChannelConfig(_0x138e74['id'],_0x3276fe[_0x104ac1(0xcb)]);_0x5305b5=normalizeExactNotificationConfig(_0x462f53,_0x138e74['id'],_0x3276fe['appCode']);}catch{throw notificationError(_0x5e06cb?'notification_config_update_outcome_unknown':_0x104ac1(0xe9),_0x104ac1(0xec)+_0x138e74['id']+_0x104ac1(0xc8),_0x104ac1(0xe5)+_0x138e74['id']+'\x20via\x20'+_0x389f90+_0x104ac1(0xe3));}const _0xb345=requestedSafeFieldsMatch(_0x138e74[_0x104ac1(0xed)],_0x5305b5,_0x138e74[_0x104ac1(0xcc)]);if(!_0xb345[_0x104ac1(0xcf)]||_0x5e06cb&&!_0xb345[_0x104ac1(0xe6)])throw notificationError(_0x5e06cb?_0x104ac1(0xd9):_0x104ac1(0xdb),_0x104ac1(0xec)+_0x138e74['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x104ac1(0xe5)+_0x138e74['id']+_0x104ac1(0xdd)+_0x389f90+_0x104ac1(0xe3));const _0x44f5b2=_0x5e06cb?[_0x104ac1(0xef)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x5305b5),'before':projectNotificationConfig(_0x138e74[_0x104ac1(0xed)]),'after':projectNotificationConfig(_0x5305b5),'dryRun':![],'backend':{'method':_0x104ac1(0xd8),'path':UPDATE_PATH},'warnings':_0x44f5b2,'verification':{'status':_0x104ac1(0xd0),'recoveredAfterUnknownResponse':_0x5e06cb,'verifiedFields':_0xb345[_0x104ac1(0xce)],'lookupCommand':_0x389f90}},'message':_0x104ac1(0xe4)+_0x5305b5['id']};}};
1
+ const a137_0x5e875d=a137_0x4153;(function(_0xc5c261,_0x2bd16d){const _0x2ab87e=a137_0x4153,_0x3adf2a=_0xc5c261();while(!![]){try{const _0x2362ca=-parseInt(_0x2ab87e(0x137))/0x1*(-parseInt(_0x2ab87e(0x143))/0x2)+parseInt(_0x2ab87e(0x128))/0x3+-parseInt(_0x2ab87e(0x145))/0x4+-parseInt(_0x2ab87e(0x13d))/0x5+-parseInt(_0x2ab87e(0x138))/0x6*(-parseInt(_0x2ab87e(0x13b))/0x7)+parseInt(_0x2ab87e(0x12a))/0x8*(parseInt(_0x2ab87e(0x12d))/0x9)+-parseInt(_0x2ab87e(0x139))/0xa;if(_0x2362ca===_0x2bd16d)break;else _0x3adf2a['push'](_0x3adf2a['shift']());}catch(_0x9a15f8){_0x3adf2a['push'](_0x3adf2a['shift']());}}}(a137_0x5a24,0xc2616));function a137_0x5a24(){const _0x3ab2ba=['/notification/channel-config/update','Inspect\x20ID\x20','Updated\x20notification\x20config\x20','allMatch','update','21gvsCGX','990294EOFUOy','4725520ZICAJP','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','7fAheLz','POST','5926885STqOex','Notification\x20config\x20','Inspect\x20with\x20--id\x20','notification_config_update_verification_failed','config-update','verified','62156nfacVU','mutation','3250708kExBUi','planned','\x20via\x20','notification_config_update_outcome_unknown','payload','before','verifiedFields','notification','4634481BrQCbp',';\x20do\x20not\x20resubmit\x20automatically.','516728sSJvFP','channelType','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','126GXpstY','\x20with\x20','high-risk-write','appCode','notification_config_update_verification_unavailable'];a137_0x5a24=function(){return _0x3ab2ba;};return a137_0x5a24();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a137_0x4153(_0x1ea0ec,_0x44c02c){_0x1ea0ec=_0x1ea0ec-0x125;const _0x5a24dc=a137_0x5a24();let _0x4153a7=_0x5a24dc[_0x1ea0ec];return _0x4153a7;}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=a137_0x5e875d(0x132);async function prepareUpdate(_0x3bc5f7){const _0x261598=a137_0x5e875d,_0x463b0c=readNotificationId(_0x3bc5f7),_0x44c1f6=await readNotificationDocument(_0x3bc5f7,_0x261598(0x136)),_0x3e0d24=await requireExactNotificationConfig(_0x3bc5f7[_0x261598(0x130)],_0x463b0c,_0x261598(0x136));return{'id':_0x463b0c,'patch':_0x44c1f6,'before':_0x3e0d24,'payload':mergeUpdateInput(_0x3e0d24,_0x44c1f6),'planned':plannedUpdateProjection(_0x3e0d24,_0x44c1f6)};}export const notificationConfigUpdate={'service':a137_0x5e875d(0x127),'command':a137_0x5e875d(0x141),'description':a137_0x5e875d(0x12c),'risk':a137_0x5e875d(0x12f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x1d57e3){readNotificationId(_0x1d57e3),assertSingleNotificationSource(_0x1d57e3),requireNotificationExplicitYes(_0x1d57e3);},async 'dryRun'(_0x3dbc0d){const _0x59221d=a137_0x5e875d,_0x39f6b0=await prepareUpdate(_0x3dbc0d),_0x5aa123=notificationLookupCommand(_0x3dbc0d[_0x59221d(0x130)],_0x39f6b0['before'][_0x59221d(0x12b)]);return asDryRunResult({'operation':_0x59221d(0x136),'selector':notificationSelector(_0x39f6b0[_0x59221d(0x125)]),'before':projectNotificationConfig(_0x39f6b0[_0x59221d(0x125)]),'after':_0x39f6b0[_0x59221d(0x146)],'dryRun':!![],'backend':{'method':_0x59221d(0x13c),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x59221d(0x146),'lookupCommand':_0x5aa123}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0xb27af){const _0xddd60e=a137_0x5e875d;requireNotificationExplicitYes(_0xb27af);const _0xebc5a2=await prepareUpdate(_0xb27af),_0x49bbb0=notificationLookupCommand(_0xb27af[_0xddd60e(0x130)],_0xebc5a2[_0xddd60e(0x125)][_0xddd60e(0x12b)]);let _0x2d4996=![];try{await updateNotificationChannelConfig(_0xebc5a2[_0xddd60e(0x149)]);}catch(_0x952de2){if(!isPlatformTransportFailure(_0x952de2))throw safeApiFailure(_0xddd60e(0x136),_0xddd60e(0x144),_0xddd60e(0x133)+_0xebc5a2['id']+_0xddd60e(0x12e)+_0x49bbb0+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x2d4996=!![];}let _0x5d1eec;try{const _0x2a4923=await getNotificationChannelConfig(_0xebc5a2['id'],_0xb27af[_0xddd60e(0x130)]);_0x5d1eec=normalizeExactNotificationConfig(_0x2a4923,_0xebc5a2['id'],_0xb27af[_0xddd60e(0x130)]);}catch{throw notificationError(_0x2d4996?_0xddd60e(0x148):_0xddd60e(0x131),_0xddd60e(0x13e)+_0xebc5a2['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0xddd60e(0x13f)+_0xebc5a2['id']+_0xddd60e(0x147)+_0x49bbb0+_0xddd60e(0x129));}const _0x2ccffa=requestedSafeFieldsMatch(_0xebc5a2[_0xddd60e(0x125)],_0x5d1eec,_0xebc5a2['patch']);if(!_0x2ccffa[_0xddd60e(0x135)]||_0x2d4996&&!_0x2ccffa['provesChange'])throw notificationError(_0x2d4996?_0xddd60e(0x148):_0xddd60e(0x140),'Notification\x20config\x20'+_0xebc5a2['id']+_0xddd60e(0x13a),'Inspect\x20with\x20--id\x20'+_0xebc5a2['id']+_0xddd60e(0x147)+_0x49bbb0+_0xddd60e(0x129));const _0x24d860=_0x2d4996?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0xddd60e(0x136),'selector':notificationSelector(_0x5d1eec),'before':projectNotificationConfig(_0xebc5a2[_0xddd60e(0x125)]),'after':projectNotificationConfig(_0x5d1eec),'dryRun':![],'backend':{'method':_0xddd60e(0x13c),'path':UPDATE_PATH},'warnings':_0x24d860,'verification':{'status':_0xddd60e(0x142),'recoveredAfterUnknownResponse':_0x2d4996,'verifiedFields':_0x2ccffa[_0xddd60e(0x126)],'lookupCommand':_0x49bbb0}},'message':_0xddd60e(0x134)+_0x5d1eec['id']};}};
@@ -1 +1 @@
1
- function a138_0x5a65(_0xff28e9,_0x55dcfd){_0xff28e9=_0xff28e9-0xe7;const _0x1c109c=a138_0x1c10();let _0x5a652d=_0x1c109c[_0xff28e9];return _0x5a652d;}(function(_0x41a59f,_0x856eae){const _0x5a3092=a138_0x5a65,_0x39f455=_0x41a59f();while(!![]){try{const _0x33d3de=-parseInt(_0x5a3092(0xf0))/0x1*(parseInt(_0x5a3092(0xe7))/0x2)+parseInt(_0x5a3092(0xec))/0x3*(parseInt(_0x5a3092(0xe8))/0x4)+parseInt(_0x5a3092(0xef))/0x5+parseInt(_0x5a3092(0xee))/0x6+-parseInt(_0x5a3092(0xea))/0x7+parseInt(_0x5a3092(0xed))/0x8*(-parseInt(_0x5a3092(0xe9))/0x9)+parseInt(_0x5a3092(0xeb))/0xa;if(_0x33d3de===_0x856eae)break;else _0x39f455['push'](_0x39f455['shift']());}catch(_0x155bca){_0x39f455['push'](_0x39f455['shift']());}}}(a138_0x1c10,0x49b69));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a138_0x1c10(){const _0x6c0347=['16dUFKGn','1668168dIdVTP','850665NmxRZY','529786jQxevu','2wwgDEF','894508PtFpMo','2698857VvsrMn','84035IsuooC','7716780GipGXI','3jRTaPU'];a138_0x1c10=function(){return _0x6c0347;};return a138_0x1c10();}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x2e0e5e,_0x15a2e7){const _0x5f3149=a138_0x2543,_0x191fb0=_0x2e0e5e();while(!![]){try{const _0xfa10a2=-parseInt(_0x5f3149(0x81))/0x1+-parseInt(_0x5f3149(0x82))/0x2*(parseInt(_0x5f3149(0x85))/0x3)+parseInt(_0x5f3149(0x7f))/0x4*(-parseInt(_0x5f3149(0x83))/0x5)+parseInt(_0x5f3149(0x84))/0x6+-parseInt(_0x5f3149(0x88))/0x7+parseInt(_0x5f3149(0x87))/0x8*(-parseInt(_0x5f3149(0x86))/0x9)+parseInt(_0x5f3149(0x80))/0xa;if(_0xfa10a2===_0x15a2e7)break;else _0x191fb0['push'](_0x191fb0['shift']());}catch(_0x2b3184){_0x191fb0['push'](_0x191fb0['shift']());}}}(a138_0x4827,0x4c089));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a138_0x2543(_0x3bf85e,_0xf76870){_0x3bf85e=_0x3bf85e-0x7f;const _0x482741=a138_0x4827();let _0x2543b7=_0x482741[_0x3bf85e];return _0x2543b7;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a138_0x4827(){const _0xa5e3ac=['4642jiAloW','9320ZhpluD','2638056SEsRlq','453MIAaXU','3025089ZUGlOL','8RytMbz','3946691YwADwg','964DrFmYI','17801940AtPVyA','208808ienzIu'];a138_0x4827=function(){return _0xa5e3ac;};return a138_0x4827();}
@@ -1 +1 @@
1
- const a139_0x216800=a139_0x2ea6;(function(_0x11fc61,_0x27d6ae){const _0x3f6787=a139_0x2ea6,_0x44c1f8=_0x11fc61();while(!![]){try{const _0x211e30=-parseInt(_0x3f6787(0x162))/0x1*(parseInt(_0x3f6787(0x1af))/0x2)+-parseInt(_0x3f6787(0x174))/0x3+parseInt(_0x3f6787(0x166))/0x4+parseInt(_0x3f6787(0x13c))/0x5*(-parseInt(_0x3f6787(0x16f))/0x6)+parseInt(_0x3f6787(0x14d))/0x7+parseInt(_0x3f6787(0x189))/0x8+-parseInt(_0x3f6787(0x172))/0x9*(-parseInt(_0x3f6787(0x1a0))/0xa);if(_0x211e30===_0x27d6ae)break;else _0x44c1f8['push'](_0x44c1f8['shift']());}catch(_0x2dc578){_0x44c1f8['push'](_0x44c1f8['shift']());}}}(a139_0x3eb1,0x561a0));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a139_0x216800(0x173),a139_0x216800(0x17b),a139_0x216800(0x199),a139_0x216800(0x13f),a139_0x216800(0x18e)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a139_0x216800(0x17e),a139_0x216800(0x14e),'endpointUrl','channelConfig',a139_0x216800(0x1b1),'connectTimeout','readTimeout']),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a139_0x216800(0x1bf),a139_0x216800(0x170),a139_0x216800(0x154)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets','recipients',a139_0x216800(0x1b4),a139_0x216800(0x1c2),a139_0x216800(0x1b7),a139_0x216800(0x1a3),a139_0x216800(0x150),'to','cc']);function a139_0x3eb1(){const _0x5307d5=['has','\x22channelType\x22.','\x20characters.','notification_config_response_invalid','appCode','Notification\x20JSON\x20channelConfig\x20field\x20\x22','boolean','bccList','153410IKzdez','mutation','a\x20non-empty\x20string','WECOM','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','name','\x20--format\x20compress','failed','Invalid\x20notification\x20config\x20response.','a\x20JSON\x20object','stringify','connectTimeout','\x22configName\x22.','Allowed\x20values:\x20','Notification\x20JSON\x20field\x20\x22','rabetbase\x20notification\x20config-list\x20--appcode\x20','channelConfigRaw','3040660ejhewa','channelType','\x22\x20must\x20be\x20a\x20non-empty\x20string.','fromName','isSafeInteger','Notification\x20config\x20list\x20item\x20','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','channelCode','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','\x20has\x20an\x20unsupported\x20channelType.','includes','trim','\x22\x20is\x20forbidden.','path','createTime','object','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','call','6718ZFSVQM','str','messageTemplate','length','2305324Nglfgu','endpointUrlRaw','\x20is\x20missing\x20required\x20field\x20\x22','\x20has\x20an\x20invalid\x20channelType.','kind','notification_config_','notification_config_source_unavailable','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','isArray','114rToihj','configCode','readTimeout','660303gNpPZu','EMAIL','193431TSFOvM','some','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','parse','notification_config_update_empty','Missing\x20notification\x20JSON\x20source.','every','FEISHU','setEncoding','type','configName','<redacted>','notification_config_field_required','validation','join','from-env','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','Invalid\x20--','\x20must\x20be\x20an\x20object.','\x20--type\x20','Notification\x20config\x20','2284152tjcVSP','preflight','notification_config_json_invalid','Item\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','WEBHOOK','\x20has\x20an\x20invalid\x20appCode.','dry-run','Unknown\x20notification\x20JSON\x20field\x20\x22','a\x20string\x20or\x20null','updateTime','file','notification_config_field_invalid','keys','channelConfig','Application-level\x20notification\x20config\x20ID','DINGTALK','\x22\x20cannot\x20exceed\x20','Create\x20JSON\x20requires\x20field\x20','environment\x20variable\x20','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','endpointUrl','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','10LjDvuL','Notification\x20JSON\x20from\x20','push','subjectPrefix','yes','number','string','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','utf8','stdin','notification_config_confirmation_required','_unavailable','hasOwnProperty','create','entries','110SYanpj','\x20has\x20an\x20invalid\x20id.','description','env','prototype','ccList','\x20failed.','bool','replyTo','notification_config_field_forbidden','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','update'];a139_0x3eb1=function(){return _0x5307d5;};return a139_0x3eb1();}export const NOTIFICATION_INPUT_FLAGS=[{'name':a139_0x216800(0x194),'type':a139_0x216800(0x1a6),'required':![],'description':a139_0x216800(0x155)},{'name':a139_0x216800(0x1a9),'type':a139_0x216800(0x1c1),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a139_0x216800(0x183),'type':a139_0x216800(0x1a6),'required':![],'description':a139_0x216800(0x140)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a139_0x216800(0x1a5),'required':!![],'description':a139_0x216800(0x198)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0xdab7fd,_0x1f14bc,_0x4470a1){return new CliError(_0xdab7fd,0x1,_0x1f14bc,_0x4470a1);}export function readNotificationId(_0x563404){const _0x1570c3=a139_0x216800,_0xda8574=_0x563404['num']('id');if(!Number[_0x1570c3(0x151)](_0xda8574)||_0xda8574<=0x0)throw notificationError('notification_config_id_invalid',_0x1570c3(0x153));return _0xda8574;}export function requireNotificationExplicitYes(_0x5cad85){const _0x34733c=a139_0x216800;if(_0x5cad85[_0x34733c(0x1b6)](_0x34733c(0x190))||_0x5cad85[_0x34733c(0x1b6)](_0x34733c(0x1a4)))return;throw notificationError(_0x34733c(0x1aa),'This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.',_0x34733c(0x1a7));}export function readNotificationChannelType(_0x558fc1,_0x5b5f03=a139_0x216800(0x17d),_0x509224=a139_0x216800(0x173)){const _0x3a014e=a139_0x216800,_0x582846=_0x558fc1[_0x3a014e(0x163)](_0x5b5f03)[_0x3a014e(0x15b)]()||_0x509224;if(!NOTIFICATION_CHANNEL_TYPES[_0x3a014e(0x15a)](_0x582846))throw CliErrors[_0x3a014e(0x181)](_0x3a014e(0x185)+_0x5b5f03+':\x20'+_0x582846,_0x3a014e(0x149)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x582846;}export function assertSingleNotificationSource(_0x492855){const _0x41dcd1=a139_0x216800,_0x9bcf44=[],_0x29dafa=_0x492855[_0x41dcd1(0x163)](_0x41dcd1(0x194))[_0x41dcd1(0x15b)]();if(_0x29dafa)_0x9bcf44[_0x41dcd1(0x1a2)]({'kind':_0x41dcd1(0x194),'path':_0x29dafa});if(_0x492855[_0x41dcd1(0x1b6)](_0x41dcd1(0x1a9)))_0x9bcf44['push']({'kind':_0x41dcd1(0x1a9)});const _0x5de3d4=_0x492855[_0x41dcd1(0x163)](_0x41dcd1(0x183))[_0x41dcd1(0x15b)]();if(_0x5de3d4)_0x9bcf44['push']({'kind':_0x41dcd1(0x1b2),'name':_0x5de3d4});if(_0x9bcf44['length']===0x0)throw CliErrors[_0x41dcd1(0x181)](_0x41dcd1(0x179),_0x41dcd1(0x176));if(_0x9bcf44[_0x41dcd1(0x165)]>0x1)throw CliErrors[_0x41dcd1(0x181)](_0x41dcd1(0x18d),_0x41dcd1(0x176));return _0x9bcf44[0x0];}function a139_0x2ea6(_0x4a4be2,_0x3a1aca){_0x4a4be2=_0x4a4be2-0x13c;const _0x3eb174=a139_0x3eb1();let _0x2ea6f3=_0x3eb174[_0x4a4be2];return _0x2ea6f3;}export async function readNotificationDocument(_0x9ea806,_0x1baa2a){const _0x24f2f1=a139_0x216800,_0x1e7341=assertSingleNotificationSource(_0x9ea806),_0x38616e=_0x1e7341[_0x24f2f1(0x16a)]===_0x24f2f1(0x194)?'file\x20'+_0x1e7341[_0x24f2f1(0x15d)]:_0x1e7341[_0x24f2f1(0x16a)]===_0x24f2f1(0x1b2)?_0x24f2f1(0x19c)+_0x1e7341[_0x24f2f1(0x141)]:_0x24f2f1(0x1a9);let _0xd2d331;try{if(_0x1e7341[_0x24f2f1(0x16a)]===_0x24f2f1(0x194))_0xd2d331=await readFile(_0x1e7341['path'],_0x24f2f1(0x1a8));else{if(_0x1e7341[_0x24f2f1(0x16a)]===_0x24f2f1(0x1b2)){if(!(_0x1e7341[_0x24f2f1(0x141)]in process.env))throw notificationError(_0x24f2f1(0x16c),_0x24f2f1(0x16d)+_0x1e7341[_0x24f2f1(0x141)]);_0xd2d331=process.env[_0x1e7341.name]??'';}else _0xd2d331=await readStdin();}}catch(_0x8969f2){if(_0x8969f2 instanceof CliError)throw _0x8969f2;throw notificationError(_0x24f2f1(0x16c),'Unable\x20to\x20read\x20notification\x20JSON\x20from\x20'+_0x38616e+'.');}let _0x58b0e8;try{_0x58b0e8=JSON[_0x24f2f1(0x177)](_0xd2d331);}catch{throw notificationError(_0x24f2f1(0x18b),_0x24f2f1(0x1a1)+_0x38616e+'\x20is\x20invalid.',_0x24f2f1(0x158));}if(!isJsonObject(_0x58b0e8))throw notificationError(_0x24f2f1(0x18b),_0x24f2f1(0x1a1)+_0x38616e+_0x24f2f1(0x186));return validateNotificationDocument(_0x58b0e8,_0x1baa2a);}export function projectNotificationListConfig(_0x416df2,_0xf33dc0){const _0x3bb913=a139_0x216800;return{'id':typeof _0x416df2['id']===_0x3bb913(0x1a5)?_0x416df2['id']:null,'configCode':requireResponseString(_0x416df2[_0x3bb913(0x170)],_0x3bb913(0x170),_0xf33dc0),'configName':requireResponseString(_0x416df2[_0x3bb913(0x17e)],'configName',_0xf33dc0),'channelType':requireResponseString(_0x416df2[_0x3bb913(0x14e)],_0x3bb913(0x14e),_0xf33dc0),'description':normalizeNullableString(_0x416df2[_0x3bb913(0x1b1)]),'createTime':normalizeNullableString(_0x416df2[_0x3bb913(0x15e)]),'updateTime':normalizeNullableString(_0x416df2[_0x3bb913(0x193)])};}export function normalizeExactNotificationConfig(_0xa8618a,_0x19a12d,_0x28f3cd){const _0x532e99=a139_0x216800;if(!Number[_0x532e99(0x151)](_0xa8618a['id'])||_0xa8618a['id']!==_0x19a12d)throw notificationError(_0x532e99(0x1be),_0x532e99(0x19f)+_0x19a12d+'.');if(_0xa8618a['appCode']!==_0x28f3cd)throw notificationError(_0x532e99(0x1be),'Notification\x20config\x20'+_0x19a12d+_0x532e99(0x157));const _0x44bc74=requireExactString(_0xa8618a[_0x532e99(0x17e)],'configName',_0x19a12d),_0x4c7af7=requireExactString(_0xa8618a[_0x532e99(0x170)],_0x532e99(0x170),_0x19a12d),_0x24e4f2=requireExactString(_0xa8618a[_0x532e99(0x14e)],_0x532e99(0x14e),_0x19a12d);if(!NOTIFICATION_CHANNEL_TYPES[_0x532e99(0x15a)](_0x24e4f2))throw notificationError('notification_config_response_invalid',_0x532e99(0x188)+_0x19a12d+_0x532e99(0x159));const _0x1503e=responseNullableString(_0xa8618a[_0x532e99(0x19e)],_0x532e99(0x19e),_0x19a12d),_0x169edf=responseNullableString(_0xa8618a[_0x532e99(0x197)],_0x532e99(0x197),_0x19a12d),_0x333f2c=responseNullableString(_0xa8618a[_0x532e99(0x1b1)],'description',_0x19a12d),_0x340ce4=responseNullableTimeout(_0xa8618a[_0x532e99(0x147)],_0x532e99(0x147),_0x19a12d),_0x426eb2=responseNullableTimeout(_0xa8618a['readTimeout'],_0x532e99(0x171),_0x19a12d);return{'id':_0x19a12d,'appCode':_0x28f3cd,'configCode':_0x4c7af7,'configName':_0x44bc74,'channelType':_0x24e4f2,'endpointUrl':redactSensitive(_0x1503e),'channelConfig':redactSensitive(_0x169edf),'description':_0x333f2c,'connectTimeout':_0x340ce4,'readTimeout':_0x426eb2,'endpointUrlRaw':_0x1503e,'channelConfigRaw':_0x169edf};}export async function requireExactNotificationConfig(_0x462956,_0x11bfcf,_0x60274d){const _0x4cca01=a139_0x216800;let _0x491992;try{_0x491992=await getNotificationChannelConfig(_0x11bfcf,_0x462956);}catch{throw safeApiFailure(_0x60274d,_0x4cca01(0x18a),_0x4cca01(0x184)+_0x462956+_0x4cca01(0x1b9));}return normalizeExactNotificationConfig(_0x491992,_0x11bfcf,_0x462956);}export function projectNotificationConfig(_0x392634){const _0x50b683=a139_0x216800;return{'id':_0x392634['id']??null,'appCode':_0x392634[_0x50b683(0x1bf)],'configCode':_0x392634[_0x50b683(0x170)]??null,'configName':_0x392634[_0x50b683(0x17e)],'channelType':_0x392634[_0x50b683(0x14e)],'endpointUrl':redactSensitive(_0x392634[_0x50b683(0x19e)]),'channelConfig':redactSensitive(_0x392634[_0x50b683(0x197)]),'description':_0x392634[_0x50b683(0x1b1)]??null,'connectTimeout':_0x392634[_0x50b683(0x147)]??null,'readTimeout':_0x392634[_0x50b683(0x171)]??null};}export function notificationSelector(_0xbf2308){const _0x37acbb=a139_0x216800;return{'appCode':_0xbf2308[_0x37acbb(0x1bf)],'id':_0xbf2308['id'],'configCode':_0xbf2308[_0x37acbb(0x170)],'configName':_0xbf2308[_0x37acbb(0x17e)],'channelType':_0xbf2308[_0x37acbb(0x14e)]};}export function createMutationInput(_0x2a3f67,_0xb0714d){const _0x29f2c5=a139_0x216800;return{'appCode':_0x2a3f67,'configName':_0xb0714d[_0x29f2c5(0x17e)],'channelType':_0xb0714d[_0x29f2c5(0x14e)],...hasOwn(_0xb0714d,_0x29f2c5(0x19e))?{'endpointUrl':_0xb0714d[_0x29f2c5(0x19e)]}:{},...hasOwn(_0xb0714d,_0x29f2c5(0x197))?{'channelConfig':serializeChannelConfig(_0xb0714d[_0x29f2c5(0x197)])}:{},...hasOwn(_0xb0714d,_0x29f2c5(0x1b1))?{'description':_0xb0714d['description']}:{},...hasOwn(_0xb0714d,_0x29f2c5(0x147))?{'connectTimeout':_0xb0714d['connectTimeout']}:{},...hasOwn(_0xb0714d,_0x29f2c5(0x171))?{'readTimeout':_0xb0714d[_0x29f2c5(0x171)]}:{}};}export function mergeUpdateInput(_0x15b64a,_0x2a2313){const _0x2bbbeb=a139_0x216800;return{'id':_0x15b64a['id'],'appCode':_0x15b64a[_0x2bbbeb(0x1bf)],'configName':_0x2a2313[_0x2bbbeb(0x17e)]??_0x15b64a['configName'],'channelType':_0x2a2313['channelType']??_0x15b64a[_0x2bbbeb(0x14e)],'endpointUrl':hasOwn(_0x2a2313,_0x2bbbeb(0x19e))?_0x2a2313['endpointUrl']:_0x15b64a[_0x2bbbeb(0x167)],'channelConfig':hasOwn(_0x2a2313,_0x2bbbeb(0x197))?serializeChannelConfig(_0x2a2313[_0x2bbbeb(0x197)]):_0x15b64a[_0x2bbbeb(0x14c)],'description':hasOwn(_0x2a2313,_0x2bbbeb(0x1b1))?_0x2a2313[_0x2bbbeb(0x1b1)]:_0x15b64a['description'],'connectTimeout':hasOwn(_0x2a2313,_0x2bbbeb(0x147))?_0x2a2313[_0x2bbbeb(0x147)]:_0x15b64a[_0x2bbbeb(0x147)],'readTimeout':hasOwn(_0x2a2313,_0x2bbbeb(0x171))?_0x2a2313[_0x2bbbeb(0x171)]:_0x15b64a['readTimeout']};}export function plannedUpdateProjection(_0x29b695,_0x2c3468){const _0x5319c6=a139_0x216800;return projectNotificationConfig({'id':_0x29b695['id'],'appCode':_0x29b695[_0x5319c6(0x1bf)],'configCode':_0x29b695[_0x5319c6(0x170)],'configName':_0x2c3468[_0x5319c6(0x17e)]??_0x29b695[_0x5319c6(0x17e)],'channelType':_0x2c3468[_0x5319c6(0x14e)]??_0x29b695[_0x5319c6(0x14e)],'endpointUrl':hasOwn(_0x2c3468,_0x5319c6(0x19e))?_0x2c3468[_0x5319c6(0x19e)]:_0x29b695[_0x5319c6(0x167)],'channelConfig':hasOwn(_0x2c3468,_0x5319c6(0x197))?_0x2c3468['channelConfig']:_0x29b695[_0x5319c6(0x14c)],'description':hasOwn(_0x2c3468,'description')?_0x2c3468[_0x5319c6(0x1b1)]:_0x29b695[_0x5319c6(0x1b1)],'connectTimeout':hasOwn(_0x2c3468,_0x5319c6(0x147))?_0x2c3468[_0x5319c6(0x147)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x29b695[_0x5319c6(0x147)],'readTimeout':hasOwn(_0x2c3468,_0x5319c6(0x171))?_0x2c3468[_0x5319c6(0x171)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x29b695[_0x5319c6(0x171)]});}export function requestedSafeFieldsMatch(_0x58305f,_0xb61f50,_0x501edf){const _0x1e54c8=a139_0x216800,_0x3cae13=[],_0x1239b4=[],_0x2a8b92=[];for(const _0xe9f238 of['configName','channelType',_0x1e54c8(0x1b1)]){if(!hasOwn(_0x501edf,_0xe9f238))continue;_0x2a8b92[_0x1e54c8(0x1a2)](_0xe9f238),_0x3cae13[_0x1e54c8(0x1a2)](_0xb61f50[_0xe9f238]===_0x501edf[_0xe9f238]),_0x1239b4[_0x1e54c8(0x1a2)](_0x58305f[_0xe9f238]!==_0x501edf[_0xe9f238]&&_0xb61f50[_0xe9f238]===_0x501edf[_0xe9f238]);}for(const _0x28d652 of[_0x1e54c8(0x147),_0x1e54c8(0x171)]){if(!hasOwn(_0x501edf,_0x28d652))continue;const _0x5eddd9=_0x501edf[_0x28d652]??(_0x28d652===_0x1e54c8(0x147)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x2a8b92['push'](_0x28d652),_0x3cae13[_0x1e54c8(0x1a2)](_0xb61f50[_0x28d652]===_0x5eddd9),_0x1239b4['push'](_0x58305f[_0x28d652]!==_0x5eddd9&&_0xb61f50[_0x28d652]===_0x5eddd9);}return hasOwn(_0x501edf,_0x1e54c8(0x19e))&&_0x501edf[_0x1e54c8(0x19e)]===null&&(_0x2a8b92[_0x1e54c8(0x1a2)]('endpointUrl:null'),_0x3cae13[_0x1e54c8(0x1a2)](_0xb61f50[_0x1e54c8(0x167)]===null||_0xb61f50[_0x1e54c8(0x167)]===''),_0x1239b4['push'](_0x58305f[_0x1e54c8(0x167)]!==null&&_0x58305f[_0x1e54c8(0x167)]!==''&&(_0xb61f50['endpointUrlRaw']===null||_0xb61f50[_0x1e54c8(0x167)]===''))),{'allMatch':_0x3cae13[_0x1e54c8(0x17a)](Boolean),'provesChange':_0x1239b4[_0x1e54c8(0x175)](Boolean),'verifiedFields':_0x2a8b92};}export function validateNotificationDeleteReadback(_0x186b53,_0x4da9a2,_0x87cb33){const _0x21576c=a139_0x216800;for(const [_0x5765ed,_0x5dd5ae]of _0x186b53[_0x21576c(0x1ae)]()){if(!Number[_0x21576c(0x151)](_0x5dd5ae['id'])||_0x5dd5ae['id']<=0x0)throw notificationError('notification_config_response_invalid',_0x21576c(0x152)+(_0x5765ed+0x1)+_0x21576c(0x1b0));if(_0x5dd5ae[_0x21576c(0x1bf)]!==_0x4da9a2)throw notificationError('notification_config_response_invalid',_0x21576c(0x152)+(_0x5765ed+0x1)+_0x21576c(0x18f));if(_0x5dd5ae[_0x21576c(0x14e)]!==_0x87cb33)throw notificationError(_0x21576c(0x1be),_0x21576c(0x152)+(_0x5765ed+0x1)+_0x21576c(0x169));}}export function safeApiFailure(_0x3b7679,_0x64c6f6,_0x2f59bf){const _0x5102c1=a139_0x216800;return notificationError(_0x5102c1(0x16b)+_0x3b7679+'_'+(_0x64c6f6===_0x5102c1(0x13d)?_0x5102c1(0x143):_0x64c6f6+_0x5102c1(0x1ab)),_0x5102c1(0x188)+_0x3b7679+'\x20'+_0x64c6f6+_0x5102c1(0x1b5),_0x2f59bf);}export function notificationLookupCommand(_0x86501e,_0x5e5e5f){const _0x39eed6=a139_0x216800;return _0x39eed6(0x14b)+_0x86501e+_0x39eed6(0x187)+_0x5e5e5f+_0x39eed6(0x142);}function validateNotificationDocument(_0x5a70aa,_0x1ec5db){const _0x461247=a139_0x216800;for(const _0x10d94f of Object[_0x461247(0x196)](_0x5a70aa)){if(FORBIDDEN_IDENTITY_FIELDS[_0x461247(0x1bb)](_0x10d94f))throw notificationError(_0x461247(0x1b8),_0x461247(0x14a)+_0x10d94f+_0x461247(0x160));if(!ALLOWED_INPUT_FIELDS[_0x461247(0x1bb)](_0x10d94f))throw notificationError('notification_config_field_unknown',_0x461247(0x191)+_0x10d94f+'\x22.');}if(_0x1ec5db===_0x461247(0x1ba)&&Object[_0x461247(0x196)](_0x5a70aa)[_0x461247(0x165)]===0x0)throw notificationError(_0x461247(0x178),'Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.');const _0x2e007d={};if(hasOwn(_0x5a70aa,_0x461247(0x17e)))_0x2e007d[_0x461247(0x17e)]=validateRequiredString(_0x5a70aa['configName'],_0x461247(0x17e),0x80);else{if(_0x1ec5db===_0x461247(0x1ad))throw notificationError(_0x461247(0x180),_0x461247(0x19b)+_0x461247(0x148));}if(hasOwn(_0x5a70aa,_0x461247(0x14e))){if(typeof _0x5a70aa[_0x461247(0x14e)]!=='string')throw invalidFieldType('channelType','a\x20supported\x20string');const _0x20a118=_0x5a70aa[_0x461247(0x14e)][_0x461247(0x15b)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x461247(0x15a)](_0x20a118))throw notificationError(_0x461247(0x195),_0x461247(0x19d),_0x461247(0x149)+NOTIFICATION_CHANNEL_TYPES[_0x461247(0x182)](',\x20')+'.');_0x2e007d[_0x461247(0x14e)]=_0x20a118;}else{if(_0x1ec5db===_0x461247(0x1ad))throw notificationError('notification_config_field_required',_0x461247(0x19b)+_0x461247(0x1bc));}for(const [_0x38d2ae,_0x569dda]of[[_0x461247(0x19e),0x200],[_0x461247(0x1b1),0x100]]){if(!hasOwn(_0x5a70aa,_0x38d2ae))continue;const _0x15c826=_0x5a70aa[_0x38d2ae];if(_0x15c826!==null&&typeof _0x15c826!==_0x461247(0x1a6))throw invalidFieldType(_0x38d2ae,_0x461247(0x192));if(typeof _0x15c826==='string'&&_0x15c826[_0x461247(0x165)]>_0x569dda)throw notificationError(_0x461247(0x195),_0x461247(0x14a)+_0x38d2ae+'\x22\x20cannot\x20exceed\x20'+_0x569dda+_0x461247(0x1bd));_0x2e007d[_0x38d2ae]=_0x15c826;}if(hasOwn(_0x5a70aa,'channelConfig')){const _0x59a634=_0x5a70aa['channelConfig'];if(_0x59a634===null&&_0x1ec5db===_0x461247(0x1ad))throw invalidFieldType(_0x461247(0x197),_0x461247(0x145));if(_0x59a634!==null&&!isJsonObject(_0x59a634))throw invalidFieldType(_0x461247(0x197),_0x1ec5db===_0x461247(0x1ba)?'a\x20JSON\x20object\x20or\x20null':'a\x20JSON\x20object');_0x59a634!==null&&validateChannelConfigFields(_0x2e007d['channelType'],_0x59a634),_0x2e007d[_0x461247(0x197)]=_0x59a634;}for(const _0x576de6 of['connectTimeout','readTimeout']){if(!hasOwn(_0x5a70aa,_0x576de6))continue;const _0x22d2f8=_0x5a70aa[_0x576de6];if(_0x22d2f8!==null&&(!Number['isSafeInteger'](_0x22d2f8)||_0x22d2f8<0x0))throw notificationError(_0x461247(0x195),_0x461247(0x14a)+_0x576de6+_0x461247(0x156));_0x2e007d[_0x576de6]=_0x22d2f8;}return _0x2e007d;}function validateRequiredString(_0x1cf624,_0x2e69dc,_0xe74c9e){const _0x3637e0=a139_0x216800;if(typeof _0x1cf624!=='string')throw invalidFieldType(_0x2e69dc,_0x3637e0(0x13e));const _0x20af0b=_0x1cf624['trim']();if(!_0x20af0b)throw notificationError(_0x3637e0(0x195),'Notification\x20JSON\x20field\x20\x22'+_0x2e69dc+_0x3637e0(0x14f));if(_0x20af0b[_0x3637e0(0x165)]>_0xe74c9e)throw notificationError(_0x3637e0(0x195),'Notification\x20JSON\x20field\x20\x22'+_0x2e69dc+_0x3637e0(0x19a)+_0xe74c9e+_0x3637e0(0x1bd));return _0x20af0b;}function validateChannelConfigFields(_0x6c174a,_0x58d737){const _0xf8d929=a139_0x216800;if(hasOwn(_0x58d737,_0xf8d929(0x164)))throw forbiddenChannelConfigField(_0xf8d929(0x164));if(_0x6c174a===_0xf8d929(0x173))for(const _0x2d49cf of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x58d737,_0x2d49cf))throw forbiddenChannelConfigField(_0x2d49cf);}}function forbiddenChannelConfigField(_0x349680){const _0x28d82a=a139_0x216800;return notificationError('notification_config_channel_field_forbidden',_0x28d82a(0x1c0)+_0x349680+_0x28d82a(0x15c));}function invalidFieldType(_0x386dfd,_0x50f32d){const _0x2ef91c=a139_0x216800;return notificationError(_0x2ef91c(0x195),_0x2ef91c(0x14a)+_0x386dfd+'\x22\x20must\x20be\x20'+_0x50f32d+'.');}function serializeChannelConfig(_0x54ca1e){const _0x2b31a9=a139_0x216800;return _0x54ca1e===null||_0x54ca1e===undefined?null:JSON[_0x2b31a9(0x146)](_0x54ca1e);}function redactSensitive(_0x1e065b){const _0x3a7329=a139_0x216800;return _0x1e065b===null||_0x1e065b===undefined||_0x1e065b===''?null:_0x3a7329(0x17f);}function requireResponseString(_0x17a47f,_0x146e49,_0x26aae3){const _0x23caa0=a139_0x216800;if(typeof _0x17a47f!==_0x23caa0(0x1a6)||_0x17a47f[_0x23caa0(0x15b)]()==='')throw CliErrors['apiError'](_0x23caa0(0x144),_0x23caa0(0x18c)+(_0x26aae3+0x1)+_0x23caa0(0x168)+_0x146e49+'\x22.');return _0x17a47f[_0x23caa0(0x15b)]();}function requireExactString(_0x2df6f2,_0x3e9e0c,_0x2ed8cf){const _0x5aaa75=a139_0x216800;if(typeof _0x2df6f2!==_0x5aaa75(0x1a6)||_0x2df6f2['trim']()==='')throw notificationError(_0x5aaa75(0x1be),_0x5aaa75(0x188)+_0x2ed8cf+_0x5aaa75(0x168)+_0x3e9e0c+'\x22.');return _0x2df6f2[_0x5aaa75(0x15b)]();}function responseNullableString(_0x14bdc1,_0x553d15,_0x405388){const _0x1b7e05=a139_0x216800;if(_0x14bdc1===undefined||_0x14bdc1===null)return null;if(typeof _0x14bdc1!==_0x1b7e05(0x1a6))throw notificationError(_0x1b7e05(0x1be),'Notification\x20config\x20'+_0x405388+'\x20has\x20invalid\x20field\x20\x22'+_0x553d15+'\x22.');return _0x14bdc1;}function responseNullableTimeout(_0x1b6267,_0x6a0640,_0x420d1f){const _0x3e9878=a139_0x216800;if(_0x1b6267===undefined||_0x1b6267===null)return null;if(!Number[_0x3e9878(0x151)](_0x1b6267)||_0x1b6267<0x0)throw notificationError(_0x3e9878(0x1be),_0x3e9878(0x188)+_0x420d1f+'\x20has\x20invalid\x20field\x20\x22'+_0x6a0640+'\x22.');return _0x1b6267;}function normalizeNullableString(_0x36bc06){const _0x55f608=a139_0x216800;return typeof _0x36bc06===_0x55f608(0x1a6)?_0x36bc06:null;}function isJsonObject(_0x35548b){const _0x39209f=a139_0x216800;return _0x35548b!==null&&typeof _0x35548b===_0x39209f(0x15f)&&!Array[_0x39209f(0x16e)](_0x35548b);}function hasOwn(_0x494faf,_0x19fbc0){const _0x305474=a139_0x216800;return Object[_0x305474(0x1b3)][_0x305474(0x1ac)][_0x305474(0x161)](_0x494faf,_0x19fbc0);}async function readStdin(){const _0x3b4432=a139_0x216800;let _0xa8e907='';process[_0x3b4432(0x1a9)][_0x3b4432(0x17c)](_0x3b4432(0x1a8));for await(const _0x159803 of process[_0x3b4432(0x1a9)])_0xa8e907+=_0x159803;return _0xa8e907;}
1
+ function a139_0x32bf(){const _0x266aa5=['endpointUrl','<redacted>','preflight','bool','setEncoding','appCode','parse','notification_config_source_unavailable','\x20failed.','Notification\x20JSON\x20channelConfig\x20field\x20\x22','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Application-level\x20notification\x20config\x20ID','\x20has\x20an\x20unsupported\x20channelType.','join','channelConfig','a\x20JSON\x20object','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','failed','Notification\x20config\x20list\x20item\x20','Notification\x20JSON\x20from\x20','messageTemplate','246301eiyawi','\x22\x20must\x20be\x20a\x20non-empty\x20string.','update','EMAIL','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','WECOM','1225840quJCOk','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','70LuEhKF','a\x20string\x20or\x20null','4121Kxbazk','length','subjectPrefix','\x22\x20cannot\x20exceed\x20','connectTimeout','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','_unavailable','\x20is\x20missing\x20required\x20field\x20\x22','\x20has\x20invalid\x20field\x20\x22','env','notification_config_field_required','call','notification_config_channel_field_forbidden','updateTime','trim','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','164466StdINZ','recipients','a\x20non-empty\x20string','includes','configCode','channelConfigRaw','Notification\x20JSON\x20field\x20\x22','689622eqnhkG','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','Allowed\x20values:\x20','44088fpCJyK','description','15ZpvYEM','FEISHU','boolean','configName','endpointUrlRaw','12928RZpptZ','Invalid\x20--','name','ccList','notification_config_confirmation_required','notification_config_response_invalid','notification_config_field_forbidden','string','environment\x20variable\x20','every','validation','Create\x20JSON\x20requires\x20field\x20','notification_config_id_invalid','file','stdin','from-env','prototype','replyTo','\x22configName\x22.','kind','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','some','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','has','str','notification_config_field_unknown','\x20is\x20invalid.','bccList','\x22\x20is\x20forbidden.','\x20--format\x20compress','push','readTimeout','WEBHOOK','Notification\x20config\x20','number','dry-run','591BaIVOt','248TbnDNi','emailTargets','hasOwnProperty','channelType','\x22\x20must\x20be\x20','path','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','fromName','notification_config_','keys','a\x20supported\x20string','endpointUrl:null','Invalid\x20notification\x20config\x20response.','create','isSafeInteger','2WvEJSX','a\x20JSON\x20object\x20or\x20null','Item\x20','notification_config_json_invalid','notification_config_field_invalid','stringify','file\x20','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','\x20characters.','589471fntJlx','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'];a139_0x32bf=function(){return _0x266aa5;};return a139_0x32bf();}const a139_0x2443f0=a139_0x5a80;(function(_0x5269fb,_0x3466dd){const _0x345c25=a139_0x5a80,_0x11dc5a=_0x5269fb();while(!![]){try{const _0x163184=parseInt(_0x345c25(0x1fd))/0x1*(-parseInt(_0x345c25(0x1f4))/0x2)+parseInt(_0x345c25(0x1e4))/0x3*(parseInt(_0x345c25(0x1c0))/0x4)+-parseInt(_0x345c25(0x1bb))/0x5*(parseInt(_0x345c25(0x1b6))/0x6)+parseInt(_0x345c25(0x19a))/0x7+-parseInt(_0x345c25(0x1e5))/0x8*(parseInt(_0x345c25(0x1af))/0x9)+-parseInt(_0x345c25(0x19c))/0xa*(parseInt(_0x345c25(0x194))/0xb)+parseInt(_0x345c25(0x1b9))/0xc*(parseInt(_0x345c25(0x19e))/0xd);if(_0x163184===_0x3466dd)break;else _0x11dc5a['push'](_0x11dc5a['shift']());}catch(_0x21af63){_0x11dc5a['push'](_0x11dc5a['shift']());}}}(a139_0x32bf,0x4ddf9));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a139_0x2443f0(0x197),a139_0x2443f0(0x1bc),'DINGTALK',a139_0x2443f0(0x199),a139_0x2443f0(0x1e0)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a139_0x2443f0(0x1be),a139_0x2443f0(0x1e8),'endpointUrl',a139_0x2443f0(0x18d),'description',a139_0x2443f0(0x1a2),a139_0x2443f0(0x1df)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a139_0x2443f0(0x184),a139_0x2443f0(0x1b3),'channelCode']),EMAIL_RECIPIENT_FIELDS=new Set([a139_0x2443f0(0x1e6),a139_0x2443f0(0x1b0),a139_0x2443f0(0x1c3),a139_0x2443f0(0x1db),a139_0x2443f0(0x1d1),a139_0x2443f0(0x1a0),a139_0x2443f0(0x1ec),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a139_0x2443f0(0x1cd),'type':a139_0x2443f0(0x1c7),'required':![],'description':a139_0x2443f0(0x1b7)},{'name':a139_0x2443f0(0x1ce),'type':a139_0x2443f0(0x1bd),'required':![],'default':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin'},{'name':a139_0x2443f0(0x1cf),'type':a139_0x2443f0(0x1c7),'required':![],'description':a139_0x2443f0(0x1d4)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a139_0x2443f0(0x1e2),'required':!![],'description':a139_0x2443f0(0x18a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x261103,_0x3d4e59,_0x48c32c){return new CliError(_0x261103,0x1,_0x3d4e59,_0x48c32c);}export function readNotificationId(_0x240a55){const _0x49a98a=a139_0x2443f0,_0x79a1ef=_0x240a55['num']('id');if(!Number['isSafeInteger'](_0x79a1ef)||_0x79a1ef<=0x0)throw notificationError(_0x49a98a(0x1cc),_0x49a98a(0x1a3));return _0x79a1ef;}export function requireNotificationExplicitYes(_0x1e93c7){const _0x1d3a0e=a139_0x2443f0;if(_0x1e93c7['bool'](_0x1d3a0e(0x1e3))||_0x1e93c7[_0x1d3a0e(0x182)]('yes'))return;throw notificationError(_0x1d3a0e(0x1c4),_0x1d3a0e(0x1d6),'Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.');}export function readNotificationChannelType(_0x1c8cec,_0x28cac8='type',_0x2dd670='EMAIL'){const _0x8fb43e=a139_0x2443f0,_0x13e450=_0x1c8cec['str'](_0x28cac8)[_0x8fb43e(0x1ac)]()||_0x2dd670;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x13e450))throw CliErrors['validation'](_0x8fb43e(0x1c1)+_0x28cac8+':\x20'+_0x13e450,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x8fb43e(0x18c)](',\x20')+'.');return _0x13e450;}export function assertSingleNotificationSource(_0x1eb12b){const _0x593915=a139_0x2443f0,_0x4294df=[],_0x49f2c9=_0x1eb12b[_0x593915(0x1d8)](_0x593915(0x1cd))['trim']();if(_0x49f2c9)_0x4294df['push']({'kind':'file','path':_0x49f2c9});if(_0x1eb12b[_0x593915(0x182)](_0x593915(0x1ce)))_0x4294df[_0x593915(0x1de)]({'kind':_0x593915(0x1ce)});const _0x3636f4=_0x1eb12b[_0x593915(0x1d8)](_0x593915(0x1cf))[_0x593915(0x1ac)]();if(_0x3636f4)_0x4294df['push']({'kind':_0x593915(0x1a7),'name':_0x3636f4});if(_0x4294df[_0x593915(0x19f)]===0x0)throw CliErrors['validation']('Missing\x20notification\x20JSON\x20source.','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.');if(_0x4294df[_0x593915(0x19f)]>0x1)throw CliErrors[_0x593915(0x1ca)]('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x593915(0x1fe));return _0x4294df[0x0];}export async function readNotificationDocument(_0x2f0bd0,_0x42e085){const _0x12f5ab=a139_0x2443f0,_0x576583=assertSingleNotificationSource(_0x2f0bd0),_0x54f165=_0x576583[_0x12f5ab(0x1d3)]==='file'?_0x12f5ab(0x1fa)+_0x576583['path']:_0x576583[_0x12f5ab(0x1d3)]==='env'?_0x12f5ab(0x1c8)+_0x576583[_0x12f5ab(0x1c2)]:_0x12f5ab(0x1ce);let _0x1f893c;try{if(_0x576583[_0x12f5ab(0x1d3)]===_0x12f5ab(0x1cd))_0x1f893c=await readFile(_0x576583[_0x12f5ab(0x1ea)],'utf8');else{if(_0x576583['kind']==='env'){if(!(_0x576583[_0x12f5ab(0x1c2)]in process.env))throw notificationError(_0x12f5ab(0x186),_0x12f5ab(0x1ae)+_0x576583['name']);_0x1f893c=process.env[_0x576583.name]??'';}else _0x1f893c=await readStdin();}}catch(_0x208b14){if(_0x208b14 instanceof CliError)throw _0x208b14;throw notificationError('notification_config_source_unavailable',_0x12f5ab(0x18f)+_0x54f165+'.');}let _0x52dbb2;try{_0x52dbb2=JSON[_0x12f5ab(0x185)](_0x1f893c);}catch{throw notificationError(_0x12f5ab(0x1f7),_0x12f5ab(0x192)+_0x54f165+_0x12f5ab(0x1da),_0x12f5ab(0x1ad));}if(!isJsonObject(_0x52dbb2))throw notificationError(_0x12f5ab(0x1f7),_0x12f5ab(0x192)+_0x54f165+'\x20must\x20be\x20an\x20object.');return validateNotificationDocument(_0x52dbb2,_0x42e085);}export function projectNotificationListConfig(_0x3c7479,_0x174598){const _0x108624=a139_0x2443f0;return{'id':typeof _0x3c7479['id']==='number'?_0x3c7479['id']:null,'configCode':requireResponseString(_0x3c7479[_0x108624(0x1b3)],_0x108624(0x1b3),_0x174598),'configName':requireResponseString(_0x3c7479['configName'],_0x108624(0x1be),_0x174598),'channelType':requireResponseString(_0x3c7479['channelType'],'channelType',_0x174598),'description':normalizeNullableString(_0x3c7479[_0x108624(0x1ba)]),'createTime':normalizeNullableString(_0x3c7479['createTime']),'updateTime':normalizeNullableString(_0x3c7479[_0x108624(0x1ab)])};}function a139_0x5a80(_0x44681a,_0x3a26a3){_0x44681a=_0x44681a-0x181;const _0x32bf98=a139_0x32bf();let _0x5a8004=_0x32bf98[_0x44681a];return _0x5a8004;}export function normalizeExactNotificationConfig(_0x4aed4f,_0x246a93,_0x1bd790){const _0x4c160c=a139_0x2443f0;if(!Number[_0x4c160c(0x1f3)](_0x4aed4f['id'])||_0x4aed4f['id']!==_0x246a93)throw notificationError('notification_config_response_invalid',_0x4c160c(0x1ff)+_0x246a93+'.');if(_0x4aed4f[_0x4c160c(0x184)]!==_0x1bd790)throw notificationError('notification_config_response_invalid',_0x4c160c(0x1e1)+_0x246a93+_0x4c160c(0x1eb));const _0x81a095=requireExactString(_0x4aed4f['configName'],_0x4c160c(0x1be),_0x246a93),_0x5bc9d5=requireExactString(_0x4aed4f[_0x4c160c(0x1b3)],'configCode',_0x246a93),_0x4854ac=requireExactString(_0x4aed4f[_0x4c160c(0x1e8)],_0x4c160c(0x1e8),_0x246a93);if(!NOTIFICATION_CHANNEL_TYPES[_0x4c160c(0x1b2)](_0x4854ac))throw notificationError(_0x4c160c(0x1c5),_0x4c160c(0x1e1)+_0x246a93+_0x4c160c(0x18b));const _0x1eef81=responseNullableString(_0x4aed4f['endpointUrl'],'endpointUrl',_0x246a93),_0x3647a2=responseNullableString(_0x4aed4f[_0x4c160c(0x18d)],_0x4c160c(0x18d),_0x246a93),_0x2cf36f=responseNullableString(_0x4aed4f['description'],_0x4c160c(0x1ba),_0x246a93),_0x30f929=responseNullableTimeout(_0x4aed4f['connectTimeout'],_0x4c160c(0x1a2),_0x246a93),_0x588d6d=responseNullableTimeout(_0x4aed4f[_0x4c160c(0x1df)],_0x4c160c(0x1df),_0x246a93);return{'id':_0x246a93,'appCode':_0x1bd790,'configCode':_0x5bc9d5,'configName':_0x81a095,'channelType':_0x4854ac,'endpointUrl':redactSensitive(_0x1eef81),'channelConfig':redactSensitive(_0x3647a2),'description':_0x2cf36f,'connectTimeout':_0x30f929,'readTimeout':_0x588d6d,'endpointUrlRaw':_0x1eef81,'channelConfigRaw':_0x3647a2};}export async function requireExactNotificationConfig(_0x3ea000,_0x4dbe7a,_0x6f4a3f){const _0x4f42fa=a139_0x2443f0;let _0x5465e3;try{_0x5465e3=await getNotificationChannelConfig(_0x4dbe7a,_0x3ea000);}catch{throw safeApiFailure(_0x6f4a3f,_0x4f42fa(0x181),_0x4f42fa(0x19b)+_0x3ea000+'\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.');}return normalizeExactNotificationConfig(_0x5465e3,_0x4dbe7a,_0x3ea000);}export function projectNotificationConfig(_0x1b5a29){const _0x257a4b=a139_0x2443f0;return{'id':_0x1b5a29['id']??null,'appCode':_0x1b5a29[_0x257a4b(0x184)],'configCode':_0x1b5a29[_0x257a4b(0x1b3)]??null,'configName':_0x1b5a29[_0x257a4b(0x1be)],'channelType':_0x1b5a29[_0x257a4b(0x1e8)],'endpointUrl':redactSensitive(_0x1b5a29[_0x257a4b(0x200)]),'channelConfig':redactSensitive(_0x1b5a29[_0x257a4b(0x18d)]),'description':_0x1b5a29[_0x257a4b(0x1ba)]??null,'connectTimeout':_0x1b5a29[_0x257a4b(0x1a2)]??null,'readTimeout':_0x1b5a29['readTimeout']??null};}export function notificationSelector(_0x133d39){const _0x322c00=a139_0x2443f0;return{'appCode':_0x133d39['appCode'],'id':_0x133d39['id'],'configCode':_0x133d39[_0x322c00(0x1b3)],'configName':_0x133d39[_0x322c00(0x1be)],'channelType':_0x133d39[_0x322c00(0x1e8)]};}export function createMutationInput(_0x13f71d,_0x6e34e9){const _0x1e2af5=a139_0x2443f0;return{'appCode':_0x13f71d,'configName':_0x6e34e9['configName'],'channelType':_0x6e34e9['channelType'],...hasOwn(_0x6e34e9,'endpointUrl')?{'endpointUrl':_0x6e34e9[_0x1e2af5(0x200)]}:{},...hasOwn(_0x6e34e9,_0x1e2af5(0x18d))?{'channelConfig':serializeChannelConfig(_0x6e34e9[_0x1e2af5(0x18d)])}:{},...hasOwn(_0x6e34e9,_0x1e2af5(0x1ba))?{'description':_0x6e34e9['description']}:{},...hasOwn(_0x6e34e9,_0x1e2af5(0x1a2))?{'connectTimeout':_0x6e34e9[_0x1e2af5(0x1a2)]}:{},...hasOwn(_0x6e34e9,'readTimeout')?{'readTimeout':_0x6e34e9[_0x1e2af5(0x1df)]}:{}};}export function mergeUpdateInput(_0x1ec94c,_0x57a9ca){const _0x4e6f07=a139_0x2443f0;return{'id':_0x1ec94c['id'],'appCode':_0x1ec94c[_0x4e6f07(0x184)],'configName':_0x57a9ca['configName']??_0x1ec94c[_0x4e6f07(0x1be)],'channelType':_0x57a9ca[_0x4e6f07(0x1e8)]??_0x1ec94c[_0x4e6f07(0x1e8)],'endpointUrl':hasOwn(_0x57a9ca,'endpointUrl')?_0x57a9ca[_0x4e6f07(0x200)]:_0x1ec94c[_0x4e6f07(0x1bf)],'channelConfig':hasOwn(_0x57a9ca,_0x4e6f07(0x18d))?serializeChannelConfig(_0x57a9ca[_0x4e6f07(0x18d)]):_0x1ec94c[_0x4e6f07(0x1b4)],'description':hasOwn(_0x57a9ca,'description')?_0x57a9ca[_0x4e6f07(0x1ba)]:_0x1ec94c['description'],'connectTimeout':hasOwn(_0x57a9ca,_0x4e6f07(0x1a2))?_0x57a9ca['connectTimeout']:_0x1ec94c['connectTimeout'],'readTimeout':hasOwn(_0x57a9ca,_0x4e6f07(0x1df))?_0x57a9ca[_0x4e6f07(0x1df)]:_0x1ec94c[_0x4e6f07(0x1df)]};}export function plannedUpdateProjection(_0x514ba3,_0x14b14e){const _0x1fecab=a139_0x2443f0;return projectNotificationConfig({'id':_0x514ba3['id'],'appCode':_0x514ba3[_0x1fecab(0x184)],'configCode':_0x514ba3[_0x1fecab(0x1b3)],'configName':_0x14b14e[_0x1fecab(0x1be)]??_0x514ba3['configName'],'channelType':_0x14b14e[_0x1fecab(0x1e8)]??_0x514ba3[_0x1fecab(0x1e8)],'endpointUrl':hasOwn(_0x14b14e,'endpointUrl')?_0x14b14e[_0x1fecab(0x200)]:_0x514ba3[_0x1fecab(0x1bf)],'channelConfig':hasOwn(_0x14b14e,_0x1fecab(0x18d))?_0x14b14e[_0x1fecab(0x18d)]:_0x514ba3[_0x1fecab(0x1b4)],'description':hasOwn(_0x14b14e,_0x1fecab(0x1ba))?_0x14b14e[_0x1fecab(0x1ba)]:_0x514ba3[_0x1fecab(0x1ba)],'connectTimeout':hasOwn(_0x14b14e,_0x1fecab(0x1a2))?_0x14b14e['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x514ba3[_0x1fecab(0x1a2)],'readTimeout':hasOwn(_0x14b14e,_0x1fecab(0x1df))?_0x14b14e[_0x1fecab(0x1df)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x514ba3[_0x1fecab(0x1df)]});}export function requestedSafeFieldsMatch(_0x115c80,_0x3ccf1e,_0x5126c9){const _0x16afea=a139_0x2443f0,_0x5660de=[],_0x5398b6=[],_0x582728=[];for(const _0x16156c of['configName',_0x16afea(0x1e8),_0x16afea(0x1ba)]){if(!hasOwn(_0x5126c9,_0x16156c))continue;_0x582728[_0x16afea(0x1de)](_0x16156c),_0x5660de[_0x16afea(0x1de)](_0x3ccf1e[_0x16156c]===_0x5126c9[_0x16156c]),_0x5398b6[_0x16afea(0x1de)](_0x115c80[_0x16156c]!==_0x5126c9[_0x16156c]&&_0x3ccf1e[_0x16156c]===_0x5126c9[_0x16156c]);}for(const _0x18fa33 of[_0x16afea(0x1a2),_0x16afea(0x1df)]){if(!hasOwn(_0x5126c9,_0x18fa33))continue;const _0x4e2dff=_0x5126c9[_0x18fa33]??(_0x18fa33==='connectTimeout'?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x582728[_0x16afea(0x1de)](_0x18fa33),_0x5660de[_0x16afea(0x1de)](_0x3ccf1e[_0x18fa33]===_0x4e2dff),_0x5398b6[_0x16afea(0x1de)](_0x115c80[_0x18fa33]!==_0x4e2dff&&_0x3ccf1e[_0x18fa33]===_0x4e2dff);}return hasOwn(_0x5126c9,'endpointUrl')&&_0x5126c9[_0x16afea(0x200)]===null&&(_0x582728[_0x16afea(0x1de)](_0x16afea(0x1f0)),_0x5660de['push'](_0x3ccf1e[_0x16afea(0x1bf)]===null||_0x3ccf1e[_0x16afea(0x1bf)]===''),_0x5398b6[_0x16afea(0x1de)](_0x115c80['endpointUrlRaw']!==null&&_0x115c80[_0x16afea(0x1bf)]!==''&&(_0x3ccf1e[_0x16afea(0x1bf)]===null||_0x3ccf1e[_0x16afea(0x1bf)]===''))),{'allMatch':_0x5660de[_0x16afea(0x1c9)](Boolean),'provesChange':_0x5398b6[_0x16afea(0x1d5)](Boolean),'verifiedFields':_0x582728};}export function validateNotificationDeleteReadback(_0x302819,_0x34d866,_0x4b0678){const _0x343591=a139_0x2443f0;for(const [_0xb8fa1f,_0xb45013]of _0x302819['entries']()){if(!Number[_0x343591(0x1f3)](_0xb45013['id'])||_0xb45013['id']<=0x0)throw notificationError(_0x343591(0x1c5),'Notification\x20config\x20list\x20item\x20'+(_0xb8fa1f+0x1)+'\x20has\x20an\x20invalid\x20id.');if(_0xb45013[_0x343591(0x184)]!==_0x34d866)throw notificationError(_0x343591(0x1c5),_0x343591(0x191)+(_0xb8fa1f+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0xb45013['channelType']!==_0x4b0678)throw notificationError(_0x343591(0x1c5),'Notification\x20config\x20list\x20item\x20'+(_0xb8fa1f+0x1)+'\x20has\x20an\x20invalid\x20channelType.');}}export function safeApiFailure(_0x1c65cd,_0x552970,_0x4a7fae){const _0x469a12=a139_0x2443f0;return notificationError(_0x469a12(0x1ed)+_0x1c65cd+'_'+(_0x552970==='mutation'?_0x469a12(0x190):_0x552970+_0x469a12(0x1a4)),_0x469a12(0x1e1)+_0x1c65cd+'\x20'+_0x552970+_0x469a12(0x187),_0x4a7fae);}export function notificationLookupCommand(_0x5408f7,_0x1bc00a){const _0x2b114e=a139_0x2443f0;return'rabetbase\x20notification\x20config-list\x20--appcode\x20'+_0x5408f7+'\x20--type\x20'+_0x1bc00a+_0x2b114e(0x1dd);}function validateNotificationDocument(_0x1a392d,_0x179304){const _0x150940=a139_0x2443f0;for(const _0x38d2bf of Object[_0x150940(0x1ee)](_0x1a392d)){if(FORBIDDEN_IDENTITY_FIELDS[_0x150940(0x1d7)](_0x38d2bf))throw notificationError(_0x150940(0x1c6),_0x150940(0x1b5)+_0x38d2bf+_0x150940(0x189));if(!ALLOWED_INPUT_FIELDS[_0x150940(0x1d7)](_0x38d2bf))throw notificationError(_0x150940(0x1d9),'Unknown\x20notification\x20JSON\x20field\x20\x22'+_0x38d2bf+'\x22.');}if(_0x179304===_0x150940(0x196)&&Object['keys'](_0x1a392d)[_0x150940(0x19f)]===0x0)throw notificationError('notification_config_update_empty','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.');const _0x2dac7f={};if(hasOwn(_0x1a392d,_0x150940(0x1be)))_0x2dac7f[_0x150940(0x1be)]=validateRequiredString(_0x1a392d['configName'],_0x150940(0x1be),0x80);else{if(_0x179304===_0x150940(0x1f2))throw notificationError('notification_config_field_required',_0x150940(0x1cb)+_0x150940(0x1d2));}if(hasOwn(_0x1a392d,_0x150940(0x1e8))){if(typeof _0x1a392d[_0x150940(0x1e8)]!=='string')throw invalidFieldType(_0x150940(0x1e8),_0x150940(0x1ef));const _0x4d8e89=_0x1a392d['channelType'][_0x150940(0x1ac)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x4d8e89))throw notificationError(_0x150940(0x1f8),_0x150940(0x198),_0x150940(0x1b8)+NOTIFICATION_CHANNEL_TYPES[_0x150940(0x18c)](',\x20')+'.');_0x2dac7f['channelType']=_0x4d8e89;}else{if(_0x179304===_0x150940(0x1f2))throw notificationError(_0x150940(0x1a8),_0x150940(0x1cb)+'\x22channelType\x22.');}for(const [_0x191787,_0x29e184]of[['endpointUrl',0x200],[_0x150940(0x1ba),0x100]]){if(!hasOwn(_0x1a392d,_0x191787))continue;const _0x22bf05=_0x1a392d[_0x191787];if(_0x22bf05!==null&&typeof _0x22bf05!==_0x150940(0x1c7))throw invalidFieldType(_0x191787,_0x150940(0x19d));if(typeof _0x22bf05==='string'&&_0x22bf05[_0x150940(0x19f)]>_0x29e184)throw notificationError('notification_config_field_invalid',_0x150940(0x1b5)+_0x191787+_0x150940(0x1a1)+_0x29e184+_0x150940(0x1fc));_0x2dac7f[_0x191787]=_0x22bf05;}if(hasOwn(_0x1a392d,_0x150940(0x18d))){const _0x1387e2=_0x1a392d[_0x150940(0x18d)];if(_0x1387e2===null&&_0x179304===_0x150940(0x1f2))throw invalidFieldType(_0x150940(0x18d),_0x150940(0x18e));if(_0x1387e2!==null&&!isJsonObject(_0x1387e2))throw invalidFieldType(_0x150940(0x18d),_0x179304===_0x150940(0x196)?_0x150940(0x1f5):_0x150940(0x18e));_0x1387e2!==null&&validateChannelConfigFields(_0x2dac7f[_0x150940(0x1e8)],_0x1387e2),_0x2dac7f[_0x150940(0x18d)]=_0x1387e2;}for(const _0x562c00 of[_0x150940(0x1a2),_0x150940(0x1df)]){if(!hasOwn(_0x1a392d,_0x562c00))continue;const _0x551467=_0x1a392d[_0x562c00];if(_0x551467!==null&&(!Number['isSafeInteger'](_0x551467)||_0x551467<0x0))throw notificationError(_0x150940(0x1f8),_0x150940(0x1b5)+_0x562c00+_0x150940(0x1fb));_0x2dac7f[_0x562c00]=_0x551467;}return _0x2dac7f;}function validateRequiredString(_0x2ec435,_0x3be8d7,_0x2c7bfd){const _0x429d70=a139_0x2443f0;if(typeof _0x2ec435!==_0x429d70(0x1c7))throw invalidFieldType(_0x3be8d7,_0x429d70(0x1b1));const _0x12347e=_0x2ec435[_0x429d70(0x1ac)]();if(!_0x12347e)throw notificationError(_0x429d70(0x1f8),_0x429d70(0x1b5)+_0x3be8d7+_0x429d70(0x195));if(_0x12347e['length']>_0x2c7bfd)throw notificationError('notification_config_field_invalid',_0x429d70(0x1b5)+_0x3be8d7+'\x22\x20cannot\x20exceed\x20'+_0x2c7bfd+_0x429d70(0x1fc));return _0x12347e;}function validateChannelConfigFields(_0x40913e,_0x5cfbfc){const _0x3b51d4=a139_0x2443f0;if(hasOwn(_0x5cfbfc,_0x3b51d4(0x193)))throw forbiddenChannelConfigField(_0x3b51d4(0x193));if(_0x40913e===_0x3b51d4(0x197))for(const _0x564d48 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x5cfbfc,_0x564d48))throw forbiddenChannelConfigField(_0x564d48);}}function forbiddenChannelConfigField(_0x8a52d5){const _0x1334f0=a139_0x2443f0;return notificationError(_0x1334f0(0x1aa),_0x1334f0(0x188)+_0x8a52d5+_0x1334f0(0x1dc));}function invalidFieldType(_0x60e059,_0x37ca4a){const _0x121ef3=a139_0x2443f0;return notificationError('notification_config_field_invalid',_0x121ef3(0x1b5)+_0x60e059+_0x121ef3(0x1e9)+_0x37ca4a+'.');}function serializeChannelConfig(_0x248c0e){const _0x4efc6c=a139_0x2443f0;return _0x248c0e===null||_0x248c0e===undefined?null:JSON[_0x4efc6c(0x1f9)](_0x248c0e);}function redactSensitive(_0x2b391c){const _0x2b96fe=a139_0x2443f0;return _0x2b391c===null||_0x2b391c===undefined||_0x2b391c===''?null:_0x2b96fe(0x201);}function requireResponseString(_0x5dd21d,_0x1dc19a,_0x5176b3){const _0x21f788=a139_0x2443f0;if(typeof _0x5dd21d!==_0x21f788(0x1c7)||_0x5dd21d[_0x21f788(0x1ac)]()==='')throw CliErrors['apiError'](_0x21f788(0x1f1),_0x21f788(0x1f6)+(_0x5176b3+0x1)+_0x21f788(0x1a5)+_0x1dc19a+'\x22.');return _0x5dd21d[_0x21f788(0x1ac)]();}function requireExactString(_0x1ae65e,_0x28eb67,_0x27f18b){const _0x5a24a4=a139_0x2443f0;if(typeof _0x1ae65e!==_0x5a24a4(0x1c7)||_0x1ae65e[_0x5a24a4(0x1ac)]()==='')throw notificationError('notification_config_response_invalid',_0x5a24a4(0x1e1)+_0x27f18b+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x28eb67+'\x22.');return _0x1ae65e[_0x5a24a4(0x1ac)]();}function responseNullableString(_0x32edff,_0x19f33a,_0x4ed383){const _0x2a73e6=a139_0x2443f0;if(_0x32edff===undefined||_0x32edff===null)return null;if(typeof _0x32edff!==_0x2a73e6(0x1c7))throw notificationError(_0x2a73e6(0x1c5),_0x2a73e6(0x1e1)+_0x4ed383+_0x2a73e6(0x1a6)+_0x19f33a+'\x22.');return _0x32edff;}function responseNullableTimeout(_0xb38654,_0x384edd,_0x4af284){const _0x1a0bad=a139_0x2443f0;if(_0xb38654===undefined||_0xb38654===null)return null;if(!Number[_0x1a0bad(0x1f3)](_0xb38654)||_0xb38654<0x0)throw notificationError(_0x1a0bad(0x1c5),'Notification\x20config\x20'+_0x4af284+'\x20has\x20invalid\x20field\x20\x22'+_0x384edd+'\x22.');return _0xb38654;}function normalizeNullableString(_0x493da3){const _0x351a7c=a139_0x2443f0;return typeof _0x493da3===_0x351a7c(0x1c7)?_0x493da3:null;}function isJsonObject(_0x19e165){return _0x19e165!==null&&typeof _0x19e165==='object'&&!Array['isArray'](_0x19e165);}function hasOwn(_0x36652a,_0x48ae04){const _0x30022c=a139_0x2443f0;return Object[_0x30022c(0x1d0)][_0x30022c(0x1e7)][_0x30022c(0x1a9)](_0x36652a,_0x48ae04);}async function readStdin(){const _0x43bc2d=a139_0x2443f0;let _0x7df7d8='';process[_0x43bc2d(0x1ce)][_0x43bc2d(0x183)]('utf8');for await(const _0x4762a4 of process[_0x43bc2d(0x1ce)])_0x7df7d8+=_0x4762a4;return _0x7df7d8;}
@@ -1 +1 @@
1
- const a140_0x421c85=a140_0x5865;(function(_0x9e26ac,_0x4c472d){const _0x2918e4=a140_0x5865,_0x35467a=_0x9e26ac();while(!![]){try{const _0x4441dd=parseInt(_0x2918e4(0x105))/0x1+-parseInt(_0x2918e4(0x115))/0x2+-parseInt(_0x2918e4(0x114))/0x3*(parseInt(_0x2918e4(0xeb))/0x4)+-parseInt(_0x2918e4(0x117))/0x5+-parseInt(_0x2918e4(0xe7))/0x6+-parseInt(_0x2918e4(0x11d))/0x7*(-parseInt(_0x2918e4(0x10b))/0x8)+parseInt(_0x2918e4(0xf0))/0x9*(parseInt(_0x2918e4(0x10f))/0xa);if(_0x4441dd===_0x4c472d)break;else _0x35467a['push'](_0x35467a['shift']());}catch(_0x29332d){_0x35467a['push'](_0x35467a['shift']());}}}(a140_0x425b,0xd9e7e));function a140_0x425b(){const _0x207c38=['.\x20Supported\x20scenes:\x20','scene','fileName','trim','filePath','14LGhgkv','使用研发态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','idCard','str','\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','3377016wOFPmo','ocr','appCode','toString','5543504YzOAYp','recognize','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','read','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','9mXgqcp','length','path','filter','invoice','apiError','Publicly\x20accessible\x20image\x20or\x20file\x20URL','File\x20URL\x20response\x20missing\x20fileUrl.','\x20OCR\x20from\x20URL','imageFile','Table','join','fileUrl','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','validation','/smartapi/common/uploadFile','Preview:\x20recognize\x20','form','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','POST','/smartapi/ocr/recognize-text','144917CxyvuB','Invoice','imageUrl','idcard','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','IdCard','3232480tsCtkZ','image-file','General','GET','39930910npLFcZ','toLowerCase','/smartapi/common/queryFileUrl','File\x20upload\x20response\x20missing\x20filePath.','count','3VpFITF','1809068HBOgPh','string','6001700lZqfcE'];a140_0x425b=function(){return _0x207c38;};return a140_0x425b();}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=[a140_0x421c85(0xf4),'general',a140_0x421c85(0x101),a140_0x421c85(0x11f)],SCENE_TO_LEGACY_TYPE={'invoice':a140_0x421c85(0x106),'general':a140_0x421c85(0x10d),'form':a140_0x421c85(0xfa),'idCard':a140_0x421c85(0x10a)},SCENE_FLAG={'name':a140_0x421c85(0x119),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a140_0x421c85(0x109)},IMAGE_FILE_FLAG={'name':a140_0x421c85(0x10c),'type':a140_0x421c85(0x116),'description':a140_0x421c85(0xed)},IMAGE_URL_FLAG={'name':'image-url','type':'string','description':a140_0x421c85(0xf6)};function normalizeScene(_0x522058){const _0x413e83=a140_0x421c85,_0x3c88e4=_0x522058['trim']()[_0x413e83(0x110)]();if(_0x3c88e4===_0x413e83(0x108))return _0x413e83(0x11f);if(_0x3c88e4===_0x413e83(0xf4)||_0x3c88e4==='general'||_0x3c88e4==='form')return _0x3c88e4;throw CliErrors[_0x413e83(0xfe)]('Unsupported\x20OCR\x20scene:\x20'+_0x522058+_0x413e83(0x118)+SUPPORTED_SCENES[_0x413e83(0xfb)](',\x20'));}function a140_0x5865(_0x1d7b6e,_0x4c983f){_0x1d7b6e=_0x1d7b6e-0xe7;const _0x425b2f=a140_0x425b();let _0x586592=_0x425b2f[_0x1d7b6e];return _0x586592;}function selectedInputs(_0x32b88b){const _0x4eeb3d=a140_0x421c85,_0x48aa1b=_0x32b88b[_0x4eeb3d(0x120)](_0x4eeb3d(0x10c))[_0x4eeb3d(0x11b)](),_0x2dcf6f=_0x32b88b[_0x4eeb3d(0x120)]('image-url')[_0x4eeb3d(0x11b)]();return{'imageFile':_0x48aa1b,'imageUrl':_0x2dcf6f,'count':[_0x48aa1b,_0x2dcf6f][_0x4eeb3d(0xf3)](Boolean)[_0x4eeb3d(0xf1)]};}function validateInputSelection(_0x4f4c6f){const _0x17365e=a140_0x421c85,_0x5b33af=selectedInputs(_0x4f4c6f);if(_0x5b33af[_0x17365e(0x113)]!==0x1)throw CliErrors[_0x17365e(0xfe)](_0x17365e(0xfd));return _0x5b33af;}function withScene(_0x51f120,_0x5cfd31,_0x434ea8){const _0x14986a=a140_0x421c85;return{..._0x51f120,'scene':_0x5cfd31,..._0x434ea8?{'sourceFile':{'fileName':_0x434ea8[_0x14986a(0x11a)],'filePath':_0x434ea8['filePath']}}:{}};}const ocrRecognize={'service':a140_0x421c85(0xe8),'command':a140_0x421c85(0xec),'description':a140_0x421c85(0x11e),'risk':a140_0x421c85(0xee),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3fd5ae){const _0x668afe=a140_0x421c85,_0x18321e=normalizeScene(_0x3fd5ae[_0x668afe(0x120)](_0x668afe(0x119))),_0x206a8f=SCENE_TO_LEGACY_TYPE[_0x18321e],_0x44ceab=validateInputSelection(_0x3fd5ae);if(_0x44ceab['imageUrl']){const _0x21c969=new URLSearchParams({'url':_0x44ceab[_0x668afe(0x107)],'type':_0x206a8f,'appCode':_0x3fd5ae[_0x668afe(0xe9)]});return{'method':_0x668afe(0x10e),'url':'/smartapi/ocr/recognize-text?'+_0x21c969[_0x668afe(0xea)](),'description':_0x668afe(0x100)+_0x18321e+_0x668afe(0xf8)};}const _0x3c4db5=requireDevelopmentUploadFile(_0x44ceab[_0x668afe(0xf9)],_0x668afe(0x10c));return{'method':'POST','url':_0x668afe(0xff),'body':{'steps':[{'method':_0x668afe(0x103),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x3fd5ae[_0x668afe(0xe9)],'multipart':{'file':_0x3c4db5}}},{'method':_0x668afe(0x103),'url':_0x668afe(0x111),'body':{'filePath':_0x668afe(0xef),'downloadFlag':![]}},{'method':_0x668afe(0x10e),'url':_0x668afe(0x104),'query':{'appCode':_0x3fd5ae[_0x668afe(0xe9)],'url':_0x668afe(0x102),'type':_0x206a8f}}]},'description':_0x668afe(0x122)+_0x18321e+_0x668afe(0x121)};},async 'execute'(_0x20c09f){const _0x41f49b=a140_0x421c85,_0x127499=normalizeScene(_0x20c09f[_0x41f49b(0x120)](_0x41f49b(0x119))),_0x29f253=SCENE_TO_LEGACY_TYPE[_0x127499],_0xb863a8=validateInputSelection(_0x20c09f);if(_0xb863a8[_0x41f49b(0x107)]){const _0x17cb3b=await recognizeDevelopmentOcr(_0x20c09f['appCode'],{'url':_0xb863a8[_0x41f49b(0x107)],'type':_0x29f253});return{'ok':!![],'data':withScene(_0x17cb3b,_0x127499)};}const _0x40bbd5=requireDevelopmentUploadFile(_0xb863a8['imageFile'],_0x41f49b(0x10c)),_0x3ffbf3=await uploadDevelopmentFile(_0x20c09f[_0x41f49b(0xe9)],_0x40bbd5[_0x41f49b(0xf2)]);if(!_0x3ffbf3[_0x41f49b(0x11c)])throw CliErrors[_0x41f49b(0xf5)](_0x41f49b(0x112));const _0x479c4b=await queryDevelopmentFileUrl(_0x3ffbf3[_0x41f49b(0x11c)],{'download':![]});if(!_0x479c4b[_0x41f49b(0xfc)])throw CliErrors['apiError'](_0x41f49b(0xf7));const _0x233299=await recognizeDevelopmentOcr(_0x20c09f['appCode'],{'url':_0x479c4b['fileUrl'],'type':_0x29f253});return{'ok':!![],'data':withScene(_0x233299,_0x127499,_0x3ffbf3)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a140_0x59b48b=a140_0x522d;(function(_0x13daa8,_0x169681){const _0x5c8019=a140_0x522d,_0x52ffc1=_0x13daa8();while(!![]){try{const _0x254fd8=parseInt(_0x5c8019(0x17b))/0x1*(-parseInt(_0x5c8019(0x172))/0x2)+-parseInt(_0x5c8019(0x185))/0x3*(parseInt(_0x5c8019(0x159))/0x4)+-parseInt(_0x5c8019(0x152))/0x5*(parseInt(_0x5c8019(0x17d))/0x6)+parseInt(_0x5c8019(0x16c))/0x7*(parseInt(_0x5c8019(0x160))/0x8)+-parseInt(_0x5c8019(0x151))/0x9*(-parseInt(_0x5c8019(0x15f))/0xa)+-parseInt(_0x5c8019(0x178))/0xb+parseInt(_0x5c8019(0x17f))/0xc;if(_0x254fd8===_0x169681)break;else _0x52ffc1['push'](_0x52ffc1['shift']());}catch(_0x5c16c4){_0x52ffc1['push'](_0x52ffc1['shift']());}}}(a140_0x36ac,0x2a395));function a140_0x522d(_0x430ebc,_0x5a64a0){_0x430ebc=_0x430ebc-0x14f;const _0x36ac92=a140_0x36ac();let _0x522d5a=_0x36ac92[_0x430ebc];return _0x522d5a;}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=[a140_0x59b48b(0x169),a140_0x59b48b(0x175),a140_0x59b48b(0x161),a140_0x59b48b(0x14f)],SCENE_TO_LEGACY_TYPE={'invoice':a140_0x59b48b(0x16d),'general':a140_0x59b48b(0x189),'form':a140_0x59b48b(0x15e),'idCard':'IdCard'},SCENE_FLAG={'name':a140_0x59b48b(0x16a),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a140_0x59b48b(0x181)},IMAGE_FILE_FLAG={'name':a140_0x59b48b(0x179),'type':a140_0x59b48b(0x184),'description':a140_0x59b48b(0x156)},IMAGE_URL_FLAG={'name':'image-url','type':a140_0x59b48b(0x184),'description':a140_0x59b48b(0x15a)};function normalizeScene(_0x80c8e9){const _0x15ab82=a140_0x59b48b,_0x3d635a=_0x80c8e9[_0x15ab82(0x182)]()[_0x15ab82(0x173)]();if(_0x3d635a===_0x15ab82(0x177))return _0x15ab82(0x14f);if(_0x3d635a==='invoice'||_0x3d635a===_0x15ab82(0x175)||_0x3d635a===_0x15ab82(0x161))return _0x3d635a;throw CliErrors[_0x15ab82(0x150)](_0x15ab82(0x188)+_0x80c8e9+_0x15ab82(0x16b)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x3a9e80){const _0x1bb8e1=a140_0x59b48b,_0x54729b=_0x3a9e80[_0x1bb8e1(0x180)](_0x1bb8e1(0x179))[_0x1bb8e1(0x182)](),_0x1a9aeb=_0x3a9e80[_0x1bb8e1(0x180)](_0x1bb8e1(0x15c))[_0x1bb8e1(0x182)]();return{'imageFile':_0x54729b,'imageUrl':_0x1a9aeb,'count':[_0x54729b,_0x1a9aeb][_0x1bb8e1(0x174)](Boolean)[_0x1bb8e1(0x183)]};}function validateInputSelection(_0x5a6f03){const _0x572664=a140_0x59b48b,_0x425455=selectedInputs(_0x5a6f03);if(_0x425455[_0x572664(0x16f)]!==0x1)throw CliErrors['validation'](_0x572664(0x17a));return _0x425455;}function withScene(_0x5a11ed,_0x57a4c3,_0x1b120b){const _0x7fd880=a140_0x59b48b;return{..._0x5a11ed,'scene':_0x57a4c3,..._0x1b120b?{'sourceFile':{'fileName':_0x1b120b[_0x7fd880(0x171)],'filePath':_0x1b120b[_0x7fd880(0x168)]}}:{}};}function a140_0x36ac(){const _0x305dcb=['Preview:\x20recognize\x20','fileName','2TxZUsD','toLowerCase','filter','general','toString','idcard','1893991gVXkVH','image-file','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','167644pEdrvZ','ocr','12YXcDec','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','7680kgpify','str','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','trim','length','string','723bIQdMb','/smartapi/ocr/recognize-text?','/smartapi/common/uploadFile','Unsupported\x20OCR\x20scene:\x20','General','fileUrl','idCard','validation','773622IRKBGV','21995ocECzX','imageFile','path','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','imageUrl','使用研发态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','556JcEvwQ','Publicly\x20accessible\x20image\x20or\x20file\x20URL','GET','image-url','\x20OCR','Table','40iwRMVe','8UJDave','form','read','/smartapi/common/queryFileUrl','apiError','File\x20URL\x20response\x20missing\x20fileUrl.','File\x20upload\x20response\x20missing\x20filePath.','appCode','filePath','invoice','scene','.\x20Supported\x20scenes:\x20','1474193UYIqCj','Invoice','\x20OCR\x20from\x20URL','count'];a140_0x36ac=function(){return _0x305dcb;};return a140_0x36ac();}const ocrRecognize={'service':a140_0x59b48b(0x17c),'command':'recognize','description':a140_0x59b48b(0x158),'risk':a140_0x59b48b(0x162),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x26d5a4){const _0x2c1322=a140_0x59b48b,_0x1cf0a8=normalizeScene(_0x26d5a4[_0x2c1322(0x180)](_0x2c1322(0x16a))),_0x52a919=SCENE_TO_LEGACY_TYPE[_0x1cf0a8],_0xe230cb=validateInputSelection(_0x26d5a4);if(_0xe230cb[_0x2c1322(0x157)]){const _0x1ffc24=new URLSearchParams({'url':_0xe230cb[_0x2c1322(0x157)],'type':_0x52a919,'appCode':_0x26d5a4[_0x2c1322(0x167)]});return{'method':_0x2c1322(0x15b),'url':_0x2c1322(0x186)+_0x1ffc24[_0x2c1322(0x176)](),'description':_0x2c1322(0x170)+_0x1cf0a8+_0x2c1322(0x16e)};}const _0x7e2628=requireDevelopmentUploadFile(_0xe230cb[_0x2c1322(0x153)],_0x2c1322(0x179));return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':_0x2c1322(0x187),'body':{'appCode':_0x26d5a4[_0x2c1322(0x167)],'multipart':{'file':_0x7e2628}}},{'method':'POST','url':_0x2c1322(0x163),'body':{'filePath':'<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','downloadFlag':![]}},{'method':'GET','url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x26d5a4[_0x2c1322(0x167)],'url':_0x2c1322(0x17e),'type':_0x52a919}}]},'description':_0x2c1322(0x155)+_0x1cf0a8+_0x2c1322(0x15d)};},async 'execute'(_0x5c874f){const _0x386288=a140_0x59b48b,_0x405c35=normalizeScene(_0x5c874f[_0x386288(0x180)](_0x386288(0x16a))),_0x5d1562=SCENE_TO_LEGACY_TYPE[_0x405c35],_0x4e0170=validateInputSelection(_0x5c874f);if(_0x4e0170[_0x386288(0x157)]){const _0x15fa47=await recognizeDevelopmentOcr(_0x5c874f[_0x386288(0x167)],{'url':_0x4e0170[_0x386288(0x157)],'type':_0x5d1562});return{'ok':!![],'data':withScene(_0x15fa47,_0x405c35)};}const _0x53de16=requireDevelopmentUploadFile(_0x4e0170['imageFile'],'image-file'),_0x4a371d=await uploadDevelopmentFile(_0x5c874f['appCode'],_0x53de16[_0x386288(0x154)]);if(!_0x4a371d[_0x386288(0x168)])throw CliErrors[_0x386288(0x164)](_0x386288(0x166));const _0x4827ec=await queryDevelopmentFileUrl(_0x4a371d[_0x386288(0x168)],{'download':![]});if(!_0x4827ec[_0x386288(0x18a)])throw CliErrors[_0x386288(0x164)](_0x386288(0x165));const _0x3a502a=await recognizeDevelopmentOcr(_0x5c874f['appCode'],{'url':_0x4827ec[_0x386288(0x18a)],'type':_0x5d1562});return{'ok':!![],'data':withScene(_0x3a502a,_0x405c35,_0x4a371d)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a141_0x37dedf=a141_0x17e3;(function(_0x2b7eae,_0x4332b3){const _0xe9b3e8=a141_0x17e3,_0x222459=_0x2b7eae();while(!![]){try{const _0x4200be=parseInt(_0xe9b3e8(0xcf))/0x1*(-parseInt(_0xe9b3e8(0xcc))/0x2)+-parseInt(_0xe9b3e8(0xa8))/0x3*(-parseInt(_0xe9b3e8(0xb0))/0x4)+-parseInt(_0xe9b3e8(0xbf))/0x5+-parseInt(_0xe9b3e8(0xc5))/0x6+parseInt(_0xe9b3e8(0xb8))/0x7+parseInt(_0xe9b3e8(0xca))/0x8+parseInt(_0xe9b3e8(0xae))/0x9;if(_0x4200be===_0x4332b3)break;else _0x222459['push'](_0x222459['shift']());}catch(_0x1c26bc){_0x222459['push'](_0x222459['shift']());}}}(a141_0x57de,0x88de9));function a141_0x57de(){const _0x4d39dd=['dataset','boolean','5746182jKOsEa','generate-start','source','page','progressRate','6190392xBPcIa','code','1054YWFPhs','number','allowGenerate','616OGeqCV','apply','clientOperationId','dryRun','SUCCESS','6SfaFls','fieldCount','/smartapi/lovrabet/dataset/','nextAction','related-pages-fallback','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','4087926GeCfIk','status','690020hQvXoT','standardPageStatus','alias','string','precheck','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','PARTIAL_SUCCESS','operationId','3592169JKaQMC','bool','POST','/generate-standard-pages/start','Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','复用已有生成任务','manualResolutionRequired','1216220VPDnsc','已提交生成任务','appCode','reused'];a141_0x57de=function(){return _0x4d39dd;};return a141_0x57de();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateStandardPages}from'../../core/api-client.js';function a141_0x17e3(_0x266f11,_0x4d68f6){_0x266f11=_0x266f11-0xa6;const _0x57decb=a141_0x57de();let _0x17e369=_0x57decb[_0x266f11];return _0x17e369;}export const pageGenerateStart={'service':a141_0x37dedf(0xc8),'command':'generate-start','description':a141_0x37dedf(0xbc),'risk':'write','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a141_0x37dedf(0xb2),'type':a141_0x37dedf(0xb3),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a141_0x37dedf(0xd0),'type':a141_0x37dedf(0xc4),'description':a141_0x37dedf(0xad)}],async 'validate'(_0x19668e){validateDatasetSelector(_0x19668e);},async 'dryRun'(_0x3678b1){const _0x433d67=a141_0x37dedf,_0x2f1661=await prepare(_0x3678b1);return{'method':_0x433d67(0xba),'url':_0x433d67(0xaa)+_0x2f1661[_0x433d67(0xc3)][_0x433d67(0xcb)]+_0x433d67(0xbb),'body':{'appCode':_0x3678b1[_0x433d67(0xc1)],'clientOperationId':_0x2f1661[_0x433d67(0xd1)]},'description':serializeDryRunDescription({'dataset':{'id':_0x2f1661[_0x433d67(0xc3)]['id'],'code':_0x2f1661[_0x433d67(0xc3)][_0x433d67(0xcb)],'name':_0x2f1661[_0x433d67(0xc3)]['name'],'fieldCount':_0x2f1661[_0x433d67(0xc3)][_0x433d67(0xa9)]},'precheckSource':_0x2f1661[_0x433d67(0xb1)]?.[_0x433d67(0xc7)]??_0x433d67(0xac),'action':_0x433d67(0xc6),'clientOperationId':_0x2f1661[_0x433d67(0xd1)],'plannedStatus':_0x2f1661[_0x433d67(0xb4)]['status'],'reason':_0x2f1661[_0x433d67(0xb4)]['message']})};},async 'execute'(_0x2b84e9){const _0x258764=a141_0x37dedf;if(!_0x2b84e9[_0x258764(0xb9)]('apply')){const _0x21ccdb=await pageGenerateStart[_0x258764(0xa6)](_0x2b84e9);return{'ok':!![],'message':_0x258764(0xb5),'data':_0x21ccdb};}const _0x26c1fc=await prepare(_0x2b84e9);if(!_0x26c1fc[_0x258764(0xb4)][_0x258764(0xce)])return{'ok':![],'message':_0x26c1fc[_0x258764(0xb4)]['message'],'data':{'datasetCode':_0x26c1fc[_0x258764(0xc3)]['code'],'clientOperationId':_0x26c1fc[_0x258764(0xd1)],'precheckSource':_0x26c1fc[_0x258764(0xb1)]?.[_0x258764(0xc7)]??_0x258764(0xac),'status':_0x26c1fc['precheck']['status'],'manualResolutionRequired':_0x26c1fc['precheck']['manualResolutionRequired'],'nextAction':_0x26c1fc[_0x258764(0xb4)][_0x258764(0xab)],'query':{'command':buildStandardPageStatusQueryCommand(_0x26c1fc[_0x258764(0xc3)][_0x258764(0xcb)],_0x2b84e9[_0x258764(0xc1)])},'standardPageStatus':_0x26c1fc[_0x258764(0xb1)]}};const _0x4bfdf4=await startGenerateStandardPages(_0x2b84e9[_0x258764(0xc1)],_0x26c1fc['dataset'][_0x258764(0xcb)],{'clientOperationId':_0x26c1fc[_0x258764(0xd1)]}),_0x3b15ff=_0x4bfdf4[_0x258764(0xaf)]===_0x258764(0xa7)||_0x4bfdf4['status']===_0x258764(0xb6)?await loadStandardPageStatusForGenerate(_0x2b84e9,_0x26c1fc[_0x258764(0xc3)][_0x258764(0xcb)]):null,_0x175cfd=assessGenerateOperationState(_0x26c1fc['dataset'][_0x258764(0xcb)],_0x4bfdf4[_0x258764(0xaf)],_0x3b15ff);return{'ok':!![],'message':_0x4bfdf4[_0x258764(0xc2)]?_0x258764(0xbd):_0x258764(0xc0),'data':{'datasetCode':_0x26c1fc['dataset'][_0x258764(0xcb)],'appCode':_0x2b84e9[_0x258764(0xc1)],'taskId':_0x4bfdf4['taskId']??null,'operationId':_0x4bfdf4['operationId']??null,'clientOperationId':_0x26c1fc[_0x258764(0xd1)],'jobStatus':_0x4bfdf4['status']??null,'progressRate':typeof _0x4bfdf4[_0x258764(0xc9)]===_0x258764(0xcd)?_0x4bfdf4['progressRate']:null,'currentStep':_0x4bfdf4['currentStep']??null,'reused':_0x4bfdf4['reused']===!![],'status':_0x175cfd[_0x258764(0xaf)],'manualResolutionRequired':_0x175cfd[_0x258764(0xbe)],'nextAction':_0x175cfd[_0x258764(0xab)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x26c1fc[_0x258764(0xc3)][_0x258764(0xcb)],{'appCode':_0x2b84e9['appCode'],'taskId':_0x4bfdf4['taskId'],'operationId':_0x4bfdf4[_0x258764(0xb7)],'clientOperationId':_0x26c1fc['clientOperationId']})},'standardPageStatus':_0x3b15ff}};}};async function prepare(_0x1a0b4e){const _0x2bfb85=a141_0x37dedf,_0x59588b=await loadDatasetDetailForPage(_0x1a0b4e),_0x2a5cf9=await loadStandardPageStatusForGenerate(_0x1a0b4e,_0x59588b[_0x2bfb85(0xcb)]),_0x156454=getUndeletedRelatedPages(_0x59588b);return{'dataset':_0x59588b,'standardPageStatus':_0x2a5cf9,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x59588b[_0x2bfb85(0xcb)],_0x2a5cf9,{'fallbackUndeletedPages':_0x156454})};}
1
+ const a141_0x448553=a141_0x3626;(function(_0x50a631,_0x34215c){const _0x535582=a141_0x3626,_0x3d26d9=_0x50a631();while(!![]){try{const _0x26dfe0=parseInt(_0x535582(0x1c8))/0x1+-parseInt(_0x535582(0x1ce))/0x2*(-parseInt(_0x535582(0x1d1))/0x3)+parseInt(_0x535582(0x1d2))/0x4+parseInt(_0x535582(0x1df))/0x5+parseInt(_0x535582(0x1d3))/0x6*(-parseInt(_0x535582(0x1dc))/0x7)+-parseInt(_0x535582(0x1c7))/0x8+-parseInt(_0x535582(0x1bb))/0x9;if(_0x26dfe0===_0x34215c)break;else _0x3d26d9['push'](_0x3d26d9['shift']());}catch(_0x24f914){_0x3d26d9['push'](_0x3d26d9['shift']());}}}(a141_0x25e8,0x87e93));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateStandardPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a141_0x448553(0x1d4),'command':a141_0x448553(0x1c1),'description':'Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a141_0x448553(0x1c0),'defaultOutputFormat':a141_0x448553(0x1c6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a141_0x448553(0x1ca),'type':'string','description':a141_0x448553(0x1c9)},{'name':'apply','type':'boolean','description':a141_0x448553(0x1da)}],async 'validate'(_0x3bb9b5){validateDatasetSelector(_0x3bb9b5);},async 'dryRun'(_0x30bb66){const _0x3ed1f4=a141_0x448553,_0x480171=await prepare(_0x30bb66);return{'method':_0x3ed1f4(0x1b8),'url':'/smartapi/lovrabet/dataset/'+_0x480171['dataset']['code']+_0x3ed1f4(0x1bc),'body':{'appCode':_0x30bb66['appCode'],'clientOperationId':_0x480171[_0x3ed1f4(0x1d6)]},'description':serializeDryRunDescription({'dataset':{'id':_0x480171[_0x3ed1f4(0x1d9)]['id'],'code':_0x480171[_0x3ed1f4(0x1d9)][_0x3ed1f4(0x1de)],'name':_0x480171['dataset'][_0x3ed1f4(0x1cc)],'fieldCount':_0x480171['dataset'][_0x3ed1f4(0x1be)]},'precheckSource':_0x480171[_0x3ed1f4(0x1db)]?.['source']??'related-pages-fallback','action':_0x3ed1f4(0x1c1),'clientOperationId':_0x480171['clientOperationId'],'plannedStatus':_0x480171[_0x3ed1f4(0x1bf)][_0x3ed1f4(0x1b9)],'reason':_0x480171[_0x3ed1f4(0x1bf)][_0x3ed1f4(0x1cb)]})};},async 'execute'(_0x30ab9e){const _0xe88892=a141_0x448553;if(!_0x30ab9e[_0xe88892(0x1c2)](_0xe88892(0x1d0))){const _0x416feb=await pageGenerateStart['dryRun'](_0x30ab9e);return{'ok':!![],'message':_0xe88892(0x1d5),'data':_0x416feb};}const _0x25b9f0=await prepare(_0x30ab9e);if(!_0x25b9f0[_0xe88892(0x1bf)]['allowGenerate'])return{'ok':![],'message':_0x25b9f0[_0xe88892(0x1bf)][_0xe88892(0x1cb)],'data':{'datasetCode':_0x25b9f0[_0xe88892(0x1d9)][_0xe88892(0x1de)],'clientOperationId':_0x25b9f0['clientOperationId'],'precheckSource':_0x25b9f0[_0xe88892(0x1db)]?.[_0xe88892(0x1c5)]??_0xe88892(0x1dd),'status':_0x25b9f0[_0xe88892(0x1bf)][_0xe88892(0x1b9)],'manualResolutionRequired':_0x25b9f0[_0xe88892(0x1bf)][_0xe88892(0x1c4)],'nextAction':_0x25b9f0['precheck'][_0xe88892(0x1cd)],'query':{'command':buildStandardPageStatusQueryCommand(_0x25b9f0['dataset'][_0xe88892(0x1de)],_0x30ab9e['appCode'])},'standardPageStatus':_0x25b9f0[_0xe88892(0x1db)]}};const _0x44c4ce=await startGenerateStandardPages(_0x30ab9e[_0xe88892(0x1d7)],_0x25b9f0['dataset'][_0xe88892(0x1de)],{'clientOperationId':_0x25b9f0[_0xe88892(0x1d6)]}),_0x56f9fa=_0x44c4ce[_0xe88892(0x1b9)]==='SUCCESS'||_0x44c4ce[_0xe88892(0x1b9)]===_0xe88892(0x1c3)?await loadStandardPageStatusForGenerate(_0x30ab9e,_0x25b9f0[_0xe88892(0x1d9)][_0xe88892(0x1de)]):null,_0x356cbe=assessGenerateOperationState(_0x25b9f0[_0xe88892(0x1d9)][_0xe88892(0x1de)],_0x44c4ce['status'],_0x56f9fa);return{'ok':!![],'message':_0x44c4ce[_0xe88892(0x1ba)]?'复用已有生成任务':_0xe88892(0x1bd),'data':{'datasetCode':_0x25b9f0[_0xe88892(0x1d9)][_0xe88892(0x1de)],'appCode':_0x30ab9e[_0xe88892(0x1d7)],'taskId':_0x44c4ce['taskId']??null,'operationId':_0x44c4ce[_0xe88892(0x1e0)]??null,'clientOperationId':_0x25b9f0[_0xe88892(0x1d6)],'jobStatus':_0x44c4ce[_0xe88892(0x1b9)]??null,'progressRate':typeof _0x44c4ce[_0xe88892(0x1cf)]==='number'?_0x44c4ce[_0xe88892(0x1cf)]:null,'currentStep':_0x44c4ce[_0xe88892(0x1d8)]??null,'reused':_0x44c4ce[_0xe88892(0x1ba)]===!![],'status':_0x356cbe[_0xe88892(0x1b9)],'manualResolutionRequired':_0x356cbe[_0xe88892(0x1c4)],'nextAction':_0x356cbe['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x25b9f0[_0xe88892(0x1d9)]['code'],{'appCode':_0x30ab9e[_0xe88892(0x1d7)],'taskId':_0x44c4ce['taskId'],'operationId':_0x44c4ce[_0xe88892(0x1e0)],'clientOperationId':_0x25b9f0[_0xe88892(0x1d6)]})},'standardPageStatus':_0x56f9fa}};}};function a141_0x3626(_0x35c619,_0x4aab5d){_0x35c619=_0x35c619-0x1b8;const _0x25e810=a141_0x25e8();let _0x362602=_0x25e810[_0x35c619];return _0x362602;}async function prepare(_0xa41f6a){const _0x3bf178=a141_0x448553,_0x41a0c8=await loadDatasetDetailForPage(_0xa41f6a),_0x4fbc11=await loadStandardPageStatusForGenerate(_0xa41f6a,_0x41a0c8[_0x3bf178(0x1de)]),_0x2e177d=getUndeletedRelatedPages(_0x41a0c8);return{'dataset':_0x41a0c8,'standardPageStatus':_0x4fbc11,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x41a0c8[_0x3bf178(0x1de)],_0x4fbc11,{'fallbackUndeletedPages':_0x2e177d})};}function a141_0x25e8(){const _0x20b1a5=['1717028BZxhCU','3755034viLDey','page','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','appCode','currentStep','dataset','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','standardPageStatus','7Gmvhpb','related-pages-fallback','code','2851170hNjLJx','operationId','POST','status','reused','1234926VGEKlg','/generate-standard-pages/start','已提交生成任务','fieldCount','precheck','write','generate-start','bool','PARTIAL_SUCCESS','manualResolutionRequired','source','compress','4456432IxjPkl','785327OeJMgl','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','alias','message','name','nextAction','5110oTGJhf','progressRate','apply','108yDUHUS'];a141_0x25e8=function(){return _0x20b1a5;};return a141_0x25e8();}
@@ -1 +1 @@
1
- function a142_0x5cd1(_0x25f7e1,_0x21b006){_0x25f7e1=_0x25f7e1-0xed;const _0x4e198e=a142_0x4e19();let _0x5cd11f=_0x4e198e[_0x25f7e1];return _0x5cd11f;}const a142_0x1f7c1e=a142_0x5cd1;(function(_0xacdff0,_0x4afc0b){const _0x529f70=a142_0x5cd1,_0x52c671=_0xacdff0();while(!![]){try{const _0x1797f7=parseInt(_0x529f70(0x114))/0x1+parseInt(_0x529f70(0x105))/0x2*(-parseInt(_0x529f70(0x111))/0x3)+parseInt(_0x529f70(0xfd))/0x4*(parseInt(_0x529f70(0xfa))/0x5)+-parseInt(_0x529f70(0xf1))/0x6+parseInt(_0x529f70(0x107))/0x7+-parseInt(_0x529f70(0x118))/0x8*(-parseInt(_0x529f70(0xef))/0x9)+parseInt(_0x529f70(0xfe))/0xa;if(_0x1797f7===_0x4afc0b)break;else _0x52c671['push'](_0x52c671['shift']());}catch(_0x33747c){_0x52c671['push'](_0x52c671['shift']());}}}(a142_0x4e19,0x785a3));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a142_0x4e19(){const _0x2a519f=['number','14539kOjuWe','/generate-standard-pages/status?','Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','nextAction','PARTIAL_SUCCESS','set','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','code','appCode','currentStep','6wcqzzO','taskId','GET','158620njqMue','str','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','errorMsg','224LmyQLg','/smartapi/lovrabet/dataset/','clientOperationId','170334NvuSOM','toString','3140898aNFKKg','string','name','operation-id','operationId','generate-status','SUCCESS','client-operation-id','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','165305cdXNXY','read','manualResolutionRequired','44RUtUAo','5144900oAajkQ','result','progressRate','status','task-id','message','query-generate-operation-status','552340NPJjFg'];a142_0x4e19=function(){return _0x2a519f;};return a142_0x4e19();}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateStandardPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':'page','command':a142_0x1f7c1e(0xf6),'description':a142_0x1f7c1e(0x109),'risk':a142_0x1f7c1e(0xfb),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a142_0x1f7c1e(0xf2),'description':a142_0x1f7c1e(0x116)},{'name':'task-id','type':a142_0x1f7c1e(0xf2),'description':a142_0x1f7c1e(0xf9)},{'name':'operation-id','type':a142_0x1f7c1e(0xf2),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a142_0x1f7c1e(0xf8),'type':a142_0x1f7c1e(0xf2),'description':a142_0x1f7c1e(0x10d)}],async 'validate'(_0x1bb3c4){validateDatasetSelector(_0x1bb3c4),validateGenerateOperationSelector(_0x1bb3c4);},async 'dryRun'(_0xdcd74c){const _0x1ac13b=a142_0x1f7c1e,_0x5c353d=await loadDatasetDetailForPage(_0xdcd74c),_0x5d95c8=_0xdcd74c[_0x1ac13b(0x115)](_0x1ac13b(0x102)),_0x2c32cf=_0xdcd74c[_0x1ac13b(0x115)](_0x1ac13b(0xf4)),_0x57473d=_0xdcd74c[_0x1ac13b(0x115)](_0x1ac13b(0xf8)),_0x116cdf=new URLSearchParams({'appCode':_0xdcd74c[_0x1ac13b(0x10f)]});return _0x5d95c8&&_0x116cdf[_0x1ac13b(0x10c)](_0x1ac13b(0x112),_0x5d95c8),_0x2c32cf&&_0x116cdf[_0x1ac13b(0x10c)](_0x1ac13b(0xf5),_0x2c32cf),_0x57473d&&_0x116cdf['set'](_0x1ac13b(0xee),_0x57473d),{'method':_0x1ac13b(0x113),'url':_0x1ac13b(0xed)+_0x5c353d['code']+_0x1ac13b(0x108)+_0x116cdf[_0x1ac13b(0xf0)](),'description':serializeDryRunDescription({'dataset':{'id':_0x5c353d['id'],'code':_0x5c353d[_0x1ac13b(0x10e)],'name':_0x5c353d[_0x1ac13b(0xf3)]},'action':_0x1ac13b(0x104),'taskId':_0x5d95c8||undefined,'operationId':_0x2c32cf||undefined,'clientOperationId':_0x57473d||undefined})};},async 'execute'(_0x5840e1){const _0xbd6e77=a142_0x1f7c1e,_0x598ba9=await loadDatasetDetailForPage(_0x5840e1),_0x2bc95d=_0x5840e1[_0xbd6e77(0x115)]('task-id'),_0x4e6c2e=_0x5840e1[_0xbd6e77(0x115)]('operation-id'),_0xca6923=_0x5840e1['str'](_0xbd6e77(0xf8)),_0x3fce35=await getGenerateStandardPagesStatus(_0x5840e1['appCode'],_0x598ba9[_0xbd6e77(0x10e)],{'taskId':_0x2bc95d||undefined,'operationId':_0x4e6c2e||undefined,'clientOperationId':_0xca6923||undefined}),_0x48b52d=_0x3fce35[_0xbd6e77(0x101)]===_0xbd6e77(0xf7)||_0x3fce35[_0xbd6e77(0x101)]===_0xbd6e77(0x10b),_0x126432=_0x48b52d?await loadStandardPageStatusForGenerate(_0x5840e1,_0x598ba9[_0xbd6e77(0x10e)]):null,_0x16a9b8=assessGenerateOperationState(_0x598ba9['code'],_0x3fce35['status'],_0x126432),_0x4ca7ad=_0x3fce35[_0xbd6e77(0x112)]??_0x2bc95d??undefined,_0x4aef3d=_0x3fce35[_0xbd6e77(0xf5)]??_0x4e6c2e??undefined,_0x1af712=_0x3fce35[_0xbd6e77(0xee)]??_0xca6923??undefined;return{'ok':!![],'message':_0x16a9b8['status']==='operation_failed'?_0x3fce35[_0xbd6e77(0x117)]||_0x16a9b8[_0xbd6e77(0x103)]:_0x16a9b8[_0xbd6e77(0x103)],'data':{'datasetCode':_0x598ba9['code'],'appCode':_0x5840e1[_0xbd6e77(0x10f)],'taskId':_0x4ca7ad,'operationId':_0x4aef3d,'clientOperationId':_0x1af712,'jobStatus':_0x3fce35['status']??null,'progressRate':typeof _0x3fce35[_0xbd6e77(0x100)]===_0xbd6e77(0x106)?_0x3fce35[_0xbd6e77(0x100)]:null,'currentStep':_0x3fce35[_0xbd6e77(0x110)]??null,'errorMsg':_0x3fce35[_0xbd6e77(0x117)]??null,'status':_0x16a9b8['status'],'manualResolutionRequired':_0x16a9b8[_0xbd6e77(0xfc)],'nextAction':_0x16a9b8[_0xbd6e77(0x10a)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x598ba9['code'],{'appCode':_0x5840e1['appCode'],'taskId':_0x4ca7ad,'operationId':_0x4aef3d,'clientOperationId':_0x1af712})},'standardPageStatus':_0x126432,'result':_0x3fce35[_0xbd6e77(0xff)]??null}};}};
1
+ const a142_0x49172f=a142_0x1c37;(function(_0xb89f71,_0x3a320c){const _0x2d68f4=a142_0x1c37,_0x150bf6=_0xb89f71();while(!![]){try{const _0x4dded8=parseInt(_0x2d68f4(0x1a3))/0x1*(-parseInt(_0x2d68f4(0x1a6))/0x2)+parseInt(_0x2d68f4(0x18d))/0x3*(parseInt(_0x2d68f4(0x18a))/0x4)+-parseInt(_0x2d68f4(0x18b))/0x5*(parseInt(_0x2d68f4(0x186))/0x6)+parseInt(_0x2d68f4(0x19f))/0x7+parseInt(_0x2d68f4(0x190))/0x8+-parseInt(_0x2d68f4(0x195))/0x9*(-parseInt(_0x2d68f4(0x19a))/0xa)+-parseInt(_0x2d68f4(0x19b))/0xb*(parseInt(_0x2d68f4(0x18c))/0xc);if(_0x4dded8===_0x3a320c)break;else _0x150bf6['push'](_0x150bf6['shift']());}catch(_0x400798){_0x150bf6['push'](_0x150bf6['shift']());}}}(a142_0x1fb6,0xa18dd));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';function a142_0x1c37(_0x1ff4e4,_0xdf2092){_0x1ff4e4=_0x1ff4e4-0x182;const _0x1fb6a4=a142_0x1fb6();let _0x1c3764=_0x1fb6a4[_0x1ff4e4];return _0x1c3764;}function a142_0x1fb6(){const _0x60a4e3=['result','str','1461584MzjTMF','name','/generate-standard-pages/status?','errorMsg','manualResolutionRequired','10241397GXnhAw','set','code','/smartapi/lovrabet/dataset/','operationId','10KaokPh','258654bwviFk','operation_failed','client-operation-id','query-generate-operation-status','5829992zPbEQs','compress','taskId','toString','2UwGIQc','appCode','number','779582pbfrws','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','operation-id','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','message','status','GET','task-id','Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','clientOperationId','read','progressRate','116106gMAKUR','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','currentStep','string','8uFHMnD','30tRONkI','852rkaeBv','1610130cHmJcM'];a142_0x1fb6=function(){return _0x60a4e3;};return a142_0x1fb6();}import{getGenerateStandardPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':'page','command':'generate-status','description':a142_0x49172f(0x182),'risk':a142_0x49172f(0x184),'defaultOutputFormat':a142_0x49172f(0x1a0),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a142_0x49172f(0x189),'description':a142_0x49172f(0x1aa)},{'name':'task-id','type':a142_0x49172f(0x189),'description':a142_0x49172f(0x187)},{'name':a142_0x49172f(0x1a9),'type':a142_0x49172f(0x189),'description':a142_0x49172f(0x1a8)},{'name':a142_0x49172f(0x19d),'type':a142_0x49172f(0x189),'description':a142_0x49172f(0x1a7)}],async 'validate'(_0x59373e){validateDatasetSelector(_0x59373e),validateGenerateOperationSelector(_0x59373e);},async 'dryRun'(_0x1616e8){const _0x36bd8b=a142_0x49172f,_0xe10e7c=await loadDatasetDetailForPage(_0x1616e8),_0x515032=_0x1616e8[_0x36bd8b(0x18f)]('task-id'),_0x164df1=_0x1616e8[_0x36bd8b(0x18f)]('operation-id'),_0xfe0845=_0x1616e8['str'](_0x36bd8b(0x19d)),_0x3f7d6b=new URLSearchParams({'appCode':_0x1616e8['appCode']});return _0x515032&&_0x3f7d6b[_0x36bd8b(0x196)](_0x36bd8b(0x1a1),_0x515032),_0x164df1&&_0x3f7d6b[_0x36bd8b(0x196)](_0x36bd8b(0x199),_0x164df1),_0xfe0845&&_0x3f7d6b[_0x36bd8b(0x196)]('clientOperationId',_0xfe0845),{'method':_0x36bd8b(0x1ad),'url':_0x36bd8b(0x198)+_0xe10e7c[_0x36bd8b(0x197)]+_0x36bd8b(0x192)+_0x3f7d6b[_0x36bd8b(0x1a2)](),'description':serializeDryRunDescription({'dataset':{'id':_0xe10e7c['id'],'code':_0xe10e7c[_0x36bd8b(0x197)],'name':_0xe10e7c[_0x36bd8b(0x191)]},'action':_0x36bd8b(0x19e),'taskId':_0x515032||undefined,'operationId':_0x164df1||undefined,'clientOperationId':_0xfe0845||undefined})};},async 'execute'(_0x5791cc){const _0x4fe4bd=a142_0x49172f,_0x1ab4c5=await loadDatasetDetailForPage(_0x5791cc),_0x4a249e=_0x5791cc[_0x4fe4bd(0x18f)](_0x4fe4bd(0x1ae)),_0x55d274=_0x5791cc[_0x4fe4bd(0x18f)]('operation-id'),_0x254772=_0x5791cc[_0x4fe4bd(0x18f)](_0x4fe4bd(0x19d)),_0x1b82b1=await getGenerateStandardPagesStatus(_0x5791cc[_0x4fe4bd(0x1a4)],_0x1ab4c5[_0x4fe4bd(0x197)],{'taskId':_0x4a249e||undefined,'operationId':_0x55d274||undefined,'clientOperationId':_0x254772||undefined}),_0x1a54e8=_0x1b82b1[_0x4fe4bd(0x1ac)]==='SUCCESS'||_0x1b82b1[_0x4fe4bd(0x1ac)]==='PARTIAL_SUCCESS',_0x1fccab=_0x1a54e8?await loadStandardPageStatusForGenerate(_0x5791cc,_0x1ab4c5[_0x4fe4bd(0x197)]):null,_0x464d40=assessGenerateOperationState(_0x1ab4c5['code'],_0x1b82b1[_0x4fe4bd(0x1ac)],_0x1fccab),_0x3af4d2=_0x1b82b1[_0x4fe4bd(0x1a1)]??_0x4a249e??undefined,_0x4e1b2a=_0x1b82b1['operationId']??_0x55d274??undefined,_0x536112=_0x1b82b1[_0x4fe4bd(0x183)]??_0x254772??undefined;return{'ok':!![],'message':_0x464d40[_0x4fe4bd(0x1ac)]===_0x4fe4bd(0x19c)?_0x1b82b1[_0x4fe4bd(0x193)]||_0x464d40[_0x4fe4bd(0x1ab)]:_0x464d40[_0x4fe4bd(0x1ab)],'data':{'datasetCode':_0x1ab4c5['code'],'appCode':_0x5791cc[_0x4fe4bd(0x1a4)],'taskId':_0x3af4d2,'operationId':_0x4e1b2a,'clientOperationId':_0x536112,'jobStatus':_0x1b82b1[_0x4fe4bd(0x1ac)]??null,'progressRate':typeof _0x1b82b1[_0x4fe4bd(0x185)]===_0x4fe4bd(0x1a5)?_0x1b82b1['progressRate']:null,'currentStep':_0x1b82b1[_0x4fe4bd(0x188)]??null,'errorMsg':_0x1b82b1[_0x4fe4bd(0x193)]??null,'status':_0x464d40[_0x4fe4bd(0x1ac)],'manualResolutionRequired':_0x464d40[_0x4fe4bd(0x194)],'nextAction':_0x464d40['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1ab4c5[_0x4fe4bd(0x197)],{'appCode':_0x5791cc[_0x4fe4bd(0x1a4)],'taskId':_0x3af4d2,'operationId':_0x4e1b2a,'clientOperationId':_0x536112})},'standardPageStatus':_0x1fccab,'result':_0x1b82b1[_0x4fe4bd(0x18e)]??null}};}};
@@ -1 +1 @@
1
- (function(_0x557a88,_0x57cc65){const _0x42c496=a143_0x166a,_0x18db9f=_0x557a88();while(!![]){try{const _0x26d214=-parseInt(_0x42c496(0x14f))/0x1+parseInt(_0x42c496(0x150))/0x2+-parseInt(_0x42c496(0x14e))/0x3+-parseInt(_0x42c496(0x152))/0x4+-parseInt(_0x42c496(0x14b))/0x5+-parseInt(_0x42c496(0x151))/0x6*(parseInt(_0x42c496(0x14a))/0x7)+-parseInt(_0x42c496(0x14c))/0x8*(-parseInt(_0x42c496(0x14d))/0x9);if(_0x26d214===_0x57cc65)break;else _0x18db9f['push'](_0x18db9f['shift']());}catch(_0x3402b9){_0x18db9f['push'](_0x18db9f['shift']());}}}(a143_0x4256,0x960ed));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageReactCreate}from'../../commands/page/react/create.js';function a143_0x4256(){const _0x4a0b52=['6ZaNjVd','855120nlDUss','6287813ULnvum','503925XpZxcm','472cKMbut','473193HAWfSl','2444628VPTJrR','727441HwbEyF','535470vydHnv'];a143_0x4256=function(){return _0x4a0b52;};return a143_0x4256();}import{pageReactDetail}from'../../commands/page/react/detail.js';function a143_0x166a(_0x2d652f,_0x47e0d1){_0x2d652f=_0x2d652f-0x14a;const _0x4256a8=a143_0x4256();let _0x166a33=_0x4256a8[_0x2d652f];return _0x166a33;}import{pageReactList}from'../../commands/page/react/list.js';import{pageReactPublish}from'../../commands/page/react/publish.js';import{pageReactUpdate}from'../../commands/page/react/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageReactCreate,pageReactList,pageReactDetail,pageReactPublish,pageReactUpdate];
1
+ function a143_0x1d97(){const _0x2cced0=['10851358EVhRRM','475218oyKOZf','6852304owZuVZ','28273368ekqfUJ','6yoymKU','3995586MAjikd','110151YgDQII','4080115SbZaFj'];a143_0x1d97=function(){return _0x2cced0;};return a143_0x1d97();}(function(_0x1f655e,_0x2a9b77){const _0x227375=a143_0x428f,_0xa1c011=_0x1f655e();while(!![]){try{const _0xe6b813=-parseInt(_0x227375(0x177))/0x1+parseInt(_0x227375(0x172))/0x2+parseInt(_0x227375(0x176))/0x3+-parseInt(_0x227375(0x173))/0x4+-parseInt(_0x227375(0x178))/0x5+parseInt(_0x227375(0x175))/0x6*(-parseInt(_0x227375(0x179))/0x7)+parseInt(_0x227375(0x174))/0x8;if(_0xe6b813===_0x2a9b77)break;else _0xa1c011['push'](_0xa1c011['shift']());}catch(_0x59d1fd){_0xa1c011['push'](_0xa1c011['shift']());}}}(a143_0x1d97,0xdf316));import{pageGenerateStart}from'../../commands/page/generate-start.js';function a143_0x428f(_0x5f5562,_0x205627){_0x5f5562=_0x5f5562-0x172;const _0x1d97d1=a143_0x1d97();let _0x428f63=_0x1d97d1[_0x5f5562];return _0x428f63;}import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageReactCreate}from'../../commands/page/react/create.js';import{pageReactDetail}from'../../commands/page/react/detail.js';import{pageReactList}from'../../commands/page/react/list.js';import{pageReactPublish}from'../../commands/page/react/publish.js';import{pageReactUpdate}from'../../commands/page/react/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageReactCreate,pageReactList,pageReactDetail,pageReactPublish,pageReactUpdate];
@@ -1 +1 @@
1
- const a144_0xb979c=a144_0x1ebb;(function(_0x276d83,_0x29188e){const _0x203761=a144_0x1ebb,_0x21b77b=_0x276d83();while(!![]){try{const _0xc5ca13=parseInt(_0x203761(0x18f))/0x1+parseInt(_0x203761(0x191))/0x2*(-parseInt(_0x203761(0x16c))/0x3)+parseInt(_0x203761(0x18b))/0x4+-parseInt(_0x203761(0x1a4))/0x5*(parseInt(_0x203761(0x17c))/0x6)+-parseInt(_0x203761(0x171))/0x7*(parseInt(_0x203761(0x16a))/0x8)+parseInt(_0x203761(0x180))/0x9*(parseInt(_0x203761(0x198))/0xa)+-parseInt(_0x203761(0x169))/0xb*(-parseInt(_0x203761(0x1a6))/0xc);if(_0xc5ca13===_0x29188e)break;else _0x21b77b['push'](_0x21b77b['shift']());}catch(_0xc57943){_0x21b77b['push'](_0x21b77b['shift']());}}}(a144_0x1f1e,0xd24b7));function a144_0x1ebb(_0x3bbd90,_0x4a3e92){_0x3bbd90=_0x3bbd90-0x169;const _0x1f1e72=a144_0x1f1e();let _0x1ebb92=_0x1f1e72[_0x3bbd90];return _0x1ebb92;}function a144_0x1f1e(){const _0x45ef99=['Page\x20ID','detail','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','type','2712132mJtYqV','length','filter','batch','65450oyqFzz','relatedPages','80CcaqSp','GET','would_pull','拉取完成:\x20','force','alias','str','476350FnVzbU','version-tag','map','boolean','\x20pulled,\x20','pages','push','single','lastSync','utf8','Dataset\x20\x22','versionTag','4272725wEnogo','compress','1464FHqYGz','210529IIsROa','16sbEJJG','pageId','67899GuHNcn','code','read','Pull\x20page\x20schema\x20to\x20local\x20files','deleted','2433844GoBdBz','lockFilePath','appCode','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','validation','number','local\x20unsynced\x20changes','mode','all','name','reason','6FZFgtk','conflict','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','items','45QpXGLx','string','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','status','/smartapi/lovrabet/detail?pageId=','localPath'];a144_0x1f1e=function(){return _0x45ef99;};return a144_0x1f1e();}import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':'pull','description':a144_0xb979c(0x16f),'risk':a144_0xb979c(0x16e),'defaultOutputFormat':a144_0xb979c(0x1a5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a144_0xb979c(0x176),'description':a144_0xb979c(0x186)},DATASETCODE_FLAG_OPTIONAL,{'name':a144_0xb979c(0x196),'type':'string','description':a144_0xb979c(0x189)},{'name':a144_0xb979c(0x199),'type':a144_0xb979c(0x181),'description':'Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)'},{'name':a144_0xb979c(0x195),'type':a144_0xb979c(0x19b),'description':a144_0xb979c(0x188)}],async 'validate'(_0x293a40){validatePageTargetSelector(_0x293a40);},async 'dryRun'(_0x1c2e2b){const _0x4e1b16=a144_0xb979c,_0x493f61=await buildPullPlan(_0x1c2e2b);return{'method':_0x4e1b16(0x192),'url':_0x493f61[_0x4e1b16(0x178)]===_0x4e1b16(0x19f)?_0x4e1b16(0x184)+(_0x493f61['items'][0x0]?.['detail'][_0x4e1b16(0x16b)]??''):_0x4e1b16(0x17e),'body':{'appCode':_0x1c2e2b[_0x4e1b16(0x173)],'mode':_0x493f61[_0x4e1b16(0x178)],'targetDatasetCode':_0x493f61['datasetCode']??null,'pages':_0x493f61[_0x4e1b16(0x17f)]['map'](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x493f61[_0x4e1b16(0x178)],'datasetCode':_0x493f61['datasetCode']??null,'totalCandidates':_0x493f61['items'][_0x4e1b16(0x18c)],'totalWouldPull':_0x493f61[_0x4e1b16(0x17f)][_0x4e1b16(0x18d)](_0x59dc7b=>_0x59dc7b[_0x4e1b16(0x183)]===_0x4e1b16(0x193))[_0x4e1b16(0x18c)],'totalConflicts':_0x493f61['items'][_0x4e1b16(0x18d)](_0x2cf5cc=>_0x2cf5cc[_0x4e1b16(0x183)]===_0x4e1b16(0x17d))[_0x4e1b16(0x18c)]})};},async 'execute'(_0x2cabf6){const _0x241daa=a144_0xb979c,_0x5f7f27=loadPageProjectConfig(_0x2cabf6[_0x241daa(0x173)]),_0x1deeff=await readPageLockFile(_0x5f7f27['lockFilePath']),{lockData:_0x563a9a,appLock:_0x2ca270}=ensurePageLockScope(_0x1deeff??createEmptyPageLock(),_0x2cabf6['appCode']),_0x46571d=await buildPullPlan(_0x2cabf6),_0x52ec09=_0x2cabf6['bool']('force');if(_0x46571d[_0x241daa(0x178)]===_0x241daa(0x19f)&&_0x46571d['items'][0x0]?.['status']===_0x241daa(0x17d)&&!_0x52ec09)throw CliErrors[_0x241daa(0x175)](_0x241daa(0x174)+_0x46571d['items'][0x0][_0x241daa(0x185)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x41a0f0=[],_0x1ddd61=[];for(const _0xc6db03 of _0x46571d[_0x241daa(0x17f)]){if(_0xc6db03[_0x241daa(0x183)]==='conflict'&&!_0x52ec09){_0x1ddd61[_0x241daa(0x19e)]({'pageId':_0xc6db03[_0x241daa(0x187)]['pageId'],'type':_0xc6db03[_0x241daa(0x187)][_0x241daa(0x18a)],'title':_0xc6db03[_0x241daa(0x187)]['name'],'localPath':_0xc6db03[_0x241daa(0x185)],'reason':_0xc6db03[_0x241daa(0x17b)]??_0x241daa(0x177)});continue;}await ensureParentDirectory(_0xc6db03['localPath']);const _0x537d8c=serializePageSchemaForFile(_0xc6db03['detail'][_0x241daa(0x16d)]);await writeFile(_0xc6db03[_0x241daa(0x185)],_0x537d8c,_0x241daa(0x1a1)),_0x2ca270[_0x241daa(0x19d)][String(_0xc6db03[_0x241daa(0x187)][_0x241daa(0x16b)])]=buildLockEntry(_0xc6db03['detail'],_0x537d8c),_0x41a0f0[_0x241daa(0x19e)]({'pageId':_0xc6db03[_0x241daa(0x187)]['pageId'],'type':_0xc6db03[_0x241daa(0x187)][_0x241daa(0x18a)],'title':_0xc6db03[_0x241daa(0x187)][_0x241daa(0x17a)],'localPath':_0xc6db03[_0x241daa(0x185)]});}return _0x2ca270[_0x241daa(0x1a0)]=new Date()['toISOString'](),await writePageLockFile(_0x5f7f27['lockFilePath'],_0x563a9a),{'ok':!![],'message':_0x241daa(0x194)+_0x41a0f0[_0x241daa(0x18c)]+_0x241daa(0x19c)+_0x1ddd61[_0x241daa(0x18c)]+'\x20skipped','data':{'appCode':_0x2cabf6['appCode'],'pulledPages':_0x41a0f0,'skippedPages':_0x1ddd61,'totalPulled':_0x41a0f0[_0x241daa(0x18c)],'totalSkipped':_0x1ddd61[_0x241daa(0x18c)]}};}};async function buildPullPlan(_0x42cc92){const _0x17730e=a144_0xb979c,_0x43c585=loadPageProjectConfig(_0x42cc92['appCode']),_0x3bfdfd=await readPageLockFile(_0x43c585[_0x17730e(0x172)]),{appLock:_0x48b993}=ensurePageLockScope(_0x3bfdfd??createEmptyPageLock(),_0x42cc92['appCode']),_0x1a029c=getPageIdFlag(_0x42cc92);if(_0x1a029c!==undefined){const _0x5527e5=await loadPageDetailForPage(_0x42cc92,_0x1a029c);return{'mode':_0x17730e(0x19f),'items':[await inspectPullTarget(_0x43c585,_0x48b993['pages'][String(_0x5527e5['pageId'])],_0x5527e5)]};}const _0x3a521f=await loadDatasetDetailForPage(_0x42cc92),_0x1976d7=_0x3a521f[_0x17730e(0x190)][_0x17730e(0x18d)](_0x4b59d4=>!_0x4b59d4[_0x17730e(0x170)]);if(_0x1976d7[_0x17730e(0x18c)]===0x0)throw CliErrors[_0x17730e(0x175)](_0x17730e(0x1a2)+_0x3a521f[_0x17730e(0x16d)]+_0x17730e(0x182));const _0xbb1f68=await Promise[_0x17730e(0x179)](_0x1976d7['map'](_0x5a06bd=>loadPageDetailForPage(_0x42cc92,_0x5a06bd['id']))),_0x1b5d18=selectVersionTagGroup(_0xbb1f68,_0x44fe64=>_0x44fe64[_0x17730e(0x1a3)],_0x42cc92[_0x17730e(0x197)](_0x17730e(0x199)));return{'mode':_0x17730e(0x18e),'datasetCode':_0x3a521f[_0x17730e(0x16d)],'items':await Promise[_0x17730e(0x179)](_0x1b5d18[_0x17730e(0x17f)][_0x17730e(0x19a)](_0x2e6f53=>inspectPullTarget(_0x43c585,_0x48b993[_0x17730e(0x19d)][String(_0x2e6f53[_0x17730e(0x16b)])],_0x2e6f53)))};}async function inspectPullTarget(_0x137a93,_0x47f6d8,_0x4d0043){const _0x25833d=a144_0xb979c,_0x4197bf=resolvePageFilePath(_0x137a93,_0x4d0043[_0x25833d(0x16b)],_0x4d0043[_0x25833d(0x18a)]),_0x1f4a90=await fileExists(_0x4197bf);if(!_0x1f4a90){const _0x4b56b6=serializePageSchemaForFile(_0x4d0043[_0x25833d(0x16d)]);return{'detail':_0x4d0043,'localPath':_0x4197bf,'localHash':computePageContentHash(_0x4b56b6),'status':'would_pull'};}const _0x2d84b8=await computePageFileHash(_0x4197bf);if(!_0x47f6d8||_0x2d84b8!==_0x47f6d8['hash'])return{'detail':_0x4d0043,'localPath':_0x4197bf,'localHash':_0x2d84b8,'status':_0x25833d(0x17d),'reason':_0x25833d(0x177)};return{'detail':_0x4d0043,'localPath':_0x4197bf,'localHash':_0x2d84b8,'status':_0x25833d(0x193)};}function buildLockEntry(_0x32d3ae,_0x5c6702){const _0x4ee527=a144_0xb979c;return{'hash':computePageContentHash(_0x5c6702),'pageId':_0x32d3ae[_0x4ee527(0x16b)],'pageVersion':_0x32d3ae['pageVersion'],'type':_0x32d3ae[_0x4ee527(0x18a)],'title':_0x32d3ae[_0x4ee527(0x17a)],'datasetIds':_0x32d3ae['datasetIds'],'versionTag':_0x32d3ae[_0x4ee527(0x1a3)]};}function toPreviewItem(_0x137bd0){const _0x2d6836=a144_0xb979c;return{'pageId':_0x137bd0['detail']['pageId'],'type':_0x137bd0[_0x2d6836(0x187)][_0x2d6836(0x18a)],'title':_0x137bd0[_0x2d6836(0x187)][_0x2d6836(0x17a)],'localPath':_0x137bd0[_0x2d6836(0x185)],'status':_0x137bd0[_0x2d6836(0x183)],..._0x137bd0[_0x2d6836(0x17b)]?{'reason':_0x137bd0['reason']}:{}};}
1
+ const a144_0x168eef=a144_0x523d;(function(_0x170c04,_0x55b00f){const _0x163ccc=a144_0x523d,_0x58d0ce=_0x170c04();while(!![]){try{const _0xee6cb=parseInt(_0x163ccc(0xe6))/0x1+-parseInt(_0x163ccc(0x121))/0x2*(-parseInt(_0x163ccc(0x109))/0x3)+-parseInt(_0x163ccc(0x10a))/0x4*(parseInt(_0x163ccc(0x10c))/0x5)+-parseInt(_0x163ccc(0x106))/0x6*(parseInt(_0x163ccc(0x120))/0x7)+-parseInt(_0x163ccc(0xfc))/0x8*(parseInt(_0x163ccc(0x107))/0x9)+parseInt(_0x163ccc(0x10b))/0xa+-parseInt(_0x163ccc(0x110))/0xb*(-parseInt(_0x163ccc(0x102))/0xc);if(_0xee6cb===_0x55b00f)break;else _0x58d0ce['push'](_0x58d0ce['shift']());}catch(_0x4f57fe){_0x58d0ce['push'](_0x58d0ce['shift']());}}}(a144_0x1024,0xa3439));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a144_0x1024(){const _0x55e15c=['lockFilePath','89968rVGOpO','detail','status','pageId','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','number','294996gQUkGN','push','Dataset\x20\x22','local\x20unsynced\x20changes','248718FKDtxa','1026rXuRxa','validation','6oiNtxC','141748dIRpaN','9336190AxBlZU','115EazZPb','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Page\x20ID','version-tag','517wAbmIj','拉取完成:\x20','alias','page','would_pull','pages','\x20skipped','\x20pulled,\x20','name','utf8','GET','filter','boolean','pull','appCode','single','63wvVQRO','885106dtpAeo','map','mode','force','reason','164775lzwFaw','toISOString','type','relatedPages','all','lastSync','conflict','pageVersion','localPath','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','versionTag','string','hash','str','length','code','items','/smartapi/lovrabet/detail?pageId=','bool','compress','Pull\x20page\x20schema\x20to\x20local\x20files'];a144_0x1024=function(){return _0x55e15c;};return a144_0x1024();}import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';function a144_0x523d(_0x297e76,_0x212221){_0x297e76=_0x297e76-0xe6;const _0x10243a=a144_0x1024();let _0x523db6=_0x10243a[_0x297e76];return _0x523db6;}export const pagePull={'service':a144_0x168eef(0x113),'command':a144_0x168eef(0x11d),'description':a144_0x168eef(0xfa),'risk':'read','defaultOutputFormat':a144_0x168eef(0xf9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a144_0x168eef(0x101),'description':a144_0x168eef(0x10e)},DATASETCODE_FLAG_OPTIONAL,{'name':a144_0x168eef(0x112),'type':'string','description':a144_0x168eef(0x100)},{'name':a144_0x168eef(0x10f),'type':a144_0x168eef(0xf1),'description':a144_0x168eef(0x10d)},{'name':'force','type':a144_0x168eef(0x11c),'description':a144_0x168eef(0xef)}],async 'validate'(_0x2f1e8e){validatePageTargetSelector(_0x2f1e8e);},async 'dryRun'(_0x283de4){const _0x2cd5bc=a144_0x168eef,_0xcadec3=await buildPullPlan(_0x283de4);return{'method':_0x2cd5bc(0x11a),'url':_0xcadec3[_0x2cd5bc(0x123)]===_0x2cd5bc(0x11f)?_0x2cd5bc(0xf7)+(_0xcadec3[_0x2cd5bc(0xf6)][0x0]?.[_0x2cd5bc(0xfd)][_0x2cd5bc(0xff)]??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x283de4[_0x2cd5bc(0x11e)],'mode':_0xcadec3[_0x2cd5bc(0x123)],'targetDatasetCode':_0xcadec3['datasetCode']??null,'pages':_0xcadec3[_0x2cd5bc(0xf6)][_0x2cd5bc(0x122)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0xcadec3['mode'],'datasetCode':_0xcadec3['datasetCode']??null,'totalCandidates':_0xcadec3['items']['length'],'totalWouldPull':_0xcadec3['items'][_0x2cd5bc(0x11b)](_0x3d2195=>_0x3d2195[_0x2cd5bc(0xfe)]==='would_pull')[_0x2cd5bc(0xf4)],'totalConflicts':_0xcadec3[_0x2cd5bc(0xf6)]['filter'](_0x8951dd=>_0x8951dd[_0x2cd5bc(0xfe)]===_0x2cd5bc(0xec))[_0x2cd5bc(0xf4)]})};},async 'execute'(_0x5b95ec){const _0x56043d=a144_0x168eef,_0x2e1537=loadPageProjectConfig(_0x5b95ec[_0x56043d(0x11e)]),_0x3438a1=await readPageLockFile(_0x2e1537[_0x56043d(0xfb)]),{lockData:_0x33042b,appLock:_0x599fc4}=ensurePageLockScope(_0x3438a1??createEmptyPageLock(),_0x5b95ec[_0x56043d(0x11e)]),_0x197f88=await buildPullPlan(_0x5b95ec),_0x2d4895=_0x5b95ec[_0x56043d(0xf8)](_0x56043d(0x124));if(_0x197f88[_0x56043d(0x123)]===_0x56043d(0x11f)&&_0x197f88['items'][0x0]?.[_0x56043d(0xfe)]===_0x56043d(0xec)&&!_0x2d4895)throw CliErrors[_0x56043d(0x108)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0x197f88['items'][0x0][_0x56043d(0xee)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x74c317=[],_0x3b0818=[];for(const _0x35c9f2 of _0x197f88[_0x56043d(0xf6)]){if(_0x35c9f2['status']===_0x56043d(0xec)&&!_0x2d4895){_0x3b0818[_0x56043d(0x103)]({'pageId':_0x35c9f2['detail'][_0x56043d(0xff)],'type':_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0xe8)],'title':_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0x118)],'localPath':_0x35c9f2[_0x56043d(0xee)],'reason':_0x35c9f2[_0x56043d(0x125)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x35c9f2[_0x56043d(0xee)]);const _0x3f66ff=serializePageSchemaForFile(_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0xf5)]);await writeFile(_0x35c9f2[_0x56043d(0xee)],_0x3f66ff,_0x56043d(0x119)),_0x599fc4[_0x56043d(0x115)][String(_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0xff)])]=buildLockEntry(_0x35c9f2['detail'],_0x3f66ff),_0x74c317[_0x56043d(0x103)]({'pageId':_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0xff)],'type':_0x35c9f2['detail'][_0x56043d(0xe8)],'title':_0x35c9f2[_0x56043d(0xfd)][_0x56043d(0x118)],'localPath':_0x35c9f2[_0x56043d(0xee)]});}return _0x599fc4[_0x56043d(0xeb)]=new Date()[_0x56043d(0xe7)](),await writePageLockFile(_0x2e1537[_0x56043d(0xfb)],_0x33042b),{'ok':!![],'message':_0x56043d(0x111)+_0x74c317[_0x56043d(0xf4)]+_0x56043d(0x117)+_0x3b0818[_0x56043d(0xf4)]+_0x56043d(0x116),'data':{'appCode':_0x5b95ec[_0x56043d(0x11e)],'pulledPages':_0x74c317,'skippedPages':_0x3b0818,'totalPulled':_0x74c317[_0x56043d(0xf4)],'totalSkipped':_0x3b0818[_0x56043d(0xf4)]}};}};async function buildPullPlan(_0x1e9250){const _0x5a3a9e=a144_0x168eef,_0x7ad970=loadPageProjectConfig(_0x1e9250['appCode']),_0x4c4e16=await readPageLockFile(_0x7ad970[_0x5a3a9e(0xfb)]),{appLock:_0x172cc6}=ensurePageLockScope(_0x4c4e16??createEmptyPageLock(),_0x1e9250['appCode']),_0x41463c=getPageIdFlag(_0x1e9250);if(_0x41463c!==undefined){const _0x232218=await loadPageDetailForPage(_0x1e9250,_0x41463c);return{'mode':_0x5a3a9e(0x11f),'items':[await inspectPullTarget(_0x7ad970,_0x172cc6['pages'][String(_0x232218['pageId'])],_0x232218)]};}const _0xa43f59=await loadDatasetDetailForPage(_0x1e9250),_0x52356f=_0xa43f59[_0x5a3a9e(0xe9)]['filter'](_0x152ced=>!_0x152ced['deleted']);if(_0x52356f[_0x5a3a9e(0xf4)]===0x0)throw CliErrors['validation'](_0x5a3a9e(0x104)+_0xa43f59[_0x5a3a9e(0xf5)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x211a19=await Promise['all'](_0x52356f[_0x5a3a9e(0x122)](_0x4056b7=>loadPageDetailForPage(_0x1e9250,_0x4056b7['id']))),_0x3dfed0=selectVersionTagGroup(_0x211a19,_0x1784f5=>_0x1784f5[_0x5a3a9e(0xf0)],_0x1e9250[_0x5a3a9e(0xf3)]('version-tag'));return{'mode':'batch','datasetCode':_0xa43f59[_0x5a3a9e(0xf5)],'items':await Promise[_0x5a3a9e(0xea)](_0x3dfed0['items'][_0x5a3a9e(0x122)](_0x914864=>inspectPullTarget(_0x7ad970,_0x172cc6[_0x5a3a9e(0x115)][String(_0x914864[_0x5a3a9e(0xff)])],_0x914864)))};}async function inspectPullTarget(_0x234642,_0x54ff12,_0x222811){const _0xcbbd56=a144_0x168eef,_0x2e4a4d=resolvePageFilePath(_0x234642,_0x222811[_0xcbbd56(0xff)],_0x222811[_0xcbbd56(0xe8)]),_0x4a24e1=await fileExists(_0x2e4a4d);if(!_0x4a24e1){const _0x66e5b7=serializePageSchemaForFile(_0x222811[_0xcbbd56(0xf5)]);return{'detail':_0x222811,'localPath':_0x2e4a4d,'localHash':computePageContentHash(_0x66e5b7),'status':_0xcbbd56(0x114)};}const _0x4f0bed=await computePageFileHash(_0x2e4a4d);if(!_0x54ff12||_0x4f0bed!==_0x54ff12[_0xcbbd56(0xf2)])return{'detail':_0x222811,'localPath':_0x2e4a4d,'localHash':_0x4f0bed,'status':_0xcbbd56(0xec),'reason':_0xcbbd56(0x105)};return{'detail':_0x222811,'localPath':_0x2e4a4d,'localHash':_0x4f0bed,'status':_0xcbbd56(0x114)};}function buildLockEntry(_0x5561c2,_0x220f5f){const _0x368c77=a144_0x168eef;return{'hash':computePageContentHash(_0x220f5f),'pageId':_0x5561c2['pageId'],'pageVersion':_0x5561c2[_0x368c77(0xed)],'type':_0x5561c2[_0x368c77(0xe8)],'title':_0x5561c2[_0x368c77(0x118)],'datasetIds':_0x5561c2['datasetIds'],'versionTag':_0x5561c2[_0x368c77(0xf0)]};}function toPreviewItem(_0x24590c){const _0x2651fe=a144_0x168eef;return{'pageId':_0x24590c[_0x2651fe(0xfd)][_0x2651fe(0xff)],'type':_0x24590c[_0x2651fe(0xfd)]['type'],'title':_0x24590c[_0x2651fe(0xfd)][_0x2651fe(0x118)],'localPath':_0x24590c[_0x2651fe(0xee)],'status':_0x24590c[_0x2651fe(0xfe)],..._0x24590c[_0x2651fe(0x125)]?{'reason':_0x24590c['reason']}:{}};}