0
0
{
"lexicon": 1,
"id": "com.publicdomainrelay.temp.market.submitEvent",
"defs": {
"main": {
"type": "procedure",
"description": "A contract party submits a market.event it wrote to the other party. Requires a service-auth JWT with lxm set to this NSID; the sender is the token issuer and must be the accept author (to a bidder) or the receipt author (to a requester).",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["uri", "cid", "record"],
"properties": {
"uri": { "type": "string", "format": "at-uri", "description": "The market.event record." },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "ref", "ref": "com.publicdomainrelay.temp.market.event", "description": "The market.event record value." },
"ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The sender's com.publicdomainrelay.temp.ingress.webRTC listen records for this call." }
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["ok"],
"properties": {
"ok": { "type": "boolean" },
"ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The receiver's com.publicdomainrelay.temp.ingress.webRTC listen records for this call." }
}
}
},
"errors": [
{ "name": "InvalidRequest", "description": "400: the body is not JSON, uri, cid or record is missing, or the record is not a valid market.event (to a requester: its payload must be one of the compute events a bidder publishes, the vm.* reports and the guest's own events)." },
{ "name": "Unauthorized", "description": "401: the service-auth token is missing or not valid for this method." },
{ "name": "Forbidden", "description": "403: the sender is not the accept author (to a bidder), or the event is not in the token issuer's repo (to a requester)." },
{ "name": "Unavailable", "description": "503: the receiver is starting, or it could not record the event." }
]
}
}
}