-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.proto
More file actions
87 lines (77 loc) · 1.57 KB
/
api.proto
File metadata and controls
87 lines (77 loc) · 1.57 KB
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
77
78
79
80
81
82
83
84
85
86
87
syntax="proto3";
package api;
message Card {
string number=1;
string exp_month=2;
string exp_year =3;
string cvc=4;
}
message User {
string user_id=1;
string name=2;
string given_name=3;
string family_name=4;
string gender =5;
string birthdate=6;
string email=7;
string phone_number=8;
string picture=9;
string nickname =14;
map<string,string> user_metadata=10;
map<string,string> app_metadata=11;
string last_ip =12;
bool blocked =13;
repeated string multifactor=15;
string created_at=17;
string updated_at=18;
bool phone_verified=19;
bool email_verified=20;
string password=21;
repeated Identity identities =22;
repeated Role roles=23;
}
message UserMetadata {
string status=1;
map<string,string> bio=2;
Address address=3;
map<string,string> tags=4;
}
message Address {
string city =1;
string state=2;
string line1 =3;
string line2=4;
string zip =5;
}
message AppMetadata {
string description =1;
string account_balance=2;
Plan plan=3;
map<string,string> tags=4;
Card card =5;
}
message Plan {
string id =1;
bool active =2;
int64 amount =3;
string interval=4;
string nickname =5;
Product product=6;
}
message Product {
string id =1;
string description =2;
string url =3;
map<string,string> tags =4;
}
message Identity{
string connection =1;
string user_id=2;
string provider=3;
bool isSocial=4;
}
message Role {
string id=1;
string name=2;
string description=3;
}