@lovrabet/lovrabet-cli 2.3.0-beta.5 → 2.3.0
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/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.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/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.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/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.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/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +2 -0
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.d.ts +1 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.d.ts +9 -7
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.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/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/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x2b4f19=a43_0xb177;(function(_0x8a8c00,_0xb72009){const _0x2d7054=a43_0xb177,_0x6fbb89=_0x8a8c00();while(!![]){try{const _0x541fbc=-parseInt(_0x2d7054(0x208))/0x1+-parseInt(_0x2d7054(0x1f7))/0x2*(parseInt(_0x2d7054(0x1e8))/0x3)+parseInt(_0x2d7054(0x1e7))/0x4*(-parseInt(_0x2d7054(0x1e4))/0x5)+parseInt(_0x2d7054(0x207))/0x6*(parseInt(_0x2d7054(0x1ed))/0x7)+-parseInt(_0x2d7054(0x206))/0x8+-parseInt(_0x2d7054(0x204))/0x9*(parseInt(_0x2d7054(0x209))/0xa)+parseInt(_0x2d7054(0x200))/0xb;if(_0x541fbc===_0xb72009)break;else _0x6fbb89['push'](_0x6fbb89['shift']());}catch(_0x27b9b0){_0x6fbb89['push'](_0x6fbb89['shift']());}}}(a43_0x9cdb,0xeadab));import{getRuntimePagePermit,saveRuntimePagePermit}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a43_0xb177(_0x1f95ca,_0x1d6cfb){_0x1f95ca=_0x1f95ca-0x1e1;const _0x9cdbbb=a43_0x9cdb();let _0xb177bd=_0x9cdbbb[_0x1f95ca];return _0xb177bd;}import{dryRun}from'../../framework/dryrun.js';import{assertRuntimePermissionManager,MENU_ID_FLAG,PAGE_ROLE_FLAGS,PAGE_SLOT_SPECS,projectRuntimePagePermit,resolveRuntimePermitRoles,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a43_0x9cdb(){const _0x825b71=['763EqEIGv','validation','slots','Set\x20selected\x20runtime\x20page\x20permission\x20slots','str','flag','description','page-set','POST','build','9668GjBljJ','key','high-risk-write','appCode','Changes\x20role\x20permission\x20slots\x20on\x20the\x20given\x20runtime\x20page.\x20Unauthorized\x20users\x20may\x20be\x20unable\x20to\x20view\x20the\x20page\x20or\x20run\x20data\x20operations.','page','push','Menu\x20','allowSelf','55344135zMsJhL','rolePermit','Pass\x20at\x20least\x20one\x20page\x20role\x20flag\x20to\x20update.','\x20does\x20not\x20belong\x20to\x20app\x20','2079xHDXVw','permit','14757768SFarSK','81192StYEMh','922309CfrNVB','15900qltkOs','\x20does\x20not\x20expose\x20','Preview:\x20update\x20page\x20permission\x20slots\x20','join','3197085GwRIMa','Page\x20menu\x20','/client/permit/page/save','8kFNxEG','702SpxdNq','before','body','menu-id','menuId'];a43_0x9cdb=function(){return _0x825b71;};return a43_0x9cdb();}async function prepare(_0x341a87){const _0x5b2a70=a43_0xb177;await assertRuntimePermissionManager(_0x341a87[_0x5b2a70(0x1fa)]);const _0x5ce9c7=_0x341a87['num'](_0x5b2a70(0x1eb)),_0x56b5cd=await getRuntimePagePermit(_0x5ce9c7);if(_0x56b5cd[_0x5b2a70(0x1fa)]&&_0x56b5cd[_0x5b2a70(0x1fa)]!==_0x341a87[_0x5b2a70(0x1fa)])throw CliErrors[_0x5b2a70(0x1ee)](_0x5b2a70(0x1fe)+_0x5ce9c7+_0x5b2a70(0x203)+_0x341a87[_0x5b2a70(0x1fa)]+'.');const _0x292e1d=structuredClone(_0x56b5cd),_0x79a892=[];for(const _0x1c4a95 of PAGE_SLOT_SPECS){if(_0x341a87[_0x5b2a70(0x1f2)](_0x1c4a95['flag'])===undefined)continue;const _0x284d2f=_0x56b5cd[_0x1c4a95[_0x5b2a70(0x1f8)]];if(!_0x284d2f)throw CliErrors[_0x5b2a70(0x1ee)](_0x5b2a70(0x1e5)+_0x5ce9c7+_0x5b2a70(0x1e1)+_0x1c4a95[_0x5b2a70(0x1f8)]+'.');_0x284d2f[_0x5b2a70(0x201)]=await resolveRuntimePermitRoles(_0x341a87[_0x5b2a70(0x1fa)],splitRefs(_0x341a87[_0x5b2a70(0x1f1)](_0x1c4a95['flag']),'--'+_0x1c4a95[_0x5b2a70(0x1f2)]),_0x1c4a95[_0x5b2a70(0x1ff)]),_0x79a892[_0x5b2a70(0x1fd)](_0x1c4a95[_0x5b2a70(0x1f8)]);}if(_0x79a892['length']===0x0)throw CliErrors[_0x5b2a70(0x1ee)](_0x5b2a70(0x202));return{'menuId':_0x5ce9c7,'page':_0x56b5cd,'before':_0x292e1d,'slots':_0x79a892};}export const permitPageSet={'service':a43_0x2b4f19(0x205),'command':'page-set','description':a43_0x2b4f19(0x1f0),'risk':a43_0x2b4f19(0x1f9),'confirmationDescription':a43_0x2b4f19(0x1fb),'flags':[MENU_ID_FLAG,...PAGE_ROLE_FLAGS],async 'dryRun'(_0x487fff){const _0x7cb8ff=a43_0x2b4f19,_0x10af80=await prepare(_0x487fff);return dryRun(_0x7cb8ff(0x1f5),_0x7cb8ff(0x1e6))[_0x7cb8ff(0x1ea)](_0x10af80[_0x7cb8ff(0x1fc)])[_0x7cb8ff(0x1f3)](_0x7cb8ff(0x1e2)+_0x10af80[_0x7cb8ff(0x1ef)][_0x7cb8ff(0x1e3)](',\x20'))[_0x7cb8ff(0x1f6)]();},async 'execute'(_0x3a0161){const _0x312f06=a43_0x2b4f19,_0x170108=await prepare(_0x3a0161),_0x5b2d6f=await saveRuntimePagePermit(_0x170108[_0x312f06(0x1fc)]);return{'ok':!![],'data':runtimePermitWriteResult(_0x312f06(0x1f4),{'menuId':_0x170108[_0x312f06(0x1ec)],'slots':_0x170108[_0x312f06(0x1ef)]},projectRuntimePagePermit(_0x170108[_0x312f06(0x1e9)]),projectRuntimePagePermit(_0x5b2d6f),{'method':_0x312f06(0x1f5),'path':_0x312f06(0x1e6)})};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44_0x4f4d(){const _0x19ea89=['18UgbuTD','body','\x20was\x20not\x20found.','Invalid\x20runtime\x20menu\x20ID:\x20','bool','isSafeInteger','changed','menu-','str','264828ATEcZB','length','push','appCode','roles','218268yfFgjC','\x20selected\x20runtime\x20menus','string','rolePermit','Preview:\x20','4640cSVhAo','--menus','46302BiGuBC','test','validation','revoke','14328lkqjtu','19647001OeNOMv','warnings','role-menus-set','permitList','\x20for\x20role\x20','after','high-risk-write','/client/permit/resource/batch-save-menu','POST','Runtime\x20menu\x20','build','Grants\x20or\x20revokes\x20the\x20target\x20role\x20access\x20to\x20the\x20given\x20runtime\x20menus.\x20Menu\x20visibility\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','2006912qcKyuv','menus','294989DFFSWs','grant','description','Grant\x20or\x20revoke\x20selected\x20runtime\x20menus\x20for\x20one\x20role','permit','operation','28TjshoS','370cqBQeb','role'];a44_0x4f4d=function(){return _0x19ea89;};return a44_0x4f4d();}const a44_0x4f928b=a44_0x24d0;(function(_0x18bc79,_0x41e8c9){const _0x15d1a3=a44_0x24d0,_0x1ce956=_0x18bc79();while(!![]){try{const _0x257282=parseInt(_0x15d1a3(0x156))/0x1+parseInt(_0x15d1a3(0x168))/0x2*(parseInt(_0x15d1a3(0x15f))/0x3)+-parseInt(_0x15d1a3(0x16d))/0x4+parseInt(_0x15d1a3(0x15d))/0x5*(-parseInt(_0x15d1a3(0x174))/0x6)+parseInt(_0x15d1a3(0x15c))/0x7*(-parseInt(_0x15d1a3(0x154))/0x8)+parseInt(_0x15d1a3(0x147))/0x9*(-parseInt(_0x15d1a3(0x172))/0xa)+parseInt(_0x15d1a3(0x148))/0xb;if(_0x257282===_0x41e8c9)break;else _0x1ce956['push'](_0x1ce956['shift']());}catch(_0x53d41f){_0x1ce956['push'](_0x1ce956['shift']());}}}(a44_0x4f4d,0x7bf93));import{listRuntimeMenuRolePermits,listRuntimePermitRoles,saveRuntimeMenuRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,flattenRuntimeMenuRolePermits,GRANT_FLAG,menuPermitDto,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const MENUS_FLAG={'name':a44_0x4f928b(0x155),'type':a44_0x4f928b(0x16f),'required':!![],'description':'Comma-separated\x20runtime\x20menu\x20IDs'};async function prepare(_0x1df170){const _0x27009b=a44_0x4f928b;await assertRuntimePermissionManager(_0x1df170[_0x27009b(0x16b)]);const _0x3c8bec=assertGrantOrRevoke(_0x1df170[_0x27009b(0x163)](_0x27009b(0x157)),_0x1df170['bool'](_0x27009b(0x146))),_0x553d96=await resolveRuntimeRoleRef(_0x1df170['appCode'],_0x1df170['str'](_0x27009b(0x15e)));assertRuntimePermitRoleConfigurable(_0x553d96);const _0x17321b=[...new Set(splitRefs(_0x1df170[_0x27009b(0x167)](_0x27009b(0x155)),_0x27009b(0x173))['map'](_0x3860e0=>{const _0xa68acf=_0x27009b,_0x3a5583=Number(_0x3860e0);if(!/^\d+$/[_0xa68acf(0x175)](_0x3860e0)||!Number[_0xa68acf(0x164)](_0x3a5583)||_0x3a5583<=0x0)throw CliErrors[_0xa68acf(0x176)](_0xa68acf(0x162)+_0x3860e0+'.');return _0x3a5583;}))],_0x2065df=flattenRuntimeMenuRolePermits(await listRuntimeMenuRolePermits(_0x1df170[_0x27009b(0x16b)])),_0x1ba488=await listRuntimePermitRoles(_0x1df170['appCode']),_0x453637=[],_0x58f501=[],_0xf39663=[],_0x2f0ccb=[];for(const _0x46bbba of _0x17321b){const _0x345f76=_0x2065df['find'](_0x2735a2=>_0x2735a2['id']===_0x46bbba);if(!_0x345f76)throw CliErrors[_0x27009b(0x176)](_0x27009b(0x151)+_0x46bbba+_0x27009b(0x161));const _0x2ec9b9=applyRuntimeRolePermission(_0x345f76[_0x27009b(0x170)],_0x553d96,_0x1ba488,_0x3c8bec);_0x58f501[_0x27009b(0x16a)]({'menuId':_0x46bbba,'rolePermit':_0x345f76['rolePermit']}),_0xf39663[_0x27009b(0x16a)]({'menuId':_0x46bbba,'rolePermit':_0x2ec9b9['roles']});if(_0x2ec9b9[_0x27009b(0x165)])_0x453637[_0x27009b(0x16a)](menuPermitDto(_0x1df170['appCode'],_0x345f76,_0x2ec9b9[_0x27009b(0x16c)]));else _0x2f0ccb['push']('Runtime\x20menu\x20'+_0x46bbba+'\x20already\x20reflects\x20'+_0x3c8bec+_0x27009b(0x14c)+_0x553d96['id']+'.');}return{'operation':_0x3c8bec,'role':_0x553d96,'menuIds':_0x17321b,'permitList':_0x453637,'before':_0x58f501,'after':_0xf39663,'warnings':_0x2f0ccb};}function a44_0x24d0(_0x2674ba,_0x3383e9){_0x2674ba=_0x2674ba-0x146;const _0x4f4de3=a44_0x4f4d();let _0x24d001=_0x4f4de3[_0x2674ba];return _0x24d001;}export const permitRoleMenusSet={'service':a44_0x4f928b(0x15a),'command':a44_0x4f928b(0x14a),'description':a44_0x4f928b(0x159),'risk':a44_0x4f928b(0x14e),'confirmationDescription':a44_0x4f928b(0x153),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,MENUS_FLAG],async 'validate'(_0x4042eb){const _0x4901b7=a44_0x4f928b;assertGrantOrRevoke(_0x4042eb[_0x4901b7(0x163)](_0x4901b7(0x157)),_0x4042eb[_0x4901b7(0x163)](_0x4901b7(0x146)));},async 'dryRun'(_0x340476){const _0x5c16f5=a44_0x4f928b,_0x49a34b=await prepare(_0x340476);return dryRun(_0x5c16f5(0x150),_0x5c16f5(0x14f))[_0x5c16f5(0x160)]({'appCode':_0x340476[_0x5c16f5(0x16b)],'permitList':_0x49a34b[_0x5c16f5(0x14b)]})[_0x5c16f5(0x158)](_0x5c16f5(0x171)+_0x49a34b['operation']+_0x5c16f5(0x16e))[_0x5c16f5(0x152)]();},async 'execute'(_0x3f10e5){const _0x710031=a44_0x4f928b,_0x297ec7=await prepare(_0x3f10e5);return _0x297ec7[_0x710031(0x14b)][_0x710031(0x169)]>0x0&&await saveRuntimeMenuRolePermits(_0x3f10e5[_0x710031(0x16b)],_0x297ec7[_0x710031(0x14b)]),{'ok':!![],'data':runtimePermitWriteResult(_0x710031(0x166)+_0x297ec7[_0x710031(0x15b)],{'roleId':_0x297ec7['role']['id'],'menuIds':_0x297ec7['menuIds']},_0x297ec7['before'],_0x297ec7[_0x710031(0x14d)],{'method':_0x710031(0x150),'path':_0x710031(0x14f)},_0x297ec7[_0x710031(0x149)])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x18c9ef=a45_0x2691;function a45_0x5916(){const _0x15110d=['str','roleName','permit','40094595MLSSsU','runtime','role','2774290FfrhfT','appCode','6QLCvHU','9241072depTsm','773476TlvDHI','18HUZbbv','107229jVzrrK','710862oWxXYe','role-menus','Show\x20evaluated\x20runtime\x20menu\x20access\x20for\x20one\x20role','8776579NjzPKH'];a45_0x5916=function(){return _0x15110d;};return a45_0x5916();}(function(_0x25109f,_0x59e2ef){const _0x555329=a45_0x2691,_0x1a4aeb=_0x25109f();while(!![]){try{const _0x5a3533=parseInt(_0x555329(0x197))/0x1+parseInt(_0x555329(0x198))/0x2+-parseInt(_0x555329(0x1a7))/0x3*(parseInt(_0x555329(0x1a6))/0x4)+-parseInt(_0x555329(0x1a2))/0x5+-parseInt(_0x555329(0x1a4))/0x6*(parseInt(_0x555329(0x19b))/0x7)+-parseInt(_0x555329(0x1a5))/0x8+parseInt(_0x555329(0x19f))/0x9;if(_0x5a3533===_0x59e2ef)break;else _0x1a4aeb['push'](_0x1a4aeb['shift']());}catch(_0x27db66){_0x1a4aeb['push'](_0x1a4aeb['shift']());}}}(a45_0x5916,0xc1c0c));import{getRuntimeRoleMenuResources}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a45_0x2691(_0x5b2378,_0xcb2ecd){_0x5b2378=_0x5b2378-0x197;const _0x591639=a45_0x5916();let _0x269133=_0x591639[_0x5b2378];return _0x269133;}import{ROLE_REF_FLAG}from'../../commands/permit/shared.js';export const permitRoleMenus={'service':a45_0x18c9ef(0x19e),'command':a45_0x18c9ef(0x199),'description':a45_0x18c9ef(0x19a),'risk':'read','flags':[ROLE_REF_FLAG],async 'execute'(_0x45e72e){const _0x188bee=a45_0x18c9ef,_0x31d4b6=await resolveRuntimeRoleRef(_0x45e72e[_0x188bee(0x1a3)],_0x45e72e[_0x188bee(0x19c)](_0x188bee(0x1a1))),_0x3c5910=await getRuntimeRoleMenuResources(_0x45e72e[_0x188bee(0x1a3)],_0x31d4b6['id']);return{'ok':!![],'data':{'scope':_0x188bee(0x1a0),'role':{'id':_0x31d4b6['id'],'roleName':_0x31d4b6[_0x188bee(0x19d)],'roleType':_0x31d4b6['roleType']},'menus':_0x3c5910}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x3c9422=a46_0x2a7d;(function(_0x388274,_0x24b44e){const _0x3c68d0=a46_0x2a7d,_0x85dcfe=_0x388274();while(!![]){try{const _0x2964a7=parseInt(_0x3c68d0(0x18a))/0x1*(parseInt(_0x3c68d0(0x16c))/0x2)+parseInt(_0x3c68d0(0x185))/0x3+parseInt(_0x3c68d0(0x19a))/0x4*(-parseInt(_0x3c68d0(0x169))/0x5)+parseInt(_0x3c68d0(0x16f))/0x6*(parseInt(_0x3c68d0(0x17f))/0x7)+-parseInt(_0x3c68d0(0x172))/0x8+-parseInt(_0x3c68d0(0x18c))/0x9*(parseInt(_0x3c68d0(0x1a7))/0xa)+parseInt(_0x3c68d0(0x186))/0xb;if(_0x2964a7===_0x24b44e)break;else _0x85dcfe['push'](_0x85dcfe['shift']());}catch(_0x56bdaf){_0x85dcfe['push'](_0x85dcfe['shift']());}}}(a46_0x2ed8,0x205a4));import{getLoginUserInfo,listRuntimePermitRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const MENU_ID_FLAG={'name':a46_0x3c9422(0x188),'type':a46_0x3c9422(0x16b),'required':!![],'description':a46_0x3c9422(0x19f)};export const ROLE_REF_FLAG={'name':'role','type':a46_0x3c9422(0x183),'required':!![],'description':a46_0x3c9422(0x192)};export const GRANT_FLAG={'name':a46_0x3c9422(0x1a5),'type':'boolean','description':a46_0x3c9422(0x19c)};export const REVOKE_FLAG={'name':a46_0x3c9422(0x181),'type':a46_0x3c9422(0x17e),'description':a46_0x3c9422(0x1a8)};export const PAGE_SLOT_SPECS=[{'flag':'menu-roles','key':a46_0x3c9422(0x171),'allowSelf':![]},{'flag':a46_0x3c9422(0x1ac),'key':'dataCreate','allowSelf':![]},{'flag':a46_0x3c9422(0x19e),'key':a46_0x3c9422(0x1aa),'allowSelf':![]},{'flag':'delete-roles','key':'dataDelete','allowSelf':![]},{'flag':a46_0x3c9422(0x175),'key':a46_0x3c9422(0x1a9),'allowSelf':![]},{'flag':a46_0x3c9422(0x16a),'key':'dataExport','allowSelf':![]},{'flag':a46_0x3c9422(0x184),'key':'dataPermit','allowSelf':!![]}];export const PAGE_ROLE_FLAGS=PAGE_SLOT_SPECS[a46_0x3c9422(0x190)](_0x56090b=>({'name':_0x56090b[a46_0x3c9422(0x18e)],'type':'string','description':a46_0x3c9422(0x189)}));export function splitRefs(_0x4b0153,_0x115d11){const _0x3cf0eb=a46_0x3c9422,_0x1a1e18=[...new Set(_0x4b0153['split'](',')[_0x3cf0eb(0x190)](_0x11b878=>_0x11b878[_0x3cf0eb(0x1a0)]())['filter'](Boolean))];if(_0x1a1e18[_0x3cf0eb(0x193)]===0x0)throw CliErrors[_0x3cf0eb(0x167)](_0x115d11+_0x3cf0eb(0x19b));return _0x1a1e18;}export function assertGrantOrRevoke(_0x13db0a,_0x3796c4){const _0x2b9508=a46_0x3c9422;if(_0x13db0a===_0x3796c4)throw CliErrors[_0x2b9508(0x167)](_0x2b9508(0x1a6));return _0x13db0a?'grant':'revoke';}function resolvePermitRole(_0xfce222,_0x141e4e){const _0x1db3b3=a46_0x3c9422,_0x33f1e8=_0x141e4e[_0x1db3b3(0x1a0)](),_0x5eba48=/^-?\d+$/['test'](_0x33f1e8)?_0xfce222[_0x1db3b3(0x165)](_0xe484bf=>_0xe484bf['id']===Number(_0x33f1e8)):_0xfce222['filter'](_0x2e5d2f=>_0x2e5d2f[_0x1db3b3(0x19d)]===_0x33f1e8||_0x2e5d2f['roleType']===_0x33f1e8[_0x1db3b3(0x199)]());if(_0x5eba48['length']!==0x1)throw CliErrors[_0x1db3b3(0x167)](_0x5eba48[_0x1db3b3(0x193)]===0x0?_0x1db3b3(0x195)+_0x33f1e8+_0x1db3b3(0x197):_0x1db3b3(0x195)+_0x33f1e8+'\x22\x20is\x20ambiguous.',_0x1db3b3(0x191));return _0x5eba48[0x0];}export async function resolveRuntimePermitRoles(_0x274a02,_0xbd6733,_0x2c3f90){const _0x106a74=a46_0x3c9422,_0xab4a1d=await listRuntimePermitRoles(_0x274a02,{'needSelf':!![],'needPublic':!![]}),_0x58a844=[...new Map(_0xbd6733[_0x106a74(0x190)](_0x2173ff=>resolvePermitRole(_0xab4a1d,_0x2173ff))[_0x106a74(0x190)](_0xdd3f46=>[_0xdd3f46['id'],_0xdd3f46]))[_0x106a74(0x1ab)]()],_0x57d4d4=_0x58a844[_0x106a74(0x163)](_0x97af5b=>_0x97af5b[_0x106a74(0x174)]===_0x106a74(0x164)||_0x97af5b['roleType']==='OWNER');if(_0x57d4d4)throw CliErrors[_0x106a74(0x167)](_0x57d4d4['roleType']+'\x20has\x20full\x20runtime\x20access\x20and\x20cannot\x20be\x20a\x20resource\x20permission\x20target.','Configure\x20USER,\x20CUSTOM,\x20or\x20an\x20applicable\x20special\x20role\x20instead.');if(!_0x2c3f90&&_0x58a844[_0x106a74(0x18f)](_0x3110fd=>_0x3110fd[_0x106a74(0x174)]==='SELF'))throw CliErrors[_0x106a74(0x167)](_0x106a74(0x17c));return _0x58a844;}function a46_0x2a7d(_0x2e9a72,_0x3d20e7){_0x2e9a72=_0x2e9a72-0x162;const _0x2ed83c=a46_0x2ed8();let _0x2a7d7c=_0x2ed83c[_0x2e9a72];return _0x2a7d7c;}export async function assertRuntimePermissionManager(_0x10496b){const _0x563459=a46_0x3c9422,_0x5e668f=await getLoginUserInfo(),_0x34e300=_0x5e668f['userId']??_0x5e668f['id'],_0x54820d=Number(_0x34e300);if(!Number[_0x563459(0x1a4)](_0x54820d)||_0x54820d<=0x0)throw CliErrors[_0x563459(0x167)](_0x563459(0x179));const _0x100219=await listRuntimeRoleUsers(_0x10496b),_0x53afd1=_0x100219[_0x563459(0x18f)](_0x51c6b3=>(_0x51c6b3[_0x563459(0x174)]==='ADMIN'||_0x51c6b3[_0x563459(0x174)]===_0x563459(0x16e))&&_0x51c6b3[_0x563459(0x162)][_0x563459(0x18f)](_0x537513=>_0x537513[_0x563459(0x178)]===_0x54820d));if(!_0x53afd1)throw CliErrors[_0x563459(0x167)](_0x563459(0x170),_0x563459(0x166));}export function assertRuntimePermitRoleConfigurable(_0x5c2371){const _0x54c1c3=a46_0x3c9422;if(_0x5c2371[_0x54c1c3(0x174)]==='ADMIN'||_0x5c2371[_0x54c1c3(0x174)]===_0x54c1c3(0x16e))throw CliErrors[_0x54c1c3(0x167)](_0x54c1c3(0x1a3)+_0x5c2371[_0x54c1c3(0x174)]+_0x54c1c3(0x17d)+_0x5c2371[_0x54c1c3(0x19d)]+'.','ADMIN\x20and\x20OWNER\x20have\x20full\x20runtime\x20access;\x20configure\x20USER\x20or\x20CUSTOM\x20instead.');}function a46_0x2ed8(){const _0x84673c=['update-roles','Runtime\x20menu\x20ID','trim','menuId','ALL','Cannot\x20change\x20resource\x20permissions\x20for\x20','isSafeInteger','grant','Pass\x20exactly\x20one\x20of\x20--grant\x20or\x20--revoke.','606410wseeLv','Revoke\x20the\x20selected\x20resources\x20from\x20the\x20role','dataDetail','dataUpdate','values','create-roles','userList','find','ADMIN','filter','Ask\x20an\x20application\x20manager\x20to\x20perform\x20this\x20operation.','validation','resourceCode','26455iDxMvn','export-roles','number','18VqoeGO','label','OWNER','340284dnDTOw','Runtime\x20resource\x20permission\x20changes\x20require\x20an\x20ADMIN\x20or\x20OWNER\x20role.','menuPermit','862408SezaCv','push','roleType','detail-roles','key','MENU','userId','Cannot\x20resolve\x20the\x20current\x20AK\x20userId\x20for\x20permission\x20management.','permitId','datasetCode','SELF\x20is\x20only\x20valid\x20for\x20--row-roles.','\x20runtime\x20role\x20','boolean','14LUdYwx','rolePermit','revoke','runtime','string','row-roles','307842PPSoKb','2969175lykPwx','resourceType','menu-id','Comma-separated\x20runtime\x20role\x20IDs\x20or\x20names','16118NnLGwN','appCode','36NBSLwF','The\x20current\x20service\x20contract\x20does\x20not\x20persist\x20an\x20empty\x20rolePermit;\x20grant\x20another\x20role\x20first.','flag','some','map','Use\x20a\x20role\x20ID\x20from\x20`lovrabet\x20role\x20list`.','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','length','children','Permission\x20role\x20\x22','Cannot\x20revoke\x20the\x20last\x20role\x20from\x20a\x20runtime\x20resource.','\x22\x20was\x20not\x20found.','pageId','toUpperCase','112pYZpqt','\x20must\x20contain\x20at\x20least\x20one\x20value.','Grant\x20the\x20selected\x20resources\x20to\x20the\x20role','roleName'];a46_0x2ed8=function(){return _0x84673c;};return a46_0x2ed8();}function asPermitRole(_0x2b3ac4){const _0x2990b9=a46_0x3c9422;return{'id':_0x2b3ac4['id'],'roleName':_0x2b3ac4[_0x2990b9(0x19d)],'roleType':_0x2b3ac4['roleType'],'allowed':!![]};}export function applyRuntimeRolePermission(_0xb30133,_0x598946,_0x507a08,_0x3c36ed){const _0x23765b=a46_0x3c9422,_0x284f70=!_0xb30133||_0xb30133[_0x23765b(0x193)]===0x0,_0x2bc015=_0xb30133?.[_0x23765b(0x18f)](_0x457360=>_0x457360[_0x23765b(0x174)]===_0x23765b(0x1a2))??![];if(_0x3c36ed===_0x23765b(0x1a5)&&(_0x284f70||_0x2bc015))return{'roles':_0xb30133??null,'changed':![]};let _0x442ae8=_0x284f70||_0x2bc015?_0x507a08[_0x23765b(0x165)](_0x22d6f9=>_0x22d6f9['id']>0x0):[..._0xb30133];const _0x2c2dd6=_0x442ae8[_0x23765b(0x18f)](_0x4409b5=>_0x4409b5['id']===_0x598946['id']);if(_0x3c36ed===_0x23765b(0x1a5)){if(_0x2c2dd6)return{'roles':_0x442ae8,'changed':![]};return _0x442ae8[_0x23765b(0x173)](asPermitRole(_0x598946)),{'roles':_0x442ae8,'changed':!![]};}if(!_0x2c2dd6)return{'roles':_0x442ae8,'changed':_0x284f70||_0x2bc015};_0x442ae8=_0x442ae8[_0x23765b(0x165)](_0x7c07da=>_0x7c07da['id']!==_0x598946['id']);if(_0x442ae8[_0x23765b(0x193)]===0x0)throw CliErrors[_0x23765b(0x167)](_0x23765b(0x196),_0x23765b(0x18d));return{'roles':_0x442ae8,'changed':!![]};}export function projectRuntimePagePermit(_0xd11d1b){const _0x314840=a46_0x3c9422,_0xe24d19={'menuId':_0xd11d1b[_0x314840(0x1a1)],'pageId':_0xd11d1b[_0x314840(0x198)],'appCode':_0xd11d1b[_0x314840(0x18b)],'datasetCode':_0xd11d1b[_0x314840(0x17b)]};for(const _0x3345dc of PAGE_SLOT_SPECS){const _0x4ce0da=_0xd11d1b[_0x3345dc['key']];_0x4ce0da&&(_0xe24d19[_0x3345dc[_0x314840(0x176)]]={'resourceCode':_0x4ce0da[_0x314840(0x168)],'resourceType':_0x4ce0da[_0x314840(0x187)],'roles':(_0x4ce0da[_0x314840(0x180)]??[])[_0x314840(0x190)](_0x4453cf=>({'id':_0x4453cf['id'],'roleName':_0x4453cf[_0x314840(0x19d)],'roleType':_0x4453cf[_0x314840(0x174)]}))});}return _0xe24d19;}export function flattenRuntimeMenuRolePermits(_0x42a5b8){const _0x1d3cb3=[],_0x593f1a=_0x3574f8=>{const _0x224526=a46_0x2a7d;_0x1d3cb3[_0x224526(0x173)](_0x3574f8);for(const _0x3d48c1 of _0x3574f8[_0x224526(0x194)]??[])_0x593f1a(_0x3d48c1);};for(const _0x1d3f5b of _0x42a5b8)_0x593f1a(_0x1d3f5b);return _0x1d3cb3;}export function runtimePermitWriteResult(_0x45f7a0,_0x5db401,_0x12bf5c,_0x41488b,_0xe8e373,_0x47fd0f=[]){const _0x4c7486=a46_0x3c9422;return{'operation':_0x45f7a0,'scope':_0x4c7486(0x182),'selector':_0x5db401,'before':_0x12bf5c,'after':_0x41488b,'dryRun':![],'backend':_0xe8e373,'warnings':_0x47fd0f};}export function menuPermitDto(_0x43aaff,_0x1b02ca,_0xf6a23c){const _0xca6fc1=a46_0x3c9422;return{..._0x1b02ca[_0xca6fc1(0x17a)]!=null?{'id':_0x1b02ca['permitId']}:{},'appCode':_0x43aaff,'menuId':_0x1b02ca['id'],'pageId':_0x1b02ca['pageId']??null,'resourceCode':String(_0x1b02ca['id']),'resourceType':_0xca6fc1(0x177),'resourceName':_0x1b02ca[_0xca6fc1(0x16d)],'rolePermit':_0xf6a23c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x2e439f=a47_0x3692;(function(_0xe42eec,_0x3b8a4b){const _0x4f006f=a47_0x3692,_0x3ea586=_0xe42eec();while(!![]){try{const _0x33d6f4=-parseInt(_0x4f006f(0x211))/0x1+parseInt(_0x4f006f(0x21e))/0x2+-parseInt(_0x4f006f(0x21f))/0x3+-parseInt(_0x4f006f(0x210))/0x4+-parseInt(_0x4f006f(0x209))/0x5+parseInt(_0x4f006f(0x1ec))/0x6+parseInt(_0x4f006f(0x1de))/0x7;if(_0x33d6f4===_0x3b8a4b)break;else _0x3ea586['push'](_0x3ea586['shift']());}catch(_0x459450){_0x3ea586['push'](_0x3ea586['shift']());}}}(a47_0x5982,0x7d50a));import{existsSync,readFileSync,statSync}from'node:fs';function a47_0x3692(_0x4d6ad8,_0x91ac1d){_0x4d6ad8=_0x4d6ad8-0x1dc;const _0x5982a0=a47_0x5982();let _0x369224=_0x5982a0[_0x4d6ad8];return _0x369224;}import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a47_0x2e439f(0x204),'type':a47_0x2e439f(0x1e0),'description':'Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file'},FUNCTION_NAME_FLAG={'name':a47_0x2e439f(0x1e1),'type':'string','required':!![],'description':a47_0x2e439f(0x20f)},DESCRIPTION_FLAG={'name':a47_0x2e439f(0x1f4),'type':a47_0x2e439f(0x1e0),'description':a47_0x2e439f(0x1e9)},SOURCE_SESSION_FLAG={'name':a47_0x2e439f(0x1dc),'type':a47_0x2e439f(0x1e0),'description':a47_0x2e439f(0x212)};function normalizeFunctionName(_0x4fffb2){const _0x322e5c=a47_0x2e439f,_0x3c1da5=String(_0x4fffb2||'')[_0x322e5c(0x1f0)]();if(!_0x3c1da5||!FUNCTION_NAME_PATTERN[_0x322e5c(0x214)](_0x3c1da5))throw CliErrors[_0x322e5c(0x207)](_0x322e5c(0x1f6));return _0x3c1da5;}function readScriptFile(_0x53389b){const _0x29f333=a47_0x2e439f;if(!_0x53389b)throw CliErrors[_0x29f333(0x207)](_0x29f333(0x201));if(!existsSync(_0x53389b))throw CliErrors[_0x29f333(0x207)](_0x29f333(0x221)+_0x53389b);if(!statSync(_0x53389b)[_0x29f333(0x1e3)]())throw CliErrors[_0x29f333(0x207)](_0x29f333(0x20d)+_0x53389b);const _0x5966e6=readFileSync(_0x53389b,_0x29f333(0x220));if(!_0x5966e6[_0x29f333(0x1f0)]())throw CliErrors[_0x29f333(0x207)](_0x29f333(0x215));return _0x5966e6;}function optionalTrimmed(_0x489d92){const _0xd3f72e=String(_0x489d92||'')['trim']();return _0xd3f72e||undefined;}function summarizeBff(_0x4c1cf1){const _0x4cdf24=a47_0x2e439f;return{'id':_0x4c1cf1['id'],'appCode':_0x4c1cf1[_0x4cdf24(0x206)],'functionName':_0x4c1cf1[_0x4cdf24(0x1fb)],'description':_0x4c1cf1[_0x4cdf24(0x1f4)],'scriptType':_0x4c1cf1[_0x4cdf24(0x1f5)],'version':_0x4c1cf1[_0x4cdf24(0x1f9)],'gmtModified':_0x4c1cf1[_0x4cdf24(0x1ef)],'updateTime':_0x4c1cf1['updateTime']};}function detailBff(_0x12e0c2){const _0x5514d1=a47_0x2e439f;return{'id':_0x12e0c2['id'],'appCode':_0x12e0c2[_0x5514d1(0x206)],'functionName':_0x12e0c2[_0x5514d1(0x1fb)],'description':_0x12e0c2[_0x5514d1(0x1f4)],'scriptType':_0x12e0c2['scriptType'],'scriptContent':_0x12e0c2[_0x5514d1(0x205)]??'','config':_0x12e0c2[_0x5514d1(0x219)],'version':_0x12e0c2[_0x5514d1(0x1f9)],'createUserId':_0x12e0c2[_0x5514d1(0x1e6)],'gmtCreate':_0x12e0c2[_0x5514d1(0x1ff)],'gmtModified':_0x12e0c2[_0x5514d1(0x1ef)],'createTime':_0x12e0c2[_0x5514d1(0x1fe)],'updateTime':_0x12e0c2[_0x5514d1(0x1f3)]};}function buildCreateInput(_0x25ee4e){const _0xfa4f5a=a47_0x2e439f;return{'functionName':normalizeFunctionName(_0x25ee4e[_0xfa4f5a(0x208)](_0xfa4f5a(0x1e1))),...optionalTrimmed(_0x25ee4e[_0xfa4f5a(0x208)](_0xfa4f5a(0x1f4)))?{'description':optionalTrimmed(_0x25ee4e[_0xfa4f5a(0x208)](_0xfa4f5a(0x1f4)))}:{},'scriptContent':readScriptFile(_0x25ee4e[_0xfa4f5a(0x208)]('file')),...optionalTrimmed(_0x25ee4e['str']('source-session-id'))?{'sourceSessionId':optionalTrimmed(_0x25ee4e[_0xfa4f5a(0x208)](_0xfa4f5a(0x1dc)))}:{}};}function buildUpdateInput(_0x161d06){const _0x58265d=a47_0x2e439f,_0x4233f3={};optionalTrimmed(_0x161d06[_0x58265d(0x208)](_0x58265d(0x1e1)))&&(_0x4233f3['functionName']=normalizeFunctionName(_0x161d06[_0x58265d(0x208)](_0x58265d(0x1e1))));_0x161d06[_0x58265d(0x1ea)]('description')!==undefined&&(_0x4233f3[_0x58265d(0x1f4)]=_0x161d06['str'](_0x58265d(0x1f4)));optionalTrimmed(_0x161d06[_0x58265d(0x208)](_0x58265d(0x204)))&&(_0x4233f3[_0x58265d(0x205)]=readScriptFile(_0x161d06[_0x58265d(0x208)](_0x58265d(0x204))));_0x161d06['flag'](_0x58265d(0x1dc))!==undefined&&(_0x4233f3[_0x58265d(0x1f2)]=_0x161d06[_0x58265d(0x208)]('source-session-id'));if(Object['keys'](_0x4233f3)['length']===0x0)throw CliErrors['validation'](_0x58265d(0x1ed));return _0x4233f3;}function parseExecParams(_0x4b7cb9){const _0x397af7=a47_0x2e439f,_0x76e5af=parseJsonParams(_0x4b7cb9)??{};if(Array[_0x397af7(0x21a)](_0x76e5af))throw CliErrors[_0x397af7(0x207)](_0x397af7(0x21d));return _0x76e5af;}const personalBffList={'service':a47_0x2e439f(0x1e5),'command':a47_0x2e439f(0x1dd),'description':a47_0x2e439f(0x1f1),'risk':a47_0x2e439f(0x1e7),'flags':[VERBOSE_FLAG],async 'execute'(_0x47efef){const _0x1af960=a47_0x2e439f,_0x59101f=await listPersonalBffs(_0x47efef[_0x1af960(0x206)]);return{'ok':!![],'data':{'total':_0x59101f[_0x1af960(0x200)],'items':_0x47efef['bool'](_0x1af960(0x1eb))?_0x59101f:_0x59101f[_0x1af960(0x1e4)](summarizeBff)}};}},personalBffDetail={'service':a47_0x2e439f(0x1e5),'command':'detail','description':a47_0x2e439f(0x1df),'risk':a47_0x2e439f(0x1e7),'flags':[{...ID_FLAG,'description':'Personal\x20Backend\x20Function\x20script\x20ID'}],async 'execute'(_0x4fde35){const _0x572624=a47_0x2e439f,_0x1d3bbe=await getPersonalBff(_0x4fde35[_0x572624(0x217)]('id'),_0x4fde35[_0x572624(0x206)]);return{'ok':!![],'data':detailBff(_0x1d3bbe)};}},personalBffCreate={'service':'personal-bff','command':a47_0x2e439f(0x1f8),'description':a47_0x2e439f(0x1fc),'risk':'write','confirmationDescription':a47_0x2e439f(0x21c),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x132e17){const _0x5c6ebc=a47_0x2e439f,_0x40a73d=buildCreateInput(_0x132e17),_0x4e9166=await createPersonalBff(_0x132e17['appCode'],_0x40a73d);return{'ok':!![],'data':detailBff(_0x4e9166),'message':_0x5c6ebc(0x216)+_0x4e9166['id']+(_0x4e9166[_0x5c6ebc(0x1fb)]?'\x20('+_0x4e9166[_0x5c6ebc(0x1fb)]+')':'')};},async 'dryRun'(_0x1d42cd){const _0x103ae1=a47_0x2e439f,_0x6848e6=buildCreateInput(_0x1d42cd);return dryRun(_0x103ae1(0x20c),_0x103ae1(0x20e))[_0x103ae1(0x20b)]({'appCode':_0x1d42cd[_0x103ae1(0x206)],..._0x6848e6})['description'](_0x103ae1(0x1fa)+_0x6848e6['functionName'])[_0x103ae1(0x1e8)]();}},personalBffUpdate={'service':a47_0x2e439f(0x1e5),'command':'update','description':'Update\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID','risk':a47_0x2e439f(0x213),'confirmationDescription':'Updates\x20the\x20Personal\x20Backend\x20Function\x20script\x20or\x20metadata.\x20Later\x20calls\x20use\x20the\x20new\x20version.','flags':[{...ID_FLAG,'description':a47_0x2e439f(0x1ee)},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x21b468){const _0x897bad=a47_0x2e439f,_0xd2292a=_0x21b468['num']('id'),_0x2bbd81=buildUpdateInput(_0x21b468),_0x278b58=await updatePersonalBff(_0xd2292a,_0x21b468[_0x897bad(0x206)],_0x2bbd81);return{'ok':!![],'data':detailBff(_0x278b58),'message':'Updated\x20Personal\x20Backend\x20Function\x20'+_0x278b58['id']+(_0x278b58[_0x897bad(0x1fb)]?'\x20('+_0x278b58['functionName']+')':'')};},async 'dryRun'(_0x191f75){const _0x1c996d=a47_0x2e439f,_0x3239bc=_0x191f75[_0x1c996d(0x217)]('id'),_0x3abc6b=buildUpdateInput(_0x191f75);return dryRun(_0x1c996d(0x20c),'/client/runtime-bff/personal/'+_0x3239bc+_0x1c996d(0x1fd))[_0x1c996d(0x20b)]({'appCode':_0x191f75[_0x1c996d(0x206)],..._0x3abc6b})[_0x1c996d(0x1f4)](_0x1c996d(0x203)+_0x3239bc)[_0x1c996d(0x1e8)]();}},personalBffExec={'service':a47_0x2e439f(0x1e5),'command':a47_0x2e439f(0x20a),'description':a47_0x2e439f(0x1e2),'risk':'write','confirmationDescription':a47_0x2e439f(0x202),'flags':[{...ID_FLAG,'description':a47_0x2e439f(0x1ee)},{...PARAMS_FLAG,'description':a47_0x2e439f(0x218)}],async 'validate'(_0x1eab11){const _0x39090f=a47_0x2e439f;parseExecParams(_0x1eab11[_0x39090f(0x208)](_0x39090f(0x21b)));},async 'execute'(_0x4965d0){const _0x3c92de=a47_0x2e439f,_0x4544a8=_0x4965d0[_0x3c92de(0x217)]('id'),_0x56f5bf=parseExecParams(_0x4965d0[_0x3c92de(0x208)](_0x3c92de(0x21b))),_0x295376=await executePersonalBff(_0x4544a8,_0x4965d0[_0x3c92de(0x206)],_0x56f5bf);return{'ok':!![],'data':{'result':_0x295376},'message':_0x3c92de(0x1f7)+_0x4544a8};}};function a47_0x5982(){const _0x4266eb=['utf8','File\x20not\x20found:\x20','source-session-id','list','2572199UZplsY','Show\x20one\x20Personal\x20Backend\x20Function\x20by\x20id','string','name','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID,\x20optionally\x20with\x20JSON\x20params','isFile','map','personal-bff','createUserId','read','build','Personal\x20Backend\x20Function\x20description','flag','verbose','102570FGbWLN','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','Personal\x20Backend\x20Function\x20script\x20ID','gmtModified','trim','List\x20current\x20user\x27s\x20Personal\x20Backend\x20Function\x20scripts\x20for\x20the\x20current\x20app','sourceSessionId','updateTime','description','scriptType','--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.','Executed\x20Personal\x20Backend\x20Function\x20','create','version','Preview:\x20create\x20Personal\x20Backend\x20Function\x20','functionName','Create\x20a\x20Personal\x20Backend\x20Function\x20from\x20a\x20local\x20script\x20file','/update','createTime','gmtCreate','length','File\x20path\x20is\x20required.','Runs\x20the\x20Personal\x20Backend\x20Function\x20script.\x20The\x20script\x20may\x20read\x20or\x20change\x20business\x20data,\x20or\x20call\x20external\x20services.','Preview:\x20update\x20Personal\x20Backend\x20Function\x20','file','scriptContent','appCode','validation','str','1959645FtMWVS','exec','body','POST','File\x20is\x20not\x20a\x20regular\x20file:\x20','/client/runtime-bff/personal/create','Personal\x20Backend\x20Function\x20name,\x20for\x20example\x20loadOrders','475348fpYvmn','4429nEZIlP','Optional\x20source\x20RuntimeAgent\x20session\x20id','write','test','Personal\x20Backend\x20Function\x20script\x20file\x20is\x20blank.','Created\x20Personal\x20Backend\x20Function\x20','num','JSON\x20object\x20passed\x20to\x20the\x20Personal\x20Backend\x20Function\x20execution','config','isArray','params','Saves\x20the\x20local\x20script\x20as\x20a\x20Personal\x20Backend\x20Function.\x20The\x20script\x20can\x20then\x20be\x20called\x20in\x20the\x20current\x20app.','--params\x20must\x20be\x20a\x20JSON\x20object.','1989504fKveEH','1052457MlqOSv'];a47_0x5982=function(){return _0x4266eb;};return a47_0x5982();}export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
|
|
1
|
+
const a47_0x19e102=a47_0x5a9e;(function(_0x2a3da4,_0x5e86c5){const _0x16ff77=a47_0x5a9e,_0x14d030=_0x2a3da4();while(!![]){try{const _0x177d81=parseInt(_0x16ff77(0x18b))/0x1*(-parseInt(_0x16ff77(0x17e))/0x2)+parseInt(_0x16ff77(0x18c))/0x3+parseInt(_0x16ff77(0x185))/0x4*(-parseInt(_0x16ff77(0x16f))/0x5)+-parseInt(_0x16ff77(0x167))/0x6+parseInt(_0x16ff77(0x164))/0x7*(-parseInt(_0x16ff77(0x17b))/0x8)+parseInt(_0x16ff77(0x18d))/0x9+-parseInt(_0x16ff77(0x16e))/0xa*(-parseInt(_0x16ff77(0x1a1))/0xb);if(_0x177d81===_0x5e86c5)break;else _0x14d030['push'](_0x14d030['shift']());}catch(_0x3ea0d0){_0x14d030['push'](_0x14d030['shift']());}}}(a47_0xefae,0x649f6));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';function a47_0xefae(){const _0x5a48e9=['Updated\x20Personal\x20Backend\x20Function\x20','verbose','str','sourceSessionId','Personal\x20Backend\x20Function\x20script\x20file\x20is\x20blank.','flag','validation','appCode','List\x20current\x20user\x27s\x20Personal\x20Backend\x20Function\x20scripts\x20for\x20the\x20current\x20app','exec','232wzwTLe','num','read','68030dVtEde','JSON\x20object\x20passed\x20to\x20the\x20Personal\x20Backend\x20Function\x20execution','bool','detail','Created\x20Personal\x20Backend\x20Function\x20','/update','body','188652POocff','File\x20path\x20is\x20required.','Show\x20one\x20Personal\x20Backend\x20Function\x20by\x20id','updateTime','Preview:\x20update\x20Personal\x20Backend\x20Function\x20','scriptType','16hYfBTT','1247001uvucSt','3484548lAtueS','functionName','Preview:\x20create\x20Personal\x20Backend\x20Function\x20','create','test','--params\x20must\x20be\x20a\x20JSON\x20object.','Saves\x20the\x20local\x20script\x20as\x20a\x20Personal\x20Backend\x20Function.\x20The\x20script\x20can\x20then\x20be\x20called\x20in\x20the\x20current\x20app.','string','trim','list','Create\x20a\x20Personal\x20Backend\x20Function\x20from\x20a\x20local\x20script\x20file','/client/runtime-bff/personal/create','build','name','Personal\x20Backend\x20Function\x20script\x20ID','personal-bff','scriptContent','Executed\x20Personal\x20Backend\x20Function\x20','source-session-id','Runs\x20the\x20Personal\x20Backend\x20Function\x20script.\x20The\x20script\x20may\x20read\x20or\x20change\x20business\x20data,\x20or\x20call\x20external\x20services.','11PiavsV','description','length','Updates\x20the\x20Personal\x20Backend\x20Function\x20script\x20or\x20metadata.\x20Later\x20calls\x20use\x20the\x20new\x20version.','Update\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID','isFile','file','149639jFVQKm','gmtCreate','params','1027626oEWKaO','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID,\x20optionally\x20with\x20JSON\x20params','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','write','POST','utf8','gmtModified','17465260xFioAA','85fyMpug','Optional\x20source\x20RuntimeAgent\x20session\x20id'];a47_0xefae=function(){return _0x5a48e9;};return a47_0xefae();}const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a47_0x19e102(0x1a7),'type':a47_0x19e102(0x194),'description':'Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file'},FUNCTION_NAME_FLAG={'name':a47_0x19e102(0x19a),'type':a47_0x19e102(0x194),'required':!![],'description':'Personal\x20Backend\x20Function\x20name,\x20for\x20example\x20loadOrders'},DESCRIPTION_FLAG={'name':'description','type':a47_0x19e102(0x194),'description':'Personal\x20Backend\x20Function\x20description'},SOURCE_SESSION_FLAG={'name':a47_0x19e102(0x19f),'type':a47_0x19e102(0x194),'description':a47_0x19e102(0x170)};function normalizeFunctionName(_0x32f7df){const _0x5ad3cc=a47_0x19e102,_0x1cb294=String(_0x32f7df||'')[_0x5ad3cc(0x195)]();if(!_0x1cb294||!FUNCTION_NAME_PATTERN[_0x5ad3cc(0x191)](_0x1cb294))throw CliErrors[_0x5ad3cc(0x177)]('--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.');return _0x1cb294;}function readScriptFile(_0x6d77e0){const _0x4ca804=a47_0x19e102;if(!_0x6d77e0)throw CliErrors['validation'](_0x4ca804(0x186));if(!existsSync(_0x6d77e0))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x6d77e0);if(!statSync(_0x6d77e0)[_0x4ca804(0x1a6)]())throw CliErrors[_0x4ca804(0x177)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x6d77e0);const _0x34dfcc=readFileSync(_0x6d77e0,_0x4ca804(0x16c));if(!_0x34dfcc[_0x4ca804(0x195)]())throw CliErrors[_0x4ca804(0x177)](_0x4ca804(0x175));return _0x34dfcc;}function optionalTrimmed(_0x12f8da){const _0xf8fe07=a47_0x19e102,_0x2b894f=String(_0x12f8da||'')[_0xf8fe07(0x195)]();return _0x2b894f||undefined;}function summarizeBff(_0x249bc9){const _0x3f6a81=a47_0x19e102;return{'id':_0x249bc9['id'],'appCode':_0x249bc9[_0x3f6a81(0x178)],'functionName':_0x249bc9[_0x3f6a81(0x18e)],'description':_0x249bc9[_0x3f6a81(0x1a2)],'scriptType':_0x249bc9[_0x3f6a81(0x18a)],'version':_0x249bc9['version'],'gmtModified':_0x249bc9[_0x3f6a81(0x16d)],'updateTime':_0x249bc9['updateTime']};}function detailBff(_0x289f73){const _0x105bb0=a47_0x19e102;return{'id':_0x289f73['id'],'appCode':_0x289f73[_0x105bb0(0x178)],'functionName':_0x289f73[_0x105bb0(0x18e)],'description':_0x289f73[_0x105bb0(0x1a2)],'scriptType':_0x289f73[_0x105bb0(0x18a)],'scriptContent':_0x289f73[_0x105bb0(0x19d)]??'','config':_0x289f73['config'],'version':_0x289f73['version'],'createUserId':_0x289f73['createUserId'],'gmtCreate':_0x289f73[_0x105bb0(0x165)],'gmtModified':_0x289f73[_0x105bb0(0x16d)],'createTime':_0x289f73['createTime'],'updateTime':_0x289f73[_0x105bb0(0x188)]};}function buildCreateInput(_0x4c49ff){const _0x38bfb6=a47_0x19e102;return{'functionName':normalizeFunctionName(_0x4c49ff[_0x38bfb6(0x173)](_0x38bfb6(0x19a))),...optionalTrimmed(_0x4c49ff['str'](_0x38bfb6(0x1a2)))?{'description':optionalTrimmed(_0x4c49ff[_0x38bfb6(0x173)](_0x38bfb6(0x1a2)))}:{},'scriptContent':readScriptFile(_0x4c49ff[_0x38bfb6(0x173)](_0x38bfb6(0x1a7))),...optionalTrimmed(_0x4c49ff['str'](_0x38bfb6(0x19f)))?{'sourceSessionId':optionalTrimmed(_0x4c49ff['str']('source-session-id'))}:{}};}function a47_0x5a9e(_0x470372,_0x4cdf42){_0x470372=_0x470372-0x164;const _0xefaec2=a47_0xefae();let _0x5a9e69=_0xefaec2[_0x470372];return _0x5a9e69;}function buildUpdateInput(_0x61e8ad){const _0x21c875=a47_0x19e102,_0x3a99cd={};optionalTrimmed(_0x61e8ad['str'](_0x21c875(0x19a)))&&(_0x3a99cd[_0x21c875(0x18e)]=normalizeFunctionName(_0x61e8ad['str']('name')));_0x61e8ad[_0x21c875(0x176)](_0x21c875(0x1a2))!==undefined&&(_0x3a99cd[_0x21c875(0x1a2)]=_0x61e8ad[_0x21c875(0x173)](_0x21c875(0x1a2)));optionalTrimmed(_0x61e8ad['str'](_0x21c875(0x1a7)))&&(_0x3a99cd[_0x21c875(0x19d)]=readScriptFile(_0x61e8ad[_0x21c875(0x173)](_0x21c875(0x1a7))));_0x61e8ad[_0x21c875(0x176)](_0x21c875(0x19f))!==undefined&&(_0x3a99cd[_0x21c875(0x174)]=_0x61e8ad['str'](_0x21c875(0x19f)));if(Object['keys'](_0x3a99cd)[_0x21c875(0x1a3)]===0x0)throw CliErrors[_0x21c875(0x177)](_0x21c875(0x169));return _0x3a99cd;}function parseExecParams(_0x4ccf04){const _0x2ab1c8=a47_0x19e102,_0x513dda=parseJsonParams(_0x4ccf04)??{};if(Array['isArray'](_0x513dda))throw CliErrors[_0x2ab1c8(0x177)](_0x2ab1c8(0x192));return _0x513dda;}const personalBffList={'service':'personal-bff','command':a47_0x19e102(0x196),'description':a47_0x19e102(0x179),'risk':a47_0x19e102(0x17d),'flags':[VERBOSE_FLAG],async 'execute'(_0xd86767){const _0x1c0b5b=a47_0x19e102,_0x56de33=await listPersonalBffs(_0xd86767[_0x1c0b5b(0x178)]);return{'ok':!![],'data':{'total':_0x56de33['length'],'items':_0xd86767[_0x1c0b5b(0x180)](_0x1c0b5b(0x172))?_0x56de33:_0x56de33['map'](summarizeBff)}};}},personalBffDetail={'service':a47_0x19e102(0x19c),'command':a47_0x19e102(0x181),'description':a47_0x19e102(0x187),'risk':a47_0x19e102(0x17d),'flags':[{...ID_FLAG,'description':a47_0x19e102(0x19b)}],async 'execute'(_0x1d826c){const _0x914349=a47_0x19e102,_0x221e47=await getPersonalBff(_0x1d826c[_0x914349(0x17c)]('id'),_0x1d826c[_0x914349(0x178)]);return{'ok':!![],'data':detailBff(_0x221e47)};}},personalBffCreate={'service':a47_0x19e102(0x19c),'command':a47_0x19e102(0x190),'description':a47_0x19e102(0x197),'risk':a47_0x19e102(0x16a),'confirmationDescription':a47_0x19e102(0x193),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x58bff0){const _0x219ec8=a47_0x19e102,_0x1a99ad=buildCreateInput(_0x58bff0),_0x3eb79c=await createPersonalBff(_0x58bff0[_0x219ec8(0x178)],_0x1a99ad);return{'ok':!![],'data':detailBff(_0x3eb79c),'message':_0x219ec8(0x182)+_0x3eb79c['id']+(_0x3eb79c[_0x219ec8(0x18e)]?'\x20('+_0x3eb79c[_0x219ec8(0x18e)]+')':'')};},async 'dryRun'(_0x12dd4c){const _0x502358=a47_0x19e102,_0x515478=buildCreateInput(_0x12dd4c);return dryRun(_0x502358(0x16b),_0x502358(0x198))[_0x502358(0x184)]({'appCode':_0x12dd4c['appCode'],..._0x515478})['description'](_0x502358(0x18f)+_0x515478[_0x502358(0x18e)])[_0x502358(0x199)]();}},personalBffUpdate={'service':a47_0x19e102(0x19c),'command':'update','description':a47_0x19e102(0x1a5),'risk':a47_0x19e102(0x16a),'confirmationDescription':a47_0x19e102(0x1a4),'flags':[{...ID_FLAG,'description':a47_0x19e102(0x19b)},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x11a9f8){const _0x43bec3=a47_0x19e102,_0x3bbc6b=_0x11a9f8[_0x43bec3(0x17c)]('id'),_0x4aceee=buildUpdateInput(_0x11a9f8),_0x378293=await updatePersonalBff(_0x3bbc6b,_0x11a9f8[_0x43bec3(0x178)],_0x4aceee);return{'ok':!![],'data':detailBff(_0x378293),'message':_0x43bec3(0x171)+_0x378293['id']+(_0x378293[_0x43bec3(0x18e)]?'\x20('+_0x378293[_0x43bec3(0x18e)]+')':'')};},async 'dryRun'(_0x429f4f){const _0x166e25=a47_0x19e102,_0x8207e=_0x429f4f[_0x166e25(0x17c)]('id'),_0xddd63b=buildUpdateInput(_0x429f4f);return dryRun(_0x166e25(0x16b),'/client/runtime-bff/personal/'+_0x8207e+_0x166e25(0x183))[_0x166e25(0x184)]({'appCode':_0x429f4f[_0x166e25(0x178)],..._0xddd63b})[_0x166e25(0x1a2)](_0x166e25(0x189)+_0x8207e)['build']();}},personalBffExec={'service':a47_0x19e102(0x19c),'command':a47_0x19e102(0x17a),'description':a47_0x19e102(0x168),'risk':a47_0x19e102(0x16a),'confirmationDescription':a47_0x19e102(0x1a0),'flags':[{...ID_FLAG,'description':a47_0x19e102(0x19b)},{...PARAMS_FLAG,'description':a47_0x19e102(0x17f)}],async 'validate'(_0x601c60){const _0x1f1c55=a47_0x19e102;parseExecParams(_0x601c60[_0x1f1c55(0x173)]('params'));},async 'execute'(_0x1f0f63){const _0x174a1c=a47_0x19e102,_0x265a8e=_0x1f0f63[_0x174a1c(0x17c)]('id'),_0x3dbbb6=parseExecParams(_0x1f0f63['str'](_0x174a1c(0x166))),_0x3b5e9b=await executePersonalBff(_0x265a8e,_0x1f0f63[_0x174a1c(0x178)],_0x3dbbb6);return{'ok':!![],'data':{'result':_0x3b5e9b},'message':_0x174a1c(0x19e)+_0x265a8e};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0x2825(){const _0x247e25=['list','read','4605200MEUKLE','App\x20Management','Schema','Self\x20Update','app\x20use','Backend\x20Function\x20Scripts','init','Authentication','`lovrabet\x20app\x20use`\x20has\x20been\x20removed.','install','SQL\x20Queries','risk','values','Diagnostics','Configuration','\x20\x20[write]','471204dIKRqM','map','Skills','Runtime\x20App\x20Config','Workspace','API\x20Documentation','20OAhDMi','push','auth\x20init','show','get','run','defaultCommand','Datasets','Use\x20`lovrabet\x20logs\x20show`\x20to\x20view\x20command\x20history.','login','command','Use\x20`lovrabet\x20workspace\x20init\x20--appcode\x20<code>`\x20instead.','clear','OCR','`lovrabet\x20auth\x20init`\x20has\x20been\x20removed.','1125216MzvvGi','service','`lovrabet\x20app\x20init`\x20has\x20been\x20removed.','CLI\x20Built-in\x20Skill','has','Logs','16sqVCOt','description','from','704627FbLFfP','526179SAKQPB','config-list','Knowledge\x20Base','3224627VafkFM','User\x20Accounts','use','Agent\x20Schedules','8WdDrMy','176049jtYLTc','Artifacts','Runtime\x20Permissions','File','\x20\x20[high-risk-write]','logs\x20clear','Use\x20`lovrabet\x20config\x20init`\x20for\x20node\x20configuration,\x20then\x20`lovrabet\x20auth\x20login`\x20for\x20AccessKey\x20authentication.','set','Instant\x20API','write','app'];a48_0x2825=function(){return _0x247e25;};return a48_0x2825();}const a48_0x14bfe8=a48_0x3b08;(function(_0x520a9f,_0xda8ce7){const _0x4d358c=a48_0x3b08,_0x1bad91=_0x520a9f();while(!![]){try{const _0x3c91ea=parseInt(_0x4d358c(0x206))/0x1+parseInt(_0x4d358c(0x20e))/0x2*(parseInt(_0x4d358c(0x207))/0x3)+parseInt(_0x4d358c(0x1e8))/0x4*(-parseInt(_0x4d358c(0x1ee))/0x5)+-parseInt(_0x4d358c(0x1fd))/0x6+-parseInt(_0x4d358c(0x20a))/0x7+-parseInt(_0x4d358c(0x203))/0x8*(parseInt(_0x4d358c(0x20f))/0x9)+parseInt(_0x4d358c(0x21c))/0xa;if(_0x3c91ea===_0xda8ce7)break;else _0x1bad91['push'](_0x1bad91['shift']());}catch(_0xa16e49){_0x1bad91['push'](_0x1bad91['shift']());}}}(a48_0x2825,0xace64));import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{serviceDefinitions}from'../commands/service/index.js';import{updateDefinition}from'../commands/update.js';import{doctorDefinition}from'../commands/doctor.js';import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{artifactDefinitions}from'../commands/artifact/index.js';import{personalBffDefinitions}from'../commands/personal-bff/index.js';import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{scheduleDefinitions}from'../commands/schedule/index.js';function a48_0x3b08(_0x3ff2e3,_0x22eb09){_0x3ff2e3=_0x3ff2e3-0x1e7;const _0x282577=a48_0x2825();let _0x3b0871=_0x282577[_0x3ff2e3];return _0x3b0871;}import{userAccountDefinitions}from'../commands/user-account/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x42c258){const _0x3c4010=a48_0x3b08;for(const _0x1a84d7 of _0x42c258){definitions[_0x3c4010(0x216)](_0x1a84d7['service']+':'+_0x1a84d7['command'],_0x1a84d7);let _0x7a49e8=serviceGroups[_0x3c4010(0x1f2)](_0x1a84d7['service']);!_0x7a49e8&&(_0x7a49e8=[],serviceGroups[_0x3c4010(0x216)](_0x1a84d7[_0x3c4010(0x1fe)],_0x7a49e8)),_0x7a49e8[_0x3c4010(0x1ef)](_0x1a84d7);}}function registerService(_0x3696b0,_0x11b77f,_0x329ea7){const _0x193b42=a48_0x3b08;registerDefinitions(_0x11b77f);const _0x6d81ac=_0xa5756c=>_0xa5756c===_0x193b42(0x21b)?'':_0xa5756c===_0x193b42(0x218)?_0x193b42(0x1e7):_0x193b42(0x213),_0x294fb2={'service':_0x11b77f[0x0][_0x193b42(0x1fe)],'label':_0x3696b0,'commands':_0x11b77f[_0x193b42(0x1e9)](_0x5773d1=>({'command':_0x5773d1[_0x193b42(0x1f8)],'description':_0x5773d1[_0x193b42(0x204)],'tag':_0x6d81ac(_0x5773d1[_0x193b42(0x227)])})),'defaultCommand':_0x329ea7?.[_0x193b42(0x1f4)]??(_0x329ea7?.['isSingleCommand']?_0x11b77f[0x0][_0x193b42(0x1f8)]:undefined),'isSingleCommand':_0x329ea7?.['isSingleCommand']};serviceRegistry['push'](_0x294fb2),serviceByName[_0x193b42(0x216)](_0x294fb2[_0x193b42(0x1fe)],_0x294fb2);}registerService(a48_0x14bfe8(0x223),authDefinitions,{'defaultCommand':a48_0x14bfe8(0x1f7)}),registerService(a48_0x14bfe8(0x20b),userAccountDefinitions),registerService(a48_0x14bfe8(0x21d),appDefinitions,{'defaultCommand':a48_0x14bfe8(0x21a)}),registerService(a48_0x14bfe8(0x1ec),workspaceDefinitions),registerService(a48_0x14bfe8(0x1eb),appConfigDefinitions),registerService(a48_0x14bfe8(0x22a),configDefinitions,{'defaultCommand':a48_0x14bfe8(0x21a)}),registerService('Runtime\x20Roles',roleDefinitions,{'defaultCommand':a48_0x14bfe8(0x21a)}),registerService(a48_0x14bfe8(0x211),permitDefinitions),registerService(a48_0x14bfe8(0x1ed),apiDocDefinitions),registerService(a48_0x14bfe8(0x1f5),datasetDefinitions),registerService(a48_0x14bfe8(0x217),dataDefinitions),registerService(a48_0x14bfe8(0x226),sqlDefinitions),registerService(a48_0x14bfe8(0x221),bffDefinitions),registerService('Personal\x20Backend\x20Function',personalBffDefinitions),registerService(a48_0x14bfe8(0x210),artifactDefinitions),registerService(a48_0x14bfe8(0x212),fileDefinitions),registerService(a48_0x14bfe8(0x1fb),ocrDefinitions),registerService(a48_0x14bfe8(0x209),kbDefinitions),registerService('Notification\x20Configs',notificationDefinitions,{'defaultCommand':a48_0x14bfe8(0x208)}),registerService(a48_0x14bfe8(0x20d),scheduleDefinitions,{'defaultCommand':'list'}),registerService('Service\x20Tree',serviceDefinitions,{'defaultCommand':'list'}),registerService(a48_0x14bfe8(0x1ea),skillDefinitions,{'defaultCommand':a48_0x14bfe8(0x225)}),registerService(a48_0x14bfe8(0x200),cliSkillDefinitions,{'defaultCommand':a48_0x14bfe8(0x225)}),registerService(a48_0x14bfe8(0x21f),[updateDefinition],{'defaultCommand':a48_0x14bfe8(0x1f3),'isSingleCommand':!![]}),registerService(a48_0x14bfe8(0x229),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a48_0x14bfe8(0x21e),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a48_0x14bfe8(0x202),logsDefinitions,{'defaultCommand':a48_0x14bfe8(0x1f1)});export function findDefinition(_0xd156b9,_0x7e99fd){const _0x48f122=a48_0x14bfe8;return definitions[_0x48f122(0x1f2)](_0xd156b9+':'+_0x7e99fd);}export function resolveRemovedCommand(_0x2f5ea8,_0x15e5d9){const _0x51ba20=a48_0x14bfe8;if(_0x2f5ea8==='auth'&&_0x15e5d9===_0x51ba20(0x222))return{'command':_0x51ba20(0x1f0),'message':_0x51ba20(0x1fc),'hint':_0x51ba20(0x215)};if(_0x2f5ea8===_0x51ba20(0x219)&&_0x15e5d9===_0x51ba20(0x222))return{'command':'app\x20init','message':_0x51ba20(0x1ff),'hint':_0x51ba20(0x1f9)};if(_0x2f5ea8===_0x51ba20(0x219)&&_0x15e5d9===_0x51ba20(0x20c))return{'command':_0x51ba20(0x220),'message':_0x51ba20(0x224),'hint':'Use\x20`lovrabet\x20workspace\x20use\x20--app\x20<name>`\x20instead.'};if(_0x2f5ea8==='logs'&&_0x15e5d9===_0x51ba20(0x1fa))return{'command':_0x51ba20(0x214),'message':'`lovrabet\x20logs\x20clear`\x20has\x20been\x20removed.','hint':_0x51ba20(0x1f6)};return undefined;}export function isKnownService(_0x7f8ef4){const _0x394d18=a48_0x14bfe8;return serviceByName[_0x394d18(0x201)](_0x7f8ef4);}export function getServiceEntry(_0x142028){return serviceByName['get'](_0x142028);}export function getAllDefinitions(){const _0x1731f7=a48_0x14bfe8;return Array[_0x1731f7(0x205)](definitions[_0x1731f7(0x228)]());}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x4560(){const _0x2c437d=['string','785882gmHxBu','body','13097uukFpm','--name\x20must\x20not\x20be\x20blank.','Optional\x20role\x20remark','Role\x20name','11398008cPvCgp','remark','5671370TcmYmX','high-risk-write','str','3252ITPdSw','/client/permit/role/create','9OJnTSi','description','POST','create','trim','3193972fYYoqd','1616782sXrpvm','CUSTOM','appCode','873375TyITcl','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','name','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','3VJTFbV'];a49_0x4560=function(){return _0x2c437d;};return a49_0x4560();}const a49_0x423efb=a49_0xcf8a;function a49_0xcf8a(_0x2cb35c,_0x5112e2){_0x2cb35c=_0x2cb35c-0x159;const _0x456041=a49_0x4560();let _0xcf8a39=_0x456041[_0x2cb35c];return _0xcf8a39;}(function(_0x5b83a4,_0x2241fa){const _0x5c3a15=a49_0xcf8a,_0x44b412=_0x5b83a4();while(!![]){try{const _0x11c5be=-parseInt(_0x5c3a15(0x172))/0x1+-parseInt(_0x5c3a15(0x169))/0x2*(-parseInt(_0x5c3a15(0x170))/0x3)+parseInt(_0x5c3a15(0x168))/0x4+-parseInt(_0x5c3a15(0x16c))/0x5+parseInt(_0x5c3a15(0x161))/0x6*(parseInt(_0x5c3a15(0x174))/0x7)+parseInt(_0x5c3a15(0x15c))/0x8*(-parseInt(_0x5c3a15(0x163))/0x9)+parseInt(_0x5c3a15(0x15e))/0xa;if(_0x11c5be===_0x2241fa)break;else _0x44b412['push'](_0x44b412['shift']());}catch(_0x3c740e){_0x44b412['push'](_0x44b412['shift']());}}}(a49_0x4560,0xc3feb));import{createRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{projectRuntimeRole,runtimeRoleWriteResult}from'../../commands/role/shared.js';function input(_0x1e390e){const _0x4094b6=a49_0xcf8a,_0x11ae3b=_0x1e390e[_0x4094b6(0x160)](_0x4094b6(0x16e))[_0x4094b6(0x167)]();if(!_0x11ae3b)throw CliErrors['validation'](_0x4094b6(0x159));const _0x361685=_0x1e390e[_0x4094b6(0x160)]('remark')[_0x4094b6(0x167)]();return{'appCode':_0x1e390e[_0x4094b6(0x16b)],'roleName':_0x11ae3b,..._0x361685?{'remark':_0x361685}:{}};}export const roleCreate={'service':'role','command':'create','description':'Create\x20a\x20runtime\x20CUSTOM\x20role','risk':a49_0x423efb(0x15f),'confirmationDescription':a49_0x423efb(0x16d),'flags':[{'name':a49_0x423efb(0x16e),'type':a49_0x423efb(0x171),'required':!![],'description':a49_0x423efb(0x15b)},{'name':a49_0x423efb(0x15d),'type':a49_0x423efb(0x171),'description':a49_0x423efb(0x15a)}],async 'validate'(_0x284720){input(_0x284720);},async 'dryRun'(_0x3ee99e){const _0x244050=a49_0x423efb;return dryRun(_0x244050(0x165),_0x244050(0x162))[_0x244050(0x173)]({'roleType':_0x244050(0x16a),...input(_0x3ee99e)})[_0x244050(0x164)](_0x244050(0x16f))['build']();},async 'execute'(_0x185823){const _0x24dd35=a49_0x423efb,_0x2a87ee=await createRuntimeAppRole(input(_0x185823));return{'ok':!![],'data':runtimeRoleWriteResult(_0x24dd35(0x166),{'roleId':_0x2a87ee['id']},null,projectRuntimeRole(_0x2a87ee),{'method':_0x24dd35(0x165),'path':'/client/permit/role/create'})};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x491738=a50_0x551c;(function(_0x383c5a,_0x2c4252){const _0x5f43a9=a50_0x551c,_0x3c35d6=_0x383c5a();while(!![]){try{const _0x2ab8f7=parseInt(_0x5f43a9(0x1ba))/0x1+-parseInt(_0x5f43a9(0x1b4))/0x2+-parseInt(_0x5f43a9(0x1c0))/0x3*(-parseInt(_0x5f43a9(0x1c1))/0x4)+parseInt(_0x5f43a9(0x1af))/0x5*(-parseInt(_0x5f43a9(0x1bc))/0x6)+parseInt(_0x5f43a9(0x1bb))/0x7*(parseInt(_0x5f43a9(0x1b8))/0x8)+parseInt(_0x5f43a9(0x1b7))/0x9*(parseInt(_0x5f43a9(0x1b1))/0xa)+-parseInt(_0x5f43a9(0x1bf))/0xb*(-parseInt(_0x5f43a9(0x1bd))/0xc);if(_0x2ab8f7===_0x2c4252)break;else _0x3c35d6['push'](_0x3c35d6['shift']());}catch(_0x24ff17){_0x3c35d6['push'](_0x3c35d6['shift']());}}}(a50_0x13ca,0x31141));import{deleteRuntimeAppRole}from'../../core/api-client.js';import{dryRun}from'../../framework/dryrun.js';function a50_0x551c(_0x425f58,_0x1f7af4){_0x425f58=_0x425f58-0x1af;const _0x13caa7=a50_0x13ca();let _0x551cb6=_0x13caa7[_0x425f58];return _0x551cb6;}import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';async function prepare(_0x3b4a00){const _0x223a6c=a50_0x551c,_0x5ef868=await getRuntimeRoleById(_0x3b4a00[_0x223a6c(0x1b3)],_0x3b4a00[_0x223a6c(0x1be)]('id'));return assertCustomRuntimeRole(_0x5ef868,_0x223a6c(0x1b2)),_0x5ef868;}function a50_0x13ca(){const _0x6f8964=['329260ObMSem','delete','appCode','727386DEruUp','role','Preview:\x20delete\x20a\x20runtime\x20CUSTOM\x20role','27jtKqSn','984tTFXOT','/client/permit/role/delete','88153joIssn','7133BnPhmz','30GPLwwX','12fjPmTd','num','2110537dkScjA','425394DwXYYF','4MObAAI','POST','81215OFSQPm','Deletes\x20the\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20Membership\x20and\x20permission\x20config\x20for\x20that\x20role\x20may\x20become\x20invalid.'];a50_0x13ca=function(){return _0x6f8964;};return a50_0x13ca();}export const roleDelete={'service':a50_0x491738(0x1b5),'command':'delete','description':'Delete\x20a\x20runtime\x20CUSTOM\x20role','risk':'high-risk-write','confirmationDescription':a50_0x491738(0x1b0),'flags':[ROLE_ID_FLAG],async 'dryRun'(_0x540f3c){const _0x466e76=a50_0x491738,_0x4c231f=await prepare(_0x540f3c);return dryRun(_0x466e76(0x1c2),'/client/permit/role/delete')['body']({'id':_0x4c231f['id']})['description'](_0x466e76(0x1b6))['build']();},async 'execute'(_0x5786fb){const _0x108732=a50_0x491738,_0x5107a9=await prepare(_0x5786fb);return await deleteRuntimeAppRole(_0x5107a9['id']),{'ok':!![],'data':runtimeRoleWriteResult(_0x108732(0x1b2),{'roleId':_0x5107a9['id']},projectRuntimeRole(_0x5107a9),null,{'method':_0x108732(0x1c2),'path':_0x108732(0x1b9)})};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a51_0x11f9a8=a51_0x516a;function a51_0x59ca(){const _0x4043db=['Show\x20one\x20runtime\x20role\x20by\x20ID','47604YPyUKV','role','runtime','25QZuLZv','2223vVLTUX','appCode','read','987872oZrdAF','124436VajvkZ','num','16056GGfPxc','13939kIZspt','191275OAfmZt','1542705KZxRNs'];a51_0x59ca=function(){return _0x4043db;};return a51_0x59ca();}function a51_0x516a(_0x391802,_0x38dcae){_0x391802=_0x391802-0xdc;const _0x59caa5=a51_0x59ca();let _0x516aad=_0x59caa5[_0x391802];return _0x516aad;}(function(_0x516f27,_0x488ee8){const _0x4b019e=a51_0x516a,_0x6d3ce9=_0x516f27();while(!![]){try{const _0x19b94a=-parseInt(_0x4b019e(0xe1))/0x1+-parseInt(_0x4b019e(0xdd))/0x2+parseInt(_0x4b019e(0xe3))/0x3+parseInt(_0x4b019e(0xde))/0x4*(-parseInt(_0x4b019e(0xe8))/0x5)+-parseInt(_0x4b019e(0xe5))/0x6+parseInt(_0x4b019e(0xe2))/0x7+parseInt(_0x4b019e(0xe0))/0x8*(parseInt(_0x4b019e(0xe9))/0x9);if(_0x19b94a===_0x488ee8)break;else _0x6d3ce9['push'](_0x6d3ce9['shift']());}catch(_0xfc6203){_0x6d3ce9['push'](_0x6d3ce9['shift']());}}}(a51_0x59ca,0x5956f));import{getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';export const roleDetail={'service':a51_0x11f9a8(0xe6),'command':'detail','description':a51_0x11f9a8(0xe4),'risk':a51_0x11f9a8(0xdc),'flags':[ROLE_ID_FLAG],async 'execute'(_0x345ef2){const _0xfbadf2=a51_0x11f9a8,_0x546648=await getRuntimeRoleById(_0x345ef2[_0xfbadf2(0xea)],_0x345ef2[_0xfbadf2(0xdf)]('id'));return{'ok':!![],'data':{'scope':_0xfbadf2(0xe7),'role':projectRuntimeRole(_0x546648)}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1db350,_0x24d893){const _0x1181ac=a52_0x39bb,_0x30f5af=_0x1db350();while(!![]){try{const _0x3de428=parseInt(_0x1181ac(0xe7))/0x1+parseInt(_0x1181ac(0xed))/0x2+parseInt(_0x1181ac(0xeb))/0x3+-parseInt(_0x1181ac(0xe8))/0x4+parseInt(_0x1181ac(0xea))/0x5+-parseInt(_0x1181ac(0xe9))/0x6+-parseInt(_0x1181ac(0xec))/0x7;if(_0x3de428===_0x24d893)break;else _0x30f5af['push'](_0x30f5af['shift']());}catch(_0x398b6e){_0x30f5af['push'](_0x30f5af['shift']());}}}(a52_0x3f0a,0xd47e0));import{roleList}from'../../commands/role/list.js';function a52_0x39bb(_0xb7357c,_0x5b8ce5){_0xb7357c=_0xb7357c-0xe7;const _0x3f0a3e=a52_0x3f0a();let _0x39bb1c=_0x3f0a3e[_0xb7357c];return _0x39bb1c;}import{roleDetail}from'../../commands/role/detail.js';function a52_0x3f0a(){const _0x3aa6f6=['2816052saKeDY','920334hQhLRK','4506308oUWffu','5204652csbEGr','2531185OjBiqh','654300KSnMvZ','1318170FBAHXd'];a52_0x3f0a=function(){return _0x3aa6f6;};return a52_0x3f0a();}import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserAdd,roleUserRemove];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x5686ba=a53_0x2898;(function(_0x30f2a9,_0x54990c){const _0x1bda17=a53_0x2898,_0x16e0ea=_0x30f2a9();while(!![]){try{const _0x1e363b=-parseInt(_0x1bda17(0x9a))/0x1*(-parseInt(_0x1bda17(0x8f))/0x2)+-parseInt(_0x1bda17(0x77))/0x3*(parseInt(_0x1bda17(0x91))/0x4)+-parseInt(_0x1bda17(0x78))/0x5*(parseInt(_0x1bda17(0x8c))/0x6)+-parseInt(_0x1bda17(0x95))/0x7*(parseInt(_0x1bda17(0x82))/0x8)+-parseInt(_0x1bda17(0x84))/0x9*(parseInt(_0x1bda17(0x7d))/0xa)+parseInt(_0x1bda17(0x85))/0xb+parseInt(_0x1bda17(0x7f))/0xc*(parseInt(_0x1bda17(0x72))/0xd);if(_0x1e363b===_0x54990c)break;else _0x16e0ea['push'](_0x16e0ea['shift']());}catch(_0x1870ad){_0x16e0ea['push'](_0x16e0ea['shift']());}}}(a53_0xd894,0xd25de));import{listRuntimeAppRoles}from'../../core/api-client.js';function a53_0xd894(){const _0x344d3c=['156drSdEa','Runtime\x20role\x20type','string','8bAGaEO','length','11107836cBLlvT','665049uAAMhp','list','type','trim','items','str','name','125634ltdYKc','paging','Invalid\x20runtime\x20role\x20type:\x20','54814XwUdJO','slice','1092908zXxIhQ','Fuzzy\x20role-name\x20filter','runtime','map','6806394lIcAlp','num','appCode','number','pagesize','19WoIiyw','3431311WWlOcf','roleType','isSafeInteger','Page\x20number','--pagesize\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','6vwHpSa','95WkBszL','read','Page\x20size\x20from\x201\x20to\x20100','toUpperCase','validation','10DuCKVF','filter'];a53_0xd894=function(){return _0x344d3c;};return a53_0xd894();}import{CliErrors}from'../../errors.js';function a53_0x2898(_0x1b16bd,_0x31d69a){_0x1b16bd=_0x1b16bd-0x72;const _0xd894a=a53_0xd894();let _0x28989c=_0xd894a[_0x1b16bd];return _0x28989c;}import{listAllRuntimeRoles,projectRuntimeRole,RUNTIME_ROLE_TYPES}from'../../commands/role/shared.js';export const roleList={'service':'role','command':a53_0x5686ba(0x86),'description':'List\x20runtime\x20roles\x20for\x20the\x20current\x20app','risk':a53_0x5686ba(0x79),'flags':[{'name':'type','type':a53_0x5686ba(0x81),'enum':RUNTIME_ROLE_TYPES,'description':a53_0x5686ba(0x80)},{'name':'name','type':'string','description':a53_0x5686ba(0x92)},{'name':'page','type':a53_0x5686ba(0x98),'default':0x1,'description':a53_0x5686ba(0x75)},{'name':a53_0x5686ba(0x99),'type':'number','default':0x64,'description':a53_0x5686ba(0x7a)}],async 'validate'(_0x1f9061){const _0x471c77=a53_0x5686ba,_0x4dcefa=_0x1f9061[_0x471c77(0x8a)](_0x471c77(0x87))['toUpperCase']();if(_0x4dcefa&&!RUNTIME_ROLE_TYPES['includes'](_0x4dcefa))throw CliErrors['validation'](_0x471c77(0x8e)+_0x4dcefa+'.');const _0x38f9c4=_0x1f9061[_0x471c77(0x96)]('page',0x1),_0x518b48=_0x1f9061['num'](_0x471c77(0x99),0x64);if(!Number['isSafeInteger'](_0x38f9c4)||_0x38f9c4<0x1)throw CliErrors[_0x471c77(0x7c)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x471c77(0x74)](_0x518b48)||_0x518b48<0x1||_0x518b48>0x64)throw CliErrors['validation'](_0x471c77(0x76));},async 'execute'(_0x41172d){const _0x2d8b91=a53_0x5686ba,_0x41b8db=_0x41172d[_0x2d8b91(0x8a)](_0x2d8b91(0x87))[_0x2d8b91(0x7b)](),_0x5ef5ec=_0x41172d['str'](_0x2d8b91(0x8b))[_0x2d8b91(0x88)](),_0x2d8372=_0x41172d['num']('page',0x1),_0x6dca5e=_0x41172d[_0x2d8b91(0x96)](_0x2d8b91(0x99),0x64);if(_0x41b8db){const _0x5ef196=(await listAllRuntimeRoles(_0x41172d['appCode'],{..._0x5ef5ec?{'roleName':_0x5ef5ec}:{}}))[_0x2d8b91(0x7e)](_0x5bd9c8=>_0x5bd9c8[_0x2d8b91(0x73)]===_0x41b8db),_0x560b63=(_0x2d8372-0x1)*_0x6dca5e;return{'ok':!![],'data':{'scope':_0x2d8b91(0x93),'roles':_0x5ef196[_0x2d8b91(0x90)](_0x560b63,_0x560b63+_0x6dca5e)[_0x2d8b91(0x94)](projectRuntimeRole),'paging':{'currentPage':_0x2d8372,'pageSize':_0x6dca5e,'totalCount':_0x5ef196[_0x2d8b91(0x83)]}}};}const _0x2ea003=await listRuntimeAppRoles(_0x41172d[_0x2d8b91(0x97)],{..._0x5ef5ec?{'roleName':_0x5ef5ec}:{},'currentPage':_0x2d8372,'pageSize':_0x6dca5e});return{'ok':!![],'data':{'scope':_0x2d8b91(0x93),'roles':_0x2ea003[_0x2d8b91(0x89)][_0x2d8b91(0x94)](projectRuntimeRole),'paging':_0x2ea003[_0x2d8b91(0x8d)]}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x113a5b=a54_0x5bd5;(function(_0xc67f8c,_0x5ba016){const _0x3e24a2=a54_0x5bd5,_0x322c8d=_0xc67f8c();while(!![]){try{const _0x3080b=-parseInt(_0x3e24a2(0xcf))/0x1+parseInt(_0x3e24a2(0xd3))/0x2+parseInt(_0x3e24a2(0xd0))/0x3+parseInt(_0x3e24a2(0xf6))/0x4*(parseInt(_0x3e24a2(0xe5))/0x5)+-parseInt(_0x3e24a2(0xda))/0x6+parseInt(_0x3e24a2(0xe0))/0x7*(parseInt(_0x3e24a2(0xed))/0x8)+-parseInt(_0x3e24a2(0xd2))/0x9*(-parseInt(_0x3e24a2(0xc5))/0xa);if(_0x3080b===_0x5ba016)break;else _0x322c8d['push'](_0x322c8d['shift']());}catch(_0xe18b7f){_0x322c8d['push'](_0x322c8d['shift']());}}}(a54_0x4328,0xd27a4));import{listRuntimeAppUsers,listRuntimeAppRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const RUNTIME_ROLE_TYPES=['ADMIN','USER',a54_0x113a5b(0xbe),a54_0x113a5b(0xf1)];const BUILTIN_ROLE_TYPES=[a54_0x113a5b(0xe6),a54_0x113a5b(0xfa),'OWNER'];export const ROLE_ID_FLAG={'name':'id','type':a54_0x113a5b(0xfe),'required':!![],'description':'Runtime\x20role\x20ID\x20returned\x20by\x20role\x20list'};export const ROLE_REF_FLAG={'name':'role','type':a54_0x113a5b(0xfc),'required':!![],'description':a54_0x113a5b(0xee)};export const USER_ID_FLAG={'name':a54_0x113a5b(0xfb),'type':a54_0x113a5b(0xfc),'required':!![],'description':a54_0x113a5b(0x100)};function a54_0x5bd5(_0x35e1b2,_0x146177){_0x35e1b2=_0x35e1b2-0xbd;const _0x4328e7=a54_0x4328();let _0x5bd55f=_0x4328e7[_0x35e1b2];return _0x5bd55f;}export const EXPECT_USER_COUNT_FLAG={'name':a54_0x113a5b(0xc8),'type':a54_0x113a5b(0xfe),'description':'Reject\x20when\x20the\x20target\x20role\x20member\x20count\x20has\x20changed'};function a54_0x4328(){const _0xfc0f76=['CUSTOM','filter','str','map','Runtime\x20role\x20membership\x20requires\x20a\x20numeric\x20userId.','6548MjzOBi','trim','\x20is\x20already\x20in\x20runtime\x20role\x20','\x20was\x20not\x20found\x20in\x20app\x20','USER','user','string','Read\x20the\x20current\x20members\x20and\x20retry\x20with\x20the\x20new\x20expected\x20count.','number','Run\x20`lovrabet\x20role\x20list`\x20or\x20pass\x20--role\x20<id>.','Runtime\x20numeric\x20userId','find','Transfer\x20or\x20manage\x20application\x20ownership\x20through\x20the\x20dedicated\x20application\x20workflow.','Use\x20a\x20numeric\x20userId\x20returned\x20by\x20the\x20current\x20application\x27s\x20personnel\x20list.','OWNER','Pass\x20one\x20role\x20ID:\x20','userId','roleName','user-add','appCode','User\x20','1245480PDkGnH','Only\x20CUSTOM\x20runtime\x20roles\x20can\x20be\x20modified\x20or\x20deleted.','applyUserList','expect-user-count','Runtime\x20role\x20name\x20\x22','roleType','paging','test','Cannot\x20','userName','808040aibryy','2011257usIodx','join','63LhejQq','1551380jcbECG','push','Pass\x20--role\x20<id|name>.','includes','Reload\x20the\x20role\x20list\x20and\x20retry\x20after\x20the\x20server\x20state\x20is\x20consistent.','flag','Role\x20ID\x20must\x20be\x20a\x20positive\x20integer.','6646254weJaZe','\x20built-in\x20runtime\x20role\x20','userList','Run\x20`lovrabet\x20role\x20list`\x20and\x20use\x20a\x20role\x20from\x20the\x20current\x20app.','userCount','\x22\x20was\x20not\x20found\x20in\x20app\x20','28133kPKfQF','length','isSafeInteger','validation','role','435aLOeuq','ADMIN','totalCount','Runtime\x20userId\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Runtime\x20role\x20member\x20count\x20changed:\x20expected\x20','Runtime\x20role\x20','items','Missing\x20runtime\x20role\x20reference.','632oyQKyl','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','code','num'];a54_0x4328=function(){return _0xfc0f76;};return a54_0x4328();}export function isBuiltinRuntimeRole(_0x2037be){const _0x248e0c=a54_0x113a5b;return BUILTIN_ROLE_TYPES[_0x248e0c(0xd6)](_0x2037be);}export function assertCustomRuntimeRole(_0x579d5c,_0x82543b){const _0x37b4f9=a54_0x113a5b;if(_0x579d5c[_0x37b4f9(0xca)]!==_0x37b4f9(0xf1))throw CliErrors[_0x37b4f9(0xe3)](_0x37b4f9(0xcd)+_0x82543b+_0x37b4f9(0xdb)+_0x579d5c[_0x37b4f9(0xc1)]+'\x20('+_0x579d5c['roleType']+').',_0x37b4f9(0xc6));}export function projectRuntimeRole(_0x473707){const _0x32026d=a54_0x113a5b;return{'id':_0x473707['id'],'roleName':_0x473707[_0x32026d(0xc1)],'roleType':_0x473707[_0x32026d(0xca)],'remark':_0x473707['remark'],'userCount':_0x473707[_0x32026d(0xde)]??0x0,'permitCount':_0x473707['permitCount']??0x0,'builtin':isBuiltinRuntimeRole(_0x473707['roleType'])};}export async function getRuntimeRoleById(_0x798fd7,_0x50a6dc){const _0x139376=a54_0x113a5b;if(!Number[_0x139376(0xe2)](_0x50a6dc)||_0x50a6dc<=0x0)throw CliErrors[_0x139376(0xe3)](_0x139376(0xd9));const _0x13a109=(await listAllRuntimeRoles(_0x798fd7))[_0x139376(0xf2)](_0x1f3370=>_0x1f3370['id']===_0x50a6dc&&(!_0x1f3370[_0x139376(0xc3)]||_0x1f3370['appCode']===_0x798fd7));if(_0x13a109[_0x139376(0xe1)]!==0x1)throw CliErrors[_0x139376(0xe3)]('Runtime\x20role\x20id\x20'+_0x50a6dc+_0x139376(0xf9)+_0x798fd7+'.',_0x139376(0xdd));return _0x13a109[0x0];}export async function listAllRuntimeRoles(_0x57516c,_0x4e5021={}){const _0x24859f=a54_0x113a5b,_0x3b656c=0x64,_0x19324b=[];for(let _0x13fe25=0x1;;_0x13fe25+=0x1){const _0x13384b=await listRuntimeAppRoles(_0x57516c,{..._0x4e5021[_0x24859f(0xc1)]?{'roleName':_0x4e5021[_0x24859f(0xc1)]}:{},'currentPage':_0x13fe25,'pageSize':_0x3b656c});_0x19324b[_0x24859f(0xd4)](..._0x13384b['items']);if(_0x13384b[_0x24859f(0xeb)][_0x24859f(0xe1)]<_0x3b656c||_0x13384b[_0x24859f(0xcb)]&&_0x19324b['length']>=_0x13384b[_0x24859f(0xcb)][_0x24859f(0xe7)])return _0x19324b;}}export async function resolveRuntimeRoleRef(_0x52c6a0,_0x461d62){const _0x262662=a54_0x113a5b,_0x147761=_0x461d62['trim']();if(!_0x147761)throw CliErrors['validation'](_0x262662(0xec),_0x262662(0xd5));if(/^\d+$/[_0x262662(0xcc)](_0x147761))return getRuntimeRoleById(_0x52c6a0,Number(_0x147761));const _0xfc8050=(await listAllRuntimeRoles(_0x52c6a0))[_0x262662(0xf2)](_0x580253=>_0x580253[_0x262662(0xc1)]===_0x147761);if(_0xfc8050[_0x262662(0xe1)]===0x0)throw CliErrors['validation'](_0x262662(0xc9)+_0x147761+_0x262662(0xdf)+_0x52c6a0+'.',_0x262662(0xff));if(_0xfc8050[_0x262662(0xe1)]>0x1)throw CliErrors[_0x262662(0xe3)]('Runtime\x20role\x20name\x20\x22'+_0x147761+'\x22\x20is\x20ambiguous.',_0x262662(0xbf)+_0xfc8050[_0x262662(0xf4)](_0x1df087=>_0x1df087['id'])[_0x262662(0xd1)](',\x20')+'.');return _0xfc8050[0x0];}function parseRuntimeUserId(_0x44bca9){const _0x2f820a=a54_0x113a5b,_0xd00f2f=_0x44bca9[_0x2f820a(0xf7)]();if(!/^\d+$/[_0x2f820a(0xcc)](_0xd00f2f))throw CliErrors[_0x2f820a(0xe3)](_0x2f820a(0xf5),'Pass\x20--user\x20<userId>;\x20name\x20and\x20account\x20lookup\x20are\x20not\x20available\x20in\x20runtime\x20scope.');const _0x55f5c5=Number(_0xd00f2f);if(!Number[_0x2f820a(0xe2)](_0x55f5c5)||_0x55f5c5<=0x0)throw CliErrors[_0x2f820a(0xe3)](_0x2f820a(0xe8));return _0x55f5c5;}export async function prepareRuntimeMemberMutation(_0x255c3c,_0x49201e){const _0x5db32f=a54_0x113a5b,_0x320e33=await resolveRuntimeRoleRef(_0x255c3c['appCode'],_0x255c3c[_0x5db32f(0xf3)](_0x5db32f(0xe4)));if(_0x320e33[_0x5db32f(0xca)]===_0x5db32f(0xbe))throw CliErrors['validation']('OWNER\x20runtime\x20role\x20membership\x20cannot\x20be\x20changed\x20with\x20this\x20command.',_0x5db32f(0x102));const _0x47148a=parseRuntimeUserId(_0x255c3c['str']('user')),_0x274e6c=(await listRuntimeRoleUsers(_0x255c3c[_0x5db32f(0xc3)]))[_0x5db32f(0xf4)](_0x49d500=>({..._0x49d500,'userList':[..._0x49d500[_0x5db32f(0xdc)]??[]],'applyUserList':[..._0x49d500[_0x5db32f(0xc7)]??[]]})),_0x4f7ee2=_0x274e6c[_0x5db32f(0x101)](_0x453aab=>_0x453aab['id']===_0x320e33['id']);if(!_0x4f7ee2)throw CliErrors[_0x5db32f(0xe3)](_0x5db32f(0xea)+_0x320e33['id']+'\x20is\x20missing\x20from\x20the\x20grouped\x20member\x20snapshot.',_0x5db32f(0xd7));const _0x24a832=_0x4f7ee2[_0x5db32f(0xdc)][_0x5db32f(0xf4)](_0x4d23f3=>_0x4d23f3[_0x5db32f(0xc0)]),_0x50966f=_0x255c3c[_0x5db32f(0xd8)](_0x5db32f(0xc8));if(_0x50966f!==undefined&&_0x50966f!==null&&_0x50966f!==''){const _0xf9620b=_0x255c3c[_0x5db32f(0xf0)]('expect-user-count');if(!Number[_0x5db32f(0xe2)](_0xf9620b)||_0xf9620b<0x0)throw CliErrors[_0x5db32f(0xe3)]('--expect-user-count\x20must\x20be\x20a\x20non-negative\x20integer.');if(_0x24a832[_0x5db32f(0xe1)]!==_0xf9620b)throw CliErrors[_0x5db32f(0xe3)](_0x5db32f(0xe9)+_0xf9620b+',\x20found\x20'+_0x24a832['length']+'.',_0x5db32f(0xfd));}const _0xdd1edd=_0x24a832['includes'](_0x47148a),_0x446191=[];let _0x4be9c1=!![];if(_0x49201e===_0x5db32f(0xc2)){const _0x5b51e3=await listRuntimeAppUsers(_0x255c3c[_0x5db32f(0xc3)]),_0x4564ba=_0x5b51e3[_0x5db32f(0xf2)](_0x4823bd=>Number(_0x4823bd[_0x5db32f(0xef)])===_0x47148a);if(_0x4564ba['length']!==0x1||!_0x4564ba[0x0]['userName']?.[_0x5db32f(0xf7)]())throw CliErrors[_0x5db32f(0xe3)]('Runtime\x20user\x20'+_0x47148a+_0x5db32f(0xf9)+_0x255c3c['appCode']+'.',_0x5db32f(0xbd));_0xdd1edd?(_0x4be9c1=![],_0x446191[_0x5db32f(0xd4)](_0x5db32f(0xc4)+_0x47148a+_0x5db32f(0xf8)+_0x320e33['id']+'.')):_0x4f7ee2['userList'][_0x5db32f(0xd4)]({'userId':_0x47148a,'username':_0x4564ba[0x0][_0x5db32f(0xce)]});}else!_0xdd1edd?(_0x4be9c1=![],_0x446191[_0x5db32f(0xd4)](_0x5db32f(0xc4)+_0x47148a+'\x20is\x20not\x20in\x20runtime\x20role\x20'+_0x320e33['id']+'.')):_0x4f7ee2[_0x5db32f(0xdc)]=_0x4f7ee2[_0x5db32f(0xdc)]['filter'](_0x9e0dd1=>_0x9e0dd1[_0x5db32f(0xc0)]!==_0x47148a);return{'role':_0x320e33,'userId':_0x47148a,'roleList':_0x274e6c,'before':{'userIds':_0x24a832},'after':{'userIds':_0x4f7ee2[_0x5db32f(0xdc)][_0x5db32f(0xf4)](_0x538b41=>_0x538b41[_0x5db32f(0xc0)])},'shouldWrite':_0x4be9c1,'warnings':_0x446191};}export function runtimeRoleWriteResult(_0xfbd06c,_0x4cb9eb,_0x5f3a6c,_0x527968,_0x5e2b94,_0x15ea79=[]){return{'operation':_0xfbd06c,'scope':'runtime','selector':_0x4cb9eb,'before':_0x5f3a6c,'after':_0x527968,'dryRun':![],'backend':_0x5e2b94,'warnings':_0x15ea79};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x1068(){const _0x495b4e=['Pass\x20--name\x20or\x20--remark\x20to\x20update\x20the\x20runtime\x20role.','13744HWRypk','New\x20non-empty\x20role\x20remark','num','str','--remark\x20must\x20not\x20be\x20blank.','2773274ODWbjO','name','The\x20current\x20runtime\x20role\x20API\x20does\x20not\x20support\x20clearing\x20an\x20existing\x20remark.','update','flag','string','15152730fgiXdQ','6phpcWB','description','body','339EYIJfn','/client/permit/role/update','high-risk-write','596276tnCPNt','1834085LAGoDt','8yJCueZ','appCode','validation','remark','Changes\x20the\x20custom\x20role\x20name\x20or\x20note\x20in\x20the\x20current\x20runtime\x20app.\x20The\x20role\x20display\x20updates\x20immediately.','Update\x20a\x20runtime\x20CUSTOM\x20role','trim','1965456VshVBw','POST','1395062lEpBIX'];a55_0x1068=function(){return _0x495b4e;};return a55_0x1068();}function a55_0x1c54(_0x56ea82,_0x2b1c68){_0x56ea82=_0x56ea82-0xd5;const _0x106816=a55_0x1068();let _0x1c543b=_0x106816[_0x56ea82];return _0x1c543b;}const a55_0x4f2650=a55_0x1c54;(function(_0x9301cf,_0x3a8fe9){const _0x40a3cf=a55_0x1c54,_0x147f31=_0x9301cf();while(!![]){try{const _0x339306=-parseInt(_0x40a3cf(0xe4))/0x1+-parseInt(_0x40a3cf(0xef))/0x2+parseInt(_0x40a3cf(0xe1))/0x3*(-parseInt(_0x40a3cf(0xf1))/0x4)+-parseInt(_0x40a3cf(0xe5))/0x5*(-parseInt(_0x40a3cf(0xde))/0x6)+parseInt(_0x40a3cf(0xd7))/0x7+parseInt(_0x40a3cf(0xe6))/0x8*(-parseInt(_0x40a3cf(0xed))/0x9)+parseInt(_0x40a3cf(0xdd))/0xa;if(_0x339306===_0x3a8fe9)break;else _0x147f31['push'](_0x147f31['shift']());}catch(_0x29bcb9){_0x147f31['push'](_0x147f31['shift']());}}}(a55_0x1068,0x5c3d5));import{updateRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function updateFields(_0x3ee117){const _0x2857ab=a55_0x1c54,_0xeccbcd=_0x3ee117[_0x2857ab(0xdb)]('name')!==undefined,_0x2bf1e7=_0x3ee117[_0x2857ab(0xdb)](_0x2857ab(0xe9))!==undefined;if(!_0xeccbcd&&!_0x2bf1e7)throw CliErrors['validation'](_0x2857ab(0xf0));const _0x5d0cce=_0x3ee117[_0x2857ab(0xd5)](_0x2857ab(0xd8))[_0x2857ab(0xec)](),_0x1fc4dd=_0x3ee117[_0x2857ab(0xd5)](_0x2857ab(0xe9))[_0x2857ab(0xec)]();if(_0xeccbcd&&!_0x5d0cce)throw CliErrors[_0x2857ab(0xe8)]('--name\x20must\x20not\x20be\x20blank.');if(_0x2bf1e7&&!_0x1fc4dd)throw CliErrors[_0x2857ab(0xe8)](_0x2857ab(0xd6),_0x2857ab(0xd9));return{..._0xeccbcd?{'roleName':_0x5d0cce}:{},..._0x2bf1e7?{'remark':_0x1fc4dd}:{}};}async function prepare(_0x1246f4){const _0x26bc02=a55_0x1c54,_0x4911fb=await getRuntimeRoleById(_0x1246f4['appCode'],_0x1246f4[_0x26bc02(0xf3)]('id'));return assertCustomRuntimeRole(_0x4911fb,'update'),{'role':_0x4911fb,'body':{'id':_0x4911fb['id'],'appCode':_0x1246f4[_0x26bc02(0xe7)],...updateFields(_0x1246f4)}};}export const roleUpdate={'service':'role','command':a55_0x4f2650(0xda),'description':a55_0x4f2650(0xeb),'risk':a55_0x4f2650(0xe3),'confirmationDescription':a55_0x4f2650(0xea),'flags':[ROLE_ID_FLAG,{'name':a55_0x4f2650(0xd8),'type':'string','description':'New\x20role\x20name'},{'name':'remark','type':a55_0x4f2650(0xdc),'description':a55_0x4f2650(0xf2)}],async 'validate'(_0x2b640e){updateFields(_0x2b640e);},async 'dryRun'(_0x3b4140){const _0x2da9fd=a55_0x4f2650,{body:_0x203d88}=await prepare(_0x3b4140);return dryRun(_0x2da9fd(0xee),_0x2da9fd(0xe2))[_0x2da9fd(0xe0)](_0x203d88)[_0x2da9fd(0xdf)]('Preview:\x20update\x20a\x20runtime\x20CUSTOM\x20role')['build']();},async 'execute'(_0x59851b){const _0xc59779=a55_0x4f2650,{role:_0x498b28,body:_0x96fccd}=await prepare(_0x59851b),_0x2164d4=await updateRuntimeAppRole(_0x96fccd);return{'ok':!![],'data':runtimeRoleWriteResult(_0xc59779(0xda),{'roleId':_0x498b28['id']},projectRuntimeRole(_0x498b28),projectRuntimeRole(_0x2164d4),{'method':'POST','path':_0xc59779(0xe2)})};}};
|