@lovrabet/rabetbase-cli 2.5.6 → 2.5.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.d.ts +2 -0
  132. package/lib/commands/flow/page-list.js +1 -0
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.d.ts +6 -2
  140. package/lib/commands/flow/shared.js +1 -1
  141. package/lib/commands/flow/update.js +1 -1
  142. package/lib/commands/flow/validate.js +1 -1
  143. package/lib/commands/instant-api-policy/current.js +1 -1
  144. package/lib/commands/instant-api-policy/index.js +1 -1
  145. package/lib/commands/instant-api-policy/init.js +1 -1
  146. package/lib/commands/instant-api-policy/publish.js +1 -1
  147. package/lib/commands/instant-api-policy/pull.js +1 -1
  148. package/lib/commands/instant-api-policy/revision.js +1 -1
  149. package/lib/commands/instant-api-policy/revisions.js +1 -1
  150. package/lib/commands/instant-api-policy/rollback.js +1 -1
  151. package/lib/commands/instant-api-policy/shared.js +1 -1
  152. package/lib/commands/instant-api-policy/validate.js +1 -1
  153. package/lib/commands/issue/index.js +1 -1
  154. package/lib/commands/issue/nudge.js +1 -1
  155. package/lib/commands/issue/report.js +1 -1
  156. package/lib/commands/issue/shared.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +26 -6
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.d.ts +12 -0
  303. package/lib/core/flow-config.js +1 -1
  304. package/lib/core/instant-api-policy/config.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +8 -4
  378. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  379. package/skills/rabetbase/guides/backend-function.md +26 -4
  380. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  381. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  382. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  383. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  384. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  385. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  386. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  387. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  388. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  389. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  390. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  391. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  392. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  393. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  394. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  395. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- (function(_0x34bbfc,_0x153058){const _0x595474=a128_0x13b1,_0x36db93=_0x34bbfc();while(!![]){try{const _0x48eee2=parseInt(_0x595474(0x125))/0x1+parseInt(_0x595474(0x124))/0x2+-parseInt(_0x595474(0x128))/0x3*(-parseInt(_0x595474(0x12b))/0x4)+parseInt(_0x595474(0x12a))/0x5*(-parseInt(_0x595474(0x123))/0x6)+-parseInt(_0x595474(0x12d))/0x7*(-parseInt(_0x595474(0x127))/0x8)+parseInt(_0x595474(0x12c))/0x9*(-parseInt(_0x595474(0x126))/0xa)+-parseInt(_0x595474(0x129))/0xb;if(_0x48eee2===_0x153058)break;else _0x36db93['push'](_0x36db93['shift']());}catch(_0x94f22e){_0x36db93['push'](_0x36db93['shift']());}}}(a128_0x2c0b,0xdd701));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';function a128_0x2c0b(){const _0x160579=['827446ftachl','558740RUCwzX','487130ikXYXs','24qdOGWG','39642fWEutz','8674171bbAqhc','10JlolXy','164YObvpz','18HtaUjT','1428917tjcskY','1000902dStxXM'];a128_0x2c0b=function(){return _0x160579;};return a128_0x2c0b();}function a128_0x13b1(_0x23aa61,_0x5aac5e){_0x23aa61=_0x23aa61-0x123;const _0x2c0bea=a128_0x2c0b();let _0x13b188=_0x2c0bea[_0x23aa61];return _0x13b188;}import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ function a128_0xfade(){const _0xf49c1=['3237784LhwiZg','2974428SpJIWQ','53513qykpQh','7yRgdNi','2622399QlNSDn','2235096wBWWuk','539136ZmDWnP','3301720FOVeBw','4eCPWfJ'];a128_0xfade=function(){return _0xf49c1;};return a128_0xfade();}(function(_0x4f62dc,_0x3c15b3){const _0x5dd7fe=a128_0x4336,_0x21e124=_0x4f62dc();while(!![]){try{const _0x383433=-parseInt(_0x5dd7fe(0x8c))/0x1*(-parseInt(_0x5dd7fe(0x89))/0x2)+parseInt(_0x5dd7fe(0x8e))/0x3+parseInt(_0x5dd7fe(0x87))/0x4+-parseInt(_0x5dd7fe(0x88))/0x5+parseInt(_0x5dd7fe(0x8b))/0x6+parseInt(_0x5dd7fe(0x8d))/0x7*(-parseInt(_0x5dd7fe(0x8a))/0x8)+parseInt(_0x5dd7fe(0x8f))/0x9;if(_0x383433===_0x3c15b3)break;else _0x21e124['push'](_0x21e124['shift']());}catch(_0x5e14c7){_0x21e124['push'](_0x21e124['shift']());}}}(a128_0xfade,0xc214e));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';function a128_0x4336(_0x5a4bd2,_0x56ff59){_0x5a4bd2=_0x5a4bd2-0x87;const _0xfaded6=a128_0xfade();let _0x4336a7=_0xfaded6[_0x5a4bd2];return _0x4336a7;}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a129_0x1c11e6=a129_0x53e4;(function(_0x339e9b,_0x583aaf){const _0x97199d=a129_0x53e4,_0x525253=_0x339e9b();while(!![]){try{const _0xea36d7=-parseInt(_0x97199d(0x1e4))/0x1+-parseInt(_0x97199d(0x1ed))/0x2+-parseInt(_0x97199d(0x1e2))/0x3*(parseInt(_0x97199d(0x1f5))/0x4)+parseInt(_0x97199d(0x1e0))/0x5*(parseInt(_0x97199d(0x1e5))/0x6)+parseInt(_0x97199d(0x1e6))/0x7*(parseInt(_0x97199d(0x1ef))/0x8)+parseInt(_0x97199d(0x1e7))/0x9+-parseInt(_0x97199d(0x1db))/0xa*(-parseInt(_0x97199d(0x1ec))/0xb);if(_0xea36d7===_0x583aaf)break;else _0x525253['push'](_0x525253['shift']());}catch(_0x1c623a){_0x525253['push'](_0x525253['shift']());}}}(a129_0x561c,0x23c71));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a129_0x1c11e6(0x1f7)];export const flowList={'service':'flow','command':a129_0x1c11e6(0x1da),'description':a129_0x1c11e6(0x1ee),'risk':a129_0x1c11e6(0x1d6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x1c11e6(0x1f4),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1e3)},{'name':a129_0x1c11e6(0x1eb),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1f9),'enum':FLOW_STATUSES},{'name':a129_0x1c11e6(0x1e9),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1d7)},{'name':a129_0x1c11e6(0x1dc),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a129_0x1c11e6(0x1d8),'default':0x1},{'name':a129_0x1c11e6(0x1d5),'type':'number','description':'Page\x20size','default':0x14}],async 'validate'(_0x3e2df9){const _0x394ac0=a129_0x1c11e6,_0x29c00f=_0x3e2df9[_0x394ac0(0x1d9)](_0x394ac0(0x1f2),0x1),_0x4579fe=_0x3e2df9[_0x394ac0(0x1d9)]('page-size',0x14);if(!Number[_0x394ac0(0x1f3)](_0x29c00f)||_0x29c00f<0x1)throw CliErrors[_0x394ac0(0x1f8)](_0x394ac0(0x1f6));if(!Number[_0x394ac0(0x1f3)](_0x4579fe)||_0x4579fe<0x1)throw CliErrors['validation'](_0x394ac0(0x1f0));},async 'execute'(_0x1e7406){const _0x44f0fc=a129_0x1c11e6,{items:_0x378145,paging:_0x355141}=await listFlowDefinitions(_0x1e7406[_0x44f0fc(0x1dd)],{'flowCode':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1f4))),'flowName':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1eb))),'flowStatus':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1e8))),'datasetCode':optionalString(_0x1e7406['str'](_0x44f0fc(0x1e9))),'flowType':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1dc))),'pageNum':_0x1e7406['num'](_0x44f0fc(0x1f2),0x1),'pageSize':_0x1e7406['num'](_0x44f0fc(0x1d5),0x14)});return{'ok':!![],'data':{'appCode':_0x1e7406[_0x44f0fc(0x1dd)],'flows':_0x378145,'paging':_0x355141},'message':_0x44f0fc(0x1df)+_0x378145[_0x44f0fc(0x1de)]+_0x44f0fc(0x1ea)};}};function a129_0x53e4(_0x38cef7,_0x3ff4ed){_0x38cef7=_0x38cef7-0x1d5;const _0x561cb9=a129_0x561c();let _0x53e46c=_0x561cb9[_0x38cef7];return _0x53e46c;}function a129_0x561c(){const _0x1184c1=['page-size','read','Filter\x20by\x20dataset\x20code','Page\x20number\x20(1-based)','num','list','680CfENAA','flow-type','appCode','length','Found\x20','15BYPeGH','string','770871JGvQHP','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','278723kWtFID','384708yjHjaI','1653757bDbLCf','1480887YYpyBs','flow-status','dataset-code','\x20flow\x20definition(s)','flow-name','38478tdJjwX','297574WwJcZA','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','8KfKhRo','--page-size\x20must\x20be\x20a\x20positive\x20integer.','str','page','isSafeInteger','flow-code','4TitdLT','--page\x20must\x20be\x20a\x20positive\x20integer.','published','validation','Filter\x20by\x20flow\x20status'];a129_0x561c=function(){return _0x1184c1;};return a129_0x561c();}function optionalString(_0x111dd0){const _0x1f47e9=_0x111dd0['trim']();return _0x1f47e9||undefined;}
1
+ const a129_0x4467c1=a129_0x1563;(function(_0x4a3b5c,_0x4949b4){const _0x556759=a129_0x1563,_0xf11cfb=_0x4a3b5c();while(!![]){try{const _0x4fb800=-parseInt(_0x556759(0xac))/0x1+-parseInt(_0x556759(0xb8))/0x2*(parseInt(_0x556759(0xc3))/0x3)+parseInt(_0x556759(0xcf))/0x4+parseInt(_0x556759(0xb4))/0x5*(parseInt(_0x556759(0xd0))/0x6)+-parseInt(_0x556759(0xb3))/0x7*(-parseInt(_0x556759(0xbb))/0x8)+parseInt(_0x556759(0xb9))/0x9*(-parseInt(_0x556759(0xc7))/0xa)+parseInt(_0x556759(0xb6))/0xb;if(_0x4fb800===_0x4949b4)break;else _0xf11cfb['push'](_0xf11cfb['shift']());}catch(_0x393d3a){_0xf11cfb['push'](_0xf11cfb['shift']());}}}(a129_0x5108,0x5bc56));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x4467c1(0xc0),'published'];function a129_0x5108(){const _0x1d5720=['40WCfmsg','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','length','Found\x20','read','page-size','isSafeInteger','flow-name','303212rVkXNx','30exGtcm','page','\x20flow\x20definition(s)','563790almXYE','Filter\x20by\x20flow\x20name','appCode','flow','flow-type','num','number','378oeaUOY','458530heiJDt','flow-code','15359982Bozpaz','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','6OpgkQV','1472094YyslnY','str','48752rWxGws','Filter\x20by\x20dataset\x20code','Page\x20number\x20(1-based)','Filter\x20by\x20flow\x20status','flow-status','draft','validation','string','665823MhXScC','trim','dataset-code','Page\x20size'];a129_0x5108=function(){return _0x1d5720;};return a129_0x5108();}function a129_0x1563(_0x465c41,_0x5864a2){_0x465c41=_0x465c41-0xaa;const _0x51082f=a129_0x5108();let _0x15635c=_0x51082f[_0x465c41];return _0x15635c;}export const flowList={'service':a129_0x4467c1(0xaf),'command':'list','description':a129_0x4467c1(0xb7),'risk':a129_0x4467c1(0xcb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a129_0x4467c1(0xc2),'description':a129_0x4467c1(0xc8)},{'name':'flow-name','type':'string','description':a129_0x4467c1(0xad)},{'name':a129_0x4467c1(0xbf),'type':a129_0x4467c1(0xc2),'description':a129_0x4467c1(0xbe),'enum':FLOW_STATUSES},{'name':'dataset-code','type':'string','description':a129_0x4467c1(0xbc)},{'name':a129_0x4467c1(0xb0),'type':a129_0x4467c1(0xc2),'description':'Filter\x20by\x20flow\x20type'},{'name':a129_0x4467c1(0xaa),'type':a129_0x4467c1(0xb2),'description':a129_0x4467c1(0xbd),'default':0x1},{'name':a129_0x4467c1(0xcc),'type':a129_0x4467c1(0xb2),'description':a129_0x4467c1(0xc6),'default':0x14}],async 'validate'(_0x80256b){const _0x357d71=a129_0x4467c1,_0x43b9db=_0x80256b[_0x357d71(0xb1)](_0x357d71(0xaa),0x1),_0x40d575=_0x80256b['num'](_0x357d71(0xcc),0x14);if(!Number[_0x357d71(0xcd)](_0x43b9db)||_0x43b9db<0x1)throw CliErrors[_0x357d71(0xc1)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x357d71(0xcd)](_0x40d575)||_0x40d575<0x1)throw CliErrors[_0x357d71(0xc1)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x24553c){const _0x38afa8=a129_0x4467c1,{items:_0x112f95,paging:_0x4cd4a5}=await listFlowDefinitions(_0x24553c[_0x38afa8(0xae)],{'flowCode':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xb5))),'flowName':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xce))),'flowStatus':optionalString(_0x24553c['str']('flow-status')),'datasetCode':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xc5))),'flowType':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xb0))),'pageNum':_0x24553c[_0x38afa8(0xb1)](_0x38afa8(0xaa),0x1),'pageSize':_0x24553c[_0x38afa8(0xb1)](_0x38afa8(0xcc),0x14)});return{'ok':!![],'data':{'appCode':_0x24553c[_0x38afa8(0xae)],'flows':_0x112f95,'paging':_0x4cd4a5},'message':_0x38afa8(0xca)+_0x112f95[_0x38afa8(0xc9)]+_0x38afa8(0xab)};}};function optionalString(_0x23c37d){const _0x169834=a129_0x4467c1,_0x7e9b8=_0x23c37d[_0x169834(0xc4)]();return _0x7e9b8||undefined;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowPageList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a130_0x1ddc18=a130_0xff4b;(function(_0x35f855,_0x552c1a){const _0x2bef9e=a130_0xff4b,_0x599ae5=_0x35f855();while(!![]){try{const _0x11f7c4=-parseInt(_0x2bef9e(0x1a4))/0x1*(parseInt(_0x2bef9e(0x1b4))/0x2)+-parseInt(_0x2bef9e(0x1b1))/0x3+parseInt(_0x2bef9e(0x1b3))/0x4+parseInt(_0x2bef9e(0x1b0))/0x5+parseInt(_0x2bef9e(0x1b7))/0x6*(-parseInt(_0x2bef9e(0x19e))/0x7)+-parseInt(_0x2bef9e(0x1a2))/0x8*(-parseInt(_0x2bef9e(0x1b5))/0x9)+parseInt(_0x2bef9e(0x1a7))/0xa;if(_0x11f7c4===_0x552c1a)break;else _0x599ae5['push'](_0x599ae5['shift']());}catch(_0x1d1320){_0x599ae5['push'](_0x599ae5['shift']());}}}(a130_0x1c5d,0x68730));function a130_0xff4b(_0x44e2e5,_0x15a455){_0x44e2e5=_0x44e2e5-0x19e;const _0x1c5d15=a130_0x1c5d();let _0xff4b48=_0x1c5d15[_0x44e2e5];return _0xff4b48;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';function a130_0x1c5d(){const _0x5eb081=['page-size','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)','2781960CIIMlt','2444061JfhZdb','trim','2198568UZzLeq','6866bPllql','18yYxBVy','str','84SNmsEF','read','Page\x20size','flag','\x20must\x20be\x20a\x20positive\x20integer.','149009axligS','string','Found\x20','page-list','863416zJUwCX','name','238AIlhEx','length','Filter\x20by\x20page\x20name','10356950ACdaPX','num','page','validation','appCode','List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','number'];a130_0x1c5d=function(){return _0x5eb081;};return a130_0x1c5d();}import{CliErrors}from'../../errors.js';export const flowPageList={'service':'flow','command':a130_0x1ddc18(0x1a1),'description':a130_0x1ddc18(0x1ac),'risk':a130_0x1ddc18(0x1b8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x1ddc18(0x1ad),'description':a130_0x1ddc18(0x1af)},{'name':a130_0x1ddc18(0x1a3),'type':a130_0x1ddc18(0x19f),'description':a130_0x1ddc18(0x1a6)},{'name':a130_0x1ddc18(0x1a9),'type':a130_0x1ddc18(0x1ad),'default':0x1,'description':'Page\x20number\x20(1-based)'},{'name':'page-size','type':a130_0x1ddc18(0x1ad),'default':0x14,'description':a130_0x1ddc18(0x1b9)}],async 'validate'(_0x195bb6){const _0x393bbb=a130_0x1ddc18;for(const [_0x3e584f,_0x367575]of[['page',_0x195bb6[_0x393bbb(0x1a8)](_0x393bbb(0x1a9),0x1)],[_0x393bbb(0x1ae),_0x195bb6['num'](_0x393bbb(0x1ae),0x14)],..._0x195bb6[_0x393bbb(0x1ba)]('id')!==undefined?[['id',_0x195bb6[_0x393bbb(0x1a8)]('id')]]:[]]){if(!Number['isSafeInteger'](_0x367575)||_0x367575<=0x0)throw CliErrors[_0x393bbb(0x1aa)]('--'+_0x3e584f+_0x393bbb(0x1bb));}},async 'execute'(_0x240971){const _0x17e1ad=a130_0x1ddc18,_0x3768d1=_0x240971[_0x17e1ad(0x1ba)]('id')===undefined?undefined:_0x240971[_0x17e1ad(0x1a8)]('id'),{items:_0x4caf1b,paging:_0xaba98a}=await listFlowBindingPages(_0x240971[_0x17e1ad(0x1ab)],{'currentFlowId':_0x3768d1,'name':_0x240971[_0x17e1ad(0x1b6)](_0x17e1ad(0x1a3))[_0x17e1ad(0x1b2)]()||undefined,'currentPage':_0x240971[_0x17e1ad(0x1a8)](_0x17e1ad(0x1a9),0x1),'pageSize':_0x240971[_0x17e1ad(0x1a8)](_0x17e1ad(0x1ae),0x14)});return{'ok':!![],'data':{'appCode':_0x240971[_0x17e1ad(0x1ab)],'currentFlowId':_0x3768d1,'pages':_0x4caf1b,'paging':_0xaba98a,'availabilityChecked':_0x3768d1!==undefined},'message':_0x17e1ad(0x1a0)+_0x4caf1b[_0x17e1ad(0x1a5)]+'\x20form\x20page(s)'};}};
@@ -1 +1 @@
1
- function a130_0x289b(_0xf6b467,_0x443fad){_0xf6b467=_0xf6b467-0x8f;const _0xe71f05=a130_0xe71f();let _0x289bc9=_0xe71f05[_0xf6b467];return _0x289bc9;}const a130_0x5cfbb8=a130_0x289b;(function(_0x192528,_0x2ed9bb){const _0x5e6518=a130_0x289b,_0x426e67=_0x192528();while(!![]){try{const _0x224960=parseInt(_0x5e6518(0x98))/0x1+parseInt(_0x5e6518(0x94))/0x2+-parseInt(_0x5e6518(0x96))/0x3+-parseInt(_0x5e6518(0x92))/0x4*(parseInt(_0x5e6518(0x90))/0x5)+parseInt(_0x5e6518(0x9e))/0x6*(-parseInt(_0x5e6518(0x93))/0x7)+parseInt(_0x5e6518(0x9b))/0x8+parseInt(_0x5e6518(0x9c))/0x9*(parseInt(_0x5e6518(0x9d))/0xa);if(_0x224960===_0x2ed9bb)break;else _0x426e67['push'](_0x426e67['shift']());}catch(_0x459a26){_0x426e67['push'](_0x426e67['shift']());}}}(a130_0xe71f,0x3e4e3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a130_0xe71f(){const _0x82a8ed=['52385EANrRe','flow','140IkURbT','182441xRhkJc','763512LyUvJA','flowCode','904263twNiwH','appCode','214061SMgewB','write','published','2345864tGSPVK','56268afysif','430YPCiAl','54griQCz','Publish\x20the\x20current\x20flow\x20definition\x20draft','publish'];a130_0xe71f=function(){return _0x82a8ed;};return a130_0xe71f();}import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a130_0x5cfbb8(0x91),'command':a130_0x5cfbb8(0x8f),'description':a130_0x5cfbb8(0x9f),'risk':a130_0x5cfbb8(0x99),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3bf8f1){readFlowId(_0x3bf8f1);},async 'dryRun'(_0x5e1416){const _0x1414a6=a130_0x5cfbb8,_0x3ede87=readFlowId(_0x5e1416);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x1414a6(0x8f)],_0x5e1416[_0x1414a6(0x97)],_0x3ede87,{'id':_0x3ede87,'flowStatus':_0x1414a6(0x9a)});},async 'execute'(_0x474d63){const _0x1e3ed5=a130_0x5cfbb8,_0x5297a7=readFlowId(_0x474d63),_0x1be07e=await publishFlowDefinition(_0x474d63[_0x1e3ed5(0x97)],_0x5297a7),_0x5af1ac=buildFlowUrl(_0x474d63['appCode'],_0x5297a7);return{'ok':!![],'data':{'operation':_0x1e3ed5(0x8f),'selector':flowSelector(_0x474d63[_0x1e3ed5(0x97)],_0x5297a7,_0x1be07e),'before':null,'after':_0x1be07e,'flowUrl':_0x5af1ac,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS['publish']},'warnings':[]},'message':'Published\x20flow\x20'+(_0x1be07e['flowName']||_0x1be07e[_0x1e3ed5(0x95)]||_0x5297a7)+'.\x20Flow\x20URL:\x20'+_0x5af1ac};}};
1
+ const a131_0x10dc7e=a131_0x2a00;(function(_0x4a5739,_0x3c1d49){const _0x3c581c=a131_0x2a00,_0x2ec26f=_0x4a5739();while(!![]){try{const _0x1f7dd7=-parseInt(_0x3c581c(0x15f))/0x1+parseInt(_0x3c581c(0x161))/0x2+-parseInt(_0x3c581c(0x164))/0x3*(parseInt(_0x3c581c(0x15e))/0x4)+-parseInt(_0x3c581c(0x165))/0x5*(-parseInt(_0x3c581c(0x162))/0x6)+parseInt(_0x3c581c(0x160))/0x7+parseInt(_0x3c581c(0x15a))/0x8*(parseInt(_0x3c581c(0x157))/0x9)+-parseInt(_0x3c581c(0x166))/0xa;if(_0x1f7dd7===_0x3c1d49)break;else _0x2ec26f['push'](_0x2ec26f['shift']());}catch(_0x3bd352){_0x2ec26f['push'](_0x2ec26f['shift']());}}}(a131_0x5a8c,0x74913));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';function a131_0x2a00(_0x508157,_0x5a182d){_0x508157=_0x508157-0x156;const _0x5a8c87=a131_0x5a8c();let _0x2a005c=_0x5a8c87[_0x508157];return _0x2a005c;}export const flowPublish={'service':a131_0x10dc7e(0x163),'command':a131_0x10dc7e(0x15b),'description':a131_0x10dc7e(0x159),'risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58242f){readFlowId(_0x58242f);},async 'dryRun'(_0x2d918b){const _0x312408=a131_0x10dc7e,_0xa9209b=readFlowId(_0x2d918b);return buildFlowIdDryRun(_0x312408(0x15b),FLOW_PATHS[_0x312408(0x15b)],_0x2d918b[_0x312408(0x15d)],_0xa9209b,{'id':_0xa9209b,'flowStatus':'published'});},async 'execute'(_0x2c89a8){const _0x3709f4=a131_0x10dc7e,_0xbac8e5=readFlowId(_0x2c89a8),_0x5bd6eb=await publishFlowDefinition(_0x2c89a8['appCode'],_0xbac8e5),_0xe8b95e=buildFlowUrl(_0x2c89a8[_0x3709f4(0x15d)],_0xbac8e5);return{'ok':!![],'data':{'operation':_0x3709f4(0x15b),'selector':flowSelector(_0x2c89a8[_0x3709f4(0x15d)],_0xbac8e5,_0x5bd6eb),'before':null,'after':_0x5bd6eb,'flowUrl':_0xe8b95e,'dryRun':![],'backend':{'method':_0x3709f4(0x15c),'path':FLOW_PATHS[_0x3709f4(0x15b)]},'warnings':[]},'message':_0x3709f4(0x156)+(_0x5bd6eb['flowName']||_0x5bd6eb[_0x3709f4(0x167)]||_0xbac8e5)+_0x3709f4(0x158)+_0xe8b95e};}};function a131_0x5a8c(){const _0xf40965=['2647107EYmcRH','.\x20Flow\x20URL:\x20','Publish\x20the\x20current\x20flow\x20definition\x20draft','16CrjUSz','publish','POST','appCode','668ipiFLn','407278UuaTrq','5058487FwFJfu','1557316zzBOjn','18216oWaeDq','flow','16347QKNzCW','540MvHJRQ','6227130dRAWFb','flowCode','Published\x20flow\x20'];a131_0x5a8c=function(){return _0xf40965;};return a131_0x5a8c();}
@@ -16,7 +16,7 @@ export declare function paginateRuntimeItems<T>(items: T[], page: number, pageSi
16
16
  };
17
17
  };
18
18
  export declare function projectRuntimeRole(role: ApprovalRuntimeRole): {
19
- id: number;
19
+ id: string | number;
20
20
  roleName: string | null;
21
21
  roleType: string | null;
22
22
  remark: string | null;
@@ -1 +1 @@
1
- function a131_0x5913(){const _0xc08a8e=['num','test','\x22\x20not\x20found\x20in\x20app\x20','14209877JuFDoO','12hRtUoU','permitCount','8479341miTvcy','Pass\x20--role\x20<id|name>.','filter','516773aXLuVe','10125VUZzCk','nickname','role','--page\x20must\x20be\x20a\x20positive\x20integer.','userCount','username','42FLXYxI','10WUfFia','825540KDoXFI','map','trim','code','Runtime\x20role\x20\x22','page','join','Page\x20index\x20(1-based)','string','email','remark','validation','Page\x20size\x20(1-100)','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','slice','isSafeInteger','15jCbHtc','number','Disambiguate\x20with\x20--role\x20<id>.','357854NCATJC','page-size','\x22\x20is\x20ambiguous\x20(ids:\x20','length','96WzfsEx','646244jdEBuA','roleType','Runtime\x20role\x20name\x20\x22','str','roleName'];a131_0x5913=function(){return _0xc08a8e;};return a131_0x5913();}const a131_0x2c7e0b=a131_0x2a1c;(function(_0x4ce109,_0x10d79b){const _0x1fcc86=a131_0x2a1c,_0x50f2d6=_0x4ce109();while(!![]){try{const _0x57d861=parseInt(_0x1fcc86(0x205))/0x1+-parseInt(_0x1fcc86(0x20c))/0x2*(parseInt(_0x1fcc86(0x206))/0x3)+parseInt(_0x1fcc86(0x1f7))/0x4*(parseInt(_0x1fcc86(0x21e))/0x5)+-parseInt(_0x1fcc86(0x20e))/0x6+parseInt(_0x1fcc86(0x221))/0x7*(-parseInt(_0x1fcc86(0x1f6))/0x8)+parseInt(_0x1fcc86(0x202))/0x9*(-parseInt(_0x1fcc86(0x20d))/0xa)+parseInt(_0x1fcc86(0x1ff))/0xb*(parseInt(_0x1fcc86(0x200))/0xc);if(_0x57d861===_0x10d79b)break;else _0x50f2d6['push'](_0x50f2d6['shift']());}catch(_0x35a3e2){_0x50f2d6['push'](_0x50f2d6['shift']());}}}(a131_0x5913,0x81321));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a131_0x2c7e0b(0x213),'type':a131_0x2c7e0b(0x21f),'description':a131_0x2c7e0b(0x215),'default':0x1};function a131_0x2a1c(_0x22b37f,_0x10f30f){_0x22b37f=_0x22b37f-0x1f4;const _0x59133d=a131_0x5913();let _0x2a1cca=_0x59133d[_0x22b37f];return _0x2a1cca;}export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a131_0x2c7e0b(0x222),'type':a131_0x2c7e0b(0x21f),'description':a131_0x2c7e0b(0x21a),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a131_0x2c7e0b(0x208),'type':a131_0x2c7e0b(0x216),'required':!![],'description':'Runtime\x20role\x20id\x20or\x20exact\x20role\x20name'};export function readRuntimePagination(_0x10bfcb){const _0xb7272f=a131_0x2c7e0b,_0x379acc=_0x10bfcb['num'](_0xb7272f(0x213),0x1),_0x1cd26f=_0x10bfcb[_0xb7272f(0x1fc)](_0xb7272f(0x222),0x14);if(!Number[_0xb7272f(0x21d)](_0x379acc)||_0x379acc<0x1)throw CliErrors[_0xb7272f(0x219)](_0xb7272f(0x209));if(!Number['isSafeInteger'](_0x1cd26f)||_0x1cd26f<0x1||_0x1cd26f>0x64)throw CliErrors['validation'](_0xb7272f(0x21b));return{'page':_0x379acc,'pageSize':_0x1cd26f};}export function paginateRuntimeItems(_0x1f0c47,_0x360468,_0x3cf054){const _0x1bdb12=a131_0x2c7e0b,_0x4c8c09=(_0x360468-0x1)*_0x3cf054;return{'items':_0x1f0c47[_0x1bdb12(0x21c)](_0x4c8c09,_0x4c8c09+_0x3cf054),'paging':{'currentPage':_0x360468,'pageSize':_0x3cf054,'totalCount':_0x1f0c47[_0x1bdb12(0x1f5)]}};}export function projectRuntimeRole(_0x56aa54){const _0x1900d7=a131_0x2c7e0b;return{'id':_0x56aa54['id'],'roleName':_0x56aa54[_0x1900d7(0x1fb)]??null,'roleType':_0x56aa54[_0x1900d7(0x1f8)]??null,'remark':_0x56aa54[_0x1900d7(0x218)]??null,'userCount':_0x56aa54[_0x1900d7(0x20a)]??0x0,'permitCount':_0x56aa54[_0x1900d7(0x201)]??0x0};}export function projectRuntimeUser(_0x52b9ea){const _0x4b243e=a131_0x2c7e0b,_0x148571=normalizeRuntimeUserId(_0x52b9ea[_0x4b243e(0x211)]);if(!_0x148571)return null;return{'userId':_0x148571,'username':_0x52b9ea['userName']??null,'nickname':_0x52b9ea['nickName']??null,'displayName':_0x52b9ea['displayName']??null,'email':_0x52b9ea[_0x4b243e(0x217)]??null,'status':_0x52b9ea['status']??null};}export function projectRuntimeRoleMember(_0x272367){const _0x3ecbc5=a131_0x2c7e0b,_0x2c4836=normalizeRuntimeUserId(_0x272367['userId']);if(!_0x2c4836)return null;return{'userId':_0x2c4836,'username':_0x272367[_0x3ecbc5(0x20b)]??null,'nickname':_0x272367[_0x3ecbc5(0x207)]??null};}export function readRuntimeRoleRef(_0x38e0d3){const _0x544cfa=a131_0x2c7e0b,_0x1dbfa5=_0x38e0d3[_0x544cfa(0x1fa)](_0x544cfa(0x208))[_0x544cfa(0x210)]();if(!_0x1dbfa5)throw CliErrors['flagMissing'](_0x544cfa(0x208),_0x544cfa(0x203));return _0x1dbfa5;}export function resolveRuntimeRoleGroup(_0x3dfe90,_0x4457b2,_0x5274bd){const _0x598f59=a131_0x2c7e0b,_0x1b89f2=/^\d+$/[_0x598f59(0x1fd)](_0x4457b2)?_0x5274bd[_0x598f59(0x204)](_0x6757b8=>_0x6757b8['id']===Number(_0x4457b2)):_0x5274bd[_0x598f59(0x204)](_0x303dc9=>_0x303dc9[_0x598f59(0x1fb)]===_0x4457b2);if(_0x1b89f2[_0x598f59(0x1f5)]===0x0)throw CliErrors[_0x598f59(0x219)](_0x598f59(0x212)+_0x4457b2+_0x598f59(0x1fe)+_0x3dfe90+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x1b89f2['length']>0x1){const _0x3b065b=_0x1b89f2[_0x598f59(0x20f)](_0x34250d=>_0x34250d['id'])[_0x598f59(0x214)](',\x20');throw CliErrors[_0x598f59(0x219)](_0x598f59(0x1f9)+_0x4457b2+_0x598f59(0x1f4)+_0x3b065b+').',_0x598f59(0x220));}return _0x1b89f2[0x0];}function normalizeRuntimeUserId(_0x2486d2){const _0x4e948b=a131_0x2c7e0b;if(typeof _0x2486d2!==_0x4e948b(0x216)&&typeof _0x2486d2!=='number')return null;const _0x33c731=String(_0x2486d2)[_0x4e948b(0x210)]();return _0x33c731||null;}
1
+ const a132_0x208e17=a132_0x3b76;(function(_0x131c15,_0x495287){const _0x3f5231=a132_0x3b76,_0x2b8355=_0x131c15();while(!![]){try{const _0x37dbe9=-parseInt(_0x3f5231(0x13b))/0x1+-parseInt(_0x3f5231(0x135))/0x2+-parseInt(_0x3f5231(0x117))/0x3+-parseInt(_0x3f5231(0x118))/0x4*(parseInt(_0x3f5231(0x123))/0x5)+-parseInt(_0x3f5231(0x119))/0x6*(parseInt(_0x3f5231(0x11a))/0x7)+-parseInt(_0x3f5231(0x130))/0x8+-parseInt(_0x3f5231(0x128))/0x9*(-parseInt(_0x3f5231(0x139))/0xa);if(_0x37dbe9===_0x495287)break;else _0x2b8355['push'](_0x2b8355['shift']());}catch(_0x43edeb){_0x2b8355['push'](_0x2b8355['shift']());}}}(a132_0x1deb,0x309af));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a132_0x208e17(0x138),'type':a132_0x208e17(0x12f),'description':'Page\x20index\x20(1-based)','default':0x1};function a132_0x1deb(){const _0x150e69=['length','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','flagMissing','string','role','email','page-size','1677095ncunzg','validation','Runtime\x20role\x20name\x20\x22','code','nickName','17197335iYAbPG','\x22\x20is\x20ambiguous\x20(ids:\x20','Runtime\x20role\x20\x22','username','isSafeInteger','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','userName','number','634000EsxSQJ','slice','filter','displayName','toString','757094uPGCrZ','num','userId','page','10AypbBh','join','259283qcnXce','trim','remark','805683oEDsRd','4XAfmuF','24prxUws','683669tmboVF','roleType'];a132_0x1deb=function(){return _0x150e69;};return a132_0x1deb();}export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a132_0x208e17(0x122),'type':a132_0x208e17(0x12f),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a132_0x208e17(0x11f),'required':!![],'description':a132_0x208e17(0x11d)};export function readRuntimePagination(_0x2b9689){const _0x2d02fa=a132_0x208e17,_0x3689a1=_0x2b9689[_0x2d02fa(0x136)](_0x2d02fa(0x138),0x1),_0x1610be=_0x2b9689[_0x2d02fa(0x136)](_0x2d02fa(0x122),0x14);if(!Number[_0x2d02fa(0x12c)](_0x3689a1)||_0x3689a1<0x1)throw CliErrors[_0x2d02fa(0x124)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number['isSafeInteger'](_0x1610be)||_0x1610be<0x1||_0x1610be>0x64)throw CliErrors[_0x2d02fa(0x124)](_0x2d02fa(0x12d));return{'page':_0x3689a1,'pageSize':_0x1610be};}export function paginateRuntimeItems(_0x209e8c,_0x3c07fe,_0x32e705){const _0x112fb2=a132_0x208e17,_0x3332f6=(_0x3c07fe-0x1)*_0x32e705;return{'items':_0x209e8c[_0x112fb2(0x131)](_0x3332f6,_0x3332f6+_0x32e705),'paging':{'currentPage':_0x3c07fe,'pageSize':_0x32e705,'totalCount':_0x209e8c[_0x112fb2(0x11c)]}};}export function projectRuntimeRole(_0x246929){const _0x3b67b7=a132_0x208e17;return{'id':_0x246929['id'],'roleName':_0x246929['roleName']??null,'roleType':_0x246929[_0x3b67b7(0x11b)]??null,'remark':_0x246929[_0x3b67b7(0x116)]??null,'userCount':_0x246929['userCount']??0x0,'permitCount':_0x246929['permitCount']??0x0};}function a132_0x3b76(_0x3f3f5b,_0x257237){_0x3f3f5b=_0x3f3f5b-0x115;const _0x1deb97=a132_0x1deb();let _0x3b7687=_0x1deb97[_0x3f3f5b];return _0x3b7687;}export function projectRuntimeUser(_0x4b3715){const _0x35cc97=a132_0x208e17,_0x23abfe=normalizeRuntimeUserId(_0x4b3715[_0x35cc97(0x126)]);if(!_0x23abfe)return null;return{'userId':_0x23abfe,'username':_0x4b3715[_0x35cc97(0x12e)]??null,'nickname':_0x4b3715[_0x35cc97(0x127)]??null,'displayName':_0x4b3715[_0x35cc97(0x133)]??null,'email':_0x4b3715[_0x35cc97(0x121)]??null,'status':_0x4b3715['status']??null};}export function projectRuntimeRoleMember(_0x36458e){const _0x3a1c68=a132_0x208e17,_0x34be5a=normalizeRuntimeUserId(_0x36458e[_0x3a1c68(0x137)]);if(!_0x34be5a)return null;return{'userId':_0x34be5a,'username':_0x36458e[_0x3a1c68(0x12b)]??null,'nickname':_0x36458e['nickname']??null};}export function readRuntimeRoleRef(_0x5d69e7){const _0x6ec5a4=a132_0x208e17,_0x270b1a=_0x5d69e7['str'](_0x6ec5a4(0x120))['trim']();if(!_0x270b1a)throw CliErrors[_0x6ec5a4(0x11e)](_0x6ec5a4(0x120),'Pass\x20--role\x20<id|name>.');return _0x270b1a;}export function resolveRuntimeRoleGroup(_0x895d11,_0x244a6e,_0x2869eb){const _0x4e5e39=a132_0x208e17,_0x47311f=/^\d+$/['test'](_0x244a6e)?BigInt(_0x244a6e)[_0x4e5e39(0x134)]():null,_0x3f9f6e=_0x47311f!==null?_0x2869eb['filter'](_0xa9f316=>String(_0xa9f316['id'])===_0x47311f):_0x2869eb[_0x4e5e39(0x132)](_0x5d4451=>_0x5d4451['roleName']===_0x244a6e);if(_0x3f9f6e[_0x4e5e39(0x11c)]===0x0)throw CliErrors[_0x4e5e39(0x124)](_0x4e5e39(0x12a)+_0x244a6e+'\x22\x20not\x20found\x20in\x20app\x20'+_0x895d11+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x3f9f6e[_0x4e5e39(0x11c)]>0x1){const _0x527566=_0x3f9f6e['map'](_0x47db25=>_0x47db25['id'])[_0x4e5e39(0x13a)](',\x20');throw CliErrors[_0x4e5e39(0x124)](_0x4e5e39(0x125)+_0x244a6e+_0x4e5e39(0x129)+_0x527566+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0x3f9f6e[0x0];}function normalizeRuntimeUserId(_0x5a5d36){const _0xe1d24e=a132_0x208e17;if(typeof _0x5a5d36!=='string'&&typeof _0x5a5d36!=='number')return null;const _0x29de91=String(_0x5a5d36)[_0xe1d24e(0x115)]();return _0x29de91||null;}
@@ -1 +1 @@
1
- const a132_0x5201a9=a132_0x464d;(function(_0x1aad87,_0x3a45bb){const _0x272cbc=a132_0x464d,_0x7106e=_0x1aad87();while(!![]){try{const _0x35df39=parseInt(_0x272cbc(0x18a))/0x1+-parseInt(_0x272cbc(0x182))/0x2*(-parseInt(_0x272cbc(0x188))/0x3)+parseInt(_0x272cbc(0x194))/0x4+-parseInt(_0x272cbc(0x185))/0x5*(parseInt(_0x272cbc(0x193))/0x6)+parseInt(_0x272cbc(0x184))/0x7*(parseInt(_0x272cbc(0x18b))/0x8)+-parseInt(_0x272cbc(0x17e))/0x9+parseInt(_0x272cbc(0x189))/0xa*(-parseInt(_0x272cbc(0x180))/0xb);if(_0x35df39===_0x3a45bb)break;else _0x7106e['push'](_0x7106e['shift']());}catch(_0x53245a){_0x7106e['push'](_0x7106e['shift']());}}}(a132_0xadaa,0x5c162));function a132_0x464d(_0x3ce754,_0x38095b){_0x3ce754=_0x3ce754-0x17e;const _0xadaad1=a132_0xadaa();let _0x464de8=_0xadaad1[_0x3ce754];return _0x464de8;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a132_0x5201a9(0x191),'command':'runtime-role-list','description':a132_0x5201a9(0x192),'risk':a132_0x5201a9(0x17f),'flags':[{'name':a132_0x5201a9(0x18d),'type':'string','description':a132_0x5201a9(0x183)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49301c){readRuntimePagination(_0x49301c);},async 'execute'(_0x4d0d4b){const _0x80e221=a132_0x5201a9,{page:_0x520d8f,pageSize:_0x17f77e}=readRuntimePagination(_0x4d0d4b),_0x353777=_0x4d0d4b[_0x80e221(0x190)](_0x80e221(0x18d))[_0x80e221(0x187)](),{items:_0x53b589,paging:_0x382738}=await listApprovalRuntimeRoles(_0x4d0d4b[_0x80e221(0x18f)],{..._0x353777?{'roleName':_0x353777}:{},'currentPage':_0x520d8f,'pageSize':_0x17f77e}),_0x1ec9a8=_0x53b589[_0x80e221(0x18c)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x4d0d4b[_0x80e221(0x18f)],'scope':_0x80e221(0x181),..._0x353777?{'keyword':_0x353777}:{},'roles':_0x1ec9a8,'paging':_0x382738},'message':_0x80e221(0x186)+_0x1ec9a8['length']+_0x80e221(0x18e)};}};function a132_0xadaa(){const _0x2fb395=['6oGqmDH','80GwkoOy','606160CDcUhD','2296024DNwklH','map','keyword','\x20runtime\x20role(s)','appCode','str','flow','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','144REcmbi','216028qvvPxU','4341501ndqoYj','read','1102046XHMcmr','runtime','653738vwhOPM','Optional\x20runtime\x20role-name\x20keyword','14UKFLGr','47260MtAUqT','Found\x20','trim'];a132_0xadaa=function(){return _0x2fb395;};return a132_0xadaa();}
1
+ const a133_0x20f6ff=a133_0x33b8;(function(_0x206326,_0x460268){const _0x14f58c=a133_0x33b8,_0x3d1549=_0x206326();while(!![]){try{const _0x16d4b9=-parseInt(_0x14f58c(0xbb))/0x1+-parseInt(_0x14f58c(0xb0))/0x2*(-parseInt(_0x14f58c(0xb6))/0x3)+parseInt(_0x14f58c(0xb2))/0x4*(parseInt(_0x14f58c(0xac))/0x5)+-parseInt(_0x14f58c(0xb4))/0x6*(parseInt(_0x14f58c(0xa8))/0x7)+-parseInt(_0x14f58c(0xb3))/0x8*(parseInt(_0x14f58c(0xba))/0x9)+parseInt(_0x14f58c(0xb9))/0xa*(-parseInt(_0x14f58c(0xb7))/0xb)+-parseInt(_0x14f58c(0xab))/0xc*(-parseInt(_0x14f58c(0xae))/0xd);if(_0x16d4b9===_0x460268)break;else _0x3d1549['push'](_0x3d1549['shift']());}catch(_0x3a960f){_0x3d1549['push'](_0x3d1549['shift']());}}}(a133_0x7820,0x2a40e));function a133_0x33b8(_0x39275e,_0x683016){_0x39275e=_0x39275e-0xa5;const _0x782090=a133_0x7820();let _0x33b88e=_0x782090[_0x39275e];return _0x33b88e;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';function a133_0x7820(){const _0x371839=['13oKcAor','Optional\x20runtime\x20role-name\x20keyword','28QmnZKQ','keyword','596552TDTDww','32upjnuo','7962UAYRgT','flow','23355KCdMFX','2419989aZDOpA','map','10hvatce','215181siktUg','339315kuFXaD','appCode','runtime','runtime-role-list','1141JlYwZa','read','length','7644660niTIYC','10KBCdRY','trim'];a133_0x7820=function(){return _0x371839;};return a133_0x7820();}export const flowRuntimeRoleList={'service':a133_0x20f6ff(0xb5),'command':a133_0x20f6ff(0xa7),'description':'List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','risk':a133_0x20f6ff(0xa9),'flags':[{'name':a133_0x20f6ff(0xb1),'type':'string','description':a133_0x20f6ff(0xaf)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x16b8c1){readRuntimePagination(_0x16b8c1);},async 'execute'(_0x4cc60e){const _0x5950da=a133_0x20f6ff,{page:_0x1b73cf,pageSize:_0x3bc7a7}=readRuntimePagination(_0x4cc60e),_0x3683df=_0x4cc60e['str']('keyword')[_0x5950da(0xad)](),{items:_0x1e703d,paging:_0x84ef8}=await listApprovalRuntimeRoles(_0x4cc60e[_0x5950da(0xa5)],{..._0x3683df?{'roleName':_0x3683df}:{},'currentPage':_0x1b73cf,'pageSize':_0x3bc7a7}),_0x591b57=_0x1e703d[_0x5950da(0xb8)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x4cc60e[_0x5950da(0xa5)],'scope':_0x5950da(0xa6),..._0x3683df?{'keyword':_0x3683df}:{},'roles':_0x591b57,'paging':_0x84ef8},'message':'Found\x20'+_0x591b57[_0x5950da(0xaa)]+'\x20runtime\x20role(s)'};}};
@@ -1 +1 @@
1
- const a133_0x4b3f58=a133_0x12fa;(function(_0x1928bc,_0x2c8b7a){const _0xa8189f=a133_0x12fa,_0x3104b6=_0x1928bc();while(!![]){try{const _0x204772=parseInt(_0xa8189f(0x109))/0x1*(-parseInt(_0xa8189f(0x108))/0x2)+parseInt(_0xa8189f(0x102))/0x3+-parseInt(_0xa8189f(0x10c))/0x4+-parseInt(_0xa8189f(0x10e))/0x5*(parseInt(_0xa8189f(0x10a))/0x6)+parseInt(_0xa8189f(0x101))/0x7*(parseInt(_0xa8189f(0x10d))/0x8)+parseInt(_0xa8189f(0x10f))/0x9*(-parseInt(_0xa8189f(0xfe))/0xa)+parseInt(_0xa8189f(0xfc))/0xb;if(_0x204772===_0x2c8b7a)break;else _0x3104b6['push'](_0x3104b6['shift']());}catch(_0x444eb0){_0x3104b6['push'](_0x3104b6['shift']());}}}(a133_0x429a,0x481bd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a133_0x12fa(_0x2ce81e,_0x28c4a0){_0x2ce81e=_0x2ce81e-0xfc;const _0x429a30=a133_0x429a();let _0x12fa20=_0x429a30[_0x2ce81e];return _0x12fa20;}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';function a133_0x429a(){const _0x22eeb6=['Found\x20','2737zpRgIW','597159HPIyPf','filter','read','roleType','roleName','runtime','2drGqzn','195997XcSfxJ','842982jupcFt','appCode','507480MjeXkq','1544MlNGey','20qCOesZ','5295267QmNJix','userList','items','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','16434649jGffYU','paging','10Qvvaqd','length'];a133_0x429a=function(){return _0x22eeb6;};return a133_0x429a();}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':'flow','command':'runtime-role-user-list','description':a133_0x4b3f58(0x112),'risk':a133_0x4b3f58(0x104),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x29e254){readRuntimeRoleRef(_0x29e254),readRuntimePagination(_0x29e254);},async 'execute'(_0x3baae2){const _0x3320e1=a133_0x4b3f58,_0x5e2a42=resolveRuntimeRoleGroup(_0x3baae2[_0x3320e1(0x10b)],readRuntimeRoleRef(_0x3baae2),await listApprovalRuntimeRoleUsers(_0x3baae2[_0x3320e1(0x10b)])),_0x52b0ca=(_0x5e2a42[_0x3320e1(0x110)]??[])['map'](projectRuntimeRoleMember)[_0x3320e1(0x103)](_0x39aede=>_0x39aede!==null),{page:_0x1bcb63,pageSize:_0x394d7f}=readRuntimePagination(_0x3baae2),_0x3ff97f=paginateRuntimeItems(_0x52b0ca,_0x1bcb63,_0x394d7f);return{'ok':!![],'data':{'appCode':_0x3baae2[_0x3320e1(0x10b)],'scope':_0x3320e1(0x107),'role':{'id':_0x5e2a42['id'],'roleName':_0x5e2a42[_0x3320e1(0x106)]??null,'roleType':_0x5e2a42[_0x3320e1(0x105)]??null},'users':_0x3ff97f[_0x3320e1(0x111)],'paging':_0x3ff97f[_0x3320e1(0xfd)]},'message':_0x3320e1(0x100)+_0x52b0ca[_0x3320e1(0xff)]+'\x20runtime\x20member(s)\x20in\x20role\x20'+(_0x5e2a42['roleName']??_0x5e2a42['id'])};}};
1
+ function a134_0x31d3(){const _0x1b46b1=['read','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','116GfXGGz','Found\x20','appCode','987240UlyJzj','147TSNhkc','115007vsANXy','1382112FESgLi','runtime','112440IRrrhS','\x20runtime\x20member(s)\x20in\x20role\x20','92720EuZdaU','588632GYabaD','paging','length','2QARYpC','flow','roleName','306eUWOkW','5361AnXXIC','runtime-role-user-list','map','roleType'];a134_0x31d3=function(){return _0x1b46b1;};return a134_0x31d3();}function a134_0x4547(_0x686f0e,_0x4ad60f){_0x686f0e=_0x686f0e-0xe0;const _0x31d303=a134_0x31d3();let _0x4547b7=_0x31d303[_0x686f0e];return _0x4547b7;}const a134_0x543191=a134_0x4547;(function(_0x4512cf,_0x227365){const _0x1b337e=a134_0x4547,_0x3d30d0=_0x4512cf();while(!![]){try{const _0x186adc=parseInt(_0x1b337e(0xf3))/0x1*(parseInt(_0x1b337e(0xe4))/0x2)+-parseInt(_0x1b337e(0xe8))/0x3*(-parseInt(_0x1b337e(0xee))/0x4)+parseInt(_0x1b337e(0xf1))/0x5+-parseInt(_0x1b337e(0xf4))/0x6+parseInt(_0x1b337e(0xf2))/0x7*(parseInt(_0x1b337e(0xf6))/0x8)+-parseInt(_0x1b337e(0xe7))/0x9*(parseInt(_0x1b337e(0xe0))/0xa)+parseInt(_0x1b337e(0xe1))/0xb;if(_0x186adc===_0x227365)break;else _0x3d30d0['push'](_0x3d30d0['shift']());}catch(_0x30f18){_0x3d30d0['push'](_0x3d30d0['shift']());}}}(a134_0x31d3,0x28db1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a134_0x543191(0xe5),'command':a134_0x543191(0xe9),'description':a134_0x543191(0xed),'risk':a134_0x543191(0xec),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x354726){readRuntimeRoleRef(_0x354726),readRuntimePagination(_0x354726);},async 'execute'(_0x9b5af7){const _0x24d92f=a134_0x543191,_0x273dd9=resolveRuntimeRoleGroup(_0x9b5af7['appCode'],readRuntimeRoleRef(_0x9b5af7),await listApprovalRuntimeRoleUsers(_0x9b5af7[_0x24d92f(0xf0)])),_0x4c7866=(_0x273dd9['userList']??[])[_0x24d92f(0xea)](projectRuntimeRoleMember)['filter'](_0x5b3f52=>_0x5b3f52!==null),{page:_0x1cbeac,pageSize:_0x22643a}=readRuntimePagination(_0x9b5af7),_0x1aec92=paginateRuntimeItems(_0x4c7866,_0x1cbeac,_0x22643a);return{'ok':!![],'data':{'appCode':_0x9b5af7[_0x24d92f(0xf0)],'scope':_0x24d92f(0xf5),'role':{'id':_0x273dd9['id'],'roleName':_0x273dd9[_0x24d92f(0xe6)]??null,'roleType':_0x273dd9[_0x24d92f(0xeb)]??null},'users':_0x1aec92['items'],'paging':_0x1aec92[_0x24d92f(0xe2)]},'message':_0x24d92f(0xef)+_0x4c7866[_0x24d92f(0xe3)]+_0x24d92f(0xf7)+(_0x273dd9[_0x24d92f(0xe6)]??_0x273dd9['id'])};}};
@@ -1 +1 @@
1
- function a134_0xaff2(_0x39af99,_0x47532d){_0x39af99=_0x39af99-0xfc;const _0x48a3df=a134_0x48a3();let _0xaff2a7=_0x48a3df[_0x39af99];return _0xaff2a7;}function a134_0x48a3(){const _0x51669f=['toLowerCase','code','980613QbGtGo','2022dLfxZI','495530fhHyWw','map','348980LpUxrf','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','flagMissing','nickName','email','10PkEFqq','items','trim','2238684Tnvwie','keyword','length','Pass\x20--keyword\x20<text>.','1782906itrVnu','appCode','88QqFjxR','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','includes','str','flow','some','runtime','read','paging','filter','821016rYWqjc','Found\x20','6325nsamzv'];a134_0x48a3=function(){return _0x51669f;};return a134_0x48a3();}const a134_0x2541be=a134_0xaff2;(function(_0x1dfc4d,_0x56342c){const _0x5b4b3b=a134_0xaff2,_0x34d854=_0x1dfc4d();while(!![]){try{const _0x562101=parseInt(_0x5b4b3b(0x11a))/0x1+-parseInt(_0x5b4b3b(0x105))/0x2+parseInt(_0x5b4b3b(0x101))/0x3+-parseInt(_0x5b4b3b(0x111))/0x4+parseInt(_0x5b4b3b(0x113))/0x5*(-parseInt(_0x5b4b3b(0x117))/0x6)+-parseInt(_0x5b4b3b(0x118))/0x7*(-parseInt(_0x5b4b3b(0x107))/0x8)+-parseInt(_0x5b4b3b(0x116))/0x9*(-parseInt(_0x5b4b3b(0xfe))/0xa);if(_0x562101===_0x56342c)break;else _0x34d854['push'](_0x34d854['shift']());}catch(_0x47832f){_0x34d854['push'](_0x34d854['shift']());}}}(a134_0x48a3,0x70443));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a134_0x2541be(0x10b),'command':'runtime-user-search','description':a134_0x2541be(0x108),'risk':a134_0x2541be(0x10e),'flags':[{'name':a134_0x2541be(0x102),'type':'string','required':!![],'description':'User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3a36b1){const _0x406255=a134_0x2541be;if(!_0x3a36b1[_0x406255(0x10a)]('keyword')[_0x406255(0x100)]())throw CliErrors[_0x406255(0x11c)](_0x406255(0x102),_0x406255(0x104));readRuntimePagination(_0x3a36b1);},async 'execute'(_0x5affc8){const _0x5b70af=a134_0x2541be,_0xda1fb3=_0x5affc8[_0x5b70af(0x10a)](_0x5b70af(0x102))['trim'](),_0x3be81c=_0xda1fb3[_0x5b70af(0x114)](),_0x563ad3=(await listApprovalRuntimeUsers(_0x5affc8[_0x5b70af(0x106)]))[_0x5b70af(0x110)](_0x2f622a=>[_0x2f622a[_0x5b70af(0x115)],_0x2f622a['userName'],_0x2f622a[_0x5b70af(0xfc)],_0x2f622a['displayName'],_0x2f622a[_0x5b70af(0xfd)]][_0x5b70af(0x10c)](_0x259987=>_0x259987!==null&&_0x259987!==undefined&&String(_0x259987)[_0x5b70af(0x114)]()[_0x5b70af(0x109)](_0x3be81c)))[_0x5b70af(0x119)](projectRuntimeUser)[_0x5b70af(0x110)](_0x2b3e9d=>_0x2b3e9d!==null),{page:_0x2a80d4,pageSize:_0x9e1956}=readRuntimePagination(_0x5affc8),_0x12fb7b=paginateRuntimeItems(_0x563ad3,_0x2a80d4,_0x9e1956);return{'ok':!![],'data':{'appCode':_0x5affc8[_0x5b70af(0x106)],'scope':_0x5b70af(0x10d),'keyword':_0xda1fb3,'users':_0x12fb7b[_0x5b70af(0xff)],'paging':_0x12fb7b[_0x5b70af(0x10f)]},'message':_0x5b70af(0x112)+_0x563ad3[_0x5b70af(0x103)]+_0x5b70af(0x11b)+_0xda1fb3+'\x22'};}};
1
+ const a135_0x45084d=a135_0x5e4b;(function(_0x3a8b52,_0x5a5119){const _0x2d1fe8=a135_0x5e4b,_0xda7a70=_0x3a8b52();while(!![]){try{const _0x5ce67d=-parseInt(_0x2d1fe8(0x163))/0x1+parseInt(_0x2d1fe8(0x149))/0x2+parseInt(_0x2d1fe8(0x15f))/0x3*(parseInt(_0x2d1fe8(0x165))/0x4)+parseInt(_0x2d1fe8(0x14b))/0x5+-parseInt(_0x2d1fe8(0x166))/0x6*(parseInt(_0x2d1fe8(0x158))/0x7)+parseInt(_0x2d1fe8(0x153))/0x8+parseInt(_0x2d1fe8(0x156))/0x9*(-parseInt(_0x2d1fe8(0x160))/0xa);if(_0x5ce67d===_0x5a5119)break;else _0xda7a70['push'](_0xda7a70['shift']());}catch(_0x57dac2){_0xda7a70['push'](_0xda7a70['shift']());}}}(a135_0x1e5c,0x7ced9));function a135_0x1e5c(){const _0x318fa3=['paging','runtime','includes','7201128ShgJRB','Pass\x20--keyword\x20<text>.','toLowerCase','555003YZLcME','trim','70hnfNME','code','keyword','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','Found\x20','some','3852gqPohp','220dcWyKg','flagMissing','email','89755EKnBvG','runtime-user-search','968thtaTT','265368iXgxLk','flow','489280bhdgzw','items','4724525FHQRtF','nickName','str','filter','userName'];a135_0x1e5c=function(){return _0x318fa3;};return a135_0x1e5c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a135_0x5e4b(_0x226f92,_0x29ee44){_0x226f92=_0x226f92-0x148;const _0x1e5cbf=a135_0x1e5c();let _0x5e4b6d=_0x1e5cbf[_0x226f92];return _0x5e4b6d;}import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a135_0x45084d(0x148),'command':a135_0x45084d(0x164),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':'read','flags':[{'name':a135_0x45084d(0x15a),'type':'string','required':!![],'description':a135_0x45084d(0x15c)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf84419){const _0x406adb=a135_0x45084d;if(!_0xf84419['str'](_0x406adb(0x15a))[_0x406adb(0x157)]())throw CliErrors[_0x406adb(0x161)](_0x406adb(0x15a),_0x406adb(0x154));readRuntimePagination(_0xf84419);},async 'execute'(_0x43ea0b){const _0x54040a=a135_0x45084d,_0x5d9b34=_0x43ea0b[_0x54040a(0x14d)](_0x54040a(0x15a))['trim'](),_0x33ed32=_0x5d9b34['toLowerCase'](),_0x2b7045=(await listApprovalRuntimeUsers(_0x43ea0b['appCode']))['filter'](_0x2ccecd=>[_0x2ccecd[_0x54040a(0x159)],_0x2ccecd[_0x54040a(0x14f)],_0x2ccecd[_0x54040a(0x14c)],_0x2ccecd['displayName'],_0x2ccecd[_0x54040a(0x162)]][_0x54040a(0x15e)](_0x52aee9=>_0x52aee9!==null&&_0x52aee9!==undefined&&String(_0x52aee9)[_0x54040a(0x155)]()[_0x54040a(0x152)](_0x33ed32)))['map'](projectRuntimeUser)[_0x54040a(0x14e)](_0x1ffd38=>_0x1ffd38!==null),{page:_0x37fabd,pageSize:_0x576fdf}=readRuntimePagination(_0x43ea0b),_0x30fca6=paginateRuntimeItems(_0x2b7045,_0x37fabd,_0x576fdf);return{'ok':!![],'data':{'appCode':_0x43ea0b['appCode'],'scope':_0x54040a(0x151),'keyword':_0x5d9b34,'users':_0x30fca6[_0x54040a(0x14a)],'paging':_0x30fca6[_0x54040a(0x150)]},'message':_0x54040a(0x15d)+_0x2b7045['length']+_0x54040a(0x15b)+_0x5d9b34+'\x22'};}};
@@ -16,15 +16,19 @@ export interface PreparedFlowWrite {
16
16
  }
17
17
  /** Project a remote definition into the portable local FlowConfig contract. */
18
18
  export declare function flowDefinitionToConfig(flow: FlowDefinition): NormalizedFlowConfig;
19
+ /** Preserve the complete binding list, including an explicit empty list. */
20
+ export declare function readFlowPageBindings(flow: FlowDefinition): {
21
+ pageIds?: number[];
22
+ };
19
23
  export declare function readFlowId(ctx: RuntimeContext): number;
20
24
  export declare function readFlowFilePath(ctx: RuntimeContext): string;
21
25
  /** Read, normalize, validate, and map a local manifest to FlowDefRequest. */
22
26
  export declare function prepareFlowWrite(filePath: string, appCode: string, id?: number): Promise<PreparedFlowWrite>;
23
27
  /** Confirm a draft create/update with a concise, non-sensitive target summary. */
24
28
  export declare function confirmFlowWrite(ctx: RuntimeContext, operation: "create" | "update", request: FlowDefinitionWriteRequest): Promise<void>;
25
- export declare function flowSelector(appCode: string, id?: number, flow?: FlowDefinition): Record<string, unknown>;
29
+ export declare function flowSelector(appCode: string, id?: number | string, flow?: FlowDefinition): Record<string, unknown>;
26
30
  /** Build the design-time workflow page URL for the active CLI environment. */
27
- export declare function buildFlowUrl(appCode: string, workflowId: number): string;
31
+ export declare function buildFlowUrl(appCode: string, workflowId: number | string): string;
28
32
  export declare function buildFlowIdDryRun(operation: "publish", path: string, appCode: string, id: number, after: Record<string, unknown>): import("@lovrabet/cli-framework").DryRunResult & {
29
33
  operation: "publish";
30
34
  selector: Record<string, unknown>;
@@ -1 +1 @@
1
- const a135_0x5aacae=a135_0x32cc;(function(_0x3d932a,_0x1c47f8){const _0x2bc85a=a135_0x32cc,_0x38fc44=_0x3d932a();while(!![]){try{const _0x5c31c9=-parseInt(_0x2bc85a(0x11a))/0x1*(-parseInt(_0x2bc85a(0xf1))/0x2)+parseInt(_0x2bc85a(0xe0))/0x3*(parseInt(_0x2bc85a(0xe2))/0x4)+parseInt(_0x2bc85a(0xff))/0x5+parseInt(_0x2bc85a(0x119))/0x6*(parseInt(_0x2bc85a(0x112))/0x7)+-parseInt(_0x2bc85a(0x111))/0x8*(parseInt(_0x2bc85a(0x10b))/0x9)+parseInt(_0x2bc85a(0xde))/0xa+-parseInt(_0x2bc85a(0xf3))/0xb;if(_0x5c31c9===_0x1c47f8)break;else _0x38fc44['push'](_0x38fc44['shift']());}catch(_0x42c3f0){_0x38fc44['push'](_0x38fc44['shift']());}}}(a135_0x24ba,0x96e9b));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';function a135_0x32cc(_0x4ad627,_0x28592e){_0x4ad627=_0x4ad627-0xdd;const _0x24ba60=a135_0x24ba();let _0x32cc52=_0x24ba60[_0x4ad627];return _0x32cc52;}import{CliErrors}from'../../errors.js';import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a135_0x5aacae(0x115),'detail':a135_0x5aacae(0x110),'create':a135_0x5aacae(0x105),'update':a135_0x5aacae(0xf9),'publish':a135_0x5aacae(0xf4)};export const FLOW_ID_FLAG={'name':'id','type':'number','required':!![],'description':a135_0x5aacae(0xe6)};export const FLOW_FILE_FLAG={'name':'file','type':a135_0x5aacae(0xf0),'required':!![],'description':'Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file'};function a135_0x24ba(){const _0x2e3d00=['Continue?\x20[y/N]\x20','/smartapi/flow/create','message','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','warnings','number','flagMissing','9wVNngU','\x20\x20flowName:\x20','Unable\x20to\x20read\x20FlowConfig:\x20','flowName','apiError','/smartapi/flow/detail','4747552hzniMH','56AuYvXG','normalized','errors','/smartapi/flow/page','trim','flowType','appCode','854790TcBJiz','353711XeWpmH','valid','10571600mxXDHk','isArray','2804307UqFvNc','\x20\x20flowId:\x20','4IZCgTY','INDEPENDENT_FLOW','POST','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','map','bool','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','/data/workflow?workflowId=','Approval\x20flow\x20','flowCode','Pass\x20--file\x20<path>.','num','FlowConfig\x20validation\x20failed\x20for\x20','string','2hsAKtk','path','34295855QvSkai','/smartapi/flow/publish','datasetCode','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','validation','file','/smartapi/flow/update','File:\x20','nonInteractive','isSafeInteger','pageId','yes','4220140UUZkGW','flowDesc','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','flowJson','join'];a135_0x24ba=function(){return _0x2e3d00;};return a135_0x24ba();}export function flowDefinitionToConfig(_0x18aac7){const _0x5ae6c1=a135_0x5aacae;if(typeof _0x18aac7[_0x5ae6c1(0x10e)]!=='string'||_0x18aac7[_0x5ae6c1(0x10e)][_0x5ae6c1(0x116)]()==='')throw CliErrors[_0x5ae6c1(0x10f)](_0x5ae6c1(0x107),_0x5ae6c1(0x101));if(typeof _0x18aac7[_0x5ae6c1(0x102)]!=='object'||_0x18aac7[_0x5ae6c1(0x102)]===null||Array[_0x5ae6c1(0xdf)](_0x18aac7[_0x5ae6c1(0x102)]))throw CliErrors[_0x5ae6c1(0x10f)](_0x5ae6c1(0x107),_0x5ae6c1(0xe9));if(_0x18aac7[_0x5ae6c1(0x117)]!=='FORM_FLOW'&&_0x18aac7['flowType']!==_0x5ae6c1(0xe3))throw CliErrors[_0x5ae6c1(0x10f)](_0x5ae6c1(0x107),_0x5ae6c1(0xf6));const _0x3dbc30={'flowName':_0x18aac7[_0x5ae6c1(0x10e)],...typeof _0x18aac7['flowDesc']===_0x5ae6c1(0xf0)?{'flowDesc':_0x18aac7[_0x5ae6c1(0x100)]}:{},'flowType':_0x18aac7['flowType'],...typeof _0x18aac7['datasetCode']===_0x5ae6c1(0xf0)&&_0x18aac7[_0x5ae6c1(0xf5)][_0x5ae6c1(0x116)]()?{'datasetCode':_0x18aac7[_0x5ae6c1(0xf5)]}:{},...typeof _0x18aac7[_0x5ae6c1(0xfd)]===_0x5ae6c1(0x109)?{'pageId':_0x18aac7[_0x5ae6c1(0xfd)]}:{},'flowJson':_0x18aac7[_0x5ae6c1(0x102)]},_0x52c757=validateFlowConfig(_0x3dbc30);if(!_0x52c757[_0x5ae6c1(0xdd)]){const _0x98a2cd=_0x52c757[_0x5ae6c1(0x114)][_0x5ae6c1(0xe7)](_0x35ae01=>_0x35ae01[_0x5ae6c1(0xf2)]+':\x20'+_0x35ae01[_0x5ae6c1(0x106)])[_0x5ae6c1(0x103)](';\x20');throw CliErrors[_0x5ae6c1(0xf7)]('Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.',_0x98a2cd);}return{'config':_0x52c757[_0x5ae6c1(0x113)],'warnings':_0x52c757[_0x5ae6c1(0x108)],'removedPaths':_0x52c757[_0x5ae6c1(0x108)][_0x5ae6c1(0xe7)](_0x1a1478=>_0x1a1478[_0x5ae6c1(0xf2)])};}export function readFlowId(_0x55e65b){const _0x2ad861=a135_0x5aacae,_0x421a89=_0x55e65b[_0x2ad861(0xee)]('id');if(!Number[_0x2ad861(0xfc)](_0x421a89)||_0x421a89<=0x0)throw CliErrors['validation']('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x421a89;}export function readFlowFilePath(_0x20bc7f){const _0x2552e2=a135_0x5aacae,_0x36f469=_0x20bc7f['str'](_0x2552e2(0xf8))[_0x2552e2(0x116)]();if(!_0x36f469)throw CliErrors[_0x2552e2(0x10a)](_0x2552e2(0xf8),_0x2552e2(0xed));return _0x36f469;}export async function prepareFlowWrite(_0x48ec84,_0x346557,_0x5d9b49){const _0x31bd57=a135_0x5aacae;let _0x1fdaa8;try{_0x1fdaa8=await readFlowConfigFile(_0x48ec84);}catch(_0x5ad7cd){const _0xe2163=_0x5ad7cd instanceof Error?_0x5ad7cd['message']:String(_0x5ad7cd);throw CliErrors['validation'](_0x31bd57(0x10d)+_0xe2163,_0x31bd57(0xfa)+_0x48ec84);}const _0x4ef6b9=validateFlowConfig(_0x1fdaa8);if(!_0x4ef6b9[_0x31bd57(0xdd)]){const _0x3cdd60=_0x4ef6b9[_0x31bd57(0x114)][_0x31bd57(0xe7)](_0x330443=>_0x330443[_0x31bd57(0xf2)]+':\x20'+_0x330443[_0x31bd57(0x106)])[_0x31bd57(0x103)](';\x20');throw CliErrors[_0x31bd57(0xf7)](_0x31bd57(0xef)+_0x48ec84+'.',_0x3cdd60||_0x31bd57(0xe5));}const _0x596feb=_0x4ef6b9['normalized'],_0x1507a1={..._0x5d9b49!==undefined?{'id':_0x5d9b49}:{},'flowName':_0x596feb[_0x31bd57(0x10e)],..._0x596feb[_0x31bd57(0x100)]!==undefined?{'flowDesc':_0x596feb[_0x31bd57(0x100)]}:{},'flowType':_0x596feb['flowType'],'appCode':_0x346557,..._0x596feb[_0x31bd57(0xf5)]!==undefined?{'datasetCode':_0x596feb[_0x31bd57(0xf5)]}:{},..._0x596feb['pageId']!==undefined?{'pageId':_0x596feb[_0x31bd57(0xfd)]}:{},'flowJson':_0x596feb[_0x31bd57(0x102)]};return{'request':_0x1507a1,'warnings':_0x4ef6b9[_0x31bd57(0x108)]};}export async function confirmFlowWrite(_0x37dead,_0x249eb3,_0x57c277){const _0x2c48e9=a135_0x5aacae;if(_0x37dead[_0x2c48e9(0xfb)]||_0x37dead[_0x2c48e9(0xe8)](_0x2c48e9(0xfe)))return;await requireConfirmationPrompt({'lines':[_0x2c48e9(0xeb)+_0x249eb3+':','\x20\x20appCode:\x20'+_0x37dead[_0x2c48e9(0x118)],..._0x57c277['id']!==undefined?[_0x2c48e9(0xe1)+_0x57c277['id']]:[],_0x2c48e9(0x10c)+_0x57c277[_0x2c48e9(0x10e)],'\x20\x20flowType:\x20'+_0x57c277[_0x2c48e9(0x117)],..._0x57c277[_0x2c48e9(0xf5)]?['\x20\x20datasetCode:\x20'+_0x57c277[_0x2c48e9(0xf5)]]:[],_0x2c48e9(0x104)],'createCancelledError':_0xfae17a=>CliErrors['cancelled'](_0xfae17a)});}export function flowSelector(_0x6aa285,_0x3a13f1,_0x4ac78b){const _0x435d96=a135_0x5aacae;return{'appCode':_0x6aa285,..._0x3a13f1!==undefined?{'flowId':_0x3a13f1}:{},..._0x4ac78b?.[_0x435d96(0xec)]?{'flowCode':_0x4ac78b[_0x435d96(0xec)]}:{},..._0x4ac78b?.['flowName']?{'flowName':_0x4ac78b[_0x435d96(0x10e)]}:{}};}export function buildFlowUrl(_0x12226f,_0xe6766a){const _0x2a70ce=a135_0x5aacae,_0x12882c=encodeURIComponent(String(_0xe6766a));return getAppBaseUrl(_0x12226f)+_0x2a70ce(0xea)+_0x12882c;}export function buildFlowIdDryRun(_0x40f1a9,_0x1518e4,_0x45a49e,_0x1e409f,_0x1d3eb4){const _0x4e1eac=a135_0x5aacae,_0x1bbb73={'id':_0x1e409f,'appCode':_0x45a49e};return asDryRunResult({'operation':_0x40f1a9,'selector':flowSelector(_0x45a49e,_0x1e409f),'before':null,'after':_0x1d3eb4,'request':_0x1bbb73,'dryRun':!![],'backend':{'method':'POST','path':_0x1518e4},'warnings':[]},{'method':_0x4e1eac(0xe4),'url':_0x1518e4});}
1
+ function a136_0x3aee(_0x37c6be,_0x217137){_0x37c6be=_0x37c6be-0x19c;const _0x8c4b68=a136_0x8c4b();let _0x3aeeaf=_0x8c4b68[_0x37c6be];return _0x3aeeaf;}const a136_0x206bed=a136_0x3aee;(function(_0x499e6d,_0x1e0bc5){const _0x1868c1=a136_0x3aee,_0x2e75d7=_0x499e6d();while(!![]){try{const _0xe482b0=parseInt(_0x1868c1(0x1ae))/0x1+parseInt(_0x1868c1(0x1e6))/0x2+-parseInt(_0x1868c1(0x1d6))/0x3+parseInt(_0x1868c1(0x1a3))/0x4+-parseInt(_0x1868c1(0x19c))/0x5*(-parseInt(_0x1868c1(0x1d8))/0x6)+-parseInt(_0x1868c1(0x1c0))/0x7+-parseInt(_0x1868c1(0x1bc))/0x8;if(_0xe482b0===_0x1e0bc5)break;else _0x2e75d7['push'](_0x2e75d7['shift']());}catch(_0x3eac06){_0x2e75d7['push'](_0x2e75d7['shift']());}}}(a136_0x8c4b,0x69823));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';function a136_0x8c4b(){const _0x3c958c=['unbound','/smartapi/flow/create','\x20\x20flowId:\x20','/smartapi/flow/page','229324nVQIWx','test','/data/workflow?workflowId=','1465CLQvCl','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','omitted\x20(unbound)','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','warnings','3177756xiserI','object','isSafeInteger','--id\x20must\x20be\x20a\x20positive\x20integer.','valid','/smartapi/flow/detail','errors','\x20\x20pageIds:\x20','bool','num','File:\x20','807353OflRKa','validation','pageId','file','flowType','normalized','cancelled','trim','stringify','yes','length','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','omitted\x20(preserve\x20existing\x20page\x20bindings)','5443920vAppSt','replace\x20complete\x20binding\x20list','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','bind\x20pages','5271119KNWZDL','flowName','join','FlowConfig\x20validation\x20failed\x20for\x20','map','\x20\x20flowType:\x20','update','/smartapi/flow/publish','flowDesc','clear\x20all\x20page\x20bindings','str','path','some','FORM_FLOW','isArray','flowJson','flagMissing','pageIds','Cannot\x20read\x20invalid\x20or\x20unsafe\x20flow\x20page\x20identifiers.','message','/smartapi/flow/update','apiError','777678kBafjH','flowCode','8364RjUOkY','POST','datasetCode','Pass\x20--file\x20<path>.','Continue?\x20[y/N]\x20','number','string','Cannot\x20read\x20invalid\x20flow\x20page\x20bindings.','nonInteractive','\x20\x20appCode:\x20'];a136_0x8c4b=function(){return _0x3c958c;};return a136_0x8c4b();}import{CliErrors}from'../../errors.js';import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a136_0x206bed(0x1e5),'detail':a136_0x206bed(0x1a8),'create':a136_0x206bed(0x1e3),'update':a136_0x206bed(0x1d4),'publish':a136_0x206bed(0x1c7)};export const FLOW_ID_FLAG={'name':'id','type':a136_0x206bed(0x1dd),'required':!![],'description':a136_0x206bed(0x1ba)};export const FLOW_FILE_FLAG={'name':'file','type':'string','required':!![],'description':a136_0x206bed(0x19e)};export function flowDefinitionToConfig(_0x12b994){const _0x50dce7=a136_0x206bed;if(typeof _0x12b994['flowName']!=='string'||_0x12b994['flowName']['trim']()==='')throw CliErrors['apiError'](_0x50dce7(0x1be),_0x50dce7(0x19d));if(typeof _0x12b994[_0x50dce7(0x1cf)]!==_0x50dce7(0x1a4)||_0x12b994[_0x50dce7(0x1cf)]===null||Array[_0x50dce7(0x1ce)](_0x12b994['flowJson']))throw CliErrors['apiError'](_0x50dce7(0x1be),'The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.');if(_0x12b994[_0x50dce7(0x1b2)]!==_0x50dce7(0x1cd)&&_0x12b994[_0x50dce7(0x1b2)]!=='INDEPENDENT_FLOW')throw CliErrors['apiError'](_0x50dce7(0x1be),_0x50dce7(0x1a0));const _0x3a0efc={'flowName':_0x12b994[_0x50dce7(0x1c1)],...typeof _0x12b994[_0x50dce7(0x1c8)]===_0x50dce7(0x1de)?{'flowDesc':_0x12b994[_0x50dce7(0x1c8)]}:{},'flowType':_0x12b994[_0x50dce7(0x1b2)],...typeof _0x12b994[_0x50dce7(0x1da)]==='string'&&_0x12b994[_0x50dce7(0x1da)][_0x50dce7(0x1b5)]()?{'datasetCode':_0x12b994['datasetCode']}:{},...readFlowPageBindings(_0x12b994),'flowJson':_0x12b994['flowJson']},_0x52395c=validateFlowConfig(_0x3a0efc);if(!_0x52395c[_0x50dce7(0x1a7)]){const _0x51ab53=_0x52395c['errors']['map'](_0x1bf76a=>_0x1bf76a[_0x50dce7(0x1cb)]+':\x20'+_0x1bf76a[_0x50dce7(0x1d3)])['join'](';\x20');throw CliErrors[_0x50dce7(0x1af)](_0x50dce7(0x1b9),_0x51ab53);}return{'config':_0x52395c[_0x50dce7(0x1b3)],'warnings':_0x52395c[_0x50dce7(0x1a2)],'removedPaths':_0x52395c[_0x50dce7(0x1a2)][_0x50dce7(0x1c4)](_0x90bf10=>_0x90bf10[_0x50dce7(0x1cb)])};}export function readFlowPageBindings(_0x4312a5){const _0x215dd2=a136_0x206bed;let _0x5b7571;if(_0x4312a5['pageIds']!==undefined&&_0x4312a5[_0x215dd2(0x1d1)]!==null)_0x5b7571=_0x4312a5[_0x215dd2(0x1d1)];else{if(typeof _0x4312a5[_0x215dd2(0x1b0)]===_0x215dd2(0x1dd))_0x5b7571=[_0x4312a5[_0x215dd2(0x1b0)]];else{if(typeof _0x4312a5[_0x215dd2(0x1b0)]===_0x215dd2(0x1de)){const _0x1d7eb6=_0x4312a5[_0x215dd2(0x1b0)]['split'](',')['map'](_0x2cfb46=>_0x2cfb46[_0x215dd2(0x1b5)]());if(_0x1d7eb6[_0x215dd2(0x1cc)](_0x36c1df=>!/^[0-9]+$/[_0x215dd2(0x1e7)](_0x36c1df)))throw CliErrors['apiError'](_0x215dd2(0x1df));_0x5b7571=_0x1d7eb6[_0x215dd2(0x1c4)](Number);}else{if(_0x4312a5[_0x215dd2(0x1b0)]===null)_0x5b7571=[];else return{};}}}if(!Array['isArray'](_0x5b7571))throw CliErrors[_0x215dd2(0x1d5)](_0x215dd2(0x1d2));const _0x5be2df=_0x5b7571[_0x215dd2(0x1c4)](_0x35650c=>{const _0x28c798=_0x215dd2,_0x635ee5=typeof _0x35650c===_0x28c798(0x1de)&&/^[0-9]+$/[_0x28c798(0x1e7)](_0x35650c)?Number(_0x35650c):_0x35650c;if(typeof _0x635ee5!==_0x28c798(0x1dd)||!Number[_0x28c798(0x1a5)](_0x635ee5)||_0x635ee5<=0x0)throw CliErrors[_0x28c798(0x1d5)](_0x28c798(0x1d2));return _0x635ee5;});return{'pageIds':[...new Set(_0x5be2df)]};}export function readFlowId(_0x1d5735){const _0x5a74fa=a136_0x206bed,_0x26b79a=_0x1d5735[_0x5a74fa(0x1ac)]('id');if(!Number[_0x5a74fa(0x1a5)](_0x26b79a)||_0x26b79a<=0x0)throw CliErrors['validation'](_0x5a74fa(0x1a6));return _0x26b79a;}export function readFlowFilePath(_0x2495fd){const _0x3bd906=a136_0x206bed,_0x32018d=_0x2495fd[_0x3bd906(0x1ca)](_0x3bd906(0x1b1))[_0x3bd906(0x1b5)]();if(!_0x32018d)throw CliErrors[_0x3bd906(0x1d0)](_0x3bd906(0x1b1),_0x3bd906(0x1db));return _0x32018d;}export async function prepareFlowWrite(_0x12c086,_0x132c5b,_0xc1cc16){const _0x2498f6=a136_0x206bed;let _0xe9e36f;try{_0xe9e36f=await readFlowConfigFile(_0x12c086);}catch(_0x3f7628){const _0x501216=_0x3f7628 instanceof Error?_0x3f7628['message']:String(_0x3f7628);throw CliErrors[_0x2498f6(0x1af)]('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x501216,_0x2498f6(0x1ad)+_0x12c086);}const _0xdc0ec=validateFlowConfig(_0xe9e36f);if(!_0xdc0ec[_0x2498f6(0x1a7)]){const _0x39e5e6=_0xdc0ec[_0x2498f6(0x1a9)]['map'](_0xb313d7=>_0xb313d7[_0x2498f6(0x1cb)]+':\x20'+_0xb313d7[_0x2498f6(0x1d3)])[_0x2498f6(0x1c2)](';\x20');throw CliErrors[_0x2498f6(0x1af)](_0x2498f6(0x1c3)+_0x12c086+'.',_0x39e5e6||_0x2498f6(0x1a1));}const _0x41e6a4=_0xdc0ec[_0x2498f6(0x1b3)],_0x5c6094={..._0xc1cc16!==undefined?{'id':_0xc1cc16}:{},'flowName':_0x41e6a4[_0x2498f6(0x1c1)],..._0x41e6a4[_0x2498f6(0x1c8)]!==undefined?{'flowDesc':_0x41e6a4[_0x2498f6(0x1c8)]}:{},'flowType':_0x41e6a4['flowType'],'appCode':_0x132c5b,..._0x41e6a4['datasetCode']!==undefined?{'datasetCode':_0x41e6a4[_0x2498f6(0x1da)]}:{},..._0x41e6a4[_0x2498f6(0x1d1)]!==undefined?{'pageIds':[...new Set(_0x41e6a4[_0x2498f6(0x1d1)])]}:_0x41e6a4[_0x2498f6(0x1b0)]!==undefined?{'pageIds':[_0x41e6a4[_0x2498f6(0x1b0)]]}:{},'flowJson':_0x41e6a4[_0x2498f6(0x1cf)]};return{'request':_0x5c6094,'warnings':_0xdc0ec['warnings']};}export async function confirmFlowWrite(_0x572e61,_0x1eb874,_0x3ff429){const _0x4d431c=a136_0x206bed;if(_0x572e61[_0x4d431c(0x1e0)]||_0x572e61[_0x4d431c(0x1ab)](_0x4d431c(0x1b7)))return;const _0x2f57cb=_0x3ff429[_0x4d431c(0x1d1)]===undefined?_0x1eb874===_0x4d431c(0x1c6)?_0x4d431c(0x1bb):_0x4d431c(0x19f):JSON[_0x4d431c(0x1b6)](_0x3ff429[_0x4d431c(0x1d1)])+'\x20('+(_0x3ff429['pageIds'][_0x4d431c(0x1b8)]>0x0?_0x1eb874==='update'?_0x4d431c(0x1bd):_0x4d431c(0x1bf):_0x1eb874==='update'?_0x4d431c(0x1c9):_0x4d431c(0x1e2))+')';await requireConfirmationPrompt({'lines':['Approval\x20flow\x20'+_0x1eb874+':',_0x4d431c(0x1e1)+_0x572e61['appCode'],..._0x3ff429['id']!==undefined?[_0x4d431c(0x1e4)+_0x3ff429['id']]:[],'\x20\x20flowName:\x20'+_0x3ff429['flowName'],_0x4d431c(0x1c5)+_0x3ff429[_0x4d431c(0x1b2)],_0x4d431c(0x1aa)+_0x2f57cb,_0x4d431c(0x1dc)],'createCancelledError':_0x5b4670=>CliErrors[_0x4d431c(0x1b4)](_0x5b4670)});}export function flowSelector(_0x50a584,_0x437be0,_0x3cb410){const _0xb675e3=a136_0x206bed;return{'appCode':_0x50a584,..._0x437be0!==undefined?{'flowId':_0x437be0}:{},..._0x3cb410?.['flowCode']?{'flowCode':_0x3cb410[_0xb675e3(0x1d7)]}:{},..._0x3cb410?.[_0xb675e3(0x1c1)]?{'flowName':_0x3cb410[_0xb675e3(0x1c1)]}:{}};}export function buildFlowUrl(_0x55ee70,_0x1f9423){const _0x4fda8d=a136_0x206bed,_0x95dede=encodeURIComponent(String(_0x1f9423));return getAppBaseUrl(_0x55ee70)+_0x4fda8d(0x1e8)+_0x95dede;}export function buildFlowIdDryRun(_0x2599e1,_0x155ab1,_0x1e580b,_0x6dc6bc,_0x27800f){const _0x4a6c52=a136_0x206bed,_0x3c257f={'id':_0x6dc6bc,'appCode':_0x1e580b};return asDryRunResult({'operation':_0x2599e1,'selector':flowSelector(_0x1e580b,_0x6dc6bc),'before':null,'after':_0x27800f,'request':_0x3c257f,'dryRun':!![],'backend':{'method':_0x4a6c52(0x1d9),'path':_0x155ab1},'warnings':[]},{'method':_0x4a6c52(0x1d9),'url':_0x155ab1});}
@@ -1 +1 @@
1
- function a136_0xe8f9(){const _0x40ec60=['1870380zQPoGw','Updated\x20flow\x20','update','4124118jGOjHb','1406192iIxEHz','POST','flowCode','flowName','3720200fZvPiD','649050KbFMPr','appCode','6aekuAf','836185ZZZYdJ','1678ebBzpW','428DBtzdn'];a136_0xe8f9=function(){return _0x40ec60;};return a136_0xe8f9();}const a136_0x36c995=a136_0x50ab;(function(_0x43a3ab,_0x413041){const _0x8acb27=a136_0x50ab,_0xc3b40=_0x43a3ab();while(!![]){try{const _0x38fdaf=parseInt(_0x8acb27(0x187))/0x1*(-parseInt(_0x8acb27(0x188))/0x2)+parseInt(_0x8acb27(0x185))/0x3*(parseInt(_0x8acb27(0x17e))/0x4)+parseInt(_0x8acb27(0x183))/0x5+parseInt(_0x8acb27(0x17d))/0x6+-parseInt(_0x8acb27(0x186))/0x7+-parseInt(_0x8acb27(0x182))/0x8+-parseInt(_0x8acb27(0x17a))/0x9;if(_0x38fdaf===_0x413041)break;else _0xc3b40['push'](_0xc3b40['shift']());}catch(_0x19513b){_0xc3b40['push'](_0xc3b40['shift']());}}}(a136_0xe8f9,0x5a0e3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{updateFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId}from'../../commands/flow/shared.js';function a136_0x50ab(_0x4e867f,_0x38b13a){_0x4e867f=_0x4e867f-0x17a;const _0xe8f9e7=a136_0xe8f9();let _0x50ab7f=_0xe8f9e7[_0x4e867f];return _0x50ab7f;}export const flowUpdate={'service':'flow','command':a136_0x36c995(0x17c),'description':'Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','risk':'write','flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x50d614){readFlowId(_0x50d614),readFlowFilePath(_0x50d614);},async 'dryRun'(_0x543e20){const _0xfe9f55=a136_0x36c995,_0xc1143c=readFlowId(_0x543e20),{request:_0x10fd32,warnings:_0xd99712}=await prepareFlowWrite(readFlowFilePath(_0x543e20),_0x543e20[_0xfe9f55(0x184)],_0xc1143c);return asDryRunResult({'operation':_0xfe9f55(0x17c),'selector':flowSelector(_0x543e20[_0xfe9f55(0x184)],_0xc1143c),'before':null,'after':_0x10fd32,'request':_0x10fd32,'dryRun':!![],'backend':{'method':_0xfe9f55(0x17f),'path':FLOW_PATHS[_0xfe9f55(0x17c)]},'warnings':_0xd99712},{'method':_0xfe9f55(0x17f),'url':FLOW_PATHS[_0xfe9f55(0x17c)]});},async 'execute'(_0x2895d6){const _0x2ab3c1=a136_0x36c995,_0x1ecee3=readFlowId(_0x2895d6),{request:_0x1ef5d1,warnings:_0xa30673}=await prepareFlowWrite(readFlowFilePath(_0x2895d6),_0x2895d6['appCode'],_0x1ecee3);await confirmFlowWrite(_0x2895d6,_0x2ab3c1(0x17c),_0x1ef5d1);const _0x561488=await updateFlowDefinition({..._0x1ef5d1,'id':_0x1ecee3});return{'ok':!![],'data':{'operation':_0x2ab3c1(0x17c),'selector':flowSelector(_0x2895d6['appCode'],_0x1ecee3,_0x561488),'before':null,'after':_0x561488,'dryRun':![],'backend':{'method':_0x2ab3c1(0x17f),'path':FLOW_PATHS[_0x2ab3c1(0x17c)]},'warnings':_0xa30673},'message':_0x2ab3c1(0x17b)+(_0x561488[_0x2ab3c1(0x181)]||_0x561488[_0x2ab3c1(0x180)]||_0x1ecee3)};}};
1
+ function a137_0x2c48(){const _0x36d186=['write','POST','Current\x20page\x20bindings\x20as\x20a\x20JSON\x20array;\x20required\x20when\x20changing\x20bindings\x20(non-atomic\x20preflight)','1312542vEBgwA','36DATTbr','isArray','Updated\x20flow\x20','expected-page-ids','validation','flowName','apiError','Flow\x20page\x20bindings\x20changed\x20or\x20do\x20not\x20match\x20--expected-page-ids.','The\x20flow\x20detail\x20response\x20does\x20not\x20identify\x20the\x20current\x20page\x20bindings.','update','str','flow','10996029XnRgbx','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','removed','3REmvAm','879185TQicwD','Preview\x20the\x20update,\x20then\x20pass\x20the\x20current\x20binding\x20list\x20as\x20a\x20JSON\x20array;\x20use\x20[]\x20for\x20no\x20bindings.','some','flag','length','6331052uPvMDN','includes','--expected-page-ids\x20must\x20be\x20a\x20JSON\x20array\x20of\x20positive\x20safe\x20integers.','pageIds','3415062DPQUUZ','isSafeInteger','flagMissing','appCode','4427024quKVOU','1592218wjoWmL','flowCode','Read\x20the\x20flow\x20detail\x20and\x20review\x20the\x20binding\x20changes\x20before\x20retrying.'];a137_0x2c48=function(){return _0x36d186;};return a137_0x2c48();}const a137_0x1915ee=a137_0x1924;(function(_0x309589,_0x5d22d5){const _0x14fb26=a137_0x1924,_0x20eff4=_0x309589();while(!![]){try{const _0x96f91b=-parseInt(_0x14fb26(0xf8))/0x1+parseInt(_0x14fb26(0xf2))/0x2*(-parseInt(_0x14fb26(0xe3))/0x3)+parseInt(_0x14fb26(0xf9))/0x4*(parseInt(_0x14fb26(0xe4))/0x5)+parseInt(_0x14fb26(0xed))/0x6+-parseInt(_0x14fb26(0xe9))/0x7+parseInt(_0x14fb26(0xf1))/0x8+parseInt(_0x14fb26(0x105))/0x9;if(_0x96f91b===_0x5d22d5)break;else _0x20eff4['push'](_0x20eff4['shift']());}catch(_0x18f962){_0x20eff4['push'](_0x20eff4['shift']());}}}(a137_0x2c48,0xdf176));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{getFlowDefinition,updateFlowDefinition}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId,readFlowPageBindings}from'../../commands/flow/shared.js';function readExpectedPageIds(_0x26021b){const _0x59c5ca=a137_0x1924;if(_0x26021b[_0x59c5ca(0xe7)]('expected-page-ids')===undefined)return undefined;let _0x1f67e1;try{_0x1f67e1=JSON['parse'](_0x26021b[_0x59c5ca(0x103)](_0x59c5ca(0xfc)));}catch{throw CliErrors['validation'](_0x59c5ca(0xeb));}if(!Array[_0x59c5ca(0xfa)](_0x1f67e1)||_0x1f67e1[_0x59c5ca(0xe6)](_0x437fb0=>!Number[_0x59c5ca(0xee)](_0x437fb0)||_0x437fb0<=0x0))throw CliErrors[_0x59c5ca(0xfd)](_0x59c5ca(0xeb));return[...new Set(_0x1f67e1)];}function a137_0x1924(_0x16cc58,_0x563058){_0x16cc58=_0x16cc58-0xe3;const _0x2c48fe=a137_0x2c48();let _0x1924d8=_0x2c48fe[_0x16cc58];return _0x1924d8;}async function preparePageBindingChange(_0x20a1d6,_0x27c5ed,_0x2c03fe){const _0x5ab911=a137_0x1924,_0x5f52e3=readExpectedPageIds(_0x20a1d6);if(_0x27c5ed[_0x5ab911(0xec)]===undefined){if(_0x5f52e3!==undefined)throw CliErrors[_0x5ab911(0xfd)]('--expected-page-ids\x20requires\x20explicit\x20pageIds\x20or\x20pageId\x20in\x20the\x20FlowConfig.');return{'before':null};}const _0x10e0a8=await getFlowDefinition(_0x20a1d6[_0x5ab911(0xf0)],_0x27c5ed['id']),_0x40c209=_0x10e0a8&&readFlowPageBindings(_0x10e0a8)[_0x5ab911(0xec)];if(_0x40c209===undefined||_0x40c209===null)throw CliErrors[_0x5ab911(0xff)](_0x5ab911(0x101));if(_0x5f52e3!==undefined&&(_0x5f52e3[_0x5ab911(0xe8)]!==_0x40c209[_0x5ab911(0xe8)]||_0x5f52e3[_0x5ab911(0xe6)](_0x3aef56=>!_0x40c209['includes'](_0x3aef56))))throw CliErrors[_0x5ab911(0xfd)](_0x5ab911(0x100),_0x5ab911(0xf4));const _0x5e192e=_0x27c5ed[_0x5ab911(0xec)],_0x5bdabd={'before':_0x40c209,'after':_0x5e192e,'added':_0x5e192e['filter'](_0x3b1afa=>!_0x40c209['includes'](_0x3b1afa)),'removed':_0x40c209['filter'](_0x3d4809=>!_0x5e192e[_0x5ab911(0xea)](_0x3d4809))};if(!_0x2c03fe&&_0x5f52e3===undefined&&(_0x5bdabd['added'][_0x5ab911(0xe8)]>0x0||_0x5bdabd[_0x5ab911(0x107)][_0x5ab911(0xe8)]>0x0))throw CliErrors[_0x5ab911(0xef)](_0x5ab911(0xfc),_0x5ab911(0xe5));return{'before':_0x10e0a8,'pageBindings':_0x5bdabd};}export const flowUpdate={'service':a137_0x1915ee(0x104),'command':a137_0x1915ee(0x102),'description':a137_0x1915ee(0x106),'risk':a137_0x1915ee(0xf5),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a137_0x1915ee(0xfc),'type':'string','description':a137_0x1915ee(0xf7)}],async 'validate'(_0x19c2f2){readFlowId(_0x19c2f2),readFlowFilePath(_0x19c2f2),readExpectedPageIds(_0x19c2f2);},async 'dryRun'(_0x26a1a3){const _0x43b667=a137_0x1915ee,_0x2fa634=readFlowId(_0x26a1a3),{request:_0x16a12e,warnings:_0x45d33b}=await prepareFlowWrite(readFlowFilePath(_0x26a1a3),_0x26a1a3[_0x43b667(0xf0)],_0x2fa634),_0x516eb8=await preparePageBindingChange(_0x26a1a3,{..._0x16a12e,'id':_0x2fa634},!![]);return asDryRunResult({'operation':_0x43b667(0x102),'selector':flowSelector(_0x26a1a3[_0x43b667(0xf0)],_0x2fa634),..._0x516eb8,'after':_0x16a12e,'request':_0x16a12e,'dryRun':!![],'backend':{'method':_0x43b667(0xf6),'path':FLOW_PATHS['update']},'warnings':_0x45d33b},{'method':_0x43b667(0xf6),'url':FLOW_PATHS[_0x43b667(0x102)]});},async 'execute'(_0x1c4ab3){const _0x39f1c8=a137_0x1915ee,_0x11fd23=readFlowId(_0x1c4ab3),{request:_0x101286,warnings:_0x429e2d}=await prepareFlowWrite(readFlowFilePath(_0x1c4ab3),_0x1c4ab3[_0x39f1c8(0xf0)],_0x11fd23),_0x514350=await preparePageBindingChange(_0x1c4ab3,{..._0x101286,'id':_0x11fd23},![]);await confirmFlowWrite(_0x1c4ab3,_0x39f1c8(0x102),_0x101286);const _0x4a1916=await updateFlowDefinition({..._0x101286,'id':_0x11fd23});return{'ok':!![],'data':{'operation':_0x39f1c8(0x102),'selector':flowSelector(_0x1c4ab3[_0x39f1c8(0xf0)],_0x11fd23,_0x4a1916),..._0x514350,'after':_0x4a1916,'dryRun':![],'backend':{'method':_0x39f1c8(0xf6),'path':FLOW_PATHS[_0x39f1c8(0x102)]},'warnings':_0x429e2d},'message':_0x39f1c8(0xfb)+(_0x4a1916[_0x39f1c8(0xfe)]||_0x4a1916[_0x39f1c8(0xf3)]||_0x11fd23)};}};
@@ -1 +1 @@
1
- const a137_0x3eea0e=a137_0x3a53;(function(_0x51e566,_0x5a0d1e){const _0x3c4719=a137_0x3a53,_0x2c4e25=_0x51e566();while(!![]){try{const _0x5527f9=parseInt(_0x3c4719(0xef))/0x1*(parseInt(_0x3c4719(0xee))/0x2)+-parseInt(_0x3c4719(0x103))/0x3*(parseInt(_0x3c4719(0xf5))/0x4)+-parseInt(_0x3c4719(0xfe))/0x5*(-parseInt(_0x3c4719(0x105))/0x6)+parseInt(_0x3c4719(0xfb))/0x7*(parseInt(_0x3c4719(0x104))/0x8)+parseInt(_0x3c4719(0xea))/0x9+parseInt(_0x3c4719(0xfa))/0xa*(parseInt(_0x3c4719(0xe7))/0xb)+-parseInt(_0x3c4719(0xe8))/0xc;if(_0x5527f9===_0x5a0d1e)break;else _0x2c4e25['push'](_0x2c4e25['shift']());}catch(_0xc66f9b){_0x2c4e25['push'](_0x2c4e25['shift']());}}}(a137_0x971c,0x78047));function a137_0x3a53(_0x320279,_0x310bbe){_0x320279=_0x320279-0xe6;const _0x971c3c=a137_0x971c();let _0x3a53e9=_0x971c3c[_0x320279];return _0x3a53e9;}function a137_0x971c(){const _0x49b1ff=['24409776rWYCNO','str','522666qduJZD','flagMissing','write-normalized','file','48NNFlIY','38992ZEEdHP','trim','normalized','errors','FlowConfig\x20validation\x20failed.','validation','540TYsNoH','message','bool','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','validate','482530XGqLsu','7ihoySS','valid','warnings','5jyXfXX','string','flow','FlowConfig\x20is\x20valid.','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','2109rDCbQS','7053128oGRPJl','127956coUYJW','none','Unable\x20to\x20read\x20FlowConfig:\x20','165NklSLw'];a137_0x971c=function(){return _0x49b1ff;};return a137_0x971c();}import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a137_0x3eea0e(0x100),'command':a137_0x3eea0e(0xf9),'description':a137_0x3eea0e(0x102),'risk':'read','auth':a137_0x3eea0e(0x106),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'file','type':a137_0x3eea0e(0xff),'required':!![],'description':'Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file'},{'name':'write-normalized','type':'boolean','description':'Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form'}],async 'execute'(_0x598505){const _0x3b3b80=a137_0x3eea0e,_0x15904b=_0x598505[_0x3b3b80(0xe9)](_0x3b3b80(0xed))[_0x3b3b80(0xf0)]();if(!_0x15904b)throw CliErrors[_0x3b3b80(0xeb)](_0x3b3b80(0xed),'Pass\x20--file\x20<path>.');let _0x4e032b;try{_0x4e032b=await readFlowConfigFile(_0x15904b);}catch(_0xa5da0d){const _0x179522=_0xa5da0d instanceof Error?_0xa5da0d[_0x3b3b80(0xf6)]:String(_0xa5da0d);throw CliErrors[_0x3b3b80(0xf4)](_0x3b3b80(0xe6)+_0x179522);}const _0x1127d6=validateFlowConfig(_0x4e032b),_0x36d76a=_0x598505[_0x3b3b80(0xf7)](_0x3b3b80(0xec));let _0x451f3d=![];return _0x36d76a&&_0x1127d6[_0x3b3b80(0xfc)]&&(await writeNormalizedFlowConfig(_0x15904b,_0x1127d6['normalized']),_0x451f3d=!![]),{'ok':_0x1127d6[_0x3b3b80(0xfc)],'data':{'valid':_0x1127d6[_0x3b3b80(0xfc)],'errors':_0x1127d6[_0x3b3b80(0xf2)],'warnings':_0x1127d6[_0x3b3b80(0xfd)],'normalized':_0x1127d6[_0x3b3b80(0xf1)],..._0x36d76a?{'written':_0x451f3d}:{}},'message':_0x1127d6['valid']?_0x451f3d?_0x3b3b80(0xf8):_0x3b3b80(0x101):_0x3b3b80(0xf3)};}};
1
+ const a138_0x4a7937=a138_0x2510;function a138_0x2510(_0x5b74b7,_0x3f867f){_0x5b74b7=_0x5b74b7-0xac;const _0x54177f=a138_0x5417();let _0x251057=_0x54177f[_0x5b74b7];return _0x251057;}function a138_0x5417(){const _0x1a86ea=['valid','6111wLfGIF','errors','1328310rBTGSU','FlowConfig\x20is\x20valid.','11872fNhoND','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','3276203sZnXtD','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','Pass\x20--file\x20<path>.','validation','283646eyPQoG','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','str','string','write-normalized','none','normalized','1xqiIUt','boolean','658332TAGuFs','file','warnings','Unable\x20to\x20read\x20FlowConfig:\x20','read','bool','372812MWDKXV','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','message','FlowConfig\x20validation\x20failed.','2205595JKIWIB'];a138_0x5417=function(){return _0x1a86ea;};return a138_0x5417();}(function(_0x38eccc,_0xfbf6b3){const _0x34a10=a138_0x2510,_0x4883d3=_0x38eccc();while(!![]){try{const _0x34f8e9=-parseInt(_0x34a10(0xc2))/0x1*(-parseInt(_0x34a10(0xbb))/0x2)+parseInt(_0x34a10(0xb3))/0x3+-parseInt(_0x34a10(0xca))/0x4+parseInt(_0x34a10(0xaf))/0x5+-parseInt(_0x34a10(0xc4))/0x6+parseInt(_0x34a10(0xb7))/0x7+-parseInt(_0x34a10(0xb5))/0x8*(parseInt(_0x34a10(0xb1))/0x9);if(_0x34f8e9===_0xfbf6b3)break;else _0x4883d3['push'](_0x4883d3['shift']());}catch(_0xf98d27){_0x4883d3['push'](_0x4883d3['shift']());}}}(a138_0x5417,0x4522c));import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':'flow','command':'validate','description':a138_0x4a7937(0xb6),'risk':a138_0x4a7937(0xc8),'auth':a138_0x4a7937(0xc0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a138_0x4a7937(0xc5),'type':a138_0x4a7937(0xbe),'required':!![],'description':a138_0x4a7937(0xbc)},{'name':a138_0x4a7937(0xbf),'type':a138_0x4a7937(0xc3),'description':a138_0x4a7937(0xac)}],async 'execute'(_0xa576af){const _0x22a896=a138_0x4a7937,_0x2f83a1=_0xa576af[_0x22a896(0xbd)](_0x22a896(0xc5))['trim']();if(!_0x2f83a1)throw CliErrors['flagMissing'](_0x22a896(0xc5),_0x22a896(0xb9));let _0x3ad35e;try{_0x3ad35e=await readFlowConfigFile(_0x2f83a1);}catch(_0x22e7a0){const _0x3bebce=_0x22e7a0 instanceof Error?_0x22e7a0[_0x22a896(0xad)]:String(_0x22e7a0);throw CliErrors[_0x22a896(0xba)](_0x22a896(0xc7)+_0x3bebce);}const _0x10d605=validateFlowConfig(_0x3ad35e),_0xcc6f94=_0xa576af[_0x22a896(0xc9)](_0x22a896(0xbf));let _0x3a7cd5=![];return _0xcc6f94&&_0x10d605[_0x22a896(0xb0)]&&(await writeNormalizedFlowConfig(_0x2f83a1,_0x10d605['normalized']),_0x3a7cd5=!![]),{'ok':_0x10d605[_0x22a896(0xb0)],'data':{'valid':_0x10d605['valid'],'errors':_0x10d605[_0x22a896(0xb2)],'warnings':_0x10d605[_0x22a896(0xc6)],'normalized':_0x10d605[_0x22a896(0xc1)],..._0xcc6f94?{'written':_0x3a7cd5}:{}},'message':_0x10d605[_0x22a896(0xb0)]?_0x3a7cd5?_0x22a896(0xb8):_0x22a896(0xb4):_0x22a896(0xae)};}};
@@ -1 +1 @@
1
- const a138_0x578d8e=a138_0x59a5;(function(_0x2edf28,_0x3f212d){const _0xbc58c9=a138_0x59a5,_0x3a6d66=_0x2edf28();while(!![]){try{const _0xa8e3c5=-parseInt(_0xbc58c9(0x1e1))/0x1+parseInt(_0xbc58c9(0x1e2))/0x2+-parseInt(_0xbc58c9(0x1e4))/0x3*(parseInt(_0xbc58c9(0x1ea))/0x4)+-parseInt(_0xbc58c9(0x1e0))/0x5*(parseInt(_0xbc58c9(0x1e9))/0x6)+-parseInt(_0xbc58c9(0x1ee))/0x7+parseInt(_0xbc58c9(0x1e5))/0x8+parseInt(_0xbc58c9(0x1e3))/0x9;if(_0xa8e3c5===_0x3f212d)break;else _0x3a6d66['push'](_0x3a6d66['shift']());}catch(_0x555a3c){_0x3a6d66['push'](_0x3a6d66['shift']());}}}(a138_0x57f0,0x75348));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';function a138_0x57f0(){const _0x3ff714=['revision','Current\x20Instant\x20API\x20policy\x20revision\x20','5193125mWEycW','current','3453460oUfRyS','768873alJztp','876810dOtkmS','19160208bRSCzN','6gcKact','5829608ehKGDV','read','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','appCode','6xawGCi','1229012ghvYdp','policyRelativePath'];a138_0x57f0=function(){return _0x3ff714;};return a138_0x57f0();}function a138_0x59a5(_0x4a216e,_0x30685b){_0x4a216e=_0x4a216e-0x1df;const _0x57f074=a138_0x57f0();let _0x59a5dc=_0x57f074[_0x4a216e];return _0x59a5dc;}import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a138_0x578d8e(0x1df),'description':a138_0x578d8e(0x1e7),'risk':a138_0x578d8e(0x1e6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x506c35){const _0x35101b=a138_0x578d8e,_0xe77d2e=loadInstantApiPolicyLocalConfig(_0x506c35[_0x35101b(0x1e8)]),_0x1a9475=await getCurrentInstantApiPolicy(_0x506c35[_0x35101b(0x1e8)]);return{'ok':!![],'data':{'appCode':_0x506c35[_0x35101b(0x1e8)],'configured':_0x1a9475!==null,'filePath':_0xe77d2e['policyFilePath'],'relativePath':_0xe77d2e[_0x35101b(0x1eb)],'policy':projectCurrentPolicy(_0x1a9475)},'message':_0x1a9475?_0x35101b(0x1ed)+_0x1a9475[_0x35101b(0x1ec)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x506c35[_0x35101b(0x1e8)]};}};
1
+ const a139_0x1c7d71=a139_0x5f09;(function(_0x2ad525,_0x5721e5){const _0x43fc1c=a139_0x5f09,_0x5a9234=_0x2ad525();while(!![]){try{const _0xd1492=parseInt(_0x43fc1c(0x138))/0x1*(parseInt(_0x43fc1c(0x134))/0x2)+parseInt(_0x43fc1c(0x141))/0x3*(parseInt(_0x43fc1c(0x13e))/0x4)+-parseInt(_0x43fc1c(0x137))/0x5+-parseInt(_0x43fc1c(0x146))/0x6+-parseInt(_0x43fc1c(0x142))/0x7*(-parseInt(_0x43fc1c(0x13a))/0x8)+parseInt(_0x43fc1c(0x145))/0x9*(parseInt(_0x43fc1c(0x13f))/0xa)+-parseInt(_0x43fc1c(0x133))/0xb*(parseInt(_0x43fc1c(0x13c))/0xc);if(_0xd1492===_0x5721e5)break;else _0x5a9234['push'](_0x5a9234['shift']());}catch(_0x396548){_0x5a9234['push'](_0x5a9234['shift']());}}}(a139_0x239e,0xb5a63));function a139_0x239e(){const _0xbcd3b=['824489QFzXbm','policyFilePath','1604360nuUGxp','read','8336652BHzUBz','Current\x20Instant\x20API\x20policy\x20revision\x20','1113908RgZfvq','10RSPETj','policyRelativePath','3IdUxgn','14XScJBF','current','instant-api-policy','6447879tMNcox','4297974ISoimc','11fFhUdA','2IqDEPY','revision','appCode','327010BkIIxj'];a139_0x239e=function(){return _0xbcd3b;};return a139_0x239e();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a139_0x5f09(_0x478e1c,_0x2802b9){_0x478e1c=_0x478e1c-0x133;const _0x239e75=a139_0x239e();let _0x5f0976=_0x239e75[_0x478e1c];return _0x5f0976;}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a139_0x1c7d71(0x144),'command':a139_0x1c7d71(0x143),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a139_0x1c7d71(0x13b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x36c3e4){const _0x2df790=a139_0x1c7d71,_0x23d96f=loadInstantApiPolicyLocalConfig(_0x36c3e4[_0x2df790(0x136)]),_0x5669d9=await getCurrentInstantApiPolicy(_0x36c3e4[_0x2df790(0x136)]);return{'ok':!![],'data':{'appCode':_0x36c3e4[_0x2df790(0x136)],'configured':_0x5669d9!==null,'filePath':_0x23d96f[_0x2df790(0x139)],'relativePath':_0x23d96f[_0x2df790(0x140)],'policy':projectCurrentPolicy(_0x5669d9)},'message':_0x5669d9?_0x2df790(0x13d)+_0x5669d9[_0x2df790(0x135)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x36c3e4[_0x2df790(0x136)]};}};
@@ -1 +1 @@
1
- (function(_0x3ef7bc,_0x2b0d9c){const _0x2b2034=a139_0x53a9,_0x432315=_0x3ef7bc();while(!![]){try{const _0x156796=-parseInt(_0x2b2034(0x15b))/0x1*(parseInt(_0x2b2034(0x160))/0x2)+parseInt(_0x2b2034(0x161))/0x3*(parseInt(_0x2b2034(0x15d))/0x4)+-parseInt(_0x2b2034(0x15f))/0x5*(parseInt(_0x2b2034(0x163))/0x6)+parseInt(_0x2b2034(0x15e))/0x7+-parseInt(_0x2b2034(0x165))/0x8*(-parseInt(_0x2b2034(0x162))/0x9)+parseInt(_0x2b2034(0x15c))/0xa*(parseInt(_0x2b2034(0x164))/0xb)+parseInt(_0x2b2034(0x15a))/0xc*(-parseInt(_0x2b2034(0x159))/0xd);if(_0x156796===_0x2b0d9c)break;else _0x432315['push'](_0x432315['shift']());}catch(_0x1f3611){_0x432315['push'](_0x432315['shift']());}}}(a139_0x176d,0xdc528));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a139_0x53a9(_0x8fde3f,_0x2f3115){_0x8fde3f=_0x8fde3f-0x159;const _0x176d8b=a139_0x176d();let _0x53a93a=_0x176d8b[_0x8fde3f];return _0x53a93a;}function a139_0x176d(){const _0x837fbd=['5JeJxZy','482zFzLXM','23349WowRwM','1332vPyVKf','8116554XXqqVA','649PZUTug','73736ZIHyLc','147693cRKWOp','2364bFkNEd','5239woUUvq','162220dJUAYl','916cUQXbK','11566758jWNVth'];a139_0x176d=function(){return _0x837fbd;};return a139_0x176d();}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ function a140_0x2988(_0x41816f,_0x28e354){_0x41816f=_0x41816f-0x121;const _0xb334f3=a140_0xb334();let _0x2988be=_0xb334f3[_0x41816f];return _0x2988be;}(function(_0x5eb80b,_0xf13fd){const _0x36a95e=a140_0x2988,_0x18f9f6=_0x5eb80b();while(!![]){try{const _0x149b59=parseInt(_0x36a95e(0x126))/0x1+parseInt(_0x36a95e(0x122))/0x2*(parseInt(_0x36a95e(0x121))/0x3)+parseInt(_0x36a95e(0x127))/0x4*(parseInt(_0x36a95e(0x125))/0x5)+-parseInt(_0x36a95e(0x128))/0x6+parseInt(_0x36a95e(0x124))/0x7+parseInt(_0x36a95e(0x129))/0x8+-parseInt(_0x36a95e(0x123))/0x9;if(_0x149b59===_0xf13fd)break;else _0x18f9f6['push'](_0x18f9f6['shift']());}catch(_0xbdd113){_0x18f9f6['push'](_0x18f9f6['shift']());}}}(a140_0xb334,0x64271));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';function a140_0xb334(){const _0x318379=['1133770mtpHzp','163218dAGVSx','4EkUvqC','422634qjEIDg','5028280CAlScY','3qYzrhn','796990JpISPC','10393893TZTEhX','1529773CpWJQa'];a140_0xb334=function(){return _0x318379;};return a140_0xb334();}import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- function a140_0x16d8(_0x33906b,_0xe3fbb8){_0x33906b=_0x33906b-0xc7;const _0xa6928b=a140_0xa692();let _0x16d83b=_0xa6928b[_0x33906b];return _0x16d83b;}const a140_0x51ba0=a140_0x16d8;(function(_0x8232b8,_0x4f2e4e){const _0x3c959f=a140_0x16d8,_0x2bb9ab=_0x8232b8();while(!![]){try{const _0x59eb72=parseInt(_0x3c959f(0xda))/0x1*(parseInt(_0x3c959f(0xd4))/0x2)+-parseInt(_0x3c959f(0xc7))/0x3*(parseInt(_0x3c959f(0xdf))/0x4)+parseInt(_0x3c959f(0xd8))/0x5+parseInt(_0x3c959f(0xd2))/0x6+parseInt(_0x3c959f(0xdd))/0x7+parseInt(_0x3c959f(0xdb))/0x8+-parseInt(_0x3c959f(0xd9))/0x9;if(_0x59eb72===_0x4f2e4e)break;else _0x2bb9ab['push'](_0x2bb9ab['shift']());}catch(_0x2d9cbd){_0x2bb9ab['push'](_0x2bb9ab['shift']());}}}(a140_0xa692,0x42b77));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a140_0x51ba0(0xd5),'command':a140_0x51ba0(0xd0),'description':a140_0x51ba0(0xca),'risk':a140_0x51ba0(0xcf),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':'string','enum':[a140_0x51ba0(0xdc),a140_0x51ba0(0xc8)],'default':a140_0x51ba0(0xdc),'description':a140_0x51ba0(0xd3)},FORCE_FLAG],async 'validate'(_0x59ed25){requireForceConfirmation(_0x59ed25);},async 'execute'(_0x665742){const _0x3aa54d=a140_0x51ba0;requireForceConfirmation(_0x665742);const _0x2f752a=_0x665742[_0x3aa54d(0xcc)](_0x3aa54d(0xd7))===_0x3aa54d(0xc8)?_0x3aa54d(0xc8):'allow',_0x51b647=loadInstantApiPolicyLocalConfig(_0x665742[_0x3aa54d(0xd6)]),_0x14a619=createDefaultInstantApiPolicyConfig(_0x665742[_0x3aa54d(0xd6)],_0x2f752a),_0x4c03d2=await writeInstantApiPolicyConfigFile(_0x51b647,_0x14a619,{'force':_0x665742[_0x3aa54d(0xc9)](_0x3aa54d(0xe1))}),_0x19cc24={'created':_0x3aa54d(0xce),'overwritten':'Replaced','unchanged':_0x3aa54d(0xe0)}[_0x4c03d2[_0x3aa54d(0xde)]];return{'ok':!![],'data':{'operation':'init','selector':{'appCode':_0x665742[_0x3aa54d(0xd6)]},'filePath':_0x51b647[_0x3aa54d(0xcb)],'relativePath':_0x51b647[_0x3aa54d(0xd1)],'action':_0x4c03d2[_0x3aa54d(0xde)],'config':_0x14a619},'message':_0x19cc24+_0x3aa54d(0xcd)+_0x665742[_0x3aa54d(0xd6)]};}};function a140_0xa692(){const _0x126705=['bool','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','policyFilePath','str','\x20Instant\x20API\x20policy\x20file\x20for\x20','Created','write','init','policyRelativePath','2353590DXLmxD','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','6XVtLfC','instant-api-policy','appCode','default-action','1784890rhHdrq','5011677vqHnpb','97390yhpbLx','89160hMRmtj','allow','8463QvLoQZ','action','28jCAuef','Kept','force','95847mjUeoN','deny'];a140_0xa692=function(){return _0x126705;};return a140_0xa692();}
1
+ function a141_0x3724(){const _0x10daad=['2somjZX','Created','policyFilePath','write','allow','355842rFmIqv','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','818214TFXqUY','602936wgfWAp','str','deny','bool','\x20Instant\x20API\x20policy\x20file\x20for\x20','policyRelativePath','3114390QLwJZf','22IFCFDh','921489nmJBbw','970siYOVA','183485JCFvwp','14yoWcMo','default-action','Replaced','appCode','init','string','Kept','1420FVTclj','force','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','action','instant-api-policy'];a141_0x3724=function(){return _0x10daad;};return a141_0x3724();}const a141_0x233bf3=a141_0x532c;(function(_0x13f447,_0x511266){const _0x2f5204=a141_0x532c,_0x38e276=_0x13f447();while(!![]){try{const _0x3ccfa2=parseInt(_0x2f5204(0x95))/0x1+-parseInt(_0x2f5204(0xa2))/0x2*(parseInt(_0x2f5204(0x93))/0x3)+-parseInt(_0x2f5204(0x9d))/0x4*(-parseInt(_0x2f5204(0x94))/0x5)+-parseInt(_0x2f5204(0x8a))/0x6*(parseInt(_0x2f5204(0x96))/0x7)+-parseInt(_0x2f5204(0x8b))/0x8+-parseInt(_0x2f5204(0x88))/0x9+-parseInt(_0x2f5204(0x91))/0xa*(-parseInt(_0x2f5204(0x92))/0xb);if(_0x3ccfa2===_0x511266)break;else _0x38e276['push'](_0x38e276['shift']());}catch(_0xaadb36){_0x38e276['push'](_0x38e276['shift']());}}}(a141_0x3724,0x2c0cb));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a141_0x532c(_0x4ca117,_0x41aaa9){_0x4ca117=_0x4ca117-0x87;const _0x3724b7=a141_0x3724();let _0x532c03=_0x3724b7[_0x4ca117];return _0x532c03;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a141_0x233bf3(0xa1),'command':a141_0x233bf3(0x9a),'description':a141_0x233bf3(0x89),'risk':a141_0x233bf3(0xa5),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a141_0x233bf3(0x97),'type':a141_0x233bf3(0x9b),'enum':['allow',a141_0x233bf3(0x8d)],'default':a141_0x233bf3(0x87),'description':a141_0x233bf3(0x9f)},FORCE_FLAG],async 'validate'(_0x475a74){requireForceConfirmation(_0x475a74);},async 'execute'(_0x948acb){const _0x5def1a=a141_0x233bf3;requireForceConfirmation(_0x948acb);const _0xc317a2=_0x948acb[_0x5def1a(0x8c)](_0x5def1a(0x97))===_0x5def1a(0x8d)?'deny':_0x5def1a(0x87),_0x66a8a7=loadInstantApiPolicyLocalConfig(_0x948acb[_0x5def1a(0x99)]),_0x27d742=createDefaultInstantApiPolicyConfig(_0x948acb[_0x5def1a(0x99)],_0xc317a2),_0x29e671=await writeInstantApiPolicyConfigFile(_0x66a8a7,_0x27d742,{'force':_0x948acb[_0x5def1a(0x8e)](_0x5def1a(0x9e))}),_0x4ca052={'created':_0x5def1a(0xa3),'overwritten':_0x5def1a(0x98),'unchanged':_0x5def1a(0x9c)}[_0x29e671['action']];return{'ok':!![],'data':{'operation':_0x5def1a(0x9a),'selector':{'appCode':_0x948acb[_0x5def1a(0x99)]},'filePath':_0x66a8a7[_0x5def1a(0xa4)],'relativePath':_0x66a8a7[_0x5def1a(0x90)],'action':_0x29e671[_0x5def1a(0xa0)],'config':_0x27d742},'message':_0x4ca052+_0x5def1a(0x8f)+_0x948acb[_0x5def1a(0x99)]};}};
@@ -1 +1 @@
1
- const a141_0x3710b4=a141_0x4001;function a141_0x4001(_0x2014ba,_0x18d713){_0x2014ba=_0x2014ba-0x13f;const _0x25191d=a141_0x2519();let _0x4001ab=_0x25191d[_0x2014ba];return _0x4001ab;}(function(_0x3e1033,_0x36dafa){const _0x1bc0a6=a141_0x4001,_0x95c3c5=_0x3e1033();while(!![]){try{const _0x3ebda8=parseInt(_0x1bc0a6(0x144))/0x1+-parseInt(_0x1bc0a6(0x14f))/0x2*(parseInt(_0x1bc0a6(0x140))/0x3)+-parseInt(_0x1bc0a6(0x14e))/0x4*(parseInt(_0x1bc0a6(0x14b))/0x5)+-parseInt(_0x1bc0a6(0x152))/0x6+-parseInt(_0x1bc0a6(0x157))/0x7+parseInt(_0x1bc0a6(0x15e))/0x8+parseInt(_0x1bc0a6(0x141))/0x9*(parseInt(_0x1bc0a6(0x167))/0xa);if(_0x3ebda8===_0x36dafa)break;else _0x95c3c5['push'](_0x95c3c5['shift']());}catch(_0x308b2b){_0x95c3c5['push'](_0x95c3c5['shift']());}}}(a141_0x2519,0x8a40f));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a141_0x2519(){const _0x16f2e0=['instant_api_policy_publish_verification_failed','all','8uWnVjq','38618OHHAss','defineProperty','POST','6553002tdGhzy','Published\x20Instant\x20API\x20policy\x20revision\x20','before','revision','policyFilePath','7413763biieNF','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','cause','changeSummary','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','verified','4459952QoZmgp','normalizedConfig','Inspect\x20with\x20`','planned','config','validation','instant_api_policy_publish_verification_unavailable','appCode','push','4967610YwWbxM','configHash','132PjmKvi','54rALDfl','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_publish_outcome_unknown','874173wUVQvB','/publish','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','expectedRevision','policyRelativePath','local','publish','2112685ZKjEqC'];a141_0x2519=function(){return _0x16f2e0;};return a141_0x2519();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x494029){const _0x377997=a141_0x4001,{local:_0x2e0100,config:_0x5b0b0c}=await readFixedPolicy(_0x494029),_0x313709=readChangeSummary(_0x494029),_0x5e49dc=readExpectedRevision(_0x494029),[_0x7521ec,_0x56d387]=await Promise[_0x377997(0x14d)]([getCurrentInstantApiPolicy(_0x494029[_0x377997(0x165)]),validateInstantApiPolicy({'appCode':_0x494029[_0x377997(0x165)],'config':_0x5b0b0c})]);return assertExpectedRevision(_0x7521ec,_0x5e49dc),{'local':_0x2e0100,'config':_0x5b0b0c,'changeSummary':_0x313709,'expectedRevision':_0x5e49dc,'before':_0x7521ec,'validation':_0x56d387};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':'publish','description':a141_0x3710b4(0x15b),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a141_0x3710b4(0x158),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x3e8895){readChangeSummary(_0x3e8895),readExpectedRevision(_0x3e8895);},async 'dryRun'(_0x402229){const _0x5e0231=a141_0x3710b4,_0x214e38=await preparePublish(_0x402229);return asDryRunResult({'operation':_0x5e0231(0x14a),'selector':{'appCode':_0x402229[_0x5e0231(0x165)]},'before':projectCurrentPolicy(_0x214e38[_0x5e0231(0x154)]),'after':{'revision':_0x214e38[_0x5e0231(0x154)]?_0x214e38[_0x5e0231(0x154)][_0x5e0231(0x155)]+0x1:0x1,'configHash':_0x214e38[_0x5e0231(0x163)][_0x5e0231(0x13f)],'config':_0x214e38[_0x5e0231(0x163)][_0x5e0231(0x15f)]},'filePath':_0x214e38[_0x5e0231(0x149)][_0x5e0231(0x156)],'relativePath':_0x214e38[_0x5e0231(0x149)][_0x5e0231(0x148)],'dryRun':!![],'backend':{'method':_0x5e0231(0x151),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x214e38['expectedRevision']),'verification':{'status':_0x5e0231(0x161),'expectedRevision':_0x214e38[_0x5e0231(0x147)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x5e0231(0x151),'url':INSTANT_API_POLICY_BASE_PATH+_0x5e0231(0x145)});},async 'execute'(_0x2271c3){const _0x492da4=a141_0x3710b4,_0x3cf6ca=await preparePublish(_0x2271c3);let _0x3afa19=![];try{await publishInstantApiPolicy({'appCode':_0x2271c3[_0x492da4(0x165)],'config':_0x3cf6ca[_0x492da4(0x162)],..._0x3cf6ca[_0x492da4(0x15a)]?{'changeSummary':_0x3cf6ca[_0x492da4(0x15a)]}:{}});}catch(_0x1dd3ea){if(!isPlatformTransportFailure(_0x1dd3ea))throw _0x1dd3ea;_0x3afa19=!![];}let _0x1a6f0c;try{_0x1a6f0c=await getCurrentInstantApiPolicy(_0x2271c3[_0x492da4(0x165)]);}catch(_0xd06baf){const _0x481254=instantApiPolicyError(_0x3afa19?_0x492da4(0x143):_0x492da4(0x164),_0x492da4(0x146),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x492da4(0x142));Object[_0x492da4(0x150)](_0x481254,_0x492da4(0x159),{'value':_0xd06baf,'enumerable':![]});throw _0x481254;}const _0x26a7fb=_0x1a6f0c&&(_0x3cf6ca[_0x492da4(0x154)]===null||_0x1a6f0c['revision']>_0x3cf6ca['before'][_0x492da4(0x155)]),_0x213783=_0x1a6f0c?.['configHash']===_0x3cf6ca[_0x492da4(0x163)]['configHash'];if(!_0x1a6f0c||!_0x26a7fb||!_0x213783)throw instantApiPolicyError(_0x3afa19?_0x492da4(0x143):_0x492da4(0x14c),_0x492da4(0x15c),_0x492da4(0x160)+mutationLookupCommand()+_0x492da4(0x142));const _0x53ce64=[...expectedRevisionWarnings(_0x3cf6ca[_0x492da4(0x147)]),RUNTIME_CACHE_WARNING];return _0x3afa19&&_0x53ce64[_0x492da4(0x166)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x492da4(0x14a),'selector':{'appCode':_0x2271c3[_0x492da4(0x165)]},'before':projectCurrentPolicy(_0x3cf6ca['before']),'after':projectCurrentPolicy(_0x1a6f0c),'filePath':_0x3cf6ca['local'][_0x492da4(0x156)],'relativePath':_0x3cf6ca[_0x492da4(0x149)][_0x492da4(0x148)],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x53ce64,'verification':{'status':_0x492da4(0x15d),'recoveredAfterUnknownResponse':_0x3afa19,'expectedRevision':_0x3cf6ca['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x492da4(0x153)+_0x1a6f0c[_0x492da4(0x155)]};}};
1
+ const a142_0xe51666=a142_0x5cc5;function a142_0x523e(){const _0x374481=['config','high-risk-write','instant-api-policy','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','instant_api_policy_publish_outcome_unknown','4218950TtifgU','3079326BViURD','POST','3901599efQUBz','verified','policyRelativePath','before','expectedRevision','policyFilePath','101563JMNkKo','all','validation','1118594GjcSzA','local','configHash','cause','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','5dVgTXI','publish','Inspect\x20with\x20`','changeSummary','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','/publish','revision','8IiXksa','3ehswsE','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','appCode','instant_api_policy_publish_verification_unavailable','Published\x20Instant\x20API\x20policy\x20revision\x20','1391396yBpIsm','`;\x20do\x20not\x20resubmit\x20automatically.','727979IfNmpY'];a142_0x523e=function(){return _0x374481;};return a142_0x523e();}(function(_0x6d7e45,_0x29ab43){const _0x556d81=a142_0x5cc5,_0x31e23=_0x6d7e45();while(!![]){try{const _0xb2beb=parseInt(_0x556d81(0x123))/0x1+-parseInt(_0x556d81(0x126))/0x2*(-parseInt(_0x556d81(0x133))/0x3)+parseInt(_0x556d81(0x138))/0x4*(parseInt(_0x556d81(0x12b))/0x5)+-parseInt(_0x556d81(0x141))/0x6+parseInt(_0x556d81(0x13a))/0x7*(-parseInt(_0x556d81(0x132))/0x8)+parseInt(_0x556d81(0x143))/0x9+-parseInt(_0x556d81(0x140))/0xa;if(_0xb2beb===_0x29ab43)break;else _0x31e23['push'](_0x31e23['shift']());}catch(_0x54843d){_0x31e23['push'](_0x31e23['shift']());}}}(a142_0x523e,0x626a3));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a142_0x5cc5(_0x4b99fc,_0x48359e){_0x4b99fc=_0x4b99fc-0x11f;const _0x523ece=a142_0x523e();let _0x5cc5bc=_0x523ece[_0x4b99fc];return _0x5cc5bc;}async function preparePublish(_0x378d93){const _0x3e523b=a142_0x5cc5,{local:_0x18ebf5,config:_0x5b74e2}=await readFixedPolicy(_0x378d93),_0x31f15b=readChangeSummary(_0x378d93),_0x1e10fe=readExpectedRevision(_0x378d93),[_0xe891e6,_0x4db8bb]=await Promise[_0x3e523b(0x124)]([getCurrentInstantApiPolicy(_0x378d93['appCode']),validateInstantApiPolicy({'appCode':_0x378d93[_0x3e523b(0x135)],'config':_0x5b74e2})]);return assertExpectedRevision(_0xe891e6,_0x1e10fe),{'local':_0x18ebf5,'config':_0x5b74e2,'changeSummary':_0x31f15b,'expectedRevision':_0x1e10fe,'before':_0xe891e6,'validation':_0x4db8bb};}export const instantApiPolicyPublish={'service':a142_0xe51666(0x13d),'command':a142_0xe51666(0x12c),'description':a142_0xe51666(0x134),'risk':a142_0xe51666(0x13c),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0xe51666(0x13e),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x312994){readChangeSummary(_0x312994),readExpectedRevision(_0x312994);},async 'dryRun'(_0x4df1ea){const _0x550fff=a142_0xe51666,_0x38a6db=await preparePublish(_0x4df1ea);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x4df1ea[_0x550fff(0x135)]},'before':projectCurrentPolicy(_0x38a6db[_0x550fff(0x120)]),'after':{'revision':_0x38a6db[_0x550fff(0x120)]?_0x38a6db[_0x550fff(0x120)]['revision']+0x1:0x1,'configHash':_0x38a6db[_0x550fff(0x125)][_0x550fff(0x128)],'config':_0x38a6db[_0x550fff(0x125)]['normalizedConfig']},'filePath':_0x38a6db[_0x550fff(0x127)]['policyFilePath'],'relativePath':_0x38a6db[_0x550fff(0x127)][_0x550fff(0x11f)],'dryRun':!![],'backend':{'method':_0x550fff(0x142),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x38a6db['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x38a6db[_0x550fff(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x550fff(0x130)});},async 'execute'(_0x5bbe9e){const _0xfec329=a142_0xe51666,_0x9625c6=await preparePublish(_0x5bbe9e);let _0x347b5d=![];try{await publishInstantApiPolicy({'appCode':_0x5bbe9e[_0xfec329(0x135)],'config':_0x9625c6[_0xfec329(0x13b)],..._0x9625c6[_0xfec329(0x12e)]?{'changeSummary':_0x9625c6[_0xfec329(0x12e)]}:{}});}catch(_0x4a5f65){if(!isPlatformTransportFailure(_0x4a5f65))throw _0x4a5f65;_0x347b5d=!![];}let _0x2dedee;try{_0x2dedee=await getCurrentInstantApiPolicy(_0x5bbe9e[_0xfec329(0x135)]);}catch(_0x2fb268){const _0x7217d5=instantApiPolicyError(_0x347b5d?'instant_api_policy_publish_outcome_unknown':_0xfec329(0x136),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xfec329(0x12d)+mutationLookupCommand()+_0xfec329(0x139));Object['defineProperty'](_0x7217d5,_0xfec329(0x129),{'value':_0x2fb268,'enumerable':![]});throw _0x7217d5;}const _0x5e18d9=_0x2dedee&&(_0x9625c6['before']===null||_0x2dedee[_0xfec329(0x131)]>_0x9625c6['before']['revision']),_0xb6ccd6=_0x2dedee?.[_0xfec329(0x128)]===_0x9625c6[_0xfec329(0x125)][_0xfec329(0x128)];if(!_0x2dedee||!_0x5e18d9||!_0xb6ccd6)throw instantApiPolicyError(_0x347b5d?_0xfec329(0x13f):'instant_api_policy_publish_verification_failed',_0xfec329(0x12a),'Inspect\x20with\x20`'+mutationLookupCommand()+_0xfec329(0x139));const _0x5688ba=[...expectedRevisionWarnings(_0x9625c6['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x347b5d&&_0x5688ba['push'](_0xfec329(0x12f)),{'ok':!![],'data':{'operation':_0xfec329(0x12c),'selector':{'appCode':_0x5bbe9e[_0xfec329(0x135)]},'before':projectCurrentPolicy(_0x9625c6[_0xfec329(0x120)]),'after':projectCurrentPolicy(_0x2dedee),'filePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x122)],'relativePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x11f)],'dryRun':![],'backend':{'method':_0xfec329(0x142),'path':INSTANT_API_POLICY_BASE_PATH+_0xfec329(0x130)},'warnings':_0x5688ba,'verification':{'status':_0xfec329(0x144),'recoveredAfterUnknownResponse':_0x347b5d,'expectedRevision':_0x9625c6[_0xfec329(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xfec329(0x137)+_0x2dedee[_0xfec329(0x131)]};}};
@@ -1 +1 @@
1
- const a142_0x337274=a142_0x4f0c;(function(_0x31df64,_0x5c3b89){const _0xf1282d=a142_0x4f0c,_0x49c5f0=_0x31df64();while(!![]){try{const _0x468370=-parseInt(_0xf1282d(0x189))/0x1*(-parseInt(_0xf1282d(0x187))/0x2)+-parseInt(_0xf1282d(0x17a))/0x3+parseInt(_0xf1282d(0x172))/0x4*(-parseInt(_0xf1282d(0x182))/0x5)+-parseInt(_0xf1282d(0x185))/0x6+parseInt(_0xf1282d(0x171))/0x7*(-parseInt(_0xf1282d(0x177))/0x8)+parseInt(_0xf1282d(0x17e))/0x9+parseInt(_0xf1282d(0x17b))/0xa*(parseInt(_0xf1282d(0x184))/0xb);if(_0x468370===_0x5c3b89)break;else _0x49c5f0['push'](_0x49c5f0['shift']());}catch(_0x8c6d47){_0x49c5f0['push'](_0x49c5f0['shift']());}}}(a142_0x26f3,0x96452));function a142_0x4f0c(_0xf9dd59,_0x29d118){_0xf9dd59=_0xf9dd59-0x171;const _0x26f3ff=a142_0x26f3();let _0x4f0c35=_0x26f3ff[_0xf9dd59];return _0x4f0c35;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a142_0x26f3(){const _0x40a25d=['Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','610872OVwQCC','action','3PKNGdq','171017AGPnRN','4KgXuLW','Pulled','appCode','instant-api-policy','\x20Instant\x20API\x20policy\x20revision\x20','296jEIijt','policyFilePath','write','2298825QFUvqd','7439650vOqfIs','instant_api_policy_not_configured','force','4654719aHMdJf','config','bool','unchanged','5675965huWOKI','pull','33zjNuhf','1466838QiwHGO'];a142_0x26f3=function(){return _0x40a25d;};return a142_0x26f3();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a142_0x337274(0x175),'command':a142_0x337274(0x183),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a142_0x337274(0x179),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x13904f){requireForceConfirmation(_0x13904f);},async 'execute'(_0x3a5c11){const _0x1f3b92=a142_0x337274;requireForceConfirmation(_0x3a5c11);const _0x3b04ba=await getCurrentInstantApiPolicy(_0x3a5c11[_0x1f3b92(0x174)]);if(!_0x3b04ba)throw instantApiPolicyError(_0x1f3b92(0x17c),_0x1f3b92(0x186)+_0x3a5c11[_0x1f3b92(0x174)]+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x25c70e=loadInstantApiPolicyLocalConfig(_0x3a5c11['appCode']),_0x20484f=await writeInstantApiPolicyConfigFile(_0x25c70e,_0x3b04ba[_0x1f3b92(0x17f)],{'force':_0x3a5c11[_0x1f3b92(0x180)](_0x1f3b92(0x17d))});return{'ok':!![],'data':{'operation':_0x1f3b92(0x183),'selector':{'appCode':_0x3a5c11[_0x1f3b92(0x174)],'revision':_0x3b04ba['revision']},'filePath':_0x25c70e[_0x1f3b92(0x178)],'relativePath':_0x25c70e['policyRelativePath'],'action':_0x20484f[_0x1f3b92(0x188)],'configHash':_0x3b04ba['configHash']},'message':(_0x20484f[_0x1f3b92(0x188)]===_0x1f3b92(0x181)?'Kept':_0x1f3b92(0x173))+_0x1f3b92(0x176)+_0x3b04ba['revision']};}};
1
+ const a143_0x1ee985=a143_0x477a;(function(_0x235ec7,_0x292660){const _0x371199=a143_0x477a,_0xa0bbd4=_0x235ec7();while(!![]){try{const _0x4779ab=parseInt(_0x371199(0x1ce))/0x1+parseInt(_0x371199(0x1ca))/0x2+-parseInt(_0x371199(0x1d1))/0x3+-parseInt(_0x371199(0x1c4))/0x4*(-parseInt(_0x371199(0x1cf))/0x5)+parseInt(_0x371199(0x1bf))/0x6*(parseInt(_0x371199(0x1cb))/0x7)+parseInt(_0x371199(0x1c6))/0x8+-parseInt(_0x371199(0x1c9))/0x9;if(_0x4779ab===_0x292660)break;else _0xa0bbd4['push'](_0xa0bbd4['shift']());}catch(_0x5302e0){_0xa0bbd4['push'](_0xa0bbd4['shift']());}}}(a143_0x5c66,0xe4f26));function a143_0x477a(_0x1bc95f,_0x30fc13){_0x1bc95f=_0x1bc95f-0x1ba;const _0x5c66b5=a143_0x5c66();let _0x477a93=_0x5c66b5[_0x1bc95f];return _0x477a93;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a143_0x5c66(){const _0x26e1f2=['revision','8122674RtoEqT','write','appCode','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','force','1661348FYnXFt','instant_api_policy_not_configured','30256srjkxp','pull','config','42112278aBvtoX','3668944eFkoBq','7NjgUgB','instant-api-policy','bool','781409LXRhYz','20MSdHkt','unchanged','53646yGspXI','action','policyRelativePath','configHash','policyFilePath'];a143_0x5c66=function(){return _0x26e1f2;};return a143_0x5c66();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x1ee985(0x1cc),'command':a143_0x1ee985(0x1c7),'description':a143_0x1ee985(0x1c2),'risk':a143_0x1ee985(0x1c0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1acf33){requireForceConfirmation(_0x1acf33);},async 'execute'(_0x4c0939){const _0x5542a8=a143_0x1ee985;requireForceConfirmation(_0x4c0939);const _0x34c9be=await getCurrentInstantApiPolicy(_0x4c0939[_0x5542a8(0x1c1)]);if(!_0x34c9be)throw instantApiPolicyError(_0x5542a8(0x1c5),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x4c0939[_0x5542a8(0x1c1)]+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x1b6a2d=loadInstantApiPolicyLocalConfig(_0x4c0939[_0x5542a8(0x1c1)]),_0x2f65b5=await writeInstantApiPolicyConfigFile(_0x1b6a2d,_0x34c9be[_0x5542a8(0x1c8)],{'force':_0x4c0939[_0x5542a8(0x1cd)](_0x5542a8(0x1c3))});return{'ok':!![],'data':{'operation':_0x5542a8(0x1c7),'selector':{'appCode':_0x4c0939[_0x5542a8(0x1c1)],'revision':_0x34c9be[_0x5542a8(0x1be)]},'filePath':_0x1b6a2d[_0x5542a8(0x1bd)],'relativePath':_0x1b6a2d[_0x5542a8(0x1bb)],'action':_0x2f65b5[_0x5542a8(0x1ba)],'configHash':_0x34c9be[_0x5542a8(0x1bc)]},'message':(_0x2f65b5[_0x5542a8(0x1ba)]===_0x5542a8(0x1d0)?'Kept':'Pulled')+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x34c9be[_0x5542a8(0x1be)]};}};
@@ -1 +1 @@
1
- const a143_0x264fe0=a143_0x30f7;(function(_0x278735,_0x492aef){const _0x593232=a143_0x30f7,_0x2486a8=_0x278735();while(!![]){try{const _0xbc473c=-parseInt(_0x593232(0x94))/0x1*(-parseInt(_0x593232(0x96))/0x2)+parseInt(_0x593232(0x90))/0x3*(-parseInt(_0x593232(0x91))/0x4)+parseInt(_0x593232(0x9a))/0x5+-parseInt(_0x593232(0x98))/0x6+parseInt(_0x593232(0x9b))/0x7+-parseInt(_0x593232(0x97))/0x8+parseInt(_0x593232(0x8d))/0x9;if(_0xbc473c===_0x492aef)break;else _0x2486a8['push'](_0x2486a8['shift']());}catch(_0x402f77){_0x2486a8['push'](_0x2486a8['shift']());}}}(a143_0x81d9,0x31d43));import{getInstantApiPolicyRevision}from'../../core/api-client.js';function a143_0x30f7(_0x4830ca,_0x1c9b0f){_0x4830ca=_0x4830ca-0x8d;const _0x81d90a=a143_0x81d9();let _0x30f70e=_0x81d90a[_0x4830ca];return _0x30f70e;}import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a143_0x81d9(){const _0x18342b=['39LBZJYE','109252AvdHwL','read','instant-api-policy','157901DFaSGH','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','2peWkLo','1780632VwnNJq','325980CLsAvm','Loaded\x20Instant\x20API\x20policy\x20revision\x20','562010XkzXMm','717276mSwymN','4169754qxmGvh','revision','appCode'];a143_0x81d9=function(){return _0x18342b;};return a143_0x81d9();}export const instantApiPolicyRevision={'service':a143_0x264fe0(0x93),'command':a143_0x264fe0(0x8e),'description':a143_0x264fe0(0x95),'risk':a143_0x264fe0(0x92),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x21f90e){readRevision(_0x21f90e);},async 'execute'(_0x335b97){const _0xee550f=a143_0x264fe0,_0x1423b1=readRevision(_0x335b97),_0x2ffc66=await getInstantApiPolicyRevision(_0x335b97[_0xee550f(0x8f)],_0x1423b1);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x2ffc66)},'message':_0xee550f(0x99)+_0x1423b1};}};
1
+ const a144_0x1b8185=a144_0x4fb6;(function(_0x295827,_0x8afc62){const _0x431b0e=a144_0x4fb6,_0x225209=_0x295827();while(!![]){try{const _0x1e442a=parseInt(_0x431b0e(0x19a))/0x1+-parseInt(_0x431b0e(0x195))/0x2*(parseInt(_0x431b0e(0x19f))/0x3)+-parseInt(_0x431b0e(0x19b))/0x4*(-parseInt(_0x431b0e(0x1a1))/0x5)+-parseInt(_0x431b0e(0x198))/0x6*(-parseInt(_0x431b0e(0x196))/0x7)+-parseInt(_0x431b0e(0x199))/0x8*(-parseInt(_0x431b0e(0x193))/0x9)+-parseInt(_0x431b0e(0x197))/0xa*(-parseInt(_0x431b0e(0x1a0))/0xb)+-parseInt(_0x431b0e(0x19e))/0xc;if(_0x1e442a===_0x8afc62)break;else _0x225209['push'](_0x225209['shift']());}catch(_0x3006c9){_0x225209['push'](_0x225209['shift']());}}}(a144_0x3b0e,0x22d19));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x4fb6(_0x115eac,_0x5bea5d){_0x115eac=_0x115eac-0x193;const _0x3b0e21=a144_0x3b0e();let _0x4fb675=_0x3b0e21[_0x115eac];return _0x4fb675;}function a144_0x3b0e(){const _0x1f2c66=['243tNapnX','823702EDeQzu','55445FGsuJl','999CrQCMw','Loaded\x20Instant\x20API\x20policy\x20revision\x20','5290nJSyjx','29960ULoKhP','30xIZYOb','162oifhmv','11752vzqiQZ','53027dAmkfi','52nApTQL','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','read','4123044Dheyiq'];a144_0x3b0e=function(){return _0x1f2c66;};return a144_0x3b0e();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a144_0x1b8185(0x19c),'risk':a144_0x1b8185(0x19d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x24e093){readRevision(_0x24e093);},async 'execute'(_0x1bba46){const _0x180ea5=a144_0x1b8185,_0x2d18a6=readRevision(_0x1bba46),_0x259326=await getInstantApiPolicyRevision(_0x1bba46['appCode'],_0x2d18a6);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x259326)},'message':_0x180ea5(0x194)+_0x2d18a6};}};
@@ -1 +1 @@
1
- function a144_0x3aad(){const _0x4b6ebb=['6398500EqlksJ','57019787lWaEUX','10ZTyxAo','174gSgUyn','1819592xWvDXu','6VvOZNu','326165BRGsfc','read','revisions','Found\x20','length','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','5jAfBNd','130068aLRjxT','instant-api-policy','1364901qMCcIj','15091668ULGNgU','appCode'];a144_0x3aad=function(){return _0x4b6ebb;};return a144_0x3aad();}const a144_0x3a9e2e=a144_0x457d;(function(_0x206154,_0x1a24ec){const _0x3a5cc9=a144_0x457d,_0x598863=_0x206154();while(!![]){try{const _0x2b7fc1=parseInt(_0x3a5cc9(0x193))/0x1+-parseInt(_0x3a5cc9(0x1a3))/0x2*(parseInt(_0x3a5cc9(0x19b))/0x3)+parseInt(_0x3a5cc9(0x196))/0x4*(parseInt(_0x3a5cc9(0x1a2))/0x5)+parseInt(_0x3a5cc9(0x199))/0x6*(parseInt(_0x3a5cc9(0x19c))/0x7)+parseInt(_0x3a5cc9(0x19a))/0x8+parseInt(_0x3a5cc9(0x194))/0x9+-parseInt(_0x3a5cc9(0x198))/0xa*(parseInt(_0x3a5cc9(0x197))/0xb);if(_0x2b7fc1===_0x1a24ec)break;else _0x598863['push'](_0x598863['shift']());}catch(_0x1d9a00){_0x598863['push'](_0x598863['shift']());}}}(a144_0x3aad,0xdd49d));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a144_0x457d(_0x1b2dfb,_0x337725){_0x1b2dfb=_0x1b2dfb-0x192;const _0x3aad4b=a144_0x3aad();let _0x457d52=_0x3aad4b[_0x1b2dfb];return _0x457d52;}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a144_0x3a9e2e(0x192),'command':a144_0x3a9e2e(0x19e),'description':a144_0x3a9e2e(0x1a1),'risk':a144_0x3a9e2e(0x19d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x228191){const _0x4a6c52=a144_0x3a9e2e,_0x388626=await listInstantApiPolicyRevisions(_0x228191[_0x4a6c52(0x195)]);return{'ok':!![],'data':{'appCode':_0x228191[_0x4a6c52(0x195)],'total':_0x388626[_0x4a6c52(0x1a0)],'revisions':_0x388626['map'](projectRevisionSummary)},'message':_0x4a6c52(0x19f)+_0x388626['length']+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
1
+ const a145_0x4145cf=a145_0x584f;function a145_0x584f(_0x57fc39,_0x55b3cf){_0x57fc39=_0x57fc39-0x112;const _0x5d3c67=a145_0x5d3c();let _0x584fc2=_0x5d3c67[_0x57fc39];return _0x584fc2;}(function(_0x14d9f5,_0x40f7bb){const _0x233b5e=a145_0x584f,_0x56b4af=_0x14d9f5();while(!![]){try{const _0x59e1ca=parseInt(_0x233b5e(0x113))/0x1*(-parseInt(_0x233b5e(0x11c))/0x2)+parseInt(_0x233b5e(0x118))/0x3*(parseInt(_0x233b5e(0x115))/0x4)+parseInt(_0x233b5e(0x114))/0x5+parseInt(_0x233b5e(0x119))/0x6+parseInt(_0x233b5e(0x112))/0x7*(parseInt(_0x233b5e(0x116))/0x8)+-parseInt(_0x233b5e(0x11f))/0x9*(parseInt(_0x233b5e(0x120))/0xa)+parseInt(_0x233b5e(0x117))/0xb*(-parseInt(_0x233b5e(0x11b))/0xc);if(_0x59e1ca===_0x40f7bb)break;else _0x56b4af['push'](_0x56b4af['shift']());}catch(_0x31c3c2){_0x56b4af['push'](_0x56b4af['shift']());}}}(a145_0x5d3c,0x5702b));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a145_0x5d3c(){const _0x1e8556=['200KfkBAP','appCode','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','7kTDbUp','106LYzxrg','826575SToetR','3364OYRbKN','1476208rVccrM','275ADWOCX','1299RlueQW','2002518ezTsnj','map','49656kvyEdD','8014HNfXkC','\x20Instant\x20API\x20policy\x20revision(s)','length','73422PsmLCI'];a145_0x5d3c=function(){return _0x1e8556;};return a145_0x5d3c();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':'revisions','description':a145_0x4145cf(0x122),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5527f4){const _0x386b4e=a145_0x4145cf,_0x47c4cb=await listInstantApiPolicyRevisions(_0x5527f4[_0x386b4e(0x121)]);return{'ok':!![],'data':{'appCode':_0x5527f4[_0x386b4e(0x121)],'total':_0x47c4cb[_0x386b4e(0x11e)],'revisions':_0x47c4cb[_0x386b4e(0x11a)](projectRevisionSummary)},'message':'Found\x20'+_0x47c4cb[_0x386b4e(0x11e)]+_0x386b4e(0x11d)};}};