API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · tenant_links

Tenant Link Schema

ID du schéma
tenant_link
Collection
tenant_links
Autorisations
  • Liretenant_link_view
  • Créertenant_link_manage
  • Modifiertenant_link_manage
  • Supprimertenant_link_manage

Champs

Tenant Link Schema

tenant_links4 autorisations

Consent-based federation link between two Codemeta tenants, possibly on different installations (ADR 0445)

labelstringfacultatif

Display name for the connection list. Never sent over the wire.

max. 120 caractèresnullable
peerKindstringobligatoire

local = another tenant of this installation (loopback, no secrets); remote = a foreign installation (signed HTTPS).

localremote
lecture seule
baseUrlstringfacultatif

Remote only. HTTPS enforced and re-validated against assertSafeOutgoingUrl before every call (SSRF).

max. 500 caractèresnullable
peerInstallationIdstringfacultatif

Opaque id of the counterpart installation, stamped during the handshake.

max. 200 caractèreslecture seulenullable
peerTenantIdstringfacultatif

Counterpart tenant. Stamped on redemption only — never client-writable.

lecture seulenullable
invitationCodestringfacultatif

Server-generated invitation. Unique while pending, cleared on redemption. Redacted from every read.

lecture seulenullable
invitationExpiresAtdatetimefacultatif

After this instant the code no longer redeems.

lecture seulenullable
statusstringobligatoire
pendingacceptedrevoked
Par défaut : "pending"lecture seule
revokedSidestringfacultatif

Which side ended it. Both sides may revoke.

initiatorpeer
lecture seulenullable
rolesobjectfacultatif
nullable
mspTenantIdstringfacultatif
nullable
customerTenantIdstringfacultatif
nullable
partyIduuidfacultatif

THE anchor — the customer party in the MSP CRM. Never leaves the installation.

nullable
protocolVersionintegerfacultatif

Negotiated major version, min(local, peer).

≥ 1Par défaut : 1lecture seule
capabilitiesobjectfacultatif

What the PEER may do here. Server-enforced.

lecture seule
createTicketbooleanfacultatif
Par défaut : false
commentbooleanfacultatif
Par défaut : true
changeStatusbooleanfacultatif
Par défaut : true
changePrioritybooleanfacultatif
Par défaut : true
requestReturnbooleanfacultatif
Par défaut : true
peerCapabilitiesobjectfacultatif

What we may do there. Display / pre-flight only — never an authorisation basis.

lecture seulenullable
createTicketbooleanfacultatif
commentbooleanfacultatif
changeStatusbooleanfacultatif
changePrioritybooleanfacultatif
requestReturnbooleanfacultatif
inboundKeyIdstringfacultatif

NON-SECRET selector (X-Codemeta-Peer-Key). Installation-wide unique — the ingress knows no tenant yet.

lecture seulenullable
inboundSecretEncobjectfacultatif

AES-256-GCM blob of the secret inbound signatures are verified with. Encrypted, NOT hashed — HMAC verification needs the plaintext.

lecture seulenullable
__encryptedbooleanfacultatif
vintegerfacultatif
ivstringfacultatif
tagstringfacultatif
ciphertextstringfacultatif
inboundSecretRotatedAtdatetimefacultatif
lecture seulenullable
outboundKeyIdstringfacultatif

The counterpart's selector — what we send in X-Codemeta-Peer-Key.

lecture seulenullable
outboundSecretEncobjectfacultatif

AES-256-GCM blob of the secret outbound signatures are created with.

lecture seulenullable
__encryptedbooleanfacultatif
vintegerfacultatif
ivstringfacultatif
tagstringfacultatif
ciphertextstringfacultatif
outboundSecretRotatedAtdatetimefacultatif
lecture seulenullable
exchangeobjectfacultatif

TicketExchangeConfig (ADR 0363 §1b) — target, statusMap, priorityMap. Same type as the Jira side.

nullable
sharesIdentitybooleanfacultatif

ADR 1116: the row OWNER sends reporter (name, e-mail, phone) and location with a handed-over ticket. Each side decides for its own outbound direction.

Par défaut : falselecture seule
peerSharesIdentitybooleanfacultatif

ADR 1116: the same switch for the ACCEPTING side of a local link (one row serves both tenants). Unused on remote links, where each side owns its own row.

Par défaut : falselecture seule
locationMapobject[]facultatif

ADR 1116: the counterpart's location key → one of OUR addresses on `partyId`. Only meaningful on the side that owns `partyId`.

max. 500 élémentslecture seule
peerLocationKeystringobligatoire
1–128 caractères
partyAddressIdstringobligatoire
1–64 caractères
seenPeerLocationsobject[]facultatif

ADR 1116: locations the counterpart has reported, with the address they resolved to (null = unresolved). Technical — written by the inbound path, read by the mapping UI.

max. 500 élémentslecture seule
keystringobligatoire
max. 128 caractères
namestringfacultatif
max. 200 caractèresnullable
streetstringfacultatif
max. 200 caractèresnullable
postalCodestringfacultatif
max. 20 caractèresnullable
citystringfacultatif
max. 100 caractèresnullable
countryCodestringfacultatif
max. 8 caractèresnullable
resolvedAddressIdstringfacultatif
max. 64 caractèresnullable
lastSeenAtdatetimefacultatif
acceptedAtdatetimefacultatif
lecture seulenullable
acceptedBystringfacultatif
lecture seulenullable
revokedAtdatetimefacultatif
lecture seulenullable
revokedBystringfacultatif
lecture seulenullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/tenant_links — Liste, paginée et filtrable
  • GET /api/v1/tenant_links/<id> — Une entité
  • POST /api/v1/tenant_links — Créer
  • PATCH /api/v1/tenant_links/<id> — Mise à jour partielle
  • DELETE /api/v1/tenant_links/<id> — Suppression logique
  • GET /api/v1/tenant_links/<id>/timeline — Audit et activités

Recherche