fn(A$0, B$1, io$2, f$3) =>
match $2 {
#done(value$10) =>
$3(value: $10),
#all(payload$11) =>
#all({
Child: $11.Child,
tasks: $11.tasks,
then: fn(results$12) =>
@definy.io-bind(
A: $0,
B: $1,
io: $11.then(results: $12),
f: fn(value$13) =>
$3(value: $13)
)
}),
#race(payload$14) =>
#race({
Child: $14.Child,
tasks: $14.tasks,
then: fn(result$15) =>
@definy.io-bind(
A: $0,
B: $1,
io: $14.then(result: $15),
f: fn(value$16) =>
$3(value: $16)
)
}),
#sleep(payload$17) =>
#sleep({
ms: $17.ms,
then: fn(slept_ms$18) =>
@definy.io-bind(
A: $0,
B: $1,
io: $17.then(slept_ms: $18),
f: fn(value$19) =>
$3(value: $19)
)
}),
#wait_signal(payload$20) =>
#wait_signal({
key: $20.key,
then: fn(payload$21) =>
@definy.io-bind(
A: $0,
B: $1,
io: $20.then(payload: $21),
f: fn(value$22) =>
$3(value: $22)
)
}),
#send_signal(payload$23) =>
#send_signal({
key: $23.key,
payload: $23.payload,
then: fn(woken$24) =>
@definy.io-bind(
A: $0,
B: $1,
io: $23.then(woken: $24),
f: fn(value$25) =>
$3(value: $25)
)
}),
#handle(payload$26) =>
#handle({
request: $26.request,
secret_headers: $26.secret_headers,
then: fn(result$27) =>
@definy.io-bind(
A: $0,
B: $1,
io: $26.then(result: $27),
f: fn(value$28) =>
$3(value: $28)
)
}),
#get_parts(payload$29) =>
#get_parts({
ids: $29.ids,
then: fn(parts$30) =>
@definy.io-bind(
A: $0,
B: $1,
io: $29.then(parts: $30),
f: fn(value$31) =>
$3(value: $31)
)
}),
#verify_ed25519(payload$32) =>
#verify_ed25519({
public_key: $32.public_key,
signature: $32.signature,
message: $32.message,
then: fn(valid$33) =>
@definy.io-bind(
A: $0,
B: $1,
io: $32.then(valid: $33),
f: fn(value$34) =>
$3(value: $34)
)
}),
#read_time(payload$35) =>
#read_time({
then: fn(now_ms$36) =>
@definy.io-bind(
A: $0,
B: $1,
io: $35.then(now_ms: $36),
f: fn(value$37) =>
$3(value: $37)
)
}),
#hash_contents(payload$38) =>
#hash_contents({
contents_bytes: $38.contents_bytes,
then: fn(hashes$39) =>
@definy.io-bind(
A: $0,
B: $1,
io: $38.then(hashes: $39),
f: fn(value$40) =>
$3(value: $40)
)
}),
#read_admin_account_ids(payload$41) =>
#read_admin_account_ids({
then: fn(admin_account_ids$42) =>
@definy.io-bind(
A: $0,
B: $1,
io: $41.then(admin_account_ids: $42),
f: fn(value$43) =>
$3(value: $43)
)
}),
#sql(payload$50) =>
#sql({
statements: $50.statements,
then: fn(results$51) =>
@definy.io-bind(
A: $0,
B: $1,
io: $50.then(results: $51),
f: fn(value$52) =>
$3(value: $52)
)
}),
#read_seed_status(payload$56) =>
#read_seed_status({
then: fn(status$57) =>
@definy.io-bind(
A: $0,
B: $1,
io: $56.then(status: $57),
f: fn(value$58) =>
$3(value: $58)
)
}),
#read_seed_bundle(payload$59) =>
#read_seed_bundle({
then: fn(bundle$60) =>
@definy.io-bind(
A: $0,
B: $1,
io: $59.then(bundle: $60),
f: fn(value$61) =>
$3(value: $61)
)
}),
#mark_seeded(payload$62) =>
#mark_seeded({
then: fn(marked$63) =>
@definy.io-bind(
A: $0,
B: $1,
io: $62.then(marked: $63),
f: fn(value$64) =>
$3(value: $64)
)
}),
#read_cached_commits(payload$65) =>
#read_cached_commits({
version: $65.version,
event_hashes: $65.event_hashes,
then: fn(cached$66) =>
@definy.io-bind(
A: $0,
B: $1,
io: $65.then(cached: $66),
f: fn(value$67) =>
$3(value: $67)
)
}),
#write_cached_commits(payload$68) =>
#write_cached_commits({
version: $68.version,
entries: $68.entries,
then: fn(written$69) =>
@definy.io-bind(
A: $0,
B: $1,
io: $68.then(written: $69),
f: fn(value$70) =>
$3(value: $70)
)
}),
#read_cached_definitions(payload$71) =>
#read_cached_definitions({
version: $71.version,
content_hashes: $71.content_hashes,
then: fn(cached$72) =>
@definy.io-bind(
A: $0,
B: $1,
io: $71.then(cached: $72),
f: fn(value$73) =>
$3(value: $73)
)
}),
#write_cached_definitions(payload$74) =>
#write_cached_definitions({
version: $74.version,
entries: $74.entries,
then: fn(written$75) =>
@definy.io-bind(
A: $0,
B: $1,
io: $74.then(written: $75),
f: fn(value$76) =>
$3(value: $76)
)
}),
#read_cached_resolutions(payload$77) =>
#read_cached_resolutions({
version: $77.version,
content_hashes: $77.content_hashes,
then: fn(cached$78) =>
@definy.io-bind(
A: $0,
B: $1,
io: $77.then(cached: $78),
f: fn(value$79) =>
$3(value: $79)
)
}),
#write_cached_resolutions(payload$80) =>
#write_cached_resolutions({
version: $80.version,
entries: $80.entries,
then: fn(written$81) =>
@definy.io-bind(
A: $0,
B: $1,
io: $80.then(written: $81),
f: fn(value$82) =>
$3(value: $82)
)
}),
#read_mcp_account(payload$83) =>
#read_mcp_account({
then: fn(account$84) =>
@definy.io-bind(
A: $0,
B: $1,
io: $83.then(account: $84),
f: fn(value$85) =>
$3(value: $85)
)
}),
#sign_mcp_account(payload$86) =>
#sign_mcp_account({
message: $86.message,
then: fn(signature$87) =>
@definy.io-bind(
A: $0,
B: $1,
io: $86.then(signature: $87),
f: fn(value$88) =>
$3(value: $88)
)
}),
#read_perf_records(payload$89) =>
#read_perf_records({
authorization: $89.authorization,
limit: $89.limit,
path_contains: $89.path_contains,
then: fn(result$90) =>
@definy.io-bind(
A: $0,
B: $1,
io: $89.then(result: $90),
f: fn(value$91) =>
$3(value: $91)
)
}),
#read_host_settings(payload$92) =>
#read_host_settings({
then: fn(settings$93) =>
@definy.io-bind(
A: $0,
B: $1,
io: $92.then(settings: $93),
f: fn(value$94) =>
$3(value: $94)
)
}),
#run_wasi_io(payload$95) =>
#run_wasi_io({
wasm: $95.wasm,
parts: $95.parts,
then: fn(result$96) =>
@definy.io-bind(
A: $0,
B: $1,
io: $95.then(result: $96),
f: fn(value$97) =>
$3(value: $97)
)
}),
#read_secrets(payload$98) =>
#read_secrets({
then: fn(secrets$99) =>
@definy.io-bind(
A: $0,
B: $1,
io: $98.then(secrets: $99),
f: fn(value$100) =>
$3(value: $100)
)
}),
#write_secret(payload$101) =>
#write_secret({
id: $101.id,
label: $101.label,
value: $101.value,
allowed_url_prefixes: $101.allowed_url_prefixes,
then: fn(written$102) =>
@definy.io-bind(
A: $0,
B: $1,
io: $101.then(written: $102),
f: fn(value$103) =>
$3(value: $103)
)
})
}