{ "lexicon": 1, "id": "com.publicdomainrelay.temp.market.submitRfp", "defs": { "main": { "type": "procedure", "description": "A requester submits an RFP to a bidder. The bidder records a bid intent and answers before it bids. Requires a service-auth JWT with lxm set to this NSID; the requester is the token issuer.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": ["rfpUri", "rfpCid"], "properties": { "rfpUri": { "type": "string", "format": "at-uri", "description": "The market.rfp record." }, "rfpCid": { "type": "string", "format": "cid" }, "ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The com.publicdomainrelay.temp.ingress.webRTC offer records for this bidder. The bidder answers them in the reply with its own answer and listen records." } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["ok"], "properties": { "ok": { "type": "boolean" }, "name": { "type": "string", "description": "The bid intent the bidder recorded." }, "phase": { "type": "string", "description": "The phase of the bid intent." }, "ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The bidder's com.publicdomainrelay.temp.ingress.webRTC answer and listen records for the request's offers, carrying the SDP and the bidder's STUN servers." } } } }, "errors": [ { "name": "InvalidRequest" }, { "name": "Unauthorized" }, { "name": "Forbidden" }, { "name": "Unavailable" } ] } } }