@@ -2,142 +2,7 @@ syntax = "proto3";
22package defguard.proxy.v1 ;
33
44import "google/protobuf/empty.proto" ;
5-
6- // Enrollment & Desktop Client activation
7- message EnrollmentStartRequest {
8- string token = 1 ;
9- }
10-
11- message AdminInfo {
12- string name = 1 ;
13- optional string phone_number = 2 ;
14- string email = 3 ;
15- }
16-
17- message InitialUserInfo {
18- string first_name = 1 ;
19- string last_name = 2 ;
20- string login = 3 ;
21- string email = 4 ;
22- optional string phone_number = 5 ;
23- bool is_active = 6 ;
24- repeated string device_names = 7 ;
25- bool enrolled = 8 ;
26- bool is_admin = 9 ;
27- }
28-
29- message EnrollmentSettings {
30- // Vpn step is skippable
31- bool vpn_setup_optional = 1 ;
32- // Manual WireGuard setup is disabled
33- bool only_client_activation = 2 ;
34- // Only admins can add devices so vpn step is skipped
35- bool admin_device_management = 3 ;
36- // Enable Email method for MFA setup
37- bool smtp_configured = 4 ;
38- // MFA setup is not skippable
39- bool mfa_required = 5 ;
40- }
41-
42- message EnrollmentStartResponse {
43- AdminInfo admin = 1 ;
44- InitialUserInfo user = 2 ;
45- int64 deadline_timestamp = 3 ;
46- string final_page_content = 5 ;
47- InstanceInfo instance = 7 ;
48- EnrollmentSettings settings = 8 ;
49- }
50-
51- message ActivateUserRequest {
52- optional string phone_number = 1 ;
53- string password = 2 ;
54- optional string token = 3 ;
55- }
56-
57- message NewDevice {
58- string name = 1 ;
59- string pubkey = 2 ;
60- optional string token = 3 ;
61- }
62-
63- message Device {
64- int64 id = 1 ;
65- string name = 2 ;
66- string pubkey = 3 ;
67- int64 user_id = 4 ;
68- int64 created_at = 5 ;
69- }
70-
71- enum LocationMfaMode {
72- LOCATION_MFA_MODE_UNSPECIFIED = 0 ;
73- LOCATION_MFA_MODE_DISABLED = 1 ;
74- LOCATION_MFA_MODE_INTERNAL = 2 ;
75- LOCATION_MFA_MODE_EXTERNAL = 3 ;
76- }
77-
78- enum ServiceLocationMode {
79- SERVICE_LOCATION_MODE_UNSPECIFIED = 0 ;
80- SERVICE_LOCATION_MODE_DISABLED = 1 ;
81- SERVICE_LOCATION_MODE_PRELOGON = 2 ;
82- SERVICE_LOCATION_MODE_ALWAYSON = 3 ;
83- }
84-
85- message DeviceConfig {
86- int64 network_id = 1 ;
87- string network_name = 2 ;
88- string config = 3 ;
89- string endpoint = 4 ;
90- string assigned_ip = 5 ;
91- // network pubkey
92- string pubkey = 6 ;
93- string allowed_ips = 7 ;
94- optional string dns = 8 ;
95- // DEPRECATED(1.5): superseeded by location_mfa_mode
96- bool mfa_enabled = 9 [deprecated = true ];
97- int32 keepalive_interval = 10 ;
98- optional LocationMfaMode location_mfa_mode = 11 ;
99- optional ServiceLocationMode service_location_mode = 12 ;
100- }
101-
102- enum ClientTrafficPolicy {
103- NONE = 0 ;
104- DISABLE_ALL_TRAFFIC = 1 ;
105- FORCE_ALL_TRAFFIC = 2 ;
106- }
107-
108- message InstanceInfo {
109- string id = 1 ;
110- string name = 2 ;
111- string url = 3 ;
112- string proxy_url = 4 ;
113- string username = 5 ;
114- bool enterprise_enabled = 6 ;
115- // DEPRECATED(1.6): superseeded by client_traffic_policy
116- bool disable_all_traffic = 7 [deprecated = true ];
117- optional string openid_display_name = 8 ;
118- optional ClientTrafficPolicy client_traffic_policy = 9 ;
119- }
120-
121- message DeviceConfigResponse {
122- Device device = 1 ;
123- repeated DeviceConfig configs = 2 ;
124- InstanceInfo instance = 3 ;
125- // polling token used for further client-core communication
126- optional string token = 4 ;
127- }
128-
129- message InstanceInfoRequest {
130- string token = 1 ;
131- }
132-
133- message InstanceInfoResponse {
134- DeviceConfigResponse device_config = 1 ;
135- }
136-
137- message ExistingDevice {
138- string pubkey = 1 ;
139- optional string token = 2 ;
140- }
5+ import "common/client_types.proto" ;
1416
1427// Password Reset
1438message PasswordResetStartRequest {
@@ -227,16 +92,6 @@ message ClientMfaOidcAuthenticateRequest {
22792 string nonce = 4 ;
22893}
22994
230- message ClientPlatformInfo {
231- string os_family = 1 ;
232- string os_type = 2 ;
233- string version = 3 ;
234- optional string edition = 4 ;
235- optional string codename = 5 ;
236- optional string bitness = 6 ;
237- optional string architecture = 7 ;
238- }
239-
24095// Common client info
24196message DeviceInfo {
24297 string ip_address = 1 ;
@@ -290,13 +145,13 @@ message CoreResponse {
290145 uint64 id = 1 ;
291146 oneof payload {
292147 google.protobuf.Empty empty = 2 ;
293- EnrollmentStartResponse enrollment_start = 3 ;
294- DeviceConfigResponse device_config = 4 ;
148+ defguard.client_types. EnrollmentStartResponse enrollment_start = 3 ;
149+ defguard.client_types. DeviceConfigResponse device_config = 4 ;
295150 PasswordResetStartResponse password_reset_start = 5 ;
296151 ClientMfaStartResponse client_mfa_start = 6 ;
297152 ClientMfaFinishResponse client_mfa_finish = 7 ;
298153 CoreError core_error = 8 ;
299- InstanceInfoResponse instance_info = 9 ;
154+ defguard.client_types. InstanceInfoResponse instance_info = 9 ;
300155 AuthInfoResponse auth_info = 13 ;
301156 AuthCallbackResponse auth_callback = 14 ;
302157 ClientMfaTokenValidationResponse client_mfa_token_validation = 15 ;
@@ -312,16 +167,16 @@ message CoreRequest {
312167 uint64 id = 1 ;
313168 DeviceInfo device_info = 2 ;
314169 oneof payload {
315- EnrollmentStartRequest enrollment_start = 3 ;
316- ActivateUserRequest activate_user = 4 ;
317- NewDevice new_device = 5 ;
318- ExistingDevice existing_device = 6 ;
170+ defguard.client_types. EnrollmentStartRequest enrollment_start = 3 ;
171+ defguard.client_types. ActivateUserRequest activate_user = 4 ;
172+ defguard.client_types. NewDevice new_device = 5 ;
173+ defguard.client_types. ExistingDevice existing_device = 6 ;
319174 PasswordResetInitializeRequest password_reset_init = 7 ;
320175 PasswordResetStartRequest password_reset_start = 8 ;
321176 PasswordResetRequest password_reset = 9 ;
322177 ClientMfaStartRequest client_mfa_start = 10 ;
323178 ClientMfaFinishRequest client_mfa_finish = 11 ;
324- InstanceInfoRequest instance_info = 12 ;
179+ defguard.client_types. InstanceInfoRequest instance_info = 12 ;
325180 AuthInfoRequest auth_info = 13 ;
326181 AuthCallbackRequest auth_callback = 14 ;
327182 ClientMfaOidcAuthenticateRequest client_mfa_oidc_authenticate = 15 ;
0 commit comments