@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.3

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 (387) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.d.ts +22 -0
  3. package/lib/api/api-group.js +1 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +18 -2
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/api/generate-sdk-config-file.js +1 -1
  8. package/lib/api/legacy-api-file.d.ts +11 -0
  9. package/lib/api/legacy-api-file.js +1 -0
  10. package/lib/api/model-registry-file.d.ts +36 -0
  11. package/lib/api/model-registry-file.js +1 -0
  12. package/lib/api/model-registry-scaffold.d.ts +7 -0
  13. package/lib/api/model-registry-scaffold.js +1 -0
  14. package/lib/api/model-source.d.ts +6 -0
  15. package/lib/api/model-source.js +1 -0
  16. package/lib/auth/auth-server-ui.js +1 -1
  17. package/lib/auth/auth-server.js +1 -1
  18. package/lib/auth/constant.js +1 -1
  19. package/lib/auth/get-cookie.js +1 -1
  20. package/lib/auth/get-session-user.js +1 -1
  21. package/lib/auth/is-session-valid.js +1 -1
  22. package/lib/auth/login-success-html.js +1 -1
  23. package/lib/auth/logout.js +1 -1
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.js +1 -1
  26. package/lib/commands/api/generate.js +1 -1
  27. package/lib/commands/api/index.js +1 -1
  28. package/lib/commands/api/list.js +1 -1
  29. package/lib/commands/api/pull.js +1 -1
  30. package/lib/commands/api/shared.js +1 -1
  31. package/lib/commands/app/index.js +1 -1
  32. package/lib/commands/app/list.js +1 -1
  33. package/lib/commands/app/members-list.js +1 -1
  34. package/lib/commands/app/remote-directory.js +1 -1
  35. package/lib/commands/app/shared.js +1 -1
  36. package/lib/commands/app-config/delete.js +1 -1
  37. package/lib/commands/app-config/get.js +1 -1
  38. package/lib/commands/app-config/index.js +1 -1
  39. package/lib/commands/app-config/list.js +1 -1
  40. package/lib/commands/app-config/set.js +1 -1
  41. package/lib/commands/app-config/shared.js +1 -1
  42. package/lib/commands/auth/index.js +1 -1
  43. package/lib/commands/bff/create.js +1 -1
  44. package/lib/commands/bff/delete.js +1 -1
  45. package/lib/commands/bff/detail.js +1 -1
  46. package/lib/commands/bff/index.js +1 -1
  47. package/lib/commands/bff/list.js +1 -1
  48. package/lib/commands/bff/logs.js +1 -1
  49. package/lib/commands/bff/pull.js +1 -1
  50. package/lib/commands/bff/push.js +1 -1
  51. package/lib/commands/bff/status.js +1 -1
  52. package/lib/commands/cli-skill/index.js +1 -1
  53. package/lib/commands/cli-update.js +1 -1
  54. package/lib/commands/codegen/index.js +1 -1
  55. package/lib/commands/codegen/sdk.js +1 -1
  56. package/lib/commands/codegen/sql.js +1 -1
  57. package/lib/commands/common/app-registry.js +1 -1
  58. package/lib/commands/common/app-selector.js +1 -1
  59. package/lib/commands/common/async-task.js +1 -1
  60. package/lib/commands/common/dry-run.js +1 -1
  61. package/lib/commands/common/flags.d.ts +7 -0
  62. package/lib/commands/common/flags.js +1 -1
  63. package/lib/commands/common/local-file.js +1 -1
  64. package/lib/commands/common/validate.js +1 -1
  65. package/lib/commands/config/delete.js +1 -1
  66. package/lib/commands/config/get.js +1 -1
  67. package/lib/commands/config/index.js +1 -1
  68. package/lib/commands/config/init.js +1 -1
  69. package/lib/commands/config/list.js +1 -1
  70. package/lib/commands/config/set.js +1 -1
  71. package/lib/commands/config/shared.js +1 -1
  72. package/lib/commands/dataset/batch-design.js +1 -1
  73. package/lib/commands/dataset/business-group-update.js +1 -1
  74. package/lib/commands/dataset/business-groups.js +1 -1
  75. package/lib/commands/dataset/capability.js +1 -1
  76. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  77. package/lib/commands/dataset/cross-relation-create.js +1 -0
  78. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  80. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-list.js +1 -0
  82. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  83. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  84. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  85. package/lib/commands/dataset/cross-relation-update.js +1 -0
  86. package/lib/commands/dataset/delete.js +1 -1
  87. package/lib/commands/dataset/detail.js +1 -1
  88. package/lib/commands/dataset/extend-update.js +1 -1
  89. package/lib/commands/dataset/field-restore.js +1 -1
  90. package/lib/commands/dataset/field-update.js +1 -1
  91. package/lib/commands/dataset/generate.js +1 -1
  92. package/lib/commands/dataset/index.js +1 -1
  93. package/lib/commands/dataset/list.js +1 -1
  94. package/lib/commands/dataset/operations.js +1 -1
  95. package/lib/commands/dataset/relation-audit.js +1 -1
  96. package/lib/commands/dataset/relation-create.js +1 -1
  97. package/lib/commands/dataset/relation-delete.js +1 -1
  98. package/lib/commands/dataset/relation-shared.js +1 -1
  99. package/lib/commands/dataset/relation-update.js +1 -1
  100. package/lib/commands/dataset/relations.js +1 -1
  101. package/lib/commands/dataset/rename.js +1 -1
  102. package/lib/commands/dataset/restore.js +1 -1
  103. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  104. package/lib/commands/db/analysis-batching.js +1 -1
  105. package/lib/commands/db/analyze-batch-plan.js +1 -1
  106. package/lib/commands/db/analyze-cancel.js +1 -1
  107. package/lib/commands/db/analyze-start.js +1 -1
  108. package/lib/commands/db/analyze-status.js +1 -1
  109. package/lib/commands/db/create.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/service.js +1 -1
  183. package/lib/commands/menu/shared/sync-core.js +1 -1
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/sync.js +1 -1
  187. package/lib/commands/menu/visibility-update.js +1 -1
  188. package/lib/commands/notification/config-create.js +1 -1
  189. package/lib/commands/notification/config-delete.js +1 -1
  190. package/lib/commands/notification/config-list.js +1 -1
  191. package/lib/commands/notification/config-update.js +1 -1
  192. package/lib/commands/notification/index.js +1 -1
  193. package/lib/commands/notification/shared.js +1 -1
  194. package/lib/commands/ocr/index.js +1 -1
  195. package/lib/commands/page/create.js +1 -1
  196. package/lib/commands/page/custom/detail.js +1 -1
  197. package/lib/commands/page/custom/list.js +1 -1
  198. package/lib/commands/page/custom/publish.js +1 -1
  199. package/lib/commands/page/custom/shared.js +1 -1
  200. package/lib/commands/page/custom/syntax.js +1 -1
  201. package/lib/commands/page/custom/update.js +1 -1
  202. package/lib/commands/page/data-list-status.js +1 -1
  203. package/lib/commands/page/generate-start.js +1 -1
  204. package/lib/commands/page/generate-status.js +1 -1
  205. package/lib/commands/page/index.js +1 -1
  206. package/lib/commands/page/pull.js +1 -1
  207. package/lib/commands/page/push.js +1 -1
  208. package/lib/commands/page/relation-audit.js +1 -1
  209. package/lib/commands/page/restore.js +1 -1
  210. package/lib/commands/page/shared.js +1 -1
  211. package/lib/commands/page/sync.js +1 -1
  212. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  213. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  214. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  215. package/lib/commands/project/create/format-elapsed.js +1 -1
  216. package/lib/commands/project/create/main.js +1 -1
  217. package/lib/commands/project/create/materialize-project-template.js +1 -1
  218. package/lib/commands/project/create/project-name.js +1 -1
  219. package/lib/commands/project/create/project-template-archive.js +1 -1
  220. package/lib/commands/project/create/project-template-path.js +1 -1
  221. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  222. package/lib/commands/project/create/use-format-code.js +1 -1
  223. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  224. package/lib/commands/project/domain-routing-sync.js +1 -1
  225. package/lib/commands/project/index.js +1 -1
  226. package/lib/commands/project/upgrade.d.ts +30 -1
  227. package/lib/commands/project/upgrade.js +1 -1
  228. package/lib/commands/registry.js +1 -1
  229. package/lib/commands/role/delete.js +1 -1
  230. package/lib/commands/role/detail.js +1 -1
  231. package/lib/commands/role/index.js +1 -1
  232. package/lib/commands/role/list.js +1 -1
  233. package/lib/commands/role/shared.js +1 -1
  234. package/lib/commands/role/update.js +1 -1
  235. package/lib/commands/role/user-add.js +1 -1
  236. package/lib/commands/role/user-remove.js +1 -1
  237. package/lib/commands/role/user-resolve.js +1 -1
  238. package/lib/commands/rule/get.js +1 -1
  239. package/lib/commands/rule/index.js +1 -1
  240. package/lib/commands/rule/list.js +1 -1
  241. package/lib/commands/rule/set.js +1 -1
  242. package/lib/commands/rule/shared.js +1 -1
  243. package/lib/commands/run/index.js +1 -1
  244. package/lib/commands/schema.js +1 -1
  245. package/lib/commands/sql/create.js +1 -1
  246. package/lib/commands/sql/delete.js +1 -1
  247. package/lib/commands/sql/detail.js +1 -1
  248. package/lib/commands/sql/exec.js +1 -1
  249. package/lib/commands/sql/index.js +1 -1
  250. package/lib/commands/sql/list.js +1 -1
  251. package/lib/commands/sql/pull.js +1 -1
  252. package/lib/commands/sql/push.js +1 -1
  253. package/lib/commands/sql/shared.js +1 -1
  254. package/lib/commands/sql/status.js +1 -1
  255. package/lib/commands/sql/validate.js +1 -1
  256. package/lib/commands/task/index.js +1 -1
  257. package/lib/commands/task/status.js +1 -1
  258. package/lib/commands/tenant/index.js +1 -1
  259. package/lib/commands/tenant/members-list.js +1 -1
  260. package/lib/commands/tenant/shared.js +1 -1
  261. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  262. package/lib/commands/user-account/index.js +1 -1
  263. package/lib/commands/workspace/add.js +1 -1
  264. package/lib/commands/workspace/index.js +1 -1
  265. package/lib/commands/workspace/remove.js +1 -1
  266. package/lib/config/domain-config.js +1 -1
  267. package/lib/config/project-domain-routing.js +1 -1
  268. package/lib/config/region-config.js +1 -1
  269. package/lib/config/schema.js +1 -1
  270. package/lib/constant/cdn.js +1 -1
  271. package/lib/constant/cli.js +1 -1
  272. package/lib/constant/defaults.js +1 -1
  273. package/lib/constant/domain.js +1 -1
  274. package/lib/constant/env.js +1 -1
  275. package/lib/constant/output.js +1 -1
  276. package/lib/constant/paths.js +1 -1
  277. package/lib/constant/region.js +1 -1
  278. package/lib/constant/risk.js +1 -1
  279. package/lib/constant/routing-profile.js +1 -1
  280. package/lib/context/app-resolver.d.ts +2 -0
  281. package/lib/context/app-resolver.js +1 -1
  282. package/lib/context/auth-resolver.js +1 -1
  283. package/lib/context/config-loader.js +1 -1
  284. package/lib/context.d.ts +2 -1
  285. package/lib/context.js +1 -1
  286. package/lib/core/alias-resolver.d.ts +13 -17
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.d.ts +6 -0
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-relation.d.ts +41 -0
  297. package/lib/core/cross-db-relation.js +1 -0
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/kb-search-client.js +1 -1
  302. package/lib/core/page/file-system.js +1 -1
  303. package/lib/core/page/hash.js +1 -1
  304. package/lib/core/page/lock.js +1 -1
  305. package/lib/core/page/lr-smart-jsx.js +1 -1
  306. package/lib/core/sql-index-auditor.js +1 -1
  307. package/lib/core/sql-sync/config.js +1 -1
  308. package/lib/core/sql-sync/file-system.js +1 -1
  309. package/lib/core/sql-sync/hash.js +1 -1
  310. package/lib/core/sql-sync/lock.js +1 -1
  311. package/lib/core/sql-sync/utils.js +1 -1
  312. package/lib/core/sql-validator.js +1 -1
  313. package/lib/errors.js +1 -1
  314. package/lib/framework/build-all-flags.js +1 -1
  315. package/lib/framework/error-output.js +1 -1
  316. package/lib/framework/explicit-yes.js +1 -1
  317. package/lib/framework/flags.js +1 -1
  318. package/lib/framework/help.js +1 -1
  319. package/lib/framework/index.js +1 -1
  320. package/lib/framework/output.js +1 -1
  321. package/lib/framework/response.js +1 -1
  322. package/lib/framework/runner-alias.d.ts +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/skills/builtin-skill.js +1 -1
  340. package/lib/skills/main.js +1 -1
  341. package/lib/skills/npx-skills-add.d.ts +0 -10
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/types/index.d.ts +11 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.d.ts +12 -0
  357. package/lib/utils/cli-version-policy.js +1 -1
  358. package/lib/utils/config.js +1 -1
  359. package/lib/utils/entity-with-id.js +1 -1
  360. package/lib/utils/file-utils.js +1 -1
  361. package/lib/utils/guides-cdn.js +1 -1
  362. package/lib/utils/http-client.js +1 -1
  363. package/lib/utils/is-non-interactive.js +1 -1
  364. package/lib/utils/logger.js +1 -1
  365. package/lib/utils/params.js +1 -1
  366. package/lib/utils/platform.js +1 -1
  367. package/lib/utils/sleep.js +1 -1
  368. package/lib/utils/template-replacer.js +1 -1
  369. package/lib/utils/update-notice.js +1 -1
  370. package/lib/utils/version.js +1 -1
  371. package/lib/utils/with-active-cookie.js +1 -1
  372. package/lib/utils/write-cli-side-channel.js +1 -1
  373. package/package.json +4 -1
  374. package/skills/rabetbase/SKILL.md +10 -6
  375. package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
  376. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  377. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  378. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  379. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  380. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
  381. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  382. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  383. package/skills/rabetbase.manifest.json +4 -3
  384. package/templates/README.md +16 -4
  385. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  386. package/templates/generate-api/profile-api.ts.tpl +21 -0
  387. package/templates/generate-api/profile-client.ts.tpl +14 -0
@@ -1 +1 @@
1
- (function(_0x65356f,_0x4818da){const _0x20b186=a107_0xfcbe,_0x3bf599=_0x65356f();while(!![]){try{const _0x35b975=-parseInt(_0x20b186(0xbf))/0x1+parseInt(_0x20b186(0xbb))/0x2+-parseInt(_0x20b186(0xbe))/0x3*(parseInt(_0x20b186(0xc1))/0x4)+parseInt(_0x20b186(0xba))/0x5+-parseInt(_0x20b186(0xb9))/0x6*(-parseInt(_0x20b186(0xbd))/0x7)+parseInt(_0x20b186(0xbc))/0x8+-parseInt(_0x20b186(0xc0))/0x9;if(_0x35b975===_0x4818da)break;else _0x3bf599['push'](_0x3bf599['shift']());}catch(_0x42044a){_0x3bf599['push'](_0x3bf599['shift']());}}}(a107_0x2a00,0xb6747));import{flowValidate}from'../../commands/flow/validate.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 a107_0x2a00(){const _0x3056d3=['3799380dREPkY','1694558PSFiaz','11620912kBUfou','4141459bWBfZW','78153AaNvTd','1213550NDvMHE','3491739LBRrhJ','200jaFlKd','6ibxebL'];a107_0x2a00=function(){return _0x3056d3;};return a107_0x2a00();}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a107_0xfcbe(_0x32fb64,_0x38d37c){_0x32fb64=_0x32fb64-0xb9;const _0x2a00fb=a107_0x2a00();let _0xfcbe7d=_0x2a00fb[_0x32fb64];return _0xfcbe7d;}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(_0x403a6e,_0x16acc0){const _0x44b782=a117_0x473f,_0x21c7c9=_0x403a6e();while(!![]){try{const _0x10e317=parseInt(_0x44b782(0x183))/0x1*(-parseInt(_0x44b782(0x17f))/0x2)+-parseInt(_0x44b782(0x17c))/0x3+-parseInt(_0x44b782(0x182))/0x4*(-parseInt(_0x44b782(0x184))/0x5)+-parseInt(_0x44b782(0x17d))/0x6+parseInt(_0x44b782(0x181))/0x7+parseInt(_0x44b782(0x185))/0x8+parseInt(_0x44b782(0x180))/0x9*(parseInt(_0x44b782(0x17e))/0xa);if(_0x10e317===_0x16acc0)break;else _0x21c7c9['push'](_0x21c7c9['shift']());}catch(_0x2fcda2){_0x21c7c9['push'](_0x21c7c9['shift']());}}}(a117_0x131e,0xc8334));import{flowValidate}from'../../commands/flow/validate.js';function a117_0x473f(_0x36505b,_0x114b2e){_0x36505b=_0x36505b-0x17c;const _0x131e0c=a117_0x131e();let _0x473f69=_0x131e0c[_0x36505b];return _0x473f69;}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';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a117_0x131e(){const _0x241385=['519976DRWWVF','639sizeNX','10539767tpTfrQ','4QHYBET','6PXNAwk','5146975kMoxCW','11517936JmvtNU','2554776SvnNKi','5287386uStTtu','19430DnRYUg'];a117_0x131e=function(){return _0x241385;};return a117_0x131e();}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 +1 @@
1
- const a108_0x282b88=a108_0x5295;(function(_0x2b5739,_0x16d13a){const _0xee2ed6=a108_0x5295,_0x1aad8b=_0x2b5739();while(!![]){try{const _0x1086a7=-parseInt(_0xee2ed6(0x1a5))/0x1+parseInt(_0xee2ed6(0x19a))/0x2*(-parseInt(_0xee2ed6(0x1b5))/0x3)+-parseInt(_0xee2ed6(0x1a3))/0x4*(parseInt(_0xee2ed6(0x1a2))/0x5)+parseInt(_0xee2ed6(0x1a6))/0x6+parseInt(_0xee2ed6(0x1b1))/0x7+-parseInt(_0xee2ed6(0x1a1))/0x8*(parseInt(_0xee2ed6(0x195))/0x9)+parseInt(_0xee2ed6(0x1b9))/0xa;if(_0x1086a7===_0x16d13a)break;else _0x1aad8b['push'](_0x1aad8b['shift']());}catch(_0x453820){_0x1aad8b['push'](_0x1aad8b['shift']());}}}(a108_0x56ba,0x61e71));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x5295(_0x584fab,_0x157044){_0x584fab=_0x584fab-0x194;const _0x56ba4e=a108_0x56ba();let _0x529572=_0x56ba4e[_0x584fab];return _0x529572;}const FLOW_STATUSES=[a108_0x282b88(0x1b7),'published'];export const flowList={'service':a108_0x282b88(0x1b8),'command':'list','description':a108_0x282b88(0x197),'risk':a108_0x282b88(0x198),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1af)},{'name':a108_0x282b88(0x1b4),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x19c)},{'name':a108_0x282b88(0x1ae),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1b3),'enum':FLOW_STATUSES},{'name':a108_0x282b88(0x1a8),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1aa)},{'name':'flow-type','type':a108_0x282b88(0x19e),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a108_0x282b88(0x19f),'default':0x1},{'name':a108_0x282b88(0x1a7),'type':a108_0x282b88(0x1a4),'description':a108_0x282b88(0x1a0),'default':0x14}],async 'validate'(_0x5d4bd3){const _0x5be4c4=a108_0x282b88,_0x44d766=_0x5d4bd3['num'](_0x5be4c4(0x19d),0x1),_0x10d3a5=_0x5d4bd3[_0x5be4c4(0x196)]('page-size',0x14);if(!Number[_0x5be4c4(0x1ac)](_0x44d766)||_0x44d766<0x1)throw CliErrors['validation'](_0x5be4c4(0x199));if(!Number[_0x5be4c4(0x1ac)](_0x10d3a5)||_0x10d3a5<0x1)throw CliErrors[_0x5be4c4(0x194)](_0x5be4c4(0x1b2));},async 'execute'(_0x139f61){const _0x471ce0=a108_0x282b88,{items:_0x138cfc,paging:_0x3995c0}=await listFlowDefinitions(_0x139f61[_0x471ce0(0x1b6)],{'flowCode':optionalString(_0x139f61['str'](_0x471ce0(0x1b0))),'flowName':optionalString(_0x139f61[_0x471ce0(0x19b)]('flow-name')),'flowStatus':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1ae))),'datasetCode':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1a8))),'flowType':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1a9))),'pageNum':_0x139f61['num'](_0x471ce0(0x19d),0x1),'pageSize':_0x139f61[_0x471ce0(0x196)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x139f61[_0x471ce0(0x1b6)],'flows':_0x138cfc,'paging':_0x3995c0},'message':'Found\x20'+_0x138cfc[_0x471ce0(0x1ad)]+_0x471ce0(0x1ab)};}};function optionalString(_0x135c25){const _0x136318=_0x135c25['trim']();return _0x136318||undefined;}function a108_0x56ba(){const _0x40497f=['page-size','dataset-code','flow-type','Filter\x20by\x20dataset\x20code','\x20flow\x20definition(s)','isSafeInteger','length','flow-status','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','flow-code','2079028SipXhW','--page-size\x20must\x20be\x20a\x20positive\x20integer.','Filter\x20by\x20flow\x20status','flow-name','837mLyWDp','appCode','draft','flow','11344850kTUXfY','validation','18ioZhjs','num','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','read','--page\x20must\x20be\x20a\x20positive\x20integer.','1998ztUwXd','str','Filter\x20by\x20flow\x20name','page','string','Page\x20number\x20(1-based)','Page\x20size','1587304QdUAPb','495VrgZgB','1092pSKCvc','number','784974IpZHLY','2742408LfCdrh'];a108_0x56ba=function(){return _0x40497f;};return a108_0x56ba();}
1
+ const a118_0x4869ce=a118_0x5c49;(function(_0x5c0cce,_0x141c5e){const _0x7e26d2=a118_0x5c49,_0x4538d7=_0x5c0cce();while(!![]){try{const _0x3da1ea=parseInt(_0x7e26d2(0xcb))/0x1*(parseInt(_0x7e26d2(0xe9))/0x2)+parseInt(_0x7e26d2(0xe4))/0x3+-parseInt(_0x7e26d2(0xef))/0x4*(parseInt(_0x7e26d2(0xc9))/0x5)+parseInt(_0x7e26d2(0xee))/0x6*(-parseInt(_0x7e26d2(0xe7))/0x7)+-parseInt(_0x7e26d2(0xda))/0x8*(parseInt(_0x7e26d2(0xdd))/0x9)+parseInt(_0x7e26d2(0xea))/0xa*(-parseInt(_0x7e26d2(0xd5))/0xb)+parseInt(_0x7e26d2(0xdf))/0xc;if(_0x3da1ea===_0x141c5e)break;else _0x4538d7['push'](_0x4538d7['shift']());}catch(_0xe9e3f3){_0x4538d7['push'](_0x4538d7['shift']());}}}(a118_0x56d4,0xa2dae));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x56d4(){const _0x2c9469=['Filter\x20by\x20flow\x20status','7981808esWDvu','page-size','Filter\x20by\x20flow\x20type','9PjnzhO','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','16140912oYvCBZ','published','Page\x20number\x20(1-based)','number','Filter\x20by\x20flow\x20name','2339292uAPwaC','dataset-code','--page-size\x20must\x20be\x20a\x20positive\x20integer.','70gvDMcE','appCode','1292828apwakk','80QjbsPu','validation','Found\x20','flow','545022fCnuEl','1382284qVboHL','str','flow-type','list','10KKlAiH','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','2BTfUmR','isSafeInteger','flow-code','Page\x20size','\x20flow\x20definition(s)','read','page','num','flow-name','--page\x20must\x20be\x20a\x20positive\x20integer.','210892SWpUCb','flow-status','string','length'];a118_0x56d4=function(){return _0x2c9469;};return a118_0x56d4();}import{listFlowDefinitions}from'../../core/api-client.js';function a118_0x5c49(_0x6a9ce5,_0x30b6a4){_0x6a9ce5=_0x6a9ce5-0xc6;const _0x56d4db=a118_0x56d4();let _0x5c49ce=_0x56d4db[_0x6a9ce5];return _0x5c49ce;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x4869ce(0xe0)];export const flowList={'service':a118_0x4869ce(0xed),'command':a118_0x4869ce(0xc8),'description':a118_0x4869ce(0xde),'risk':a118_0x4869ce(0xd0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x4869ce(0xcd),'type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xca)},{'name':a118_0x4869ce(0xd3),'type':'string','description':a118_0x4869ce(0xe3)},{'name':'flow-status','type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xd9),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a118_0x4869ce(0xd7),'description':'Filter\x20by\x20dataset\x20code'},{'name':a118_0x4869ce(0xc7),'type':'string','description':a118_0x4869ce(0xdc)},{'name':'page','type':a118_0x4869ce(0xe2),'description':a118_0x4869ce(0xe1),'default':0x1},{'name':a118_0x4869ce(0xdb),'type':'number','description':a118_0x4869ce(0xce),'default':0x14}],async 'validate'(_0x21378d){const _0x27ba6f=a118_0x4869ce,_0x4c4952=_0x21378d[_0x27ba6f(0xd2)]('page',0x1),_0x1ab2f7=_0x21378d[_0x27ba6f(0xd2)](_0x27ba6f(0xdb),0x14);if(!Number[_0x27ba6f(0xcc)](_0x4c4952)||_0x4c4952<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xd4));if(!Number[_0x27ba6f(0xcc)](_0x1ab2f7)||_0x1ab2f7<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xe6));},async 'execute'(_0x425880){const _0x247b89=a118_0x4869ce,{items:_0x17ede6,paging:_0x5d623e}=await listFlowDefinitions(_0x425880[_0x247b89(0xe8)],{'flowCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xcd))),'flowName':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd3))),'flowStatus':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd6))),'datasetCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xe5))),'flowType':optionalString(_0x425880['str']('flow-type')),'pageNum':_0x425880[_0x247b89(0xd2)](_0x247b89(0xd1),0x1),'pageSize':_0x425880[_0x247b89(0xd2)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x425880[_0x247b89(0xe8)],'flows':_0x17ede6,'paging':_0x5d623e},'message':_0x247b89(0xec)+_0x17ede6[_0x247b89(0xd8)]+_0x247b89(0xcf)};}};function optionalString(_0x3d815e){const _0x5e9048=_0x3d815e['trim']();return _0x5e9048||undefined;}
@@ -1 +1 @@
1
- function a109_0x4b49(_0x5855a8,_0x44e2a0){_0x5855a8=_0x5855a8-0x107;const _0x2aa191=a109_0x2aa1();let _0x4b493a=_0x2aa191[_0x5855a8];return _0x4b493a;}const a109_0xa0293b=a109_0x4b49;function a109_0x2aa1(){const _0x3d0b3a=['524054VqNWns','Publish\x20the\x20current\x20flow\x20definition\x20draft','4301766cqaiTM','1191930OUPCfo','24PtnboI','374835GFrilp','publish','3571504NDZbaN','high-risk-write','flowName','429610zfedbY','Published\x20flow\x20','flow','3819576OBoWKj','appCode'];a109_0x2aa1=function(){return _0x3d0b3a;};return a109_0x2aa1();}(function(_0x3d60f5,_0x201977){const _0x206cfe=a109_0x4b49,_0x53e072=_0x3d60f5();while(!![]){try{const _0x123a29=parseInt(_0x206cfe(0x111))/0x1+-parseInt(_0x206cfe(0x114))/0x2+parseInt(_0x206cfe(0x107))/0x3+parseInt(_0x206cfe(0x115))/0x4*(-parseInt(_0x206cfe(0x10c))/0x5)+parseInt(_0x206cfe(0x10f))/0x6+parseInt(_0x206cfe(0x113))/0x7+-parseInt(_0x206cfe(0x109))/0x8;if(_0x123a29===_0x201977)break;else _0x53e072['push'](_0x53e072['shift']());}catch(_0x148f2f){_0x53e072['push'](_0x53e072['shift']());}}}(a109_0x2aa1,0x538b6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a109_0xa0293b(0x10e),'command':'publish','description':a109_0xa0293b(0x112),'risk':a109_0xa0293b(0x10a),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x116ba3){readFlowId(_0x116ba3);},async 'dryRun'(_0x1a732a){const _0x32b536=a109_0xa0293b,_0x31f1de=readFlowId(_0x1a732a);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x32b536(0x108)],_0x1a732a[_0x32b536(0x110)],_0x31f1de,{'id':_0x31f1de,'flowStatus':'published'});},async 'execute'(_0x14108c){const _0x2261e2=a109_0xa0293b,_0x4c79d7=readFlowId(_0x14108c),_0x36417b=await publishFlowDefinition(_0x14108c[_0x2261e2(0x110)],_0x4c79d7);return{'ok':!![],'data':{'operation':_0x2261e2(0x108),'selector':flowSelector(_0x14108c['appCode'],_0x4c79d7,_0x36417b),'before':null,'after':_0x36417b,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x2261e2(0x108)]},'warnings':[]},'message':_0x2261e2(0x10d)+(_0x36417b[_0x2261e2(0x10b)]||_0x36417b['flowCode']||_0x4c79d7)};}};
1
+ function a119_0x375a(_0x540bb2,_0x4b7c76){_0x540bb2=_0x540bb2-0x16f;const _0x324bd2=a119_0x324b();let _0x375a22=_0x324bd2[_0x540bb2];return _0x375a22;}function a119_0x324b(){const _0x4528e1=['147006lOIBet','7ZUJJpC','POST','flow','3eFCGet','Publish\x20the\x20current\x20flow\x20definition\x20draft','flowCode','Published\x20flow\x20','flowName','published','600GqwtMs','51733LsELrN','964304akjZCN','591408YZaipS','494732jauvXq','2438450wHNzSm','publish','1429893CNjWrz','1Fdpedd','5BoofKY','appCode'];a119_0x324b=function(){return _0x4528e1;};return a119_0x324b();}const a119_0x598f6f=a119_0x375a;(function(_0x2781ea,_0x3a1f82){const _0x20f776=a119_0x375a,_0x3fd874=_0x2781ea();while(!![]){try{const _0x4d23d3=-parseInt(_0x20f776(0x171))/0x1*(-parseInt(_0x20f776(0x174))/0x2)+parseInt(_0x20f776(0x178))/0x3*(-parseInt(_0x20f776(0x182))/0x4)+parseInt(_0x20f776(0x172))/0x5*(-parseInt(_0x20f776(0x181))/0x6)+-parseInt(_0x20f776(0x175))/0x7*(-parseInt(_0x20f776(0x180))/0x8)+parseInt(_0x20f776(0x170))/0x9+-parseInt(_0x20f776(0x183))/0xa+-parseInt(_0x20f776(0x17f))/0xb*(-parseInt(_0x20f776(0x17e))/0xc);if(_0x4d23d3===_0x3a1f82)break;else _0x3fd874['push'](_0x3fd874['shift']());}catch(_0x48e998){_0x3fd874['push'](_0x3fd874['shift']());}}}(a119_0x324b,0x1dc74));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a119_0x598f6f(0x177),'command':'publish','description':a119_0x598f6f(0x179),'risk':'high-risk-write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x518f5d){readFlowId(_0x518f5d);},async 'dryRun'(_0x1dfc10){const _0x1e4e6c=a119_0x598f6f,_0x5acb72=readFlowId(_0x1dfc10);return buildFlowIdDryRun(_0x1e4e6c(0x16f),FLOW_PATHS[_0x1e4e6c(0x16f)],_0x1dfc10['appCode'],_0x5acb72,{'id':_0x5acb72,'flowStatus':_0x1e4e6c(0x17d)});},async 'execute'(_0x4e6cd2){const _0x5cfbc7=a119_0x598f6f,_0xdb442f=readFlowId(_0x4e6cd2),_0xa0515d=await publishFlowDefinition(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f);return{'ok':!![],'data':{'operation':_0x5cfbc7(0x16f),'selector':flowSelector(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f,_0xa0515d),'before':null,'after':_0xa0515d,'dryRun':![],'backend':{'method':_0x5cfbc7(0x176),'path':FLOW_PATHS[_0x5cfbc7(0x16f)]},'warnings':[]},'message':_0x5cfbc7(0x17b)+(_0xa0515d[_0x5cfbc7(0x17c)]||_0xa0515d[_0x5cfbc7(0x17a)]||_0xdb442f)};}};
@@ -1 +1 @@
1
- const a110_0x487f99=a110_0x376c;(function(_0x284b86,_0x23815a){const _0x2e3b39=a110_0x376c,_0xd7707f=_0x284b86();while(!![]){try{const _0x1c2bc5=parseInt(_0x2e3b39(0x1a5))/0x1*(-parseInt(_0x2e3b39(0x1a0))/0x2)+parseInt(_0x2e3b39(0x1a4))/0x3+-parseInt(_0x2e3b39(0x19e))/0x4+-parseInt(_0x2e3b39(0x19c))/0x5+parseInt(_0x2e3b39(0x1aa))/0x6+-parseInt(_0x2e3b39(0x1af))/0x7*(-parseInt(_0x2e3b39(0x199))/0x8)+-parseInt(_0x2e3b39(0x19a))/0x9*(parseInt(_0x2e3b39(0x1a2))/0xa);if(_0x1c2bc5===_0x23815a)break;else _0xd7707f['push'](_0xd7707f['shift']());}catch(_0x4e6a40){_0xd7707f['push'](_0xd7707f['shift']());}}}(a110_0x53a9,0x25014));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':'page','type':a110_0x487f99(0x1b2),'description':a110_0x487f99(0x192),'default':0x1};function a110_0x376c(_0x5e9351,_0x37d2ff){_0x5e9351=_0x5e9351-0x18d;const _0x53a9a1=a110_0x53a9();let _0x376c89=_0x53a9a1[_0x5e9351];return _0x376c89;}function a110_0x53a9(){const _0x5b24cd=['roleName','869682uPioqw','remark','nickName','Page\x20size\x20(1-100)','roleType','47915CpgPtM','userName','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','number','map','userCount','string','page-size','--page\x20must\x20be\x20a\x20positive\x20integer.','isSafeInteger','page','Runtime\x20role\x20\x22','Page\x20index\x20(1-based)','email','test','username','permitCount','role','userId','240CYEnIs','9tiVidw','length','64440kpkODg','trim','223176RpIPLU','validation','1286rchFRH','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','1030300xbcplk','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','156228BQedgJ','123ycDVao','\x22\x20is\x20ambiguous\x20(ids:\x20','status','code'];a110_0x53a9=function(){return _0x5b24cd;};return a110_0x53a9();}export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a110_0x487f99(0x18d),'type':a110_0x487f99(0x1b2),'description':a110_0x487f99(0x1ad),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a110_0x487f99(0x1b5),'required':!![],'description':a110_0x487f99(0x1b1)};export function readRuntimePagination(_0xa1a381){const _0x42037a=a110_0x487f99,_0x1d3f1c=_0xa1a381['num'](_0x42037a(0x190),0x1),_0x338ca2=_0xa1a381['num'](_0x42037a(0x18d),0x14);if(!Number['isSafeInteger'](_0x1d3f1c)||_0x1d3f1c<0x1)throw CliErrors[_0x42037a(0x19f)](_0x42037a(0x18e));if(!Number[_0x42037a(0x18f)](_0x338ca2)||_0x338ca2<0x1||_0x338ca2>0x64)throw CliErrors[_0x42037a(0x19f)](_0x42037a(0x1a3));return{'page':_0x1d3f1c,'pageSize':_0x338ca2};}export function paginateRuntimeItems(_0x2518c7,_0x3c3364,_0x420478){const _0x543c56=a110_0x487f99,_0x41069c=(_0x3c3364-0x1)*_0x420478;return{'items':_0x2518c7['slice'](_0x41069c,_0x41069c+_0x420478),'paging':{'currentPage':_0x3c3364,'pageSize':_0x420478,'totalCount':_0x2518c7[_0x543c56(0x19b)]}};}export function projectRuntimeRole(_0x182f83){const _0xc8bfc9=a110_0x487f99;return{'id':_0x182f83['id'],'roleName':_0x182f83['roleName']??null,'roleType':_0x182f83[_0xc8bfc9(0x1ae)]??null,'remark':_0x182f83[_0xc8bfc9(0x1ab)]??null,'userCount':_0x182f83[_0xc8bfc9(0x1b4)]??0x0,'permitCount':_0x182f83[_0xc8bfc9(0x196)]??0x0};}export function projectRuntimeUser(_0x3a6cef){const _0x25aedc=a110_0x487f99,_0x564120=normalizeRuntimeUserId(_0x3a6cef[_0x25aedc(0x1a8)]);if(!_0x564120)return null;return{'userId':_0x564120,'username':_0x3a6cef[_0x25aedc(0x1b0)]??null,'nickname':_0x3a6cef[_0x25aedc(0x1ac)]??null,'displayName':_0x3a6cef['displayName']??null,'email':_0x3a6cef[_0x25aedc(0x193)]??null,'status':_0x3a6cef[_0x25aedc(0x1a7)]??null};}export function projectRuntimeRoleMember(_0x2d6ba2){const _0x1ef2a0=a110_0x487f99,_0xd75818=normalizeRuntimeUserId(_0x2d6ba2[_0x1ef2a0(0x198)]);if(!_0xd75818)return null;return{'userId':_0xd75818,'username':_0x2d6ba2[_0x1ef2a0(0x195)]??null,'nickname':_0x2d6ba2['nickname']??null};}export function readRuntimeRoleRef(_0xae34e0){const _0xecf91f=a110_0x487f99,_0x1613c3=_0xae34e0['str'](_0xecf91f(0x197))[_0xecf91f(0x19d)]();if(!_0x1613c3)throw CliErrors['flagMissing'](_0xecf91f(0x197),'Pass\x20--role\x20<id|name>.');return _0x1613c3;}export function resolveRuntimeRoleGroup(_0x467b12,_0x27409c,_0x17a5ed){const _0x14ac5a=a110_0x487f99,_0x67c9f4=/^\d+$/[_0x14ac5a(0x194)](_0x27409c)?_0x17a5ed['filter'](_0x2b19a4=>_0x2b19a4['id']===Number(_0x27409c)):_0x17a5ed['filter'](_0x49b734=>_0x49b734[_0x14ac5a(0x1a9)]===_0x27409c);if(_0x67c9f4[_0x14ac5a(0x19b)]===0x0)throw CliErrors['validation'](_0x14ac5a(0x191)+_0x27409c+'\x22\x20not\x20found\x20in\x20app\x20'+_0x467b12+'.',_0x14ac5a(0x1a1));if(_0x67c9f4[_0x14ac5a(0x19b)]>0x1){const _0x1bd5c3=_0x67c9f4[_0x14ac5a(0x1b3)](_0x239693=>_0x239693['id'])['join'](',\x20');throw CliErrors['validation']('Runtime\x20role\x20name\x20\x22'+_0x27409c+_0x14ac5a(0x1a6)+_0x1bd5c3+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0x67c9f4[0x0];}function normalizeRuntimeUserId(_0x2f8a73){const _0x384ab6=a110_0x487f99;if(typeof _0x2f8a73!==_0x384ab6(0x1b5)&&typeof _0x2f8a73!==_0x384ab6(0x1b2))return null;const _0x5691ea=String(_0x2f8a73)[_0x384ab6(0x19d)]();return _0x5691ea||null;}
1
+ const a120_0x4f0e74=a120_0x495d;(function(_0x39b103,_0xc10d1e){const _0x4cb07c=a120_0x495d,_0x3738df=_0x39b103();while(!![]){try{const _0x20ef70=-parseInt(_0x4cb07c(0x1b5))/0x1+-parseInt(_0x4cb07c(0x1c5))/0x2*(parseInt(_0x4cb07c(0x1be))/0x3)+-parseInt(_0x4cb07c(0x19c))/0x4+parseInt(_0x4cb07c(0x1ac))/0x5+parseInt(_0x4cb07c(0x1ab))/0x6+parseInt(_0x4cb07c(0x1b7))/0x7+-parseInt(_0x4cb07c(0x1b6))/0x8*(-parseInt(_0x4cb07c(0x1bc))/0x9);if(_0x20ef70===_0xc10d1e)break;else _0x3738df['push'](_0x3738df['shift']());}catch(_0x113a08){_0x3738df['push'](_0x3738df['shift']());}}}(a120_0x1501,0x1a393));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x4f0e74(0x1a5),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1c3),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x4f0e74(0x19e),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1a3),'default':0x14};function a120_0x495d(_0x5e763f,_0x4018e3){_0x5e763f=_0x5e763f-0x19a;const _0x15017e=a120_0x1501();let _0x495d91=_0x15017e[_0x5e763f];return _0x495d91;}export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x4f0e74(0x1b3),'type':'string','required':!![],'description':a120_0x4f0e74(0x1bb)};export function readRuntimePagination(_0x28e7f3){const _0x2a26b3=a120_0x4f0e74,_0x1d727e=_0x28e7f3[_0x2a26b3(0x1a2)](_0x2a26b3(0x1a5),0x1),_0x49399d=_0x28e7f3[_0x2a26b3(0x1a2)]('page-size',0x14);if(!Number[_0x2a26b3(0x1a0)](_0x1d727e)||_0x1d727e<0x1)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1c2));if(!Number['isSafeInteger'](_0x49399d)||_0x49399d<0x1||_0x49399d>0x64)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1a6));return{'page':_0x1d727e,'pageSize':_0x49399d};}export function paginateRuntimeItems(_0x49384a,_0x344a52,_0x5b65a6){const _0x1d663a=a120_0x4f0e74,_0x2fc163=(_0x344a52-0x1)*_0x5b65a6;return{'items':_0x49384a[_0x1d663a(0x1a1)](_0x2fc163,_0x2fc163+_0x5b65a6),'paging':{'currentPage':_0x344a52,'pageSize':_0x5b65a6,'totalCount':_0x49384a[_0x1d663a(0x1a7)]}};}export function projectRuntimeRole(_0x5363c1){const _0x558722=a120_0x4f0e74;return{'id':_0x5363c1['id'],'roleName':_0x5363c1['roleName']??null,'roleType':_0x5363c1[_0x558722(0x1b4)]??null,'remark':_0x5363c1[_0x558722(0x1bd)]??null,'userCount':_0x5363c1[_0x558722(0x19b)]??0x0,'permitCount':_0x5363c1['permitCount']??0x0};}function a120_0x1501(){const _0x2f7df9=['remark','843zRwHGh','\x22\x20not\x20found\x20in\x20app\x20','join','test','--page\x20must\x20be\x20a\x20positive\x20integer.','Page\x20index\x20(1-based)','nickName','400MoMxhm','filter','userCount','289320QPtwuG','number','page-size','trim','isSafeInteger','slice','num','Page\x20size\x20(1-100)','Runtime\x20role\x20name\x20\x22','page','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','length','userId','username','string','483330aGLmpb','362995FATiAV','code','validation','displayName','nickname','Disambiguate\x20with\x20--role\x20<id>.','roleName','role','roleType','18487CRQxLo','3624YZarCK','445725IjeCNY','map','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','Pass\x20--role\x20<id|name>.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','747cYfwBv'];a120_0x1501=function(){return _0x2f7df9;};return a120_0x1501();}export function projectRuntimeUser(_0x36f947){const _0x2705e5=a120_0x4f0e74,_0x566a97=normalizeRuntimeUserId(_0x36f947[_0x2705e5(0x1ad)]);if(!_0x566a97)return null;return{'userId':_0x566a97,'username':_0x36f947['userName']??null,'nickname':_0x36f947[_0x2705e5(0x1c4)]??null,'displayName':_0x36f947[_0x2705e5(0x1af)]??null,'email':_0x36f947['email']??null,'status':_0x36f947['status']??null};}export function projectRuntimeRoleMember(_0x2cde7b){const _0x3a0542=a120_0x4f0e74,_0x36bc98=normalizeRuntimeUserId(_0x2cde7b[_0x3a0542(0x1a8)]);if(!_0x36bc98)return null;return{'userId':_0x36bc98,'username':_0x2cde7b[_0x3a0542(0x1a9)]??null,'nickname':_0x2cde7b[_0x3a0542(0x1b0)]??null};}export function readRuntimeRoleRef(_0x508793){const _0xe05e05=a120_0x4f0e74,_0x39764d=_0x508793['str'](_0xe05e05(0x1b3))[_0xe05e05(0x19f)]();if(!_0x39764d)throw CliErrors['flagMissing'](_0xe05e05(0x1b3),_0xe05e05(0x1ba));return _0x39764d;}export function resolveRuntimeRoleGroup(_0x475ea8,_0x540de6,_0x161ea5){const _0xc7c5fa=a120_0x4f0e74,_0x454bbd=/^\d+$/[_0xc7c5fa(0x1c1)](_0x540de6)?_0x161ea5['filter'](_0x30bd61=>_0x30bd61['id']===Number(_0x540de6)):_0x161ea5[_0xc7c5fa(0x19a)](_0x507ab9=>_0x507ab9[_0xc7c5fa(0x1b2)]===_0x540de6);if(_0x454bbd[_0xc7c5fa(0x1a7)]===0x0)throw CliErrors[_0xc7c5fa(0x1ae)]('Runtime\x20role\x20\x22'+_0x540de6+_0xc7c5fa(0x1bf)+_0x475ea8+'.',_0xc7c5fa(0x1b9));if(_0x454bbd[_0xc7c5fa(0x1a7)]>0x1){const _0x4d905b=_0x454bbd[_0xc7c5fa(0x1b8)](_0x301ae6=>_0x301ae6['id'])[_0xc7c5fa(0x1c0)](',\x20');throw CliErrors['validation'](_0xc7c5fa(0x1a4)+_0x540de6+'\x22\x20is\x20ambiguous\x20(ids:\x20'+_0x4d905b+').',_0xc7c5fa(0x1b1));}return _0x454bbd[0x0];}function normalizeRuntimeUserId(_0x2edaf2){const _0x42fcd4=a120_0x4f0e74;if(typeof _0x2edaf2!==_0x42fcd4(0x1aa)&&typeof _0x2edaf2!=='number')return null;const _0x22a77e=String(_0x2edaf2)[_0x42fcd4(0x19f)]();return _0x22a77e||null;}
@@ -1 +1 @@
1
- function a111_0x3ca4(){const _0x3863f4=['10222jKfRlf','Found\x20','runtime','20690GKPhmF','keyword','252108znflDY','4xxnicp','563610FebTTq','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','7AfsZPc','\x20runtime\x20role(s)','length','appCode','15vcAMNg','flow','311390PSpJfO','24WGEbqu','runtime-role-list','read','str','693077uZXvxP','371484lfWCez'];a111_0x3ca4=function(){return _0x3863f4;};return a111_0x3ca4();}const a111_0x72b662=a111_0x2093;(function(_0x5d270c,_0x57e775){const _0x427ad8=a111_0x2093,_0x275e4b=_0x5d270c();while(!![]){try{const _0x4b80af=parseInt(_0x427ad8(0x84))/0x1*(parseInt(_0x427ad8(0x8d))/0x2)+-parseInt(_0x427ad8(0x8c))/0x3+parseInt(_0x427ad8(0x7d))/0x4*(-parseInt(_0x427ad8(0x86))/0x5)+parseInt(_0x427ad8(0x7e))/0x6*(parseInt(_0x427ad8(0x80))/0x7)+-parseInt(_0x427ad8(0x87))/0x8*(-parseInt(_0x427ad8(0x92))/0x9)+-parseInt(_0x427ad8(0x90))/0xa+parseInt(_0x427ad8(0x8b))/0xb;if(_0x4b80af===_0x57e775)break;else _0x275e4b['push'](_0x275e4b['shift']());}catch(_0x3d6244){_0x275e4b['push'](_0x275e4b['shift']());}}}(a111_0x3ca4,0x1f9bc));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';function a111_0x2093(_0x59d25b,_0xb4b5){_0x59d25b=_0x59d25b-0x7d;const _0x3ca4b2=a111_0x3ca4();let _0x209359=_0x3ca4b2[_0x59d25b];return _0x209359;}import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a111_0x72b662(0x85),'command':a111_0x72b662(0x88),'description':a111_0x72b662(0x7f),'risk':a111_0x72b662(0x89),'flags':[{'name':a111_0x72b662(0x91),'type':'string','description':'Optional\x20runtime\x20role-name\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x340bf3){readRuntimePagination(_0x340bf3);},async 'execute'(_0x2cd9b9){const _0x518cfe=a111_0x72b662,{page:_0x4b90f8,pageSize:_0x3b1e4e}=readRuntimePagination(_0x2cd9b9),_0x5a93a4=_0x2cd9b9[_0x518cfe(0x8a)](_0x518cfe(0x91))['trim'](),{items:_0x25d671,paging:_0x281fa9}=await listApprovalRuntimeRoles(_0x2cd9b9[_0x518cfe(0x83)],{..._0x5a93a4?{'roleName':_0x5a93a4}:{},'currentPage':_0x4b90f8,'pageSize':_0x3b1e4e}),_0x22b037=_0x25d671['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x2cd9b9[_0x518cfe(0x83)],'scope':_0x518cfe(0x8f),..._0x5a93a4?{'keyword':_0x5a93a4}:{},'roles':_0x22b037,'paging':_0x281fa9},'message':_0x518cfe(0x8e)+_0x22b037[_0x518cfe(0x82)]+_0x518cfe(0x81)};}};
1
+ const a121_0x25d0a2=a121_0x33dd;(function(_0x2923dc,_0x5b1f50){const _0x3f32b3=a121_0x33dd,_0x3da28b=_0x2923dc();while(!![]){try{const _0x1a1246=parseInt(_0x3f32b3(0x11a))/0x1*(parseInt(_0x3f32b3(0x110))/0x2)+-parseInt(_0x3f32b3(0x10a))/0x3*(parseInt(_0x3f32b3(0x117))/0x4)+parseInt(_0x3f32b3(0x114))/0x5*(-parseInt(_0x3f32b3(0x10e))/0x6)+-parseInt(_0x3f32b3(0x113))/0x7+-parseInt(_0x3f32b3(0x10f))/0x8*(-parseInt(_0x3f32b3(0x111))/0x9)+-parseInt(_0x3f32b3(0x11b))/0xa+parseInt(_0x3f32b3(0x10b))/0xb;if(_0x1a1246===_0x5b1f50)break;else _0x3da28b['push'](_0x3da28b['shift']());}catch(_0x27dbd1){_0x3da28b['push'](_0x3da28b['shift']());}}}(a121_0x4247,0x1acf5));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 a121_0x33dd(_0x59e135,_0x5d1463){_0x59e135=_0x59e135-0x107;const _0x424762=a121_0x4247();let _0x33ddc2=_0x424762[_0x59e135];return _0x33ddc2;}export const flowRuntimeRoleList={'service':a121_0x25d0a2(0x108),'command':'runtime-role-list','description':a121_0x25d0a2(0x118),'risk':'read','flags':[{'name':a121_0x25d0a2(0x116),'type':a121_0x25d0a2(0x10d),'description':a121_0x25d0a2(0x115)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3da6a6){readRuntimePagination(_0x3da6a6);},async 'execute'(_0x287f47){const _0x54eed1=a121_0x25d0a2,{page:_0x589b08,pageSize:_0x5e79c8}=readRuntimePagination(_0x287f47),_0xbdbdb1=_0x287f47[_0x54eed1(0x107)](_0x54eed1(0x116))[_0x54eed1(0x119)](),{items:_0x4c4017,paging:_0x5537b8}=await listApprovalRuntimeRoles(_0x287f47[_0x54eed1(0x109)],{..._0xbdbdb1?{'roleName':_0xbdbdb1}:{},'currentPage':_0x589b08,'pageSize':_0x5e79c8}),_0x582e5d=_0x4c4017[_0x54eed1(0x10c)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x287f47[_0x54eed1(0x109)],'scope':_0x54eed1(0x112),..._0xbdbdb1?{'keyword':_0xbdbdb1}:{},'roles':_0x582e5d,'paging':_0x5537b8},'message':'Found\x20'+_0x582e5d['length']+'\x20runtime\x20role(s)'};}};function a121_0x4247(){const _0x47c428=['flow','appCode','10713rtCvZP','6464876pROieN','map','string','180xHRztG','2808dxCheb','9378hwocfI','603pFzDVv','runtime','1407315aamqCM','24585oIyaOX','Optional\x20runtime\x20role-name\x20keyword','keyword','76vmgNvI','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','trim','9notuPP','1272170fuNsYl','str'];a121_0x4247=function(){return _0x47c428;};return a121_0x4247();}
@@ -1 +1 @@
1
- const a112_0xcf8f6b=a112_0x3860;(function(_0x71eb9c,_0x3312eb){const _0x4df28e=a112_0x3860,_0x40787e=_0x71eb9c();while(!![]){try{const _0x8efede=-parseInt(_0x4df28e(0xa3))/0x1*(parseInt(_0x4df28e(0x96))/0x2)+-parseInt(_0x4df28e(0x9e))/0x3*(-parseInt(_0x4df28e(0x9a))/0x4)+parseInt(_0x4df28e(0xa6))/0x5+-parseInt(_0x4df28e(0x9d))/0x6+parseInt(_0x4df28e(0x9c))/0x7*(parseInt(_0x4df28e(0x93))/0x8)+parseInt(_0x4df28e(0x98))/0x9+parseInt(_0x4df28e(0x9f))/0xa*(-parseInt(_0x4df28e(0x95))/0xb);if(_0x8efede===_0x3312eb)break;else _0x40787e['push'](_0x40787e['shift']());}catch(_0x40ac0e){_0x40787e['push'](_0x40787e['shift']());}}}(a112_0x985b,0x278d4));function a112_0x985b(){const _0x708d5d=['2drpXnM','items','2581317NKsGGF','map','16OZKjFq','runtime','7EHaxSZ','19344aXaOzq','130278kQjQZp','230cHpPZG','runtime-role-user-list','appCode','length','84062XiVwHo','flow','Found\x20','404610iGghvY','paging','filter','userList','\x20runtime\x20member(s)\x20in\x20role\x20','560072yZzIpL','roleName','173206mvboIm'];a112_0x985b=function(){return _0x708d5d;};return a112_0x985b();}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';function a112_0x3860(_0x21573a,_0x312cb8){_0x21573a=_0x21573a-0x8f;const _0x985bfa=a112_0x985b();let _0x386033=_0x985bfa[_0x21573a];return _0x386033;}export const flowRuntimeRoleUserList={'service':a112_0xcf8f6b(0xa4),'command':a112_0xcf8f6b(0xa0),'description':'List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x13bec8){readRuntimeRoleRef(_0x13bec8),readRuntimePagination(_0x13bec8);},async 'execute'(_0x1f3fc2){const _0x532427=a112_0xcf8f6b,_0x4a68c4=resolveRuntimeRoleGroup(_0x1f3fc2[_0x532427(0xa1)],readRuntimeRoleRef(_0x1f3fc2),await listApprovalRuntimeRoleUsers(_0x1f3fc2['appCode'])),_0x3c6eb9=(_0x4a68c4[_0x532427(0x91)]??[])[_0x532427(0x99)](projectRuntimeRoleMember)[_0x532427(0x90)](_0x3a4cf7=>_0x3a4cf7!==null),{page:_0x3e6285,pageSize:_0x2df532}=readRuntimePagination(_0x1f3fc2),_0x5683ee=paginateRuntimeItems(_0x3c6eb9,_0x3e6285,_0x2df532);return{'ok':!![],'data':{'appCode':_0x1f3fc2[_0x532427(0xa1)],'scope':_0x532427(0x9b),'role':{'id':_0x4a68c4['id'],'roleName':_0x4a68c4[_0x532427(0x94)]??null,'roleType':_0x4a68c4['roleType']??null},'users':_0x5683ee[_0x532427(0x97)],'paging':_0x5683ee[_0x532427(0x8f)]},'message':_0x532427(0xa5)+_0x3c6eb9[_0x532427(0xa2)]+_0x532427(0x92)+(_0x4a68c4[_0x532427(0x94)]??_0x4a68c4['id'])};}};
1
+ const a122_0x115234=a122_0x45ea;function a122_0x45b9(){const _0x25e6ed=['775250KAcsCQ','4425384txLxoN','719115nbnQjW','map','45578uNTpeL','filter','userList','paging','768380zAOkBE','3039906LEKRWy','8598987yykMdO','items','length','Found\x20','roleType','flow','runtime-role-user-list','3ctCbcF','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','\x20runtime\x20member(s)\x20in\x20role\x20','runtime','6HbooyM','appCode','roleName'];a122_0x45b9=function(){return _0x25e6ed;};return a122_0x45b9();}(function(_0x24359c,_0x51932b){const _0x5658d4=a122_0x45ea,_0x4bb721=_0x24359c();while(!![]){try{const _0x57d313=-parseInt(_0x5658d4(0xb5))/0x1*(-parseInt(_0x5658d4(0xc0))/0x2)+parseInt(_0x5658d4(0xad))/0x3+-parseInt(_0x5658d4(0xac))/0x4+-parseInt(_0x5658d4(0xbe))/0x5*(-parseInt(_0x5658d4(0xb9))/0x6)+-parseInt(_0x5658d4(0xbc))/0x7+parseInt(_0x5658d4(0xbd))/0x8+-parseInt(_0x5658d4(0xae))/0x9;if(_0x57d313===_0x51932b)break;else _0x4bb721['push'](_0x4bb721['shift']());}catch(_0x44e742){_0x4bb721['push'](_0x4bb721['shift']());}}}(a122_0x45b9,0x7f0b9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x45ea(_0x31e3b1,_0x249e12){_0x31e3b1=_0x31e3b1-0xaa;const _0x45b979=a122_0x45b9();let _0x45ead9=_0x45b979[_0x31e3b1];return _0x45ead9;}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':a122_0x115234(0xb3),'command':a122_0x115234(0xb4),'description':a122_0x115234(0xb6),'risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15f31f){readRuntimeRoleRef(_0x15f31f),readRuntimePagination(_0x15f31f);},async 'execute'(_0x5993ca){const _0x1e90dd=a122_0x115234,_0x160c1c=resolveRuntimeRoleGroup(_0x5993ca[_0x1e90dd(0xba)],readRuntimeRoleRef(_0x5993ca),await listApprovalRuntimeRoleUsers(_0x5993ca[_0x1e90dd(0xba)])),_0x5c476c=(_0x160c1c[_0x1e90dd(0xaa)]??[])[_0x1e90dd(0xbf)](projectRuntimeRoleMember)[_0x1e90dd(0xc1)](_0x42d1b3=>_0x42d1b3!==null),{page:_0xb8aa58,pageSize:_0x1fff03}=readRuntimePagination(_0x5993ca),_0x4f8c0b=paginateRuntimeItems(_0x5c476c,_0xb8aa58,_0x1fff03);return{'ok':!![],'data':{'appCode':_0x5993ca['appCode'],'scope':_0x1e90dd(0xb8),'role':{'id':_0x160c1c['id'],'roleName':_0x160c1c[_0x1e90dd(0xbb)]??null,'roleType':_0x160c1c[_0x1e90dd(0xb2)]??null},'users':_0x4f8c0b[_0x1e90dd(0xaf)],'paging':_0x4f8c0b[_0x1e90dd(0xab)]},'message':_0x1e90dd(0xb1)+_0x5c476c[_0x1e90dd(0xb0)]+_0x1e90dd(0xb7)+(_0x160c1c['roleName']??_0x160c1c['id'])};}};
@@ -1 +1 @@
1
- const a113_0x3ab77a=a113_0x58f8;(function(_0x2deb90,_0x26e76f){const _0x4e2bbc=a113_0x58f8,_0x2a2032=_0x2deb90();while(!![]){try{const _0x57bc28=-parseInt(_0x4e2bbc(0x1fd))/0x1+parseInt(_0x4e2bbc(0x1f3))/0x2*(-parseInt(_0x4e2bbc(0x207))/0x3)+parseInt(_0x4e2bbc(0x1f8))/0x4*(-parseInt(_0x4e2bbc(0x1f9))/0x5)+parseInt(_0x4e2bbc(0x1fe))/0x6*(parseInt(_0x4e2bbc(0x1ff))/0x7)+-parseInt(_0x4e2bbc(0x206))/0x8+parseInt(_0x4e2bbc(0x209))/0x9+parseInt(_0x4e2bbc(0x1f2))/0xa*(parseInt(_0x4e2bbc(0x1ed))/0xb);if(_0x57bc28===_0x26e76f)break;else _0x2a2032['push'](_0x2a2032['shift']());}catch(_0x25764d){_0x2a2032['push'](_0x2a2032['shift']());}}}(a113_0x2a99,0x9a1eb));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a113_0x2a99(){const _0xfafd76=['Found\x20','5150976ZJXlmT','1713330OgvoXd','map','3594645EQvTNd','paging','userName','1936UhDfbs','runtime','string','filter','read','234820QWBKLk','4YaOUBG','flagMissing','includes','length','runtime-user-search','1608cGXqfI','13060yULmxD','items','toLowerCase','email','1077451KfzJig','30eQnPPa','17647AEmJyX','str','keyword','nickName','trim','appCode'];a113_0x2a99=function(){return _0xfafd76;};return a113_0x2a99();}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';function a113_0x58f8(_0x4b33db,_0x144725){_0x4b33db=_0x4b33db-0x1ed;const _0x2a99a3=a113_0x2a99();let _0x58f896=_0x2a99a3[_0x4b33db];return _0x58f896;}import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':'flow','command':a113_0x3ab77a(0x1f7),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':a113_0x3ab77a(0x1f1),'flags':[{'name':a113_0x3ab77a(0x201),'type':a113_0x3ab77a(0x1ef),'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'(_0x477b8c){const _0x537385=a113_0x3ab77a;if(!_0x477b8c[_0x537385(0x200)](_0x537385(0x201))[_0x537385(0x203)]())throw CliErrors[_0x537385(0x1f4)]('keyword','Pass\x20--keyword\x20<text>.');readRuntimePagination(_0x477b8c);},async 'execute'(_0x3d3ef2){const _0x54c835=a113_0x3ab77a,_0x49bd21=_0x3d3ef2[_0x54c835(0x200)](_0x54c835(0x201))['trim'](),_0x3dcf4f=_0x49bd21['toLowerCase'](),_0x55006d=(await listApprovalRuntimeUsers(_0x3d3ef2[_0x54c835(0x204)]))[_0x54c835(0x1f0)](_0x45f9dd=>[_0x45f9dd['code'],_0x45f9dd[_0x54c835(0x20b)],_0x45f9dd[_0x54c835(0x202)],_0x45f9dd['displayName'],_0x45f9dd[_0x54c835(0x1fc)]]['some'](_0x43ff15=>_0x43ff15!==null&&_0x43ff15!==undefined&&String(_0x43ff15)[_0x54c835(0x1fb)]()[_0x54c835(0x1f5)](_0x3dcf4f)))[_0x54c835(0x208)](projectRuntimeUser)[_0x54c835(0x1f0)](_0xd9a96e=>_0xd9a96e!==null),{page:_0x7f31d0,pageSize:_0x555c5e}=readRuntimePagination(_0x3d3ef2),_0x2344f8=paginateRuntimeItems(_0x55006d,_0x7f31d0,_0x555c5e);return{'ok':!![],'data':{'appCode':_0x3d3ef2[_0x54c835(0x204)],'scope':_0x54c835(0x1ee),'keyword':_0x49bd21,'users':_0x2344f8[_0x54c835(0x1fa)],'paging':_0x2344f8[_0x54c835(0x20a)]},'message':_0x54c835(0x205)+_0x55006d[_0x54c835(0x1f6)]+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0x49bd21+'\x22'};}};
1
+ function a123_0x2132(_0x2aca8e,_0x136ce9){_0x2aca8e=_0x2aca8e-0xa1;const _0x3ab106=a123_0x3ab1();let _0x213209=_0x3ab106[_0x2aca8e];return _0x213209;}const a123_0x339a79=a123_0x2132;(function(_0x171797,_0x1bfa1e){const _0x150154=a123_0x2132,_0x40a2e1=_0x171797();while(!![]){try{const _0x53d6a6=parseInt(_0x150154(0xa7))/0x1*(-parseInt(_0x150154(0xb7))/0x2)+parseInt(_0x150154(0xb8))/0x3*(-parseInt(_0x150154(0xb3))/0x4)+-parseInt(_0x150154(0xba))/0x5*(parseInt(_0x150154(0xaa))/0x6)+parseInt(_0x150154(0xac))/0x7+-parseInt(_0x150154(0xa5))/0x8*(parseInt(_0x150154(0xbc))/0x9)+-parseInt(_0x150154(0xa8))/0xa+parseInt(_0x150154(0xb5))/0xb*(parseInt(_0x150154(0xbb))/0xc);if(_0x53d6a6===_0x1bfa1e)break;else _0x40a2e1['push'](_0x40a2e1['shift']());}catch(_0x173a9c){_0x40a2e1['push'](_0x40a2e1['shift']());}}}(a123_0x3ab1,0x6b40f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0x3ab1(){const _0x92ca0a=['4570573NjXjIn','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','items','some','code','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','map','202748mRjMji','length','175967CAeYOZ','read','1161052LZhRwy','3MzfyKx','filter','5xkDnrW','1236dDyEmH','7745274yvSqhE','runtime-user-search','trim','flow','keyword','userName','displayName','flagMissing','str','8cqPYif','appCode','1SJjDkQ','2876240UECeSj','toLowerCase','491376xRcHca','nickName'];a123_0x3ab1=function(){return _0x92ca0a;};return a123_0x3ab1();}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':a123_0x339a79(0xbf),'command':a123_0x339a79(0xbd),'description':a123_0x339a79(0xb1),'risk':a123_0x339a79(0xb6),'flags':[{'name':'keyword','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'(_0x5457df){const _0x36e773=a123_0x339a79;if(!_0x5457df[_0x36e773(0xa4)](_0x36e773(0xc0))[_0x36e773(0xbe)]())throw CliErrors[_0x36e773(0xa3)](_0x36e773(0xc0),'Pass\x20--keyword\x20<text>.');readRuntimePagination(_0x5457df);},async 'execute'(_0x1b15ab){const _0x415b1c=a123_0x339a79,_0x492c46=_0x1b15ab[_0x415b1c(0xa4)](_0x415b1c(0xc0))['trim'](),_0x118e26=_0x492c46[_0x415b1c(0xa9)](),_0x100410=(await listApprovalRuntimeUsers(_0x1b15ab[_0x415b1c(0xa6)]))[_0x415b1c(0xb9)](_0xa98dfa=>[_0xa98dfa[_0x415b1c(0xb0)],_0xa98dfa[_0x415b1c(0xa1)],_0xa98dfa[_0x415b1c(0xab)],_0xa98dfa[_0x415b1c(0xa2)],_0xa98dfa['email']][_0x415b1c(0xaf)](_0x14b166=>_0x14b166!==null&&_0x14b166!==undefined&&String(_0x14b166)[_0x415b1c(0xa9)]()['includes'](_0x118e26)))[_0x415b1c(0xb2)](projectRuntimeUser)[_0x415b1c(0xb9)](_0x5e4f54=>_0x5e4f54!==null),{page:_0x3626d1,pageSize:_0x2fb748}=readRuntimePagination(_0x1b15ab),_0x597e44=paginateRuntimeItems(_0x100410,_0x3626d1,_0x2fb748);return{'ok':!![],'data':{'appCode':_0x1b15ab[_0x415b1c(0xa6)],'scope':'runtime','keyword':_0x492c46,'users':_0x597e44[_0x415b1c(0xae)],'paging':_0x597e44['paging']},'message':'Found\x20'+_0x100410[_0x415b1c(0xb4)]+_0x415b1c(0xad)+_0x492c46+'\x22'};}};
@@ -1 +1 @@
1
- const a114_0x300241=a114_0x303b;(function(_0x23f5dd,_0x4e3aba){const _0x549f50=a114_0x303b,_0x4085f5=_0x23f5dd();while(!![]){try{const _0x2b9aa2=parseInt(_0x549f50(0x132))/0x1+-parseInt(_0x549f50(0x13d))/0x2*(parseInt(_0x549f50(0x136))/0x3)+-parseInt(_0x549f50(0x153))/0x4*(-parseInt(_0x549f50(0x15a))/0x5)+-parseInt(_0x549f50(0x12f))/0x6*(parseInt(_0x549f50(0x15d))/0x7)+-parseInt(_0x549f50(0x13a))/0x8+parseInt(_0x549f50(0x129))/0x9+-parseInt(_0x549f50(0x122))/0xa*(parseInt(_0x549f50(0x15b))/0xb);if(_0x2b9aa2===_0x4e3aba)break;else _0x4085f5['push'](_0x4085f5['shift']());}catch(_0x205292){_0x4085f5['push'](_0x4085f5['shift']());}}}(a114_0x1de6,0xa5112));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a114_0x300241(0x13b),'detail':a114_0x300241(0x14d),'create':a114_0x300241(0x140),'update':a114_0x300241(0x14f),'publish':a114_0x300241(0x12a)};export const FLOW_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};function a114_0x1de6(){const _0x998c1=['path','flowDesc','108UnPLwf','isSafeInteger','number','839296DGNvVC','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','isArray','errors','98727vELjwy','join','INDEPENDENT_FLOW','validation','4228240eKaSIq','/smartapi/flow/page','\x20\x20flowId:\x20','22hYyUva','--id\x20must\x20be\x20a\x20positive\x20integer.','Continue?\x20[y/N]\x20','/smartapi/flow/create','File:\x20','pageId','valid','flowJson','datasetCode','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','file','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','Unable\x20to\x20read\x20FlowConfig:\x20','\x20\x20flowName:\x20','flowName','FlowConfig\x20validation\x20failed\x20for\x20','/smartapi/flow/detail','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','/smartapi/flow/update','nonInteractive','warnings','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','196bLeCDO','message','str','cancelled','trim','object','apiError','117010rZyFvJ','286vRVagE','appCode','57813rYAaAd','normalized','Approval\x20flow\x20','num','381890xfRYNZ','\x20\x20datasetCode:\x20','map','\x20\x20flowType:\x20','bool','string','POST','6500025IoQrVB','/smartapi/flow/publish','flowCode','flowType'];a114_0x1de6=function(){return _0x998c1;};return a114_0x1de6();}export const FLOW_FILE_FLAG={'name':a114_0x300241(0x147),'type':'string','required':!![],'description':a114_0x300241(0x148)};export function flowDefinitionToConfig(_0x438411){const _0x21cdd2=a114_0x300241;if(typeof _0x438411[_0x21cdd2(0x14b)]!==_0x21cdd2(0x127)||_0x438411['flowName'][_0x21cdd2(0x157)]()==='')throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),_0x21cdd2(0x152));if(typeof _0x438411[_0x21cdd2(0x144)]!==_0x21cdd2(0x158)||_0x438411[_0x21cdd2(0x144)]===null||Array[_0x21cdd2(0x134)](_0x438411[_0x21cdd2(0x144)]))throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),'The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.');if(_0x438411[_0x21cdd2(0x12c)]!=='FORM_FLOW'&&_0x438411[_0x21cdd2(0x12c)]!==_0x21cdd2(0x138))throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),_0x21cdd2(0x146));const _0x108880={'flowName':_0x438411[_0x21cdd2(0x14b)],...typeof _0x438411['flowDesc']===_0x21cdd2(0x127)?{'flowDesc':_0x438411[_0x21cdd2(0x12e)]}:{},'flowType':_0x438411[_0x21cdd2(0x12c)],...typeof _0x438411['datasetCode']===_0x21cdd2(0x127)&&_0x438411[_0x21cdd2(0x145)][_0x21cdd2(0x157)]()?{'datasetCode':_0x438411['datasetCode']}:{},...typeof _0x438411[_0x21cdd2(0x142)]===_0x21cdd2(0x131)?{'pageId':_0x438411[_0x21cdd2(0x142)]}:{},'flowJson':_0x438411[_0x21cdd2(0x144)]},_0x3a9f38=validateFlowConfig(_0x108880);if(!_0x3a9f38[_0x21cdd2(0x143)]){const _0x54f696=_0x3a9f38[_0x21cdd2(0x135)][_0x21cdd2(0x124)](_0x4e5742=>_0x4e5742['path']+':\x20'+_0x4e5742[_0x21cdd2(0x154)])[_0x21cdd2(0x137)](';\x20');throw CliErrors['validation']('Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.',_0x54f696);}return{'config':_0x3a9f38[_0x21cdd2(0x15e)],'warnings':_0x3a9f38[_0x21cdd2(0x151)],'removedPaths':_0x3a9f38['warnings'][_0x21cdd2(0x124)](_0x423197=>_0x423197[_0x21cdd2(0x12d)])};}function a114_0x303b(_0x1612be,_0x2b486d){_0x1612be=_0x1612be-0x120;const _0x1de646=a114_0x1de6();let _0x303bf9=_0x1de646[_0x1612be];return _0x303bf9;}export function readFlowId(_0x4dd610){const _0x2ab35b=a114_0x300241,_0xf90dd0=_0x4dd610[_0x2ab35b(0x121)]('id');if(!Number[_0x2ab35b(0x130)](_0xf90dd0)||_0xf90dd0<=0x0)throw CliErrors[_0x2ab35b(0x139)](_0x2ab35b(0x13e));return _0xf90dd0;}export function readFlowFilePath(_0x3222d3){const _0x471400=a114_0x300241,_0x4f414c=_0x3222d3[_0x471400(0x155)](_0x471400(0x147))[_0x471400(0x157)]();if(!_0x4f414c)throw CliErrors['flagMissing'](_0x471400(0x147),'Pass\x20--file\x20<path>.');return _0x4f414c;}export async function prepareFlowWrite(_0x547089,_0x3fb631,_0x2534f5){const _0x57e771=a114_0x300241;let _0x5aeb37;try{_0x5aeb37=await readFlowConfigFile(_0x547089);}catch(_0xb6068f){const _0x47aa41=_0xb6068f instanceof Error?_0xb6068f['message']:String(_0xb6068f);throw CliErrors[_0x57e771(0x139)](_0x57e771(0x149)+_0x47aa41,_0x57e771(0x141)+_0x547089);}const _0x11185b=validateFlowConfig(_0x5aeb37);if(!_0x11185b[_0x57e771(0x143)]){const _0x3f079f=_0x11185b[_0x57e771(0x135)][_0x57e771(0x124)](_0x2cc190=>_0x2cc190[_0x57e771(0x12d)]+':\x20'+_0x2cc190[_0x57e771(0x154)])[_0x57e771(0x137)](';\x20');throw CliErrors[_0x57e771(0x139)](_0x57e771(0x14c)+_0x547089+'.',_0x3f079f||_0x57e771(0x133));}const _0x271853=_0x11185b[_0x57e771(0x15e)],_0x30af7d={..._0x2534f5!==undefined?{'id':_0x2534f5}:{},'flowName':_0x271853[_0x57e771(0x14b)],..._0x271853[_0x57e771(0x12e)]!==undefined?{'flowDesc':_0x271853[_0x57e771(0x12e)]}:{},'flowType':_0x271853[_0x57e771(0x12c)],'appCode':_0x3fb631,..._0x271853[_0x57e771(0x145)]!==undefined?{'datasetCode':_0x271853[_0x57e771(0x145)]}:{},..._0x271853[_0x57e771(0x142)]!==undefined?{'pageId':_0x271853['pageId']}:{},'flowJson':_0x271853[_0x57e771(0x144)]};return{'request':_0x30af7d,'warnings':_0x11185b['warnings']};}export async function confirmFlowWrite(_0x165018,_0x43b480,_0x543d85){const _0x514e16=a114_0x300241;if(_0x165018[_0x514e16(0x150)]||_0x165018[_0x514e16(0x126)]('yes'))return;await requireConfirmationPrompt({'lines':[_0x514e16(0x120)+_0x43b480+':','\x20\x20appCode:\x20'+_0x165018[_0x514e16(0x15c)],..._0x543d85['id']!==undefined?[_0x514e16(0x13c)+_0x543d85['id']]:[],_0x514e16(0x14a)+_0x543d85[_0x514e16(0x14b)],_0x514e16(0x125)+_0x543d85[_0x514e16(0x12c)],..._0x543d85['datasetCode']?[_0x514e16(0x123)+_0x543d85[_0x514e16(0x145)]]:[],_0x514e16(0x13f)],'createCancelledError':_0x1aeb0d=>CliErrors[_0x514e16(0x156)](_0x1aeb0d)});}export function flowSelector(_0x57a562,_0xe9dad7,_0x459441){const _0xd21a31=a114_0x300241;return{'appCode':_0x57a562,..._0xe9dad7!==undefined?{'flowId':_0xe9dad7}:{},..._0x459441?.[_0xd21a31(0x12b)]?{'flowCode':_0x459441[_0xd21a31(0x12b)]}:{},..._0x459441?.[_0xd21a31(0x14b)]?{'flowName':_0x459441[_0xd21a31(0x14b)]}:{}};}export function buildFlowIdDryRun(_0x170aa9,_0x4f8355,_0x4e2b6,_0x11cc65,_0x2236d6){const _0x1351b0=a114_0x300241,_0x758675={'id':_0x11cc65,'appCode':_0x4e2b6};return asDryRunResult({'operation':_0x170aa9,'selector':flowSelector(_0x4e2b6,_0x11cc65),'before':null,'after':_0x2236d6,'request':_0x758675,'dryRun':!![],'backend':{'method':_0x1351b0(0x128),'path':_0x4f8355},'warnings':[]},{'method':_0x1351b0(0x128),'url':_0x4f8355});}
1
+ const a124_0x5a0b58=a124_0x4726;(function(_0x2eca92,_0x4be503){const _0x12620f=a124_0x4726,_0x1989ec=_0x2eca92();while(!![]){try{const _0x307249=-parseInt(_0x12620f(0x96))/0x1*(-parseInt(_0x12620f(0x7c))/0x2)+parseInt(_0x12620f(0x88))/0x3+-parseInt(_0x12620f(0x90))/0x4+parseInt(_0x12620f(0x87))/0x5+parseInt(_0x12620f(0xac))/0x6*(-parseInt(_0x12620f(0x86))/0x7)+-parseInt(_0x12620f(0x93))/0x8+parseInt(_0x12620f(0x8c))/0x9*(parseInt(_0x12620f(0x83))/0xa);if(_0x307249===_0x4be503)break;else _0x1989ec['push'](_0x1989ec['shift']());}catch(_0x580ce8){_0x1989ec['push'](_0x1989ec['shift']());}}}(a124_0x1769,0xbd80e));function a124_0x1769(){const _0x12e78f=['errors','2108048fidOeu','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','1787wfHVUr','flowType','normalized','warnings','POST','valid','flagMissing','--id\x20must\x20be\x20a\x20positive\x20integer.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','object','yes','INDEPENDENT_FLOW','map','flowName','datasetCode','/smartapi/flow/update','/smartapi/flow/publish','Pass\x20--file\x20<path>.','/smartapi/flow/detail','/smartapi/flow/create','message','num','469854HPuVOQ','flowDesc','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','\x20\x20appCode:\x20','number','isSafeInteger','\x20\x20flowId:\x20','string','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','/smartapi/flow/page','flowJson','str','File:\x20','Approval\x20flow\x20','join','appCode','file','1294yceDnK','apiError','\x20\x20flowName:\x20','\x20\x20datasetCode:\x20','trim','pageId','isArray','2010yCdoDH','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','Unable\x20to\x20read\x20FlowConfig:\x20','77HWvrvC','714005GhCiJZ','2094849VZbSck','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','FlowConfig\x20validation\x20failed\x20for\x20','1998oNiCuH','bool','validation','path','563136NmsKTA','flowCode'];a124_0x1769=function(){return _0x12e78f;};return a124_0x1769();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';function a124_0x4726(_0x5f2227,_0x24ccdb){_0x5f2227=_0x5f2227-0x72;const _0x1769d3=a124_0x1769();let _0x4726ac=_0x1769d3[_0x5f2227];return _0x4726ac;}export const FLOW_PATHS={'list':a124_0x5a0b58(0x74),'detail':a124_0x5a0b58(0xa8),'create':a124_0x5a0b58(0xa9),'update':a124_0x5a0b58(0xa5),'publish':a124_0x5a0b58(0xa6)};export const FLOW_ID_FLAG={'name':'id','type':a124_0x5a0b58(0xb0),'required':!![],'description':a124_0x5a0b58(0x89)};export const FLOW_FILE_FLAG={'name':'file','type':a124_0x5a0b58(0x72),'required':!![],'description':a124_0x5a0b58(0x73)};export function flowDefinitionToConfig(_0x4450ee){const _0xb7eca2=a124_0x5a0b58;if(typeof _0x4450ee['flowName']!==_0xb7eca2(0x72)||_0x4450ee[_0xb7eca2(0xa3)][_0xb7eca2(0x80)]()==='')throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x94));if(typeof _0x4450ee[_0xb7eca2(0x75)]!==_0xb7eca2(0x9f)||_0x4450ee[_0xb7eca2(0x75)]===null||Array[_0xb7eca2(0x82)](_0x4450ee[_0xb7eca2(0x75)]))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x84));if(_0x4450ee[_0xb7eca2(0x97)]!=='FORM_FLOW'&&_0x4450ee[_0xb7eca2(0x97)]!==_0xb7eca2(0xa1))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x8a));const _0xb75f5f={'flowName':_0x4450ee[_0xb7eca2(0xa3)],...typeof _0x4450ee[_0xb7eca2(0xad)]===_0xb7eca2(0x72)?{'flowDesc':_0x4450ee[_0xb7eca2(0xad)]}:{},'flowType':_0x4450ee[_0xb7eca2(0x97)],...typeof _0x4450ee[_0xb7eca2(0xa4)]===_0xb7eca2(0x72)&&_0x4450ee[_0xb7eca2(0xa4)]['trim']()?{'datasetCode':_0x4450ee[_0xb7eca2(0xa4)]}:{},...typeof _0x4450ee[_0xb7eca2(0x81)]==='number'?{'pageId':_0x4450ee[_0xb7eca2(0x81)]}:{},'flowJson':_0x4450ee[_0xb7eca2(0x75)]},_0x4eee4c=validateFlowConfig(_0xb75f5f);if(!_0x4eee4c[_0xb7eca2(0x9b)]){const _0x4af639=_0x4eee4c[_0xb7eca2(0x92)][_0xb7eca2(0xa2)](_0x35779a=>_0x35779a[_0xb7eca2(0x8f)]+':\x20'+_0x35779a[_0xb7eca2(0xaa)])[_0xb7eca2(0x79)](';\x20');throw CliErrors['validation'](_0xb7eca2(0xae),_0x4af639);}return{'config':_0x4eee4c[_0xb7eca2(0x98)],'warnings':_0x4eee4c['warnings'],'removedPaths':_0x4eee4c['warnings'][_0xb7eca2(0xa2)](_0xe0366c=>_0xe0366c[_0xb7eca2(0x8f)])};}export function readFlowId(_0xf51933){const _0xb6f252=a124_0x5a0b58,_0x287f87=_0xf51933[_0xb6f252(0xab)]('id');if(!Number[_0xb6f252(0xb1)](_0x287f87)||_0x287f87<=0x0)throw CliErrors[_0xb6f252(0x8e)](_0xb6f252(0x9d));return _0x287f87;}export function readFlowFilePath(_0x3eebb1){const _0x240b87=a124_0x5a0b58,_0x21a821=_0x3eebb1[_0x240b87(0x76)]('file')[_0x240b87(0x80)]();if(!_0x21a821)throw CliErrors[_0x240b87(0x9c)](_0x240b87(0x7b),_0x240b87(0xa7));return _0x21a821;}export async function prepareFlowWrite(_0x42ae04,_0x1b563c,_0x2e97d1){const _0x1dbbca=a124_0x5a0b58;let _0x196ad1;try{_0x196ad1=await readFlowConfigFile(_0x42ae04);}catch(_0xc7e5b8){const _0x3d4fc5=_0xc7e5b8 instanceof Error?_0xc7e5b8[_0x1dbbca(0xaa)]:String(_0xc7e5b8);throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x85)+_0x3d4fc5,_0x1dbbca(0x77)+_0x42ae04);}const _0x4df834=validateFlowConfig(_0x196ad1);if(!_0x4df834['valid']){const _0x241c49=_0x4df834['errors'][_0x1dbbca(0xa2)](_0x25f4c0=>_0x25f4c0[_0x1dbbca(0x8f)]+':\x20'+_0x25f4c0[_0x1dbbca(0xaa)])[_0x1dbbca(0x79)](';\x20');throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x8b)+_0x42ae04+'.',_0x241c49||_0x1dbbca(0x9e));}const _0x4564b6=_0x4df834[_0x1dbbca(0x98)],_0x289fee={..._0x2e97d1!==undefined?{'id':_0x2e97d1}:{},'flowName':_0x4564b6['flowName'],..._0x4564b6[_0x1dbbca(0xad)]!==undefined?{'flowDesc':_0x4564b6[_0x1dbbca(0xad)]}:{},'flowType':_0x4564b6[_0x1dbbca(0x97)],'appCode':_0x1b563c,..._0x4564b6['datasetCode']!==undefined?{'datasetCode':_0x4564b6[_0x1dbbca(0xa4)]}:{},..._0x4564b6[_0x1dbbca(0x81)]!==undefined?{'pageId':_0x4564b6[_0x1dbbca(0x81)]}:{},'flowJson':_0x4564b6['flowJson']};return{'request':_0x289fee,'warnings':_0x4df834[_0x1dbbca(0x99)]};}export async function confirmFlowWrite(_0x2306a2,_0x5385d,_0x20951b){const _0xeba50a=a124_0x5a0b58;if(_0x2306a2['nonInteractive']||_0x2306a2[_0xeba50a(0x8d)](_0xeba50a(0xa0)))return;await requireConfirmationPrompt({'lines':[_0xeba50a(0x78)+_0x5385d+':',_0xeba50a(0xaf)+_0x2306a2[_0xeba50a(0x7a)],..._0x20951b['id']!==undefined?[_0xeba50a(0xb2)+_0x20951b['id']]:[],_0xeba50a(0x7e)+_0x20951b['flowName'],'\x20\x20flowType:\x20'+_0x20951b[_0xeba50a(0x97)],..._0x20951b[_0xeba50a(0xa4)]?[_0xeba50a(0x7f)+_0x20951b['datasetCode']]:[],'Continue?\x20[y/N]\x20'],'createCancelledError':_0x5863e7=>CliErrors['cancelled'](_0x5863e7)});}export function flowSelector(_0x3f21f2,_0x1e076b,_0xdfe90a){const _0x2fddcb=a124_0x5a0b58;return{'appCode':_0x3f21f2,..._0x1e076b!==undefined?{'flowId':_0x1e076b}:{},..._0xdfe90a?.['flowCode']?{'flowCode':_0xdfe90a[_0x2fddcb(0x91)]}:{},..._0xdfe90a?.[_0x2fddcb(0xa3)]?{'flowName':_0xdfe90a['flowName']}:{}};}export function buildFlowIdDryRun(_0x168552,_0x52559f,_0x2d5ed6,_0x1c7f4a,_0x1e8cbd){const _0x4c9fda=a124_0x5a0b58,_0x3f9268={'id':_0x1c7f4a,'appCode':_0x2d5ed6};return asDryRunResult({'operation':_0x168552,'selector':flowSelector(_0x2d5ed6,_0x1c7f4a),'before':null,'after':_0x1e8cbd,'request':_0x3f9268,'dryRun':!![],'backend':{'method':'POST','path':_0x52559f},'warnings':[]},{'method':_0x4c9fda(0x9a),'url':_0x52559f});}
@@ -1 +1 @@
1
- const a115_0x2daf80=a115_0x2ebb;(function(_0x294619,_0x428c40){const _0x467b5a=a115_0x2ebb,_0x43cf81=_0x294619();while(!![]){try{const _0x2a84bb=-parseInt(_0x467b5a(0x18b))/0x1+-parseInt(_0x467b5a(0x18f))/0x2+-parseInt(_0x467b5a(0x194))/0x3+parseInt(_0x467b5a(0x18e))/0x4*(-parseInt(_0x467b5a(0x187))/0x5)+-parseInt(_0x467b5a(0x189))/0x6+parseInt(_0x467b5a(0x190))/0x7*(-parseInt(_0x467b5a(0x185))/0x8)+parseInt(_0x467b5a(0x186))/0x9;if(_0x2a84bb===_0x428c40)break;else _0x43cf81['push'](_0x43cf81['shift']());}catch(_0x229488){_0x43cf81['push'](_0x43cf81['shift']());}}}(a115_0xf6bf,0x3d2bd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a115_0x2ebb(_0x31ccb0,_0xe115af){_0x31ccb0=_0x31ccb0-0x183;const _0xf6bff2=a115_0xf6bf();let _0x2ebb37=_0xf6bff2[_0x31ccb0];return _0x2ebb37;}function a115_0xf6bf(){const _0x19f26=['302664mkPOIT','542174kZMQWU','42XxfBoK','write','update','flowName','528489uKDHVo','flowCode','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','96168yuqmcn','15675894FozEFa','20ytRnZw','POST','2188920boCWMW','flow','304349hGPTxY','Updated\x20flow\x20','appCode'];a115_0xf6bf=function(){return _0x19f26;};return a115_0xf6bf();}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';export const flowUpdate={'service':a115_0x2daf80(0x18a),'command':a115_0x2daf80(0x192),'description':a115_0x2daf80(0x184),'risk':a115_0x2daf80(0x191),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32bf3a){readFlowId(_0x32bf3a),readFlowFilePath(_0x32bf3a);},async 'dryRun'(_0x2ce0bf){const _0x26bb0b=a115_0x2daf80,_0x7b3e24=readFlowId(_0x2ce0bf),{request:_0x597fe9,warnings:_0x573321}=await prepareFlowWrite(readFlowFilePath(_0x2ce0bf),_0x2ce0bf[_0x26bb0b(0x18d)],_0x7b3e24);return asDryRunResult({'operation':'update','selector':flowSelector(_0x2ce0bf[_0x26bb0b(0x18d)],_0x7b3e24),'before':null,'after':_0x597fe9,'request':_0x597fe9,'dryRun':!![],'backend':{'method':_0x26bb0b(0x188),'path':FLOW_PATHS['update']},'warnings':_0x573321},{'method':_0x26bb0b(0x188),'url':FLOW_PATHS['update']});},async 'execute'(_0x9a6639){const _0x57436a=a115_0x2daf80,_0x337d87=readFlowId(_0x9a6639),{request:_0x2694a4,warnings:_0x194c07}=await prepareFlowWrite(readFlowFilePath(_0x9a6639),_0x9a6639[_0x57436a(0x18d)],_0x337d87);await confirmFlowWrite(_0x9a6639,_0x57436a(0x192),_0x2694a4);const _0x431597=await updateFlowDefinition({..._0x2694a4,'id':_0x337d87});return{'ok':!![],'data':{'operation':'update','selector':flowSelector(_0x9a6639[_0x57436a(0x18d)],_0x337d87,_0x431597),'before':null,'after':_0x431597,'dryRun':![],'backend':{'method':_0x57436a(0x188),'path':FLOW_PATHS['update']},'warnings':_0x194c07},'message':_0x57436a(0x18c)+(_0x431597[_0x57436a(0x193)]||_0x431597[_0x57436a(0x183)]||_0x337d87)};}};
1
+ function a125_0x3335(){const _0x3bb899=['flow','28awwkTV','253326qrigYo','732258kLQPNf','appCode','792702IFvwWQ','296056MKXkDl','POST','15jXmKmq','flowCode','622594xYaGRB','write','29152MmNujC','575516tmczKi','update'];a125_0x3335=function(){return _0x3bb899;};return a125_0x3335();}const a125_0x375abc=a125_0x3605;(function(_0x19054d,_0x3ec3e5){const _0x5d86a3=a125_0x3605,_0x47851b=_0x19054d();while(!![]){try{const _0x588cf6=-parseInt(_0x5d86a3(0xb8))/0x1+-parseInt(_0x5d86a3(0xb6))/0x2+parseInt(_0x5d86a3(0xbe))/0x3+parseInt(_0x5d86a3(0xb9))/0x4+parseInt(_0x5d86a3(0xc3))/0x5*(-parseInt(_0x5d86a3(0xbd))/0x6)+-parseInt(_0x5d86a3(0xbc))/0x7*(-parseInt(_0x5d86a3(0xc1))/0x8)+parseInt(_0x5d86a3(0xc0))/0x9;if(_0x588cf6===_0x3ec3e5)break;else _0x47851b['push'](_0x47851b['shift']());}catch(_0x8f9753){_0x47851b['push'](_0x47851b['shift']());}}}(a125_0x3335,0x2651f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a125_0x3605(_0x359025,_0x1122b1){_0x359025=_0x359025-0xb6;const _0x333587=a125_0x3335();let _0x360548=_0x333587[_0x359025];return _0x360548;}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';export const flowUpdate={'service':a125_0x375abc(0xbb),'command':a125_0x375abc(0xba),'description':'Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a125_0x375abc(0xb7),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b862b){readFlowId(_0x5b862b),readFlowFilePath(_0x5b862b);},async 'dryRun'(_0x478449){const _0x368cd6=a125_0x375abc,_0x3ca7ff=readFlowId(_0x478449),{request:_0x60d8c1,warnings:_0x3f886a}=await prepareFlowWrite(readFlowFilePath(_0x478449),_0x478449['appCode'],_0x3ca7ff);return asDryRunResult({'operation':_0x368cd6(0xba),'selector':flowSelector(_0x478449['appCode'],_0x3ca7ff),'before':null,'after':_0x60d8c1,'request':_0x60d8c1,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x368cd6(0xba)]},'warnings':_0x3f886a},{'method':_0x368cd6(0xc2),'url':FLOW_PATHS[_0x368cd6(0xba)]});},async 'execute'(_0x369d78){const _0x38a3d4=a125_0x375abc,_0xdba289=readFlowId(_0x369d78),{request:_0x231786,warnings:_0x21337b}=await prepareFlowWrite(readFlowFilePath(_0x369d78),_0x369d78[_0x38a3d4(0xbf)],_0xdba289);await confirmFlowWrite(_0x369d78,_0x38a3d4(0xba),_0x231786);const _0x420d1e=await updateFlowDefinition({..._0x231786,'id':_0xdba289});return{'ok':!![],'data':{'operation':_0x38a3d4(0xba),'selector':flowSelector(_0x369d78[_0x38a3d4(0xbf)],_0xdba289,_0x420d1e),'before':null,'after':_0x420d1e,'dryRun':![],'backend':{'method':_0x38a3d4(0xc2),'path':FLOW_PATHS[_0x38a3d4(0xba)]},'warnings':_0x21337b},'message':'Updated\x20flow\x20'+(_0x420d1e['flowName']||_0x420d1e[_0x38a3d4(0xc4)]||_0xdba289)};}};
@@ -1 +1 @@
1
- function a116_0x13c5(){const _0x1089ae=['errors','boolean','120OsVnwu','FlowConfig\x20is\x20valid.','warnings','FlowConfig\x20validation\x20failed.','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','valid','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','write-normalized','file','759878upwySd','flagMissing','string','262096rPpzgR','2xLqFXP','3vjRniy','message','65JIZMhu','213214ayDexo','893028oaLUik','trim','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','20HwAZqa','normalized','15FLjrEZ','46026ZRPrbA','none','flow','2090297NoDFmj','748482JSfvbm','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','str'];a116_0x13c5=function(){return _0x1089ae;};return a116_0x13c5();}const a116_0x22c8ce=a116_0x4613;(function(_0x2e8950,_0x50e080){const _0x4fb49b=a116_0x4613,_0xa2030a=_0x2e8950();while(!![]){try{const _0x5a7b1d=-parseInt(_0x4fb49b(0x1e0))/0x1*(parseInt(_0x4fb49b(0x1e4))/0x2)+parseInt(_0x4fb49b(0x1e1))/0x3*(parseInt(_0x4fb49b(0x1df))/0x4)+parseInt(_0x4fb49b(0x1c9))/0x5*(parseInt(_0x4fb49b(0x1ce))/0x6)+-parseInt(_0x4fb49b(0x1dc))/0x7+-parseInt(_0x4fb49b(0x1d3))/0x8*(-parseInt(_0x4fb49b(0x1ca))/0x9)+parseInt(_0x4fb49b(0x1c7))/0xa*(parseInt(_0x4fb49b(0x1cd))/0xb)+-parseInt(_0x4fb49b(0x1e5))/0xc*(parseInt(_0x4fb49b(0x1e3))/0xd);if(_0x5a7b1d===_0x50e080)break;else _0xa2030a['push'](_0xa2030a['shift']());}catch(_0x251992){_0xa2030a['push'](_0xa2030a['shift']());}}}(a116_0x13c5,0x317aa));function a116_0x4613(_0x5e4b94,_0xd6b09f){_0x5e4b94=_0x5e4b94-0x1c7;const _0x13c566=a116_0x13c5();let _0x46131b=_0x13c566[_0x5e4b94];return _0x46131b;}import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a116_0x22c8ce(0x1cc),'command':'validate','description':a116_0x22c8ce(0x1d9),'risk':'read','auth':a116_0x22c8ce(0x1cb),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a116_0x22c8ce(0x1db),'type':a116_0x22c8ce(0x1de),'required':!![],'description':a116_0x22c8ce(0x1cf)},{'name':a116_0x22c8ce(0x1da),'type':a116_0x22c8ce(0x1d2),'description':a116_0x22c8ce(0x1e7)}],async 'execute'(_0x3da0ca){const _0x3a924a=a116_0x22c8ce,_0x252dde=_0x3da0ca[_0x3a924a(0x1d0)](_0x3a924a(0x1db))[_0x3a924a(0x1e6)]();if(!_0x252dde)throw CliErrors[_0x3a924a(0x1dd)](_0x3a924a(0x1db),'Pass\x20--file\x20<path>.');let _0x9d8870;try{_0x9d8870=await readFlowConfigFile(_0x252dde);}catch(_0x90266b){const _0x3de518=_0x90266b instanceof Error?_0x90266b[_0x3a924a(0x1e2)]:String(_0x90266b);throw CliErrors['validation']('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x3de518);}const _0x528818=validateFlowConfig(_0x9d8870),_0x7e9d6a=_0x3da0ca['bool'](_0x3a924a(0x1da));let _0x10a0a8=![];return _0x7e9d6a&&_0x528818[_0x3a924a(0x1d8)]&&(await writeNormalizedFlowConfig(_0x252dde,_0x528818['normalized']),_0x10a0a8=!![]),{'ok':_0x528818['valid'],'data':{'valid':_0x528818[_0x3a924a(0x1d8)],'errors':_0x528818[_0x3a924a(0x1d1)],'warnings':_0x528818[_0x3a924a(0x1d5)],'normalized':_0x528818[_0x3a924a(0x1c8)],..._0x7e9d6a?{'written':_0x10a0a8}:{}},'message':_0x528818[_0x3a924a(0x1d8)]?_0x10a0a8?_0x3a924a(0x1d7):_0x3a924a(0x1d4):_0x3a924a(0x1d6)};}};
1
+ function a126_0x2e24(){const _0x5e14a8=['211203tABSrr','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','3817040OAxxHq','file','Unable\x20to\x20read\x20FlowConfig:\x20','flow','2098506hDyAcA','272897jreHQW','validate','11zjpqcF','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','trim','normalized','5lTLbGe','FlowConfig\x20is\x20valid.','string','warnings','flagMissing','807656dNIXkQ','write-normalized','60XGZsLQ','Pass\x20--file\x20<path>.','message','49VegTjA','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','18aDZhZY','2301258CjZMdP','valid','26617524eTkaYf','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','none','FlowConfig\x20validation\x20failed.','boolean'];a126_0x2e24=function(){return _0x5e14a8;};return a126_0x2e24();}const a126_0x321dec=a126_0x13ba;(function(_0x503d2b,_0x56b39d){const _0x4707da=a126_0x13ba,_0x389cd5=_0x503d2b();while(!![]){try{const _0x663619=parseInt(_0x4707da(0x160))/0x1+-parseInt(_0x4707da(0x15f))/0x2+parseInt(_0x4707da(0x159))/0x3*(-parseInt(_0x4707da(0x14c))/0x4)+-parseInt(_0x4707da(0x145))/0x5*(-parseInt(_0x4707da(0x152))/0x6)+-parseInt(_0x4707da(0x14f))/0x7*(parseInt(_0x4707da(0x14a))/0x8)+parseInt(_0x4707da(0x151))/0x9*(parseInt(_0x4707da(0x15b))/0xa)+parseInt(_0x4707da(0x162))/0xb*(parseInt(_0x4707da(0x154))/0xc);if(_0x663619===_0x56b39d)break;else _0x389cd5['push'](_0x389cd5['shift']());}catch(_0xcde491){_0x389cd5['push'](_0x389cd5['shift']());}}}(a126_0x2e24,0xc9a98));import{CliErrors}from'../../errors.js';function a126_0x13ba(_0x5e4b23,_0x1077a4){_0x5e4b23=_0x5e4b23-0x145;const _0x2e248b=a126_0x2e24();let _0x13ba55=_0x2e248b[_0x5e4b23];return _0x13ba55;}import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a126_0x321dec(0x15e),'command':a126_0x321dec(0x161),'description':a126_0x321dec(0x150),'risk':'read','auth':a126_0x321dec(0x156),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a126_0x321dec(0x15c),'type':a126_0x321dec(0x147),'required':!![],'description':a126_0x321dec(0x15a)},{'name':a126_0x321dec(0x14b),'type':a126_0x321dec(0x158),'description':a126_0x321dec(0x155)}],async 'execute'(_0x1d3e3b){const _0x1b2506=a126_0x321dec,_0x470cd9=_0x1d3e3b['str']('file')[_0x1b2506(0x164)]();if(!_0x470cd9)throw CliErrors[_0x1b2506(0x149)](_0x1b2506(0x15c),_0x1b2506(0x14d));let _0x18e61e;try{_0x18e61e=await readFlowConfigFile(_0x470cd9);}catch(_0x34f673){const _0x35d128=_0x34f673 instanceof Error?_0x34f673[_0x1b2506(0x14e)]:String(_0x34f673);throw CliErrors['validation'](_0x1b2506(0x15d)+_0x35d128);}const _0x26212d=validateFlowConfig(_0x18e61e),_0x46a284=_0x1d3e3b['bool'](_0x1b2506(0x14b));let _0x5c264d=![];return _0x46a284&&_0x26212d[_0x1b2506(0x153)]&&(await writeNormalizedFlowConfig(_0x470cd9,_0x26212d['normalized']),_0x5c264d=!![]),{'ok':_0x26212d['valid'],'data':{'valid':_0x26212d['valid'],'errors':_0x26212d['errors'],'warnings':_0x26212d[_0x1b2506(0x148)],'normalized':_0x26212d[_0x1b2506(0x165)],..._0x46a284?{'written':_0x5c264d}:{}},'message':_0x26212d['valid']?_0x5c264d?_0x1b2506(0x163):_0x1b2506(0x146):_0x1b2506(0x157)};}};
@@ -1 +1 @@
1
- const a117_0x3ac504=a117_0x6286;(function(_0x106f84,_0x2c20ea){const _0x18d23d=a117_0x6286,_0x512fe7=_0x106f84();while(!![]){try{const _0x1864a9=parseInt(_0x18d23d(0x175))/0x1*(-parseInt(_0x18d23d(0x184))/0x2)+-parseInt(_0x18d23d(0x181))/0x3+parseInt(_0x18d23d(0x186))/0x4*(-parseInt(_0x18d23d(0x174))/0x5)+parseInt(_0x18d23d(0x17e))/0x6*(parseInt(_0x18d23d(0x188))/0x7)+parseInt(_0x18d23d(0x187))/0x8*(-parseInt(_0x18d23d(0x173))/0x9)+-parseInt(_0x18d23d(0x178))/0xa*(parseInt(_0x18d23d(0x182))/0xb)+-parseInt(_0x18d23d(0x176))/0xc*(-parseInt(_0x18d23d(0x17f))/0xd);if(_0x1864a9===_0x2c20ea)break;else _0x512fe7['push'](_0x512fe7['shift']());}catch(_0x1d09b0){_0x512fe7['push'](_0x512fe7['shift']());}}}(a117_0xa493,0x45eb6));function a117_0x6286(_0x17c3b0,_0x33a583){_0x17c3b0=_0x17c3b0-0x173;const _0xa493ac=a117_0xa493();let _0x62864c=_0xa493ac[_0x17c3b0];return _0x62864c;}function a117_0xa493(){const _0x5282bd=['71630zlByeA','Current\x20Instant\x20API\x20policy\x20revision\x20','445473vGvcCk','3971EleSzk','instant-api-policy','2IIxBNe','policyRelativePath','260vajYwI','712216ugMIYW','149296AIqgpT','54yYxYoj','23995yqzZtz','287587BmhKWt','4464ksXyyW','current','14510fAWWip','read','policyFilePath','appCode','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','12VNSsBX'];a117_0xa493=function(){return _0x5282bd;};return a117_0xa493();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a117_0x3ac504(0x183),'command':a117_0x3ac504(0x177),'description':a117_0x3ac504(0x17d),'risk':a117_0x3ac504(0x179),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2af58c){const _0x4e3168=a117_0x3ac504,_0x5b0a14=loadInstantApiPolicyLocalConfig(_0x2af58c[_0x4e3168(0x17b)]),_0x165760=await getCurrentInstantApiPolicy(_0x2af58c[_0x4e3168(0x17b)]);return{'ok':!![],'data':{'appCode':_0x2af58c['appCode'],'configured':_0x165760!==null,'filePath':_0x5b0a14[_0x4e3168(0x17a)],'relativePath':_0x5b0a14[_0x4e3168(0x185)],'policy':projectCurrentPolicy(_0x165760)},'message':_0x165760?_0x4e3168(0x180)+_0x165760['revision']:_0x4e3168(0x17c)+_0x2af58c['appCode']};}};
1
+ const a127_0x2d5acf=a127_0x30fa;function a127_0x30fa(_0x80f0bb,_0x99f0e5){_0x80f0bb=_0x80f0bb-0xa0;const _0x13aff7=a127_0x13af();let _0x30fabe=_0x13aff7[_0x80f0bb];return _0x30fabe;}(function(_0xf54c4f,_0x5792ab){const _0x38be07=a127_0x30fa,_0x4031f4=_0xf54c4f();while(!![]){try{const _0x1df28a=parseInt(_0x38be07(0xae))/0x1*(-parseInt(_0x38be07(0xa9))/0x2)+-parseInt(_0x38be07(0xa3))/0x3*(parseInt(_0x38be07(0xa6))/0x4)+parseInt(_0x38be07(0xa5))/0x5+parseInt(_0x38be07(0xa8))/0x6+parseInt(_0x38be07(0xa4))/0x7*(parseInt(_0x38be07(0xa7))/0x8)+parseInt(_0x38be07(0xaa))/0x9*(-parseInt(_0x38be07(0xb0))/0xa)+parseInt(_0x38be07(0xaf))/0xb;if(_0x1df28a===_0x5792ab)break;else _0x4031f4['push'](_0x4031f4['shift']());}catch(_0x1992af){_0x4031f4['push'](_0x4031f4['shift']());}}}(a127_0x13af,0xce037));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a127_0x13af(){const _0x43fe8b=['16OcTGYK','12933PeuLMV','policyRelativePath','revision','read','98380lVMngh','527395MNiQpr','8590lCggQq','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','appCode','Current\x20Instant\x20API\x20policy\x20revision\x20','702717NhFjFD','271544wYuVLh','6731010UsyORs','8FYLqyx','104HCklOu','8611734lxTOgd'];a127_0x13af=function(){return _0x43fe8b;};return a127_0x13af();}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':'current','description':a127_0x2d5acf(0xa0),'risk':a127_0x2d5acf(0xad),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x339bd7){const _0x274c50=a127_0x2d5acf,_0x18fc28=loadInstantApiPolicyLocalConfig(_0x339bd7[_0x274c50(0xa1)]),_0x342b71=await getCurrentInstantApiPolicy(_0x339bd7['appCode']);return{'ok':!![],'data':{'appCode':_0x339bd7[_0x274c50(0xa1)],'configured':_0x342b71!==null,'filePath':_0x18fc28['policyFilePath'],'relativePath':_0x18fc28[_0x274c50(0xab)],'policy':projectCurrentPolicy(_0x342b71)},'message':_0x342b71?_0x274c50(0xa2)+_0x342b71[_0x274c50(0xac)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x339bd7['appCode']};}};
@@ -1 +1 @@
1
- function a118_0x251e(){const _0x2f88ad=['10711830klNdzU','49cmntXH','460kiVDFu','7989zCpZxv','4uwBuXz','3082048Bhbznu','237906TZAItH','1038106XLMFvY','7402302fiWfzj','814395cXgfGH'];a118_0x251e=function(){return _0x2f88ad;};return a118_0x251e();}(function(_0x1a3607,_0x28b63b){const _0xcd2070=a118_0x12ad,_0x218543=_0x1a3607();while(!![]){try{const _0x4985ef=-parseInt(_0xcd2070(0x1ca))/0x1+-parseInt(_0xcd2070(0x1c5))/0x2*(parseInt(_0xcd2070(0x1c6))/0x3)+parseInt(_0xcd2070(0x1c7))/0x4*(-parseInt(_0xcd2070(0x1cc))/0x5)+parseInt(_0xcd2070(0x1c9))/0x6*(parseInt(_0xcd2070(0x1c4))/0x7)+parseInt(_0xcd2070(0x1c8))/0x8+parseInt(_0xcd2070(0x1cb))/0x9+parseInt(_0xcd2070(0x1c3))/0xa;if(_0x4985ef===_0x28b63b)break;else _0x218543['push'](_0x218543['shift']());}catch(_0x1067a0){_0x218543['push'](_0x218543['shift']());}}}(a118_0x251e,0xb5657));function a118_0x12ad(_0x592707,_0x2bcd3e){_0x592707=_0x592707-0x1c3;const _0x251ec5=a118_0x251e();let _0x12ad76=_0x251ec5[_0x592707];return _0x12ad76;}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';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(_0x6bb403,_0x460c9c){const _0x3398df=a128_0x1c73,_0x698d1d=_0x6bb403();while(!![]){try{const _0x3e5c25=parseInt(_0x3398df(0xc7))/0x1+-parseInt(_0x3398df(0xc5))/0x2*(parseInt(_0x3398df(0xc8))/0x3)+-parseInt(_0x3398df(0xc3))/0x4+parseInt(_0x3398df(0xc2))/0x5+-parseInt(_0x3398df(0xc1))/0x6*(-parseInt(_0x3398df(0xca))/0x7)+-parseInt(_0x3398df(0xc4))/0x8*(-parseInt(_0x3398df(0xc9))/0x9)+parseInt(_0x3398df(0xc6))/0xa;if(_0x3e5c25===_0x460c9c)break;else _0x698d1d['push'](_0x698d1d['shift']());}catch(_0xf66b57){_0x698d1d['push'](_0x698d1d['shift']());}}}(a128_0x216a,0x5d56f));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';function a128_0x216a(){const _0x28ddcd=['34756rcFSKI','2948340SiGJnN','140109cxwlmz','123bVXAlK','18mKyBCF','7iKzjht','1831854UKCEkc','2714825eXwYUs','2291272gtLMAU','1537672EOVzgy'];a128_0x216a=function(){return _0x28ddcd;};return a128_0x216a();}import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a128_0x1c73(_0x5ac41d,_0x3da55b){_0x5ac41d=_0x5ac41d-0xc1;const _0x216ab2=a128_0x216a();let _0x1c73e3=_0x216ab2[_0x5ac41d];return _0x1c73e3;}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 +1 @@
1
- const a119_0x569199=a119_0x39bc;(function(_0x4782b3,_0x309904){const _0x5943d3=a119_0x39bc,_0x1b4545=_0x4782b3();while(!![]){try{const _0x4f7fe1=-parseInt(_0x5943d3(0x126))/0x1+-parseInt(_0x5943d3(0x125))/0x2+-parseInt(_0x5943d3(0x115))/0x3+parseInt(_0x5943d3(0x11c))/0x4*(-parseInt(_0x5943d3(0x128))/0x5)+parseInt(_0x5943d3(0x12d))/0x6*(parseInt(_0x5943d3(0x124))/0x7)+-parseInt(_0x5943d3(0x11f))/0x8+parseInt(_0x5943d3(0x118))/0x9;if(_0x4f7fe1===_0x309904)break;else _0x1b4545['push'](_0x1b4545['shift']());}catch(_0x305bcb){_0x1b4545['push'](_0x1b4545['shift']());}}}(a119_0x5db2,0xad761));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a119_0x5db2(){const _0x15ad5f=['allow','Replaced','2599352pKrBOq','Kept','init','3038656aFHjQg','str','write','instant-api-policy','default-action','1560111eAVlya','2839020ZRubXo','547743qakIrU','force','5JBpVQB','Created','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','appCode','bool','6gCLKXb','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','policyRelativePath','3179208QILhQc','\x20Instant\x20API\x20policy\x20file\x20for\x20','action','40898547WFvhNe','deny'];a119_0x5db2=function(){return _0x15ad5f;};return a119_0x5db2();}function a119_0x39bc(_0x173be8,_0x53a4a0){_0x173be8=_0x173be8-0x115;const _0x5db2b5=a119_0x5db2();let _0x39bc1c=_0x5db2b5[_0x173be8];return _0x39bc1c;}export const instantApiPolicyInit={'service':a119_0x569199(0x122),'command':a119_0x569199(0x11e),'description':a119_0x569199(0x12a),'risk':a119_0x569199(0x121),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a119_0x569199(0x123),'type':'string','enum':['allow',a119_0x569199(0x119)],'default':a119_0x569199(0x11a),'description':a119_0x569199(0x12e)},FORCE_FLAG],async 'validate'(_0x20884c){requireForceConfirmation(_0x20884c);},async 'execute'(_0x45a991){const _0x1a8131=a119_0x569199;requireForceConfirmation(_0x45a991);const _0x36348b=_0x45a991[_0x1a8131(0x120)](_0x1a8131(0x123))===_0x1a8131(0x119)?_0x1a8131(0x119):_0x1a8131(0x11a),_0x1587ae=loadInstantApiPolicyLocalConfig(_0x45a991[_0x1a8131(0x12b)]),_0x27350a=createDefaultInstantApiPolicyConfig(_0x45a991[_0x1a8131(0x12b)],_0x36348b),_0x3a5c26=await writeInstantApiPolicyConfigFile(_0x1587ae,_0x27350a,{'force':_0x45a991[_0x1a8131(0x12c)](_0x1a8131(0x127))}),_0xbb5d86={'created':_0x1a8131(0x129),'overwritten':_0x1a8131(0x11b),'unchanged':_0x1a8131(0x11d)}[_0x3a5c26[_0x1a8131(0x117)]];return{'ok':!![],'data':{'operation':_0x1a8131(0x11e),'selector':{'appCode':_0x45a991[_0x1a8131(0x12b)]},'filePath':_0x1587ae['policyFilePath'],'relativePath':_0x1587ae[_0x1a8131(0x12f)],'action':_0x3a5c26['action'],'config':_0x27350a},'message':_0xbb5d86+_0x1a8131(0x116)+_0x45a991[_0x1a8131(0x12b)]};}};
1
+ const a129_0x2d8ba5=a129_0x17f5;(function(_0x330267,_0x4413e8){const _0x13e7f0=a129_0x17f5,_0x354a60=_0x330267();while(!![]){try{const _0x5a0829=parseInt(_0x13e7f0(0x102))/0x1*(parseInt(_0x13e7f0(0xf8))/0x2)+parseInt(_0x13e7f0(0xfd))/0x3*(-parseInt(_0x13e7f0(0x10a))/0x4)+-parseInt(_0x13e7f0(0xf7))/0x5*(-parseInt(_0x13e7f0(0xfe))/0x6)+parseInt(_0x13e7f0(0x10b))/0x7+-parseInt(_0x13e7f0(0x10d))/0x8+parseInt(_0x13e7f0(0x100))/0x9+-parseInt(_0x13e7f0(0x108))/0xa;if(_0x5a0829===_0x4413e8)break;else _0x354a60['push'](_0x354a60['shift']());}catch(_0x56052b){_0x354a60['push'](_0x354a60['shift']());}}}(a129_0x47fc,0xa9b93));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a129_0x17f5(_0x4be19b,_0xbef287){_0x4be19b=_0x4be19b-0xf3;const _0x47fc33=a129_0x47fc();let _0x17f592=_0x47fc33[_0x4be19b];return _0x17f592;}function a129_0x47fc(){const _0x217d45=['instant-api-policy','40596RyGYig','386742wvOOKi','default-action','2387574ZJldrw','Kept','17869XlcKCN','deny','write','\x20Instant\x20API\x20policy\x20file\x20for\x20','appCode','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','2580590kghYwn','policyFilePath','200zQfpoU','7216720cDQTtB','string','5081256TcRowQ','allow','force','init','bool','action','Replaced','10RQHMCv','94khBeUX','Created','policyRelativePath','str'];a129_0x47fc=function(){return _0x217d45;};return a129_0x47fc();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a129_0x2d8ba5(0xfc),'command':a129_0x2d8ba5(0xf3),'description':a129_0x2d8ba5(0x107),'risk':a129_0x2d8ba5(0x104),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a129_0x2d8ba5(0xff),'type':a129_0x2d8ba5(0x10c),'enum':[a129_0x2d8ba5(0x10e),'deny'],'default':'allow','description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0xf92ada){requireForceConfirmation(_0xf92ada);},async 'execute'(_0x509bc3){const _0x7c78d5=a129_0x2d8ba5;requireForceConfirmation(_0x509bc3);const _0xe812b2=_0x509bc3[_0x7c78d5(0xfb)](_0x7c78d5(0xff))===_0x7c78d5(0x103)?_0x7c78d5(0x103):'allow',_0x5c7710=loadInstantApiPolicyLocalConfig(_0x509bc3[_0x7c78d5(0x106)]),_0x1ad48e=createDefaultInstantApiPolicyConfig(_0x509bc3[_0x7c78d5(0x106)],_0xe812b2),_0x5c174d=await writeInstantApiPolicyConfigFile(_0x5c7710,_0x1ad48e,{'force':_0x509bc3[_0x7c78d5(0xf4)](_0x7c78d5(0x10f))}),_0xa60c26={'created':_0x7c78d5(0xf9),'overwritten':_0x7c78d5(0xf6),'unchanged':_0x7c78d5(0x101)}[_0x5c174d['action']];return{'ok':!![],'data':{'operation':_0x7c78d5(0xf3),'selector':{'appCode':_0x509bc3[_0x7c78d5(0x106)]},'filePath':_0x5c7710[_0x7c78d5(0x109)],'relativePath':_0x5c7710[_0x7c78d5(0xfa)],'action':_0x5c174d[_0x7c78d5(0xf5)],'config':_0x1ad48e},'message':_0xa60c26+_0x7c78d5(0x105)+_0x509bc3[_0x7c78d5(0x106)]};}};
@@ -1 +1 @@
1
- const a120_0x31b108=a120_0x20a5;(function(_0x58d139,_0x175f2d){const _0x3215c1=a120_0x20a5,_0x55a613=_0x58d139();while(!![]){try{const _0x30b492=-parseInt(_0x3215c1(0x16c))/0x1*(parseInt(_0x3215c1(0x169))/0x2)+-parseInt(_0x3215c1(0x16f))/0x3+-parseInt(_0x3215c1(0x15f))/0x4*(-parseInt(_0x3215c1(0x15d))/0x5)+-parseInt(_0x3215c1(0x167))/0x6+parseInt(_0x3215c1(0x16a))/0x7+parseInt(_0x3215c1(0x174))/0x8+parseInt(_0x3215c1(0x16b))/0x9*(-parseInt(_0x3215c1(0x159))/0xa);if(_0x30b492===_0x175f2d)break;else _0x55a613['push'](_0x55a613['shift']());}catch(_0x499264){_0x55a613['push'](_0x55a613['shift']());}}}(a120_0x3d13,0xc3620));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a120_0x3d13(){const _0x581e23=['revision','instant_api_policy_publish_verification_failed','11531400gIclqn','expectedRevision','all','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','Inspect\x20with\x20`','configHash','push','local','publish','instant_api_policy_publish_verification_unavailable','323460cooJsy','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','appCode','policyRelativePath','3305rzSavo','defineProperty','3980wXuBmr','before','`;\x20do\x20not\x20resubmit\x20automatically.','POST','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','instant-api-policy','/publish','policyFilePath','1851216yfNyOl','cause','14544BohdDK','9485896ZzrEUg','468VZKTmo','27XzjfAD','high-risk-write','normalizedConfig','1401264hxfZTe','validation','changeSummary'];a120_0x3d13=function(){return _0x581e23;};return a120_0x3d13();}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(_0x4bd96d){const _0x5aec9d=a120_0x20a5,{local:_0x2b38da,config:_0x424f2f}=await readFixedPolicy(_0x4bd96d),_0x4dcd77=readChangeSummary(_0x4bd96d),_0x35d0cb=readExpectedRevision(_0x4bd96d),[_0x31bc41,_0x22670e]=await Promise[_0x5aec9d(0x176)]([getCurrentInstantApiPolicy(_0x4bd96d[_0x5aec9d(0x15b)]),validateInstantApiPolicy({'appCode':_0x4bd96d[_0x5aec9d(0x15b)],'config':_0x424f2f})]);return assertExpectedRevision(_0x31bc41,_0x35d0cb),{'local':_0x2b38da,'config':_0x424f2f,'changeSummary':_0x4dcd77,'expectedRevision':_0x35d0cb,'before':_0x31bc41,'validation':_0x22670e};}function a120_0x20a5(_0x5e5b68,_0x53b3fd){_0x5e5b68=_0x5e5b68-0x154;const _0x3d13bd=a120_0x3d13();let _0x20a506=_0x3d13bd[_0x5e5b68];return _0x20a506;}export const instantApiPolicyPublish={'service':a120_0x31b108(0x164),'command':a120_0x31b108(0x157),'description':a120_0x31b108(0x163),'risk':a120_0x31b108(0x16d),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a120_0x31b108(0x177),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x189247){readChangeSummary(_0x189247),readExpectedRevision(_0x189247);},async 'dryRun'(_0x8ba089){const _0x467383=a120_0x31b108,_0x176633=await preparePublish(_0x8ba089);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x8ba089[_0x467383(0x15b)]},'before':projectCurrentPolicy(_0x176633['before']),'after':{'revision':_0x176633[_0x467383(0x160)]?_0x176633['before'][_0x467383(0x172)]+0x1:0x1,'configHash':_0x176633[_0x467383(0x170)][_0x467383(0x154)],'config':_0x176633['validation'][_0x467383(0x16e)]},'filePath':_0x176633[_0x467383(0x156)][_0x467383(0x166)],'relativePath':_0x176633[_0x467383(0x156)][_0x467383(0x15c)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x176633[_0x467383(0x175)]),'verification':{'status':'planned','expectedRevision':_0x176633[_0x467383(0x175)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x467383(0x162),'url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x48d4fa){const _0xa59a3d=a120_0x31b108,_0x589d91=await preparePublish(_0x48d4fa);let _0xfa4dad=![];try{await publishInstantApiPolicy({'appCode':_0x48d4fa[_0xa59a3d(0x15b)],'config':_0x589d91['config'],..._0x589d91[_0xa59a3d(0x171)]?{'changeSummary':_0x589d91[_0xa59a3d(0x171)]}:{}});}catch(_0x5696c8){if(!isPlatformTransportFailure(_0x5696c8))throw _0x5696c8;_0xfa4dad=!![];}let _0xa98c25;try{_0xa98c25=await getCurrentInstantApiPolicy(_0x48d4fa['appCode']);}catch(_0x1d3eb7){const _0x10de16=instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x158),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xa59a3d(0x178)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0xa59a3d(0x15e)](_0x10de16,_0xa59a3d(0x168),{'value':_0x1d3eb7,'enumerable':![]});throw _0x10de16;}const _0x5ed4d7=_0xa98c25&&(_0x589d91[_0xa59a3d(0x160)]===null||_0xa98c25[_0xa59a3d(0x172)]>_0x589d91[_0xa59a3d(0x160)]['revision']),_0x3af3b1=_0xa98c25?.[_0xa59a3d(0x154)]===_0x589d91[_0xa59a3d(0x170)][_0xa59a3d(0x154)];if(!_0xa98c25||!_0x5ed4d7||!_0x3af3b1)throw instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x173),_0xa59a3d(0x15a),_0xa59a3d(0x178)+mutationLookupCommand()+_0xa59a3d(0x161));const _0x51d3c0=[...expectedRevisionWarnings(_0x589d91[_0xa59a3d(0x175)]),RUNTIME_CACHE_WARNING];return _0xfa4dad&&_0x51d3c0[_0xa59a3d(0x155)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xa59a3d(0x157),'selector':{'appCode':_0x48d4fa[_0xa59a3d(0x15b)]},'before':projectCurrentPolicy(_0x589d91[_0xa59a3d(0x160)]),'after':projectCurrentPolicy(_0xa98c25),'filePath':_0x589d91[_0xa59a3d(0x156)][_0xa59a3d(0x166)],'relativePath':_0x589d91[_0xa59a3d(0x156)]['policyRelativePath'],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0xa59a3d(0x165)},'warnings':_0x51d3c0,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0xfa4dad,'expectedRevision':_0x589d91['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0xa98c25['revision']};}};
1
+ function a130_0x5bf9(){const _0x481da1=['high-risk-write','POST','publish','instant_api_policy_publish_outcome_unknown','appCode','verified','18YIDVqm','2320731IUqHGy','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','cause','expectedRevision','272944NrpznV','8556NedHpw','Inspect\x20with\x20`','validation','planned','17028kGsOIM','before','15rZbzfZ','/publish','848vEiEtA','changeSummary','Published\x20Instant\x20API\x20policy\x20revision\x20','revision','316835VLQaPt','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','policyFilePath','local','instant_api_policy_publish_verification_unavailable','normalizedConfig','10HXQdeH','policyRelativePath','all','320356biNKAq','6715676eDZehs','configHash'];a130_0x5bf9=function(){return _0x481da1;};return a130_0x5bf9();}const a130_0x54094f=a130_0x19a5;(function(_0x28a138,_0x441d16){const _0x4ad7e0=a130_0x19a5,_0x20043a=_0x28a138();while(!![]){try{const _0x202d66=-parseInt(_0x4ad7e0(0x120))/0x1+parseInt(_0x4ad7e0(0x11f))/0x2+parseInt(_0x4ad7e0(0x101))/0x3*(parseInt(_0x4ad7e0(0x110))/0x4)+parseInt(_0x4ad7e0(0x107))/0x5*(parseInt(_0x4ad7e0(0x119))/0x6)+parseInt(_0x4ad7e0(0x11a))/0x7+parseInt(_0x4ad7e0(0x103))/0x8*(-parseInt(_0x4ad7e0(0x124))/0x9)+parseInt(_0x4ad7e0(0x10d))/0xa*(-parseInt(_0x4ad7e0(0x111))/0xb);if(_0x202d66===_0x441d16)break;else _0x20043a['push'](_0x20043a['shift']());}catch(_0x18ae75){_0x20043a['push'](_0x20043a['shift']());}}}(a130_0x5bf9,0x3a54f));function a130_0x19a5(_0x153d54,_0x27437d){_0x153d54=_0x153d54-0x101;const _0x5bf9c3=a130_0x5bf9();let _0x19a580=_0x5bf9c3[_0x153d54];return _0x19a580;}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';async function preparePublish(_0x3b1efb){const _0x410115=a130_0x19a5,{local:_0x24de88,config:_0x1a08b5}=await readFixedPolicy(_0x3b1efb),_0x2c8784=readChangeSummary(_0x3b1efb),_0x2b7f36=readExpectedRevision(_0x3b1efb),[_0x44ae9a,_0x2de97f]=await Promise[_0x410115(0x10f)]([getCurrentInstantApiPolicy(_0x3b1efb[_0x410115(0x117)]),validateInstantApiPolicy({'appCode':_0x3b1efb[_0x410115(0x117)],'config':_0x1a08b5})]);return assertExpectedRevision(_0x44ae9a,_0x2b7f36),{'local':_0x24de88,'config':_0x1a08b5,'changeSummary':_0x2c8784,'expectedRevision':_0x2b7f36,'before':_0x44ae9a,'validation':_0x2de97f};}export const instantApiPolicyPublish={'service':a130_0x54094f(0x11c),'command':a130_0x54094f(0x115),'description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a130_0x54094f(0x113),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0xba0bad){readChangeSummary(_0xba0bad),readExpectedRevision(_0xba0bad);},async 'dryRun'(_0x3c9adc){const _0x10d4cb=a130_0x54094f,_0x465402=await preparePublish(_0x3c9adc);return asDryRunResult({'operation':_0x10d4cb(0x115),'selector':{'appCode':_0x3c9adc[_0x10d4cb(0x117)]},'before':projectCurrentPolicy(_0x465402[_0x10d4cb(0x125)]),'after':{'revision':_0x465402[_0x10d4cb(0x125)]?_0x465402['before'][_0x10d4cb(0x106)]+0x1:0x1,'configHash':_0x465402['validation'][_0x10d4cb(0x112)],'config':_0x465402[_0x10d4cb(0x122)][_0x10d4cb(0x10c)]},'filePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x109)],'relativePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x10e)],'dryRun':!![],'backend':{'method':_0x10d4cb(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)},'warnings':expectedRevisionWarnings(_0x465402[_0x10d4cb(0x11e)]),'verification':{'status':_0x10d4cb(0x123),'expectedRevision':_0x465402[_0x10d4cb(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x10d4cb(0x114),'url':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)});},async 'execute'(_0x11d983){const _0x24c7d5=a130_0x54094f,_0x4ea636=await preparePublish(_0x11d983);let _0x30fcef=![];try{await publishInstantApiPolicy({'appCode':_0x11d983[_0x24c7d5(0x117)],'config':_0x4ea636['config'],..._0x4ea636[_0x24c7d5(0x104)]?{'changeSummary':_0x4ea636[_0x24c7d5(0x104)]}:{}});}catch(_0x3108e8){if(!isPlatformTransportFailure(_0x3108e8))throw _0x3108e8;_0x30fcef=!![];}let _0x3ae47c;try{_0x3ae47c=await getCurrentInstantApiPolicy(_0x11d983[_0x24c7d5(0x117)]);}catch(_0x2b2bc2){const _0x3cdec9=instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):_0x24c7d5(0x10b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object['defineProperty'](_0x3cdec9,_0x24c7d5(0x11d),{'value':_0x2b2bc2,'enumerable':![]});throw _0x3cdec9;}const _0x4b5629=_0x3ae47c&&(_0x4ea636[_0x24c7d5(0x125)]===null||_0x3ae47c[_0x24c7d5(0x106)]>_0x4ea636['before'][_0x24c7d5(0x106)]),_0x219b68=_0x3ae47c?.['configHash']===_0x4ea636[_0x24c7d5(0x122)][_0x24c7d5(0x112)];if(!_0x3ae47c||!_0x4b5629||!_0x219b68)throw instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):'instant_api_policy_publish_verification_failed',_0x24c7d5(0x108),_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3ce859=[...expectedRevisionWarnings(_0x4ea636[_0x24c7d5(0x11e)]),RUNTIME_CACHE_WARNING];return _0x30fcef&&_0x3ce859['push'](_0x24c7d5(0x11b)),{'ok':!![],'data':{'operation':_0x24c7d5(0x115),'selector':{'appCode':_0x11d983[_0x24c7d5(0x117)]},'before':projectCurrentPolicy(_0x4ea636[_0x24c7d5(0x125)]),'after':projectCurrentPolicy(_0x3ae47c),'filePath':_0x4ea636[_0x24c7d5(0x10a)]['policyFilePath'],'relativePath':_0x4ea636[_0x24c7d5(0x10a)][_0x24c7d5(0x10e)],'dryRun':![],'backend':{'method':_0x24c7d5(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x24c7d5(0x102)},'warnings':_0x3ce859,'verification':{'status':_0x24c7d5(0x118),'recoveredAfterUnknownResponse':_0x30fcef,'expectedRevision':_0x4ea636[_0x24c7d5(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x24c7d5(0x105)+_0x3ae47c[_0x24c7d5(0x106)]};}};
@@ -1 +1 @@
1
- const a121_0x5590b6=a121_0x26a1;(function(_0x20b618,_0x562180){const _0x57bf3d=a121_0x26a1,_0x5e3f2=_0x20b618();while(!![]){try{const _0x21566b=parseInt(_0x57bf3d(0x155))/0x1+-parseInt(_0x57bf3d(0x151))/0x2+parseInt(_0x57bf3d(0x14b))/0x3+-parseInt(_0x57bf3d(0x15d))/0x4+-parseInt(_0x57bf3d(0x14d))/0x5+parseInt(_0x57bf3d(0x156))/0x6+parseInt(_0x57bf3d(0x149))/0x7;if(_0x21566b===_0x562180)break;else _0x5e3f2['push'](_0x5e3f2['shift']());}catch(_0xbe25b){_0x5e3f2['push'](_0x5e3f2['shift']());}}}(a121_0x4b11,0xb2468));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a121_0x26a1(_0x377503,_0x1de5c6){_0x377503=_0x377503-0x149;const _0x4b1181=a121_0x4b11();let _0x26a1b5=_0x4b1181[_0x377503];return _0x26a1b5;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a121_0x4b11(){const _0x3f899f=['bool','instant_api_policy_not_configured','pull','instant-api-policy','revision','action','97460ULDefa','8522472jPLlEq','appCode','740049qAkjEv','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','6530445zLLUYs','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','config','682016jWhOCq','force','\x20Instant\x20API\x20policy\x20revision\x20','Pulled','19941ZvOOyf','5505348VenRPq'];a121_0x4b11=function(){return _0x3f899f;};return a121_0x4b11();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a121_0x5590b6(0x15a),'command':a121_0x5590b6(0x159),'description':a121_0x5590b6(0x14f),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1b1e05){requireForceConfirmation(_0x1b1e05);},async 'execute'(_0x246e3a){const _0x1c0f45=a121_0x5590b6;requireForceConfirmation(_0x246e3a);const _0x5800f3=await getCurrentInstantApiPolicy(_0x246e3a[_0x1c0f45(0x14a)]);if(!_0x5800f3)throw instantApiPolicyError(_0x1c0f45(0x158),_0x1c0f45(0x14e)+_0x246e3a[_0x1c0f45(0x14a)]+'.',_0x1c0f45(0x14c));const _0x313b9a=loadInstantApiPolicyLocalConfig(_0x246e3a[_0x1c0f45(0x14a)]),_0x201af4=await writeInstantApiPolicyConfigFile(_0x313b9a,_0x5800f3[_0x1c0f45(0x150)],{'force':_0x246e3a[_0x1c0f45(0x157)](_0x1c0f45(0x152))});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x246e3a[_0x1c0f45(0x14a)],'revision':_0x5800f3[_0x1c0f45(0x15b)]},'filePath':_0x313b9a['policyFilePath'],'relativePath':_0x313b9a['policyRelativePath'],'action':_0x201af4[_0x1c0f45(0x15c)],'configHash':_0x5800f3['configHash']},'message':(_0x201af4[_0x1c0f45(0x15c)]==='unchanged'?'Kept':_0x1c0f45(0x154))+_0x1c0f45(0x153)+_0x5800f3['revision']};}};
1
+ const a131_0x315ab2=a131_0x1bed;(function(_0x16284b,_0x1e4f34){const _0x3ca8f7=a131_0x1bed,_0x41cfc1=_0x16284b();while(!![]){try{const _0x2f6bd4=-parseInt(_0x3ca8f7(0xc0))/0x1*(parseInt(_0x3ca8f7(0xb6))/0x2)+parseInt(_0x3ca8f7(0xcf))/0x3+parseInt(_0x3ca8f7(0xc6))/0x4*(-parseInt(_0x3ca8f7(0xca))/0x5)+-parseInt(_0x3ca8f7(0xbb))/0x6+parseInt(_0x3ca8f7(0xb7))/0x7*(parseInt(_0x3ca8f7(0xbe))/0x8)+parseInt(_0x3ca8f7(0xc9))/0x9+parseInt(_0x3ca8f7(0xce))/0xa;if(_0x2f6bd4===_0x1e4f34)break;else _0x41cfc1['push'](_0x41cfc1['shift']());}catch(_0x1c9e7a){_0x41cfc1['push'](_0x41cfc1['shift']());}}}(a131_0x2a1c,0x58bef));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a131_0x1bed(_0x49fb77,_0x20d823){_0x49fb77=_0x49fb77-0xb6;const _0x2a1c49=a131_0x2a1c();let _0x1bed70=_0x2a1c49[_0x49fb77];return _0x1bed70;}function a131_0x2a1c(){const _0x9089dc=['unchanged','appCode','2283376NlwQcN','write','instant-api-policy','1694745tswIzZ','5OhBdKA','Pulled','action','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','4695960NCSezM','1105278UWBBUI','Kept','62ZMSIRC','2122001VmowuN','force','policyRelativePath','\x20Instant\x20API\x20policy\x20revision\x20','3873582yfKZHQ','pull','policyFilePath','16loYTna','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','1699dCmCoQ','configHash','revision','config'];a131_0x2a1c=function(){return _0x9089dc;};return a131_0x2a1c();}export const instantApiPolicyPull={'service':a131_0x315ab2(0xc8),'command':a131_0x315ab2(0xbc),'description':a131_0x315ab2(0xbf),'risk':a131_0x315ab2(0xc7),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1adc5f){requireForceConfirmation(_0x1adc5f);},async 'execute'(_0x3edf57){const _0xdd9c43=a131_0x315ab2;requireForceConfirmation(_0x3edf57);const _0x4fd8a4=await getCurrentInstantApiPolicy(_0x3edf57[_0xdd9c43(0xc5)]);if(!_0x4fd8a4)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3edf57[_0xdd9c43(0xc5)]+'.',_0xdd9c43(0xcd));const _0x50455e=loadInstantApiPolicyLocalConfig(_0x3edf57[_0xdd9c43(0xc5)]),_0x199199=await writeInstantApiPolicyConfigFile(_0x50455e,_0x4fd8a4[_0xdd9c43(0xc3)],{'force':_0x3edf57['bool'](_0xdd9c43(0xb8))});return{'ok':!![],'data':{'operation':_0xdd9c43(0xbc),'selector':{'appCode':_0x3edf57[_0xdd9c43(0xc5)],'revision':_0x4fd8a4['revision']},'filePath':_0x50455e[_0xdd9c43(0xbd)],'relativePath':_0x50455e[_0xdd9c43(0xb9)],'action':_0x199199['action'],'configHash':_0x4fd8a4[_0xdd9c43(0xc1)]},'message':(_0x199199[_0xdd9c43(0xcc)]===_0xdd9c43(0xc4)?_0xdd9c43(0xd0):_0xdd9c43(0xcb))+_0xdd9c43(0xba)+_0x4fd8a4[_0xdd9c43(0xc2)]};}};
@@ -1 +1 @@
1
- const a122_0x130432=a122_0x2fda;(function(_0x43595f,_0x4e8969){const _0x517ea3=a122_0x2fda,_0x3bec56=_0x43595f();while(!![]){try{const _0x2812a8=-parseInt(_0x517ea3(0x1b6))/0x1*(parseInt(_0x517ea3(0x1b5))/0x2)+-parseInt(_0x517ea3(0x1ac))/0x3+parseInt(_0x517ea3(0x1b1))/0x4*(parseInt(_0x517ea3(0x1ad))/0x5)+parseInt(_0x517ea3(0x1b9))/0x6*(parseInt(_0x517ea3(0x1ae))/0x7)+parseInt(_0x517ea3(0x1b7))/0x8+parseInt(_0x517ea3(0x1ba))/0x9+-parseInt(_0x517ea3(0x1af))/0xa;if(_0x2812a8===_0x4e8969)break;else _0x3bec56['push'](_0x3bec56['shift']());}catch(_0xcefbaf){_0x3bec56['push'](_0x3bec56['shift']());}}}(a122_0x6177,0x24472));function a122_0x2fda(_0x208d9f,_0x59ba9f){_0x208d9f=_0x208d9f-0x1ac;const _0x617758=a122_0x6177();let _0x2fdaa7=_0x617758[_0x208d9f];return _0x2fdaa7;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a122_0x6177(){const _0x492d9c=['appCode','5636ayisZK','instant-api-policy','read','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','259442fgCYsp','1PCDEWs','2321480sdsEqF','revision','1674yXhMHw','343620tyvUbs','95049fAWiuv','305nUYhvU','6951GFuCYW','3813630bMsYqe'];a122_0x6177=function(){return _0x492d9c;};return a122_0x6177();}export const instantApiPolicyRevision={'service':a122_0x130432(0x1b2),'command':a122_0x130432(0x1b8),'description':a122_0x130432(0x1b4),'risk':a122_0x130432(0x1b3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x2d343e){readRevision(_0x2d343e);},async 'execute'(_0x818a83){const _0xeb04aa=a122_0x130432,_0x5ee3f3=readRevision(_0x818a83),_0x47aa21=await getInstantApiPolicyRevision(_0x818a83[_0xeb04aa(0x1b0)],_0x5ee3f3);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x47aa21)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x5ee3f3};}};
1
+ const a132_0x4f4d6a=a132_0x39e6;(function(_0x278da7,_0x10ec91){const _0x229078=a132_0x39e6,_0x5aaa5=_0x278da7();while(!![]){try{const _0x210098=-parseInt(_0x229078(0x70))/0x1+-parseInt(_0x229078(0x6a))/0x2*(-parseInt(_0x229078(0x76))/0x3)+-parseInt(_0x229078(0x72))/0x4*(parseInt(_0x229078(0x73))/0x5)+-parseInt(_0x229078(0x75))/0x6+parseInt(_0x229078(0x71))/0x7+-parseInt(_0x229078(0x6e))/0x8+parseInt(_0x229078(0x6c))/0x9;if(_0x210098===_0x10ec91)break;else _0x5aaa5['push'](_0x5aaa5['shift']());}catch(_0x2e36ef){_0x5aaa5['push'](_0x5aaa5['shift']());}}}(a132_0x5aa9,0xbd531));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a132_0x4f4d6a(0x6f),'command':a132_0x4f4d6a(0x77),'description':a132_0x4f4d6a(0x6d),'risk':a132_0x4f4d6a(0x6b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x3786a4){readRevision(_0x3786a4);},async 'execute'(_0x138de2){const _0x1c0162=a132_0x4f4d6a,_0x42313d=readRevision(_0x138de2),_0x374c43=await getInstantApiPolicyRevision(_0x138de2[_0x1c0162(0x74)],_0x42313d);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x374c43)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x42313d};}};function a132_0x39e6(_0x41d9ef,_0x5739b6){_0x41d9ef=_0x41d9ef-0x6a;const _0x5aa994=a132_0x5aa9();let _0x39e6b5=_0x5aa994[_0x41d9ef];return _0x39e6b5;}function a132_0x5aa9(){const _0x4882e9=['12ZuVymv','2286235AhYGyD','appCode','553272OrHPxO','3TfddpM','revision','2790316nIAALd','read','1556442hppXCd','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','5326024ATxxwV','instant-api-policy','132049wPdIqQ','10283924UJMgBy'];a132_0x5aa9=function(){return _0x4882e9;};return a132_0x5aa9();}
@@ -1 +1 @@
1
- function a123_0x467c(){const _0x7a0532=['revisions','9696618PaGZht','8TMxDdN','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','30249kwCmDq','2835108EsyBao','10944283bNzGKC','read','4xdGVBT','\x20Instant\x20API\x20policy\x20revision(s)','10SQVtlp','length','appCode','140UHFIkM','791857IHFxgs','instant-api-policy','62971667EAJMlr','2482915kTqYaR','map','Found\x20'];a123_0x467c=function(){return _0x7a0532;};return a123_0x467c();}const a123_0x4673c2=a123_0x7b02;function a123_0x7b02(_0x3ca04f,_0xb0d0a0){_0x3ca04f=_0x3ca04f-0x129;const _0x467c3c=a123_0x467c();let _0x7b02f4=_0x467c3c[_0x3ca04f];return _0x7b02f4;}(function(_0x4483ca,_0x3a03ef){const _0x2b8db6=a123_0x7b02,_0x5a4062=_0x4483ca();while(!![]){try{const _0x224221=-parseInt(_0x2b8db6(0x12a))/0x1+-parseInt(_0x2b8db6(0x129))/0x2*(parseInt(_0x2b8db6(0x134))/0x3)+-parseInt(_0x2b8db6(0x138))/0x4*(parseInt(_0x2b8db6(0x12d))/0x5)+-parseInt(_0x2b8db6(0x131))/0x6+parseInt(_0x2b8db6(0x136))/0x7*(-parseInt(_0x2b8db6(0x132))/0x8)+parseInt(_0x2b8db6(0x135))/0x9+-parseInt(_0x2b8db6(0x13a))/0xa*(-parseInt(_0x2b8db6(0x12c))/0xb);if(_0x224221===_0x3a03ef)break;else _0x5a4062['push'](_0x5a4062['shift']());}catch(_0x5b0d09){_0x5a4062['push'](_0x5a4062['shift']());}}}(a123_0x467c,0xd365f));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a123_0x4673c2(0x12b),'command':a123_0x4673c2(0x130),'description':a123_0x4673c2(0x133),'risk':a123_0x4673c2(0x137),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x33006b){const _0xfe4ef7=a123_0x4673c2,_0x22d59b=await listInstantApiPolicyRevisions(_0x33006b['appCode']);return{'ok':!![],'data':{'appCode':_0x33006b[_0xfe4ef7(0x13c)],'total':_0x22d59b[_0xfe4ef7(0x13b)],'revisions':_0x22d59b[_0xfe4ef7(0x12e)](projectRevisionSummary)},'message':_0xfe4ef7(0x12f)+_0x22d59b[_0xfe4ef7(0x13b)]+_0xfe4ef7(0x139)};}};
1
+ const a133_0x3e51c7=a133_0x44f7;(function(_0x29f853,_0x137a33){const _0x7d9b2d=a133_0x44f7,_0x1e5703=_0x29f853();while(!![]){try{const _0x2fa7b0=parseInt(_0x7d9b2d(0x191))/0x1*(-parseInt(_0x7d9b2d(0x193))/0x2)+parseInt(_0x7d9b2d(0x196))/0x3*(parseInt(_0x7d9b2d(0x190))/0x4)+parseInt(_0x7d9b2d(0x18e))/0x5+-parseInt(_0x7d9b2d(0x194))/0x6+parseInt(_0x7d9b2d(0x195))/0x7*(-parseInt(_0x7d9b2d(0x192))/0x8)+parseInt(_0x7d9b2d(0x19a))/0x9+parseInt(_0x7d9b2d(0x197))/0xa;if(_0x2fa7b0===_0x137a33)break;else _0x1e5703['push'](_0x1e5703['shift']());}catch(_0x444328){_0x1e5703['push'](_0x1e5703['shift']());}}}(a133_0x3a01,0x7f4b5));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a133_0x44f7(_0xb62204,_0x274de){_0xb62204=_0xb62204-0x18b;const _0x3a0125=a133_0x3a01();let _0x44f727=_0x3a0125[_0xb62204];return _0x44f727;}function a133_0x3a01(){const _0x4e31bd=['10967hDuRro','249376Lcnpoc','142WjjUcA','4654668irtNrM','196shKyca','1441383cALYfB','7908130lPIohP','appCode','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','3618630wKxCvi','instant-api-policy','map','\x20Instant\x20API\x20policy\x20revision(s)','length','3974215IYfzaT','revisions','8NeJTEo'];a133_0x3a01=function(){return _0x4e31bd;};return a133_0x3a01();}export const instantApiPolicyRevisions={'service':a133_0x3e51c7(0x19b),'command':a133_0x3e51c7(0x18f),'description':a133_0x3e51c7(0x199),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3d1453){const _0x38508a=a133_0x3e51c7,_0x391620=await listInstantApiPolicyRevisions(_0x3d1453[_0x38508a(0x198)]);return{'ok':!![],'data':{'appCode':_0x3d1453[_0x38508a(0x198)],'total':_0x391620[_0x38508a(0x18d)],'revisions':_0x391620[_0x38508a(0x18b)](projectRevisionSummary)},'message':'Found\x20'+_0x391620[_0x38508a(0x18d)]+_0x38508a(0x18c)};}};
@@ -1 +1 @@
1
- const a124_0x57a0d9=a124_0x5eb8;(function(_0x3691ce,_0x7ecb39){const _0x49716e=a124_0x5eb8,_0x1c0e19=_0x3691ce();while(!![]){try{const _0x259b41=-parseInt(_0x49716e(0xf4))/0x1+-parseInt(_0x49716e(0xe3))/0x2*(-parseInt(_0x49716e(0xdd))/0x3)+-parseInt(_0x49716e(0xdb))/0x4+parseInt(_0x49716e(0xe9))/0x5+-parseInt(_0x49716e(0xe5))/0x6+parseInt(_0x49716e(0xe2))/0x7+-parseInt(_0x49716e(0xdf))/0x8*(-parseInt(_0x49716e(0xf8))/0x9);if(_0x259b41===_0x7ecb39)break;else _0x1c0e19['push'](_0x1c0e19['shift']());}catch(_0x2a1dee){_0x1c0e19['push'](_0x1c0e19['shift']());}}}(a124_0x3679,0xf2457));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a124_0x5eb8(_0x7cfb70,_0x46ccb8){_0x7cfb70=_0x7cfb70-0xd6;const _0x367924=a124_0x3679();let _0x5eb899=_0x367924[_0x7cfb70];return _0x5eb899;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a124_0x3679(){const _0x409019=['push','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Rolled\x20Instant\x20API\x20policy\x20revision\x20','4742184RsUAff','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','1017maHPqZ','rollback','13981832BGkqvf','instant_api_policy_not_configured','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','7090027MwnHVj','9538PqzJpB','`;\x20do\x20not\x20resubmit\x20automatically.','4724466SGwwvd','/rollback','all','high-risk-write','2515960pnLEkf','before','revision','verified','instant_api_policy_rollback_outcome_unknown','expectedRevision','defineProperty','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','configHash','1915173pziyHU','appCode','\x20forward\x20to\x20revision\x20','POST','9vMoVOq','instant_api_policy_rollback_verification_failed','target','changeSummary','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.'];a124_0x3679=function(){return _0x409019;};return a124_0x3679();}async function prepareRollback(_0x3dc01d){const _0x106614=a124_0x5eb8,_0x1e762e=readRevision(_0x3dc01d),_0x3c0685=readChangeSummary(_0x3dc01d),_0x4a646e=readExpectedRevision(_0x3dc01d),[_0x2112f3,_0x5c52e3]=await Promise[_0x106614(0xe7)]([getCurrentInstantApiPolicy(_0x3dc01d[_0x106614(0xf5)]),getInstantApiPolicyRevision(_0x3dc01d[_0x106614(0xf5)],_0x1e762e)]);if(!_0x2112f3)throw instantApiPolicyError(_0x106614(0xe0),_0x106614(0xd9)+_0x3dc01d['appCode']+'.');return assertExpectedRevision(_0x2112f3,_0x4a646e),{'revision':_0x1e762e,'changeSummary':_0x3c0685,'expectedRevision':_0x4a646e,'before':_0x2112f3,'target':_0x5c52e3};}export const instantApiPolicyRollback={'service':a124_0x57a0d9(0xf2),'command':'rollback','description':a124_0x57a0d9(0xf0),'risk':a124_0x57a0d9(0xe8),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a124_0x57a0d9(0xd7),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2b9421){readRevision(_0x2b9421),readChangeSummary(_0x2b9421),readExpectedRevision(_0x2b9421);},async 'dryRun'(_0x57dcd8){const _0x5d233b=a124_0x57a0d9,_0x16e0bb=await prepareRollback(_0x57dcd8);return asDryRunResult({'operation':_0x5d233b(0xde),'selector':{'appCode':_0x57dcd8[_0x5d233b(0xf5)],'sourceRevision':_0x16e0bb['revision']},'before':projectCurrentPolicy(_0x16e0bb[_0x5d233b(0xea)]),'after':{'revision':_0x16e0bb[_0x5d233b(0xea)][_0x5d233b(0xeb)]+0x1,'sourceRevision':projectRevisionDetail(_0x16e0bb[_0x5d233b(0xfa)])},'dryRun':!![],'backend':{'method':_0x5d233b(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x16e0bb['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x16e0bb[_0x5d233b(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x5d233b(0xf7),'url':INSTANT_API_POLICY_BASE_PATH+_0x5d233b(0xe6)});},async 'execute'(_0xe5455c){const _0x389324=a124_0x57a0d9,_0x514a58=await prepareRollback(_0xe5455c);let _0x43bc8c=![];try{await rollbackInstantApiPolicy({'appCode':_0xe5455c['appCode'],'revision':_0x514a58[_0x389324(0xeb)],..._0x514a58[_0x389324(0xd6)]?{'changeSummary':_0x514a58[_0x389324(0xd6)]}:{}});}catch(_0x1384df){if(!isPlatformTransportFailure(_0x1384df))throw _0x1384df;_0x43bc8c=!![];}let _0x1ffa83;try{_0x1ffa83=await getCurrentInstantApiPolicy(_0xe5455c['appCode']);}catch(_0x2a9f68){const _0x3da4e8=instantApiPolicyError(_0x43bc8c?'instant_api_policy_rollback_outcome_unknown':'instant_api_policy_rollback_verification_unavailable',_0x389324(0xdc),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));Object[_0x389324(0xef)](_0x3da4e8,'cause',{'value':_0x2a9f68,'enumerable':![]});throw _0x3da4e8;}const _0x2f6f76=_0x1ffa83&&_0x1ffa83[_0x389324(0xeb)]>_0x514a58[_0x389324(0xea)][_0x389324(0xeb)],_0x17ecb9=_0x1ffa83?.['configHash']===_0x514a58[_0x389324(0xfa)][_0x389324(0xf3)];if(!_0x1ffa83||!_0x2f6f76||!_0x17ecb9)throw instantApiPolicyError(_0x43bc8c?_0x389324(0xed):_0x389324(0xf9),_0x389324(0xe1),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));const _0x4cd93e=[...expectedRevisionWarnings(_0x514a58['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x43bc8c&&_0x4cd93e[_0x389324(0xd8)](_0x389324(0xf1)),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0xe5455c[_0x389324(0xf5)],'sourceRevision':_0x514a58['revision']},'before':projectCurrentPolicy(_0x514a58[_0x389324(0xea)]),'after':projectCurrentPolicy(_0x1ffa83),'dryRun':![],'backend':{'method':_0x389324(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x4cd93e,'verification':{'status':_0x389324(0xec),'recoveredAfterUnknownResponse':_0x43bc8c,'expectedRevision':_0x514a58[_0x389324(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x389324(0xda)+_0x514a58[_0x389324(0xeb)]+_0x389324(0xf6)+_0x1ffa83['revision']};}};
1
+ function a134_0x1fce(_0x57acd7,_0x1348e3){_0x57acd7=_0x57acd7-0x13e;const _0x1e4769=a134_0x1e47();let _0x1fcef3=_0x1e4769[_0x57acd7];return _0x1fcef3;}const a134_0x2c7b98=a134_0x1fce;(function(_0xd51f9,_0x39bbe9){const _0x4d07d3=a134_0x1fce,_0x3a40ce=_0xd51f9();while(!![]){try{const _0x36920d=parseInt(_0x4d07d3(0x14d))/0x1*(-parseInt(_0x4d07d3(0x14c))/0x2)+-parseInt(_0x4d07d3(0x15e))/0x3*(-parseInt(_0x4d07d3(0x153))/0x4)+-parseInt(_0x4d07d3(0x151))/0x5+parseInt(_0x4d07d3(0x164))/0x6*(-parseInt(_0x4d07d3(0x159))/0x7)+parseInt(_0x4d07d3(0x144))/0x8*(parseInt(_0x4d07d3(0x14a))/0x9)+-parseInt(_0x4d07d3(0x13e))/0xa+parseInt(_0x4d07d3(0x145))/0xb*(parseInt(_0x4d07d3(0x158))/0xc);if(_0x36920d===_0x39bbe9)break;else _0x3a40ce['push'](_0x3a40ce['shift']());}catch(_0x5c04ad){_0x3a40ce['push'](_0x3a40ce['shift']());}}}(a134_0x1e47,0x81582));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a134_0x1e47(){const _0x5e7604=['`;\x20do\x20not\x20resubmit\x20automatically.','cause','1173nWGZKZ','instant-api-policy','revision','appCode','Rolled\x20Instant\x20API\x20policy\x20revision\x20','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','6fkZGGF','defineProperty','7958480RVqfBj','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','push','configHash','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','16qSKUfj','26587VjqsYG','expectedRevision','Inspect\x20with\x20`','/rollback','instant_api_policy_rollback_outcome_unknown','925551iZVgVs','instant_api_policy_rollback_verification_failed','18fJWlCc','115737uAKJHY','verified','before','target','1510580kLFgjN','planned','2696iikXzS','instant_api_policy_not_configured','high-risk-write','rollback','POST','15816OUpIiz','6897989cMvRkl','all','changeSummary'];a134_0x1e47=function(){return _0x5e7604;};return a134_0x1e47();}import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x318cff){const _0x54afb2=a134_0x1fce,_0x21d777=readRevision(_0x318cff),_0xefe821=readChangeSummary(_0x318cff),_0x5a76cc=readExpectedRevision(_0x318cff),[_0x456ed3,_0xb4d1fe]=await Promise[_0x54afb2(0x15a)]([getCurrentInstantApiPolicy(_0x318cff[_0x54afb2(0x161)]),getInstantApiPolicyRevision(_0x318cff[_0x54afb2(0x161)],_0x21d777)]);if(!_0x456ed3)throw instantApiPolicyError(_0x54afb2(0x154),_0x54afb2(0x142)+_0x318cff[_0x54afb2(0x161)]+'.');return assertExpectedRevision(_0x456ed3,_0x5a76cc),{'revision':_0x21d777,'changeSummary':_0xefe821,'expectedRevision':_0x5a76cc,'before':_0x456ed3,'target':_0xb4d1fe};}export const instantApiPolicyRollback={'service':a134_0x2c7b98(0x15f),'command':'rollback','description':'Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a134_0x2c7b98(0x155),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a134_0x2c7b98(0x13f),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2e38df){readRevision(_0x2e38df),readChangeSummary(_0x2e38df),readExpectedRevision(_0x2e38df);},async 'dryRun'(_0x19bfb3){const _0x111324=a134_0x2c7b98,_0x56c2fd=await prepareRollback(_0x19bfb3);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x19bfb3[_0x111324(0x161)],'sourceRevision':_0x56c2fd['revision']},'before':projectCurrentPolicy(_0x56c2fd['before']),'after':{'revision':_0x56c2fd[_0x111324(0x14f)][_0x111324(0x160)]+0x1,'sourceRevision':projectRevisionDetail(_0x56c2fd[_0x111324(0x150)])},'dryRun':!![],'backend':{'method':_0x111324(0x157),'path':INSTANT_API_POLICY_BASE_PATH+_0x111324(0x148)},'warnings':expectedRevisionWarnings(_0x56c2fd[_0x111324(0x146)]),'verification':{'status':_0x111324(0x152),'expectedRevision':_0x56c2fd[_0x111324(0x146)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x111324(0x157),'url':INSTANT_API_POLICY_BASE_PATH+_0x111324(0x148)});},async 'execute'(_0x2ae201){const _0x3bd22d=a134_0x2c7b98,_0x5911a3=await prepareRollback(_0x2ae201);let _0x514a74=![];try{await rollbackInstantApiPolicy({'appCode':_0x2ae201[_0x3bd22d(0x161)],'revision':_0x5911a3['revision'],..._0x5911a3[_0x3bd22d(0x15b)]?{'changeSummary':_0x5911a3[_0x3bd22d(0x15b)]}:{}});}catch(_0x335dcd){if(!isPlatformTransportFailure(_0x335dcd))throw _0x335dcd;_0x514a74=!![];}let _0x522688;try{_0x522688=await getCurrentInstantApiPolicy(_0x2ae201['appCode']);}catch(_0x391d36){const _0x1ce925=instantApiPolicyError(_0x514a74?_0x3bd22d(0x149):'instant_api_policy_rollback_verification_unavailable',_0x3bd22d(0x163),_0x3bd22d(0x147)+mutationLookupCommand()+_0x3bd22d(0x15c));Object[_0x3bd22d(0x165)](_0x1ce925,_0x3bd22d(0x15d),{'value':_0x391d36,'enumerable':![]});throw _0x1ce925;}const _0x291807=_0x522688&&_0x522688['revision']>_0x5911a3[_0x3bd22d(0x14f)][_0x3bd22d(0x160)],_0x16eb91=_0x522688?.[_0x3bd22d(0x141)]===_0x5911a3[_0x3bd22d(0x150)][_0x3bd22d(0x141)];if(!_0x522688||!_0x291807||!_0x16eb91)throw instantApiPolicyError(_0x514a74?_0x3bd22d(0x149):_0x3bd22d(0x14b),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.',_0x3bd22d(0x147)+mutationLookupCommand()+_0x3bd22d(0x15c));const _0x2244ef=[...expectedRevisionWarnings(_0x5911a3[_0x3bd22d(0x146)]),RUNTIME_CACHE_WARNING];return _0x514a74&&_0x2244ef[_0x3bd22d(0x140)](_0x3bd22d(0x143)),{'ok':!![],'data':{'operation':_0x3bd22d(0x156),'selector':{'appCode':_0x2ae201[_0x3bd22d(0x161)],'sourceRevision':_0x5911a3[_0x3bd22d(0x160)]},'before':projectCurrentPolicy(_0x5911a3[_0x3bd22d(0x14f)]),'after':projectCurrentPolicy(_0x522688),'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x3bd22d(0x148)},'warnings':_0x2244ef,'verification':{'status':_0x3bd22d(0x14e),'recoveredAfterUnknownResponse':_0x514a74,'expectedRevision':_0x5911a3[_0x3bd22d(0x146)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x3bd22d(0x162)+_0x5911a3['revision']+'\x20forward\x20to\x20revision\x20'+_0x522688[_0x3bd22d(0x160)]};}};