socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

com.publicdomainrelay.temp.market.submitEvent

procedure HTTP POST /xrpc/com.publicdomainrelay.temp.market.submitEvent

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

fieldtypedescription
uri *string at-uri
The market.event record.
cid *string cid
record *com.publicdomainrelay.temp.market.event
The market.event record value.
ingressarray of com.atproto.repo.strongRef
The sender's com.publicdomainrelay.temp.ingress.webRTC listen records for this call.

output

encoding application/json

fieldtypedescription
ok *boolean
ingressarray of com.atproto.repo.strongRef
The receiver's com.publicdomainrelay.temp.ingress.webRTC listen records for this call.

errors

errordescription
InvalidRequest400: 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).
Unauthorized401: the service-auth token is missing or not valid for this method.
Forbidden403: the sender is not the accept author (to a bidder), or the event is not in the token issuer's repo (to a requester).
Unavailable503: the receiver is starting, or it could not record the event.

used in

Compute Contract Flow - Complete Architecture Map, flow: one compute contract, end to end, guest-events: events under a receipt, lexicons-market: one row per lexicon, market: the RFP flow

raw schema: lexicons/com/publicdomainrelay/temp/market/submitEvent.json
{
  "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."
        }
      ]
    }
  }
}