@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- 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.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- 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/detail.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.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.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- 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/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.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/page-list.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- 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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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.js +1 -1
- 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.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/feishu-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.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.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +37 -6
- 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-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +12 -0
- 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.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/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- 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/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.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 +3 -2
- package/skills/rabetbase/SKILL.md +11 -7
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +6 -3
|
@@ -16,7 +16,7 @@ export declare function paginateRuntimeItems<T>(items: T[], page: number, pageSi
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
export declare function projectRuntimeRole(role: ApprovalRuntimeRole): {
|
|
19
|
-
id: number;
|
|
19
|
+
id: string | number;
|
|
20
20
|
roleName: string | null;
|
|
21
21
|
roleType: string | null;
|
|
22
22
|
remark: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x208e17=a132_0x3b76;(function(_0x131c15,_0x495287){const _0x3f5231=a132_0x3b76,_0x2b8355=_0x131c15();while(!![]){try{const _0x37dbe9=-parseInt(_0x3f5231(0x13b))/0x1+-parseInt(_0x3f5231(0x135))/0x2+-parseInt(_0x3f5231(0x117))/0x3+-parseInt(_0x3f5231(0x118))/0x4*(parseInt(_0x3f5231(0x123))/0x5)+-parseInt(_0x3f5231(0x119))/0x6*(parseInt(_0x3f5231(0x11a))/0x7)+-parseInt(_0x3f5231(0x130))/0x8+-parseInt(_0x3f5231(0x128))/0x9*(-parseInt(_0x3f5231(0x139))/0xa);if(_0x37dbe9===_0x495287)break;else _0x2b8355['push'](_0x2b8355['shift']());}catch(_0x43edeb){_0x2b8355['push'](_0x2b8355['shift']());}}}(a132_0x1deb,0x309af));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a132_0x208e17(0x138),'type':a132_0x208e17(0x12f),'description':'Page\x20index\x20(1-based)','default':0x1};function a132_0x1deb(){const _0x150e69=['length','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','flagMissing','string','role','email','page-size','1677095ncunzg','validation','Runtime\x20role\x20name\x20\x22','code','nickName','17197335iYAbPG','\x22\x20is\x20ambiguous\x20(ids:\x20','Runtime\x20role\x20\x22','username','isSafeInteger','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','userName','number','634000EsxSQJ','slice','filter','displayName','toString','757094uPGCrZ','num','userId','page','10AypbBh','join','259283qcnXce','trim','remark','805683oEDsRd','4XAfmuF','24prxUws','683669tmboVF','roleType'];a132_0x1deb=function(){return _0x150e69;};return a132_0x1deb();}export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a132_0x208e17(0x122),'type':a132_0x208e17(0x12f),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a132_0x208e17(0x11f),'required':!![],'description':a132_0x208e17(0x11d)};export function readRuntimePagination(_0x2b9689){const _0x2d02fa=a132_0x208e17,_0x3689a1=_0x2b9689[_0x2d02fa(0x136)](_0x2d02fa(0x138),0x1),_0x1610be=_0x2b9689[_0x2d02fa(0x136)](_0x2d02fa(0x122),0x14);if(!Number[_0x2d02fa(0x12c)](_0x3689a1)||_0x3689a1<0x1)throw CliErrors[_0x2d02fa(0x124)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number['isSafeInteger'](_0x1610be)||_0x1610be<0x1||_0x1610be>0x64)throw CliErrors[_0x2d02fa(0x124)](_0x2d02fa(0x12d));return{'page':_0x3689a1,'pageSize':_0x1610be};}export function paginateRuntimeItems(_0x209e8c,_0x3c07fe,_0x32e705){const _0x112fb2=a132_0x208e17,_0x3332f6=(_0x3c07fe-0x1)*_0x32e705;return{'items':_0x209e8c[_0x112fb2(0x131)](_0x3332f6,_0x3332f6+_0x32e705),'paging':{'currentPage':_0x3c07fe,'pageSize':_0x32e705,'totalCount':_0x209e8c[_0x112fb2(0x11c)]}};}export function projectRuntimeRole(_0x246929){const _0x3b67b7=a132_0x208e17;return{'id':_0x246929['id'],'roleName':_0x246929['roleName']??null,'roleType':_0x246929[_0x3b67b7(0x11b)]??null,'remark':_0x246929[_0x3b67b7(0x116)]??null,'userCount':_0x246929['userCount']??0x0,'permitCount':_0x246929['permitCount']??0x0};}function a132_0x3b76(_0x3f3f5b,_0x257237){_0x3f3f5b=_0x3f3f5b-0x115;const _0x1deb97=a132_0x1deb();let _0x3b7687=_0x1deb97[_0x3f3f5b];return _0x3b7687;}export function projectRuntimeUser(_0x4b3715){const _0x35cc97=a132_0x208e17,_0x23abfe=normalizeRuntimeUserId(_0x4b3715[_0x35cc97(0x126)]);if(!_0x23abfe)return null;return{'userId':_0x23abfe,'username':_0x4b3715[_0x35cc97(0x12e)]??null,'nickname':_0x4b3715[_0x35cc97(0x127)]??null,'displayName':_0x4b3715[_0x35cc97(0x133)]??null,'email':_0x4b3715[_0x35cc97(0x121)]??null,'status':_0x4b3715['status']??null};}export function projectRuntimeRoleMember(_0x36458e){const _0x3a1c68=a132_0x208e17,_0x34be5a=normalizeRuntimeUserId(_0x36458e[_0x3a1c68(0x137)]);if(!_0x34be5a)return null;return{'userId':_0x34be5a,'username':_0x36458e[_0x3a1c68(0x12b)]??null,'nickname':_0x36458e['nickname']??null};}export function readRuntimeRoleRef(_0x5d69e7){const _0x6ec5a4=a132_0x208e17,_0x270b1a=_0x5d69e7['str'](_0x6ec5a4(0x120))['trim']();if(!_0x270b1a)throw CliErrors[_0x6ec5a4(0x11e)](_0x6ec5a4(0x120),'Pass\x20--role\x20<id|name>.');return _0x270b1a;}export function resolveRuntimeRoleGroup(_0x895d11,_0x244a6e,_0x2869eb){const _0x4e5e39=a132_0x208e17,_0x47311f=/^\d+$/['test'](_0x244a6e)?BigInt(_0x244a6e)[_0x4e5e39(0x134)]():null,_0x3f9f6e=_0x47311f!==null?_0x2869eb['filter'](_0xa9f316=>String(_0xa9f316['id'])===_0x47311f):_0x2869eb[_0x4e5e39(0x132)](_0x5d4451=>_0x5d4451['roleName']===_0x244a6e);if(_0x3f9f6e[_0x4e5e39(0x11c)]===0x0)throw CliErrors[_0x4e5e39(0x124)](_0x4e5e39(0x12a)+_0x244a6e+'\x22\x20not\x20found\x20in\x20app\x20'+_0x895d11+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x3f9f6e[_0x4e5e39(0x11c)]>0x1){const _0x527566=_0x3f9f6e['map'](_0x47db25=>_0x47db25['id'])[_0x4e5e39(0x13a)](',\x20');throw CliErrors[_0x4e5e39(0x124)](_0x4e5e39(0x125)+_0x244a6e+_0x4e5e39(0x129)+_0x527566+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0x3f9f6e[0x0];}function normalizeRuntimeUserId(_0x5a5d36){const _0xe1d24e=a132_0x208e17;if(typeof _0x5a5d36!=='string'&&typeof _0x5a5d36!=='number')return null;const _0x29de91=String(_0x5a5d36)[_0xe1d24e(0x115)]();return _0x29de91||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133_0x20f6ff=a133_0x33b8;(function(_0x206326,_0x460268){const _0x14f58c=a133_0x33b8,_0x3d1549=_0x206326();while(!![]){try{const _0x16d4b9=-parseInt(_0x14f58c(0xbb))/0x1+-parseInt(_0x14f58c(0xb0))/0x2*(-parseInt(_0x14f58c(0xb6))/0x3)+parseInt(_0x14f58c(0xb2))/0x4*(parseInt(_0x14f58c(0xac))/0x5)+-parseInt(_0x14f58c(0xb4))/0x6*(parseInt(_0x14f58c(0xa8))/0x7)+-parseInt(_0x14f58c(0xb3))/0x8*(parseInt(_0x14f58c(0xba))/0x9)+parseInt(_0x14f58c(0xb9))/0xa*(-parseInt(_0x14f58c(0xb7))/0xb)+-parseInt(_0x14f58c(0xab))/0xc*(-parseInt(_0x14f58c(0xae))/0xd);if(_0x16d4b9===_0x460268)break;else _0x3d1549['push'](_0x3d1549['shift']());}catch(_0x3a960f){_0x3d1549['push'](_0x3d1549['shift']());}}}(a133_0x7820,0x2a40e));function a133_0x33b8(_0x39275e,_0x683016){_0x39275e=_0x39275e-0xa5;const _0x782090=a133_0x7820();let _0x33b88e=_0x782090[_0x39275e];return _0x33b88e;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';function a133_0x7820(){const _0x371839=['13oKcAor','Optional\x20runtime\x20role-name\x20keyword','28QmnZKQ','keyword','596552TDTDww','32upjnuo','7962UAYRgT','flow','23355KCdMFX','2419989aZDOpA','map','10hvatce','215181siktUg','339315kuFXaD','appCode','runtime','runtime-role-list','1141JlYwZa','read','length','7644660niTIYC','10KBCdRY','trim'];a133_0x7820=function(){return _0x371839;};return a133_0x7820();}export const flowRuntimeRoleList={'service':a133_0x20f6ff(0xb5),'command':a133_0x20f6ff(0xa7),'description':'List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','risk':a133_0x20f6ff(0xa9),'flags':[{'name':a133_0x20f6ff(0xb1),'type':'string','description':a133_0x20f6ff(0xaf)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x16b8c1){readRuntimePagination(_0x16b8c1);},async 'execute'(_0x4cc60e){const _0x5950da=a133_0x20f6ff,{page:_0x1b73cf,pageSize:_0x3bc7a7}=readRuntimePagination(_0x4cc60e),_0x3683df=_0x4cc60e['str']('keyword')[_0x5950da(0xad)](),{items:_0x1e703d,paging:_0x84ef8}=await listApprovalRuntimeRoles(_0x4cc60e[_0x5950da(0xa5)],{..._0x3683df?{'roleName':_0x3683df}:{},'currentPage':_0x1b73cf,'pageSize':_0x3bc7a7}),_0x591b57=_0x1e703d[_0x5950da(0xb8)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x4cc60e[_0x5950da(0xa5)],'scope':_0x5950da(0xa6),..._0x3683df?{'keyword':_0x3683df}:{},'roles':_0x591b57,'paging':_0x84ef8},'message':'Found\x20'+_0x591b57[_0x5950da(0xaa)]+'\x20runtime\x20role(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a134_0x31d3(){const _0x1b46b1=['read','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','116GfXGGz','Found\x20','appCode','987240UlyJzj','147TSNhkc','115007vsANXy','1382112FESgLi','runtime','112440IRrrhS','\x20runtime\x20member(s)\x20in\x20role\x20','92720EuZdaU','588632GYabaD','paging','length','2QARYpC','flow','roleName','306eUWOkW','5361AnXXIC','runtime-role-user-list','map','roleType'];a134_0x31d3=function(){return _0x1b46b1;};return a134_0x31d3();}function a134_0x4547(_0x686f0e,_0x4ad60f){_0x686f0e=_0x686f0e-0xe0;const _0x31d303=a134_0x31d3();let _0x4547b7=_0x31d303[_0x686f0e];return _0x4547b7;}const a134_0x543191=a134_0x4547;(function(_0x4512cf,_0x227365){const _0x1b337e=a134_0x4547,_0x3d30d0=_0x4512cf();while(!![]){try{const _0x186adc=parseInt(_0x1b337e(0xf3))/0x1*(parseInt(_0x1b337e(0xe4))/0x2)+-parseInt(_0x1b337e(0xe8))/0x3*(-parseInt(_0x1b337e(0xee))/0x4)+parseInt(_0x1b337e(0xf1))/0x5+-parseInt(_0x1b337e(0xf4))/0x6+parseInt(_0x1b337e(0xf2))/0x7*(parseInt(_0x1b337e(0xf6))/0x8)+-parseInt(_0x1b337e(0xe7))/0x9*(parseInt(_0x1b337e(0xe0))/0xa)+parseInt(_0x1b337e(0xe1))/0xb;if(_0x186adc===_0x227365)break;else _0x3d30d0['push'](_0x3d30d0['shift']());}catch(_0x30f18){_0x3d30d0['push'](_0x3d30d0['shift']());}}}(a134_0x31d3,0x28db1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a134_0x543191(0xe5),'command':a134_0x543191(0xe9),'description':a134_0x543191(0xed),'risk':a134_0x543191(0xec),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x354726){readRuntimeRoleRef(_0x354726),readRuntimePagination(_0x354726);},async 'execute'(_0x9b5af7){const _0x24d92f=a134_0x543191,_0x273dd9=resolveRuntimeRoleGroup(_0x9b5af7['appCode'],readRuntimeRoleRef(_0x9b5af7),await listApprovalRuntimeRoleUsers(_0x9b5af7[_0x24d92f(0xf0)])),_0x4c7866=(_0x273dd9['userList']??[])[_0x24d92f(0xea)](projectRuntimeRoleMember)['filter'](_0x5b3f52=>_0x5b3f52!==null),{page:_0x1cbeac,pageSize:_0x22643a}=readRuntimePagination(_0x9b5af7),_0x1aec92=paginateRuntimeItems(_0x4c7866,_0x1cbeac,_0x22643a);return{'ok':!![],'data':{'appCode':_0x9b5af7[_0x24d92f(0xf0)],'scope':_0x24d92f(0xf5),'role':{'id':_0x273dd9['id'],'roleName':_0x273dd9[_0x24d92f(0xe6)]??null,'roleType':_0x273dd9[_0x24d92f(0xeb)]??null},'users':_0x1aec92['items'],'paging':_0x1aec92[_0x24d92f(0xe2)]},'message':_0x24d92f(0xef)+_0x4c7866[_0x24d92f(0xe3)]+_0x24d92f(0xf7)+(_0x273dd9[_0x24d92f(0xe6)]??_0x273dd9['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a135_0x45084d=a135_0x5e4b;(function(_0x3a8b52,_0x5a5119){const _0x2d1fe8=a135_0x5e4b,_0xda7a70=_0x3a8b52();while(!![]){try{const _0x5ce67d=-parseInt(_0x2d1fe8(0x163))/0x1+parseInt(_0x2d1fe8(0x149))/0x2+parseInt(_0x2d1fe8(0x15f))/0x3*(parseInt(_0x2d1fe8(0x165))/0x4)+parseInt(_0x2d1fe8(0x14b))/0x5+-parseInt(_0x2d1fe8(0x166))/0x6*(parseInt(_0x2d1fe8(0x158))/0x7)+parseInt(_0x2d1fe8(0x153))/0x8+parseInt(_0x2d1fe8(0x156))/0x9*(-parseInt(_0x2d1fe8(0x160))/0xa);if(_0x5ce67d===_0x5a5119)break;else _0xda7a70['push'](_0xda7a70['shift']());}catch(_0x57dac2){_0xda7a70['push'](_0xda7a70['shift']());}}}(a135_0x1e5c,0x7ced9));function a135_0x1e5c(){const _0x318fa3=['paging','runtime','includes','7201128ShgJRB','Pass\x20--keyword\x20<text>.','toLowerCase','555003YZLcME','trim','70hnfNME','code','keyword','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','Found\x20','some','3852gqPohp','220dcWyKg','flagMissing','email','89755EKnBvG','runtime-user-search','968thtaTT','265368iXgxLk','flow','489280bhdgzw','items','4724525FHQRtF','nickName','str','filter','userName'];a135_0x1e5c=function(){return _0x318fa3;};return a135_0x1e5c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a135_0x5e4b(_0x226f92,_0x29ee44){_0x226f92=_0x226f92-0x148;const _0x1e5cbf=a135_0x1e5c();let _0x5e4b6d=_0x1e5cbf[_0x226f92];return _0x5e4b6d;}import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a135_0x45084d(0x148),'command':a135_0x45084d(0x164),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':'read','flags':[{'name':a135_0x45084d(0x15a),'type':'string','required':!![],'description':a135_0x45084d(0x15c)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf84419){const _0x406adb=a135_0x45084d;if(!_0xf84419['str'](_0x406adb(0x15a))[_0x406adb(0x157)]())throw CliErrors[_0x406adb(0x161)](_0x406adb(0x15a),_0x406adb(0x154));readRuntimePagination(_0xf84419);},async 'execute'(_0x43ea0b){const _0x54040a=a135_0x45084d,_0x5d9b34=_0x43ea0b[_0x54040a(0x14d)](_0x54040a(0x15a))['trim'](),_0x33ed32=_0x5d9b34['toLowerCase'](),_0x2b7045=(await listApprovalRuntimeUsers(_0x43ea0b['appCode']))['filter'](_0x2ccecd=>[_0x2ccecd[_0x54040a(0x159)],_0x2ccecd[_0x54040a(0x14f)],_0x2ccecd[_0x54040a(0x14c)],_0x2ccecd['displayName'],_0x2ccecd[_0x54040a(0x162)]][_0x54040a(0x15e)](_0x52aee9=>_0x52aee9!==null&&_0x52aee9!==undefined&&String(_0x52aee9)[_0x54040a(0x155)]()[_0x54040a(0x152)](_0x33ed32)))['map'](projectRuntimeUser)[_0x54040a(0x14e)](_0x1ffd38=>_0x1ffd38!==null),{page:_0x37fabd,pageSize:_0x576fdf}=readRuntimePagination(_0x43ea0b),_0x30fca6=paginateRuntimeItems(_0x2b7045,_0x37fabd,_0x576fdf);return{'ok':!![],'data':{'appCode':_0x43ea0b['appCode'],'scope':_0x54040a(0x151),'keyword':_0x5d9b34,'users':_0x30fca6[_0x54040a(0x14a)],'paging':_0x30fca6[_0x54040a(0x150)]},'message':_0x54040a(0x15d)+_0x2b7045['length']+_0x54040a(0x15b)+_0x5d9b34+'\x22'};}};
|
|
@@ -16,15 +16,19 @@ export interface PreparedFlowWrite {
|
|
|
16
16
|
}
|
|
17
17
|
/** Project a remote definition into the portable local FlowConfig contract. */
|
|
18
18
|
export declare function flowDefinitionToConfig(flow: FlowDefinition): NormalizedFlowConfig;
|
|
19
|
+
/** Preserve the complete binding list, including an explicit empty list. */
|
|
20
|
+
export declare function readFlowPageBindings(flow: FlowDefinition): {
|
|
21
|
+
pageIds?: number[];
|
|
22
|
+
};
|
|
19
23
|
export declare function readFlowId(ctx: RuntimeContext): number;
|
|
20
24
|
export declare function readFlowFilePath(ctx: RuntimeContext): string;
|
|
21
25
|
/** Read, normalize, validate, and map a local manifest to FlowDefRequest. */
|
|
22
26
|
export declare function prepareFlowWrite(filePath: string, appCode: string, id?: number): Promise<PreparedFlowWrite>;
|
|
23
27
|
/** Confirm a draft create/update with a concise, non-sensitive target summary. */
|
|
24
28
|
export declare function confirmFlowWrite(ctx: RuntimeContext, operation: "create" | "update", request: FlowDefinitionWriteRequest): Promise<void>;
|
|
25
|
-
export declare function flowSelector(appCode: string, id?: number, flow?: FlowDefinition): Record<string, unknown>;
|
|
29
|
+
export declare function flowSelector(appCode: string, id?: number | string, flow?: FlowDefinition): Record<string, unknown>;
|
|
26
30
|
/** Build the design-time workflow page URL for the active CLI environment. */
|
|
27
|
-
export declare function buildFlowUrl(appCode: string, workflowId: number): string;
|
|
31
|
+
export declare function buildFlowUrl(appCode: string, workflowId: number | string): string;
|
|
28
32
|
export declare function buildFlowIdDryRun(operation: "publish", path: string, appCode: string, id: number, after: Record<string, unknown>): import("@lovrabet/cli-framework").DryRunResult & {
|
|
29
33
|
operation: "publish";
|
|
30
34
|
selector: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a136_0x3aee(_0x37c6be,_0x217137){_0x37c6be=_0x37c6be-0x19c;const _0x8c4b68=a136_0x8c4b();let _0x3aeeaf=_0x8c4b68[_0x37c6be];return _0x3aeeaf;}const a136_0x206bed=a136_0x3aee;(function(_0x499e6d,_0x1e0bc5){const _0x1868c1=a136_0x3aee,_0x2e75d7=_0x499e6d();while(!![]){try{const _0xe482b0=parseInt(_0x1868c1(0x1ae))/0x1+parseInt(_0x1868c1(0x1e6))/0x2+-parseInt(_0x1868c1(0x1d6))/0x3+parseInt(_0x1868c1(0x1a3))/0x4+-parseInt(_0x1868c1(0x19c))/0x5*(-parseInt(_0x1868c1(0x1d8))/0x6)+-parseInt(_0x1868c1(0x1c0))/0x7+-parseInt(_0x1868c1(0x1bc))/0x8;if(_0xe482b0===_0x1e0bc5)break;else _0x2e75d7['push'](_0x2e75d7['shift']());}catch(_0x3eac06){_0x2e75d7['push'](_0x2e75d7['shift']());}}}(a136_0x8c4b,0x69823));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';function a136_0x8c4b(){const _0x3c958c=['unbound','/smartapi/flow/create','\x20\x20flowId:\x20','/smartapi/flow/page','229324nVQIWx','test','/data/workflow?workflowId=','1465CLQvCl','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','omitted\x20(unbound)','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','warnings','3177756xiserI','object','isSafeInteger','--id\x20must\x20be\x20a\x20positive\x20integer.','valid','/smartapi/flow/detail','errors','\x20\x20pageIds:\x20','bool','num','File:\x20','807353OflRKa','validation','pageId','file','flowType','normalized','cancelled','trim','stringify','yes','length','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','omitted\x20(preserve\x20existing\x20page\x20bindings)','5443920vAppSt','replace\x20complete\x20binding\x20list','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','bind\x20pages','5271119KNWZDL','flowName','join','FlowConfig\x20validation\x20failed\x20for\x20','map','\x20\x20flowType:\x20','update','/smartapi/flow/publish','flowDesc','clear\x20all\x20page\x20bindings','str','path','some','FORM_FLOW','isArray','flowJson','flagMissing','pageIds','Cannot\x20read\x20invalid\x20or\x20unsafe\x20flow\x20page\x20identifiers.','message','/smartapi/flow/update','apiError','777678kBafjH','flowCode','8364RjUOkY','POST','datasetCode','Pass\x20--file\x20<path>.','Continue?\x20[y/N]\x20','number','string','Cannot\x20read\x20invalid\x20flow\x20page\x20bindings.','nonInteractive','\x20\x20appCode:\x20'];a136_0x8c4b=function(){return _0x3c958c;};return a136_0x8c4b();}import{CliErrors}from'../../errors.js';import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a136_0x206bed(0x1e5),'detail':a136_0x206bed(0x1a8),'create':a136_0x206bed(0x1e3),'update':a136_0x206bed(0x1d4),'publish':a136_0x206bed(0x1c7)};export const FLOW_ID_FLAG={'name':'id','type':a136_0x206bed(0x1dd),'required':!![],'description':a136_0x206bed(0x1ba)};export const FLOW_FILE_FLAG={'name':'file','type':'string','required':!![],'description':a136_0x206bed(0x19e)};export function flowDefinitionToConfig(_0x12b994){const _0x50dce7=a136_0x206bed;if(typeof _0x12b994['flowName']!=='string'||_0x12b994['flowName']['trim']()==='')throw CliErrors['apiError'](_0x50dce7(0x1be),_0x50dce7(0x19d));if(typeof _0x12b994[_0x50dce7(0x1cf)]!==_0x50dce7(0x1a4)||_0x12b994[_0x50dce7(0x1cf)]===null||Array[_0x50dce7(0x1ce)](_0x12b994['flowJson']))throw CliErrors['apiError'](_0x50dce7(0x1be),'The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.');if(_0x12b994[_0x50dce7(0x1b2)]!==_0x50dce7(0x1cd)&&_0x12b994[_0x50dce7(0x1b2)]!=='INDEPENDENT_FLOW')throw CliErrors['apiError'](_0x50dce7(0x1be),_0x50dce7(0x1a0));const _0x3a0efc={'flowName':_0x12b994[_0x50dce7(0x1c1)],...typeof _0x12b994[_0x50dce7(0x1c8)]===_0x50dce7(0x1de)?{'flowDesc':_0x12b994[_0x50dce7(0x1c8)]}:{},'flowType':_0x12b994[_0x50dce7(0x1b2)],...typeof _0x12b994[_0x50dce7(0x1da)]==='string'&&_0x12b994[_0x50dce7(0x1da)][_0x50dce7(0x1b5)]()?{'datasetCode':_0x12b994['datasetCode']}:{},...readFlowPageBindings(_0x12b994),'flowJson':_0x12b994['flowJson']},_0x52395c=validateFlowConfig(_0x3a0efc);if(!_0x52395c[_0x50dce7(0x1a7)]){const _0x51ab53=_0x52395c['errors']['map'](_0x1bf76a=>_0x1bf76a[_0x50dce7(0x1cb)]+':\x20'+_0x1bf76a[_0x50dce7(0x1d3)])['join'](';\x20');throw CliErrors[_0x50dce7(0x1af)](_0x50dce7(0x1b9),_0x51ab53);}return{'config':_0x52395c[_0x50dce7(0x1b3)],'warnings':_0x52395c[_0x50dce7(0x1a2)],'removedPaths':_0x52395c[_0x50dce7(0x1a2)][_0x50dce7(0x1c4)](_0x90bf10=>_0x90bf10[_0x50dce7(0x1cb)])};}export function readFlowPageBindings(_0x4312a5){const _0x215dd2=a136_0x206bed;let _0x5b7571;if(_0x4312a5['pageIds']!==undefined&&_0x4312a5[_0x215dd2(0x1d1)]!==null)_0x5b7571=_0x4312a5[_0x215dd2(0x1d1)];else{if(typeof _0x4312a5[_0x215dd2(0x1b0)]===_0x215dd2(0x1dd))_0x5b7571=[_0x4312a5[_0x215dd2(0x1b0)]];else{if(typeof _0x4312a5[_0x215dd2(0x1b0)]===_0x215dd2(0x1de)){const _0x1d7eb6=_0x4312a5[_0x215dd2(0x1b0)]['split'](',')['map'](_0x2cfb46=>_0x2cfb46[_0x215dd2(0x1b5)]());if(_0x1d7eb6[_0x215dd2(0x1cc)](_0x36c1df=>!/^[0-9]+$/[_0x215dd2(0x1e7)](_0x36c1df)))throw CliErrors['apiError'](_0x215dd2(0x1df));_0x5b7571=_0x1d7eb6[_0x215dd2(0x1c4)](Number);}else{if(_0x4312a5[_0x215dd2(0x1b0)]===null)_0x5b7571=[];else return{};}}}if(!Array['isArray'](_0x5b7571))throw CliErrors[_0x215dd2(0x1d5)](_0x215dd2(0x1d2));const _0x5be2df=_0x5b7571[_0x215dd2(0x1c4)](_0x35650c=>{const _0x28c798=_0x215dd2,_0x635ee5=typeof _0x35650c===_0x28c798(0x1de)&&/^[0-9]+$/[_0x28c798(0x1e7)](_0x35650c)?Number(_0x35650c):_0x35650c;if(typeof _0x635ee5!==_0x28c798(0x1dd)||!Number[_0x28c798(0x1a5)](_0x635ee5)||_0x635ee5<=0x0)throw CliErrors[_0x28c798(0x1d5)](_0x28c798(0x1d2));return _0x635ee5;});return{'pageIds':[...new Set(_0x5be2df)]};}export function readFlowId(_0x1d5735){const _0x5a74fa=a136_0x206bed,_0x26b79a=_0x1d5735[_0x5a74fa(0x1ac)]('id');if(!Number[_0x5a74fa(0x1a5)](_0x26b79a)||_0x26b79a<=0x0)throw CliErrors['validation'](_0x5a74fa(0x1a6));return _0x26b79a;}export function readFlowFilePath(_0x2495fd){const _0x3bd906=a136_0x206bed,_0x32018d=_0x2495fd[_0x3bd906(0x1ca)](_0x3bd906(0x1b1))[_0x3bd906(0x1b5)]();if(!_0x32018d)throw CliErrors[_0x3bd906(0x1d0)](_0x3bd906(0x1b1),_0x3bd906(0x1db));return _0x32018d;}export async function prepareFlowWrite(_0x12c086,_0x132c5b,_0xc1cc16){const _0x2498f6=a136_0x206bed;let _0xe9e36f;try{_0xe9e36f=await readFlowConfigFile(_0x12c086);}catch(_0x3f7628){const _0x501216=_0x3f7628 instanceof Error?_0x3f7628['message']:String(_0x3f7628);throw CliErrors[_0x2498f6(0x1af)]('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x501216,_0x2498f6(0x1ad)+_0x12c086);}const _0xdc0ec=validateFlowConfig(_0xe9e36f);if(!_0xdc0ec[_0x2498f6(0x1a7)]){const _0x39e5e6=_0xdc0ec[_0x2498f6(0x1a9)]['map'](_0xb313d7=>_0xb313d7[_0x2498f6(0x1cb)]+':\x20'+_0xb313d7[_0x2498f6(0x1d3)])[_0x2498f6(0x1c2)](';\x20');throw CliErrors[_0x2498f6(0x1af)](_0x2498f6(0x1c3)+_0x12c086+'.',_0x39e5e6||_0x2498f6(0x1a1));}const _0x41e6a4=_0xdc0ec[_0x2498f6(0x1b3)],_0x5c6094={..._0xc1cc16!==undefined?{'id':_0xc1cc16}:{},'flowName':_0x41e6a4[_0x2498f6(0x1c1)],..._0x41e6a4[_0x2498f6(0x1c8)]!==undefined?{'flowDesc':_0x41e6a4[_0x2498f6(0x1c8)]}:{},'flowType':_0x41e6a4['flowType'],'appCode':_0x132c5b,..._0x41e6a4['datasetCode']!==undefined?{'datasetCode':_0x41e6a4[_0x2498f6(0x1da)]}:{},..._0x41e6a4[_0x2498f6(0x1d1)]!==undefined?{'pageIds':[...new Set(_0x41e6a4[_0x2498f6(0x1d1)])]}:_0x41e6a4[_0x2498f6(0x1b0)]!==undefined?{'pageIds':[_0x41e6a4[_0x2498f6(0x1b0)]]}:{},'flowJson':_0x41e6a4[_0x2498f6(0x1cf)]};return{'request':_0x5c6094,'warnings':_0xdc0ec['warnings']};}export async function confirmFlowWrite(_0x572e61,_0x1eb874,_0x3ff429){const _0x4d431c=a136_0x206bed;if(_0x572e61[_0x4d431c(0x1e0)]||_0x572e61[_0x4d431c(0x1ab)](_0x4d431c(0x1b7)))return;const _0x2f57cb=_0x3ff429[_0x4d431c(0x1d1)]===undefined?_0x1eb874===_0x4d431c(0x1c6)?_0x4d431c(0x1bb):_0x4d431c(0x19f):JSON[_0x4d431c(0x1b6)](_0x3ff429[_0x4d431c(0x1d1)])+'\x20('+(_0x3ff429['pageIds'][_0x4d431c(0x1b8)]>0x0?_0x1eb874==='update'?_0x4d431c(0x1bd):_0x4d431c(0x1bf):_0x1eb874==='update'?_0x4d431c(0x1c9):_0x4d431c(0x1e2))+')';await requireConfirmationPrompt({'lines':['Approval\x20flow\x20'+_0x1eb874+':',_0x4d431c(0x1e1)+_0x572e61['appCode'],..._0x3ff429['id']!==undefined?[_0x4d431c(0x1e4)+_0x3ff429['id']]:[],'\x20\x20flowName:\x20'+_0x3ff429['flowName'],_0x4d431c(0x1c5)+_0x3ff429[_0x4d431c(0x1b2)],_0x4d431c(0x1aa)+_0x2f57cb,_0x4d431c(0x1dc)],'createCancelledError':_0x5b4670=>CliErrors[_0x4d431c(0x1b4)](_0x5b4670)});}export function flowSelector(_0x50a584,_0x437be0,_0x3cb410){const _0xb675e3=a136_0x206bed;return{'appCode':_0x50a584,..._0x437be0!==undefined?{'flowId':_0x437be0}:{},..._0x3cb410?.['flowCode']?{'flowCode':_0x3cb410[_0xb675e3(0x1d7)]}:{},..._0x3cb410?.[_0xb675e3(0x1c1)]?{'flowName':_0x3cb410[_0xb675e3(0x1c1)]}:{}};}export function buildFlowUrl(_0x55ee70,_0x1f9423){const _0x4fda8d=a136_0x206bed,_0x95dede=encodeURIComponent(String(_0x1f9423));return getAppBaseUrl(_0x55ee70)+_0x4fda8d(0x1e8)+_0x95dede;}export function buildFlowIdDryRun(_0x2599e1,_0x155ab1,_0x1e580b,_0x6dc6bc,_0x27800f){const _0x4a6c52=a136_0x206bed,_0x3c257f={'id':_0x6dc6bc,'appCode':_0x1e580b};return asDryRunResult({'operation':_0x2599e1,'selector':flowSelector(_0x1e580b,_0x6dc6bc),'before':null,'after':_0x27800f,'request':_0x3c257f,'dryRun':!![],'backend':{'method':_0x4a6c52(0x1d9),'path':_0x155ab1},'warnings':[]},{'method':_0x4a6c52(0x1d9),'url':_0x155ab1});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a137_0x2c48(){const _0x36d186=['write','POST','Current\x20page\x20bindings\x20as\x20a\x20JSON\x20array;\x20required\x20when\x20changing\x20bindings\x20(non-atomic\x20preflight)','1312542vEBgwA','36DATTbr','isArray','Updated\x20flow\x20','expected-page-ids','validation','flowName','apiError','Flow\x20page\x20bindings\x20changed\x20or\x20do\x20not\x20match\x20--expected-page-ids.','The\x20flow\x20detail\x20response\x20does\x20not\x20identify\x20the\x20current\x20page\x20bindings.','update','str','flow','10996029XnRgbx','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','removed','3REmvAm','879185TQicwD','Preview\x20the\x20update,\x20then\x20pass\x20the\x20current\x20binding\x20list\x20as\x20a\x20JSON\x20array;\x20use\x20[]\x20for\x20no\x20bindings.','some','flag','length','6331052uPvMDN','includes','--expected-page-ids\x20must\x20be\x20a\x20JSON\x20array\x20of\x20positive\x20safe\x20integers.','pageIds','3415062DPQUUZ','isSafeInteger','flagMissing','appCode','4427024quKVOU','1592218wjoWmL','flowCode','Read\x20the\x20flow\x20detail\x20and\x20review\x20the\x20binding\x20changes\x20before\x20retrying.'];a137_0x2c48=function(){return _0x36d186;};return a137_0x2c48();}const a137_0x1915ee=a137_0x1924;(function(_0x309589,_0x5d22d5){const _0x14fb26=a137_0x1924,_0x20eff4=_0x309589();while(!![]){try{const _0x96f91b=-parseInt(_0x14fb26(0xf8))/0x1+parseInt(_0x14fb26(0xf2))/0x2*(-parseInt(_0x14fb26(0xe3))/0x3)+parseInt(_0x14fb26(0xf9))/0x4*(parseInt(_0x14fb26(0xe4))/0x5)+parseInt(_0x14fb26(0xed))/0x6+-parseInt(_0x14fb26(0xe9))/0x7+parseInt(_0x14fb26(0xf1))/0x8+parseInt(_0x14fb26(0x105))/0x9;if(_0x96f91b===_0x5d22d5)break;else _0x20eff4['push'](_0x20eff4['shift']());}catch(_0x18f962){_0x20eff4['push'](_0x20eff4['shift']());}}}(a137_0x2c48,0xdf176));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{getFlowDefinition,updateFlowDefinition}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId,readFlowPageBindings}from'../../commands/flow/shared.js';function readExpectedPageIds(_0x26021b){const _0x59c5ca=a137_0x1924;if(_0x26021b[_0x59c5ca(0xe7)]('expected-page-ids')===undefined)return undefined;let _0x1f67e1;try{_0x1f67e1=JSON['parse'](_0x26021b[_0x59c5ca(0x103)](_0x59c5ca(0xfc)));}catch{throw CliErrors['validation'](_0x59c5ca(0xeb));}if(!Array[_0x59c5ca(0xfa)](_0x1f67e1)||_0x1f67e1[_0x59c5ca(0xe6)](_0x437fb0=>!Number[_0x59c5ca(0xee)](_0x437fb0)||_0x437fb0<=0x0))throw CliErrors[_0x59c5ca(0xfd)](_0x59c5ca(0xeb));return[...new Set(_0x1f67e1)];}function a137_0x1924(_0x16cc58,_0x563058){_0x16cc58=_0x16cc58-0xe3;const _0x2c48fe=a137_0x2c48();let _0x1924d8=_0x2c48fe[_0x16cc58];return _0x1924d8;}async function preparePageBindingChange(_0x20a1d6,_0x27c5ed,_0x2c03fe){const _0x5ab911=a137_0x1924,_0x5f52e3=readExpectedPageIds(_0x20a1d6);if(_0x27c5ed[_0x5ab911(0xec)]===undefined){if(_0x5f52e3!==undefined)throw CliErrors[_0x5ab911(0xfd)]('--expected-page-ids\x20requires\x20explicit\x20pageIds\x20or\x20pageId\x20in\x20the\x20FlowConfig.');return{'before':null};}const _0x10e0a8=await getFlowDefinition(_0x20a1d6[_0x5ab911(0xf0)],_0x27c5ed['id']),_0x40c209=_0x10e0a8&&readFlowPageBindings(_0x10e0a8)[_0x5ab911(0xec)];if(_0x40c209===undefined||_0x40c209===null)throw CliErrors[_0x5ab911(0xff)](_0x5ab911(0x101));if(_0x5f52e3!==undefined&&(_0x5f52e3[_0x5ab911(0xe8)]!==_0x40c209[_0x5ab911(0xe8)]||_0x5f52e3[_0x5ab911(0xe6)](_0x3aef56=>!_0x40c209['includes'](_0x3aef56))))throw CliErrors[_0x5ab911(0xfd)](_0x5ab911(0x100),_0x5ab911(0xf4));const _0x5e192e=_0x27c5ed[_0x5ab911(0xec)],_0x5bdabd={'before':_0x40c209,'after':_0x5e192e,'added':_0x5e192e['filter'](_0x3b1afa=>!_0x40c209['includes'](_0x3b1afa)),'removed':_0x40c209['filter'](_0x3d4809=>!_0x5e192e[_0x5ab911(0xea)](_0x3d4809))};if(!_0x2c03fe&&_0x5f52e3===undefined&&(_0x5bdabd['added'][_0x5ab911(0xe8)]>0x0||_0x5bdabd[_0x5ab911(0x107)][_0x5ab911(0xe8)]>0x0))throw CliErrors[_0x5ab911(0xef)](_0x5ab911(0xfc),_0x5ab911(0xe5));return{'before':_0x10e0a8,'pageBindings':_0x5bdabd};}export const flowUpdate={'service':a137_0x1915ee(0x104),'command':a137_0x1915ee(0x102),'description':a137_0x1915ee(0x106),'risk':a137_0x1915ee(0xf5),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a137_0x1915ee(0xfc),'type':'string','description':a137_0x1915ee(0xf7)}],async 'validate'(_0x19c2f2){readFlowId(_0x19c2f2),readFlowFilePath(_0x19c2f2),readExpectedPageIds(_0x19c2f2);},async 'dryRun'(_0x26a1a3){const _0x43b667=a137_0x1915ee,_0x2fa634=readFlowId(_0x26a1a3),{request:_0x16a12e,warnings:_0x45d33b}=await prepareFlowWrite(readFlowFilePath(_0x26a1a3),_0x26a1a3[_0x43b667(0xf0)],_0x2fa634),_0x516eb8=await preparePageBindingChange(_0x26a1a3,{..._0x16a12e,'id':_0x2fa634},!![]);return asDryRunResult({'operation':_0x43b667(0x102),'selector':flowSelector(_0x26a1a3[_0x43b667(0xf0)],_0x2fa634),..._0x516eb8,'after':_0x16a12e,'request':_0x16a12e,'dryRun':!![],'backend':{'method':_0x43b667(0xf6),'path':FLOW_PATHS['update']},'warnings':_0x45d33b},{'method':_0x43b667(0xf6),'url':FLOW_PATHS[_0x43b667(0x102)]});},async 'execute'(_0x1c4ab3){const _0x39f1c8=a137_0x1915ee,_0x11fd23=readFlowId(_0x1c4ab3),{request:_0x101286,warnings:_0x429e2d}=await prepareFlowWrite(readFlowFilePath(_0x1c4ab3),_0x1c4ab3[_0x39f1c8(0xf0)],_0x11fd23),_0x514350=await preparePageBindingChange(_0x1c4ab3,{..._0x101286,'id':_0x11fd23},![]);await confirmFlowWrite(_0x1c4ab3,_0x39f1c8(0x102),_0x101286);const _0x4a1916=await updateFlowDefinition({..._0x101286,'id':_0x11fd23});return{'ok':!![],'data':{'operation':_0x39f1c8(0x102),'selector':flowSelector(_0x1c4ab3[_0x39f1c8(0xf0)],_0x11fd23,_0x4a1916),..._0x514350,'after':_0x4a1916,'dryRun':![],'backend':{'method':_0x39f1c8(0xf6),'path':FLOW_PATHS[_0x39f1c8(0x102)]},'warnings':_0x429e2d},'message':_0x39f1c8(0xfb)+(_0x4a1916[_0x39f1c8(0xfe)]||_0x4a1916[_0x39f1c8(0xf3)]||_0x11fd23)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138_0x4a7937=a138_0x2510;function a138_0x2510(_0x5b74b7,_0x3f867f){_0x5b74b7=_0x5b74b7-0xac;const _0x54177f=a138_0x5417();let _0x251057=_0x54177f[_0x5b74b7];return _0x251057;}function a138_0x5417(){const _0x1a86ea=['valid','6111wLfGIF','errors','1328310rBTGSU','FlowConfig\x20is\x20valid.','11872fNhoND','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','3276203sZnXtD','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','Pass\x20--file\x20<path>.','validation','283646eyPQoG','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','str','string','write-normalized','none','normalized','1xqiIUt','boolean','658332TAGuFs','file','warnings','Unable\x20to\x20read\x20FlowConfig:\x20','read','bool','372812MWDKXV','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','message','FlowConfig\x20validation\x20failed.','2205595JKIWIB'];a138_0x5417=function(){return _0x1a86ea;};return a138_0x5417();}(function(_0x38eccc,_0xfbf6b3){const _0x34a10=a138_0x2510,_0x4883d3=_0x38eccc();while(!![]){try{const _0x34f8e9=-parseInt(_0x34a10(0xc2))/0x1*(-parseInt(_0x34a10(0xbb))/0x2)+parseInt(_0x34a10(0xb3))/0x3+-parseInt(_0x34a10(0xca))/0x4+parseInt(_0x34a10(0xaf))/0x5+-parseInt(_0x34a10(0xc4))/0x6+parseInt(_0x34a10(0xb7))/0x7+-parseInt(_0x34a10(0xb5))/0x8*(parseInt(_0x34a10(0xb1))/0x9);if(_0x34f8e9===_0xfbf6b3)break;else _0x4883d3['push'](_0x4883d3['shift']());}catch(_0xf98d27){_0x4883d3['push'](_0x4883d3['shift']());}}}(a138_0x5417,0x4522c));import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':'flow','command':'validate','description':a138_0x4a7937(0xb6),'risk':a138_0x4a7937(0xc8),'auth':a138_0x4a7937(0xc0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a138_0x4a7937(0xc5),'type':a138_0x4a7937(0xbe),'required':!![],'description':a138_0x4a7937(0xbc)},{'name':a138_0x4a7937(0xbf),'type':a138_0x4a7937(0xc3),'description':a138_0x4a7937(0xac)}],async 'execute'(_0xa576af){const _0x22a896=a138_0x4a7937,_0x2f83a1=_0xa576af[_0x22a896(0xbd)](_0x22a896(0xc5))['trim']();if(!_0x2f83a1)throw CliErrors['flagMissing'](_0x22a896(0xc5),_0x22a896(0xb9));let _0x3ad35e;try{_0x3ad35e=await readFlowConfigFile(_0x2f83a1);}catch(_0x22e7a0){const _0x3bebce=_0x22e7a0 instanceof Error?_0x22e7a0[_0x22a896(0xad)]:String(_0x22e7a0);throw CliErrors[_0x22a896(0xba)](_0x22a896(0xc7)+_0x3bebce);}const _0x10d605=validateFlowConfig(_0x3ad35e),_0xcc6f94=_0xa576af[_0x22a896(0xc9)](_0x22a896(0xbf));let _0x3a7cd5=![];return _0xcc6f94&&_0x10d605[_0x22a896(0xb0)]&&(await writeNormalizedFlowConfig(_0x2f83a1,_0x10d605['normalized']),_0x3a7cd5=!![]),{'ok':_0x10d605[_0x22a896(0xb0)],'data':{'valid':_0x10d605['valid'],'errors':_0x10d605[_0x22a896(0xb2)],'warnings':_0x10d605[_0x22a896(0xc6)],'normalized':_0x10d605[_0x22a896(0xc1)],..._0xcc6f94?{'written':_0x3a7cd5}:{}},'message':_0x10d605[_0x22a896(0xb0)]?_0x3a7cd5?_0x22a896(0xb8):_0x22a896(0xb4):_0x22a896(0xae)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x1c7d71=a139_0x5f09;(function(_0x2ad525,_0x5721e5){const _0x43fc1c=a139_0x5f09,_0x5a9234=_0x2ad525();while(!![]){try{const _0xd1492=parseInt(_0x43fc1c(0x138))/0x1*(parseInt(_0x43fc1c(0x134))/0x2)+parseInt(_0x43fc1c(0x141))/0x3*(parseInt(_0x43fc1c(0x13e))/0x4)+-parseInt(_0x43fc1c(0x137))/0x5+-parseInt(_0x43fc1c(0x146))/0x6+-parseInt(_0x43fc1c(0x142))/0x7*(-parseInt(_0x43fc1c(0x13a))/0x8)+parseInt(_0x43fc1c(0x145))/0x9*(parseInt(_0x43fc1c(0x13f))/0xa)+-parseInt(_0x43fc1c(0x133))/0xb*(parseInt(_0x43fc1c(0x13c))/0xc);if(_0xd1492===_0x5721e5)break;else _0x5a9234['push'](_0x5a9234['shift']());}catch(_0x396548){_0x5a9234['push'](_0x5a9234['shift']());}}}(a139_0x239e,0xb5a63));function a139_0x239e(){const _0xbcd3b=['824489QFzXbm','policyFilePath','1604360nuUGxp','read','8336652BHzUBz','Current\x20Instant\x20API\x20policy\x20revision\x20','1113908RgZfvq','10RSPETj','policyRelativePath','3IdUxgn','14XScJBF','current','instant-api-policy','6447879tMNcox','4297974ISoimc','11fFhUdA','2IqDEPY','revision','appCode','327010BkIIxj'];a139_0x239e=function(){return _0xbcd3b;};return a139_0x239e();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a139_0x5f09(_0x478e1c,_0x2802b9){_0x478e1c=_0x478e1c-0x133;const _0x239e75=a139_0x239e();let _0x5f0976=_0x239e75[_0x478e1c];return _0x5f0976;}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a139_0x1c7d71(0x144),'command':a139_0x1c7d71(0x143),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a139_0x1c7d71(0x13b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x36c3e4){const _0x2df790=a139_0x1c7d71,_0x23d96f=loadInstantApiPolicyLocalConfig(_0x36c3e4[_0x2df790(0x136)]),_0x5669d9=await getCurrentInstantApiPolicy(_0x36c3e4[_0x2df790(0x136)]);return{'ok':!![],'data':{'appCode':_0x36c3e4[_0x2df790(0x136)],'configured':_0x5669d9!==null,'filePath':_0x23d96f[_0x2df790(0x139)],'relativePath':_0x23d96f[_0x2df790(0x140)],'policy':projectCurrentPolicy(_0x5669d9)},'message':_0x5669d9?_0x2df790(0x13d)+_0x5669d9[_0x2df790(0x135)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x36c3e4[_0x2df790(0x136)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a140_0x2988(_0x41816f,_0x28e354){_0x41816f=_0x41816f-0x121;const _0xb334f3=a140_0xb334();let _0x2988be=_0xb334f3[_0x41816f];return _0x2988be;}(function(_0x5eb80b,_0xf13fd){const _0x36a95e=a140_0x2988,_0x18f9f6=_0x5eb80b();while(!![]){try{const _0x149b59=parseInt(_0x36a95e(0x126))/0x1+parseInt(_0x36a95e(0x122))/0x2*(parseInt(_0x36a95e(0x121))/0x3)+parseInt(_0x36a95e(0x127))/0x4*(parseInt(_0x36a95e(0x125))/0x5)+-parseInt(_0x36a95e(0x128))/0x6+parseInt(_0x36a95e(0x124))/0x7+parseInt(_0x36a95e(0x129))/0x8+-parseInt(_0x36a95e(0x123))/0x9;if(_0x149b59===_0xf13fd)break;else _0x18f9f6['push'](_0x18f9f6['shift']());}catch(_0xbdd113){_0x18f9f6['push'](_0x18f9f6['shift']());}}}(a140_0xb334,0x64271));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';function a140_0xb334(){const _0x318379=['1133770mtpHzp','163218dAGVSx','4EkUvqC','422634qjEIDg','5028280CAlScY','3qYzrhn','796990JpISPC','10393893TZTEhX','1529773CpWJQa'];a140_0xb334=function(){return _0x318379;};return a140_0xb334();}import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a141_0x3724(){const _0x10daad=['2somjZX','Created','policyFilePath','write','allow','355842rFmIqv','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','818214TFXqUY','602936wgfWAp','str','deny','bool','\x20Instant\x20API\x20policy\x20file\x20for\x20','policyRelativePath','3114390QLwJZf','22IFCFDh','921489nmJBbw','970siYOVA','183485JCFvwp','14yoWcMo','default-action','Replaced','appCode','init','string','Kept','1420FVTclj','force','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','action','instant-api-policy'];a141_0x3724=function(){return _0x10daad;};return a141_0x3724();}const a141_0x233bf3=a141_0x532c;(function(_0x13f447,_0x511266){const _0x2f5204=a141_0x532c,_0x38e276=_0x13f447();while(!![]){try{const _0x3ccfa2=parseInt(_0x2f5204(0x95))/0x1+-parseInt(_0x2f5204(0xa2))/0x2*(parseInt(_0x2f5204(0x93))/0x3)+-parseInt(_0x2f5204(0x9d))/0x4*(-parseInt(_0x2f5204(0x94))/0x5)+-parseInt(_0x2f5204(0x8a))/0x6*(parseInt(_0x2f5204(0x96))/0x7)+-parseInt(_0x2f5204(0x8b))/0x8+-parseInt(_0x2f5204(0x88))/0x9+-parseInt(_0x2f5204(0x91))/0xa*(-parseInt(_0x2f5204(0x92))/0xb);if(_0x3ccfa2===_0x511266)break;else _0x38e276['push'](_0x38e276['shift']());}catch(_0xaadb36){_0x38e276['push'](_0x38e276['shift']());}}}(a141_0x3724,0x2c0cb));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a141_0x532c(_0x4ca117,_0x41aaa9){_0x4ca117=_0x4ca117-0x87;const _0x3724b7=a141_0x3724();let _0x532c03=_0x3724b7[_0x4ca117];return _0x532c03;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a141_0x233bf3(0xa1),'command':a141_0x233bf3(0x9a),'description':a141_0x233bf3(0x89),'risk':a141_0x233bf3(0xa5),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a141_0x233bf3(0x97),'type':a141_0x233bf3(0x9b),'enum':['allow',a141_0x233bf3(0x8d)],'default':a141_0x233bf3(0x87),'description':a141_0x233bf3(0x9f)},FORCE_FLAG],async 'validate'(_0x475a74){requireForceConfirmation(_0x475a74);},async 'execute'(_0x948acb){const _0x5def1a=a141_0x233bf3;requireForceConfirmation(_0x948acb);const _0xc317a2=_0x948acb[_0x5def1a(0x8c)](_0x5def1a(0x97))===_0x5def1a(0x8d)?'deny':_0x5def1a(0x87),_0x66a8a7=loadInstantApiPolicyLocalConfig(_0x948acb[_0x5def1a(0x99)]),_0x27d742=createDefaultInstantApiPolicyConfig(_0x948acb[_0x5def1a(0x99)],_0xc317a2),_0x29e671=await writeInstantApiPolicyConfigFile(_0x66a8a7,_0x27d742,{'force':_0x948acb[_0x5def1a(0x8e)](_0x5def1a(0x9e))}),_0x4ca052={'created':_0x5def1a(0xa3),'overwritten':_0x5def1a(0x98),'unchanged':_0x5def1a(0x9c)}[_0x29e671['action']];return{'ok':!![],'data':{'operation':_0x5def1a(0x9a),'selector':{'appCode':_0x948acb[_0x5def1a(0x99)]},'filePath':_0x66a8a7[_0x5def1a(0xa4)],'relativePath':_0x66a8a7[_0x5def1a(0x90)],'action':_0x29e671[_0x5def1a(0xa0)],'config':_0x27d742},'message':_0x4ca052+_0x5def1a(0x8f)+_0x948acb[_0x5def1a(0x99)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a142_0xe51666=a142_0x5cc5;function a142_0x523e(){const _0x374481=['config','high-risk-write','instant-api-policy','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','instant_api_policy_publish_outcome_unknown','4218950TtifgU','3079326BViURD','POST','3901599efQUBz','verified','policyRelativePath','before','expectedRevision','policyFilePath','101563JMNkKo','all','validation','1118594GjcSzA','local','configHash','cause','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','5dVgTXI','publish','Inspect\x20with\x20`','changeSummary','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','/publish','revision','8IiXksa','3ehswsE','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','appCode','instant_api_policy_publish_verification_unavailable','Published\x20Instant\x20API\x20policy\x20revision\x20','1391396yBpIsm','`;\x20do\x20not\x20resubmit\x20automatically.','727979IfNmpY'];a142_0x523e=function(){return _0x374481;};return a142_0x523e();}(function(_0x6d7e45,_0x29ab43){const _0x556d81=a142_0x5cc5,_0x31e23=_0x6d7e45();while(!![]){try{const _0xb2beb=parseInt(_0x556d81(0x123))/0x1+-parseInt(_0x556d81(0x126))/0x2*(-parseInt(_0x556d81(0x133))/0x3)+parseInt(_0x556d81(0x138))/0x4*(parseInt(_0x556d81(0x12b))/0x5)+-parseInt(_0x556d81(0x141))/0x6+parseInt(_0x556d81(0x13a))/0x7*(-parseInt(_0x556d81(0x132))/0x8)+parseInt(_0x556d81(0x143))/0x9+-parseInt(_0x556d81(0x140))/0xa;if(_0xb2beb===_0x29ab43)break;else _0x31e23['push'](_0x31e23['shift']());}catch(_0x54843d){_0x31e23['push'](_0x31e23['shift']());}}}(a142_0x523e,0x626a3));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a142_0x5cc5(_0x4b99fc,_0x48359e){_0x4b99fc=_0x4b99fc-0x11f;const _0x523ece=a142_0x523e();let _0x5cc5bc=_0x523ece[_0x4b99fc];return _0x5cc5bc;}async function preparePublish(_0x378d93){const _0x3e523b=a142_0x5cc5,{local:_0x18ebf5,config:_0x5b74e2}=await readFixedPolicy(_0x378d93),_0x31f15b=readChangeSummary(_0x378d93),_0x1e10fe=readExpectedRevision(_0x378d93),[_0xe891e6,_0x4db8bb]=await Promise[_0x3e523b(0x124)]([getCurrentInstantApiPolicy(_0x378d93['appCode']),validateInstantApiPolicy({'appCode':_0x378d93[_0x3e523b(0x135)],'config':_0x5b74e2})]);return assertExpectedRevision(_0xe891e6,_0x1e10fe),{'local':_0x18ebf5,'config':_0x5b74e2,'changeSummary':_0x31f15b,'expectedRevision':_0x1e10fe,'before':_0xe891e6,'validation':_0x4db8bb};}export const instantApiPolicyPublish={'service':a142_0xe51666(0x13d),'command':a142_0xe51666(0x12c),'description':a142_0xe51666(0x134),'risk':a142_0xe51666(0x13c),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0xe51666(0x13e),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x312994){readChangeSummary(_0x312994),readExpectedRevision(_0x312994);},async 'dryRun'(_0x4df1ea){const _0x550fff=a142_0xe51666,_0x38a6db=await preparePublish(_0x4df1ea);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x4df1ea[_0x550fff(0x135)]},'before':projectCurrentPolicy(_0x38a6db[_0x550fff(0x120)]),'after':{'revision':_0x38a6db[_0x550fff(0x120)]?_0x38a6db[_0x550fff(0x120)]['revision']+0x1:0x1,'configHash':_0x38a6db[_0x550fff(0x125)][_0x550fff(0x128)],'config':_0x38a6db[_0x550fff(0x125)]['normalizedConfig']},'filePath':_0x38a6db[_0x550fff(0x127)]['policyFilePath'],'relativePath':_0x38a6db[_0x550fff(0x127)][_0x550fff(0x11f)],'dryRun':!![],'backend':{'method':_0x550fff(0x142),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x38a6db['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x38a6db[_0x550fff(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x550fff(0x130)});},async 'execute'(_0x5bbe9e){const _0xfec329=a142_0xe51666,_0x9625c6=await preparePublish(_0x5bbe9e);let _0x347b5d=![];try{await publishInstantApiPolicy({'appCode':_0x5bbe9e[_0xfec329(0x135)],'config':_0x9625c6[_0xfec329(0x13b)],..._0x9625c6[_0xfec329(0x12e)]?{'changeSummary':_0x9625c6[_0xfec329(0x12e)]}:{}});}catch(_0x4a5f65){if(!isPlatformTransportFailure(_0x4a5f65))throw _0x4a5f65;_0x347b5d=!![];}let _0x2dedee;try{_0x2dedee=await getCurrentInstantApiPolicy(_0x5bbe9e[_0xfec329(0x135)]);}catch(_0x2fb268){const _0x7217d5=instantApiPolicyError(_0x347b5d?'instant_api_policy_publish_outcome_unknown':_0xfec329(0x136),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xfec329(0x12d)+mutationLookupCommand()+_0xfec329(0x139));Object['defineProperty'](_0x7217d5,_0xfec329(0x129),{'value':_0x2fb268,'enumerable':![]});throw _0x7217d5;}const _0x5e18d9=_0x2dedee&&(_0x9625c6['before']===null||_0x2dedee[_0xfec329(0x131)]>_0x9625c6['before']['revision']),_0xb6ccd6=_0x2dedee?.[_0xfec329(0x128)]===_0x9625c6[_0xfec329(0x125)][_0xfec329(0x128)];if(!_0x2dedee||!_0x5e18d9||!_0xb6ccd6)throw instantApiPolicyError(_0x347b5d?_0xfec329(0x13f):'instant_api_policy_publish_verification_failed',_0xfec329(0x12a),'Inspect\x20with\x20`'+mutationLookupCommand()+_0xfec329(0x139));const _0x5688ba=[...expectedRevisionWarnings(_0x9625c6['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x347b5d&&_0x5688ba['push'](_0xfec329(0x12f)),{'ok':!![],'data':{'operation':_0xfec329(0x12c),'selector':{'appCode':_0x5bbe9e[_0xfec329(0x135)]},'before':projectCurrentPolicy(_0x9625c6[_0xfec329(0x120)]),'after':projectCurrentPolicy(_0x2dedee),'filePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x122)],'relativePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x11f)],'dryRun':![],'backend':{'method':_0xfec329(0x142),'path':INSTANT_API_POLICY_BASE_PATH+_0xfec329(0x130)},'warnings':_0x5688ba,'verification':{'status':_0xfec329(0x144),'recoveredAfterUnknownResponse':_0x347b5d,'expectedRevision':_0x9625c6[_0xfec329(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xfec329(0x137)+_0x2dedee[_0xfec329(0x131)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143_0x1ee985=a143_0x477a;(function(_0x235ec7,_0x292660){const _0x371199=a143_0x477a,_0xa0bbd4=_0x235ec7();while(!![]){try{const _0x4779ab=parseInt(_0x371199(0x1ce))/0x1+parseInt(_0x371199(0x1ca))/0x2+-parseInt(_0x371199(0x1d1))/0x3+-parseInt(_0x371199(0x1c4))/0x4*(-parseInt(_0x371199(0x1cf))/0x5)+parseInt(_0x371199(0x1bf))/0x6*(parseInt(_0x371199(0x1cb))/0x7)+parseInt(_0x371199(0x1c6))/0x8+-parseInt(_0x371199(0x1c9))/0x9;if(_0x4779ab===_0x292660)break;else _0xa0bbd4['push'](_0xa0bbd4['shift']());}catch(_0x5302e0){_0xa0bbd4['push'](_0xa0bbd4['shift']());}}}(a143_0x5c66,0xe4f26));function a143_0x477a(_0x1bc95f,_0x30fc13){_0x1bc95f=_0x1bc95f-0x1ba;const _0x5c66b5=a143_0x5c66();let _0x477a93=_0x5c66b5[_0x1bc95f];return _0x477a93;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a143_0x5c66(){const _0x26e1f2=['revision','8122674RtoEqT','write','appCode','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','force','1661348FYnXFt','instant_api_policy_not_configured','30256srjkxp','pull','config','42112278aBvtoX','3668944eFkoBq','7NjgUgB','instant-api-policy','bool','781409LXRhYz','20MSdHkt','unchanged','53646yGspXI','action','policyRelativePath','configHash','policyFilePath'];a143_0x5c66=function(){return _0x26e1f2;};return a143_0x5c66();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x1ee985(0x1cc),'command':a143_0x1ee985(0x1c7),'description':a143_0x1ee985(0x1c2),'risk':a143_0x1ee985(0x1c0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1acf33){requireForceConfirmation(_0x1acf33);},async 'execute'(_0x4c0939){const _0x5542a8=a143_0x1ee985;requireForceConfirmation(_0x4c0939);const _0x34c9be=await getCurrentInstantApiPolicy(_0x4c0939[_0x5542a8(0x1c1)]);if(!_0x34c9be)throw instantApiPolicyError(_0x5542a8(0x1c5),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x4c0939[_0x5542a8(0x1c1)]+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x1b6a2d=loadInstantApiPolicyLocalConfig(_0x4c0939[_0x5542a8(0x1c1)]),_0x2f65b5=await writeInstantApiPolicyConfigFile(_0x1b6a2d,_0x34c9be[_0x5542a8(0x1c8)],{'force':_0x4c0939[_0x5542a8(0x1cd)](_0x5542a8(0x1c3))});return{'ok':!![],'data':{'operation':_0x5542a8(0x1c7),'selector':{'appCode':_0x4c0939[_0x5542a8(0x1c1)],'revision':_0x34c9be[_0x5542a8(0x1be)]},'filePath':_0x1b6a2d[_0x5542a8(0x1bd)],'relativePath':_0x1b6a2d[_0x5542a8(0x1bb)],'action':_0x2f65b5[_0x5542a8(0x1ba)],'configHash':_0x34c9be[_0x5542a8(0x1bc)]},'message':(_0x2f65b5[_0x5542a8(0x1ba)]===_0x5542a8(0x1d0)?'Kept':'Pulled')+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x34c9be[_0x5542a8(0x1be)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x1b8185=a144_0x4fb6;(function(_0x295827,_0x8afc62){const _0x431b0e=a144_0x4fb6,_0x225209=_0x295827();while(!![]){try{const _0x1e442a=parseInt(_0x431b0e(0x19a))/0x1+-parseInt(_0x431b0e(0x195))/0x2*(parseInt(_0x431b0e(0x19f))/0x3)+-parseInt(_0x431b0e(0x19b))/0x4*(-parseInt(_0x431b0e(0x1a1))/0x5)+-parseInt(_0x431b0e(0x198))/0x6*(-parseInt(_0x431b0e(0x196))/0x7)+-parseInt(_0x431b0e(0x199))/0x8*(-parseInt(_0x431b0e(0x193))/0x9)+-parseInt(_0x431b0e(0x197))/0xa*(-parseInt(_0x431b0e(0x1a0))/0xb)+-parseInt(_0x431b0e(0x19e))/0xc;if(_0x1e442a===_0x8afc62)break;else _0x225209['push'](_0x225209['shift']());}catch(_0x3006c9){_0x225209['push'](_0x225209['shift']());}}}(a144_0x3b0e,0x22d19));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x4fb6(_0x115eac,_0x5bea5d){_0x115eac=_0x115eac-0x193;const _0x3b0e21=a144_0x3b0e();let _0x4fb675=_0x3b0e21[_0x115eac];return _0x4fb675;}function a144_0x3b0e(){const _0x1f2c66=['243tNapnX','823702EDeQzu','55445FGsuJl','999CrQCMw','Loaded\x20Instant\x20API\x20policy\x20revision\x20','5290nJSyjx','29960ULoKhP','30xIZYOb','162oifhmv','11752vzqiQZ','53027dAmkfi','52nApTQL','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','read','4123044Dheyiq'];a144_0x3b0e=function(){return _0x1f2c66;};return a144_0x3b0e();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a144_0x1b8185(0x19c),'risk':a144_0x1b8185(0x19d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x24e093){readRevision(_0x24e093);},async 'execute'(_0x1bba46){const _0x180ea5=a144_0x1b8185,_0x2d18a6=readRevision(_0x1bba46),_0x259326=await getInstantApiPolicyRevision(_0x1bba46['appCode'],_0x2d18a6);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x259326)},'message':_0x180ea5(0x194)+_0x2d18a6};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x4145cf=a145_0x584f;function a145_0x584f(_0x57fc39,_0x55b3cf){_0x57fc39=_0x57fc39-0x112;const _0x5d3c67=a145_0x5d3c();let _0x584fc2=_0x5d3c67[_0x57fc39];return _0x584fc2;}(function(_0x14d9f5,_0x40f7bb){const _0x233b5e=a145_0x584f,_0x56b4af=_0x14d9f5();while(!![]){try{const _0x59e1ca=parseInt(_0x233b5e(0x113))/0x1*(-parseInt(_0x233b5e(0x11c))/0x2)+parseInt(_0x233b5e(0x118))/0x3*(parseInt(_0x233b5e(0x115))/0x4)+parseInt(_0x233b5e(0x114))/0x5+parseInt(_0x233b5e(0x119))/0x6+parseInt(_0x233b5e(0x112))/0x7*(parseInt(_0x233b5e(0x116))/0x8)+-parseInt(_0x233b5e(0x11f))/0x9*(parseInt(_0x233b5e(0x120))/0xa)+parseInt(_0x233b5e(0x117))/0xb*(-parseInt(_0x233b5e(0x11b))/0xc);if(_0x59e1ca===_0x40f7bb)break;else _0x56b4af['push'](_0x56b4af['shift']());}catch(_0x31c3c2){_0x56b4af['push'](_0x56b4af['shift']());}}}(a145_0x5d3c,0x5702b));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a145_0x5d3c(){const _0x1e8556=['200KfkBAP','appCode','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','7kTDbUp','106LYzxrg','826575SToetR','3364OYRbKN','1476208rVccrM','275ADWOCX','1299RlueQW','2002518ezTsnj','map','49656kvyEdD','8014HNfXkC','\x20Instant\x20API\x20policy\x20revision(s)','length','73422PsmLCI'];a145_0x5d3c=function(){return _0x1e8556;};return a145_0x5d3c();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':'revisions','description':a145_0x4145cf(0x122),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5527f4){const _0x386b4e=a145_0x4145cf,_0x47c4cb=await listInstantApiPolicyRevisions(_0x5527f4[_0x386b4e(0x121)]);return{'ok':!![],'data':{'appCode':_0x5527f4[_0x386b4e(0x121)],'total':_0x47c4cb[_0x386b4e(0x11e)],'revisions':_0x47c4cb[_0x386b4e(0x11a)](projectRevisionSummary)},'message':'Found\x20'+_0x47c4cb[_0x386b4e(0x11e)]+_0x386b4e(0x11d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a146_0x1ff20f=a146_0x589a;(function(_0x26d248,_0x5d37d3){const _0xf65dc6=a146_0x589a,_0x100531=_0x26d248();while(!![]){try{const _0xa22c2e=parseInt(_0xf65dc6(0x16d))/0x1+parseInt(_0xf65dc6(0x170))/0x2+-parseInt(_0xf65dc6(0x16e))/0x3+-parseInt(_0xf65dc6(0x16b))/0x4+-parseInt(_0xf65dc6(0x17f))/0x5*(parseInt(_0xf65dc6(0x174))/0x6)+parseInt(_0xf65dc6(0x178))/0x7+-parseInt(_0xf65dc6(0x160))/0x8*(-parseInt(_0xf65dc6(0x16c))/0x9);if(_0xa22c2e===_0x5d37d3)break;else _0x100531['push'](_0x100531['shift']());}catch(_0x900847){_0x100531['push'](_0x100531['shift']());}}}(a146_0x4b28,0x64be7));function a146_0x4b28(){const _0x219f9d=['Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','high-risk-write','/rollback','777054ADQMLn','appCode','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','target','5705553XDbOJh','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','Inspect\x20with\x20`','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','verified','all','10hzrfPJ','planned','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','instant-api-policy','expectedRevision','72fQxhbR','rollback','Rolled\x20Instant\x20API\x20policy\x20revision\x20','\x20forward\x20to\x20revision\x20','POST','configHash','instant_api_policy_rollback_verification_failed','before','defineProperty','`;\x20do\x20not\x20resubmit\x20automatically.','changeSummary','1755796tOoDzi','61848YzjlOY','465851hiHoOr','1086516RGnsQW','instant_api_policy_rollback_outcome_unknown','260016TWYNJs'];a146_0x4b28=function(){return _0x219f9d;};return a146_0x4b28();}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';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 a146_0x589a(_0x5cf1d8,_0xbc2fd6){_0x5cf1d8=_0x5cf1d8-0x15f;const _0x4b28aa=a146_0x4b28();let _0x589a46=_0x4b28aa[_0x5cf1d8];return _0x589a46;}async function prepareRollback(_0x59d1fb){const _0xe6b5cb=a146_0x589a,_0x260710=readRevision(_0x59d1fb),_0xe5db1b=readChangeSummary(_0x59d1fb),_0x34282f=readExpectedRevision(_0x59d1fb),[_0x214d7c,_0x2872c6]=await Promise[_0xe6b5cb(0x17e)]([getCurrentInstantApiPolicy(_0x59d1fb[_0xe6b5cb(0x175)]),getInstantApiPolicyRevision(_0x59d1fb[_0xe6b5cb(0x175)],_0x260710)]);if(!_0x214d7c)throw instantApiPolicyError('instant_api_policy_not_configured',_0xe6b5cb(0x17b)+_0x59d1fb['appCode']+'.');return assertExpectedRevision(_0x214d7c,_0x34282f),{'revision':_0x260710,'changeSummary':_0xe5db1b,'expectedRevision':_0x34282f,'before':_0x214d7c,'target':_0x2872c6};}export const instantApiPolicyRollback={'service':a146_0x1ff20f(0x182),'command':'rollback','description':a146_0x1ff20f(0x176),'risk':a146_0x1ff20f(0x172),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x1ff20f(0x179),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x244972){readRevision(_0x244972),readChangeSummary(_0x244972),readExpectedRevision(_0x244972);},async 'dryRun'(_0x1cdb77){const _0x4b93c1=a146_0x1ff20f,_0x2be3e0=await prepareRollback(_0x1cdb77);return asDryRunResult({'operation':_0x4b93c1(0x161),'selector':{'appCode':_0x1cdb77['appCode'],'sourceRevision':_0x2be3e0[_0x4b93c1(0x17c)]},'before':projectCurrentPolicy(_0x2be3e0[_0x4b93c1(0x167)]),'after':{'revision':_0x2be3e0[_0x4b93c1(0x167)][_0x4b93c1(0x17c)]+0x1,'sourceRevision':projectRevisionDetail(_0x2be3e0['target'])},'dryRun':!![],'backend':{'method':_0x4b93c1(0x164),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x2be3e0[_0x4b93c1(0x15f)]),'verification':{'status':_0x4b93c1(0x180),'expectedRevision':_0x2be3e0[_0x4b93c1(0x15f)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x4b93c1(0x164),'url':INSTANT_API_POLICY_BASE_PATH+_0x4b93c1(0x173)});},async 'execute'(_0x4b2a48){const _0x1624cc=a146_0x1ff20f,_0x33d03b=await prepareRollback(_0x4b2a48);let _0x220d50=![];try{await rollbackInstantApiPolicy({'appCode':_0x4b2a48[_0x1624cc(0x175)],'revision':_0x33d03b[_0x1624cc(0x17c)],..._0x33d03b[_0x1624cc(0x16a)]?{'changeSummary':_0x33d03b['changeSummary']}:{}});}catch(_0x32d0df){if(!isPlatformTransportFailure(_0x32d0df))throw _0x32d0df;_0x220d50=!![];}let _0x23a6b3;try{_0x23a6b3=await getCurrentInstantApiPolicy(_0x4b2a48['appCode']);}catch(_0x16153b){const _0x3b186d=instantApiPolicyError(_0x220d50?_0x1624cc(0x16f):'instant_api_policy_rollback_verification_unavailable','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+_0x1624cc(0x169));Object[_0x1624cc(0x168)](_0x3b186d,'cause',{'value':_0x16153b,'enumerable':![]});throw _0x3b186d;}const _0x4fca07=_0x23a6b3&&_0x23a6b3[_0x1624cc(0x17c)]>_0x33d03b[_0x1624cc(0x167)][_0x1624cc(0x17c)],_0x58221e=_0x23a6b3?.[_0x1624cc(0x165)]===_0x33d03b[_0x1624cc(0x177)][_0x1624cc(0x165)];if(!_0x23a6b3||!_0x4fca07||!_0x58221e)throw instantApiPolicyError(_0x220d50?'instant_api_policy_rollback_outcome_unknown':_0x1624cc(0x166),_0x1624cc(0x181),_0x1624cc(0x17a)+mutationLookupCommand()+_0x1624cc(0x169));const _0x3d635c=[...expectedRevisionWarnings(_0x33d03b['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x220d50&&_0x3d635c['push'](_0x1624cc(0x171)),{'ok':!![],'data':{'operation':_0x1624cc(0x161),'selector':{'appCode':_0x4b2a48['appCode'],'sourceRevision':_0x33d03b['revision']},'before':projectCurrentPolicy(_0x33d03b['before']),'after':projectCurrentPolicy(_0x23a6b3),'dryRun':![],'backend':{'method':_0x1624cc(0x164),'path':INSTANT_API_POLICY_BASE_PATH+_0x1624cc(0x173)},'warnings':_0x3d635c,'verification':{'status':_0x1624cc(0x17d),'recoveredAfterUnknownResponse':_0x220d50,'expectedRevision':_0x33d03b[_0x1624cc(0x15f)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1624cc(0x162)+_0x33d03b[_0x1624cc(0x17c)]+_0x1624cc(0x163)+_0x23a6b3[_0x1624cc(0x17c)]};}};
|