{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The party's acceptance of the organisation's invitation, in the party's own repository in the space.",
      "key": "literal:self",
      "record": {
        "properties": {
          "assertedAt": {
            "format": "datetime",
            "type": "string"
          },
          "compatibleFrom": {
            "description": "The earliest version whose reader acts on this record correctly; never above version. A reader of an earlier version refuses the record. A writer that only adds optional fields or values keeps it; one that changes a meaning raises it.",
            "minimum": 1,
            "type": "integer"
          },
          "invitation": {
            "description": "The invitation this answers.",
            "maxLength": 36,
            "minLength": 36,
            "type": "string"
          },
          "kind": {
            "description": "The kind of relationship. A reader refuses a kind it does not know or does not serve.",
            "knownValues": [
              "membership",
              "participation",
              "partnership"
            ],
            "maxGraphemes": 64,
            "maxLength": 192,
            "minLength": 1,
            "type": "string"
          },
          "org": {
            "description": "The organisation that holds the space.",
            "format": "did",
            "type": "string"
          },
          "party": {
            "description": "The party the relationship is with.",
            "format": "did",
            "type": "string"
          },
          "sequence": {
            "description": "Raised by every write of the record, a renewal included.",
            "minimum": 1,
            "type": "integer"
          },
          "state": {
            "description": "Whether the party accepts, or has withdrawn.",
            "knownValues": [
              "submitted",
              "withdrawn"
            ],
            "maxGraphemes": 64,
            "maxLength": 192,
            "minLength": 1,
            "type": "string"
          },
          "submittedBy": {
            "description": "The person who accepted for the party.",
            "format": "did",
            "type": "string"
          },
          "version": {
            "description": "The version of these definitions the writer used.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "kind",
          "version",
          "compatibleFrom",
          "org",
          "party",
          "invitation",
          "submittedBy",
          "sequence",
          "assertedAt",
          "state"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "network.coopsource.relationship.acceptance",
  "lexicon": 1
}
