contracts 1.8.0: crosscode.identity-request/1 (import and people.* calls to Accounts)

Product -> Accounts requests at /api/accounts/v1/requests, signed with the
link secret: import.begin/batch/finish/abort for moving a product's users
in (EVENTS-3.0-PLAN §4), people.* for product admins (§8). sealLinkValue /
openLinkValue seal password hashes and TOTP secrets with a key derived
from the link secret; importIdsHash for the final check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 13:33:15 +02:00
co-authored by Claude Opus 5.5
parent ac017395df
commit 08fef930c1
24 changed files with 1585 additions and 10 deletions
@@ -0,0 +1,11 @@
{
"schema": "crosscode.identity-request/1",
"results": [
{
"id": "5f0c7d2a-3b1e-4c8f-9a6d-2e4b1c7f8a90",
"outcome": "created",
"sub": "5f0c7d2a-3b1e-4c8f-9a6d-2e4b1c7f8a90",
"reason": null
}
]
}
@@ -0,0 +1,49 @@
{
"schema": "crosscode.identity-request/1",
"actor": "8d2e4f6a-1b3c-4d5e-8f7a-9b0c1d2e3f4a",
"requestId": "1c7f2a3b-4d5e-4f6a-9b0c-1d2e3f4a5b6c",
"type": "import.batch",
"check": false,
"people": [
{
"id": "5f0c7d2a-3b1e-4c8f-9a6d-2e4b1c7f8a90",
"name": "Thandi Mokoena",
"email": "thandi@hopefamily.co.za",
"emailVerified": true,
"phone": "+27821234567",
"passwordHash": "sealed1.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"twoFactor": "totp",
"totpSecret": "sealed1.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"totpLastStep": 59012345,
"failedSignIns": 0,
"lockedUntil": null,
"news": {
"email": true,
"whatsapp": false
},
"newsAskedAt": "2026-03-01T08:00:00.000Z",
"noticeVersionAccepted": 2,
"noticeAcceptances": [
{
"version": 1,
"acceptedAt": "2025-06-01T08:00:00.000Z"
},
{
"version": 2,
"acceptedAt": "2026-03-01T08:00:00.000Z"
}
],
"consentChanges": [
{
"channel": "email",
"granted": true,
"at": "2026-03-01T08:00:00.000Z"
}
],
"lastSignInAt": "2026-11-18T17:30:00.000Z",
"status": "active",
"admin": true,
"createdAt": "2025-06-01T08:00:00.000Z"
}
]
}
@@ -0,0 +1,19 @@
{
"schema": "crosscode.identity-request/1",
"actor": "8d2e4f6a-1b3c-4d5e-8f7a-9b0c1d2e3f4a",
"requestId": "0b6e1f2a-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
"type": "import.begin",
"check": false,
"notices": [
{
"version": 2,
"title": "Privacy notice",
"body": "How Hope Family Church uses your information…",
"publishedAt": "2026-03-01T08:00:00.000Z"
}
],
"church": {
"name": "Hope Family Church",
"primaryColour": "#1e40af"
}
}
@@ -0,0 +1,8 @@
{
"schema": "crosscode.identity-request/1",
"actor": "8d2e4f6a-1b3c-4d5e-8f7a-9b0c1d2e3f4a",
"requestId": "2d8a3b4c-5e6f-4a7b-8c1d-2e3f4a5b6c7d",
"type": "import.finish",
"count": 1,
"idsHash": "9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f"
}
@@ -0,0 +1,5 @@
{
"schema": "crosscode.identity-request/1",
"sub": "4fac5d6e-7a8b-4c9d-8e3f-4a5b6c7d8e9f",
"created": true
}
@@ -0,0 +1,10 @@
{
"schema": "crosscode.identity-request/1",
"actor": "8d2e4f6a-1b3c-4d5e-8f7a-9b0c1d2e3f4a",
"requestId": "3e9b4c5d-6f7a-4b8c-9d2e-3f4a5b6c7d8e",
"type": "people.ensure",
"name": "Sipho Dlamini",
"email": "sipho@hopefamily.co.za",
"phone": null,
"returnUrl": "https://events.hopefamily.co.za/dashboard"
}