- crosscode.link/1 (link.connect / link.connected / link.disconnect), with signLink / verifyLink, PEM conversion, link secrets and nonces. - The v2 heartbeat can carry the install's publicKey; the reply says saved / matches / mismatch (Hub 2.2.0). Never a failed heartbeat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
568 B
JSON
27 lines
568 B
JSON
{
|
|
"$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/link-error.json",
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string",
|
|
"enum": [
|
|
"NOT_LINKED",
|
|
"WRONG_INSTALL",
|
|
"BAD_SIGNATURE",
|
|
"STALE_REQUEST",
|
|
"REPLAYED",
|
|
"INVALID_REQUEST",
|
|
"LINKS_UNAVAILABLE"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"message",
|
|
"code"
|
|
]
|
|
}
|