@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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.d.ts +22 -0
- package/lib/api/api-group.js +1 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +18 -2
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.d.ts +11 -0
- package/lib/api/legacy-api-file.js +1 -0
- package/lib/api/model-registry-file.d.ts +36 -0
- package/lib/api/model-registry-file.js +1 -0
- package/lib/api/model-registry-scaffold.d.ts +7 -0
- package/lib/api/model-registry-scaffold.js +1 -0
- package/lib/api/model-source.d.ts +6 -0
- package/lib/api/model-source.js +1 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +7 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-create.js +1 -0
- package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-delete.js +1 -0
- package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-list.js +1 -0
- package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
- package/lib/commands/dataset/cross-relation-shared.js +1 -0
- package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-update.js +1 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
- package/lib/commands/project/api-architecture-upgrade.js +1 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +30 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +5 -3
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +2 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +2 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +13 -17
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +6 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.d.ts +41 -0
- package/lib/core/cross-db-relation.js +1 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +0 -10
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +11 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +19 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +6 -1
- package/skills/rabetbase/SKILL.md +16 -10
- package/skills/rabetbase/guides/backend-function.md +5 -1
- package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
- package/skills/rabetbase/guides/cross-database-bff.md +70 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
- package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
- package/skills/rabetbase/guides/typescript-sdk.md +9 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
- package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-config.md +2 -1
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +64 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
- package/skills/rabetbase.manifest.json +5 -3
- package/templates/README.md +46 -6
- package/templates/generate-api/model-runtime.ts.tpl +101 -0
- package/templates/generate-api/profile-api.ts.tpl +21 -0
- package/templates/generate-api/profile-client.ts.tpl +14 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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)]};}};
|