@structured-id/proto 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/generated/sid/v1/account/account.d.ts +8 -8
- package/dist/generated/sid/v1/account/account.js +34 -34
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +4 -4
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
- package/dist/generated/sid/v1/admin/operations.js +32 -32
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
- package/dist/generated/sid/v1/admin/organizations.js +16 -16
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
- package/dist/generated/sid/v1/admin/provisioning.js +13 -13
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
- package/dist/generated/sid/v1/authn/auth.js +315 -315
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
- package/dist/generated/sid/v1/authn/flows.js +4 -4
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
- package/dist/generated/sid/v1/authn/native_session.js +5 -5
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
- package/dist/generated/sid/v1/authn/password_history.js +35 -35
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +30 -30
- package/dist/generated/sid/v1/authz/authz.js +113 -113
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/common/operation.d.ts +3 -3
- package/dist/generated/sid/v1/common/operation.js +13 -13
- package/dist/generated/sid/v1/common/operation.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
- package/dist/generated/sid/v1/federation/upstream.js +48 -48
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
- package/dist/generated/sid/v1/identity/identity.js +367 -367
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +18 -0
- package/dist/generated/sid/v1/ids/ids.js +9 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +22 -15
- package/dist/generated/sid/v1/machine/machine_user.js +60 -60
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/package.json +5 -5
|
@@ -564,26 +564,26 @@ export var DeviceAssurance;
|
|
|
564
564
|
class Profile$Type extends MessageType {
|
|
565
565
|
constructor() {
|
|
566
566
|
super("sid.v1.identity.Profile", [
|
|
567
|
-
{ no:
|
|
567
|
+
{ no: 1, name: "id", kind: "message", T: () => ProfileId },
|
|
568
568
|
{ no: 2, name: "profile_type", kind: "enum", T: () => ["sid.v1.identity.ProfileType", ProfileType, "PROFILE_TYPE_"] },
|
|
569
569
|
{ no: 3, name: "username", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
570
570
|
{ no: 4, name: "email", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
571
571
|
{ no: 5, name: "email_verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
572
|
-
{ no:
|
|
573
|
-
{ no:
|
|
574
|
-
{ no:
|
|
575
|
-
{ no:
|
|
576
|
-
{ no:
|
|
577
|
-
{ no:
|
|
578
|
-
{ no:
|
|
579
|
-
{ no:
|
|
580
|
-
{ no:
|
|
581
|
-
{ no:
|
|
582
|
-
{ no:
|
|
583
|
-
{ no:
|
|
584
|
-
{ no:
|
|
585
|
-
{ no:
|
|
586
|
-
{ no:
|
|
572
|
+
{ no: 6, name: "phone", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
573
|
+
{ no: 7, name: "phone_verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
574
|
+
{ no: 8, name: "given_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
575
|
+
{ no: 9, name: "family_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
576
|
+
{ no: 10, name: "middle_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
577
|
+
{ no: 11, name: "honorific_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
578
|
+
{ no: 12, name: "honorific_suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
579
|
+
{ no: 13, name: "formatted_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
580
|
+
{ no: 14, name: "avatar_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
581
|
+
{ no: 15, name: "status", kind: "enum", T: () => ["sid.v1.identity.ProfileStatus", ProfileStatus, "PROFILE_STATUS_"] },
|
|
582
|
+
{ no: 16, name: "visibility", kind: "enum", T: () => ["sid.v1.identity.ProfileVisibility", ProfileVisibility, "PROFILE_VISIBILITY_"] },
|
|
583
|
+
{ no: 17, name: "created_at", kind: "message", T: () => Timestamp },
|
|
584
|
+
{ no: 18, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
585
|
+
{ no: 19, name: "last_login_at", kind: "message", T: () => Timestamp },
|
|
586
|
+
{ no: 20, name: "principals", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Principal }
|
|
587
587
|
]);
|
|
588
588
|
}
|
|
589
589
|
create(value) {
|
|
@@ -603,7 +603,7 @@ class Profile$Type extends MessageType {
|
|
|
603
603
|
while (reader.pos < end) {
|
|
604
604
|
let [fieldNo, wireType] = reader.tag();
|
|
605
605
|
switch (fieldNo) {
|
|
606
|
-
case /* sid.v1.ids.ProfileId id */
|
|
606
|
+
case /* sid.v1.ids.ProfileId id */ 1:
|
|
607
607
|
message.id = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
608
608
|
break;
|
|
609
609
|
case /* sid.v1.identity.ProfileType profile_type */ 2:
|
|
@@ -618,49 +618,49 @@ class Profile$Type extends MessageType {
|
|
|
618
618
|
case /* bool email_verified */ 5:
|
|
619
619
|
message.emailVerified = reader.bool();
|
|
620
620
|
break;
|
|
621
|
-
case /* optional string phone */
|
|
621
|
+
case /* optional string phone */ 6:
|
|
622
622
|
message.phone = reader.string();
|
|
623
623
|
break;
|
|
624
|
-
case /* bool phone_verified */
|
|
624
|
+
case /* bool phone_verified */ 7:
|
|
625
625
|
message.phoneVerified = reader.bool();
|
|
626
626
|
break;
|
|
627
|
-
case /* optional string given_name */
|
|
627
|
+
case /* optional string given_name */ 8:
|
|
628
628
|
message.givenName = reader.string();
|
|
629
629
|
break;
|
|
630
|
-
case /* optional string family_name */
|
|
630
|
+
case /* optional string family_name */ 9:
|
|
631
631
|
message.familyName = reader.string();
|
|
632
632
|
break;
|
|
633
|
-
case /* optional string middle_name */
|
|
633
|
+
case /* optional string middle_name */ 10:
|
|
634
634
|
message.middleName = reader.string();
|
|
635
635
|
break;
|
|
636
|
-
case /* optional string honorific_prefix */
|
|
636
|
+
case /* optional string honorific_prefix */ 11:
|
|
637
637
|
message.honorificPrefix = reader.string();
|
|
638
638
|
break;
|
|
639
|
-
case /* optional string honorific_suffix */
|
|
639
|
+
case /* optional string honorific_suffix */ 12:
|
|
640
640
|
message.honorificSuffix = reader.string();
|
|
641
641
|
break;
|
|
642
|
-
case /* optional string formatted_name */
|
|
642
|
+
case /* optional string formatted_name */ 13:
|
|
643
643
|
message.formattedName = reader.string();
|
|
644
644
|
break;
|
|
645
|
-
case /* optional string avatar_url */
|
|
645
|
+
case /* optional string avatar_url */ 14:
|
|
646
646
|
message.avatarUrl = reader.string();
|
|
647
647
|
break;
|
|
648
|
-
case /* sid.v1.identity.ProfileStatus status */
|
|
648
|
+
case /* sid.v1.identity.ProfileStatus status */ 15:
|
|
649
649
|
message.status = reader.int32();
|
|
650
650
|
break;
|
|
651
|
-
case /* sid.v1.identity.ProfileVisibility visibility */
|
|
651
|
+
case /* sid.v1.identity.ProfileVisibility visibility */ 16:
|
|
652
652
|
message.visibility = reader.int32();
|
|
653
653
|
break;
|
|
654
|
-
case /* google.protobuf.Timestamp created_at */
|
|
654
|
+
case /* google.protobuf.Timestamp created_at */ 17:
|
|
655
655
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
656
656
|
break;
|
|
657
|
-
case /* google.protobuf.Timestamp updated_at */
|
|
657
|
+
case /* google.protobuf.Timestamp updated_at */ 18:
|
|
658
658
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
659
659
|
break;
|
|
660
|
-
case /* optional google.protobuf.Timestamp last_login_at */
|
|
660
|
+
case /* optional google.protobuf.Timestamp last_login_at */ 19:
|
|
661
661
|
message.lastLoginAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastLoginAt);
|
|
662
662
|
break;
|
|
663
|
-
case /* repeated sid.v1.identity.Principal principals */
|
|
663
|
+
case /* repeated sid.v1.identity.Principal principals */ 20:
|
|
664
664
|
message.principals.push(Principal.internalBinaryRead(reader, reader.uint32(), options));
|
|
665
665
|
break;
|
|
666
666
|
default:
|
|
@@ -675,6 +675,9 @@ class Profile$Type extends MessageType {
|
|
|
675
675
|
return message;
|
|
676
676
|
}
|
|
677
677
|
internalBinaryWrite(message, writer, options) {
|
|
678
|
+
/* sid.v1.ids.ProfileId id = 1; */
|
|
679
|
+
if (message.id)
|
|
680
|
+
ProfileId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
678
681
|
/* sid.v1.identity.ProfileType profile_type = 2; */
|
|
679
682
|
if (message.profileType !== 0)
|
|
680
683
|
writer.tag(2, WireType.Varint).int32(message.profileType);
|
|
@@ -687,54 +690,51 @@ class Profile$Type extends MessageType {
|
|
|
687
690
|
/* bool email_verified = 5; */
|
|
688
691
|
if (message.emailVerified !== false)
|
|
689
692
|
writer.tag(5, WireType.Varint).bool(message.emailVerified);
|
|
690
|
-
/* optional string
|
|
693
|
+
/* optional string phone = 6; */
|
|
694
|
+
if (message.phone !== undefined)
|
|
695
|
+
writer.tag(6, WireType.LengthDelimited).string(message.phone);
|
|
696
|
+
/* bool phone_verified = 7; */
|
|
697
|
+
if (message.phoneVerified !== false)
|
|
698
|
+
writer.tag(7, WireType.Varint).bool(message.phoneVerified);
|
|
699
|
+
/* optional string given_name = 8; */
|
|
691
700
|
if (message.givenName !== undefined)
|
|
692
|
-
writer.tag(
|
|
693
|
-
/* optional string
|
|
701
|
+
writer.tag(8, WireType.LengthDelimited).string(message.givenName);
|
|
702
|
+
/* optional string family_name = 9; */
|
|
703
|
+
if (message.familyName !== undefined)
|
|
704
|
+
writer.tag(9, WireType.LengthDelimited).string(message.familyName);
|
|
705
|
+
/* optional string middle_name = 10; */
|
|
706
|
+
if (message.middleName !== undefined)
|
|
707
|
+
writer.tag(10, WireType.LengthDelimited).string(message.middleName);
|
|
708
|
+
/* optional string honorific_prefix = 11; */
|
|
709
|
+
if (message.honorificPrefix !== undefined)
|
|
710
|
+
writer.tag(11, WireType.LengthDelimited).string(message.honorificPrefix);
|
|
711
|
+
/* optional string honorific_suffix = 12; */
|
|
712
|
+
if (message.honorificSuffix !== undefined)
|
|
713
|
+
writer.tag(12, WireType.LengthDelimited).string(message.honorificSuffix);
|
|
714
|
+
/* optional string formatted_name = 13; */
|
|
715
|
+
if (message.formattedName !== undefined)
|
|
716
|
+
writer.tag(13, WireType.LengthDelimited).string(message.formattedName);
|
|
717
|
+
/* optional string avatar_url = 14; */
|
|
694
718
|
if (message.avatarUrl !== undefined)
|
|
695
|
-
writer.tag(
|
|
696
|
-
/* sid.v1.identity.ProfileStatus status =
|
|
719
|
+
writer.tag(14, WireType.LengthDelimited).string(message.avatarUrl);
|
|
720
|
+
/* sid.v1.identity.ProfileStatus status = 15; */
|
|
697
721
|
if (message.status !== 0)
|
|
698
|
-
writer.tag(
|
|
699
|
-
/* sid.v1.identity.ProfileVisibility visibility =
|
|
722
|
+
writer.tag(15, WireType.Varint).int32(message.status);
|
|
723
|
+
/* sid.v1.identity.ProfileVisibility visibility = 16; */
|
|
700
724
|
if (message.visibility !== 0)
|
|
701
|
-
writer.tag(
|
|
702
|
-
/* google.protobuf.Timestamp created_at =
|
|
725
|
+
writer.tag(16, WireType.Varint).int32(message.visibility);
|
|
726
|
+
/* google.protobuf.Timestamp created_at = 17; */
|
|
703
727
|
if (message.createdAt)
|
|
704
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(
|
|
705
|
-
/* google.protobuf.Timestamp updated_at =
|
|
728
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
729
|
+
/* google.protobuf.Timestamp updated_at = 18; */
|
|
706
730
|
if (message.updatedAt)
|
|
707
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(
|
|
708
|
-
/* optional google.protobuf.Timestamp last_login_at =
|
|
731
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
732
|
+
/* optional google.protobuf.Timestamp last_login_at = 19; */
|
|
709
733
|
if (message.lastLoginAt)
|
|
710
|
-
Timestamp.internalBinaryWrite(message.lastLoginAt, writer.tag(
|
|
711
|
-
/* repeated sid.v1.identity.Principal principals =
|
|
734
|
+
Timestamp.internalBinaryWrite(message.lastLoginAt, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
735
|
+
/* repeated sid.v1.identity.Principal principals = 20; */
|
|
712
736
|
for (let i = 0; i < message.principals.length; i++)
|
|
713
|
-
Principal.internalBinaryWrite(message.principals[i], writer.tag(
|
|
714
|
-
/* optional string family_name = 14; */
|
|
715
|
-
if (message.familyName !== undefined)
|
|
716
|
-
writer.tag(14, WireType.LengthDelimited).string(message.familyName);
|
|
717
|
-
/* optional string middle_name = 15; */
|
|
718
|
-
if (message.middleName !== undefined)
|
|
719
|
-
writer.tag(15, WireType.LengthDelimited).string(message.middleName);
|
|
720
|
-
/* optional string honorific_prefix = 16; */
|
|
721
|
-
if (message.honorificPrefix !== undefined)
|
|
722
|
-
writer.tag(16, WireType.LengthDelimited).string(message.honorificPrefix);
|
|
723
|
-
/* optional string honorific_suffix = 17; */
|
|
724
|
-
if (message.honorificSuffix !== undefined)
|
|
725
|
-
writer.tag(17, WireType.LengthDelimited).string(message.honorificSuffix);
|
|
726
|
-
/* optional string formatted_name = 18; */
|
|
727
|
-
if (message.formattedName !== undefined)
|
|
728
|
-
writer.tag(18, WireType.LengthDelimited).string(message.formattedName);
|
|
729
|
-
/* optional string phone = 19; */
|
|
730
|
-
if (message.phone !== undefined)
|
|
731
|
-
writer.tag(19, WireType.LengthDelimited).string(message.phone);
|
|
732
|
-
/* bool phone_verified = 20; */
|
|
733
|
-
if (message.phoneVerified !== false)
|
|
734
|
-
writer.tag(20, WireType.Varint).bool(message.phoneVerified);
|
|
735
|
-
/* sid.v1.ids.ProfileId id = 21; */
|
|
736
|
-
if (message.id)
|
|
737
|
-
ProfileId.internalBinaryWrite(message.id, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
737
|
+
Principal.internalBinaryWrite(message.principals[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
738
738
|
let u = options.writeUnknownFields;
|
|
739
739
|
if (u !== false)
|
|
740
740
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -749,7 +749,7 @@ export const Profile = new Profile$Type();
|
|
|
749
749
|
class Principal$Type extends MessageType {
|
|
750
750
|
constructor() {
|
|
751
751
|
super("sid.v1.identity.Principal", [
|
|
752
|
-
{ no:
|
|
752
|
+
{ no: 1, name: "id", kind: "message", T: () => PrincipalId },
|
|
753
753
|
{ no: 2, name: "type", kind: "enum", T: () => ["sid.v1.identity.PrincipalType", PrincipalType, "PRINCIPAL_TYPE_"] },
|
|
754
754
|
{ no: 3, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
755
755
|
{ no: 4, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
@@ -757,8 +757,8 @@ class Principal$Type extends MessageType {
|
|
|
757
757
|
{ no: 6, name: "created_at", kind: "message", T: () => Timestamp },
|
|
758
758
|
{ no: 7, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
759
759
|
{ no: 8, name: "source_field", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
760
|
-
{ no:
|
|
761
|
-
{ no:
|
|
760
|
+
{ no: 9, name: "source_email_id", kind: "message", T: () => ProfileEmailId },
|
|
761
|
+
{ no: 10, name: "needs_address_confirmation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
762
762
|
]);
|
|
763
763
|
}
|
|
764
764
|
create(value) {
|
|
@@ -777,7 +777,7 @@ class Principal$Type extends MessageType {
|
|
|
777
777
|
while (reader.pos < end) {
|
|
778
778
|
let [fieldNo, wireType] = reader.tag();
|
|
779
779
|
switch (fieldNo) {
|
|
780
|
-
case /* sid.v1.ids.PrincipalId id */
|
|
780
|
+
case /* sid.v1.ids.PrincipalId id */ 1:
|
|
781
781
|
message.id = PrincipalId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
782
782
|
break;
|
|
783
783
|
case /* sid.v1.identity.PrincipalType type */ 2:
|
|
@@ -801,10 +801,10 @@ class Principal$Type extends MessageType {
|
|
|
801
801
|
case /* optional string source_field */ 8:
|
|
802
802
|
message.sourceField = reader.string();
|
|
803
803
|
break;
|
|
804
|
-
case /* sid.v1.ids.ProfileEmailId source_email_id */
|
|
804
|
+
case /* sid.v1.ids.ProfileEmailId source_email_id */ 9:
|
|
805
805
|
message.sourceEmailId = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.sourceEmailId);
|
|
806
806
|
break;
|
|
807
|
-
case /* bool needs_address_confirmation */
|
|
807
|
+
case /* bool needs_address_confirmation */ 10:
|
|
808
808
|
message.needsAddressConfirmation = reader.bool();
|
|
809
809
|
break;
|
|
810
810
|
default:
|
|
@@ -819,6 +819,9 @@ class Principal$Type extends MessageType {
|
|
|
819
819
|
return message;
|
|
820
820
|
}
|
|
821
821
|
internalBinaryWrite(message, writer, options) {
|
|
822
|
+
/* sid.v1.ids.PrincipalId id = 1; */
|
|
823
|
+
if (message.id)
|
|
824
|
+
PrincipalId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
822
825
|
/* sid.v1.identity.PrincipalType type = 2; */
|
|
823
826
|
if (message.type !== 0)
|
|
824
827
|
writer.tag(2, WireType.Varint).int32(message.type);
|
|
@@ -840,15 +843,12 @@ class Principal$Type extends MessageType {
|
|
|
840
843
|
/* optional string source_field = 8; */
|
|
841
844
|
if (message.sourceField !== undefined)
|
|
842
845
|
writer.tag(8, WireType.LengthDelimited).string(message.sourceField);
|
|
843
|
-
/*
|
|
844
|
-
if (message.needsAddressConfirmation !== false)
|
|
845
|
-
writer.tag(12, WireType.Varint).bool(message.needsAddressConfirmation);
|
|
846
|
-
/* sid.v1.ids.PrincipalId id = 13; */
|
|
847
|
-
if (message.id)
|
|
848
|
-
PrincipalId.internalBinaryWrite(message.id, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
849
|
-
/* sid.v1.ids.ProfileEmailId source_email_id = 14; */
|
|
846
|
+
/* sid.v1.ids.ProfileEmailId source_email_id = 9; */
|
|
850
847
|
if (message.sourceEmailId)
|
|
851
|
-
ProfileEmailId.internalBinaryWrite(message.sourceEmailId, writer.tag(
|
|
848
|
+
ProfileEmailId.internalBinaryWrite(message.sourceEmailId, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
849
|
+
/* bool needs_address_confirmation = 10; */
|
|
850
|
+
if (message.needsAddressConfirmation !== false)
|
|
851
|
+
writer.tag(10, WireType.Varint).bool(message.needsAddressConfirmation);
|
|
852
852
|
let u = options.writeUnknownFields;
|
|
853
853
|
if (u !== false)
|
|
854
854
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -863,7 +863,7 @@ export const Principal = new Principal$Type();
|
|
|
863
863
|
class ProfilePhone$Type extends MessageType {
|
|
864
864
|
constructor() {
|
|
865
865
|
super("sid.v1.identity.ProfilePhone", [
|
|
866
|
-
{ no:
|
|
866
|
+
{ no: 1, name: "id", kind: "message", T: () => ProfilePhoneId },
|
|
867
867
|
{ no: 2, name: "e164", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
868
868
|
{ no: 3, name: "extension", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
869
869
|
{ no: 4, name: "label", kind: "enum", T: () => ["sid.v1.identity.PhoneLabel", PhoneLabel, "PHONE_LABEL_"] },
|
|
@@ -894,7 +894,7 @@ class ProfilePhone$Type extends MessageType {
|
|
|
894
894
|
while (reader.pos < end) {
|
|
895
895
|
let [fieldNo, wireType] = reader.tag();
|
|
896
896
|
switch (fieldNo) {
|
|
897
|
-
case /* sid.v1.ids.ProfilePhoneId id */
|
|
897
|
+
case /* sid.v1.ids.ProfilePhoneId id */ 1:
|
|
898
898
|
message.id = ProfilePhoneId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
899
899
|
break;
|
|
900
900
|
case /* uint64 e164 */ 2:
|
|
@@ -939,6 +939,9 @@ class ProfilePhone$Type extends MessageType {
|
|
|
939
939
|
return message;
|
|
940
940
|
}
|
|
941
941
|
internalBinaryWrite(message, writer, options) {
|
|
942
|
+
/* sid.v1.ids.ProfilePhoneId id = 1; */
|
|
943
|
+
if (message.id)
|
|
944
|
+
ProfilePhoneId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
942
945
|
/* uint64 e164 = 2; */
|
|
943
946
|
if (message.e164 !== 0n)
|
|
944
947
|
writer.tag(2, WireType.Varint).uint64(message.e164);
|
|
@@ -969,9 +972,6 @@ class ProfilePhone$Type extends MessageType {
|
|
|
969
972
|
/* optional google.protobuf.Timestamp verified_at = 11; */
|
|
970
973
|
if (message.verifiedAt)
|
|
971
974
|
Timestamp.internalBinaryWrite(message.verifiedAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
972
|
-
/* sid.v1.ids.ProfilePhoneId id = 12; */
|
|
973
|
-
if (message.id)
|
|
974
|
-
ProfilePhoneId.internalBinaryWrite(message.id, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
975
975
|
let u = options.writeUnknownFields;
|
|
976
976
|
if (u !== false)
|
|
977
977
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -986,7 +986,7 @@ export const ProfilePhone = new ProfilePhone$Type();
|
|
|
986
986
|
class ProfileEmail$Type extends MessageType {
|
|
987
987
|
constructor() {
|
|
988
988
|
super("sid.v1.identity.ProfileEmail", [
|
|
989
|
-
{ no:
|
|
989
|
+
{ no: 1, name: "id", kind: "message", T: () => ProfileEmailId },
|
|
990
990
|
{ no: 2, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
991
991
|
{ no: 3, name: "label", kind: "enum", T: () => ["sid.v1.identity.EmailLabel", EmailLabel, "EMAIL_LABEL_"] },
|
|
992
992
|
{ no: 4, name: "custom_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1010,7 +1010,7 @@ class ProfileEmail$Type extends MessageType {
|
|
|
1010
1010
|
while (reader.pos < end) {
|
|
1011
1011
|
let [fieldNo, wireType] = reader.tag();
|
|
1012
1012
|
switch (fieldNo) {
|
|
1013
|
-
case /* sid.v1.ids.ProfileEmailId id */
|
|
1013
|
+
case /* sid.v1.ids.ProfileEmailId id */ 1:
|
|
1014
1014
|
message.id = ProfileEmailId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1015
1015
|
break;
|
|
1016
1016
|
case /* string email */ 2:
|
|
@@ -1043,6 +1043,9 @@ class ProfileEmail$Type extends MessageType {
|
|
|
1043
1043
|
return message;
|
|
1044
1044
|
}
|
|
1045
1045
|
internalBinaryWrite(message, writer, options) {
|
|
1046
|
+
/* sid.v1.ids.ProfileEmailId id = 1; */
|
|
1047
|
+
if (message.id)
|
|
1048
|
+
ProfileEmailId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1046
1049
|
/* string email = 2; */
|
|
1047
1050
|
if (message.email !== "")
|
|
1048
1051
|
writer.tag(2, WireType.LengthDelimited).string(message.email);
|
|
@@ -1061,9 +1064,6 @@ class ProfileEmail$Type extends MessageType {
|
|
|
1061
1064
|
/* optional google.protobuf.Timestamp verified_at = 7; */
|
|
1062
1065
|
if (message.verifiedAt)
|
|
1063
1066
|
Timestamp.internalBinaryWrite(message.verifiedAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1064
|
-
/* sid.v1.ids.ProfileEmailId id = 8; */
|
|
1065
|
-
if (message.id)
|
|
1066
|
-
ProfileEmailId.internalBinaryWrite(message.id, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1067
1067
|
let u = options.writeUnknownFields;
|
|
1068
1068
|
if (u !== false)
|
|
1069
1069
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1078,14 +1078,14 @@ export const ProfileEmail = new ProfileEmail$Type();
|
|
|
1078
1078
|
class Credential$Type extends MessageType {
|
|
1079
1079
|
constructor() {
|
|
1080
1080
|
super("sid.v1.identity.Credential", [
|
|
1081
|
-
{ no:
|
|
1082
|
-
{ no:
|
|
1083
|
-
{ no:
|
|
1084
|
-
{ no:
|
|
1085
|
-
{ no:
|
|
1086
|
-
{ no:
|
|
1087
|
-
{ no:
|
|
1088
|
-
{ no:
|
|
1081
|
+
{ no: 1, name: "id", kind: "message", T: () => CredentialId },
|
|
1082
|
+
{ no: 2, name: "type", kind: "enum", T: () => ["sid.v1.identity.CredentialType", CredentialType, "CREDENTIAL_TYPE_"] },
|
|
1083
|
+
{ no: 3, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1084
|
+
{ no: 4, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1085
|
+
{ no: 5, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1086
|
+
{ no: 6, name: "last_used_at", kind: "message", T: () => Timestamp },
|
|
1087
|
+
{ no: 7, name: "webauthn_info", kind: "message", oneof: "info", T: () => WebAuthnCredentialInfo },
|
|
1088
|
+
{ no: 8, name: "opaque_info", kind: "message", oneof: "info", T: () => OpaqueCredentialInfo }
|
|
1089
1089
|
]);
|
|
1090
1090
|
}
|
|
1091
1091
|
create(value) {
|
|
@@ -1102,31 +1102,31 @@ class Credential$Type extends MessageType {
|
|
|
1102
1102
|
while (reader.pos < end) {
|
|
1103
1103
|
let [fieldNo, wireType] = reader.tag();
|
|
1104
1104
|
switch (fieldNo) {
|
|
1105
|
-
case /* sid.v1.ids.CredentialId id */
|
|
1105
|
+
case /* sid.v1.ids.CredentialId id */ 1:
|
|
1106
1106
|
message.id = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1107
1107
|
break;
|
|
1108
|
-
case /* sid.v1.identity.CredentialType type */
|
|
1108
|
+
case /* sid.v1.identity.CredentialType type */ 2:
|
|
1109
1109
|
message.type = reader.int32();
|
|
1110
1110
|
break;
|
|
1111
|
-
case /* bytes data */
|
|
1111
|
+
case /* bytes data */ 3:
|
|
1112
1112
|
message.data = reader.bytes();
|
|
1113
1113
|
break;
|
|
1114
|
-
case /* optional string label */
|
|
1114
|
+
case /* optional string label */ 4:
|
|
1115
1115
|
message.label = reader.string();
|
|
1116
1116
|
break;
|
|
1117
|
-
case /* google.protobuf.Timestamp created_at */
|
|
1117
|
+
case /* google.protobuf.Timestamp created_at */ 5:
|
|
1118
1118
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1119
1119
|
break;
|
|
1120
|
-
case /* optional google.protobuf.Timestamp last_used_at */
|
|
1120
|
+
case /* optional google.protobuf.Timestamp last_used_at */ 6:
|
|
1121
1121
|
message.lastUsedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastUsedAt);
|
|
1122
1122
|
break;
|
|
1123
|
-
case /* sid.v1.identity.WebAuthnCredentialInfo webauthn_info */
|
|
1123
|
+
case /* sid.v1.identity.WebAuthnCredentialInfo webauthn_info */ 7:
|
|
1124
1124
|
message.info = {
|
|
1125
1125
|
oneofKind: "webauthnInfo",
|
|
1126
1126
|
webauthnInfo: WebAuthnCredentialInfo.internalBinaryRead(reader, reader.uint32(), options, message.info.webauthnInfo)
|
|
1127
1127
|
};
|
|
1128
1128
|
break;
|
|
1129
|
-
case /* sid.v1.identity.OpaqueCredentialInfo opaque_info */
|
|
1129
|
+
case /* sid.v1.identity.OpaqueCredentialInfo opaque_info */ 8:
|
|
1130
1130
|
message.info = {
|
|
1131
1131
|
oneofKind: "opaqueInfo",
|
|
1132
1132
|
opaqueInfo: OpaqueCredentialInfo.internalBinaryRead(reader, reader.uint32(), options, message.info.opaqueInfo)
|
|
@@ -1144,30 +1144,30 @@ class Credential$Type extends MessageType {
|
|
|
1144
1144
|
return message;
|
|
1145
1145
|
}
|
|
1146
1146
|
internalBinaryWrite(message, writer, options) {
|
|
1147
|
-
/* sid.v1.
|
|
1147
|
+
/* sid.v1.ids.CredentialId id = 1; */
|
|
1148
|
+
if (message.id)
|
|
1149
|
+
CredentialId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1150
|
+
/* sid.v1.identity.CredentialType type = 2; */
|
|
1148
1151
|
if (message.type !== 0)
|
|
1149
|
-
writer.tag(
|
|
1150
|
-
/* bytes data =
|
|
1152
|
+
writer.tag(2, WireType.Varint).int32(message.type);
|
|
1153
|
+
/* bytes data = 3; */
|
|
1151
1154
|
if (message.data.length)
|
|
1152
|
-
writer.tag(
|
|
1153
|
-
/* optional string label =
|
|
1155
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.data);
|
|
1156
|
+
/* optional string label = 4; */
|
|
1154
1157
|
if (message.label !== undefined)
|
|
1155
|
-
writer.tag(
|
|
1156
|
-
/* google.protobuf.Timestamp created_at =
|
|
1158
|
+
writer.tag(4, WireType.LengthDelimited).string(message.label);
|
|
1159
|
+
/* google.protobuf.Timestamp created_at = 5; */
|
|
1157
1160
|
if (message.createdAt)
|
|
1158
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(
|
|
1159
|
-
/* optional google.protobuf.Timestamp last_used_at =
|
|
1161
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1162
|
+
/* optional google.protobuf.Timestamp last_used_at = 6; */
|
|
1160
1163
|
if (message.lastUsedAt)
|
|
1161
|
-
Timestamp.internalBinaryWrite(message.lastUsedAt, writer.tag(
|
|
1162
|
-
/* sid.v1.identity.WebAuthnCredentialInfo webauthn_info =
|
|
1164
|
+
Timestamp.internalBinaryWrite(message.lastUsedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1165
|
+
/* sid.v1.identity.WebAuthnCredentialInfo webauthn_info = 7; */
|
|
1163
1166
|
if (message.info.oneofKind === "webauthnInfo")
|
|
1164
|
-
WebAuthnCredentialInfo.internalBinaryWrite(message.info.webauthnInfo, writer.tag(
|
|
1165
|
-
/* sid.v1.identity.OpaqueCredentialInfo opaque_info =
|
|
1167
|
+
WebAuthnCredentialInfo.internalBinaryWrite(message.info.webauthnInfo, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1168
|
+
/* sid.v1.identity.OpaqueCredentialInfo opaque_info = 8; */
|
|
1166
1169
|
if (message.info.oneofKind === "opaqueInfo")
|
|
1167
|
-
OpaqueCredentialInfo.internalBinaryWrite(message.info.opaqueInfo, writer.tag(
|
|
1168
|
-
/* sid.v1.ids.CredentialId id = 10; */
|
|
1169
|
-
if (message.id)
|
|
1170
|
-
CredentialId.internalBinaryWrite(message.id, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
1170
|
+
OpaqueCredentialInfo.internalBinaryWrite(message.info.opaqueInfo, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1171
1171
|
let u = options.writeUnknownFields;
|
|
1172
1172
|
if (u !== false)
|
|
1173
1173
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1324,15 +1324,15 @@ export const WebAuthnCredentialInfo = new WebAuthnCredentialInfo$Type();
|
|
|
1324
1324
|
class Session$Type extends MessageType {
|
|
1325
1325
|
constructor() {
|
|
1326
1326
|
super("sid.v1.identity.Session", [
|
|
1327
|
-
{ no:
|
|
1328
|
-
{ no:
|
|
1329
|
-
{ no:
|
|
1330
|
-
{ no:
|
|
1331
|
-
{ no:
|
|
1332
|
-
{ no:
|
|
1333
|
-
{ no:
|
|
1334
|
-
{ no:
|
|
1335
|
-
{ no:
|
|
1327
|
+
{ no: 1, name: "id", kind: "message", T: () => SessionId },
|
|
1328
|
+
{ no: 2, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1329
|
+
{ no: 3, name: "device_id", kind: "message", T: () => DeviceId },
|
|
1330
|
+
{ no: 4, name: "ip_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1331
|
+
{ no: 5, name: "user_agent", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1332
|
+
{ no: 6, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1333
|
+
{ no: 7, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1334
|
+
{ no: 8, name: "last_activity_at", kind: "message", T: () => Timestamp },
|
|
1335
|
+
{ no: 9, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1336
1336
|
]);
|
|
1337
1337
|
}
|
|
1338
1338
|
create(value) {
|
|
@@ -1349,31 +1349,31 @@ class Session$Type extends MessageType {
|
|
|
1349
1349
|
while (reader.pos < end) {
|
|
1350
1350
|
let [fieldNo, wireType] = reader.tag();
|
|
1351
1351
|
switch (fieldNo) {
|
|
1352
|
-
case /* sid.v1.ids.SessionId id */
|
|
1352
|
+
case /* sid.v1.ids.SessionId id */ 1:
|
|
1353
1353
|
message.id = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1354
1354
|
break;
|
|
1355
|
-
case /* string client_id */
|
|
1355
|
+
case /* string client_id */ 2:
|
|
1356
1356
|
message.clientId = reader.string();
|
|
1357
1357
|
break;
|
|
1358
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
1358
|
+
case /* sid.v1.ids.DeviceId device_id */ 3:
|
|
1359
1359
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
1360
1360
|
break;
|
|
1361
|
-
case /* string ip_address */
|
|
1361
|
+
case /* string ip_address */ 4:
|
|
1362
1362
|
message.ipAddress = reader.string();
|
|
1363
1363
|
break;
|
|
1364
|
-
case /* optional string user_agent */
|
|
1364
|
+
case /* optional string user_agent */ 5:
|
|
1365
1365
|
message.userAgent = reader.string();
|
|
1366
1366
|
break;
|
|
1367
|
-
case /* google.protobuf.Timestamp created_at */
|
|
1367
|
+
case /* google.protobuf.Timestamp created_at */ 6:
|
|
1368
1368
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1369
1369
|
break;
|
|
1370
|
-
case /* google.protobuf.Timestamp expires_at */
|
|
1370
|
+
case /* google.protobuf.Timestamp expires_at */ 7:
|
|
1371
1371
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
1372
1372
|
break;
|
|
1373
|
-
case /* optional google.protobuf.Timestamp last_activity_at */
|
|
1373
|
+
case /* optional google.protobuf.Timestamp last_activity_at */ 8:
|
|
1374
1374
|
message.lastActivityAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastActivityAt);
|
|
1375
1375
|
break;
|
|
1376
|
-
case /* repeated string scopes */
|
|
1376
|
+
case /* repeated string scopes */ 9:
|
|
1377
1377
|
message.scopes.push(reader.string());
|
|
1378
1378
|
break;
|
|
1379
1379
|
default:
|
|
@@ -1388,33 +1388,33 @@ class Session$Type extends MessageType {
|
|
|
1388
1388
|
return message;
|
|
1389
1389
|
}
|
|
1390
1390
|
internalBinaryWrite(message, writer, options) {
|
|
1391
|
-
/*
|
|
1391
|
+
/* sid.v1.ids.SessionId id = 1; */
|
|
1392
|
+
if (message.id)
|
|
1393
|
+
SessionId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1394
|
+
/* string client_id = 2; */
|
|
1392
1395
|
if (message.clientId !== "")
|
|
1393
|
-
writer.tag(
|
|
1394
|
-
/*
|
|
1396
|
+
writer.tag(2, WireType.LengthDelimited).string(message.clientId);
|
|
1397
|
+
/* sid.v1.ids.DeviceId device_id = 3; */
|
|
1398
|
+
if (message.deviceId)
|
|
1399
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1400
|
+
/* string ip_address = 4; */
|
|
1395
1401
|
if (message.ipAddress !== "")
|
|
1396
|
-
writer.tag(
|
|
1397
|
-
/* optional string user_agent =
|
|
1402
|
+
writer.tag(4, WireType.LengthDelimited).string(message.ipAddress);
|
|
1403
|
+
/* optional string user_agent = 5; */
|
|
1398
1404
|
if (message.userAgent !== undefined)
|
|
1399
|
-
writer.tag(
|
|
1400
|
-
/* google.protobuf.Timestamp created_at =
|
|
1405
|
+
writer.tag(5, WireType.LengthDelimited).string(message.userAgent);
|
|
1406
|
+
/* google.protobuf.Timestamp created_at = 6; */
|
|
1401
1407
|
if (message.createdAt)
|
|
1402
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(
|
|
1403
|
-
/* google.protobuf.Timestamp expires_at =
|
|
1408
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1409
|
+
/* google.protobuf.Timestamp expires_at = 7; */
|
|
1404
1410
|
if (message.expiresAt)
|
|
1405
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(
|
|
1406
|
-
/* optional google.protobuf.Timestamp last_activity_at =
|
|
1411
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1412
|
+
/* optional google.protobuf.Timestamp last_activity_at = 8; */
|
|
1407
1413
|
if (message.lastActivityAt)
|
|
1408
|
-
Timestamp.internalBinaryWrite(message.lastActivityAt, writer.tag(
|
|
1409
|
-
/* repeated string scopes =
|
|
1414
|
+
Timestamp.internalBinaryWrite(message.lastActivityAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1415
|
+
/* repeated string scopes = 9; */
|
|
1410
1416
|
for (let i = 0; i < message.scopes.length; i++)
|
|
1411
|
-
writer.tag(
|
|
1412
|
-
/* sid.v1.ids.SessionId id = 11; */
|
|
1413
|
-
if (message.id)
|
|
1414
|
-
SessionId.internalBinaryWrite(message.id, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
1415
|
-
/* sid.v1.ids.DeviceId device_id = 12; */
|
|
1416
|
-
if (message.deviceId)
|
|
1417
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1417
|
+
writer.tag(9, WireType.LengthDelimited).string(message.scopes[i]);
|
|
1418
1418
|
let u = options.writeUnknownFields;
|
|
1419
1419
|
if (u !== false)
|
|
1420
1420
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1431,15 +1431,15 @@ class CreateProfileRequest$Type extends MessageType {
|
|
|
1431
1431
|
super("sid.v1.identity.CreateProfileRequest", [
|
|
1432
1432
|
{ no: 1, name: "username", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1433
1433
|
{ no: 2, name: "email", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1434
|
-
{ no:
|
|
1435
|
-
{ no:
|
|
1436
|
-
{ no:
|
|
1437
|
-
{ no:
|
|
1438
|
-
{ no:
|
|
1439
|
-
{ no:
|
|
1440
|
-
{ no:
|
|
1434
|
+
{ no: 3, name: "phone", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1435
|
+
{ no: 4, name: "given_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1436
|
+
{ no: 5, name: "family_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1437
|
+
{ no: 6, name: "middle_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1438
|
+
{ no: 7, name: "honorific_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1439
|
+
{ no: 8, name: "honorific_suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1440
|
+
{ no: 9, name: "profile_type", kind: "enum", T: () => ["sid.v1.identity.ProfileType", ProfileType, "PROFILE_TYPE_"] },
|
|
1441
1441
|
{ no: 10, name: "invite_code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1442
|
-
{ no:
|
|
1442
|
+
{ no: 11, name: "referrer_id", kind: "message", T: () => ProfileId },
|
|
1443
1443
|
{ no: 12, name: "utm", kind: "message", T: () => UtmParams }
|
|
1444
1444
|
]);
|
|
1445
1445
|
}
|
|
@@ -1461,31 +1461,31 @@ class CreateProfileRequest$Type extends MessageType {
|
|
|
1461
1461
|
case /* optional string email */ 2:
|
|
1462
1462
|
message.email = reader.string();
|
|
1463
1463
|
break;
|
|
1464
|
-
case /* optional string phone */
|
|
1464
|
+
case /* optional string phone */ 3:
|
|
1465
1465
|
message.phone = reader.string();
|
|
1466
1466
|
break;
|
|
1467
|
-
case /* optional string given_name */
|
|
1467
|
+
case /* optional string given_name */ 4:
|
|
1468
1468
|
message.givenName = reader.string();
|
|
1469
1469
|
break;
|
|
1470
|
-
case /* optional string family_name */
|
|
1470
|
+
case /* optional string family_name */ 5:
|
|
1471
1471
|
message.familyName = reader.string();
|
|
1472
1472
|
break;
|
|
1473
|
-
case /* optional string middle_name */
|
|
1473
|
+
case /* optional string middle_name */ 6:
|
|
1474
1474
|
message.middleName = reader.string();
|
|
1475
1475
|
break;
|
|
1476
|
-
case /* optional string honorific_prefix */
|
|
1476
|
+
case /* optional string honorific_prefix */ 7:
|
|
1477
1477
|
message.honorificPrefix = reader.string();
|
|
1478
1478
|
break;
|
|
1479
|
-
case /* optional string honorific_suffix */
|
|
1479
|
+
case /* optional string honorific_suffix */ 8:
|
|
1480
1480
|
message.honorificSuffix = reader.string();
|
|
1481
1481
|
break;
|
|
1482
|
-
case /* sid.v1.identity.ProfileType profile_type */
|
|
1482
|
+
case /* sid.v1.identity.ProfileType profile_type */ 9:
|
|
1483
1483
|
message.profileType = reader.int32();
|
|
1484
1484
|
break;
|
|
1485
1485
|
case /* optional string invite_code */ 10:
|
|
1486
1486
|
message.inviteCode = reader.string();
|
|
1487
1487
|
break;
|
|
1488
|
-
case /* sid.v1.ids.ProfileId referrer_id */
|
|
1488
|
+
case /* sid.v1.ids.ProfileId referrer_id */ 11:
|
|
1489
1489
|
message.referrerId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.referrerId);
|
|
1490
1490
|
break;
|
|
1491
1491
|
case /* optional sid.v1.identity.UtmParams utm */ 12:
|
|
@@ -1509,36 +1509,36 @@ class CreateProfileRequest$Type extends MessageType {
|
|
|
1509
1509
|
/* optional string email = 2; */
|
|
1510
1510
|
if (message.email !== undefined)
|
|
1511
1511
|
writer.tag(2, WireType.LengthDelimited).string(message.email);
|
|
1512
|
-
/* optional string
|
|
1512
|
+
/* optional string phone = 3; */
|
|
1513
|
+
if (message.phone !== undefined)
|
|
1514
|
+
writer.tag(3, WireType.LengthDelimited).string(message.phone);
|
|
1515
|
+
/* optional string given_name = 4; */
|
|
1513
1516
|
if (message.givenName !== undefined)
|
|
1514
|
-
writer.tag(
|
|
1515
|
-
/*
|
|
1517
|
+
writer.tag(4, WireType.LengthDelimited).string(message.givenName);
|
|
1518
|
+
/* optional string family_name = 5; */
|
|
1519
|
+
if (message.familyName !== undefined)
|
|
1520
|
+
writer.tag(5, WireType.LengthDelimited).string(message.familyName);
|
|
1521
|
+
/* optional string middle_name = 6; */
|
|
1522
|
+
if (message.middleName !== undefined)
|
|
1523
|
+
writer.tag(6, WireType.LengthDelimited).string(message.middleName);
|
|
1524
|
+
/* optional string honorific_prefix = 7; */
|
|
1525
|
+
if (message.honorificPrefix !== undefined)
|
|
1526
|
+
writer.tag(7, WireType.LengthDelimited).string(message.honorificPrefix);
|
|
1527
|
+
/* optional string honorific_suffix = 8; */
|
|
1528
|
+
if (message.honorificSuffix !== undefined)
|
|
1529
|
+
writer.tag(8, WireType.LengthDelimited).string(message.honorificSuffix);
|
|
1530
|
+
/* sid.v1.identity.ProfileType profile_type = 9; */
|
|
1516
1531
|
if (message.profileType !== 0)
|
|
1517
|
-
writer.tag(
|
|
1532
|
+
writer.tag(9, WireType.Varint).int32(message.profileType);
|
|
1518
1533
|
/* optional string invite_code = 10; */
|
|
1519
1534
|
if (message.inviteCode !== undefined)
|
|
1520
1535
|
writer.tag(10, WireType.LengthDelimited).string(message.inviteCode);
|
|
1536
|
+
/* sid.v1.ids.ProfileId referrer_id = 11; */
|
|
1537
|
+
if (message.referrerId)
|
|
1538
|
+
ProfileId.internalBinaryWrite(message.referrerId, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
1521
1539
|
/* optional sid.v1.identity.UtmParams utm = 12; */
|
|
1522
1540
|
if (message.utm)
|
|
1523
1541
|
UtmParams.internalBinaryWrite(message.utm, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1524
|
-
/* optional string family_name = 13; */
|
|
1525
|
-
if (message.familyName !== undefined)
|
|
1526
|
-
writer.tag(13, WireType.LengthDelimited).string(message.familyName);
|
|
1527
|
-
/* optional string middle_name = 14; */
|
|
1528
|
-
if (message.middleName !== undefined)
|
|
1529
|
-
writer.tag(14, WireType.LengthDelimited).string(message.middleName);
|
|
1530
|
-
/* optional string honorific_prefix = 15; */
|
|
1531
|
-
if (message.honorificPrefix !== undefined)
|
|
1532
|
-
writer.tag(15, WireType.LengthDelimited).string(message.honorificPrefix);
|
|
1533
|
-
/* optional string honorific_suffix = 16; */
|
|
1534
|
-
if (message.honorificSuffix !== undefined)
|
|
1535
|
-
writer.tag(16, WireType.LengthDelimited).string(message.honorificSuffix);
|
|
1536
|
-
/* optional string phone = 17; */
|
|
1537
|
-
if (message.phone !== undefined)
|
|
1538
|
-
writer.tag(17, WireType.LengthDelimited).string(message.phone);
|
|
1539
|
-
/* sid.v1.ids.ProfileId referrer_id = 18; */
|
|
1540
|
-
if (message.referrerId)
|
|
1541
|
-
ProfileId.internalBinaryWrite(message.referrerId, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
1542
1542
|
let u = options.writeUnknownFields;
|
|
1543
1543
|
if (u !== false)
|
|
1544
1544
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1673,7 +1673,7 @@ export const CreateProfileResponse = new CreateProfileResponse$Type();
|
|
|
1673
1673
|
class GetProfileRequest$Type extends MessageType {
|
|
1674
1674
|
constructor() {
|
|
1675
1675
|
super("sid.v1.identity.GetProfileRequest", [
|
|
1676
|
-
{ no:
|
|
1676
|
+
{ no: 1, name: "id", kind: "message", oneof: "identifier", T: () => ProfileId },
|
|
1677
1677
|
{ no: 2, name: "username", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ },
|
|
1678
1678
|
{ no: 3, name: "email", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ }
|
|
1679
1679
|
]);
|
|
@@ -1690,7 +1690,7 @@ class GetProfileRequest$Type extends MessageType {
|
|
|
1690
1690
|
while (reader.pos < end) {
|
|
1691
1691
|
let [fieldNo, wireType] = reader.tag();
|
|
1692
1692
|
switch (fieldNo) {
|
|
1693
|
-
case /* sid.v1.ids.ProfileId id */
|
|
1693
|
+
case /* sid.v1.ids.ProfileId id */ 1:
|
|
1694
1694
|
message.identifier = {
|
|
1695
1695
|
oneofKind: "id",
|
|
1696
1696
|
id: ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.identifier.id)
|
|
@@ -1720,15 +1720,15 @@ class GetProfileRequest$Type extends MessageType {
|
|
|
1720
1720
|
return message;
|
|
1721
1721
|
}
|
|
1722
1722
|
internalBinaryWrite(message, writer, options) {
|
|
1723
|
+
/* sid.v1.ids.ProfileId id = 1; */
|
|
1724
|
+
if (message.identifier.oneofKind === "id")
|
|
1725
|
+
ProfileId.internalBinaryWrite(message.identifier.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1723
1726
|
/* string username = 2; */
|
|
1724
1727
|
if (message.identifier.oneofKind === "username")
|
|
1725
1728
|
writer.tag(2, WireType.LengthDelimited).string(message.identifier.username);
|
|
1726
1729
|
/* string email = 3; */
|
|
1727
1730
|
if (message.identifier.oneofKind === "email")
|
|
1728
1731
|
writer.tag(3, WireType.LengthDelimited).string(message.identifier.email);
|
|
1729
|
-
/* sid.v1.ids.ProfileId id = 4; */
|
|
1730
|
-
if (message.identifier.oneofKind === "id")
|
|
1731
|
-
ProfileId.internalBinaryWrite(message.identifier.id, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1732
1732
|
let u = options.writeUnknownFields;
|
|
1733
1733
|
if (u !== false)
|
|
1734
1734
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1827,13 +1827,13 @@ export const GetProfileResponse = new GetProfileResponse$Type();
|
|
|
1827
1827
|
class UpdateProfileRequest$Type extends MessageType {
|
|
1828
1828
|
constructor() {
|
|
1829
1829
|
super("sid.v1.identity.UpdateProfileRequest", [
|
|
1830
|
-
{ no:
|
|
1830
|
+
{ no: 1, name: "id", kind: "message", T: () => ProfileId },
|
|
1831
1831
|
{ no: 2, name: "given_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1832
|
-
{ no:
|
|
1833
|
-
{ no:
|
|
1834
|
-
{ no:
|
|
1835
|
-
{ no:
|
|
1836
|
-
{ no:
|
|
1832
|
+
{ no: 3, name: "family_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1833
|
+
{ no: 4, name: "middle_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1834
|
+
{ no: 5, name: "honorific_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1835
|
+
{ no: 6, name: "honorific_suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1836
|
+
{ no: 7, name: "avatar_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1837
1837
|
]);
|
|
1838
1838
|
}
|
|
1839
1839
|
create(value) {
|
|
@@ -1847,25 +1847,25 @@ class UpdateProfileRequest$Type extends MessageType {
|
|
|
1847
1847
|
while (reader.pos < end) {
|
|
1848
1848
|
let [fieldNo, wireType] = reader.tag();
|
|
1849
1849
|
switch (fieldNo) {
|
|
1850
|
-
case /* sid.v1.ids.ProfileId id */
|
|
1850
|
+
case /* sid.v1.ids.ProfileId id */ 1:
|
|
1851
1851
|
message.id = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1852
1852
|
break;
|
|
1853
1853
|
case /* optional string given_name */ 2:
|
|
1854
1854
|
message.givenName = reader.string();
|
|
1855
1855
|
break;
|
|
1856
|
-
case /* optional string family_name */
|
|
1856
|
+
case /* optional string family_name */ 3:
|
|
1857
1857
|
message.familyName = reader.string();
|
|
1858
1858
|
break;
|
|
1859
|
-
case /* optional string middle_name */
|
|
1859
|
+
case /* optional string middle_name */ 4:
|
|
1860
1860
|
message.middleName = reader.string();
|
|
1861
1861
|
break;
|
|
1862
|
-
case /* optional string honorific_prefix */
|
|
1862
|
+
case /* optional string honorific_prefix */ 5:
|
|
1863
1863
|
message.honorificPrefix = reader.string();
|
|
1864
1864
|
break;
|
|
1865
|
-
case /* optional string honorific_suffix */
|
|
1865
|
+
case /* optional string honorific_suffix */ 6:
|
|
1866
1866
|
message.honorificSuffix = reader.string();
|
|
1867
1867
|
break;
|
|
1868
|
-
case /* optional string avatar_url */
|
|
1868
|
+
case /* optional string avatar_url */ 7:
|
|
1869
1869
|
message.avatarUrl = reader.string();
|
|
1870
1870
|
break;
|
|
1871
1871
|
default:
|
|
@@ -1880,27 +1880,27 @@ class UpdateProfileRequest$Type extends MessageType {
|
|
|
1880
1880
|
return message;
|
|
1881
1881
|
}
|
|
1882
1882
|
internalBinaryWrite(message, writer, options) {
|
|
1883
|
+
/* sid.v1.ids.ProfileId id = 1; */
|
|
1884
|
+
if (message.id)
|
|
1885
|
+
ProfileId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1883
1886
|
/* optional string given_name = 2; */
|
|
1884
1887
|
if (message.givenName !== undefined)
|
|
1885
1888
|
writer.tag(2, WireType.LengthDelimited).string(message.givenName);
|
|
1886
|
-
/* optional string
|
|
1887
|
-
if (message.avatarUrl !== undefined)
|
|
1888
|
-
writer.tag(3, WireType.LengthDelimited).string(message.avatarUrl);
|
|
1889
|
-
/* optional string family_name = 4; */
|
|
1889
|
+
/* optional string family_name = 3; */
|
|
1890
1890
|
if (message.familyName !== undefined)
|
|
1891
|
-
writer.tag(
|
|
1892
|
-
/* optional string middle_name =
|
|
1891
|
+
writer.tag(3, WireType.LengthDelimited).string(message.familyName);
|
|
1892
|
+
/* optional string middle_name = 4; */
|
|
1893
1893
|
if (message.middleName !== undefined)
|
|
1894
|
-
writer.tag(
|
|
1895
|
-
/* optional string honorific_prefix =
|
|
1894
|
+
writer.tag(4, WireType.LengthDelimited).string(message.middleName);
|
|
1895
|
+
/* optional string honorific_prefix = 5; */
|
|
1896
1896
|
if (message.honorificPrefix !== undefined)
|
|
1897
|
-
writer.tag(
|
|
1898
|
-
/* optional string honorific_suffix =
|
|
1897
|
+
writer.tag(5, WireType.LengthDelimited).string(message.honorificPrefix);
|
|
1898
|
+
/* optional string honorific_suffix = 6; */
|
|
1899
1899
|
if (message.honorificSuffix !== undefined)
|
|
1900
|
-
writer.tag(
|
|
1901
|
-
/*
|
|
1902
|
-
if (message.
|
|
1903
|
-
|
|
1900
|
+
writer.tag(6, WireType.LengthDelimited).string(message.honorificSuffix);
|
|
1901
|
+
/* optional string avatar_url = 7; */
|
|
1902
|
+
if (message.avatarUrl !== undefined)
|
|
1903
|
+
writer.tag(7, WireType.LengthDelimited).string(message.avatarUrl);
|
|
1904
1904
|
let u = options.writeUnknownFields;
|
|
1905
1905
|
if (u !== false)
|
|
1906
1906
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1961,7 +1961,7 @@ export const UpdateProfileResponse = new UpdateProfileResponse$Type();
|
|
|
1961
1961
|
class DeleteProfileRequest$Type extends MessageType {
|
|
1962
1962
|
constructor() {
|
|
1963
1963
|
super("sid.v1.identity.DeleteProfileRequest", [
|
|
1964
|
-
{ no:
|
|
1964
|
+
{ no: 1, name: "id", kind: "message", T: () => ProfileId }
|
|
1965
1965
|
]);
|
|
1966
1966
|
}
|
|
1967
1967
|
create(value) {
|
|
@@ -1975,7 +1975,7 @@ class DeleteProfileRequest$Type extends MessageType {
|
|
|
1975
1975
|
while (reader.pos < end) {
|
|
1976
1976
|
let [fieldNo, wireType] = reader.tag();
|
|
1977
1977
|
switch (fieldNo) {
|
|
1978
|
-
case /* sid.v1.ids.ProfileId id */
|
|
1978
|
+
case /* sid.v1.ids.ProfileId id */ 1:
|
|
1979
1979
|
message.id = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1980
1980
|
break;
|
|
1981
1981
|
default:
|
|
@@ -1990,9 +1990,9 @@ class DeleteProfileRequest$Type extends MessageType {
|
|
|
1990
1990
|
return message;
|
|
1991
1991
|
}
|
|
1992
1992
|
internalBinaryWrite(message, writer, options) {
|
|
1993
|
-
/* sid.v1.ids.ProfileId id =
|
|
1993
|
+
/* sid.v1.ids.ProfileId id = 1; */
|
|
1994
1994
|
if (message.id)
|
|
1995
|
-
ProfileId.internalBinaryWrite(message.id, writer.tag(
|
|
1995
|
+
ProfileId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1996
1996
|
let u = options.writeUnknownFields;
|
|
1997
1997
|
if (u !== false)
|
|
1998
1998
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2155,7 +2155,7 @@ export const ListProfilesResponse = new ListProfilesResponse$Type();
|
|
|
2155
2155
|
class AddCredentialRequest$Type extends MessageType {
|
|
2156
2156
|
constructor() {
|
|
2157
2157
|
super("sid.v1.identity.AddCredentialRequest", [
|
|
2158
|
-
{ no:
|
|
2158
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId },
|
|
2159
2159
|
{ no: 2, name: "type", kind: "enum", T: () => ["sid.v1.identity.CredentialType", CredentialType, "CREDENTIAL_TYPE_"] },
|
|
2160
2160
|
{ no: 3, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
2161
2161
|
{ no: 4, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
@@ -2174,7 +2174,7 @@ class AddCredentialRequest$Type extends MessageType {
|
|
|
2174
2174
|
while (reader.pos < end) {
|
|
2175
2175
|
let [fieldNo, wireType] = reader.tag();
|
|
2176
2176
|
switch (fieldNo) {
|
|
2177
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
2177
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
2178
2178
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2179
2179
|
break;
|
|
2180
2180
|
case /* sid.v1.identity.CredentialType type */ 2:
|
|
@@ -2198,6 +2198,9 @@ class AddCredentialRequest$Type extends MessageType {
|
|
|
2198
2198
|
return message;
|
|
2199
2199
|
}
|
|
2200
2200
|
internalBinaryWrite(message, writer, options) {
|
|
2201
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
2202
|
+
if (message.profileId)
|
|
2203
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2201
2204
|
/* sid.v1.identity.CredentialType type = 2; */
|
|
2202
2205
|
if (message.type !== 0)
|
|
2203
2206
|
writer.tag(2, WireType.Varint).int32(message.type);
|
|
@@ -2207,9 +2210,6 @@ class AddCredentialRequest$Type extends MessageType {
|
|
|
2207
2210
|
/* optional string label = 4; */
|
|
2208
2211
|
if (message.label !== undefined)
|
|
2209
2212
|
writer.tag(4, WireType.LengthDelimited).string(message.label);
|
|
2210
|
-
/* sid.v1.ids.ProfileId profile_id = 5; */
|
|
2211
|
-
if (message.profileId)
|
|
2212
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
2213
2213
|
let u = options.writeUnknownFields;
|
|
2214
2214
|
if (u !== false)
|
|
2215
2215
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2270,7 +2270,7 @@ export const AddCredentialResponse = new AddCredentialResponse$Type();
|
|
|
2270
2270
|
class ListCredentialsRequest$Type extends MessageType {
|
|
2271
2271
|
constructor() {
|
|
2272
2272
|
super("sid.v1.identity.ListCredentialsRequest", [
|
|
2273
|
-
{ no:
|
|
2273
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId }
|
|
2274
2274
|
]);
|
|
2275
2275
|
}
|
|
2276
2276
|
create(value) {
|
|
@@ -2284,7 +2284,7 @@ class ListCredentialsRequest$Type extends MessageType {
|
|
|
2284
2284
|
while (reader.pos < end) {
|
|
2285
2285
|
let [fieldNo, wireType] = reader.tag();
|
|
2286
2286
|
switch (fieldNo) {
|
|
2287
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
2287
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
2288
2288
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2289
2289
|
break;
|
|
2290
2290
|
default:
|
|
@@ -2299,9 +2299,9 @@ class ListCredentialsRequest$Type extends MessageType {
|
|
|
2299
2299
|
return message;
|
|
2300
2300
|
}
|
|
2301
2301
|
internalBinaryWrite(message, writer, options) {
|
|
2302
|
-
/* sid.v1.ids.ProfileId profile_id =
|
|
2302
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
2303
2303
|
if (message.profileId)
|
|
2304
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(
|
|
2304
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2305
2305
|
let u = options.writeUnknownFields;
|
|
2306
2306
|
if (u !== false)
|
|
2307
2307
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2363,7 +2363,7 @@ export const ListCredentialsResponse = new ListCredentialsResponse$Type();
|
|
|
2363
2363
|
class UpdateCredentialRequest$Type extends MessageType {
|
|
2364
2364
|
constructor() {
|
|
2365
2365
|
super("sid.v1.identity.UpdateCredentialRequest", [
|
|
2366
|
-
{ no:
|
|
2366
|
+
{ no: 1, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
2367
2367
|
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2368
2368
|
]);
|
|
2369
2369
|
}
|
|
@@ -2378,7 +2378,7 @@ class UpdateCredentialRequest$Type extends MessageType {
|
|
|
2378
2378
|
while (reader.pos < end) {
|
|
2379
2379
|
let [fieldNo, wireType] = reader.tag();
|
|
2380
2380
|
switch (fieldNo) {
|
|
2381
|
-
case /* sid.v1.ids.CredentialId credential_id */
|
|
2381
|
+
case /* sid.v1.ids.CredentialId credential_id */ 1:
|
|
2382
2382
|
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
2383
2383
|
break;
|
|
2384
2384
|
case /* optional string label */ 2:
|
|
@@ -2396,12 +2396,12 @@ class UpdateCredentialRequest$Type extends MessageType {
|
|
|
2396
2396
|
return message;
|
|
2397
2397
|
}
|
|
2398
2398
|
internalBinaryWrite(message, writer, options) {
|
|
2399
|
+
/* sid.v1.ids.CredentialId credential_id = 1; */
|
|
2400
|
+
if (message.credentialId)
|
|
2401
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2399
2402
|
/* optional string label = 2; */
|
|
2400
2403
|
if (message.label !== undefined)
|
|
2401
2404
|
writer.tag(2, WireType.LengthDelimited).string(message.label);
|
|
2402
|
-
/* sid.v1.ids.CredentialId credential_id = 3; */
|
|
2403
|
-
if (message.credentialId)
|
|
2404
|
-
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2405
2405
|
let u = options.writeUnknownFields;
|
|
2406
2406
|
if (u !== false)
|
|
2407
2407
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2462,7 +2462,7 @@ export const UpdateCredentialResponse = new UpdateCredentialResponse$Type();
|
|
|
2462
2462
|
class RevokeCredentialRequest$Type extends MessageType {
|
|
2463
2463
|
constructor() {
|
|
2464
2464
|
super("sid.v1.identity.RevokeCredentialRequest", [
|
|
2465
|
-
{ no:
|
|
2465
|
+
{ no: 1, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
2466
2466
|
]);
|
|
2467
2467
|
}
|
|
2468
2468
|
create(value) {
|
|
@@ -2476,7 +2476,7 @@ class RevokeCredentialRequest$Type extends MessageType {
|
|
|
2476
2476
|
while (reader.pos < end) {
|
|
2477
2477
|
let [fieldNo, wireType] = reader.tag();
|
|
2478
2478
|
switch (fieldNo) {
|
|
2479
|
-
case /* sid.v1.ids.CredentialId credential_id */
|
|
2479
|
+
case /* sid.v1.ids.CredentialId credential_id */ 1:
|
|
2480
2480
|
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
2481
2481
|
break;
|
|
2482
2482
|
default:
|
|
@@ -2491,9 +2491,9 @@ class RevokeCredentialRequest$Type extends MessageType {
|
|
|
2491
2491
|
return message;
|
|
2492
2492
|
}
|
|
2493
2493
|
internalBinaryWrite(message, writer, options) {
|
|
2494
|
-
/* sid.v1.ids.CredentialId credential_id =
|
|
2494
|
+
/* sid.v1.ids.CredentialId credential_id = 1; */
|
|
2495
2495
|
if (message.credentialId)
|
|
2496
|
-
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(
|
|
2496
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2497
2497
|
let u = options.writeUnknownFields;
|
|
2498
2498
|
if (u !== false)
|
|
2499
2499
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2546,7 +2546,7 @@ export const RevokeCredentialResponse = new RevokeCredentialResponse$Type();
|
|
|
2546
2546
|
class ListSessionsRequest$Type extends MessageType {
|
|
2547
2547
|
constructor() {
|
|
2548
2548
|
super("sid.v1.identity.ListSessionsRequest", [
|
|
2549
|
-
{ no:
|
|
2549
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId }
|
|
2550
2550
|
]);
|
|
2551
2551
|
}
|
|
2552
2552
|
create(value) {
|
|
@@ -2560,7 +2560,7 @@ class ListSessionsRequest$Type extends MessageType {
|
|
|
2560
2560
|
while (reader.pos < end) {
|
|
2561
2561
|
let [fieldNo, wireType] = reader.tag();
|
|
2562
2562
|
switch (fieldNo) {
|
|
2563
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
2563
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
2564
2564
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2565
2565
|
break;
|
|
2566
2566
|
default:
|
|
@@ -2575,9 +2575,9 @@ class ListSessionsRequest$Type extends MessageType {
|
|
|
2575
2575
|
return message;
|
|
2576
2576
|
}
|
|
2577
2577
|
internalBinaryWrite(message, writer, options) {
|
|
2578
|
-
/* sid.v1.ids.ProfileId profile_id =
|
|
2578
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
2579
2579
|
if (message.profileId)
|
|
2580
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(
|
|
2580
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2581
2581
|
let u = options.writeUnknownFields;
|
|
2582
2582
|
if (u !== false)
|
|
2583
2583
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2639,7 +2639,7 @@ export const ListSessionsResponse = new ListSessionsResponse$Type();
|
|
|
2639
2639
|
class RevokeSessionRequest$Type extends MessageType {
|
|
2640
2640
|
constructor() {
|
|
2641
2641
|
super("sid.v1.identity.RevokeSessionRequest", [
|
|
2642
|
-
{ no:
|
|
2642
|
+
{ no: 1, name: "session_id", kind: "message", T: () => SessionId }
|
|
2643
2643
|
]);
|
|
2644
2644
|
}
|
|
2645
2645
|
create(value) {
|
|
@@ -2653,7 +2653,7 @@ class RevokeSessionRequest$Type extends MessageType {
|
|
|
2653
2653
|
while (reader.pos < end) {
|
|
2654
2654
|
let [fieldNo, wireType] = reader.tag();
|
|
2655
2655
|
switch (fieldNo) {
|
|
2656
|
-
case /* sid.v1.ids.SessionId session_id */
|
|
2656
|
+
case /* sid.v1.ids.SessionId session_id */ 1:
|
|
2657
2657
|
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
2658
2658
|
break;
|
|
2659
2659
|
default:
|
|
@@ -2668,9 +2668,9 @@ class RevokeSessionRequest$Type extends MessageType {
|
|
|
2668
2668
|
return message;
|
|
2669
2669
|
}
|
|
2670
2670
|
internalBinaryWrite(message, writer, options) {
|
|
2671
|
-
/* sid.v1.ids.SessionId session_id =
|
|
2671
|
+
/* sid.v1.ids.SessionId session_id = 1; */
|
|
2672
2672
|
if (message.sessionId)
|
|
2673
|
-
SessionId.internalBinaryWrite(message.sessionId, writer.tag(
|
|
2673
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2674
2674
|
let u = options.writeUnknownFields;
|
|
2675
2675
|
if (u !== false)
|
|
2676
2676
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2723,7 +2723,7 @@ export const RevokeSessionResponse = new RevokeSessionResponse$Type();
|
|
|
2723
2723
|
class AddPrincipalRequest$Type extends MessageType {
|
|
2724
2724
|
constructor() {
|
|
2725
2725
|
super("sid.v1.identity.AddPrincipalRequest", [
|
|
2726
|
-
{ no:
|
|
2726
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId },
|
|
2727
2727
|
{ no: 2, name: "type", kind: "enum", T: () => ["sid.v1.identity.PrincipalType", PrincipalType, "PRINCIPAL_TYPE_"] },
|
|
2728
2728
|
{ no: 3, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2729
2729
|
]);
|
|
@@ -2741,7 +2741,7 @@ class AddPrincipalRequest$Type extends MessageType {
|
|
|
2741
2741
|
while (reader.pos < end) {
|
|
2742
2742
|
let [fieldNo, wireType] = reader.tag();
|
|
2743
2743
|
switch (fieldNo) {
|
|
2744
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
2744
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
2745
2745
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2746
2746
|
break;
|
|
2747
2747
|
case /* sid.v1.identity.PrincipalType type */ 2:
|
|
@@ -2762,15 +2762,15 @@ class AddPrincipalRequest$Type extends MessageType {
|
|
|
2762
2762
|
return message;
|
|
2763
2763
|
}
|
|
2764
2764
|
internalBinaryWrite(message, writer, options) {
|
|
2765
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
2766
|
+
if (message.profileId)
|
|
2767
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2765
2768
|
/* sid.v1.identity.PrincipalType type = 2; */
|
|
2766
2769
|
if (message.type !== 0)
|
|
2767
2770
|
writer.tag(2, WireType.Varint).int32(message.type);
|
|
2768
2771
|
/* string value = 3; */
|
|
2769
2772
|
if (message.value !== "")
|
|
2770
2773
|
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
|
2771
|
-
/* sid.v1.ids.ProfileId profile_id = 4; */
|
|
2772
|
-
if (message.profileId)
|
|
2773
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2774
2774
|
let u = options.writeUnknownFields;
|
|
2775
2775
|
if (u !== false)
|
|
2776
2776
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2831,7 +2831,7 @@ export const AddPrincipalResponse = new AddPrincipalResponse$Type();
|
|
|
2831
2831
|
class ListPrincipalsRequest$Type extends MessageType {
|
|
2832
2832
|
constructor() {
|
|
2833
2833
|
super("sid.v1.identity.ListPrincipalsRequest", [
|
|
2834
|
-
{ no:
|
|
2834
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId }
|
|
2835
2835
|
]);
|
|
2836
2836
|
}
|
|
2837
2837
|
create(value) {
|
|
@@ -2845,7 +2845,7 @@ class ListPrincipalsRequest$Type extends MessageType {
|
|
|
2845
2845
|
while (reader.pos < end) {
|
|
2846
2846
|
let [fieldNo, wireType] = reader.tag();
|
|
2847
2847
|
switch (fieldNo) {
|
|
2848
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
2848
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
2849
2849
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
2850
2850
|
break;
|
|
2851
2851
|
default:
|
|
@@ -2860,9 +2860,9 @@ class ListPrincipalsRequest$Type extends MessageType {
|
|
|
2860
2860
|
return message;
|
|
2861
2861
|
}
|
|
2862
2862
|
internalBinaryWrite(message, writer, options) {
|
|
2863
|
-
/* sid.v1.ids.ProfileId profile_id =
|
|
2863
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
2864
2864
|
if (message.profileId)
|
|
2865
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(
|
|
2865
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2866
2866
|
let u = options.writeUnknownFields;
|
|
2867
2867
|
if (u !== false)
|
|
2868
2868
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2924,7 +2924,7 @@ export const ListPrincipalsResponse = new ListPrincipalsResponse$Type();
|
|
|
2924
2924
|
class RemovePrincipalRequest$Type extends MessageType {
|
|
2925
2925
|
constructor() {
|
|
2926
2926
|
super("sid.v1.identity.RemovePrincipalRequest", [
|
|
2927
|
-
{ no:
|
|
2927
|
+
{ no: 1, name: "principal_id", kind: "message", T: () => PrincipalId }
|
|
2928
2928
|
]);
|
|
2929
2929
|
}
|
|
2930
2930
|
create(value) {
|
|
@@ -2938,7 +2938,7 @@ class RemovePrincipalRequest$Type extends MessageType {
|
|
|
2938
2938
|
while (reader.pos < end) {
|
|
2939
2939
|
let [fieldNo, wireType] = reader.tag();
|
|
2940
2940
|
switch (fieldNo) {
|
|
2941
|
-
case /* sid.v1.ids.PrincipalId principal_id */
|
|
2941
|
+
case /* sid.v1.ids.PrincipalId principal_id */ 1:
|
|
2942
2942
|
message.principalId = PrincipalId.internalBinaryRead(reader, reader.uint32(), options, message.principalId);
|
|
2943
2943
|
break;
|
|
2944
2944
|
default:
|
|
@@ -2953,9 +2953,9 @@ class RemovePrincipalRequest$Type extends MessageType {
|
|
|
2953
2953
|
return message;
|
|
2954
2954
|
}
|
|
2955
2955
|
internalBinaryWrite(message, writer, options) {
|
|
2956
|
-
/* sid.v1.ids.PrincipalId principal_id =
|
|
2956
|
+
/* sid.v1.ids.PrincipalId principal_id = 1; */
|
|
2957
2957
|
if (message.principalId)
|
|
2958
|
-
PrincipalId.internalBinaryWrite(message.principalId, writer.tag(
|
|
2958
|
+
PrincipalId.internalBinaryWrite(message.principalId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2959
2959
|
let u = options.writeUnknownFields;
|
|
2960
2960
|
if (u !== false)
|
|
2961
2961
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3255,7 +3255,7 @@ export const RecordPasskeyPromptDismissalResponse = new RecordPasskeyPromptDismi
|
|
|
3255
3255
|
class RevokeProfileRequest$Type extends MessageType {
|
|
3256
3256
|
constructor() {
|
|
3257
3257
|
super("sid.v1.identity.RevokeProfileRequest", [
|
|
3258
|
-
{ no:
|
|
3258
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId },
|
|
3259
3259
|
{ no: 2, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3260
3260
|
]);
|
|
3261
3261
|
}
|
|
@@ -3271,7 +3271,7 @@ class RevokeProfileRequest$Type extends MessageType {
|
|
|
3271
3271
|
while (reader.pos < end) {
|
|
3272
3272
|
let [fieldNo, wireType] = reader.tag();
|
|
3273
3273
|
switch (fieldNo) {
|
|
3274
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
3274
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
3275
3275
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
3276
3276
|
break;
|
|
3277
3277
|
case /* string reason */ 2:
|
|
@@ -3289,12 +3289,12 @@ class RevokeProfileRequest$Type extends MessageType {
|
|
|
3289
3289
|
return message;
|
|
3290
3290
|
}
|
|
3291
3291
|
internalBinaryWrite(message, writer, options) {
|
|
3292
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
3293
|
+
if (message.profileId)
|
|
3294
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3292
3295
|
/* string reason = 2; */
|
|
3293
3296
|
if (message.reason !== "")
|
|
3294
3297
|
writer.tag(2, WireType.LengthDelimited).string(message.reason);
|
|
3295
|
-
/* sid.v1.ids.ProfileId profile_id = 3; */
|
|
3296
|
-
if (message.profileId)
|
|
3297
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3298
3298
|
let u = options.writeUnknownFields;
|
|
3299
3299
|
if (u !== false)
|
|
3300
3300
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3418,8 +3418,8 @@ export const RequestClosureRequest = new RequestClosureRequest$Type();
|
|
|
3418
3418
|
class RequestClosureResponse$Type extends MessageType {
|
|
3419
3419
|
constructor() {
|
|
3420
3420
|
super("sid.v1.identity.RequestClosureResponse", [
|
|
3421
|
-
{ no:
|
|
3422
|
-
{ no:
|
|
3421
|
+
{ no: 1, name: "mode", kind: "enum", T: () => ["sid.v1.identity.ClosureMode", ClosureMode, "CLOSURE_MODE_"] },
|
|
3422
|
+
{ no: 2, name: "grace_period_end", kind: "message", T: () => Timestamp }
|
|
3423
3423
|
]);
|
|
3424
3424
|
}
|
|
3425
3425
|
create(value) {
|
|
@@ -3434,10 +3434,10 @@ class RequestClosureResponse$Type extends MessageType {
|
|
|
3434
3434
|
while (reader.pos < end) {
|
|
3435
3435
|
let [fieldNo, wireType] = reader.tag();
|
|
3436
3436
|
switch (fieldNo) {
|
|
3437
|
-
case /* sid.v1.identity.ClosureMode mode */
|
|
3437
|
+
case /* sid.v1.identity.ClosureMode mode */ 1:
|
|
3438
3438
|
message.mode = reader.int32();
|
|
3439
3439
|
break;
|
|
3440
|
-
case /* google.protobuf.Timestamp grace_period_end */
|
|
3440
|
+
case /* google.protobuf.Timestamp grace_period_end */ 2:
|
|
3441
3441
|
message.gracePeriodEnd = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.gracePeriodEnd);
|
|
3442
3442
|
break;
|
|
3443
3443
|
default:
|
|
@@ -3452,12 +3452,12 @@ class RequestClosureResponse$Type extends MessageType {
|
|
|
3452
3452
|
return message;
|
|
3453
3453
|
}
|
|
3454
3454
|
internalBinaryWrite(message, writer, options) {
|
|
3455
|
-
/* sid.v1.identity.ClosureMode mode =
|
|
3455
|
+
/* sid.v1.identity.ClosureMode mode = 1; */
|
|
3456
3456
|
if (message.mode !== 0)
|
|
3457
|
-
writer.tag(
|
|
3458
|
-
/* google.protobuf.Timestamp grace_period_end =
|
|
3457
|
+
writer.tag(1, WireType.Varint).int32(message.mode);
|
|
3458
|
+
/* google.protobuf.Timestamp grace_period_end = 2; */
|
|
3459
3459
|
if (message.gracePeriodEnd)
|
|
3460
|
-
Timestamp.internalBinaryWrite(message.gracePeriodEnd, writer.tag(
|
|
3460
|
+
Timestamp.internalBinaryWrite(message.gracePeriodEnd, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3461
3461
|
let u = options.writeUnknownFields;
|
|
3462
3462
|
if (u !== false)
|
|
3463
3463
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3718,7 +3718,7 @@ export const PrepareExportRequest = new PrepareExportRequest$Type();
|
|
|
3718
3718
|
class PrepareExportResponse$Type extends MessageType {
|
|
3719
3719
|
constructor() {
|
|
3720
3720
|
super("sid.v1.identity.PrepareExportResponse", [
|
|
3721
|
-
{ no:
|
|
3721
|
+
{ no: 1, name: "estimated_ready", kind: "message", T: () => Timestamp }
|
|
3722
3722
|
]);
|
|
3723
3723
|
}
|
|
3724
3724
|
create(value) {
|
|
@@ -3732,7 +3732,7 @@ class PrepareExportResponse$Type extends MessageType {
|
|
|
3732
3732
|
while (reader.pos < end) {
|
|
3733
3733
|
let [fieldNo, wireType] = reader.tag();
|
|
3734
3734
|
switch (fieldNo) {
|
|
3735
|
-
case /* google.protobuf.Timestamp estimated_ready */
|
|
3735
|
+
case /* google.protobuf.Timestamp estimated_ready */ 1:
|
|
3736
3736
|
message.estimatedReady = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.estimatedReady);
|
|
3737
3737
|
break;
|
|
3738
3738
|
default:
|
|
@@ -3747,9 +3747,9 @@ class PrepareExportResponse$Type extends MessageType {
|
|
|
3747
3747
|
return message;
|
|
3748
3748
|
}
|
|
3749
3749
|
internalBinaryWrite(message, writer, options) {
|
|
3750
|
-
/* google.protobuf.Timestamp estimated_ready =
|
|
3750
|
+
/* google.protobuf.Timestamp estimated_ready = 1; */
|
|
3751
3751
|
if (message.estimatedReady)
|
|
3752
|
-
Timestamp.internalBinaryWrite(message.estimatedReady, writer.tag(
|
|
3752
|
+
Timestamp.internalBinaryWrite(message.estimatedReady, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3753
3753
|
let u = options.writeUnknownFields;
|
|
3754
3754
|
if (u !== false)
|
|
3755
3755
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3804,7 +3804,7 @@ class GetExportStatusResponse$Type extends MessageType {
|
|
|
3804
3804
|
super("sid.v1.identity.GetExportStatusResponse", [
|
|
3805
3805
|
{ no: 1, name: "export_status", kind: "enum", T: () => ["sid.v1.identity.ExportStatus", ExportStatus, "EXPORT_STATUS_"] },
|
|
3806
3806
|
{ no: 2, name: "size_bytes", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3807
|
-
{ no:
|
|
3807
|
+
{ no: 3, name: "checksum_sha256", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
3808
3808
|
{ no: 4, name: "ready_at", kind: "message", T: () => Timestamp },
|
|
3809
3809
|
{ no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
|
|
3810
3810
|
]);
|
|
@@ -3827,7 +3827,7 @@ class GetExportStatusResponse$Type extends MessageType {
|
|
|
3827
3827
|
case /* optional int64 size_bytes */ 2:
|
|
3828
3828
|
message.sizeBytes = reader.int64().toBigInt();
|
|
3829
3829
|
break;
|
|
3830
|
-
case /* optional bytes checksum_sha256 */
|
|
3830
|
+
case /* optional bytes checksum_sha256 */ 3:
|
|
3831
3831
|
message.checksumSha256 = reader.bytes();
|
|
3832
3832
|
break;
|
|
3833
3833
|
case /* optional google.protobuf.Timestamp ready_at */ 4:
|
|
@@ -3854,15 +3854,15 @@ class GetExportStatusResponse$Type extends MessageType {
|
|
|
3854
3854
|
/* optional int64 size_bytes = 2; */
|
|
3855
3855
|
if (message.sizeBytes !== undefined)
|
|
3856
3856
|
writer.tag(2, WireType.Varint).int64(message.sizeBytes);
|
|
3857
|
+
/* optional bytes checksum_sha256 = 3; */
|
|
3858
|
+
if (message.checksumSha256 !== undefined)
|
|
3859
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.checksumSha256);
|
|
3857
3860
|
/* optional google.protobuf.Timestamp ready_at = 4; */
|
|
3858
3861
|
if (message.readyAt)
|
|
3859
3862
|
Timestamp.internalBinaryWrite(message.readyAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3860
3863
|
/* optional google.protobuf.Timestamp expires_at = 5; */
|
|
3861
3864
|
if (message.expiresAt)
|
|
3862
3865
|
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3863
|
-
/* optional bytes checksum_sha256 = 6; */
|
|
3864
|
-
if (message.checksumSha256 !== undefined)
|
|
3865
|
-
writer.tag(6, WireType.LengthDelimited).bytes(message.checksumSha256);
|
|
3866
3866
|
let u = options.writeUnknownFields;
|
|
3867
3867
|
if (u !== false)
|
|
3868
3868
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4016,16 +4016,16 @@ export const AcknowledgeExportRequest = new AcknowledgeExportRequest$Type();
|
|
|
4016
4016
|
class Device$Type extends MessageType {
|
|
4017
4017
|
constructor() {
|
|
4018
4018
|
super("sid.v1.identity.Device", [
|
|
4019
|
-
{ no:
|
|
4020
|
-
{ no:
|
|
4021
|
-
{ no:
|
|
4022
|
-
{ no:
|
|
4023
|
-
{ no:
|
|
4024
|
-
{ no:
|
|
4025
|
-
{ no:
|
|
4026
|
-
{ no:
|
|
4027
|
-
{ no:
|
|
4028
|
-
{ no:
|
|
4019
|
+
{ no: 1, name: "id", kind: "message", T: () => DeviceId },
|
|
4020
|
+
{ no: 2, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4021
|
+
{ no: 3, name: "device_type", kind: "enum", T: () => ["sid.v1.identity.DeviceType", DeviceType, "DEVICE_TYPE_"] },
|
|
4022
|
+
{ no: 4, name: "os_info", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4023
|
+
{ no: 5, name: "assurance", kind: "enum", T: () => ["sid.v1.identity.DeviceAssurance", DeviceAssurance, "DEVICE_ASSURANCE_"] },
|
|
4024
|
+
{ no: 6, name: "trusted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4025
|
+
{ no: 7, name: "hardware_attested", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4026
|
+
{ no: 8, name: "last_ip_geo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4027
|
+
{ no: 9, name: "first_seen_at", kind: "message", T: () => Timestamp },
|
|
4028
|
+
{ no: 10, name: "last_seen_at", kind: "message", T: () => Timestamp }
|
|
4029
4029
|
]);
|
|
4030
4030
|
}
|
|
4031
4031
|
create(value) {
|
|
@@ -4043,34 +4043,34 @@ class Device$Type extends MessageType {
|
|
|
4043
4043
|
while (reader.pos < end) {
|
|
4044
4044
|
let [fieldNo, wireType] = reader.tag();
|
|
4045
4045
|
switch (fieldNo) {
|
|
4046
|
-
case /* sid.v1.ids.DeviceId id */
|
|
4046
|
+
case /* sid.v1.ids.DeviceId id */ 1:
|
|
4047
4047
|
message.id = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
4048
4048
|
break;
|
|
4049
|
-
case /* optional string display_name */
|
|
4049
|
+
case /* optional string display_name */ 2:
|
|
4050
4050
|
message.displayName = reader.string();
|
|
4051
4051
|
break;
|
|
4052
|
-
case /* sid.v1.identity.DeviceType device_type */
|
|
4052
|
+
case /* sid.v1.identity.DeviceType device_type */ 3:
|
|
4053
4053
|
message.deviceType = reader.int32();
|
|
4054
4054
|
break;
|
|
4055
|
-
case /* optional string os_info */
|
|
4055
|
+
case /* optional string os_info */ 4:
|
|
4056
4056
|
message.osInfo = reader.string();
|
|
4057
4057
|
break;
|
|
4058
|
-
case /* sid.v1.identity.DeviceAssurance assurance */
|
|
4058
|
+
case /* sid.v1.identity.DeviceAssurance assurance */ 5:
|
|
4059
4059
|
message.assurance = reader.int32();
|
|
4060
4060
|
break;
|
|
4061
|
-
case /* bool trusted */
|
|
4061
|
+
case /* bool trusted */ 6:
|
|
4062
4062
|
message.trusted = reader.bool();
|
|
4063
4063
|
break;
|
|
4064
|
-
case /* bool hardware_attested */
|
|
4064
|
+
case /* bool hardware_attested */ 7:
|
|
4065
4065
|
message.hardwareAttested = reader.bool();
|
|
4066
4066
|
break;
|
|
4067
|
-
case /* optional string last_ip_geo */
|
|
4067
|
+
case /* optional string last_ip_geo */ 8:
|
|
4068
4068
|
message.lastIpGeo = reader.string();
|
|
4069
4069
|
break;
|
|
4070
|
-
case /* google.protobuf.Timestamp first_seen_at */
|
|
4070
|
+
case /* google.protobuf.Timestamp first_seen_at */ 9:
|
|
4071
4071
|
message.firstSeenAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.firstSeenAt);
|
|
4072
4072
|
break;
|
|
4073
|
-
case /* google.protobuf.Timestamp last_seen_at */
|
|
4073
|
+
case /* google.protobuf.Timestamp last_seen_at */ 10:
|
|
4074
4074
|
message.lastSeenAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSeenAt);
|
|
4075
4075
|
break;
|
|
4076
4076
|
default:
|
|
@@ -4085,36 +4085,36 @@ class Device$Type extends MessageType {
|
|
|
4085
4085
|
return message;
|
|
4086
4086
|
}
|
|
4087
4087
|
internalBinaryWrite(message, writer, options) {
|
|
4088
|
-
/*
|
|
4088
|
+
/* sid.v1.ids.DeviceId id = 1; */
|
|
4089
|
+
if (message.id)
|
|
4090
|
+
DeviceId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4091
|
+
/* optional string display_name = 2; */
|
|
4089
4092
|
if (message.displayName !== undefined)
|
|
4090
|
-
writer.tag(
|
|
4091
|
-
/* sid.v1.identity.DeviceType device_type =
|
|
4093
|
+
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
4094
|
+
/* sid.v1.identity.DeviceType device_type = 3; */
|
|
4092
4095
|
if (message.deviceType !== 0)
|
|
4093
|
-
writer.tag(
|
|
4094
|
-
/* optional string os_info =
|
|
4096
|
+
writer.tag(3, WireType.Varint).int32(message.deviceType);
|
|
4097
|
+
/* optional string os_info = 4; */
|
|
4095
4098
|
if (message.osInfo !== undefined)
|
|
4096
|
-
writer.tag(
|
|
4097
|
-
/* sid.v1.identity.DeviceAssurance assurance =
|
|
4099
|
+
writer.tag(4, WireType.LengthDelimited).string(message.osInfo);
|
|
4100
|
+
/* sid.v1.identity.DeviceAssurance assurance = 5; */
|
|
4098
4101
|
if (message.assurance !== 0)
|
|
4099
|
-
writer.tag(
|
|
4100
|
-
/* bool trusted =
|
|
4102
|
+
writer.tag(5, WireType.Varint).int32(message.assurance);
|
|
4103
|
+
/* bool trusted = 6; */
|
|
4101
4104
|
if (message.trusted !== false)
|
|
4102
|
-
writer.tag(
|
|
4103
|
-
/* bool hardware_attested =
|
|
4105
|
+
writer.tag(6, WireType.Varint).bool(message.trusted);
|
|
4106
|
+
/* bool hardware_attested = 7; */
|
|
4104
4107
|
if (message.hardwareAttested !== false)
|
|
4105
|
-
writer.tag(
|
|
4106
|
-
/* optional string last_ip_geo =
|
|
4108
|
+
writer.tag(7, WireType.Varint).bool(message.hardwareAttested);
|
|
4109
|
+
/* optional string last_ip_geo = 8; */
|
|
4107
4110
|
if (message.lastIpGeo !== undefined)
|
|
4108
|
-
writer.tag(
|
|
4109
|
-
/* google.protobuf.Timestamp first_seen_at =
|
|
4111
|
+
writer.tag(8, WireType.LengthDelimited).string(message.lastIpGeo);
|
|
4112
|
+
/* google.protobuf.Timestamp first_seen_at = 9; */
|
|
4110
4113
|
if (message.firstSeenAt)
|
|
4111
|
-
Timestamp.internalBinaryWrite(message.firstSeenAt, writer.tag(
|
|
4112
|
-
/* google.protobuf.Timestamp last_seen_at =
|
|
4114
|
+
Timestamp.internalBinaryWrite(message.firstSeenAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
4115
|
+
/* google.protobuf.Timestamp last_seen_at = 10; */
|
|
4113
4116
|
if (message.lastSeenAt)
|
|
4114
|
-
Timestamp.internalBinaryWrite(message.lastSeenAt, writer.tag(
|
|
4115
|
-
/* sid.v1.ids.DeviceId id = 12; */
|
|
4116
|
-
if (message.id)
|
|
4117
|
-
DeviceId.internalBinaryWrite(message.id, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
4117
|
+
Timestamp.internalBinaryWrite(message.lastSeenAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
4118
4118
|
let u = options.writeUnknownFields;
|
|
4119
4119
|
if (u !== false)
|
|
4120
4120
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4129,7 +4129,7 @@ export const Device = new Device$Type();
|
|
|
4129
4129
|
class ListDevicesRequest$Type extends MessageType {
|
|
4130
4130
|
constructor() {
|
|
4131
4131
|
super("sid.v1.identity.ListDevicesRequest", [
|
|
4132
|
-
{ no:
|
|
4132
|
+
{ no: 1, name: "profile_id", kind: "message", T: () => ProfileId }
|
|
4133
4133
|
]);
|
|
4134
4134
|
}
|
|
4135
4135
|
create(value) {
|
|
@@ -4143,7 +4143,7 @@ class ListDevicesRequest$Type extends MessageType {
|
|
|
4143
4143
|
while (reader.pos < end) {
|
|
4144
4144
|
let [fieldNo, wireType] = reader.tag();
|
|
4145
4145
|
switch (fieldNo) {
|
|
4146
|
-
case /* sid.v1.ids.ProfileId profile_id */
|
|
4146
|
+
case /* sid.v1.ids.ProfileId profile_id */ 1:
|
|
4147
4147
|
message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
|
|
4148
4148
|
break;
|
|
4149
4149
|
default:
|
|
@@ -4158,9 +4158,9 @@ class ListDevicesRequest$Type extends MessageType {
|
|
|
4158
4158
|
return message;
|
|
4159
4159
|
}
|
|
4160
4160
|
internalBinaryWrite(message, writer, options) {
|
|
4161
|
-
/* sid.v1.ids.ProfileId profile_id =
|
|
4161
|
+
/* sid.v1.ids.ProfileId profile_id = 1; */
|
|
4162
4162
|
if (message.profileId)
|
|
4163
|
-
ProfileId.internalBinaryWrite(message.profileId, writer.tag(
|
|
4163
|
+
ProfileId.internalBinaryWrite(message.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4164
4164
|
let u = options.writeUnknownFields;
|
|
4165
4165
|
if (u !== false)
|
|
4166
4166
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4222,7 +4222,7 @@ export const ListDevicesResponse = new ListDevicesResponse$Type();
|
|
|
4222
4222
|
class GetDeviceRequest$Type extends MessageType {
|
|
4223
4223
|
constructor() {
|
|
4224
4224
|
super("sid.v1.identity.GetDeviceRequest", [
|
|
4225
|
-
{ no:
|
|
4225
|
+
{ no: 1, name: "device_id", kind: "message", T: () => DeviceId }
|
|
4226
4226
|
]);
|
|
4227
4227
|
}
|
|
4228
4228
|
create(value) {
|
|
@@ -4236,7 +4236,7 @@ class GetDeviceRequest$Type extends MessageType {
|
|
|
4236
4236
|
while (reader.pos < end) {
|
|
4237
4237
|
let [fieldNo, wireType] = reader.tag();
|
|
4238
4238
|
switch (fieldNo) {
|
|
4239
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
4239
|
+
case /* sid.v1.ids.DeviceId device_id */ 1:
|
|
4240
4240
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
4241
4241
|
break;
|
|
4242
4242
|
default:
|
|
@@ -4251,9 +4251,9 @@ class GetDeviceRequest$Type extends MessageType {
|
|
|
4251
4251
|
return message;
|
|
4252
4252
|
}
|
|
4253
4253
|
internalBinaryWrite(message, writer, options) {
|
|
4254
|
-
/* sid.v1.ids.DeviceId device_id =
|
|
4254
|
+
/* sid.v1.ids.DeviceId device_id = 1; */
|
|
4255
4255
|
if (message.deviceId)
|
|
4256
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(
|
|
4256
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4257
4257
|
let u = options.writeUnknownFields;
|
|
4258
4258
|
if (u !== false)
|
|
4259
4259
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4268,7 +4268,7 @@ export const GetDeviceRequest = new GetDeviceRequest$Type();
|
|
|
4268
4268
|
class UpdateDeviceRequest$Type extends MessageType {
|
|
4269
4269
|
constructor() {
|
|
4270
4270
|
super("sid.v1.identity.UpdateDeviceRequest", [
|
|
4271
|
-
{ no:
|
|
4271
|
+
{ no: 1, name: "device_id", kind: "message", T: () => DeviceId },
|
|
4272
4272
|
{ no: 2, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
4273
4273
|
]);
|
|
4274
4274
|
}
|
|
@@ -4283,7 +4283,7 @@ class UpdateDeviceRequest$Type extends MessageType {
|
|
|
4283
4283
|
while (reader.pos < end) {
|
|
4284
4284
|
let [fieldNo, wireType] = reader.tag();
|
|
4285
4285
|
switch (fieldNo) {
|
|
4286
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
4286
|
+
case /* sid.v1.ids.DeviceId device_id */ 1:
|
|
4287
4287
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
4288
4288
|
break;
|
|
4289
4289
|
case /* optional string display_name */ 2:
|
|
@@ -4301,12 +4301,12 @@ class UpdateDeviceRequest$Type extends MessageType {
|
|
|
4301
4301
|
return message;
|
|
4302
4302
|
}
|
|
4303
4303
|
internalBinaryWrite(message, writer, options) {
|
|
4304
|
+
/* sid.v1.ids.DeviceId device_id = 1; */
|
|
4305
|
+
if (message.deviceId)
|
|
4306
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4304
4307
|
/* optional string display_name = 2; */
|
|
4305
4308
|
if (message.displayName !== undefined)
|
|
4306
4309
|
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
4307
|
-
/* sid.v1.ids.DeviceId device_id = 3; */
|
|
4308
|
-
if (message.deviceId)
|
|
4309
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4310
4310
|
let u = options.writeUnknownFields;
|
|
4311
4311
|
if (u !== false)
|
|
4312
4312
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4321,7 +4321,7 @@ export const UpdateDeviceRequest = new UpdateDeviceRequest$Type();
|
|
|
4321
4321
|
class RemoveDeviceRequest$Type extends MessageType {
|
|
4322
4322
|
constructor() {
|
|
4323
4323
|
super("sid.v1.identity.RemoveDeviceRequest", [
|
|
4324
|
-
{ no:
|
|
4324
|
+
{ no: 1, name: "device_id", kind: "message", T: () => DeviceId }
|
|
4325
4325
|
]);
|
|
4326
4326
|
}
|
|
4327
4327
|
create(value) {
|
|
@@ -4335,7 +4335,7 @@ class RemoveDeviceRequest$Type extends MessageType {
|
|
|
4335
4335
|
while (reader.pos < end) {
|
|
4336
4336
|
let [fieldNo, wireType] = reader.tag();
|
|
4337
4337
|
switch (fieldNo) {
|
|
4338
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
4338
|
+
case /* sid.v1.ids.DeviceId device_id */ 1:
|
|
4339
4339
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
4340
4340
|
break;
|
|
4341
4341
|
default:
|
|
@@ -4350,9 +4350,9 @@ class RemoveDeviceRequest$Type extends MessageType {
|
|
|
4350
4350
|
return message;
|
|
4351
4351
|
}
|
|
4352
4352
|
internalBinaryWrite(message, writer, options) {
|
|
4353
|
-
/* sid.v1.ids.DeviceId device_id =
|
|
4353
|
+
/* sid.v1.ids.DeviceId device_id = 1; */
|
|
4354
4354
|
if (message.deviceId)
|
|
4355
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(
|
|
4355
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4356
4356
|
let u = options.writeUnknownFields;
|
|
4357
4357
|
if (u !== false)
|
|
4358
4358
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4367,7 +4367,7 @@ export const RemoveDeviceRequest = new RemoveDeviceRequest$Type();
|
|
|
4367
4367
|
class TrustDeviceRequest$Type extends MessageType {
|
|
4368
4368
|
constructor() {
|
|
4369
4369
|
super("sid.v1.identity.TrustDeviceRequest", [
|
|
4370
|
-
{ no:
|
|
4370
|
+
{ no: 1, name: "device_id", kind: "message", T: () => DeviceId }
|
|
4371
4371
|
]);
|
|
4372
4372
|
}
|
|
4373
4373
|
create(value) {
|
|
@@ -4381,7 +4381,7 @@ class TrustDeviceRequest$Type extends MessageType {
|
|
|
4381
4381
|
while (reader.pos < end) {
|
|
4382
4382
|
let [fieldNo, wireType] = reader.tag();
|
|
4383
4383
|
switch (fieldNo) {
|
|
4384
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
4384
|
+
case /* sid.v1.ids.DeviceId device_id */ 1:
|
|
4385
4385
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
4386
4386
|
break;
|
|
4387
4387
|
default:
|
|
@@ -4396,9 +4396,9 @@ class TrustDeviceRequest$Type extends MessageType {
|
|
|
4396
4396
|
return message;
|
|
4397
4397
|
}
|
|
4398
4398
|
internalBinaryWrite(message, writer, options) {
|
|
4399
|
-
/* sid.v1.ids.DeviceId device_id =
|
|
4399
|
+
/* sid.v1.ids.DeviceId device_id = 1; */
|
|
4400
4400
|
if (message.deviceId)
|
|
4401
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(
|
|
4401
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4402
4402
|
let u = options.writeUnknownFields;
|
|
4403
4403
|
if (u !== false)
|
|
4404
4404
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4413,7 +4413,7 @@ export const TrustDeviceRequest = new TrustDeviceRequest$Type();
|
|
|
4413
4413
|
class RevokeDeviceTrustRequest$Type extends MessageType {
|
|
4414
4414
|
constructor() {
|
|
4415
4415
|
super("sid.v1.identity.RevokeDeviceTrustRequest", [
|
|
4416
|
-
{ no:
|
|
4416
|
+
{ no: 1, name: "device_id", kind: "message", T: () => DeviceId }
|
|
4417
4417
|
]);
|
|
4418
4418
|
}
|
|
4419
4419
|
create(value) {
|
|
@@ -4427,7 +4427,7 @@ class RevokeDeviceTrustRequest$Type extends MessageType {
|
|
|
4427
4427
|
while (reader.pos < end) {
|
|
4428
4428
|
let [fieldNo, wireType] = reader.tag();
|
|
4429
4429
|
switch (fieldNo) {
|
|
4430
|
-
case /* sid.v1.ids.DeviceId device_id */
|
|
4430
|
+
case /* sid.v1.ids.DeviceId device_id */ 1:
|
|
4431
4431
|
message.deviceId = DeviceId.internalBinaryRead(reader, reader.uint32(), options, message.deviceId);
|
|
4432
4432
|
break;
|
|
4433
4433
|
default:
|
|
@@ -4442,9 +4442,9 @@ class RevokeDeviceTrustRequest$Type extends MessageType {
|
|
|
4442
4442
|
return message;
|
|
4443
4443
|
}
|
|
4444
4444
|
internalBinaryWrite(message, writer, options) {
|
|
4445
|
-
/* sid.v1.ids.DeviceId device_id =
|
|
4445
|
+
/* sid.v1.ids.DeviceId device_id = 1; */
|
|
4446
4446
|
if (message.deviceId)
|
|
4447
|
-
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(
|
|
4447
|
+
DeviceId.internalBinaryWrite(message.deviceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4448
4448
|
let u = options.writeUnknownFields;
|
|
4449
4449
|
if (u !== false)
|
|
4450
4450
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|