-
Notifications
You must be signed in to change notification settings - Fork 22
/
data.proto
85 lines (64 loc) · 2.35 KB
/
data.proto
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
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.events.firebase.auth.v1;
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Events.Protobuf.Firebase.Auth.V1";
option php_namespace = "Google\\Events\\Firebase\\Auth\\V1";
option ruby_package = "Google::Events::Firebase::Auth::V1";
// The data within all Firebase Auth events.
message AuthEventData {
// The user identifier in the Firebase app.
string uid = 1;
// The user's primary email, if set.
string email = 2;
// Whether or not the user's primary email is verified.
bool email_verified = 3;
// The user's display name.
string display_name = 4;
// The user's photo URL.
string photo_URL = 5;
// Whether the user is disabled.
bool disabled = 6;
// Additional metadata about the user.
UserMetadata metadata = 7;
// User's info at the providers
repeated UserInfo provider_data = 8;
// The user's phone number.
string phone_number = 9;
// User's custom claims, typically used to define user roles and propagated
// to an authenticated user's ID token.
google.protobuf.Struct custom_claims = 10;
}
// Additional metadata about the user.
message UserMetadata {
// The date the user was created.
google.protobuf.Timestamp create_time = 1;
// The date the user last signed in.
google.protobuf.Timestamp last_sign_in_time = 2;
}
// User's info at the identity provider
message UserInfo {
// The user identifier for the linked provider.
string uid = 1;
// The email for the linked provider.
string email = 2;
// The display name for the linked provider.
string display_name = 3;
// The photo URL for the linked provider.
string photo_URL = 4;
// The linked provider ID (e.g. "google.com" for the Google provider).
string provider_id = 5;
}