forked from teamhanko/hanko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hanko.user_import.json
75 lines (75 loc) · 2.39 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/teamhanko/hanko/backend/cmd/user/import-or-export-list",
"$ref": "#/$defs/ImportOrExportList",
"$defs": {
"Emails": {
"items": {
"$ref": "#/$defs/ImportOrExportEmail"
},
"type": "array",
"description": "Emails Array of email addresses"
},
"ImportOrExportEmail": {
"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": "ImportOrExportEmail The import/export format for a user's email"
},
"ImportOrExportEntry": {
"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",
"type": "array",
"minItems": 1,
"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": [
"emails"
],
"description": "ImportOrExportEntry represents a user to be imported/export to the Hanko database"
},
"ImportOrExportList": {
"items": {
"$ref": "#/$defs/ImportOrExportEntry"
},
"type": "array",
"description": "ImportOrExportList a list of ImportEntries"
}
}
}