The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Domain from "@alchemy.run/domain"; |
| 2 | import * as Schema from "effect/Schema"; |
| 3 | import { AccountId } from "../Account/Account.id.ts"; |
| 4 | import { Cents } from "../Money.ts"; |
| 5 | |
| 6 | /** The external fraud-scoring system. */ |
| 7 | export class FraudCheck extends Domain.ExternalSystem("FraudCheck", { |
| 8 | score: { args: { accountId: AccountId, amount: Cents }, success: { risk: Schema.Number } }, |
| 9 | }) {} |