Debian Codegraph @

go/svc/auth/v1/service.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.5
4 // protoc (unknown)
5 // source: svc/auth/v1/service.proto
6
7 package authv1
8
9 import (
10 v1 "github.com/humanlogio/api/go/types/v1"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 durationpb "google.golang.org/protobuf/types/known/durationpb"
14 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
15 reflect "reflect"
16 sync "sync"
17 unsafe "unsafe"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 type GetAuthURLRequest struct {
28 state protoimpl.MessageState `protogen:"open.v1"`
29 // optional: if an org is specified
30 //
31 // Types that are valid to be assigned to Organization:
32 //
33 // *GetAuthURLRequest_ById
34 // *GetAuthURLRequest_ByName
35 Organization isGetAuthURLRequest_Organization `protobuf_oneof:"organization"`
36 ReturnToUrl string `protobuf:"bytes,2,opt,name=return_to_url,json=returnToUrl,proto3" json:"return_to_url,omitempty"`
37 Localhost *LocalhostViaBrowser `protobuf:"bytes,3,opt,name=localhost,proto3" json:"localhost,omitempty"`
38 unknownFields protoimpl.UnknownFields
39 sizeCache protoimpl.SizeCache
40 }
41
42 func (x *GetAuthURLRequest) Reset() {
43 *x = GetAuthURLRequest{}
44 mi := &file_svc_auth_v1_service_proto_msgTypes[0]
45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 ms.StoreMessageInfo(mi)
47 }
48
49 func (x *GetAuthURLRequest) String() string {
50 return protoimpl.X.MessageStringOf(x)
51 }
52
53 func (*GetAuthURLRequest) ProtoMessage() {}
54
55 func (x *GetAuthURLRequest) ProtoReflect() protoreflect.Message {
56 mi := &file_svc_auth_v1_service_proto_msgTypes[0]
57 if x != nil {
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 if ms.LoadMessageInfo() == nil {
60 ms.StoreMessageInfo(mi)
61 }
62 return ms
63 }
64 return mi.MessageOf(x)
65 }
66
67 // Deprecated: Use GetAuthURLRequest.ProtoReflect.Descriptor instead.
68 func (*GetAuthURLRequest) Descriptor() ([]byte, []int) {
69 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{0}
70 }
71
72 func (x *GetAuthURLRequest) GetOrganization() isGetAuthURLRequest_Organization {
73 if x != nil {
74 return x.Organization
75 }
76 return nil
77 }
78
79 func (x *GetAuthURLRequest) GetById() int64 {
80 if x != nil {
81 if x, ok := x.Organization.(*GetAuthURLRequest_ById); ok {
82 return x.ById
83 }
84 }
85 return 0
86 }
87
88 func (x *GetAuthURLRequest) GetByName() string {
89 if x != nil {
90 if x, ok := x.Organization.(*GetAuthURLRequest_ByName); ok {
91 return x.ByName
92 }
93 }
94 return ""
95 }
96
97 func (x *GetAuthURLRequest) GetReturnToUrl() string {
98 if x != nil {
99 return x.ReturnToUrl
100 }
101 return ""
102 }
103
104 func (x *GetAuthURLRequest) GetLocalhost() *LocalhostViaBrowser {
105 if x != nil {
106 return x.Localhost
107 }
108 return nil
109 }
110
111 type isGetAuthURLRequest_Organization interface {
112 isGetAuthURLRequest_Organization()
113 }
114
115 type GetAuthURLRequest_ById struct {
116 ById int64 `protobuf:"varint,100,opt,name=by_id,json=byId,proto3,oneof"`
117 }
118
119 type GetAuthURLRequest_ByName struct {
120 ByName string `protobuf:"bytes,101,opt,name=by_name,json=byName,proto3,oneof"`
121 }
122
123 func (*GetAuthURLRequest_ById) isGetAuthURLRequest_Organization() {}
124
125 func (*GetAuthURLRequest_ByName) isGetAuthURLRequest_Organization() {}
126
127 type LocalhostViaBrowser struct {
128 state protoimpl.MessageState `protogen:"open.v1"`
129 Architecture string `protobuf:"bytes,1,opt,name=architecture,proto3" json:"architecture,omitempty"`
130 OperatingSystem string `protobuf:"bytes,2,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
131 UsingVersion *v1.Version `protobuf:"bytes,3,opt,name=using_version,json=usingVersion,proto3" json:"using_version,omitempty"`
132 unknownFields protoimpl.UnknownFields
133 sizeCache protoimpl.SizeCache
134 }
135
136 func (x *LocalhostViaBrowser) Reset() {
137 *x = LocalhostViaBrowser{}
138 mi := &file_svc_auth_v1_service_proto_msgTypes[1]
139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140 ms.StoreMessageInfo(mi)
141 }
142
143 func (x *LocalhostViaBrowser) String() string {
144 return protoimpl.X.MessageStringOf(x)
145 }
146
147 func (*LocalhostViaBrowser) ProtoMessage() {}
148
149 func (x *LocalhostViaBrowser) ProtoReflect() protoreflect.Message {
150 mi := &file_svc_auth_v1_service_proto_msgTypes[1]
151 if x != nil {
152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
153 if ms.LoadMessageInfo() == nil {
154 ms.StoreMessageInfo(mi)
155 }
156 return ms
157 }
158 return mi.MessageOf(x)
159 }
160
161 // Deprecated: Use LocalhostViaBrowser.ProtoReflect.Descriptor instead.
162 func (*LocalhostViaBrowser) Descriptor() ([]byte, []int) {
163 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{1}
164 }
165
166 func (x *LocalhostViaBrowser) GetArchitecture() string {
167 if x != nil {
168 return x.Architecture
169 }
170 return ""
171 }
172
173 func (x *LocalhostViaBrowser) GetOperatingSystem() string {
174 if x != nil {
175 return x.OperatingSystem
176 }
177 return ""
178 }
179
180 func (x *LocalhostViaBrowser) GetUsingVersion() *v1.Version {
181 if x != nil {
182 return x.UsingVersion
183 }
184 return nil
185 }
186
187 type GetAuthURLResponse struct {
188 state protoimpl.MessageState `protogen:"open.v1"`
189 AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
190 unknownFields protoimpl.UnknownFields
191 sizeCache protoimpl.SizeCache
192 }
193
194 func (x *GetAuthURLResponse) Reset() {
195 *x = GetAuthURLResponse{}
196 mi := &file_svc_auth_v1_service_proto_msgTypes[2]
197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198 ms.StoreMessageInfo(mi)
199 }
200
201 func (x *GetAuthURLResponse) String() string {
202 return protoimpl.X.MessageStringOf(x)
203 }
204
205 func (*GetAuthURLResponse) ProtoMessage() {}
206
207 func (x *GetAuthURLResponse) ProtoReflect() protoreflect.Message {
208 mi := &file_svc_auth_v1_service_proto_msgTypes[2]
209 if x != nil {
210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
211 if ms.LoadMessageInfo() == nil {
212 ms.StoreMessageInfo(mi)
213 }
214 return ms
215 }
216 return mi.MessageOf(x)
217 }
218
219 // Deprecated: Use GetAuthURLResponse.ProtoReflect.Descriptor instead.
220 func (*GetAuthURLResponse) Descriptor() ([]byte, []int) {
221 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{2}
222 }
223
224 func (x *GetAuthURLResponse) GetAuthUrl() string {
225 if x != nil {
226 return x.AuthUrl
227 }
228 return ""
229 }
230
231 type BeginDeviceAuthRequest struct {
232 state protoimpl.MessageState `protogen:"open.v1"`
233 Organization string `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
234 ReturnToUrl string `protobuf:"bytes,2,opt,name=return_to_url,json=returnToUrl,proto3" json:"return_to_url,omitempty"`
235 unknownFields protoimpl.UnknownFields
236 sizeCache protoimpl.SizeCache
237 }
238
239 func (x *BeginDeviceAuthRequest) Reset() {
240 *x = BeginDeviceAuthRequest{}
241 mi := &file_svc_auth_v1_service_proto_msgTypes[3]
242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
243 ms.StoreMessageInfo(mi)
244 }
245
246 func (x *BeginDeviceAuthRequest) String() string {
247 return protoimpl.X.MessageStringOf(x)
248 }
249
250 func (*BeginDeviceAuthRequest) ProtoMessage() {}
251
252 func (x *BeginDeviceAuthRequest) ProtoReflect() protoreflect.Message {
253 mi := &file_svc_auth_v1_service_proto_msgTypes[3]
254 if x != nil {
255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256 if ms.LoadMessageInfo() == nil {
257 ms.StoreMessageInfo(mi)
258 }
259 return ms
260 }
261 return mi.MessageOf(x)
262 }
263
264 // Deprecated: Use BeginDeviceAuthRequest.ProtoReflect.Descriptor instead.
265 func (*BeginDeviceAuthRequest) Descriptor() ([]byte, []int) {
266 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{3}
267 }
268
269 func (x *BeginDeviceAuthRequest) GetOrganization() string {
270 if x != nil {
271 return x.Organization
272 }
273 return ""
274 }
275
276 func (x *BeginDeviceAuthRequest) GetReturnToUrl() string {
277 if x != nil {
278 return x.ReturnToUrl
279 }
280 return ""
281 }
282
283 type BeginDeviceAuthResponse struct {
284 state protoimpl.MessageState `protogen:"open.v1"`
285 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
286 // device_code must be used to retrieve an authenticated user token with `CompleteDeviceAuth`
287 DeviceCode string `protobuf:"bytes,2,opt,name=device_code,json=deviceCode,proto3" json:"device_code,omitempty"`
288 UserCode string `protobuf:"bytes,3,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
289 ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
290 PollInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=poll_interval,json=pollInterval,proto3" json:"poll_interval,omitempty"`
291 unknownFields protoimpl.UnknownFields
292 sizeCache protoimpl.SizeCache
293 }
294
295 func (x *BeginDeviceAuthResponse) Reset() {
296 *x = BeginDeviceAuthResponse{}
297 mi := &file_svc_auth_v1_service_proto_msgTypes[4]
298 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
299 ms.StoreMessageInfo(mi)
300 }
301
302 func (x *BeginDeviceAuthResponse) String() string {
303 return protoimpl.X.MessageStringOf(x)
304 }
305
306 func (*BeginDeviceAuthResponse) ProtoMessage() {}
307
308 func (x *BeginDeviceAuthResponse) ProtoReflect() protoreflect.Message {
309 mi := &file_svc_auth_v1_service_proto_msgTypes[4]
310 if x != nil {
311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
312 if ms.LoadMessageInfo() == nil {
313 ms.StoreMessageInfo(mi)
314 }
315 return ms
316 }
317 return mi.MessageOf(x)
318 }
319
320 // Deprecated: Use BeginDeviceAuthResponse.ProtoReflect.Descriptor instead.
321 func (*BeginDeviceAuthResponse) Descriptor() ([]byte, []int) {
322 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{4}
323 }
324
325 func (x *BeginDeviceAuthResponse) GetUrl() string {
326 if x != nil {
327 return x.Url
328 }
329 return ""
330 }
331
332 func (x *BeginDeviceAuthResponse) GetDeviceCode() string {
333 if x != nil {
334 return x.DeviceCode
335 }
336 return ""
337 }
338
339 func (x *BeginDeviceAuthResponse) GetUserCode() string {
340 if x != nil {
341 return x.UserCode
342 }
343 return ""
344 }
345
346 func (x *BeginDeviceAuthResponse) GetExpiresAt() *timestamppb.Timestamp {
347 if x != nil {
348 return x.ExpiresAt
349 }
350 return nil
351 }
352
353 func (x *BeginDeviceAuthResponse) GetPollInterval() *durationpb.Duration {
354 if x != nil {
355 return x.PollInterval
356 }
357 return nil
358 }
359
360 type CompleteDeviceAuthRequest struct {
361 state protoimpl.MessageState `protogen:"open.v1"`
362 // device_code is returned when calling `BeginDeviceAuth` and allows an auth flow
363 // to retrieve the user token that is generated when a user is authenticated
364 DeviceCode string `protobuf:"bytes,1,opt,name=device_code,json=deviceCode,proto3" json:"device_code,omitempty"`
365 UserCode string `protobuf:"bytes,2,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
366 Architecture string `protobuf:"bytes,5,opt,name=architecture,proto3" json:"architecture,omitempty"`
367 OperatingSystem string `protobuf:"bytes,6,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
368 unknownFields protoimpl.UnknownFields
369 sizeCache protoimpl.SizeCache
370 }
371
372 func (x *CompleteDeviceAuthRequest) Reset() {
373 *x = CompleteDeviceAuthRequest{}
374 mi := &file_svc_auth_v1_service_proto_msgTypes[5]
375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376 ms.StoreMessageInfo(mi)
377 }
378
379 func (x *CompleteDeviceAuthRequest) String() string {
380 return protoimpl.X.MessageStringOf(x)
381 }
382
383 func (*CompleteDeviceAuthRequest) ProtoMessage() {}
384
385 func (x *CompleteDeviceAuthRequest) ProtoReflect() protoreflect.Message {
386 mi := &file_svc_auth_v1_service_proto_msgTypes[5]
387 if x != nil {
388 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
389 if ms.LoadMessageInfo() == nil {
390 ms.StoreMessageInfo(mi)
391 }
392 return ms
393 }
394 return mi.MessageOf(x)
395 }
396
397 // Deprecated: Use CompleteDeviceAuthRequest.ProtoReflect.Descriptor instead.
398 func (*CompleteDeviceAuthRequest) Descriptor() ([]byte, []int) {
399 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{5}
400 }
401
402 func (x *CompleteDeviceAuthRequest) GetDeviceCode() string {
403 if x != nil {
404 return x.DeviceCode
405 }
406 return ""
407 }
408
409 func (x *CompleteDeviceAuthRequest) GetUserCode() string {
410 if x != nil {
411 return x.UserCode
412 }
413 return ""
414 }
415
416 func (x *CompleteDeviceAuthRequest) GetArchitecture() string {
417 if x != nil {
418 return x.Architecture
419 }
420 return ""
421 }
422
423 func (x *CompleteDeviceAuthRequest) GetOperatingSystem() string {
424 if x != nil {
425 return x.OperatingSystem
426 }
427 return ""
428 }
429
430 type CompleteDeviceAuthResponse struct {
431 state protoimpl.MessageState `protogen:"open.v1"`
432 Token *v1.UserToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
433 unknownFields protoimpl.UnknownFields
434 sizeCache protoimpl.SizeCache
435 }
436
437 func (x *CompleteDeviceAuthResponse) Reset() {
438 *x = CompleteDeviceAuthResponse{}
439 mi := &file_svc_auth_v1_service_proto_msgTypes[6]
440 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
441 ms.StoreMessageInfo(mi)
442 }
443
444 func (x *CompleteDeviceAuthResponse) String() string {
445 return protoimpl.X.MessageStringOf(x)
446 }
447
448 func (*CompleteDeviceAuthResponse) ProtoMessage() {}
449
450 func (x *CompleteDeviceAuthResponse) ProtoReflect() protoreflect.Message {
451 mi := &file_svc_auth_v1_service_proto_msgTypes[6]
452 if x != nil {
453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
454 if ms.LoadMessageInfo() == nil {
455 ms.StoreMessageInfo(mi)
456 }
457 return ms
458 }
459 return mi.MessageOf(x)
460 }
461
462 // Deprecated: Use CompleteDeviceAuthResponse.ProtoReflect.Descriptor instead.
463 func (*CompleteDeviceAuthResponse) Descriptor() ([]byte, []int) {
464 return file_svc_auth_v1_service_proto_rawDescGZIP(), []int{6}
465 }
466
467 func (x *CompleteDeviceAuthResponse) GetToken() *v1.UserToken {
468 if x != nil {
469 return x.Token
470 }
471 return nil
472 }
473
474 var File_svc_auth_v1_service_proto protoreflect.FileDescriptor
475
476 var file_svc_auth_v1_service_proto_rawDesc = string([]byte{
477 0x0a, 0x19, 0x73, 0x76, 0x63, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65,
478 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x73, 0x76, 0x63,
479 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
480 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
481 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
482 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
483 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x74, 0x79, 0x70, 0x65, 0x73,
484 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e,
485 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
486 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x74, 0x79, 0x70, 0x65,
487 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e,
488 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
489 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x01,
490 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75,
491 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x05, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x64, 0x20, 0x01,
492 0x28, 0x03, 0x48, 0x00, 0x52, 0x04, 0x62, 0x79, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x62, 0x79,
493 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x62,
494 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f,
495 0x74, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65,
496 0x74, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x3e, 0x0a, 0x09, 0x6c, 0x6f, 0x63,
497 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73,
498 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c,
499 0x68, 0x6f, 0x73, 0x74, 0x56, 0x69, 0x61, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x52, 0x09,
500 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x6f, 0x72, 0x67,
501 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9c, 0x01, 0x0a, 0x13, 0x4c, 0x6f,
502 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x56, 0x69, 0x61, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65,
503 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72,
504 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65,
505 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
506 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
507 0x0f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
508 0x12, 0x36, 0x0a, 0x0d, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
509 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
510 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x75, 0x73, 0x69, 0x6e,
511 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41,
512 0x75, 0x74, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19,
513 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
514 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c, 0x22, 0x60, 0x0a, 0x16, 0x42, 0x65, 0x67,
515 0x69, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75,
516 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
517 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e,
518 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x75, 0x72,
519 0x6e, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
520 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x55, 0x72, 0x6c, 0x22, 0xe4, 0x01, 0x0a, 0x17,
521 0x42, 0x65, 0x67, 0x69, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52,
522 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
523 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76,
524 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
525 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73,
526 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
527 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72,
528 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
529 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
530 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
531 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72,
532 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
533 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
534 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x70, 0x6f, 0x6c, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76,
535 0x61, 0x6c, 0x22, 0xa8, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x44,
536 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
537 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
538 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64,
539 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
540 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22,
541 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05,
542 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75,
543 0x72, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f,
544 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x70,
545 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x47, 0x0a,
546 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41,
547 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x74,
548 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70,
549 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
550 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xa7, 0x02, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53,
551 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74,
552 0x68, 0x55, 0x52, 0x4c, 0x12, 0x1e, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
553 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71,
554 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
555 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73,
556 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0f, 0x42, 0x65, 0x67, 0x69, 0x6e,
557 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x23, 0x2e, 0x73, 0x76, 0x63,
558 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x44, 0x65,
559 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
560 0x24, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x65,
561 0x67, 0x69, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73,
562 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6c,
563 0x65, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x26, 0x2e,
564 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
565 0x6c, 0x65, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
566 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74, 0x68,
567 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x65, 0x76, 0x69,
568 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
569 0x42, 0x9e, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x61, 0x75, 0x74,
570 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f,
571 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
572 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f,
573 0x67, 0x6f, 0x2f, 0x73, 0x76, 0x63, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x61,
574 0x75, 0x74, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x0b, 0x53, 0x76,
575 0x63, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0b, 0x53, 0x76, 0x63, 0x5c,
576 0x41, 0x75, 0x74, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17, 0x53, 0x76, 0x63, 0x5c, 0x41, 0x75,
577 0x74, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
578 0x61, 0xea, 0x02, 0x0d, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x56,
579 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
580 })
581
582 var (
583 file_svc_auth_v1_service_proto_rawDescOnce sync.Once
584 file_svc_auth_v1_service_proto_rawDescData []byte
585 )
586
587 func file_svc_auth_v1_service_proto_rawDescGZIP() []byte {
588 file_svc_auth_v1_service_proto_rawDescOnce.Do(func() {
589 file_svc_auth_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_svc_auth_v1_service_proto_rawDesc), len(file_svc_auth_v1_service_proto_rawDesc)))
590 })
591 return file_svc_auth_v1_service_proto_rawDescData
592 }
593
594 var file_svc_auth_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
595 var file_svc_auth_v1_service_proto_goTypes = []any{
596 (*GetAuthURLRequest)(nil), // 0: svc.auth.v1.GetAuthURLRequest
597 (*LocalhostViaBrowser)(nil), // 1: svc.auth.v1.LocalhostViaBrowser
598 (*GetAuthURLResponse)(nil), // 2: svc.auth.v1.GetAuthURLResponse
599 (*BeginDeviceAuthRequest)(nil), // 3: svc.auth.v1.BeginDeviceAuthRequest
600 (*BeginDeviceAuthResponse)(nil), // 4: svc.auth.v1.BeginDeviceAuthResponse
601 (*CompleteDeviceAuthRequest)(nil), // 5: svc.auth.v1.CompleteDeviceAuthRequest
602 (*CompleteDeviceAuthResponse)(nil), // 6: svc.auth.v1.CompleteDeviceAuthResponse
603 (*v1.Version)(nil), // 7: types.v1.Version
604 (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
605 (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
606 (*v1.UserToken)(nil), // 10: types.v1.UserToken
607 }
608 var file_svc_auth_v1_service_proto_depIdxs = []int32{
609 1, // 0: svc.auth.v1.GetAuthURLRequest.localhost:type_name -> svc.auth.v1.LocalhostViaBrowser
610 7, // 1: svc.auth.v1.LocalhostViaBrowser.using_version:type_name -> types.v1.Version
611 8, // 2: svc.auth.v1.BeginDeviceAuthResponse.expires_at:type_name -> google.protobuf.Timestamp
612 9, // 3: svc.auth.v1.BeginDeviceAuthResponse.poll_interval:type_name -> google.protobuf.Duration
613 10, // 4: svc.auth.v1.CompleteDeviceAuthResponse.token:type_name -> types.v1.UserToken
614 0, // 5: svc.auth.v1.AuthService.GetAuthURL:input_type -> svc.auth.v1.GetAuthURLRequest
615 3, // 6: svc.auth.v1.AuthService.BeginDeviceAuth:input_type -> svc.auth.v1.BeginDeviceAuthRequest
616 5, // 7: svc.auth.v1.AuthService.CompleteDeviceAuth:input_type -> svc.auth.v1.CompleteDeviceAuthRequest
617 2, // 8: svc.auth.v1.AuthService.GetAuthURL:output_type -> svc.auth.v1.GetAuthURLResponse
618 4, // 9: svc.auth.v1.AuthService.BeginDeviceAuth:output_type -> svc.auth.v1.BeginDeviceAuthResponse
619 6, // 10: svc.auth.v1.AuthService.CompleteDeviceAuth:output_type -> svc.auth.v1.CompleteDeviceAuthResponse
620 8, // [8:11] is the sub-list for method output_type
621 5, // [5:8] is the sub-list for method input_type
622 5, // [5:5] is the sub-list for extension type_name
623 5, // [5:5] is the sub-list for extension extendee
624 0, // [0:5] is the sub-list for field type_name
625 }
626
627 func init() { file_svc_auth_v1_service_proto_init() }
628 func file_svc_auth_v1_service_proto_init() {
629 if File_svc_auth_v1_service_proto != nil {
630 return
631 }
632 file_svc_auth_v1_service_proto_msgTypes[0].OneofWrappers = []any{
633 (*GetAuthURLRequest_ById)(nil),
634 (*GetAuthURLRequest_ByName)(nil),
635 }
636 type x struct{}
637 out := protoimpl.TypeBuilder{
638 File: protoimpl.DescBuilder{
639 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
640 RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_auth_v1_service_proto_rawDesc), len(file_svc_auth_v1_service_proto_rawDesc)),
641 NumEnums: 0,
642 NumMessages: 7,
643 NumExtensions: 0,
644 NumServices: 1,
645 },
646 GoTypes: file_svc_auth_v1_service_proto_goTypes,
647 DependencyIndexes: file_svc_auth_v1_service_proto_depIdxs,
648 MessageInfos: file_svc_auth_v1_service_proto_msgTypes,
649 }.Build()
650 File_svc_auth_v1_service_proto = out.File
651 file_svc_auth_v1_service_proto_goTypes = nil
652 file_svc_auth_v1_service_proto_depIdxs = nil
653 }