1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"lexicon": 1,
"id": "com.publicdomainrelay.temp.market.association",
"description": "The repository that holds this record associates the subject DID as its requester or bidder. Record key: <service>-<subject with : replaced by -> for a standing association; <service>-<first 32 hex of sha256(subject)>-<rkey of the contract accept> for a contract-scoped one.",
"defs": {
"main": {
"type": "record",
"key": "any",
"record": {
"type": "object",
"required": ["subject", "service", "createdAt"],
"properties": {
"subject": { "type": "string", "format": "did", "description": "The associated requester or bidder repository DID." },
"service": { "type": "string", "knownValues": ["requester_associate", "bidder_associate"], "description": "The role the subject is associated for." },
"contract": { "type": "ref", "ref": "com.atproto.repo.strongRef", "description": "The market.accept of the contract this association is scoped to; requires expiresAt." },
"expiresAt": { "type": "string", "format": "datetime", "description": "The association is invalid after this time." },
"parent": { "type": "ref", "ref": "com.atproto.repo.strongRef", "description": "The association that associates this record's repository, for chains." },
"note": { "type": "string", "maxLength": 300 },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}
}
}