(owner: Owner)
| 1706 | }; |
| 1707 | |
| 1708 | const ownedKeys = (owner: Owner): OwnedKeys => { |
| 1709 | if (owner === "org") return { tenant, owner, subject: ORG_SUBJECT }; |
| 1710 | if (subject == null) { |
| 1711 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: programmer error caught and surfaced as StorageError below by callers |
| 1712 | throw new StorageError({ |
| 1713 | message: `Cannot target owner "user": executor has no subject.`, |
| 1714 | cause: undefined, |
| 1715 | }); |
| 1716 | } |
| 1717 | return { tenant, owner, subject }; |
| 1718 | }; |
| 1719 | |
| 1720 | const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> => |
| 1721 | owner === "user" && subject == null |
no outgoing calls
no test coverage detected