2026-09-20 20:20:47 -07:00
|
|
|
type Summary = record { text: string; basedOn: string; };
|
|
|
|
|
interface DocumentData id "async:document-data" revision "async:document-data@1" {
|
|
|
|
|
queryable value content id "async:content" : string {
|
|
|
|
|
get id "async:content:get" execution snapshot targets [browser, server];
|
|
|
|
|
}
|
|
|
|
|
queryable value summary id "async:summary" : Summary {
|
|
|
|
|
get id "async:summary:get" execution snapshot targets [browser, server];
|
|
|
|
|
set id "async:summary:set" execution transaction targets [browser, server];
|
|
|
|
|
}
|
2026-09-20 21:21:11 -07:00
|
|
|
queryable value pendingJob id "async:pending-job" : optional<record { operationId: string; }> {
|
|
|
|
|
get id "async:pending-job:get" execution snapshot targets [server];
|
|
|
|
|
set id "async:pending-job:set" execution transaction targets [server];
|
|
|
|
|
}
|
|
|
|
|
operation recordSummary id "async:record-summary" : record { operationId: string; summary: Summary; } -> unit {
|
|
|
|
|
call id "async:record-summary:call" execution transaction targets [server];
|
|
|
|
|
}
|
2026-09-20 20:20:47 -07:00
|
|
|
}
|