forked from teamhanko/hanko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hanko.user_import.json
76 lines (76 loc) · 2.3 KB
/
hanko.user_import.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/teamhanko/hanko/backend/cmd/user/import-list",
"$ref": "#/$defs/ImportList",
"$defs": {
"Emails": {
"items": {
"$ref": "#/$defs/ImportEmail"
},
"type": "array",
"description": "Emails Array of email addresses"
},
"ImportEmail": {
"properties": {
"address": {
"type": "string",
"description": "Address Valid email address"
},
"is_primary": {
"type": "boolean",
"description": "IsPrimary indicates if this is the primary email of the users. In the Emails array there has to be exactly one primary email."
},
"is_verified": {
"type": "boolean",
"description": "IsVerified indicates if the email address was previously verified."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"address",
"is_primary",
"is_verified"
],
"description": "ImportEmail The import format for a user's email"
},
"ImportEntry": {
"properties": {
"user_id": {
"type": "string",
"description": "UserID optional uuid.v4. If not provided a new one will be generated for the user"
},
"emails": {
"$ref": "#/$defs/Emails",
"description": "Emails List of emails"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "CreatedAt optional timestamp of the users' creation. Will be set to the import date if not provided."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "UpdatedAt optional timestamp of the last update to the user. Will be set to the import date if not provided."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"user_id",
"emails",
"created_at",
"updated_at"
],
"description": "ImportEntry represents a user to be imported to the Hanko database"
},
"ImportList": {
"items": {
"$ref": "#/$defs/ImportEntry"
},
"type": "array",
"description": "ImportList a list of ImportEntries"
}
}
}