-
Notifications
You must be signed in to change notification settings - Fork 3
/
model.pb.go
2701 lines (2432 loc) · 125 KB
/
model.pb.go
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2020 IndyKite
//
// 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.
// Model contains the messages used in RPC.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc (unknown)
// source: indykite/identity/v1beta2/model.proto
package identityv1beta2
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
v1beta1 "github.com/indykite/indykite-sdk-go/gen/indykite/objects/v1beta1"
v1beta2 "github.com/indykite/indykite-sdk-go/gen/indykite/objects/v1beta2"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// DigitalTwinState represents the state of an digital entity record.
type DigitalTwinState int32
const (
// Default unset state.
DigitalTwinState_DIGITAL_TWIN_STATE_INVALID DigitalTwinState = 0
// Active entity state.
DigitalTwinState_DIGITAL_TWIN_STATE_ACTIVE DigitalTwinState = 1
// Temporarily suspended entity state.
DigitalTwinState_DIGITAL_TWIN_STATE_DISABLED DigitalTwinState = 2
// Deleted entity state, left in the system for auditing purpose only.
DigitalTwinState_DIGITAL_TWIN_STATE_TOMBSTONE DigitalTwinState = 4
)
// Enum value maps for DigitalTwinState.
var (
DigitalTwinState_name = map[int32]string{
0: "DIGITAL_TWIN_STATE_INVALID",
1: "DIGITAL_TWIN_STATE_ACTIVE",
2: "DIGITAL_TWIN_STATE_DISABLED",
4: "DIGITAL_TWIN_STATE_TOMBSTONE",
}
DigitalTwinState_value = map[string]int32{
"DIGITAL_TWIN_STATE_INVALID": 0,
"DIGITAL_TWIN_STATE_ACTIVE": 1,
"DIGITAL_TWIN_STATE_DISABLED": 2,
"DIGITAL_TWIN_STATE_TOMBSTONE": 4,
}
)
func (x DigitalTwinState) Enum() *DigitalTwinState {
p := new(DigitalTwinState)
*p = x
return p
}
func (x DigitalTwinState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DigitalTwinState) Descriptor() protoreflect.EnumDescriptor {
return file_indykite_identity_v1beta2_model_proto_enumTypes[0].Descriptor()
}
func (DigitalTwinState) Type() protoreflect.EnumType {
return &file_indykite_identity_v1beta2_model_proto_enumTypes[0]
}
func (x DigitalTwinState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DigitalTwinState.Descriptor instead.
func (DigitalTwinState) EnumDescriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{0}
}
// DigitalTwinKind represents the kind of digital entity.
type DigitalTwinKind int32
const (
// Default unset value.
DigitalTwinKind_DIGITAL_TWIN_KIND_INVALID DigitalTwinKind = 0
// This is a Person.
DigitalTwinKind_DIGITAL_TWIN_KIND_PERSON DigitalTwinKind = 1
// This is a Service Account.
DigitalTwinKind_DIGITAL_TWIN_KIND_SERVICE DigitalTwinKind = 2
// This is a non living thing.
DigitalTwinKind_DIGITAL_TWIN_KIND_THING DigitalTwinKind = 3
)
// Enum value maps for DigitalTwinKind.
var (
DigitalTwinKind_name = map[int32]string{
0: "DIGITAL_TWIN_KIND_INVALID",
1: "DIGITAL_TWIN_KIND_PERSON",
2: "DIGITAL_TWIN_KIND_SERVICE",
3: "DIGITAL_TWIN_KIND_THING",
}
DigitalTwinKind_value = map[string]int32{
"DIGITAL_TWIN_KIND_INVALID": 0,
"DIGITAL_TWIN_KIND_PERSON": 1,
"DIGITAL_TWIN_KIND_SERVICE": 2,
"DIGITAL_TWIN_KIND_THING": 3,
}
)
func (x DigitalTwinKind) Enum() *DigitalTwinKind {
p := new(DigitalTwinKind)
*p = x
return p
}
func (x DigitalTwinKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DigitalTwinKind) Descriptor() protoreflect.EnumDescriptor {
return file_indykite_identity_v1beta2_model_proto_enumTypes[1].Descriptor()
}
func (DigitalTwinKind) Type() protoreflect.EnumType {
return &file_indykite_identity_v1beta2_model_proto_enumTypes[1]
}
func (x DigitalTwinKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DigitalTwinKind.Descriptor instead.
func (DigitalTwinKind) EnumDescriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{1}
}
type ErrorCode int32
const (
ErrorCode_ERROR_CODE_INVALID ErrorCode = 0
ErrorCode_ERROR_CODE_INVALID_REQUEST ErrorCode = 1
ErrorCode_ERROR_CODE_UNAUTHORIZED ErrorCode = 2
)
// Enum value maps for ErrorCode.
var (
ErrorCode_name = map[int32]string{
0: "ERROR_CODE_INVALID",
1: "ERROR_CODE_INVALID_REQUEST",
2: "ERROR_CODE_UNAUTHORIZED",
}
ErrorCode_value = map[string]int32{
"ERROR_CODE_INVALID": 0,
"ERROR_CODE_INVALID_REQUEST": 1,
"ERROR_CODE_UNAUTHORIZED": 2,
}
)
func (x ErrorCode) Enum() *ErrorCode {
p := new(ErrorCode)
*p = x
return p
}
func (x ErrorCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
return file_indykite_identity_v1beta2_model_proto_enumTypes[2].Descriptor()
}
func (ErrorCode) Type() protoreflect.EnumType {
return &file_indykite_identity_v1beta2_model_proto_enumTypes[2]
}
func (x ErrorCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ErrorCode.Descriptor instead.
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{2}
}
type InvitationState int32
const (
InvitationState_INVITATION_STATE_INVALID InvitationState = 0
// InFuture indicates the invitation process is started and waiting to send the invitation notification.
InvitationState_INVITATION_STATE_IN_FUTURE InvitationState = 1
// Pending indiactes the the invitation notification was sent and
// the process is waiting the invitee to accept the invitation
InvitationState_INVITATION_STATE_PENDING InvitationState = 2
// Accepted indicates the invitation process has been accepted and completed.
InvitationState_INVITATION_STATE_ACCEPTED InvitationState = 3
// Expired indicates the invitation process deadline has been excidded and the process has been terminated.
InvitationState_INVITATION_STATE_EXPIRED InvitationState = 4
// Cancelled indicates the process has been cancelled and terminated.
InvitationState_INVITATION_STATE_CANCELLED InvitationState = 5
// Processing indicates the invitation process is starting at the moment.
InvitationState_INVITATION_STATE_PROCESSING InvitationState = 6
)
// Enum value maps for InvitationState.
var (
InvitationState_name = map[int32]string{
0: "INVITATION_STATE_INVALID",
1: "INVITATION_STATE_IN_FUTURE",
2: "INVITATION_STATE_PENDING",
3: "INVITATION_STATE_ACCEPTED",
4: "INVITATION_STATE_EXPIRED",
5: "INVITATION_STATE_CANCELLED",
6: "INVITATION_STATE_PROCESSING",
}
InvitationState_value = map[string]int32{
"INVITATION_STATE_INVALID": 0,
"INVITATION_STATE_IN_FUTURE": 1,
"INVITATION_STATE_PENDING": 2,
"INVITATION_STATE_ACCEPTED": 3,
"INVITATION_STATE_EXPIRED": 4,
"INVITATION_STATE_CANCELLED": 5,
"INVITATION_STATE_PROCESSING": 6,
}
)
func (x InvitationState) Enum() *InvitationState {
p := new(InvitationState)
*p = x
return p
}
func (x InvitationState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InvitationState) Descriptor() protoreflect.EnumDescriptor {
return file_indykite_identity_v1beta2_model_proto_enumTypes[3].Descriptor()
}
func (InvitationState) Type() protoreflect.EnumType {
return &file_indykite_identity_v1beta2_model_proto_enumTypes[3]
}
func (x InvitationState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InvitationState.Descriptor instead.
func (InvitationState) EnumDescriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{3}
}
type ProviderType int32
const (
// Invalid must never set.
ProviderType_PROVIDER_TYPE_INVALID ProviderType = 0
// Password means the subject provided username/password from client during the authentication flow.
ProviderType_PROVIDER_TYPE_PASSWORD ProviderType = 1
// OIDC means the subject proofed its identity via external OIDC/OAuth2
// federated authentication during the authentication flow.
ProviderType_PROVIDER_TYPE_OIDC ProviderType = 2
// Webauthn means the subject proofed it posses the webauthn credentials from client during the authentication flow.
ProviderType_PROVIDER_TYPE_WEBAUTHN ProviderType = 3
// Email means the subject proofed it posses the email account linked to digital twin during the authentication flow.
ProviderType_PROVIDER_TYPE_EMAIL ProviderType = 4
// Email means the subject proofed it posses the mobile number linked to digital twin during the authentication flow.
ProviderType_PROVIDER_TYPE_SMS ProviderType = 5
// Custom means the subject proofed its identity to custom application before client completing the authentication flow.
ProviderType_PROVIDER_TYPE_CUSTOM ProviderType = 6
)
// Enum value maps for ProviderType.
var (
ProviderType_name = map[int32]string{
0: "PROVIDER_TYPE_INVALID",
1: "PROVIDER_TYPE_PASSWORD",
2: "PROVIDER_TYPE_OIDC",
3: "PROVIDER_TYPE_WEBAUTHN",
4: "PROVIDER_TYPE_EMAIL",
5: "PROVIDER_TYPE_SMS",
6: "PROVIDER_TYPE_CUSTOM",
}
ProviderType_value = map[string]int32{
"PROVIDER_TYPE_INVALID": 0,
"PROVIDER_TYPE_PASSWORD": 1,
"PROVIDER_TYPE_OIDC": 2,
"PROVIDER_TYPE_WEBAUTHN": 3,
"PROVIDER_TYPE_EMAIL": 4,
"PROVIDER_TYPE_SMS": 5,
"PROVIDER_TYPE_CUSTOM": 6,
}
)
func (x ProviderType) Enum() *ProviderType {
p := new(ProviderType)
*p = x
return p
}
func (x ProviderType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProviderType) Descriptor() protoreflect.EnumDescriptor {
return file_indykite_identity_v1beta2_model_proto_enumTypes[4].Descriptor()
}
func (ProviderType) Type() protoreflect.EnumType {
return &file_indykite_identity_v1beta2_model_proto_enumTypes[4]
}
func (x ProviderType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProviderType.Descriptor instead.
func (ProviderType) EnumDescriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{4}
}
// DigitalTwin represents a digital entity.
type DigitalTwin struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Id the unique credential identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// TenantId the unique identifier of the tenant of Credential.
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
Kind DigitalTwinKind `protobuf:"varint,3,opt,name=kind,proto3,enum=indykite.identity.v1beta2.DigitalTwinKind" json:"kind,omitempty"`
State DigitalTwinState `protobuf:"varint,4,opt,name=state,proto3,enum=indykite.identity.v1beta2.DigitalTwinState" json:"state,omitempty"`
// Tags define semantics for DigitalTwin.
// First tag is considered as primary tag for use cases, when 1 tag must be extracted from the list.
//
// Tags defines more detailed semantic meaning, and are tightly coupled with the properties a DigitalTwin can have.
Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
}
func (x *DigitalTwin) Reset() {
*x = DigitalTwin{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DigitalTwin) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DigitalTwin) ProtoMessage() {}
func (x *DigitalTwin) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DigitalTwin.ProtoReflect.Descriptor instead.
func (*DigitalTwin) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{0}
}
func (x *DigitalTwin) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DigitalTwin) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *DigitalTwin) GetKind() DigitalTwinKind {
if x != nil {
return x.Kind
}
return DigitalTwinKind_DIGITAL_TWIN_KIND_INVALID
}
func (x *DigitalTwin) GetState() DigitalTwinState {
if x != nil {
return x.State
}
return DigitalTwinState_DIGITAL_TWIN_STATE_INVALID
}
func (x *DigitalTwin) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
type DigitalEntity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DigitalTwin *DigitalTwin `protobuf:"bytes,1,opt,name=digital_twin,json=digitalTwin,proto3" json:"digital_twin,omitempty"`
// DigitalTwin created at property
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Properties contains the requested property values.
Properties []*Property `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty"`
}
func (x *DigitalEntity) Reset() {
*x = DigitalEntity{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DigitalEntity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DigitalEntity) ProtoMessage() {}
func (x *DigitalEntity) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DigitalEntity.ProtoReflect.Descriptor instead.
func (*DigitalEntity) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{1}
}
func (x *DigitalEntity) GetDigitalTwin() *DigitalTwin {
if x != nil {
return x.DigitalTwin
}
return nil
}
func (x *DigitalEntity) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *DigitalEntity) GetProperties() []*Property {
if x != nil {
return x.Properties
}
return nil
}
type DigitalTwinIdentifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Filter:
//
// *DigitalTwinIdentifier_DigitalTwin
// *DigitalTwinIdentifier_PropertyFilter
// *DigitalTwinIdentifier_AccessToken
Filter isDigitalTwinIdentifier_Filter `protobuf_oneof:"filter"`
}
func (x *DigitalTwinIdentifier) Reset() {
*x = DigitalTwinIdentifier{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DigitalTwinIdentifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DigitalTwinIdentifier) ProtoMessage() {}
func (x *DigitalTwinIdentifier) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DigitalTwinIdentifier.ProtoReflect.Descriptor instead.
func (*DigitalTwinIdentifier) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{2}
}
func (m *DigitalTwinIdentifier) GetFilter() isDigitalTwinIdentifier_Filter {
if m != nil {
return m.Filter
}
return nil
}
func (x *DigitalTwinIdentifier) GetDigitalTwin() *DigitalTwin {
if x, ok := x.GetFilter().(*DigitalTwinIdentifier_DigitalTwin); ok {
return x.DigitalTwin
}
return nil
}
func (x *DigitalTwinIdentifier) GetPropertyFilter() *PropertyFilter {
if x, ok := x.GetFilter().(*DigitalTwinIdentifier_PropertyFilter); ok {
return x.PropertyFilter
}
return nil
}
func (x *DigitalTwinIdentifier) GetAccessToken() string {
if x, ok := x.GetFilter().(*DigitalTwinIdentifier_AccessToken); ok {
return x.AccessToken
}
return ""
}
type isDigitalTwinIdentifier_Filter interface {
isDigitalTwinIdentifier_Filter()
}
type DigitalTwinIdentifier_DigitalTwin struct {
DigitalTwin *DigitalTwin `protobuf:"bytes,1,opt,name=digital_twin,json=digitalTwin,proto3,oneof"`
}
type DigitalTwinIdentifier_PropertyFilter struct {
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"`
}
type DigitalTwinIdentifier_AccessToken struct {
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3,oneof"`
}
func (*DigitalTwinIdentifier_DigitalTwin) isDigitalTwinIdentifier_Filter() {}
func (*DigitalTwinIdentifier_PropertyFilter) isDigitalTwinIdentifier_Filter() {}
func (*DigitalTwinIdentifier_AccessToken) isDigitalTwinIdentifier_Filter() {}
// ErrorMessage see [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807)
type ErrorMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=indykite.identity.v1beta2.ErrorCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Detail *structpb.Value `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
}
func (x *ErrorMessage) Reset() {
*x = ErrorMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ErrorMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ErrorMessage) ProtoMessage() {}
func (x *ErrorMessage) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ErrorMessage.ProtoReflect.Descriptor instead.
func (*ErrorMessage) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{3}
}
func (x *ErrorMessage) GetCode() ErrorCode {
if x != nil {
return x.Code
}
return ErrorCode_ERROR_CODE_INVALID
}
func (x *ErrorMessage) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *ErrorMessage) GetDetail() *structpb.Value {
if x != nil {
return x.Detail
}
return nil
}
// Invitation represents a user invitation object.
type Invitation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// TenantId specify under which tenant the user is invited
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// ReferenceId is unique external reference identifier to correlate the lifecycle events with.
ReferenceId string `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
// InviteAtTime can be empty to send invitation immediately.
// Or can specify time in the future to postpone sending invitation message.
InviteAtTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=invite_at_time,json=inviteAtTime,proto3" json:"invite_at_time,omitempty"`
// ExpireTime can be empty and default lifetime is used. Or you can specify own expiration time of invitation.
ExpireTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// Attributes passed into message sender
MessageAttributes *v1beta1.MapValue `protobuf:"bytes,5,opt,name=message_attributes,json=messageAttributes,proto3" json:"message_attributes,omitempty"`
// AcceptedBy specify DigitalTwin who accepted invitation
AcceptedBy *DigitalTwin `protobuf:"bytes,8,opt,name=accepted_by,json=acceptedBy,proto3" json:"accepted_by,omitempty"`
// State describe current state of workflow
State InvitationState `protobuf:"varint,9,opt,name=state,proto3,enum=indykite.identity.v1beta2.InvitationState" json:"state,omitempty"`
// Types that are assignable to Invitee:
//
// *Invitation_Email
// *Invitation_Mobile
Invitee isInvitation_Invitee `protobuf_oneof:"invitee"`
}
func (x *Invitation) Reset() {
*x = Invitation{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Invitation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Invitation) ProtoMessage() {}
func (x *Invitation) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Invitation.ProtoReflect.Descriptor instead.
func (*Invitation) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{4}
}
func (x *Invitation) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *Invitation) GetReferenceId() string {
if x != nil {
return x.ReferenceId
}
return ""
}
func (x *Invitation) GetInviteAtTime() *timestamppb.Timestamp {
if x != nil {
return x.InviteAtTime
}
return nil
}
func (x *Invitation) GetExpireTime() *timestamppb.Timestamp {
if x != nil {
return x.ExpireTime
}
return nil
}
func (x *Invitation) GetMessageAttributes() *v1beta1.MapValue {
if x != nil {
return x.MessageAttributes
}
return nil
}
func (x *Invitation) GetAcceptedBy() *DigitalTwin {
if x != nil {
return x.AcceptedBy
}
return nil
}
func (x *Invitation) GetState() InvitationState {
if x != nil {
return x.State
}
return InvitationState_INVITATION_STATE_INVALID
}
func (m *Invitation) GetInvitee() isInvitation_Invitee {
if m != nil {
return m.Invitee
}
return nil
}
func (x *Invitation) GetEmail() string {
if x, ok := x.GetInvitee().(*Invitation_Email); ok {
return x.Email
}
return ""
}
func (x *Invitation) GetMobile() string {
if x, ok := x.GetInvitee().(*Invitation_Mobile); ok {
return x.Mobile
}
return ""
}
type isInvitation_Invitee interface {
isInvitation_Invitee()
}
type Invitation_Email struct {
// Email address where invitation message will be sent.
Email string `protobuf:"bytes,6,opt,name=email,proto3,oneof"`
}
type Invitation_Mobile struct {
// Mobile number where sms will be sent.
Mobile string `protobuf:"bytes,7,opt,name=mobile,proto3,oneof"`
}
func (*Invitation_Email) isInvitation_Invitee() {}
func (*Invitation_Mobile) isInvitation_Invitee() {}
// WellKnown represents important OpenID Connect discovery metadata
//
// It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms
// among others.
type WellKnown struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier.
// If IssuerURL discovery is supported , this value MUST be identical to the issuer value returned
// by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL.
//
// required: true
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// URL of the OP's OAuth 2.0 Authorization Endpoint.
//
// required: true
AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"`
// URL of the OP's Dynamic Client Registration Endpoint.
RegistrationEndpoint string `protobuf:"bytes,3,opt,name=registration_endpoint,json=registrationEndpoint,proto3" json:"registration_endpoint,omitempty"`
// URL of the OP's OAuth 2.0 Token Endpoint
//
// required: true
TokenEndpoint string `protobuf:"bytes,4,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"`
// URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate
// signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs
// to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use)
// parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage.
// Although some algorithms allow the same key to be used for both signatures and encryption, doing so is
// NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of
// keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.
//
// required: true
JwksUri string `protobuf:"bytes,5,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"`
// JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include
// pairwise and public.
//
// required: true
// example:
// - public
// - pairwise
SubjectTypesSupported []string `protobuf:"bytes,6,rep,name=subject_types_supported,json=subjectTypesSupported,proto3" json:"subject_types_supported,omitempty"`
// JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID
// Providers MUST support the code, id_token, and the token id_token Response Type values.
//
// required: true
ResponseTypesSupported []string `protobuf:"bytes,7,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"`
// JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply
// values for. Note that for privacy or other reasons, this might not be an exhaustive list.
ClaimsSupported []string `protobuf:"bytes,8,rep,name=claims_supported,json=claimsSupported,proto3" json:"claims_supported,omitempty"`
// JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
GrantTypesSupported []string `protobuf:"bytes,9,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"`
// JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
ResponseModesSupported []string `protobuf:"bytes,10,rep,name=response_modes_supported,json=responseModesSupported,proto3" json:"response_modes_supported,omitempty"`
// URL of the OP's UserInfo Endpoint.
UserinfoEndpoint string `protobuf:"bytes,11,opt,name=userinfo_endpoint,json=userinfoEndpoint,proto3" json:"userinfo_endpoint,omitempty"`
// SON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST
// support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used
ScopesSupported []string `protobuf:"bytes,12,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"`
// JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are
// client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0
TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,13,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"`
// JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
UserinfoSigningAlgValuesSupported []string `protobuf:"bytes,14,rep,name=userinfo_signing_alg_values_supported,json=userinfoSigningAlgValuesSupported,proto3" json:"userinfo_signing_alg_values_supported,omitempty"`
// JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token
// to encode the Claims in a JWT.
//
// required: true
IdTokenSigningAlgValuesSupported []string `protobuf:"bytes,15,rep,name=id_token_signing_alg_values_supported,json=idTokenSigningAlgValuesSupported,proto3" json:"id_token_signing_alg_values_supported,omitempty"`
// Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
RequestParameterSupported bool `protobuf:"varint,16,opt,name=request_parameter_supported,json=requestParameterSupported,proto3" json:"request_parameter_supported,omitempty"`
// Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
RequestUriParameterSupported bool `protobuf:"varint,17,opt,name=request_uri_parameter_supported,json=requestUriParameterSupported,proto3" json:"request_uri_parameter_supported,omitempty"`
// Boolean value specifying whether the OP requires any request_uri values used to be pre-registered
// using the request_uris registration parameter.
RequireRequestUriRegistration bool `protobuf:"varint,18,opt,name=require_request_uri_registration,json=requireRequestUriRegistration,proto3" json:"require_request_uri_registration,omitempty"`
// Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.
ClaimsParameterSupported bool `protobuf:"varint,19,opt,name=claims_parameter_supported,json=claimsParameterSupported,proto3" json:"claims_parameter_supported,omitempty"`
// URL of the authorization server's OAuth 2.0 revocation endpoint.
RevocationEndpoint string `protobuf:"bytes,20,opt,name=revocation_endpoint,json=revocationEndpoint,proto3" json:"revocation_endpoint,omitempty"`
// Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
BackchannelLogoutSupported bool `protobuf:"varint,21,opt,name=backchannel_logout_supported,json=backchannelLogoutSupported,proto3" json:"backchannel_logout_supported,omitempty"`
// Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP
// session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP
BackchannelLogoutSessionSupported bool `protobuf:"varint,22,opt,name=backchannel_logout_session_supported,json=backchannelLogoutSessionSupported,proto3" json:"backchannel_logout_session_supported,omitempty"`
// Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.
FrontchannelLogoutSupported bool `protobuf:"varint,23,opt,name=frontchannel_logout_supported,json=frontchannelLogoutSupported,proto3" json:"frontchannel_logout_supported,omitempty"`
// Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify
// the RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also
// included in ID Tokens issued by the OP.
FrontchannelLogoutSessionSupported bool `protobuf:"varint,24,opt,name=frontchannel_logout_session_supported,json=frontchannelLogoutSessionSupported,proto3" json:"frontchannel_logout_session_supported,omitempty"`
// URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
EndSessionEndpoint string `protobuf:"bytes,25,opt,name=end_session_endpoint,json=endSessionEndpoint,proto3" json:"end_session_endpoint,omitempty"`
}
func (x *WellKnown) Reset() {
*x = WellKnown{}
if protoimpl.UnsafeEnabled {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WellKnown) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WellKnown) ProtoMessage() {}
func (x *WellKnown) ProtoReflect() protoreflect.Message {
mi := &file_indykite_identity_v1beta2_model_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WellKnown.ProtoReflect.Descriptor instead.
func (*WellKnown) Descriptor() ([]byte, []int) {
return file_indykite_identity_v1beta2_model_proto_rawDescGZIP(), []int{5}
}
func (x *WellKnown) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *WellKnown) GetAuthorizationEndpoint() string {
if x != nil {
return x.AuthorizationEndpoint
}
return ""
}
func (x *WellKnown) GetRegistrationEndpoint() string {
if x != nil {
return x.RegistrationEndpoint
}
return ""
}
func (x *WellKnown) GetTokenEndpoint() string {
if x != nil {
return x.TokenEndpoint
}
return ""
}
func (x *WellKnown) GetJwksUri() string {
if x != nil {
return x.JwksUri
}
return ""
}
func (x *WellKnown) GetSubjectTypesSupported() []string {
if x != nil {
return x.SubjectTypesSupported
}
return nil
}
func (x *WellKnown) GetResponseTypesSupported() []string {
if x != nil {
return x.ResponseTypesSupported
}
return nil
}
func (x *WellKnown) GetClaimsSupported() []string {
if x != nil {
return x.ClaimsSupported
}
return nil
}
func (x *WellKnown) GetGrantTypesSupported() []string {
if x != nil {
return x.GrantTypesSupported
}
return nil
}
func (x *WellKnown) GetResponseModesSupported() []string {
if x != nil {
return x.ResponseModesSupported
}
return nil