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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) 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.d.ts +5 -3
  271. package/lib/constant/cdn.js +1 -1
  272. package/lib/constant/cli.js +1 -1
  273. package/lib/constant/defaults.js +1 -1
  274. package/lib/constant/domain.js +1 -1
  275. package/lib/constant/env.js +1 -1
  276. package/lib/constant/output.js +1 -1
  277. package/lib/constant/paths.js +1 -1
  278. package/lib/constant/region.js +1 -1
  279. package/lib/constant/risk.js +1 -1
  280. package/lib/constant/routing-profile.js +1 -1
  281. package/lib/context/app-resolver.d.ts +2 -0
  282. package/lib/context/app-resolver.js +1 -1
  283. package/lib/context/auth-resolver.js +1 -1
  284. package/lib/context/config-loader.js +1 -1
  285. package/lib/context.d.ts +2 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.d.ts +13 -17
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.d.ts +6 -0
  290. package/lib/core/api-client.js +1 -1
  291. package/lib/core/bff/config.js +1 -1
  292. package/lib/core/bff/file-system.js +1 -1
  293. package/lib/core/bff/hash.js +1 -1
  294. package/lib/core/bff/hook-directory.js +1 -1
  295. package/lib/core/bff/lock.js +1 -1
  296. package/lib/core/bff/utils.js +1 -1
  297. package/lib/core/cross-db-relation.d.ts +41 -0
  298. package/lib/core/cross-db-relation.js +1 -0
  299. package/lib/core/db-resolver.js +1 -1
  300. package/lib/core/flow-config.js +1 -1
  301. package/lib/core/instant-api-policy/config.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.d.ts +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.js +1 -1
  332. package/lib/generated/routing-contract.js +1 -1
  333. package/lib/help.js +1 -1
  334. package/lib/postinstall.js +1 -1
  335. package/lib/runtime/confirmation.js +1 -1
  336. package/lib/runtime/event.js +1 -1
  337. package/lib/runtime/index.js +1 -1
  338. package/lib/runtime/queue.js +1 -1
  339. package/lib/runtime/resolve.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.d.ts +0 -10
  343. package/lib/skills/npx-skills-add.js +1 -1
  344. package/lib/skills/skill-presence.js +1 -1
  345. package/lib/telemetry/cli-command-trace.js +1 -1
  346. package/lib/telemetry/cli-help-trace.js +1 -1
  347. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  348. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  349. package/lib/telemetry/send-cli-trace-log.js +1 -1
  350. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  351. package/lib/types/index.d.ts +11 -1
  352. package/lib/utils/ai_config.js +1 -1
  353. package/lib/utils/apply-jq-filter.js +1 -1
  354. package/lib/utils/cdn-config.js +1 -1
  355. package/lib/utils/check-sdk-version.js +1 -1
  356. package/lib/utils/cli-version-check.js +1 -1
  357. package/lib/utils/cli-version-policy.d.ts +19 -0
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +6 -1
  375. package/skills/rabetbase/SKILL.md +16 -10
  376. package/skills/rabetbase/guides/backend-function.md +5 -1
  377. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  378. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  379. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  380. package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
  381. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  382. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  383. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  384. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  385. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  386. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +64 -0
  387. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  388. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  389. package/skills/rabetbase.manifest.json +5 -3
  390. package/templates/README.md +46 -6
  391. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  392. package/templates/generate-api/profile-api.ts.tpl +21 -0
  393. 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(_0x3193af,_0x42f12d){const _0x3f9a18=a117_0x4fee,_0x317dc7=_0x3193af();while(!![]){try{const _0x4a390c=-parseInt(_0x3f9a18(0x11e))/0x1*(parseInt(_0x3f9a18(0x11f))/0x2)+-parseInt(_0x3f9a18(0x126))/0x3*(-parseInt(_0x3f9a18(0x123))/0x4)+-parseInt(_0x3f9a18(0x122))/0x5*(-parseInt(_0x3f9a18(0x127))/0x6)+parseInt(_0x3f9a18(0x120))/0x7*(parseInt(_0x3f9a18(0x128))/0x8)+-parseInt(_0x3f9a18(0x124))/0x9+parseInt(_0x3f9a18(0x121))/0xa+-parseInt(_0x3f9a18(0x125))/0xb*(parseInt(_0x3f9a18(0x11d))/0xc);if(_0x4a390c===_0x42f12d)break;else _0x317dc7['push'](_0x317dc7['shift']());}catch(_0x35be25){_0x317dc7['push'](_0x317dc7['shift']());}}}(a117_0x4397,0xda678));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';function a117_0x4397(){const _0x22dd3a=['13799151BvAOtN','110cOeois','45YnQWdM','6OGOirj','24tZBnkw','1058052CUBqTL','1UsucYV','96452eLhfCP','2424317ZNifDz','7521220jPSDfY','3404395mzbjDZ','236204paWVEO'];a117_0x4397=function(){return _0x22dd3a;};return a117_0x4397();}import{flowPublish}from'../../commands/flow/publish.js';function a117_0x4fee(_0xe56aa7,_0x12147a){_0xe56aa7=_0xe56aa7-0x11d;const _0x43977e=a117_0x4397();let _0x4feef2=_0x43977e[_0xe56aa7];return _0x4feef2;}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +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_0xe8b9ff=a118_0x2383;function a118_0x2383(_0x42c497,_0x5ce3c7){_0x42c497=_0x42c497-0x106;const _0x306d99=a118_0x306d();let _0x238340=_0x306d99[_0x42c497];return _0x238340;}(function(_0x31978a,_0x44e161){const _0x506bf9=a118_0x2383,_0x2265d4=_0x31978a();while(!![]){try{const _0x44e198=-parseInt(_0x506bf9(0x122))/0x1+-parseInt(_0x506bf9(0x110))/0x2*(parseInt(_0x506bf9(0x120))/0x3)+-parseInt(_0x506bf9(0x107))/0x4*(parseInt(_0x506bf9(0x111))/0x5)+-parseInt(_0x506bf9(0x129))/0x6+-parseInt(_0x506bf9(0x10d))/0x7+-parseInt(_0x506bf9(0x118))/0x8+-parseInt(_0x506bf9(0x128))/0x9*(-parseInt(_0x506bf9(0x10a))/0xa);if(_0x44e198===_0x44e161)break;else _0x2265d4['push'](_0x2265d4['shift']());}catch(_0x5dfb34){_0x2265d4['push'](_0x2265d4['shift']());}}}(a118_0x306d,0x69a7b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x306d(){const _0x294549=['\x20flow\x20definition(s)','number','1011310VsjYbE','trim','Page\x20number\x20(1-based)','1068543DCYndE','flow-code','Filter\x20by\x20flow\x20status','7570xXBuSA','65PBijnC','Filter\x20by\x20flow\x20name','--page\x20must\x20be\x20a\x20positive\x20integer.','flow-name','read','page','flow-status','4253184nnFOxv','Found\x20','validation','string','Page\x20size','published','Filter\x20by\x20flow\x20type','num','513jsJtGZ','page-size','387814XdnUmQ','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','Filter\x20by\x20dataset\x20code','flow-type','appCode','draft','225EhiLiz','1865670npkRHW','str','isSafeInteger','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','20068RAyZqK'];a118_0x306d=function(){return _0x294549;};return a118_0x306d();}import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a118_0xe8b9ff(0x127),a118_0xe8b9ff(0x11d)];export const flowList={'service':'flow','command':'list','description':a118_0xe8b9ff(0x123),'risk':a118_0xe8b9ff(0x115),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x106)},{'name':a118_0xe8b9ff(0x114),'type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x112)},{'name':a118_0xe8b9ff(0x117),'type':'string','description':a118_0xe8b9ff(0x10f),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x124)},{'name':a118_0xe8b9ff(0x125),'type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x11e)},{'name':'page','type':'number','description':a118_0xe8b9ff(0x10c),'default':0x1},{'name':a118_0xe8b9ff(0x121),'type':a118_0xe8b9ff(0x109),'description':a118_0xe8b9ff(0x11c),'default':0x14}],async 'validate'(_0x150bc8){const _0x2642af=a118_0xe8b9ff,_0x5dcfa0=_0x150bc8[_0x2642af(0x11f)](_0x2642af(0x116),0x1),_0x140aa2=_0x150bc8[_0x2642af(0x11f)](_0x2642af(0x121),0x14);if(!Number[_0x2642af(0x12b)](_0x5dcfa0)||_0x5dcfa0<0x1)throw CliErrors[_0x2642af(0x11a)](_0x2642af(0x113));if(!Number[_0x2642af(0x12b)](_0x140aa2)||_0x140aa2<0x1)throw CliErrors[_0x2642af(0x11a)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x9bcab6){const _0x5d13d9=a118_0xe8b9ff,{items:_0x1dad05,paging:_0x2de07e}=await listFlowDefinitions(_0x9bcab6[_0x5d13d9(0x126)],{'flowCode':optionalString(_0x9bcab6[_0x5d13d9(0x12a)](_0x5d13d9(0x10e))),'flowName':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('flow-name')),'flowStatus':optionalString(_0x9bcab6['str'](_0x5d13d9(0x117))),'datasetCode':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('dataset-code')),'flowType':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('flow-type')),'pageNum':_0x9bcab6[_0x5d13d9(0x11f)](_0x5d13d9(0x116),0x1),'pageSize':_0x9bcab6[_0x5d13d9(0x11f)](_0x5d13d9(0x121),0x14)});return{'ok':!![],'data':{'appCode':_0x9bcab6[_0x5d13d9(0x126)],'flows':_0x1dad05,'paging':_0x2de07e},'message':_0x5d13d9(0x119)+_0x1dad05['length']+_0x5d13d9(0x108)};}};function optionalString(_0x4934c9){const _0x1f0e7d=a118_0xe8b9ff,_0x35fe35=_0x4934c9[_0x1f0e7d(0x10b)]();return _0x35fe35||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
+ const a119_0x298d70=a119_0x2f52;(function(_0x3c34b7,_0x1763d3){const _0x7bd253=a119_0x2f52,_0x5db0f5=_0x3c34b7();while(!![]){try{const _0x22e5e5=-parseInt(_0x7bd253(0x171))/0x1*(parseInt(_0x7bd253(0x176))/0x2)+parseInt(_0x7bd253(0x16e))/0x3+parseInt(_0x7bd253(0x174))/0x4*(-parseInt(_0x7bd253(0x167))/0x5)+parseInt(_0x7bd253(0x16f))/0x6+parseInt(_0x7bd253(0x168))/0x7*(parseInt(_0x7bd253(0x16d))/0x8)+-parseInt(_0x7bd253(0x16c))/0x9+-parseInt(_0x7bd253(0x16a))/0xa*(parseInt(_0x7bd253(0x175))/0xb);if(_0x22e5e5===_0x1763d3)break;else _0x5db0f5['push'](_0x5db0f5['shift']());}catch(_0x472715){_0x5db0f5['push'](_0x5db0f5['shift']());}}}(a119_0x31e1,0x9038f));function a119_0x31e1(){const _0x2b5bbf=['34CYbCjz','publish','published','4tvnZsa','500533twfhJB','5462sqPVeD','flow','appCode','flowName','1540535ABTZyl','10276QDmxbV','POST','30pBYJYQ','Publish\x20the\x20current\x20flow\x20definition\x20draft','1569123NStscF','5144tsYOyg','874242AcrkTq','403284zuDrZL','high-risk-write'];a119_0x31e1=function(){return _0x2b5bbf;};return a119_0x31e1();}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';function a119_0x2f52(_0xf62cdf,_0x61656d){_0xf62cdf=_0xf62cdf-0x165;const _0x31e19f=a119_0x31e1();let _0x2f5222=_0x31e19f[_0xf62cdf];return _0x2f5222;}export const flowPublish={'service':a119_0x298d70(0x177),'command':a119_0x298d70(0x172),'description':a119_0x298d70(0x16b),'risk':a119_0x298d70(0x170),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x12c0a7){readFlowId(_0x12c0a7);},async 'dryRun'(_0x1ecbc4){const _0xd0558e=a119_0x298d70,_0xaea536=readFlowId(_0x1ecbc4);return buildFlowIdDryRun(_0xd0558e(0x172),FLOW_PATHS[_0xd0558e(0x172)],_0x1ecbc4[_0xd0558e(0x165)],_0xaea536,{'id':_0xaea536,'flowStatus':_0xd0558e(0x173)});},async 'execute'(_0x42dfb5){const _0x5c410c=a119_0x298d70,_0x257bb1=readFlowId(_0x42dfb5),_0x1a7d6b=await publishFlowDefinition(_0x42dfb5[_0x5c410c(0x165)],_0x257bb1);return{'ok':!![],'data':{'operation':_0x5c410c(0x172),'selector':flowSelector(_0x42dfb5[_0x5c410c(0x165)],_0x257bb1,_0x1a7d6b),'before':null,'after':_0x1a7d6b,'dryRun':![],'backend':{'method':_0x5c410c(0x169),'path':FLOW_PATHS[_0x5c410c(0x172)]},'warnings':[]},'message':'Published\x20flow\x20'+(_0x1a7d6b[_0x5c410c(0x166)]||_0x1a7d6b['flowCode']||_0x257bb1)};}};
@@ -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_0x15a26e=a120_0x1014;(function(_0x588ce3,_0x5c60e4){const _0x1cc978=a120_0x1014,_0x234bb2=_0x588ce3();while(!![]){try{const _0x33185d=-parseInt(_0x1cc978(0xa3))/0x1+parseInt(_0x1cc978(0xaa))/0x2+parseInt(_0x1cc978(0xb0))/0x3*(-parseInt(_0x1cc978(0x98))/0x4)+-parseInt(_0x1cc978(0x91))/0x5+parseInt(_0x1cc978(0x9c))/0x6+-parseInt(_0x1cc978(0xa2))/0x7+parseInt(_0x1cc978(0x8e))/0x8*(parseInt(_0x1cc978(0x99))/0x9);if(_0x33185d===_0x5c60e4)break;else _0x234bb2['push'](_0x234bb2['shift']());}catch(_0x1cd9c4){_0x234bb2['push'](_0x234bb2['shift']());}}}(a120_0x2eef,0x24b7a));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x15a26e(0xad),'type':'number','description':a120_0x15a26e(0xa8),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a120_0x15a26e(0xa7),'description':a120_0x15a26e(0xa9),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a120_0x15a26e(0x95),'required':!![],'description':a120_0x15a26e(0x9f)};export function readRuntimePagination(_0x19eb06){const _0x4394cc=a120_0x15a26e,_0x340931=_0x19eb06['num'](_0x4394cc(0xad),0x1),_0x594c59=_0x19eb06['num']('page-size',0x14);if(!Number[_0x4394cc(0x93)](_0x340931)||_0x340931<0x1)throw CliErrors[_0x4394cc(0x8f)](_0x4394cc(0xab));if(!Number['isSafeInteger'](_0x594c59)||_0x594c59<0x1||_0x594c59>0x64)throw CliErrors[_0x4394cc(0x8f)](_0x4394cc(0x90));return{'page':_0x340931,'pageSize':_0x594c59};}export function paginateRuntimeItems(_0x133faf,_0x169a56,_0x5c11d7){const _0x5ef4e5=a120_0x15a26e,_0x2293c3=(_0x169a56-0x1)*_0x5c11d7;return{'items':_0x133faf[_0x5ef4e5(0x96)](_0x2293c3,_0x2293c3+_0x5c11d7),'paging':{'currentPage':_0x169a56,'pageSize':_0x5c11d7,'totalCount':_0x133faf['length']}};}function a120_0x2eef(){const _0x42efd7=['isSafeInteger','trim','string','slice','userName','4HfVsiw','18vavnsY','email','code','944424BpRMRF','length','nickname','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','userId','status','1501206DKKqEc','125709hNDNbg','nickName','Runtime\x20role\x20name\x20\x22','Runtime\x20role\x20\x22','number','Page\x20index\x20(1-based)','Page\x20size\x20(1-100)','4640JyTgvQ','--page\x20must\x20be\x20a\x20positive\x20integer.','permitCount','page','filter','roleName','769251XTpejq','displayName','flagMissing','Pass\x20--role\x20<id|name>.','\x22\x20is\x20ambiguous\x20(ids:\x20','roleType','test','role','userCount','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','2736296BRBSfw','validation','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','484100fQgpJg','username'];a120_0x2eef=function(){return _0x42efd7;};return a120_0x2eef();}export function projectRuntimeRole(_0x470cec){const _0x401195=a120_0x15a26e;return{'id':_0x470cec['id'],'roleName':_0x470cec[_0x401195(0xaf)]??null,'roleType':_0x470cec[_0x401195(0xb5)]??null,'remark':_0x470cec['remark']??null,'userCount':_0x470cec[_0x401195(0xb8)]??0x0,'permitCount':_0x470cec[_0x401195(0xac)]??0x0};}export function projectRuntimeUser(_0x17d583){const _0x24b94d=a120_0x15a26e,_0x5a4bca=normalizeRuntimeUserId(_0x17d583[_0x24b94d(0x9b)]);if(!_0x5a4bca)return null;return{'userId':_0x5a4bca,'username':_0x17d583[_0x24b94d(0x97)]??null,'nickname':_0x17d583[_0x24b94d(0xa4)]??null,'displayName':_0x17d583[_0x24b94d(0xb1)]??null,'email':_0x17d583[_0x24b94d(0x9a)]??null,'status':_0x17d583[_0x24b94d(0xa1)]??null};}export function projectRuntimeRoleMember(_0x25435a){const _0x34ae2d=a120_0x15a26e,_0x5c7386=normalizeRuntimeUserId(_0x25435a[_0x34ae2d(0xa0)]);if(!_0x5c7386)return null;return{'userId':_0x5c7386,'username':_0x25435a[_0x34ae2d(0x92)]??null,'nickname':_0x25435a[_0x34ae2d(0x9e)]??null};}export function readRuntimeRoleRef(_0x1dd4d8){const _0x28f98e=a120_0x15a26e,_0x16d5f8=_0x1dd4d8['str'](_0x28f98e(0xb7))[_0x28f98e(0x94)]();if(!_0x16d5f8)throw CliErrors[_0x28f98e(0xb2)](_0x28f98e(0xb7),_0x28f98e(0xb3));return _0x16d5f8;}function a120_0x1014(_0x549307,_0x53d235){_0x549307=_0x549307-0x8d;const _0x2eefc1=a120_0x2eef();let _0x1014e8=_0x2eefc1[_0x549307];return _0x1014e8;}export function resolveRuntimeRoleGroup(_0x46483e,_0x4d19f8,_0x42681e){const _0x26d1bd=a120_0x15a26e,_0xfe7622=/^\d+$/[_0x26d1bd(0xb6)](_0x4d19f8)?_0x42681e[_0x26d1bd(0xae)](_0x3252f2=>_0x3252f2['id']===Number(_0x4d19f8)):_0x42681e['filter'](_0x91920e=>_0x91920e[_0x26d1bd(0xaf)]===_0x4d19f8);if(_0xfe7622[_0x26d1bd(0x9d)]===0x0)throw CliErrors['validation'](_0x26d1bd(0xa6)+_0x4d19f8+'\x22\x20not\x20found\x20in\x20app\x20'+_0x46483e+'.',_0x26d1bd(0x8d));if(_0xfe7622[_0x26d1bd(0x9d)]>0x1){const _0x4fd646=_0xfe7622['map'](_0x543a4c=>_0x543a4c['id'])['join'](',\x20');throw CliErrors['validation'](_0x26d1bd(0xa5)+_0x4d19f8+_0x26d1bd(0xb4)+_0x4fd646+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0xfe7622[0x0];}function normalizeRuntimeUserId(_0x1f32f7){const _0x323ec8=a120_0x15a26e;if(typeof _0x1f32f7!=='string'&&typeof _0x1f32f7!==_0x323ec8(0xa7))return null;const _0x43cc1a=String(_0x1f32f7)[_0x323ec8(0x94)]();return _0x43cc1a||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_0x4e4101=a121_0x396d;(function(_0x20e82f,_0x1c2349){const _0x25f319=a121_0x396d,_0x3c964c=_0x20e82f();while(!![]){try{const _0x40b2bf=-parseInt(_0x25f319(0x1d2))/0x1+-parseInt(_0x25f319(0x1dc))/0x2*(parseInt(_0x25f319(0x1e1))/0x3)+-parseInt(_0x25f319(0x1db))/0x4+-parseInt(_0x25f319(0x1d5))/0x5*(parseInt(_0x25f319(0x1dd))/0x6)+parseInt(_0x25f319(0x1da))/0x7+-parseInt(_0x25f319(0x1de))/0x8+parseInt(_0x25f319(0x1d9))/0x9;if(_0x40b2bf===_0x1c2349)break;else _0x3c964c['push'](_0x3c964c['shift']());}catch(_0x8a9996){_0x3c964c['push'](_0x3c964c['shift']());}}}(a121_0x3c37,0x63d9b));function a121_0x3c37(){const _0x25942e=['flow','runtime','5rXyKZu','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','str','string','32712282uuXDGE','277417JUejiU','2855940PuPYje','721394UoUfKH','1913574vOGobv','5783448oKYyUu','Found\x20','length','6REmhhy','Optional\x20runtime\x20role-name\x20keyword','appCode','read','keyword','788103vwZoUk'];a121_0x3c37=function(){return _0x25942e;};return a121_0x3c37();}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 a121_0x396d(_0x142f87,_0x1f8579){_0x142f87=_0x142f87-0x1d0;const _0x3c37c9=a121_0x3c37();let _0x396d7e=_0x3c37c9[_0x142f87];return _0x396d7e;}import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x4e4101(0x1d3),'command':'runtime-role-list','description':a121_0x4e4101(0x1d6),'risk':a121_0x4e4101(0x1d0),'flags':[{'name':a121_0x4e4101(0x1d1),'type':a121_0x4e4101(0x1d8),'description':a121_0x4e4101(0x1e2)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3f7435){readRuntimePagination(_0x3f7435);},async 'execute'(_0x58fddf){const _0x3bb278=a121_0x4e4101,{page:_0x2073f0,pageSize:_0x4cee56}=readRuntimePagination(_0x58fddf),_0x362d30=_0x58fddf[_0x3bb278(0x1d7)](_0x3bb278(0x1d1))['trim'](),{items:_0x5e1143,paging:_0x25ffe6}=await listApprovalRuntimeRoles(_0x58fddf[_0x3bb278(0x1e3)],{..._0x362d30?{'roleName':_0x362d30}:{},'currentPage':_0x2073f0,'pageSize':_0x4cee56}),_0x22c514=_0x5e1143['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x58fddf[_0x3bb278(0x1e3)],'scope':_0x3bb278(0x1d4),..._0x362d30?{'keyword':_0x362d30}:{},'roles':_0x22c514,'paging':_0x25ffe6},'message':_0x3bb278(0x1df)+_0x22c514[_0x3bb278(0x1e0)]+'\x20runtime\x20role(s)'};}};
@@ -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
+ function a122_0x4bc7(_0x4e8599,_0x575f01){_0x4e8599=_0x4e8599-0xaf;const _0x21c9f7=a122_0x21c9();let _0x4bc784=_0x21c9f7[_0x4e8599];return _0x4bc784;}const a122_0x3c6a14=a122_0x4bc7;(function(_0x138ad2,_0x2c850d){const _0xa1b106=a122_0x4bc7,_0x6fd93e=_0x138ad2();while(!![]){try{const _0x3867b7=-parseInt(_0xa1b106(0xbe))/0x1*(-parseInt(_0xa1b106(0xbd))/0x2)+parseInt(_0xa1b106(0xb3))/0x3+-parseInt(_0xa1b106(0xb0))/0x4+-parseInt(_0xa1b106(0xaf))/0x5*(parseInt(_0xa1b106(0xc0))/0x6)+parseInt(_0xa1b106(0xb7))/0x7+parseInt(_0xa1b106(0xbc))/0x8*(-parseInt(_0xa1b106(0xb9))/0x9)+parseInt(_0xa1b106(0xba))/0xa;if(_0x3867b7===_0x2c850d)break;else _0x6fd93e['push'](_0x6fd93e['shift']());}catch(_0x1a6c96){_0x6fd93e['push'](_0x6fd93e['shift']());}}}(a122_0x21c9,0x5e3e4));function a122_0x21c9(){const _0x2fd382=['runtime','8IhcHqm','202NYiGlr','1012UhVejO','paging','402768sGlYZm','5KKWxhq','665672soxAOm','flow','roleType','1472787pSeREd','read','map','filter','2893919INnnry','appCode','5447529rKHZpN','2182890YTlNai'];a122_0x21c9=function(){return _0x2fd382;};return a122_0x21c9();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a122_0x3c6a14(0xb1),'command':'runtime-role-user-list','description':'List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','risk':a122_0x3c6a14(0xb4),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4f03a1){readRuntimeRoleRef(_0x4f03a1),readRuntimePagination(_0x4f03a1);},async 'execute'(_0xadb10f){const _0x3fb5b3=a122_0x3c6a14,_0x437b9f=resolveRuntimeRoleGroup(_0xadb10f['appCode'],readRuntimeRoleRef(_0xadb10f),await listApprovalRuntimeRoleUsers(_0xadb10f[_0x3fb5b3(0xb8)])),_0x216731=(_0x437b9f['userList']??[])[_0x3fb5b3(0xb5)](projectRuntimeRoleMember)[_0x3fb5b3(0xb6)](_0xb74519=>_0xb74519!==null),{page:_0x2b68cb,pageSize:_0x1420e9}=readRuntimePagination(_0xadb10f),_0x15a67d=paginateRuntimeItems(_0x216731,_0x2b68cb,_0x1420e9);return{'ok':!![],'data':{'appCode':_0xadb10f[_0x3fb5b3(0xb8)],'scope':_0x3fb5b3(0xbb),'role':{'id':_0x437b9f['id'],'roleName':_0x437b9f['roleName']??null,'roleType':_0x437b9f[_0x3fb5b3(0xb2)]??null},'users':_0x15a67d['items'],'paging':_0x15a67d[_0x3fb5b3(0xbf)]},'message':'Found\x20'+_0x216731['length']+'\x20runtime\x20member(s)\x20in\x20role\x20'+(_0x437b9f['roleName']??_0x437b9f['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_0x18ef(){const _0x259b8a=['\x20runtime\x20app\x20user(s)\x20matching\x20\x22','80026ebBMrR','runtime-user-search','383532WVYsKM','length','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','flagMissing','string','str','15kOmYQb','nickName','1067gaXoBN','1202076wgWIzX','filter','trim','4Wwbtsz','toLowerCase','runtime','3190144sQtmib','code','7tvrlWA','email','150135HKsNzl','Pass\x20--keyword\x20<text>.','some','70088UHUAiF','Found\x20','62380PcQDEo','userName','read','paging','flow'];a123_0x18ef=function(){return _0x259b8a;};return a123_0x18ef();}const a123_0x4b84fd=a123_0x5d93;function a123_0x5d93(_0x5ba45f,_0x43f63b){_0x5ba45f=_0x5ba45f-0x10d;const _0x18efae=a123_0x18ef();let _0x5d9320=_0x18efae[_0x5ba45f];return _0x5d9320;}(function(_0x4c8314,_0x160eff){const _0x4a1dc2=a123_0x5d93,_0x80dc5e=_0x4c8314();while(!![]){try{const _0x54cd4a=parseInt(_0x4a1dc2(0x11d))/0x1+parseInt(_0x4a1dc2(0x12b))/0x2*(parseInt(_0x4a1dc2(0x112))/0x3)+-parseInt(_0x4a1dc2(0x115))/0x4*(parseInt(_0x4a1dc2(0x125))/0x5)+parseInt(_0x4a1dc2(0x11f))/0x6+-parseInt(_0x4a1dc2(0x110))/0x7*(parseInt(_0x4a1dc2(0x10e))/0x8)+-parseInt(_0x4a1dc2(0x128))/0x9+-parseInt(_0x4a1dc2(0x117))/0xa*(-parseInt(_0x4a1dc2(0x127))/0xb);if(_0x54cd4a===_0x160eff)break;else _0x80dc5e['push'](_0x80dc5e['shift']());}catch(_0x4b166a){_0x80dc5e['push'](_0x80dc5e['shift']());}}}(a123_0x18ef,0x40822));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0x4b84fd(0x11b),'command':a123_0x4b84fd(0x11e),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':a123_0x4b84fd(0x119),'flags':[{'name':'keyword','type':a123_0x4b84fd(0x123),'required':!![],'description':a123_0x4b84fd(0x121)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc561f8){const _0x2da89a=a123_0x4b84fd;if(!_0xc561f8[_0x2da89a(0x124)]('keyword')[_0x2da89a(0x12a)]())throw CliErrors[_0x2da89a(0x122)]('keyword',_0x2da89a(0x113));readRuntimePagination(_0xc561f8);},async 'execute'(_0x1c80a4){const _0x11751a=a123_0x4b84fd,_0x55fb68=_0x1c80a4[_0x11751a(0x124)]('keyword')[_0x11751a(0x12a)](),_0x6f5e73=_0x55fb68[_0x11751a(0x12c)](),_0x3a78d0=(await listApprovalRuntimeUsers(_0x1c80a4['appCode']))[_0x11751a(0x129)](_0x236c22=>[_0x236c22[_0x11751a(0x10f)],_0x236c22[_0x11751a(0x118)],_0x236c22[_0x11751a(0x126)],_0x236c22['displayName'],_0x236c22[_0x11751a(0x111)]][_0x11751a(0x114)](_0x5c745d=>_0x5c745d!==null&&_0x5c745d!==undefined&&String(_0x5c745d)[_0x11751a(0x12c)]()['includes'](_0x6f5e73)))['map'](projectRuntimeUser)[_0x11751a(0x129)](_0x456e6a=>_0x456e6a!==null),{page:_0x181f49,pageSize:_0x245d5e}=readRuntimePagination(_0x1c80a4),_0x190afb=paginateRuntimeItems(_0x3a78d0,_0x181f49,_0x245d5e);return{'ok':!![],'data':{'appCode':_0x1c80a4['appCode'],'scope':_0x11751a(0x10d),'keyword':_0x55fb68,'users':_0x190afb['items'],'paging':_0x190afb[_0x11751a(0x11a)]},'message':_0x11751a(0x116)+_0x3a78d0[_0x11751a(0x120)]+_0x11751a(0x11c)+_0x55fb68+'\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_0x530354=a124_0x406c;(function(_0x27485e,_0x1785f9){const _0x50aa8d=a124_0x406c,_0xd5a9fb=_0x27485e();while(!![]){try{const _0x372385=-parseInt(_0x50aa8d(0x123))/0x1*(parseInt(_0x50aa8d(0x100))/0x2)+parseInt(_0x50aa8d(0x11e))/0x3+parseInt(_0x50aa8d(0x117))/0x4*(-parseInt(_0x50aa8d(0x112))/0x5)+parseInt(_0x50aa8d(0x121))/0x6*(-parseInt(_0x50aa8d(0x10e))/0x7)+parseInt(_0x50aa8d(0x106))/0x8+-parseInt(_0x50aa8d(0x109))/0x9*(-parseInt(_0x50aa8d(0x120))/0xa)+parseInt(_0x50aa8d(0x10f))/0xb;if(_0x372385===_0x1785f9)break;else _0xd5a9fb['push'](_0xd5a9fb['shift']());}catch(_0x534643){_0xd5a9fb['push'](_0xd5a9fb['shift']());}}}(a124_0x2951,0xc72b1));function a124_0x2951(){const _0x5c9351=['Approval\x20flow\x20','join','\x20\x20datasetCode:\x20','Pass\x20--file\x20<path>.','string','2318289vduHWJ','pageId','1962930JjEcJw','360QdQpuW','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','37krtxlo','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','number','/smartapi/flow/update','normalized','cancelled','message','POST','path','bool','flowDesc','apiError','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','map','\x20\x20appCode:\x20','validation','FlowConfig\x20validation\x20failed\x20for\x20','trim','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','/smartapi/flow/detail','\x20\x20flowId:\x20','appCode','47542NTAvsB','datasetCode','flowJson','/smartapi/flow/page','num','flowType','3609176hgkDtz','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','27zIdtjs','INDEPENDENT_FLOW','/smartapi/flow/create','Unable\x20to\x20read\x20FlowConfig:\x20','flagMissing','95718doqDrO','24131206XbLAyU','flowName','file','7645ViZagu','flowCode','--id\x20must\x20be\x20a\x20positive\x20integer.','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','warnings','3900DTIcIZ','\x20\x20flowName:\x20'];a124_0x2951=function(){return _0x5c9351;};return a124_0x2951();}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':a124_0x530354(0x103),'detail':a124_0x530354(0x136),'create':a124_0x530354(0x10b),'update':a124_0x530354(0x126),'publish':'/smartapi/flow/publish'};function a124_0x406c(_0x38a9b3,_0x13b510){_0x38a9b3=_0x38a9b3-0x100;const _0x2951f3=a124_0x2951();let _0x406c48=_0x2951f3[_0x38a9b3];return _0x406c48;}export const FLOW_ID_FLAG={'name':'id','type':a124_0x530354(0x125),'required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};export const FLOW_FILE_FLAG={'name':a124_0x530354(0x111),'type':a124_0x530354(0x11d),'required':!![],'description':a124_0x530354(0x124)};export function flowDefinitionToConfig(_0x46b6ff){const _0x3ff48f=a124_0x530354;if(typeof _0x46b6ff['flowName']!==_0x3ff48f(0x11d)||_0x46b6ff['flowName'][_0x3ff48f(0x134)]()==='')throw CliErrors[_0x3ff48f(0x12e)](_0x3ff48f(0x12f),_0x3ff48f(0x135));if(typeof _0x46b6ff['flowJson']!=='object'||_0x46b6ff[_0x3ff48f(0x102)]===null||Array['isArray'](_0x46b6ff[_0x3ff48f(0x102)]))throw CliErrors[_0x3ff48f(0x12e)](_0x3ff48f(0x12f),_0x3ff48f(0x107));if(_0x46b6ff[_0x3ff48f(0x105)]!=='FORM_FLOW'&&_0x46b6ff[_0x3ff48f(0x105)]!==_0x3ff48f(0x10a))throw CliErrors[_0x3ff48f(0x12e)](_0x3ff48f(0x12f),_0x3ff48f(0x115));const _0x5e339b={'flowName':_0x46b6ff[_0x3ff48f(0x110)],...typeof _0x46b6ff[_0x3ff48f(0x12d)]==='string'?{'flowDesc':_0x46b6ff[_0x3ff48f(0x12d)]}:{},'flowType':_0x46b6ff[_0x3ff48f(0x105)],...typeof _0x46b6ff[_0x3ff48f(0x101)]==='string'&&_0x46b6ff['datasetCode'][_0x3ff48f(0x134)]()?{'datasetCode':_0x46b6ff['datasetCode']}:{},...typeof _0x46b6ff['pageId']===_0x3ff48f(0x125)?{'pageId':_0x46b6ff[_0x3ff48f(0x11f)]}:{},'flowJson':_0x46b6ff['flowJson']},_0x1029dc=validateFlowConfig(_0x5e339b);if(!_0x1029dc['valid']){const _0x56cf1a=_0x1029dc['errors'][_0x3ff48f(0x130)](_0x312adb=>_0x312adb[_0x3ff48f(0x12b)]+':\x20'+_0x312adb[_0x3ff48f(0x129)])[_0x3ff48f(0x11a)](';\x20');throw CliErrors[_0x3ff48f(0x132)](_0x3ff48f(0x122),_0x56cf1a);}return{'config':_0x1029dc['normalized'],'warnings':_0x1029dc['warnings'],'removedPaths':_0x1029dc['warnings'][_0x3ff48f(0x130)](_0x4f90aa=>_0x4f90aa['path'])};}export function readFlowId(_0xfd114b){const _0x1bd38c=a124_0x530354,_0x9eb8c0=_0xfd114b[_0x1bd38c(0x104)]('id');if(!Number['isSafeInteger'](_0x9eb8c0)||_0x9eb8c0<=0x0)throw CliErrors[_0x1bd38c(0x132)](_0x1bd38c(0x114));return _0x9eb8c0;}export function readFlowFilePath(_0x259c91){const _0x740eee=a124_0x530354,_0x26691c=_0x259c91['str'](_0x740eee(0x111))[_0x740eee(0x134)]();if(!_0x26691c)throw CliErrors[_0x740eee(0x10d)]('file',_0x740eee(0x11c));return _0x26691c;}export async function prepareFlowWrite(_0x478c70,_0x97c73c,_0x5a7abe){const _0x41ad1e=a124_0x530354;let _0x1b91e6;try{_0x1b91e6=await readFlowConfigFile(_0x478c70);}catch(_0x4dd9ca){const _0x29f84f=_0x4dd9ca instanceof Error?_0x4dd9ca[_0x41ad1e(0x129)]:String(_0x4dd9ca);throw CliErrors[_0x41ad1e(0x132)](_0x41ad1e(0x10c)+_0x29f84f,'File:\x20'+_0x478c70);}const _0x459a1b=validateFlowConfig(_0x1b91e6);if(!_0x459a1b['valid']){const _0x4d59e5=_0x459a1b['errors'][_0x41ad1e(0x130)](_0x4587a1=>_0x4587a1['path']+':\x20'+_0x4587a1[_0x41ad1e(0x129)])[_0x41ad1e(0x11a)](';\x20');throw CliErrors[_0x41ad1e(0x132)](_0x41ad1e(0x133)+_0x478c70+'.',_0x4d59e5||_0x41ad1e(0x108));}const _0x258e02=_0x459a1b[_0x41ad1e(0x127)],_0x276d85={..._0x5a7abe!==undefined?{'id':_0x5a7abe}:{},'flowName':_0x258e02['flowName'],..._0x258e02[_0x41ad1e(0x12d)]!==undefined?{'flowDesc':_0x258e02['flowDesc']}:{},'flowType':_0x258e02[_0x41ad1e(0x105)],'appCode':_0x97c73c,..._0x258e02[_0x41ad1e(0x101)]!==undefined?{'datasetCode':_0x258e02[_0x41ad1e(0x101)]}:{},..._0x258e02[_0x41ad1e(0x11f)]!==undefined?{'pageId':_0x258e02[_0x41ad1e(0x11f)]}:{},'flowJson':_0x258e02[_0x41ad1e(0x102)]};return{'request':_0x276d85,'warnings':_0x459a1b[_0x41ad1e(0x116)]};}export async function confirmFlowWrite(_0x102915,_0x1d842d,_0x27c4a6){const _0x547da8=a124_0x530354;if(_0x102915['nonInteractive']||_0x102915[_0x547da8(0x12c)]('yes'))return;await requireConfirmationPrompt({'lines':[_0x547da8(0x119)+_0x1d842d+':',_0x547da8(0x131)+_0x102915[_0x547da8(0x138)],..._0x27c4a6['id']!==undefined?[_0x547da8(0x137)+_0x27c4a6['id']]:[],_0x547da8(0x118)+_0x27c4a6['flowName'],'\x20\x20flowType:\x20'+_0x27c4a6[_0x547da8(0x105)],..._0x27c4a6[_0x547da8(0x101)]?[_0x547da8(0x11b)+_0x27c4a6[_0x547da8(0x101)]]:[],'Continue?\x20[y/N]\x20'],'createCancelledError':_0x48c4dc=>CliErrors[_0x547da8(0x128)](_0x48c4dc)});}export function flowSelector(_0x5a4f5e,_0x5c12f8,_0x19f329){const _0x5b3411=a124_0x530354;return{'appCode':_0x5a4f5e,..._0x5c12f8!==undefined?{'flowId':_0x5c12f8}:{},..._0x19f329?.[_0x5b3411(0x113)]?{'flowCode':_0x19f329[_0x5b3411(0x113)]}:{},..._0x19f329?.[_0x5b3411(0x110)]?{'flowName':_0x19f329[_0x5b3411(0x110)]}:{}};}export function buildFlowIdDryRun(_0x1cd309,_0x50ad17,_0x2b1cf3,_0x1f6c06,_0x33557e){const _0x26264b=a124_0x530354,_0x3bafb4={'id':_0x1f6c06,'appCode':_0x2b1cf3};return asDryRunResult({'operation':_0x1cd309,'selector':flowSelector(_0x2b1cf3,_0x1f6c06),'before':null,'after':_0x33557e,'request':_0x3bafb4,'dryRun':!![],'backend':{'method':_0x26264b(0x12a),'path':_0x50ad17},'warnings':[]},{'method':'POST','url':_0x50ad17});}
@@ -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
+ const a125_0x5d0c4e=a125_0x221d;function a125_0x34e1(){const _0x5e166a=['Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','100juooet','POST','flowCode','flowName','update','11003030YpWZOe','383898NLzvBp','37246atSgPY','4476xPnldt','appCode','42455MINHVt','3944amPxXz','write','102qxYlZw','1081998kJkyzk','flow','20871FTHfnn','6sFSRbL','Updated\x20flow\x20','541639ySfXxE'];a125_0x34e1=function(){return _0x5e166a;};return a125_0x34e1();}(function(_0x48b908,_0x29581b){const _0x4e623d=a125_0x221d,_0x763ca5=_0x48b908();while(!![]){try{const _0x197e7a=-parseInt(_0x4e623d(0x151))/0x1+parseInt(_0x4e623d(0x159))/0x2*(parseInt(_0x4e623d(0x15c))/0x3)+parseInt(_0x4e623d(0x160))/0x4*(-parseInt(_0x4e623d(0x155))/0x5)+parseInt(_0x4e623d(0x158))/0x6*(parseInt(_0x4e623d(0x15e))/0x7)+-parseInt(_0x4e623d(0x156))/0x8*(parseInt(_0x4e623d(0x15b))/0x9)+-parseInt(_0x4e623d(0x165))/0xa+parseInt(_0x4e623d(0x152))/0xb*(parseInt(_0x4e623d(0x153))/0xc);if(_0x197e7a===_0x29581b)break;else _0x763ca5['push'](_0x763ca5['shift']());}catch(_0xec9741){_0x763ca5['push'](_0x763ca5['shift']());}}}(a125_0x34e1,0xc85a2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{updateFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId}from'../../commands/flow/shared.js';function a125_0x221d(_0xa3541c,_0x160de5){_0xa3541c=_0xa3541c-0x151;const _0x34e1ae=a125_0x34e1();let _0x221d85=_0x34e1ae[_0xa3541c];return _0x221d85;}export const flowUpdate={'service':a125_0x5d0c4e(0x15a),'command':a125_0x5d0c4e(0x164),'description':a125_0x5d0c4e(0x15f),'risk':a125_0x5d0c4e(0x157),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x405e00){readFlowId(_0x405e00),readFlowFilePath(_0x405e00);},async 'dryRun'(_0x4ce68b){const _0x491b85=a125_0x5d0c4e,_0x518755=readFlowId(_0x4ce68b),{request:_0x31494e,warnings:_0x2b2e6c}=await prepareFlowWrite(readFlowFilePath(_0x4ce68b),_0x4ce68b[_0x491b85(0x154)],_0x518755);return asDryRunResult({'operation':_0x491b85(0x164),'selector':flowSelector(_0x4ce68b[_0x491b85(0x154)],_0x518755),'before':null,'after':_0x31494e,'request':_0x31494e,'dryRun':!![],'backend':{'method':_0x491b85(0x161),'path':FLOW_PATHS['update']},'warnings':_0x2b2e6c},{'method':_0x491b85(0x161),'url':FLOW_PATHS[_0x491b85(0x164)]});},async 'execute'(_0x2f376c){const _0x4a5b6e=a125_0x5d0c4e,_0xba9d47=readFlowId(_0x2f376c),{request:_0x1c389f,warnings:_0x3abdbf}=await prepareFlowWrite(readFlowFilePath(_0x2f376c),_0x2f376c[_0x4a5b6e(0x154)],_0xba9d47);await confirmFlowWrite(_0x2f376c,'update',_0x1c389f);const _0x160a9a=await updateFlowDefinition({..._0x1c389f,'id':_0xba9d47});return{'ok':!![],'data':{'operation':_0x4a5b6e(0x164),'selector':flowSelector(_0x2f376c[_0x4a5b6e(0x154)],_0xba9d47,_0x160a9a),'before':null,'after':_0x160a9a,'dryRun':![],'backend':{'method':_0x4a5b6e(0x161),'path':FLOW_PATHS['update']},'warnings':_0x3abdbf},'message':_0x4a5b6e(0x15d)+(_0x160a9a[_0x4a5b6e(0x163)]||_0x160a9a[_0x4a5b6e(0x162)]||_0xba9d47)};}};
@@ -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
+ const a126_0x2864c6=a126_0x3951;(function(_0x3efb43,_0x33d249){const _0x2e10ad=a126_0x3951,_0x4eab63=_0x3efb43();while(!![]){try{const _0x3bc49b=-parseInt(_0x2e10ad(0x14e))/0x1*(parseInt(_0x2e10ad(0x160))/0x2)+-parseInt(_0x2e10ad(0x164))/0x3+parseInt(_0x2e10ad(0x156))/0x4*(-parseInt(_0x2e10ad(0x15f))/0x5)+-parseInt(_0x2e10ad(0x15a))/0x6+-parseInt(_0x2e10ad(0x14b))/0x7*(-parseInt(_0x2e10ad(0x14a))/0x8)+-parseInt(_0x2e10ad(0x158))/0x9*(-parseInt(_0x2e10ad(0x157))/0xa)+parseInt(_0x2e10ad(0x166))/0xb;if(_0x3bc49b===_0x33d249)break;else _0x4eab63['push'](_0x4eab63['shift']());}catch(_0x2e0747){_0x4eab63['push'](_0x4eab63['shift']());}}}(a126_0x15b0,0x6489a));import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';function a126_0x15b0(){const _0x460b39=['file','12165461IqGGzz','904BYrsoX','31325WOJnDz','str','flow','304907uUQQbP','errors','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','message','validation','trim','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','normalized','20hnIJni','2262110qKEuKt','18EBfBkf','valid','506424IyhXjc','FlowConfig\x20is\x20valid.','Pass\x20--file\x20<path>.','flagMissing','write-normalized','374245BswnMf','4DqHLYk','validate','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','read','1751349qLkqsT'];a126_0x15b0=function(){return _0x460b39;};return a126_0x15b0();}function a126_0x3951(_0x5cb123,_0x47ade4){_0x5cb123=_0x5cb123-0x14a;const _0x15b020=a126_0x15b0();let _0x3951f1=_0x15b020[_0x5cb123];return _0x3951f1;}export const flowValidate={'service':a126_0x2864c6(0x14d),'command':a126_0x2864c6(0x161),'description':a126_0x2864c6(0x150),'risk':a126_0x2864c6(0x163),'auth':'none','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a126_0x2864c6(0x165),'type':'string','required':!![],'description':a126_0x2864c6(0x154)},{'name':a126_0x2864c6(0x15e),'type':'boolean','description':a126_0x2864c6(0x162)}],async 'execute'(_0x5a7717){const _0x3743f0=a126_0x2864c6,_0x5d8c96=_0x5a7717[_0x3743f0(0x14c)](_0x3743f0(0x165))[_0x3743f0(0x153)]();if(!_0x5d8c96)throw CliErrors[_0x3743f0(0x15d)](_0x3743f0(0x165),_0x3743f0(0x15c));let _0x3355d2;try{_0x3355d2=await readFlowConfigFile(_0x5d8c96);}catch(_0x5f3724){const _0x5ad5ef=_0x5f3724 instanceof Error?_0x5f3724[_0x3743f0(0x151)]:String(_0x5f3724);throw CliErrors[_0x3743f0(0x152)]('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x5ad5ef);}const _0x4c22f5=validateFlowConfig(_0x3355d2),_0x424eac=_0x5a7717['bool']('write-normalized');let _0x1fc520=![];return _0x424eac&&_0x4c22f5[_0x3743f0(0x159)]&&(await writeNormalizedFlowConfig(_0x5d8c96,_0x4c22f5[_0x3743f0(0x155)]),_0x1fc520=!![]),{'ok':_0x4c22f5[_0x3743f0(0x159)],'data':{'valid':_0x4c22f5[_0x3743f0(0x159)],'errors':_0x4c22f5[_0x3743f0(0x14f)],'warnings':_0x4c22f5['warnings'],'normalized':_0x4c22f5[_0x3743f0(0x155)],..._0x424eac?{'written':_0x1fc520}:{}},'message':_0x4c22f5[_0x3743f0(0x159)]?_0x1fc520?'FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.':_0x3743f0(0x15b):'FlowConfig\x20validation\x20failed.'};}};
@@ -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
+ function a127_0x1c94(_0x2a9397,_0x2997c7){_0x2a9397=_0x2a9397-0x12c;const _0x110dbd=a127_0x110d();let _0x1c94dd=_0x110dbd[_0x2a9397];return _0x1c94dd;}const a127_0x49db4d=a127_0x1c94;(function(_0x3c5233,_0x4cf292){const _0x369dd3=a127_0x1c94,_0xc15f76=_0x3c5233();while(!![]){try{const _0x233e91=parseInt(_0x369dd3(0x135))/0x1+-parseInt(_0x369dd3(0x131))/0x2+parseInt(_0x369dd3(0x13d))/0x3+parseInt(_0x369dd3(0x12f))/0x4*(parseInt(_0x369dd3(0x13c))/0x5)+parseInt(_0x369dd3(0x138))/0x6*(parseInt(_0x369dd3(0x12e))/0x7)+parseInt(_0x369dd3(0x12d))/0x8*(parseInt(_0x369dd3(0x13a))/0x9)+-parseInt(_0x369dd3(0x130))/0xa*(parseInt(_0x369dd3(0x136))/0xb);if(_0x233e91===_0x4cf292)break;else _0xc15f76['push'](_0xc15f76['shift']());}catch(_0x599317){_0xc15f76['push'](_0xc15f76['shift']());}}}(a127_0x110d,0x5700e));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';function a127_0x110d(){const _0x14a54c=['30cZGGzI','673104LqgkvX','read','Current\x20Instant\x20API\x20policy\x20revision\x20','current','306537oLJvSS','1354188YoWgaI','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','269538bkRDyS','appCode','12807DcRRlO','policyFilePath','142735hqZSFy','127560SVPnbu','revision','policyRelativePath','1576tkEFjm','63wFQeHh','4nRILYF'];a127_0x110d=function(){return _0x14a54c;};return a127_0x110d();}export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a127_0x49db4d(0x134),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a127_0x49db4d(0x132),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x36791e){const _0x482518=a127_0x49db4d,_0x31128f=loadInstantApiPolicyLocalConfig(_0x36791e[_0x482518(0x139)]),_0x4c4c57=await getCurrentInstantApiPolicy(_0x36791e[_0x482518(0x139)]);return{'ok':!![],'data':{'appCode':_0x36791e[_0x482518(0x139)],'configured':_0x4c4c57!==null,'filePath':_0x31128f[_0x482518(0x13b)],'relativePath':_0x31128f[_0x482518(0x12c)],'policy':projectCurrentPolicy(_0x4c4c57)},'message':_0x4c4c57?_0x482518(0x133)+_0x4c4c57[_0x482518(0x13e)]:_0x482518(0x137)+_0x36791e['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(_0xa787c7,_0x4f47a8){const _0x387c8c=a128_0x45c1,_0x29b497=_0xa787c7();while(!![]){try{const _0x513121=-parseInt(_0x387c8c(0x10e))/0x1*(-parseInt(_0x387c8c(0x116))/0x2)+parseInt(_0x387c8c(0x115))/0x3*(parseInt(_0x387c8c(0x117))/0x4)+parseInt(_0x387c8c(0x114))/0x5*(-parseInt(_0x387c8c(0x113))/0x6)+parseInt(_0x387c8c(0x10d))/0x7*(parseInt(_0x387c8c(0x111))/0x8)+parseInt(_0x387c8c(0x110))/0x9*(-parseInt(_0x387c8c(0x118))/0xa)+-parseInt(_0x387c8c(0x112))/0xb+parseInt(_0x387c8c(0x10f))/0xc;if(_0x513121===_0x4f47a8)break;else _0x29b497['push'](_0x29b497['shift']());}catch(_0x5364df){_0x29b497['push'](_0x29b497['shift']());}}}(a128_0x44cf,0x405a7));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';function a128_0x45c1(_0x234d35,_0x39ef71){_0x234d35=_0x234d35-0x10d;const _0x44cf4c=a128_0x44cf();let _0x45c1dd=_0x44cf4c[_0x234d35];return _0x45c1dd;}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];function a128_0x44cf(){const _0x2231b7=['112651rrNCWq','2952dnsUhn','2825afEdMK','1005FIKbdS','5774jASwPx','2848aXjhqN','2740lNrnzQ','158669vVCJTG','22rcqOdI','4629084qoqUsT','5211QsXzyU','8HBYTnO'];a128_0x44cf=function(){return _0x2231b7;};return a128_0x44cf();}
@@ -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_0x2a0239=a129_0x16e0;(function(_0x43461b,_0x3a696a){const _0xeb5843=a129_0x16e0,_0x218b00=_0x43461b();while(!![]){try{const _0x19cac7=-parseInt(_0xeb5843(0x1e9))/0x1*(parseInt(_0xeb5843(0x1e5))/0x2)+-parseInt(_0xeb5843(0x1d8))/0x3+-parseInt(_0xeb5843(0x1e1))/0x4+parseInt(_0xeb5843(0x1e2))/0x5+parseInt(_0xeb5843(0x1db))/0x6*(parseInt(_0xeb5843(0x1d6))/0x7)+-parseInt(_0xeb5843(0x1e7))/0x8*(-parseInt(_0xeb5843(0x1d5))/0x9)+parseInt(_0xeb5843(0x1d4))/0xa*(parseInt(_0xeb5843(0x1df))/0xb);if(_0x19cac7===_0x3a696a)break;else _0x218b00['push'](_0x218b00['shift']());}catch(_0x16e7d9){_0x218b00['push'](_0x218b00['shift']());}}}(a129_0x76df,0x72d2b));function a129_0x76df(){const _0x19742e=['998552glZdBb','init','4567EVpFBu','default-action','bool','str','policyRelativePath','8037830yxtNJv','63PElkkn','7AnRzLj','appCode','1623564KDRKrd','string','Created','349386KcUtvO','Kept','policyFilePath','action','11GbBUTA','deny','2758300lBtZOY','3640100dRAgTm','allow','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','334WAUPlP','Replaced'];a129_0x76df=function(){return _0x19742e;};return a129_0x76df();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a129_0x16e0(_0xc5b676,_0x3eabdf){_0xc5b676=_0xc5b676-0x1d3;const _0x76dfbb=a129_0x76df();let _0x16e066=_0x76dfbb[_0xc5b676];return _0x16e066;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':'instant-api-policy','command':a129_0x2a0239(0x1e8),'description':a129_0x2a0239(0x1e4),'risk':'write','requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a129_0x2a0239(0x1ea),'type':a129_0x2a0239(0x1d9),'enum':[a129_0x2a0239(0x1e3),'deny'],'default':'allow','description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x2729d6){requireForceConfirmation(_0x2729d6);},async 'execute'(_0x297629){const _0x1452fc=a129_0x2a0239;requireForceConfirmation(_0x297629);const _0x9a5c0f=_0x297629[_0x1452fc(0x1ec)]('default-action')===_0x1452fc(0x1e0)?_0x1452fc(0x1e0):_0x1452fc(0x1e3),_0x1c33d8=loadInstantApiPolicyLocalConfig(_0x297629[_0x1452fc(0x1d7)]),_0xa6791f=createDefaultInstantApiPolicyConfig(_0x297629['appCode'],_0x9a5c0f),_0x24f851=await writeInstantApiPolicyConfigFile(_0x1c33d8,_0xa6791f,{'force':_0x297629[_0x1452fc(0x1eb)]('force')}),_0x3c8bb8={'created':_0x1452fc(0x1da),'overwritten':_0x1452fc(0x1e6),'unchanged':_0x1452fc(0x1dc)}[_0x24f851[_0x1452fc(0x1de)]];return{'ok':!![],'data':{'operation':_0x1452fc(0x1e8),'selector':{'appCode':_0x297629[_0x1452fc(0x1d7)]},'filePath':_0x1c33d8[_0x1452fc(0x1dd)],'relativePath':_0x1c33d8[_0x1452fc(0x1d3)],'action':_0x24f851[_0x1452fc(0x1de)],'config':_0xa6791f},'message':_0x3c8bb8+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x297629[_0x1452fc(0x1d7)]};}};
@@ -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
+ const a130_0x3c954e=a130_0x12c4;function a130_0x12c4(_0x23035b,_0x5e1df1){_0x23035b=_0x23035b-0x190;const _0x50103a=a130_0x5010();let _0x12c40e=_0x50103a[_0x23035b];return _0x12c40e;}(function(_0x492f94,_0x4bc2a6){const _0x596cb6=a130_0x12c4,_0x546519=_0x492f94();while(!![]){try{const _0x50333c=-parseInt(_0x596cb6(0x1a0))/0x1*(parseInt(_0x596cb6(0x19a))/0x2)+parseInt(_0x596cb6(0x19b))/0x3*(parseInt(_0x596cb6(0x1a4))/0x4)+parseInt(_0x596cb6(0x1ab))/0x5*(-parseInt(_0x596cb6(0x1b3))/0x6)+parseInt(_0x596cb6(0x1b2))/0x7+-parseInt(_0x596cb6(0x1b5))/0x8*(-parseInt(_0x596cb6(0x1a6))/0x9)+parseInt(_0x596cb6(0x192))/0xa*(-parseInt(_0x596cb6(0x1ae))/0xb)+parseInt(_0x596cb6(0x1b0))/0xc;if(_0x50333c===_0x4bc2a6)break;else _0x546519['push'](_0x546519['shift']());}catch(_0x5e230e){_0x546519['push'](_0x546519['shift']());}}}(a130_0x5010,0xa5de7));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a130_0x5010(){const _0x490d6e=['before','planned','push','1580hblOJy','instant-api-policy','Inspect\x20with\x20`','5577MyCeCK','all','7940148rFwwpg','instant_api_policy_publish_outcome_unknown','2894647NzxrLg','10398EBOMnu','publish','40zDtAdc','changeSummary','Published\x20Instant\x20API\x20policy\x20revision\x20','expectedRevision','/publish','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','defineProperty','9710yIPwTb','cause','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','policyFilePath','instant_api_policy_publish_verification_unavailable','verified','validation','configHash','392652XZstqV','91983eReLVO','`;\x20do\x20not\x20resubmit\x20automatically.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','local','revision','2bpUtdE','instant_api_policy_publish_verification_failed','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','policyRelativePath','4gIvonh','POST','1811007NQZkCz','appCode'];a130_0x5010=function(){return _0x490d6e;};return a130_0x5010();}async function preparePublish(_0x380980){const _0x2b98ab=a130_0x12c4,{local:_0x45735b,config:_0x374ef2}=await readFixedPolicy(_0x380980),_0x4b72d2=readChangeSummary(_0x380980),_0x2a995e=readExpectedRevision(_0x380980),[_0x903064,_0x2272a7]=await Promise[_0x2b98ab(0x1af)]([getCurrentInstantApiPolicy(_0x380980['appCode']),validateInstantApiPolicy({'appCode':_0x380980[_0x2b98ab(0x1a7)],'config':_0x374ef2})]);return assertExpectedRevision(_0x903064,_0x2a995e),{'local':_0x45735b,'config':_0x374ef2,'changeSummary':_0x4b72d2,'expectedRevision':_0x2a995e,'before':_0x903064,'validation':_0x2272a7};}export const instantApiPolicyPublish={'service':a130_0x3c954e(0x1ac),'command':a130_0x3c954e(0x1b4),'description':a130_0x3c954e(0x190),'risk':'high-risk-write','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'(_0x272df0){readChangeSummary(_0x272df0),readExpectedRevision(_0x272df0);},async 'dryRun'(_0x5ed628){const _0x49a2c7=a130_0x3c954e,_0x2ec216=await preparePublish(_0x5ed628);return asDryRunResult({'operation':_0x49a2c7(0x1b4),'selector':{'appCode':_0x5ed628[_0x49a2c7(0x1a7)]},'before':projectCurrentPolicy(_0x2ec216[_0x49a2c7(0x1a8)]),'after':{'revision':_0x2ec216[_0x49a2c7(0x1a8)]?_0x2ec216[_0x49a2c7(0x1a8)][_0x49a2c7(0x19f)]+0x1:0x1,'configHash':_0x2ec216[_0x49a2c7(0x198)][_0x49a2c7(0x199)],'config':_0x2ec216[_0x49a2c7(0x198)]['normalizedConfig']},'filePath':_0x2ec216[_0x49a2c7(0x19e)]['policyFilePath'],'relativePath':_0x2ec216['local'][_0x49a2c7(0x1a3)],'dryRun':!![],'backend':{'method':_0x49a2c7(0x1a5),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x2ec216[_0x49a2c7(0x1b8)]),'verification':{'status':_0x49a2c7(0x1a9),'expectedRevision':_0x2ec216[_0x49a2c7(0x1b8)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x49a2c7(0x1a5),'url':INSTANT_API_POLICY_BASE_PATH+_0x49a2c7(0x1b9)});},async 'execute'(_0x55855f){const _0x2028a4=a130_0x3c954e,_0x55d933=await preparePublish(_0x55855f);let _0x5df217=![];try{await publishInstantApiPolicy({'appCode':_0x55855f['appCode'],'config':_0x55d933['config'],..._0x55d933['changeSummary']?{'changeSummary':_0x55d933[_0x2028a4(0x1b6)]}:{}});}catch(_0x225a30){if(!isPlatformTransportFailure(_0x225a30))throw _0x225a30;_0x5df217=!![];}let _0x5ee6e0;try{_0x5ee6e0=await getCurrentInstantApiPolicy(_0x55855f[_0x2028a4(0x1a7)]);}catch(_0x2997a1){const _0x3a3d38=instantApiPolicyError(_0x5df217?_0x2028a4(0x1b1):_0x2028a4(0x196),_0x2028a4(0x1a2),_0x2028a4(0x1ad)+mutationLookupCommand()+_0x2028a4(0x19c));Object[_0x2028a4(0x191)](_0x3a3d38,_0x2028a4(0x193),{'value':_0x2997a1,'enumerable':![]});throw _0x3a3d38;}const _0x3c3a47=_0x5ee6e0&&(_0x55d933[_0x2028a4(0x1a8)]===null||_0x5ee6e0[_0x2028a4(0x19f)]>_0x55d933[_0x2028a4(0x1a8)]['revision']),_0x539eae=_0x5ee6e0?.[_0x2028a4(0x199)]===_0x55d933['validation']['configHash'];if(!_0x5ee6e0||!_0x3c3a47||!_0x539eae)throw instantApiPolicyError(_0x5df217?'instant_api_policy_publish_outcome_unknown':_0x2028a4(0x1a1),_0x2028a4(0x19d),_0x2028a4(0x1ad)+mutationLookupCommand()+_0x2028a4(0x19c));const _0xe7931a=[...expectedRevisionWarnings(_0x55d933['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x5df217&&_0xe7931a[_0x2028a4(0x1aa)](_0x2028a4(0x194)),{'ok':!![],'data':{'operation':_0x2028a4(0x1b4),'selector':{'appCode':_0x55855f[_0x2028a4(0x1a7)]},'before':projectCurrentPolicy(_0x55d933[_0x2028a4(0x1a8)]),'after':projectCurrentPolicy(_0x5ee6e0),'filePath':_0x55d933[_0x2028a4(0x19e)][_0x2028a4(0x195)],'relativePath':_0x55d933[_0x2028a4(0x19e)][_0x2028a4(0x1a3)],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x2028a4(0x1b9)},'warnings':_0xe7931a,'verification':{'status':_0x2028a4(0x197),'recoveredAfterUnknownResponse':_0x5df217,'expectedRevision':_0x55d933['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x2028a4(0x1b7)+_0x5ee6e0[_0x2028a4(0x19f)]};}};
@@ -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
+ function a131_0x1b7b(){const _0x7cb786=['revision','unchanged','23239908bRimpl','policyRelativePath','instant-api-policy','appCode','force','2425WBjtJS','441YyANhf','\x20Instant\x20API\x20policy\x20revision\x20','102099wyjQhH','1620TXznZc','1073767stiJEI','config','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','action','policyFilePath','87816OGXDWw','5401084AMeSlv','141652YxrsMZ','instant_api_policy_not_configured','write'];a131_0x1b7b=function(){return _0x7cb786;};return a131_0x1b7b();}function a131_0x5c6e(_0x498493,_0x5c50db){_0x498493=_0x498493-0x15c;const _0x1b7b28=a131_0x1b7b();let _0x5c6eb9=_0x1b7b28[_0x498493];return _0x5c6eb9;}const a131_0x5f5418=a131_0x5c6e;(function(_0x43dc5b,_0x2dafb0){const _0x420b40=a131_0x5c6e,_0x39acd5=_0x43dc5b();while(!![]){try{const _0x391d59=-parseInt(_0x420b40(0x169))/0x1+parseInt(_0x420b40(0x170))/0x2+-parseInt(_0x420b40(0x167))/0x3+-parseInt(_0x420b40(0x16f))/0x4+parseInt(_0x420b40(0x164))/0x5*(-parseInt(_0x420b40(0x168))/0x6)+-parseInt(_0x420b40(0x165))/0x7*(-parseInt(_0x420b40(0x16e))/0x8)+parseInt(_0x420b40(0x15f))/0x9;if(_0x391d59===_0x2dafb0)break;else _0x39acd5['push'](_0x39acd5['shift']());}catch(_0x3ecedb){_0x39acd5['push'](_0x39acd5['shift']());}}}(a131_0x1b7b,0xb8770));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';export const instantApiPolicyPull={'service':a131_0x5f5418(0x161),'command':'pull','description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a131_0x5f5418(0x15c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x3f066c){requireForceConfirmation(_0x3f066c);},async 'execute'(_0x575a09){const _0x20dcdc=a131_0x5f5418;requireForceConfirmation(_0x575a09);const _0x5a8a3e=await getCurrentInstantApiPolicy(_0x575a09[_0x20dcdc(0x162)]);if(!_0x5a8a3e)throw instantApiPolicyError(_0x20dcdc(0x171),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x575a09[_0x20dcdc(0x162)]+'.',_0x20dcdc(0x16b));const _0x520b58=loadInstantApiPolicyLocalConfig(_0x575a09[_0x20dcdc(0x162)]),_0x47cfff=await writeInstantApiPolicyConfigFile(_0x520b58,_0x5a8a3e[_0x20dcdc(0x16a)],{'force':_0x575a09['bool'](_0x20dcdc(0x163))});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x575a09['appCode'],'revision':_0x5a8a3e[_0x20dcdc(0x15d)]},'filePath':_0x520b58[_0x20dcdc(0x16d)],'relativePath':_0x520b58[_0x20dcdc(0x160)],'action':_0x47cfff[_0x20dcdc(0x16c)],'configHash':_0x5a8a3e['configHash']},'message':(_0x47cfff['action']===_0x20dcdc(0x15e)?'Kept':'Pulled')+_0x20dcdc(0x166)+_0x5a8a3e['revision']};}};
@@ -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_0x191f24=a132_0x529a;function a132_0x529a(_0x3cf60b,_0x4e1367){_0x3cf60b=_0x3cf60b-0x6b;const _0xa1dcd7=a132_0xa1dc();let _0x529aeb=_0xa1dcd7[_0x3cf60b];return _0x529aeb;}(function(_0x5ed3bc,_0x17e49b){const _0x19f9cd=a132_0x529a,_0x4a0c4a=_0x5ed3bc();while(!![]){try{const _0x3b08bc=parseInt(_0x19f9cd(0x74))/0x1+parseInt(_0x19f9cd(0x71))/0x2*(parseInt(_0x19f9cd(0x6f))/0x3)+-parseInt(_0x19f9cd(0x72))/0x4+-parseInt(_0x19f9cd(0x6c))/0x5*(parseInt(_0x19f9cd(0x6e))/0x6)+parseInt(_0x19f9cd(0x73))/0x7+parseInt(_0x19f9cd(0x6d))/0x8*(parseInt(_0x19f9cd(0x70))/0x9)+-parseInt(_0x19f9cd(0x6b))/0xa;if(_0x3b08bc===_0x17e49b)break;else _0x4a0c4a['push'](_0x4a0c4a['shift']());}catch(_0x45639c){_0x4a0c4a['push'](_0x4a0c4a['shift']());}}}(a132_0xa1dc,0x3a173));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a132_0xa1dc(){const _0x31d461=['2152350bbdmzp','10kDSWir','555488XdzMuz','238146vrwVMe','33AbwwZu','18OUbCkT','68258fXvgZa','416440IIYaRH','557144xnrkBk','42783BWIIDR','revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20'];a132_0xa1dc=function(){return _0x31d461;};return a132_0xa1dc();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':a132_0x191f24(0x75),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x273c72){readRevision(_0x273c72);},async 'execute'(_0x1e3a29){const _0x4044b7=a132_0x191f24,_0x4de748=readRevision(_0x1e3a29),_0x426c18=await getInstantApiPolicyRevision(_0x1e3a29['appCode'],_0x4de748);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x426c18)},'message':_0x4044b7(0x76)+_0x4de748};}};
@@ -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_0x1ceb85=a133_0x3d27;(function(_0x5a24e1,_0x50021e){const _0x12d529=a133_0x3d27,_0x586bea=_0x5a24e1();while(!![]){try{const _0x5e9b19=-parseInt(_0x12d529(0x1c0))/0x1*(parseInt(_0x12d529(0x1be))/0x2)+parseInt(_0x12d529(0x1bc))/0x3+-parseInt(_0x12d529(0x1c9))/0x4*(-parseInt(_0x12d529(0x1c4))/0x5)+parseInt(_0x12d529(0x1bf))/0x6*(parseInt(_0x12d529(0x1c6))/0x7)+parseInt(_0x12d529(0x1c3))/0x8+parseInt(_0x12d529(0x1cd))/0x9*(-parseInt(_0x12d529(0x1c2))/0xa)+-parseInt(_0x12d529(0x1cb))/0xb*(-parseInt(_0x12d529(0x1cc))/0xc);if(_0x5e9b19===_0x50021e)break;else _0x586bea['push'](_0x586bea['shift']());}catch(_0xd6460f){_0x586bea['push'](_0x586bea['shift']());}}}(a133_0x2e2b,0x298f7));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a133_0x2e2b(){const _0x3cccad=['471012iNUbiu','map','51446FBtpBj','3732hUQGgm','1WEWoHh','length','28790mkONUA','360024QYxPFc','15UiynLF','appCode','1673eMhMdB','instant-api-policy','\x20Instant\x20API\x20policy\x20revision(s)','37160ilyukU','read','110RkPRXu','157476mprMGw','981tqKnki','Found\x20'];a133_0x2e2b=function(){return _0x3cccad;};return a133_0x2e2b();}function a133_0x3d27(_0x170625,_0x58f257){_0x170625=_0x170625-0x1bb;const _0x2e2b64=a133_0x2e2b();let _0x3d2713=_0x2e2b64[_0x170625];return _0x3d2713;}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a133_0x1ceb85(0x1c7),'command':'revisions','description':'List\x20immutable\x20Instant\x20API\x20policy\x20revisions','risk':a133_0x1ceb85(0x1ca),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5a3aa0){const _0x5275c2=a133_0x1ceb85,_0x1f071b=await listInstantApiPolicyRevisions(_0x5a3aa0[_0x5275c2(0x1c5)]);return{'ok':!![],'data':{'appCode':_0x5a3aa0[_0x5275c2(0x1c5)],'total':_0x1f071b[_0x5275c2(0x1c1)],'revisions':_0x1f071b[_0x5275c2(0x1bd)](projectRevisionSummary)},'message':_0x5275c2(0x1bb)+_0x1f071b[_0x5275c2(0x1c1)]+_0x5275c2(0x1c8)};}};
@@ -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
+ const a134_0x3587a8=a134_0x481a;(function(_0x5f09e9,_0x46309f){const _0x5ad0fe=a134_0x481a,_0x5488c8=_0x5f09e9();while(!![]){try{const _0x33c1d7=parseInt(_0x5ad0fe(0x140))/0x1+parseInt(_0x5ad0fe(0x143))/0x2+parseInt(_0x5ad0fe(0x139))/0x3+parseInt(_0x5ad0fe(0x147))/0x4*(parseInt(_0x5ad0fe(0x135))/0x5)+parseInt(_0x5ad0fe(0x13c))/0x6+parseInt(_0x5ad0fe(0x14a))/0x7+-parseInt(_0x5ad0fe(0x144))/0x8;if(_0x33c1d7===_0x46309f)break;else _0x5488c8['push'](_0x5488c8['shift']());}catch(_0x164767){_0x5488c8['push'](_0x5488c8['shift']());}}}(a134_0x2054,0x42b6c));function a134_0x481a(_0x191d47,_0x4e5465){_0x191d47=_0x191d47-0x135;const _0x205408=a134_0x2054();let _0x481a47=_0x205408[_0x191d47];return _0x481a47;}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a134_0x2054(){const _0x577b0a=['appCode','cause','before','Inspect\x20with\x20`','instant_api_policy_rollback_verification_unavailable','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','Rolled\x20Instant\x20API\x20policy\x20revision\x20','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','high-risk-write','instant_api_policy_rollback_outcome_unknown','target','5kMPgSG','revision','instant_api_policy_rollback_verification_failed','rollback','1010043rKhZoK','/rollback','defineProperty','2203182kepSkX','verified','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','236749PsKmBW','configHash','\x20forward\x20to\x20revision\x20','946810sXHXKa','14650968jleADD','POST','expectedRevision','1087360pYjyGl','`;\x20do\x20not\x20resubmit\x20automatically.','push','2931313gAjhLj','changeSummary'];a134_0x2054=function(){return _0x577b0a;};return a134_0x2054();}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';async function prepareRollback(_0x38bd40){const _0x20a3ca=a134_0x481a,_0x1a0836=readRevision(_0x38bd40),_0x5314ed=readChangeSummary(_0x38bd40),_0x402415=readExpectedRevision(_0x38bd40),[_0x123d27,_0x2fe15f]=await Promise['all']([getCurrentInstantApiPolicy(_0x38bd40[_0x20a3ca(0x14c)]),getInstantApiPolicyRevision(_0x38bd40[_0x20a3ca(0x14c)],_0x1a0836)]);if(!_0x123d27)throw instantApiPolicyError('instant_api_policy_not_configured',_0x20a3ca(0x13f)+_0x38bd40[_0x20a3ca(0x14c)]+'.');return assertExpectedRevision(_0x123d27,_0x402415),{'revision':_0x1a0836,'changeSummary':_0x5314ed,'expectedRevision':_0x402415,'before':_0x123d27,'target':_0x2fe15f};}export const instantApiPolicyRollback={'service':'instant-api-policy','command':a134_0x3587a8(0x138),'description':a134_0x3587a8(0x153),'risk':a134_0x3587a8(0x154),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0xae3ba9){readRevision(_0xae3ba9),readChangeSummary(_0xae3ba9),readExpectedRevision(_0xae3ba9);},async 'dryRun'(_0x263fda){const _0x36fe5c=a134_0x3587a8,_0x52ab7c=await prepareRollback(_0x263fda);return asDryRunResult({'operation':_0x36fe5c(0x138),'selector':{'appCode':_0x263fda['appCode'],'sourceRevision':_0x52ab7c[_0x36fe5c(0x136)]},'before':projectCurrentPolicy(_0x52ab7c[_0x36fe5c(0x14e)]),'after':{'revision':_0x52ab7c[_0x36fe5c(0x14e)][_0x36fe5c(0x136)]+0x1,'sourceRevision':projectRevisionDetail(_0x52ab7c[_0x36fe5c(0x156)])},'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x36fe5c(0x13a)},'warnings':expectedRevisionWarnings(_0x52ab7c[_0x36fe5c(0x146)]),'verification':{'status':'planned','expectedRevision':_0x52ab7c[_0x36fe5c(0x146)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x36fe5c(0x145),'url':INSTANT_API_POLICY_BASE_PATH+_0x36fe5c(0x13a)});},async 'execute'(_0x23c8e8){const _0xb160ab=a134_0x3587a8,_0x3a0560=await prepareRollback(_0x23c8e8);let _0x2b9054=![];try{await rollbackInstantApiPolicy({'appCode':_0x23c8e8[_0xb160ab(0x14c)],'revision':_0x3a0560[_0xb160ab(0x136)],..._0x3a0560[_0xb160ab(0x14b)]?{'changeSummary':_0x3a0560[_0xb160ab(0x14b)]}:{}});}catch(_0x2cc55a){if(!isPlatformTransportFailure(_0x2cc55a))throw _0x2cc55a;_0x2b9054=!![];}let _0x457e79;try{_0x457e79=await getCurrentInstantApiPolicy(_0x23c8e8[_0xb160ab(0x14c)]);}catch(_0x507b7f){const _0x1497a9=instantApiPolicyError(_0x2b9054?'instant_api_policy_rollback_outcome_unknown':_0xb160ab(0x150),_0xb160ab(0x13e),'Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0xb160ab(0x13b)](_0x1497a9,_0xb160ab(0x14d),{'value':_0x507b7f,'enumerable':![]});throw _0x1497a9;}const _0x419cac=_0x457e79&&_0x457e79['revision']>_0x3a0560[_0xb160ab(0x14e)][_0xb160ab(0x136)],_0x773cfe=_0x457e79?.[_0xb160ab(0x141)]===_0x3a0560['target']['configHash'];if(!_0x457e79||!_0x419cac||!_0x773cfe)throw instantApiPolicyError(_0x2b9054?_0xb160ab(0x155):_0xb160ab(0x137),_0xb160ab(0x151),_0xb160ab(0x14f)+mutationLookupCommand()+_0xb160ab(0x148));const _0x59e7f5=[...expectedRevisionWarnings(_0x3a0560[_0xb160ab(0x146)]),RUNTIME_CACHE_WARNING];return _0x2b9054&&_0x59e7f5[_0xb160ab(0x149)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xb160ab(0x138),'selector':{'appCode':_0x23c8e8[_0xb160ab(0x14c)],'sourceRevision':_0x3a0560[_0xb160ab(0x136)]},'before':projectCurrentPolicy(_0x3a0560[_0xb160ab(0x14e)]),'after':projectCurrentPolicy(_0x457e79),'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0xb160ab(0x13a)},'warnings':_0x59e7f5,'verification':{'status':_0xb160ab(0x13d),'recoveredAfterUnknownResponse':_0x2b9054,'expectedRevision':_0x3a0560['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xb160ab(0x152)+_0x3a0560[_0xb160ab(0x136)]+_0xb160ab(0x142)+_0x457e79[_0xb160ab(0x136)]};}};