@tangle-network/agent-app 0.60.256 → 0.60.258
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/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-4GCPADYG.js → chunk-3Q2JI5MQ.js} +13 -21
- package/dist/{chunk-4GCPADYG.js.map → chunk-3Q2JI5MQ.js.map} +1 -1
- package/dist/platform/delegated-keys.d.ts +11 -0
- package/dist/platform/index.js +77 -54
- package/dist/platform/index.js.map +1 -1
- package/dist/sandbox/access.d.ts +6 -6
- package/dist/sandbox/index.js +1 -1
- package/package.json +4 -4
|
@@ -3487,29 +3487,21 @@ async function driveSandboxTurn(shell, box, message, options) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
|
|
3489
3489
|
// src/sandbox/access.ts
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
return fail(err);
|
|
3490
|
+
var SandboxMemberPermissionsUnsupportedError = class extends Error {
|
|
3491
|
+
code = "sandbox_member_permissions_unsupported";
|
|
3492
|
+
constructor() {
|
|
3493
|
+
super("Sandbox member permissions are not served by the platform; @tangle-network/sandbox 0.64 removed box.permissions.");
|
|
3494
|
+
this.name = "SandboxMemberPermissionsUnsupportedError";
|
|
3496
3495
|
}
|
|
3496
|
+
};
|
|
3497
|
+
async function syncSandboxMemberAdd(_box, _seam, _userId, _role) {
|
|
3498
|
+
return fail(new SandboxMemberPermissionsUnsupportedError());
|
|
3497
3499
|
}
|
|
3498
|
-
async function syncSandboxMemberRemove(
|
|
3499
|
-
|
|
3500
|
-
await box.permissions.remove(userId, { preserveHomeDir: true });
|
|
3501
|
-
return ok(void 0);
|
|
3502
|
-
} catch (err) {
|
|
3503
|
-
return fail(err);
|
|
3504
|
-
}
|
|
3500
|
+
async function syncSandboxMemberRemove(_box, _userId) {
|
|
3501
|
+
return fail(new SandboxMemberPermissionsUnsupportedError());
|
|
3505
3502
|
}
|
|
3506
|
-
async function syncSandboxMemberRole(
|
|
3507
|
-
|
|
3508
|
-
await box.permissions.update(userId, { role: seam.roleToSandboxRole(role) });
|
|
3509
|
-
return ok(void 0);
|
|
3510
|
-
} catch (err) {
|
|
3511
|
-
return fail(err);
|
|
3512
|
-
}
|
|
3503
|
+
async function syncSandboxMemberRole(_box, _seam, _userId, _role) {
|
|
3504
|
+
return fail(new SandboxMemberPermissionsUnsupportedError());
|
|
3513
3505
|
}
|
|
3514
3506
|
function secretStoreFromClient(shell) {
|
|
3515
3507
|
const client = getClient(shell);
|
|
@@ -3670,4 +3662,4 @@ export {
|
|
|
3670
3662
|
deleteSecret,
|
|
3671
3663
|
mintSandboxScopedToken
|
|
3672
3664
|
};
|
|
3673
|
-
//# sourceMappingURL=chunk-
|
|
3665
|
+
//# sourceMappingURL=chunk-3Q2JI5MQ.js.map
|