@structured-id/proto 0.10.0 → 0.11.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 +7 -0
- package/dist/generated/sid/v1/authn/auth.d.ts +106 -105
- package/dist/generated/sid/v1/authn/auth.js +166 -227
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +5 -4
- package/dist/generated/sid/v1/authn/native_session.js +7 -7
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +14 -0
- package/dist/generated/sid/v1/ids/ids.js +7 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,10 +11,17 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { ResetSessionId } from "../ids/ids.js";
|
|
15
|
+
import { StepUpChallengeId } from "../ids/ids.js";
|
|
16
|
+
import { OtpSessionId } from "../ids/ids.js";
|
|
17
|
+
import { ImportedPasswordUpgradeId } from "../ids/ids.js";
|
|
18
|
+
import { MagicLinkId } from "../ids/ids.js";
|
|
14
19
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
20
|
+
import { CredentialId } from "../ids/ids.js";
|
|
15
21
|
import { PasswordRegistrationProof } from "./password_history.js";
|
|
16
22
|
import { PasswordOperationId } from "../ids/ids.js";
|
|
17
23
|
import { PasswordHistoryContext } from "./password_history.js";
|
|
24
|
+
import { SessionId } from "../ids/ids.js";
|
|
18
25
|
import { OpaqueLoginId } from "../ids/ids.js";
|
|
19
26
|
/**
|
|
20
27
|
* The HMAC of a TOTP (RFC 6238 §1.2).
|
|
@@ -303,7 +310,7 @@ export const OpaqueLoginFinishRequest = new OpaqueLoginFinishRequest$Type();
|
|
|
303
310
|
class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
304
311
|
constructor() {
|
|
305
312
|
super("sid.v1.authn.OpaqueLoginFinishResponse", [
|
|
306
|
-
{ no:
|
|
313
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
307
314
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
308
315
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
309
316
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -312,7 +319,6 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
312
319
|
}
|
|
313
320
|
create(value) {
|
|
314
321
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
315
|
-
message.sessionId = "";
|
|
316
322
|
message.expiresIn = 0n;
|
|
317
323
|
message.secondFactors = [];
|
|
318
324
|
message.enrollableFactors = [];
|
|
@@ -325,8 +331,8 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
325
331
|
while (reader.pos < end) {
|
|
326
332
|
let [fieldNo, wireType] = reader.tag();
|
|
327
333
|
switch (fieldNo) {
|
|
328
|
-
case /*
|
|
329
|
-
message.sessionId = reader.
|
|
334
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
335
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
330
336
|
break;
|
|
331
337
|
case /* int64 expires_in */ 3:
|
|
332
338
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -360,9 +366,6 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
360
366
|
return message;
|
|
361
367
|
}
|
|
362
368
|
internalBinaryWrite(message, writer, options) {
|
|
363
|
-
/* string session_id = 1; */
|
|
364
|
-
if (message.sessionId !== "")
|
|
365
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
366
369
|
/* int64 expires_in = 3; */
|
|
367
370
|
if (message.expiresIn !== 0n)
|
|
368
371
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -383,6 +386,9 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
383
386
|
writer.int32(message.enrollableFactors[i]);
|
|
384
387
|
writer.join();
|
|
385
388
|
}
|
|
389
|
+
/* sid.v1.ids.SessionId session_id = 7; */
|
|
390
|
+
if (message.sessionId)
|
|
391
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
386
392
|
let u = options.writeUnknownFields;
|
|
387
393
|
if (u !== false)
|
|
388
394
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -581,12 +587,11 @@ export const OpaqueZkppRegistrationFinishRequest = new OpaqueZkppRegistrationFin
|
|
|
581
587
|
class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
582
588
|
constructor() {
|
|
583
589
|
super("sid.v1.authn.OpaqueZkppRegistrationFinishResponse", [
|
|
584
|
-
{ no:
|
|
590
|
+
{ no: 3, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
585
591
|
]);
|
|
586
592
|
}
|
|
587
593
|
create(value) {
|
|
588
594
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
589
|
-
message.credentialId = "";
|
|
590
595
|
if (value !== undefined)
|
|
591
596
|
reflectionMergePartial(this, message, value);
|
|
592
597
|
return message;
|
|
@@ -596,8 +601,8 @@ class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
|
596
601
|
while (reader.pos < end) {
|
|
597
602
|
let [fieldNo, wireType] = reader.tag();
|
|
598
603
|
switch (fieldNo) {
|
|
599
|
-
case /*
|
|
600
|
-
message.credentialId = reader.
|
|
604
|
+
case /* sid.v1.ids.CredentialId credential_id */ 3:
|
|
605
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
601
606
|
break;
|
|
602
607
|
default:
|
|
603
608
|
let u = options.readUnknownField;
|
|
@@ -611,9 +616,9 @@ class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
|
611
616
|
return message;
|
|
612
617
|
}
|
|
613
618
|
internalBinaryWrite(message, writer, options) {
|
|
614
|
-
/*
|
|
615
|
-
if (message.credentialId
|
|
616
|
-
writer.tag(
|
|
619
|
+
/* sid.v1.ids.CredentialId credential_id = 3; */
|
|
620
|
+
if (message.credentialId)
|
|
621
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
617
622
|
let u = options.writeUnknownFields;
|
|
618
623
|
if (u !== false)
|
|
619
624
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -628,14 +633,13 @@ export const OpaqueZkppRegistrationFinishResponse = new OpaqueZkppRegistrationFi
|
|
|
628
633
|
class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
629
634
|
constructor() {
|
|
630
635
|
super("sid.v1.authn.PasswordChangeChallengeRequest", [
|
|
631
|
-
{ no:
|
|
636
|
+
{ no: 4, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
632
637
|
{ no: 2, name: "credential_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
633
638
|
{ no: 3, name: "registration_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
634
639
|
]);
|
|
635
640
|
}
|
|
636
641
|
create(value) {
|
|
637
642
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
638
|
-
message.credentialId = "";
|
|
639
643
|
message.credentialRequest = new Uint8Array(0);
|
|
640
644
|
message.registrationRequest = new Uint8Array(0);
|
|
641
645
|
if (value !== undefined)
|
|
@@ -647,8 +651,8 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
647
651
|
while (reader.pos < end) {
|
|
648
652
|
let [fieldNo, wireType] = reader.tag();
|
|
649
653
|
switch (fieldNo) {
|
|
650
|
-
case /*
|
|
651
|
-
message.credentialId = reader.
|
|
654
|
+
case /* sid.v1.ids.CredentialId credential_id */ 4:
|
|
655
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
652
656
|
break;
|
|
653
657
|
case /* bytes credential_request */ 2:
|
|
654
658
|
message.credentialRequest = reader.bytes();
|
|
@@ -668,15 +672,15 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
668
672
|
return message;
|
|
669
673
|
}
|
|
670
674
|
internalBinaryWrite(message, writer, options) {
|
|
671
|
-
/* string credential_id = 1; */
|
|
672
|
-
if (message.credentialId !== "")
|
|
673
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
674
675
|
/* bytes credential_request = 2; */
|
|
675
676
|
if (message.credentialRequest.length)
|
|
676
677
|
writer.tag(2, WireType.LengthDelimited).bytes(message.credentialRequest);
|
|
677
678
|
/* bytes registration_request = 3; */
|
|
678
679
|
if (message.registrationRequest.length)
|
|
679
680
|
writer.tag(3, WireType.LengthDelimited).bytes(message.registrationRequest);
|
|
681
|
+
/* sid.v1.ids.CredentialId credential_id = 4; */
|
|
682
|
+
if (message.credentialId)
|
|
683
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
680
684
|
let u = options.writeUnknownFields;
|
|
681
685
|
if (u !== false)
|
|
682
686
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -746,13 +750,12 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
746
750
|
constructor() {
|
|
747
751
|
super("sid.v1.authn.PasswordChangeExecuteRequest", [
|
|
748
752
|
{ no: 9, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
749
|
-
{ no:
|
|
753
|
+
{ no: 11, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
750
754
|
{ no: 10, name: "credential_finalization", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
751
755
|
]);
|
|
752
756
|
}
|
|
753
757
|
create(value) {
|
|
754
758
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
755
|
-
message.credentialId = "";
|
|
756
759
|
message.credentialFinalization = new Uint8Array(0);
|
|
757
760
|
if (value !== undefined)
|
|
758
761
|
reflectionMergePartial(this, message, value);
|
|
@@ -766,8 +769,8 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
766
769
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 9:
|
|
767
770
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
768
771
|
break;
|
|
769
|
-
case /*
|
|
770
|
-
message.credentialId = reader.
|
|
772
|
+
case /* sid.v1.ids.CredentialId credential_id */ 11:
|
|
773
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
771
774
|
break;
|
|
772
775
|
case /* bytes credential_finalization */ 10:
|
|
773
776
|
message.credentialFinalization = reader.bytes();
|
|
@@ -784,15 +787,15 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
784
787
|
return message;
|
|
785
788
|
}
|
|
786
789
|
internalBinaryWrite(message, writer, options) {
|
|
787
|
-
/* string credential_id = 1; */
|
|
788
|
-
if (message.credentialId !== "")
|
|
789
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
790
790
|
/* sid.v1.ids.PasswordOperationId operation_id = 9; */
|
|
791
791
|
if (message.operationId)
|
|
792
792
|
PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
793
793
|
/* bytes credential_finalization = 10; */
|
|
794
794
|
if (message.credentialFinalization.length)
|
|
795
795
|
writer.tag(10, WireType.LengthDelimited).bytes(message.credentialFinalization);
|
|
796
|
+
/* sid.v1.ids.CredentialId credential_id = 11; */
|
|
797
|
+
if (message.credentialId)
|
|
798
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
796
799
|
let u = options.writeUnknownFields;
|
|
797
800
|
if (u !== false)
|
|
798
801
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -855,14 +858,13 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
855
858
|
constructor() {
|
|
856
859
|
super("sid.v1.authn.PasswordChangeFinishRequest", [
|
|
857
860
|
{ no: 4, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
858
|
-
{ no:
|
|
861
|
+
{ no: 6, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
859
862
|
{ no: 3, name: "registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
860
863
|
{ no: 5, name: "proof", kind: "message", T: () => PasswordRegistrationProof }
|
|
861
864
|
]);
|
|
862
865
|
}
|
|
863
866
|
create(value) {
|
|
864
867
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
865
|
-
message.credentialId = "";
|
|
866
868
|
message.registrationRecord = new Uint8Array(0);
|
|
867
869
|
if (value !== undefined)
|
|
868
870
|
reflectionMergePartial(this, message, value);
|
|
@@ -876,8 +878,8 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
876
878
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 4:
|
|
877
879
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
878
880
|
break;
|
|
879
|
-
case /*
|
|
880
|
-
message.credentialId = reader.
|
|
881
|
+
case /* sid.v1.ids.CredentialId credential_id */ 6:
|
|
882
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
881
883
|
break;
|
|
882
884
|
case /* bytes registration_record */ 3:
|
|
883
885
|
message.registrationRecord = reader.bytes();
|
|
@@ -897,9 +899,6 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
897
899
|
return message;
|
|
898
900
|
}
|
|
899
901
|
internalBinaryWrite(message, writer, options) {
|
|
900
|
-
/* string credential_id = 1; */
|
|
901
|
-
if (message.credentialId !== "")
|
|
902
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
903
902
|
/* bytes registration_record = 3; */
|
|
904
903
|
if (message.registrationRecord.length)
|
|
905
904
|
writer.tag(3, WireType.LengthDelimited).bytes(message.registrationRecord);
|
|
@@ -909,6 +908,9 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
909
908
|
/* sid.v1.authn.PasswordRegistrationProof proof = 5; */
|
|
910
909
|
if (message.proof)
|
|
911
910
|
PasswordRegistrationProof.internalBinaryWrite(message.proof, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
911
|
+
/* sid.v1.ids.CredentialId credential_id = 6; */
|
|
912
|
+
if (message.credentialId)
|
|
913
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
912
914
|
let u = options.writeUnknownFields;
|
|
913
915
|
if (u !== false)
|
|
914
916
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1078,12 +1080,11 @@ export const WebAuthnRegistrationFinishRequest = new WebAuthnRegistrationFinishR
|
|
|
1078
1080
|
class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
1079
1081
|
constructor() {
|
|
1080
1082
|
super("sid.v1.authn.WebAuthnRegistrationFinishResponse", [
|
|
1081
|
-
{ no:
|
|
1083
|
+
{ no: 2, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
1082
1084
|
]);
|
|
1083
1085
|
}
|
|
1084
1086
|
create(value) {
|
|
1085
1087
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1086
|
-
message.credentialId = "";
|
|
1087
1088
|
if (value !== undefined)
|
|
1088
1089
|
reflectionMergePartial(this, message, value);
|
|
1089
1090
|
return message;
|
|
@@ -1093,8 +1094,8 @@ class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
|
1093
1094
|
while (reader.pos < end) {
|
|
1094
1095
|
let [fieldNo, wireType] = reader.tag();
|
|
1095
1096
|
switch (fieldNo) {
|
|
1096
|
-
case /*
|
|
1097
|
-
message.credentialId = reader.
|
|
1097
|
+
case /* sid.v1.ids.CredentialId credential_id */ 2:
|
|
1098
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
1098
1099
|
break;
|
|
1099
1100
|
default:
|
|
1100
1101
|
let u = options.readUnknownField;
|
|
@@ -1108,9 +1109,9 @@ class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
|
1108
1109
|
return message;
|
|
1109
1110
|
}
|
|
1110
1111
|
internalBinaryWrite(message, writer, options) {
|
|
1111
|
-
/*
|
|
1112
|
-
if (message.credentialId
|
|
1113
|
-
writer.tag(
|
|
1112
|
+
/* sid.v1.ids.CredentialId credential_id = 2; */
|
|
1113
|
+
if (message.credentialId)
|
|
1114
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1114
1115
|
let u = options.writeUnknownFields;
|
|
1115
1116
|
if (u !== false)
|
|
1116
1117
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1172,15 +1173,13 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1172
1173
|
constructor() {
|
|
1173
1174
|
super("sid.v1.authn.WebAuthnAuthenticationStartResponse", [
|
|
1174
1175
|
{ no: 1, name: "challenge", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1175
|
-
{ no: 2, name: "options", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1176
|
-
{ no: 3, name: "state_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1176
|
+
{ no: 2, name: "options", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1177
1177
|
]);
|
|
1178
1178
|
}
|
|
1179
1179
|
create(value) {
|
|
1180
1180
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1181
1181
|
message.challenge = new Uint8Array(0);
|
|
1182
1182
|
message.options = new Uint8Array(0);
|
|
1183
|
-
message.stateKey = "";
|
|
1184
1183
|
if (value !== undefined)
|
|
1185
1184
|
reflectionMergePartial(this, message, value);
|
|
1186
1185
|
return message;
|
|
@@ -1196,9 +1195,6 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1196
1195
|
case /* bytes options */ 2:
|
|
1197
1196
|
message.options = reader.bytes();
|
|
1198
1197
|
break;
|
|
1199
|
-
case /* string state_key */ 3:
|
|
1200
|
-
message.stateKey = reader.string();
|
|
1201
|
-
break;
|
|
1202
1198
|
default:
|
|
1203
1199
|
let u = options.readUnknownField;
|
|
1204
1200
|
if (u === "throw")
|
|
@@ -1217,9 +1213,6 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1217
1213
|
/* bytes options = 2; */
|
|
1218
1214
|
if (message.options.length)
|
|
1219
1215
|
writer.tag(2, WireType.LengthDelimited).bytes(message.options);
|
|
1220
|
-
/* string state_key = 3; */
|
|
1221
|
-
if (message.stateKey !== "")
|
|
1222
|
-
writer.tag(3, WireType.LengthDelimited).string(message.stateKey);
|
|
1223
1216
|
let u = options.writeUnknownFields;
|
|
1224
1217
|
if (u !== false)
|
|
1225
1218
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1235,8 +1228,7 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1235
1228
|
constructor() {
|
|
1236
1229
|
super("sid.v1.authn.WebAuthnAuthenticationFinishRequest", [
|
|
1237
1230
|
{ no: 1, name: "principal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1238
|
-
{ no: 2, name: "credential", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1239
|
-
{ no: 3, name: "state_key", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1231
|
+
{ no: 2, name: "credential", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1240
1232
|
]);
|
|
1241
1233
|
}
|
|
1242
1234
|
create(value) {
|
|
@@ -1257,9 +1249,6 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1257
1249
|
case /* bytes credential */ 2:
|
|
1258
1250
|
message.credential = reader.bytes();
|
|
1259
1251
|
break;
|
|
1260
|
-
case /* optional string state_key */ 3:
|
|
1261
|
-
message.stateKey = reader.string();
|
|
1262
|
-
break;
|
|
1263
1252
|
default:
|
|
1264
1253
|
let u = options.readUnknownField;
|
|
1265
1254
|
if (u === "throw")
|
|
@@ -1278,9 +1267,6 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1278
1267
|
/* bytes credential = 2; */
|
|
1279
1268
|
if (message.credential.length)
|
|
1280
1269
|
writer.tag(2, WireType.LengthDelimited).bytes(message.credential);
|
|
1281
|
-
/* optional string state_key = 3; */
|
|
1282
|
-
if (message.stateKey !== undefined)
|
|
1283
|
-
writer.tag(3, WireType.LengthDelimited).string(message.stateKey);
|
|
1284
1270
|
let u = options.writeUnknownFields;
|
|
1285
1271
|
if (u !== false)
|
|
1286
1272
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1295,7 +1281,7 @@ export const WebAuthnAuthenticationFinishRequest = new WebAuthnAuthenticationFin
|
|
|
1295
1281
|
class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
1296
1282
|
constructor() {
|
|
1297
1283
|
super("sid.v1.authn.WebAuthnAuthenticationFinishResponse", [
|
|
1298
|
-
{ no:
|
|
1284
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
1299
1285
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1300
1286
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
1301
1287
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1304,7 +1290,6 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1304
1290
|
}
|
|
1305
1291
|
create(value) {
|
|
1306
1292
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1307
|
-
message.sessionId = "";
|
|
1308
1293
|
message.expiresIn = 0n;
|
|
1309
1294
|
message.secondFactors = [];
|
|
1310
1295
|
message.enrollableFactors = [];
|
|
@@ -1317,8 +1302,8 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1317
1302
|
while (reader.pos < end) {
|
|
1318
1303
|
let [fieldNo, wireType] = reader.tag();
|
|
1319
1304
|
switch (fieldNo) {
|
|
1320
|
-
case /*
|
|
1321
|
-
message.sessionId = reader.
|
|
1305
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
1306
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
1322
1307
|
break;
|
|
1323
1308
|
case /* int64 expires_in */ 3:
|
|
1324
1309
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -1352,9 +1337,6 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1352
1337
|
return message;
|
|
1353
1338
|
}
|
|
1354
1339
|
internalBinaryWrite(message, writer, options) {
|
|
1355
|
-
/* string session_id = 1; */
|
|
1356
|
-
if (message.sessionId !== "")
|
|
1357
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
1358
1340
|
/* int64 expires_in = 3; */
|
|
1359
1341
|
if (message.expiresIn !== 0n)
|
|
1360
1342
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -1375,6 +1357,9 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1375
1357
|
writer.int32(message.enrollableFactors[i]);
|
|
1376
1358
|
writer.join();
|
|
1377
1359
|
}
|
|
1360
|
+
/* sid.v1.ids.SessionId session_id = 7; */
|
|
1361
|
+
if (message.sessionId)
|
|
1362
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1378
1363
|
let u = options.writeUnknownFields;
|
|
1379
1364
|
if (u !== false)
|
|
1380
1365
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2270,12 +2255,11 @@ export const OAuth2RevokeResponse = new OAuth2RevokeResponse$Type();
|
|
|
2270
2255
|
class ValidateSessionRequest$Type extends MessageType {
|
|
2271
2256
|
constructor() {
|
|
2272
2257
|
super("sid.v1.authn.ValidateSessionRequest", [
|
|
2273
|
-
{ no:
|
|
2258
|
+
{ no: 2, name: "session_id", kind: "message", T: () => SessionId }
|
|
2274
2259
|
]);
|
|
2275
2260
|
}
|
|
2276
2261
|
create(value) {
|
|
2277
2262
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2278
|
-
message.sessionId = "";
|
|
2279
2263
|
if (value !== undefined)
|
|
2280
2264
|
reflectionMergePartial(this, message, value);
|
|
2281
2265
|
return message;
|
|
@@ -2285,8 +2269,8 @@ class ValidateSessionRequest$Type extends MessageType {
|
|
|
2285
2269
|
while (reader.pos < end) {
|
|
2286
2270
|
let [fieldNo, wireType] = reader.tag();
|
|
2287
2271
|
switch (fieldNo) {
|
|
2288
|
-
case /*
|
|
2289
|
-
message.sessionId = reader.
|
|
2272
|
+
case /* sid.v1.ids.SessionId session_id */ 2:
|
|
2273
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
2290
2274
|
break;
|
|
2291
2275
|
default:
|
|
2292
2276
|
let u = options.readUnknownField;
|
|
@@ -2300,9 +2284,9 @@ class ValidateSessionRequest$Type extends MessageType {
|
|
|
2300
2284
|
return message;
|
|
2301
2285
|
}
|
|
2302
2286
|
internalBinaryWrite(message, writer, options) {
|
|
2303
|
-
/*
|
|
2304
|
-
if (message.sessionId
|
|
2305
|
-
writer.tag(
|
|
2287
|
+
/* sid.v1.ids.SessionId session_id = 2; */
|
|
2288
|
+
if (message.sessionId)
|
|
2289
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2306
2290
|
let u = options.writeUnknownFields;
|
|
2307
2291
|
if (u !== false)
|
|
2308
2292
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2743,13 +2727,12 @@ export const RequestMagicLinkRequest = new RequestMagicLinkRequest$Type();
|
|
|
2743
2727
|
class RequestMagicLinkResponse$Type extends MessageType {
|
|
2744
2728
|
constructor() {
|
|
2745
2729
|
super("sid.v1.authn.RequestMagicLinkResponse", [
|
|
2746
|
-
{ no:
|
|
2730
|
+
{ no: 3, name: "magic_link_id", kind: "message", T: () => MagicLinkId },
|
|
2747
2731
|
{ no: 2, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
2748
2732
|
]);
|
|
2749
2733
|
}
|
|
2750
2734
|
create(value) {
|
|
2751
2735
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2752
|
-
message.sessionId = "";
|
|
2753
2736
|
message.expiresIn = 0;
|
|
2754
2737
|
if (value !== undefined)
|
|
2755
2738
|
reflectionMergePartial(this, message, value);
|
|
@@ -2760,8 +2743,8 @@ class RequestMagicLinkResponse$Type extends MessageType {
|
|
|
2760
2743
|
while (reader.pos < end) {
|
|
2761
2744
|
let [fieldNo, wireType] = reader.tag();
|
|
2762
2745
|
switch (fieldNo) {
|
|
2763
|
-
case /*
|
|
2764
|
-
message.
|
|
2746
|
+
case /* sid.v1.ids.MagicLinkId magic_link_id */ 3:
|
|
2747
|
+
message.magicLinkId = MagicLinkId.internalBinaryRead(reader, reader.uint32(), options, message.magicLinkId);
|
|
2765
2748
|
break;
|
|
2766
2749
|
case /* int32 expires_in */ 2:
|
|
2767
2750
|
message.expiresIn = reader.int32();
|
|
@@ -2778,12 +2761,12 @@ class RequestMagicLinkResponse$Type extends MessageType {
|
|
|
2778
2761
|
return message;
|
|
2779
2762
|
}
|
|
2780
2763
|
internalBinaryWrite(message, writer, options) {
|
|
2781
|
-
/* string session_id = 1; */
|
|
2782
|
-
if (message.sessionId !== "")
|
|
2783
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
2784
2764
|
/* int32 expires_in = 2; */
|
|
2785
2765
|
if (message.expiresIn !== 0)
|
|
2786
2766
|
writer.tag(2, WireType.Varint).int32(message.expiresIn);
|
|
2767
|
+
/* sid.v1.ids.MagicLinkId magic_link_id = 3; */
|
|
2768
|
+
if (message.magicLinkId)
|
|
2769
|
+
MagicLinkId.internalBinaryWrite(message.magicLinkId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2787
2770
|
let u = options.writeUnknownFields;
|
|
2788
2771
|
if (u !== false)
|
|
2789
2772
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2798,13 +2781,12 @@ export const RequestMagicLinkResponse = new RequestMagicLinkResponse$Type();
|
|
|
2798
2781
|
class VerifyMagicLinkRequest$Type extends MessageType {
|
|
2799
2782
|
constructor() {
|
|
2800
2783
|
super("sid.v1.authn.VerifyMagicLinkRequest", [
|
|
2801
|
-
{ no:
|
|
2784
|
+
{ no: 3, name: "magic_link_id", kind: "message", T: () => MagicLinkId },
|
|
2802
2785
|
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2803
2786
|
]);
|
|
2804
2787
|
}
|
|
2805
2788
|
create(value) {
|
|
2806
2789
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2807
|
-
message.sessionId = "";
|
|
2808
2790
|
message.token = "";
|
|
2809
2791
|
if (value !== undefined)
|
|
2810
2792
|
reflectionMergePartial(this, message, value);
|
|
@@ -2815,8 +2797,8 @@ class VerifyMagicLinkRequest$Type extends MessageType {
|
|
|
2815
2797
|
while (reader.pos < end) {
|
|
2816
2798
|
let [fieldNo, wireType] = reader.tag();
|
|
2817
2799
|
switch (fieldNo) {
|
|
2818
|
-
case /*
|
|
2819
|
-
message.
|
|
2800
|
+
case /* sid.v1.ids.MagicLinkId magic_link_id */ 3:
|
|
2801
|
+
message.magicLinkId = MagicLinkId.internalBinaryRead(reader, reader.uint32(), options, message.magicLinkId);
|
|
2820
2802
|
break;
|
|
2821
2803
|
case /* string token */ 2:
|
|
2822
2804
|
message.token = reader.string();
|
|
@@ -2833,12 +2815,12 @@ class VerifyMagicLinkRequest$Type extends MessageType {
|
|
|
2833
2815
|
return message;
|
|
2834
2816
|
}
|
|
2835
2817
|
internalBinaryWrite(message, writer, options) {
|
|
2836
|
-
/* string session_id = 1; */
|
|
2837
|
-
if (message.sessionId !== "")
|
|
2838
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
2839
2818
|
/* string token = 2; */
|
|
2840
2819
|
if (message.token !== "")
|
|
2841
2820
|
writer.tag(2, WireType.LengthDelimited).string(message.token);
|
|
2821
|
+
/* sid.v1.ids.MagicLinkId magic_link_id = 3; */
|
|
2822
|
+
if (message.magicLinkId)
|
|
2823
|
+
MagicLinkId.internalBinaryWrite(message.magicLinkId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2842
2824
|
let u = options.writeUnknownFields;
|
|
2843
2825
|
if (u !== false)
|
|
2844
2826
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2853,13 +2835,12 @@ export const VerifyMagicLinkRequest = new VerifyMagicLinkRequest$Type();
|
|
|
2853
2835
|
class VerifyMagicLinkResponse$Type extends MessageType {
|
|
2854
2836
|
constructor() {
|
|
2855
2837
|
super("sid.v1.authn.VerifyMagicLinkResponse", [
|
|
2856
|
-
{ no:
|
|
2838
|
+
{ no: 4, name: "session_id", kind: "message", T: () => SessionId },
|
|
2857
2839
|
{ no: 3, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
2858
2840
|
]);
|
|
2859
2841
|
}
|
|
2860
2842
|
create(value) {
|
|
2861
2843
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2862
|
-
message.sessionId = "";
|
|
2863
2844
|
message.expiresIn = 0;
|
|
2864
2845
|
if (value !== undefined)
|
|
2865
2846
|
reflectionMergePartial(this, message, value);
|
|
@@ -2870,8 +2851,8 @@ class VerifyMagicLinkResponse$Type extends MessageType {
|
|
|
2870
2851
|
while (reader.pos < end) {
|
|
2871
2852
|
let [fieldNo, wireType] = reader.tag();
|
|
2872
2853
|
switch (fieldNo) {
|
|
2873
|
-
case /*
|
|
2874
|
-
message.sessionId = reader.
|
|
2854
|
+
case /* sid.v1.ids.SessionId session_id */ 4:
|
|
2855
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
2875
2856
|
break;
|
|
2876
2857
|
case /* int32 expires_in */ 3:
|
|
2877
2858
|
message.expiresIn = reader.int32();
|
|
@@ -2888,12 +2869,12 @@ class VerifyMagicLinkResponse$Type extends MessageType {
|
|
|
2888
2869
|
return message;
|
|
2889
2870
|
}
|
|
2890
2871
|
internalBinaryWrite(message, writer, options) {
|
|
2891
|
-
/* string session_id = 1; */
|
|
2892
|
-
if (message.sessionId !== "")
|
|
2893
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
2894
2872
|
/* int32 expires_in = 3; */
|
|
2895
2873
|
if (message.expiresIn !== 0)
|
|
2896
2874
|
writer.tag(3, WireType.Varint).int32(message.expiresIn);
|
|
2875
|
+
/* sid.v1.ids.SessionId session_id = 4; */
|
|
2876
|
+
if (message.sessionId)
|
|
2877
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2897
2878
|
let u = options.writeUnknownFields;
|
|
2898
2879
|
if (u !== false)
|
|
2899
2880
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3065,13 +3046,12 @@ export const LegacyMigrateStartRequest = new LegacyMigrateStartRequest$Type();
|
|
|
3065
3046
|
class LegacyMigrateStartResponse$Type extends MessageType {
|
|
3066
3047
|
constructor() {
|
|
3067
3048
|
super("sid.v1.authn.LegacyMigrateStartResponse", [
|
|
3068
|
-
{ no:
|
|
3049
|
+
{ no: 3, name: "upgrade_id", kind: "message", T: () => ImportedPasswordUpgradeId },
|
|
3069
3050
|
{ no: 2, name: "opaque_registration_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
3070
3051
|
]);
|
|
3071
3052
|
}
|
|
3072
3053
|
create(value) {
|
|
3073
3054
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3074
|
-
message.migrationToken = "";
|
|
3075
3055
|
message.opaqueRegistrationResponse = new Uint8Array(0);
|
|
3076
3056
|
if (value !== undefined)
|
|
3077
3057
|
reflectionMergePartial(this, message, value);
|
|
@@ -3082,8 +3062,8 @@ class LegacyMigrateStartResponse$Type extends MessageType {
|
|
|
3082
3062
|
while (reader.pos < end) {
|
|
3083
3063
|
let [fieldNo, wireType] = reader.tag();
|
|
3084
3064
|
switch (fieldNo) {
|
|
3085
|
-
case /*
|
|
3086
|
-
message.
|
|
3065
|
+
case /* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id */ 3:
|
|
3066
|
+
message.upgradeId = ImportedPasswordUpgradeId.internalBinaryRead(reader, reader.uint32(), options, message.upgradeId);
|
|
3087
3067
|
break;
|
|
3088
3068
|
case /* bytes opaque_registration_response */ 2:
|
|
3089
3069
|
message.opaqueRegistrationResponse = reader.bytes();
|
|
@@ -3100,12 +3080,12 @@ class LegacyMigrateStartResponse$Type extends MessageType {
|
|
|
3100
3080
|
return message;
|
|
3101
3081
|
}
|
|
3102
3082
|
internalBinaryWrite(message, writer, options) {
|
|
3103
|
-
/* string migration_token = 1; */
|
|
3104
|
-
if (message.migrationToken !== "")
|
|
3105
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationToken);
|
|
3106
3083
|
/* bytes opaque_registration_response = 2; */
|
|
3107
3084
|
if (message.opaqueRegistrationResponse.length)
|
|
3108
3085
|
writer.tag(2, WireType.LengthDelimited).bytes(message.opaqueRegistrationResponse);
|
|
3086
|
+
/* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 3; */
|
|
3087
|
+
if (message.upgradeId)
|
|
3088
|
+
ImportedPasswordUpgradeId.internalBinaryWrite(message.upgradeId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3109
3089
|
let u = options.writeUnknownFields;
|
|
3110
3090
|
if (u !== false)
|
|
3111
3091
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3120,13 +3100,12 @@ export const LegacyMigrateStartResponse = new LegacyMigrateStartResponse$Type();
|
|
|
3120
3100
|
class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
3121
3101
|
constructor() {
|
|
3122
3102
|
super("sid.v1.authn.LegacyMigrateFinishRequest", [
|
|
3123
|
-
{ no:
|
|
3103
|
+
{ no: 3, name: "upgrade_id", kind: "message", T: () => ImportedPasswordUpgradeId },
|
|
3124
3104
|
{ no: 2, name: "opaque_registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
3125
3105
|
]);
|
|
3126
3106
|
}
|
|
3127
3107
|
create(value) {
|
|
3128
3108
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3129
|
-
message.migrationToken = "";
|
|
3130
3109
|
message.opaqueRegistrationRecord = new Uint8Array(0);
|
|
3131
3110
|
if (value !== undefined)
|
|
3132
3111
|
reflectionMergePartial(this, message, value);
|
|
@@ -3137,8 +3116,8 @@ class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
|
3137
3116
|
while (reader.pos < end) {
|
|
3138
3117
|
let [fieldNo, wireType] = reader.tag();
|
|
3139
3118
|
switch (fieldNo) {
|
|
3140
|
-
case /*
|
|
3141
|
-
message.
|
|
3119
|
+
case /* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id */ 3:
|
|
3120
|
+
message.upgradeId = ImportedPasswordUpgradeId.internalBinaryRead(reader, reader.uint32(), options, message.upgradeId);
|
|
3142
3121
|
break;
|
|
3143
3122
|
case /* bytes opaque_registration_record */ 2:
|
|
3144
3123
|
message.opaqueRegistrationRecord = reader.bytes();
|
|
@@ -3155,12 +3134,12 @@ class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
|
3155
3134
|
return message;
|
|
3156
3135
|
}
|
|
3157
3136
|
internalBinaryWrite(message, writer, options) {
|
|
3158
|
-
/* string migration_token = 1; */
|
|
3159
|
-
if (message.migrationToken !== "")
|
|
3160
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationToken);
|
|
3161
3137
|
/* bytes opaque_registration_record = 2; */
|
|
3162
3138
|
if (message.opaqueRegistrationRecord.length)
|
|
3163
3139
|
writer.tag(2, WireType.LengthDelimited).bytes(message.opaqueRegistrationRecord);
|
|
3140
|
+
/* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 3; */
|
|
3141
|
+
if (message.upgradeId)
|
|
3142
|
+
ImportedPasswordUpgradeId.internalBinaryWrite(message.upgradeId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3164
3143
|
let u = options.writeUnknownFields;
|
|
3165
3144
|
if (u !== false)
|
|
3166
3145
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3175,7 +3154,7 @@ export const LegacyMigrateFinishRequest = new LegacyMigrateFinishRequest$Type();
|
|
|
3175
3154
|
class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
3176
3155
|
constructor() {
|
|
3177
3156
|
super("sid.v1.authn.LegacyMigrateFinishResponse", [
|
|
3178
|
-
{ no:
|
|
3157
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
3179
3158
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3180
3159
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
3181
3160
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3184,7 +3163,6 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3184
3163
|
}
|
|
3185
3164
|
create(value) {
|
|
3186
3165
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3187
|
-
message.sessionId = "";
|
|
3188
3166
|
message.expiresIn = 0n;
|
|
3189
3167
|
message.secondFactors = [];
|
|
3190
3168
|
message.enrollableFactors = [];
|
|
@@ -3197,8 +3175,8 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3197
3175
|
while (reader.pos < end) {
|
|
3198
3176
|
let [fieldNo, wireType] = reader.tag();
|
|
3199
3177
|
switch (fieldNo) {
|
|
3200
|
-
case /*
|
|
3201
|
-
message.sessionId = reader.
|
|
3178
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
3179
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
3202
3180
|
break;
|
|
3203
3181
|
case /* int64 expires_in */ 3:
|
|
3204
3182
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -3232,9 +3210,6 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3232
3210
|
return message;
|
|
3233
3211
|
}
|
|
3234
3212
|
internalBinaryWrite(message, writer, options) {
|
|
3235
|
-
/* string session_id = 1; */
|
|
3236
|
-
if (message.sessionId !== "")
|
|
3237
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
3238
3213
|
/* int64 expires_in = 3; */
|
|
3239
3214
|
if (message.expiresIn !== 0n)
|
|
3240
3215
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -3255,6 +3230,9 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3255
3230
|
writer.int32(message.enrollableFactors[i]);
|
|
3256
3231
|
writer.join();
|
|
3257
3232
|
}
|
|
3233
|
+
/* sid.v1.ids.SessionId session_id = 7; */
|
|
3234
|
+
if (message.sessionId)
|
|
3235
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3258
3236
|
let u = options.writeUnknownFields;
|
|
3259
3237
|
if (u !== false)
|
|
3260
3238
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3394,7 +3372,7 @@ export const GetZkppPolicyResponse = new GetZkppPolicyResponse$Type();
|
|
|
3394
3372
|
class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
3395
3373
|
constructor() {
|
|
3396
3374
|
super("sid.v1.authn.SubmitDeferredZkProofRequest", [
|
|
3397
|
-
{ no:
|
|
3375
|
+
{ no: 5, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
3398
3376
|
{ no: 2, name: "zkpp_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
3399
3377
|
{ no: 3, name: "instances", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
3400
3378
|
{ no: 4, name: "policy_version", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -3402,7 +3380,6 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3402
3380
|
}
|
|
3403
3381
|
create(value) {
|
|
3404
3382
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3405
|
-
message.credentialId = "";
|
|
3406
3383
|
message.zkppProof = new Uint8Array(0);
|
|
3407
3384
|
message.instances = [];
|
|
3408
3385
|
message.policyVersion = 0;
|
|
@@ -3415,8 +3392,8 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3415
3392
|
while (reader.pos < end) {
|
|
3416
3393
|
let [fieldNo, wireType] = reader.tag();
|
|
3417
3394
|
switch (fieldNo) {
|
|
3418
|
-
case /*
|
|
3419
|
-
message.credentialId = reader.
|
|
3395
|
+
case /* sid.v1.ids.CredentialId credential_id */ 5:
|
|
3396
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
3420
3397
|
break;
|
|
3421
3398
|
case /* bytes zkpp_proof */ 2:
|
|
3422
3399
|
message.zkppProof = reader.bytes();
|
|
@@ -3439,9 +3416,6 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3439
3416
|
return message;
|
|
3440
3417
|
}
|
|
3441
3418
|
internalBinaryWrite(message, writer, options) {
|
|
3442
|
-
/* string credential_id = 1; */
|
|
3443
|
-
if (message.credentialId !== "")
|
|
3444
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
3445
3419
|
/* bytes zkpp_proof = 2; */
|
|
3446
3420
|
if (message.zkppProof.length)
|
|
3447
3421
|
writer.tag(2, WireType.LengthDelimited).bytes(message.zkppProof);
|
|
@@ -3451,6 +3425,9 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3451
3425
|
/* uint32 policy_version = 4; */
|
|
3452
3426
|
if (message.policyVersion !== 0)
|
|
3453
3427
|
writer.tag(4, WireType.Varint).uint32(message.policyVersion);
|
|
3428
|
+
/* sid.v1.ids.CredentialId credential_id = 5; */
|
|
3429
|
+
if (message.credentialId)
|
|
3430
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3454
3431
|
let u = options.writeUnknownFields;
|
|
3455
3432
|
if (u !== false)
|
|
3456
3433
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3684,13 +3661,12 @@ export const FinishTotpEnrollmentRequest = new FinishTotpEnrollmentRequest$Type(
|
|
|
3684
3661
|
class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
3685
3662
|
constructor() {
|
|
3686
3663
|
super("sid.v1.authn.FinishTotpEnrollmentResponse", [
|
|
3687
|
-
{ no:
|
|
3664
|
+
{ no: 3, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
3688
3665
|
{ no: 2, name: "recovery_codes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3689
3666
|
]);
|
|
3690
3667
|
}
|
|
3691
3668
|
create(value) {
|
|
3692
3669
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3693
|
-
message.credentialId = "";
|
|
3694
3670
|
message.recoveryCodes = [];
|
|
3695
3671
|
if (value !== undefined)
|
|
3696
3672
|
reflectionMergePartial(this, message, value);
|
|
@@ -3701,8 +3677,8 @@ class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
|
3701
3677
|
while (reader.pos < end) {
|
|
3702
3678
|
let [fieldNo, wireType] = reader.tag();
|
|
3703
3679
|
switch (fieldNo) {
|
|
3704
|
-
case /*
|
|
3705
|
-
message.credentialId = reader.
|
|
3680
|
+
case /* sid.v1.ids.CredentialId credential_id */ 3:
|
|
3681
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
3706
3682
|
break;
|
|
3707
3683
|
case /* repeated string recovery_codes */ 2:
|
|
3708
3684
|
message.recoveryCodes.push(reader.string());
|
|
@@ -3719,12 +3695,12 @@ class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
|
3719
3695
|
return message;
|
|
3720
3696
|
}
|
|
3721
3697
|
internalBinaryWrite(message, writer, options) {
|
|
3722
|
-
/* string credential_id = 1; */
|
|
3723
|
-
if (message.credentialId !== "")
|
|
3724
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
3725
3698
|
/* repeated string recovery_codes = 2; */
|
|
3726
3699
|
for (let i = 0; i < message.recoveryCodes.length; i++)
|
|
3727
3700
|
writer.tag(2, WireType.LengthDelimited).string(message.recoveryCodes[i]);
|
|
3701
|
+
/* sid.v1.ids.CredentialId credential_id = 3; */
|
|
3702
|
+
if (message.credentialId)
|
|
3703
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3728
3704
|
let u = options.writeUnknownFields;
|
|
3729
3705
|
if (u !== false)
|
|
3730
3706
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3787,7 +3763,7 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3787
3763
|
constructor() {
|
|
3788
3764
|
super("sid.v1.authn.MfaVerifyResponse", [
|
|
3789
3765
|
{ no: 1, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3790
|
-
{ no:
|
|
3766
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
3791
3767
|
{ no: 4, name: "expires_in", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3792
3768
|
{ no: 5, name: "redirect_to", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3793
3769
|
{ no: 6, name: "remaining_codes", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
@@ -3808,8 +3784,8 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3808
3784
|
case /* bool verified */ 1:
|
|
3809
3785
|
message.verified = reader.bool();
|
|
3810
3786
|
break;
|
|
3811
|
-
case /*
|
|
3812
|
-
message.sessionId = reader.
|
|
3787
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
3788
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
3813
3789
|
break;
|
|
3814
3790
|
case /* optional int64 expires_in */ 4:
|
|
3815
3791
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -3835,9 +3811,6 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3835
3811
|
/* bool verified = 1; */
|
|
3836
3812
|
if (message.verified !== false)
|
|
3837
3813
|
writer.tag(1, WireType.Varint).bool(message.verified);
|
|
3838
|
-
/* optional string session_id = 2; */
|
|
3839
|
-
if (message.sessionId !== undefined)
|
|
3840
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sessionId);
|
|
3841
3814
|
/* optional int64 expires_in = 4; */
|
|
3842
3815
|
if (message.expiresIn !== undefined)
|
|
3843
3816
|
writer.tag(4, WireType.Varint).int64(message.expiresIn);
|
|
@@ -3847,6 +3820,9 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3847
3820
|
/* optional int32 remaining_codes = 6; */
|
|
3848
3821
|
if (message.remainingCodes !== undefined)
|
|
3849
3822
|
writer.tag(6, WireType.Varint).int32(message.remainingCodes);
|
|
3823
|
+
/* sid.v1.ids.SessionId session_id = 7; */
|
|
3824
|
+
if (message.sessionId)
|
|
3825
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3850
3826
|
let u = options.writeUnknownFields;
|
|
3851
3827
|
if (u !== false)
|
|
3852
3828
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4180,7 +4156,7 @@ export const RequestOtpRequest = new RequestOtpRequest$Type();
|
|
|
4180
4156
|
class RequestOtpResponse$Type extends MessageType {
|
|
4181
4157
|
constructor() {
|
|
4182
4158
|
super("sid.v1.authn.RequestOtpResponse", [
|
|
4183
|
-
{ no:
|
|
4159
|
+
{ no: 5, name: "otp_session_id", kind: "message", T: () => OtpSessionId },
|
|
4184
4160
|
{ no: 2, name: "masked_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4185
4161
|
{ no: 3, name: "expires_in_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
4186
4162
|
{ no: 4, name: "code_length", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -4188,7 +4164,6 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4188
4164
|
}
|
|
4189
4165
|
create(value) {
|
|
4190
4166
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4191
|
-
message.otpSessionId = "";
|
|
4192
4167
|
message.maskedTarget = "";
|
|
4193
4168
|
message.expiresInSeconds = 0;
|
|
4194
4169
|
message.codeLength = 0;
|
|
@@ -4201,8 +4176,8 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4201
4176
|
while (reader.pos < end) {
|
|
4202
4177
|
let [fieldNo, wireType] = reader.tag();
|
|
4203
4178
|
switch (fieldNo) {
|
|
4204
|
-
case /*
|
|
4205
|
-
message.otpSessionId = reader.
|
|
4179
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 5:
|
|
4180
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4206
4181
|
break;
|
|
4207
4182
|
case /* string masked_target */ 2:
|
|
4208
4183
|
message.maskedTarget = reader.string();
|
|
@@ -4225,9 +4200,6 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4225
4200
|
return message;
|
|
4226
4201
|
}
|
|
4227
4202
|
internalBinaryWrite(message, writer, options) {
|
|
4228
|
-
/* string otp_session_id = 1; */
|
|
4229
|
-
if (message.otpSessionId !== "")
|
|
4230
|
-
writer.tag(1, WireType.LengthDelimited).string(message.otpSessionId);
|
|
4231
4203
|
/* string masked_target = 2; */
|
|
4232
4204
|
if (message.maskedTarget !== "")
|
|
4233
4205
|
writer.tag(2, WireType.LengthDelimited).string(message.maskedTarget);
|
|
@@ -4237,6 +4209,9 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4237
4209
|
/* uint32 code_length = 4; */
|
|
4238
4210
|
if (message.codeLength !== 0)
|
|
4239
4211
|
writer.tag(4, WireType.Varint).uint32(message.codeLength);
|
|
4212
|
+
/* sid.v1.ids.OtpSessionId otp_session_id = 5; */
|
|
4213
|
+
if (message.otpSessionId)
|
|
4214
|
+
OtpSessionId.internalBinaryWrite(message.otpSessionId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4240
4215
|
let u = options.writeUnknownFields;
|
|
4241
4216
|
if (u !== false)
|
|
4242
4217
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4252,7 +4227,7 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4252
4227
|
constructor() {
|
|
4253
4228
|
super("sid.v1.authn.VerifyOtpRequest", [
|
|
4254
4229
|
{ no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4255
|
-
{ no:
|
|
4230
|
+
{ no: 3, name: "otp_session_id", kind: "message", T: () => OtpSessionId }
|
|
4256
4231
|
]);
|
|
4257
4232
|
}
|
|
4258
4233
|
create(value) {
|
|
@@ -4270,8 +4245,8 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4270
4245
|
case /* string code */ 1:
|
|
4271
4246
|
message.code = reader.string();
|
|
4272
4247
|
break;
|
|
4273
|
-
case /*
|
|
4274
|
-
message.
|
|
4248
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 3:
|
|
4249
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4275
4250
|
break;
|
|
4276
4251
|
default:
|
|
4277
4252
|
let u = options.readUnknownField;
|
|
@@ -4288,9 +4263,9 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4288
4263
|
/* string code = 1; */
|
|
4289
4264
|
if (message.code !== "")
|
|
4290
4265
|
writer.tag(1, WireType.LengthDelimited).string(message.code);
|
|
4291
|
-
/*
|
|
4292
|
-
if (message.
|
|
4293
|
-
writer.tag(
|
|
4266
|
+
/* sid.v1.ids.OtpSessionId otp_session_id = 3; */
|
|
4267
|
+
if (message.otpSessionId)
|
|
4268
|
+
OtpSessionId.internalBinaryWrite(message.otpSessionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4294
4269
|
let u = options.writeUnknownFields;
|
|
4295
4270
|
if (u !== false)
|
|
4296
4271
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4307,7 +4282,7 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4307
4282
|
super("sid.v1.authn.VerifyOtpResponse", [
|
|
4308
4283
|
{ no: 1, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4309
4284
|
{ no: 2, name: "redirect_to", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4310
|
-
{ no:
|
|
4285
|
+
{ no: 6, name: "session_id", kind: "message", T: () => SessionId },
|
|
4311
4286
|
{ no: 5, name: "expires_in", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
4312
4287
|
]);
|
|
4313
4288
|
}
|
|
@@ -4329,8 +4304,8 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4329
4304
|
case /* optional string redirect_to */ 2:
|
|
4330
4305
|
message.redirectTo = reader.string();
|
|
4331
4306
|
break;
|
|
4332
|
-
case /*
|
|
4333
|
-
message.sessionId = reader.
|
|
4307
|
+
case /* sid.v1.ids.SessionId session_id */ 6:
|
|
4308
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
4334
4309
|
break;
|
|
4335
4310
|
case /* optional int64 expires_in */ 5:
|
|
4336
4311
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -4353,12 +4328,12 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4353
4328
|
/* optional string redirect_to = 2; */
|
|
4354
4329
|
if (message.redirectTo !== undefined)
|
|
4355
4330
|
writer.tag(2, WireType.LengthDelimited).string(message.redirectTo);
|
|
4356
|
-
/* optional string session_id = 3; */
|
|
4357
|
-
if (message.sessionId !== undefined)
|
|
4358
|
-
writer.tag(3, WireType.LengthDelimited).string(message.sessionId);
|
|
4359
4331
|
/* optional int64 expires_in = 5; */
|
|
4360
4332
|
if (message.expiresIn !== undefined)
|
|
4361
4333
|
writer.tag(5, WireType.Varint).int64(message.expiresIn);
|
|
4334
|
+
/* sid.v1.ids.SessionId session_id = 6; */
|
|
4335
|
+
if (message.sessionId)
|
|
4336
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
4362
4337
|
let u = options.writeUnknownFields;
|
|
4363
4338
|
if (u !== false)
|
|
4364
4339
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4373,7 +4348,7 @@ export const VerifyOtpResponse = new VerifyOtpResponse$Type();
|
|
|
4373
4348
|
class ResendOtpRequest$Type extends MessageType {
|
|
4374
4349
|
constructor() {
|
|
4375
4350
|
super("sid.v1.authn.ResendOtpRequest", [
|
|
4376
|
-
{ no:
|
|
4351
|
+
{ no: 2, name: "otp_session_id", kind: "message", T: () => OtpSessionId }
|
|
4377
4352
|
]);
|
|
4378
4353
|
}
|
|
4379
4354
|
create(value) {
|
|
@@ -4387,8 +4362,8 @@ class ResendOtpRequest$Type extends MessageType {
|
|
|
4387
4362
|
while (reader.pos < end) {
|
|
4388
4363
|
let [fieldNo, wireType] = reader.tag();
|
|
4389
4364
|
switch (fieldNo) {
|
|
4390
|
-
case /*
|
|
4391
|
-
message.
|
|
4365
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 2:
|
|
4366
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4392
4367
|
break;
|
|
4393
4368
|
default:
|
|
4394
4369
|
let u = options.readUnknownField;
|
|
@@ -4402,9 +4377,9 @@ class ResendOtpRequest$Type extends MessageType {
|
|
|
4402
4377
|
return message;
|
|
4403
4378
|
}
|
|
4404
4379
|
internalBinaryWrite(message, writer, options) {
|
|
4405
|
-
/*
|
|
4406
|
-
if (message.
|
|
4407
|
-
writer.tag(
|
|
4380
|
+
/* sid.v1.ids.OtpSessionId otp_session_id = 2; */
|
|
4381
|
+
if (message.otpSessionId)
|
|
4382
|
+
OtpSessionId.internalBinaryWrite(message.otpSessionId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4408
4383
|
let u = options.writeUnknownFields;
|
|
4409
4384
|
if (u !== false)
|
|
4410
4385
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5981,13 +5956,11 @@ export const SubmitDynamicPromptResponse = new SubmitDynamicPromptResponse$Type(
|
|
|
5981
5956
|
class RequestStepUpRequest$Type extends MessageType {
|
|
5982
5957
|
constructor() {
|
|
5983
5958
|
super("sid.v1.authn.RequestStepUpRequest", [
|
|
5984
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5985
5959
|
{ no: 2, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] }
|
|
5986
5960
|
]);
|
|
5987
5961
|
}
|
|
5988
5962
|
create(value) {
|
|
5989
5963
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5990
|
-
message.sessionId = "";
|
|
5991
5964
|
message.method = 0;
|
|
5992
5965
|
if (value !== undefined)
|
|
5993
5966
|
reflectionMergePartial(this, message, value);
|
|
@@ -5998,9 +5971,6 @@ class RequestStepUpRequest$Type extends MessageType {
|
|
|
5998
5971
|
while (reader.pos < end) {
|
|
5999
5972
|
let [fieldNo, wireType] = reader.tag();
|
|
6000
5973
|
switch (fieldNo) {
|
|
6001
|
-
case /* string session_id */ 1:
|
|
6002
|
-
message.sessionId = reader.string();
|
|
6003
|
-
break;
|
|
6004
5974
|
case /* sid.v1.authn.StepUpMethod method */ 2:
|
|
6005
5975
|
message.method = reader.int32();
|
|
6006
5976
|
break;
|
|
@@ -6016,9 +5986,6 @@ class RequestStepUpRequest$Type extends MessageType {
|
|
|
6016
5986
|
return message;
|
|
6017
5987
|
}
|
|
6018
5988
|
internalBinaryWrite(message, writer, options) {
|
|
6019
|
-
/* string session_id = 1; */
|
|
6020
|
-
if (message.sessionId !== "")
|
|
6021
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6022
5989
|
/* sid.v1.authn.StepUpMethod method = 2; */
|
|
6023
5990
|
if (message.method !== 0)
|
|
6024
5991
|
writer.tag(2, WireType.Varint).int32(message.method);
|
|
@@ -6037,7 +6004,7 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6037
6004
|
constructor() {
|
|
6038
6005
|
super("sid.v1.authn.StepUpChallenge", [
|
|
6039
6006
|
{ no: 1, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6040
|
-
{ no:
|
|
6007
|
+
{ no: 6, name: "challenge_id", kind: "message", T: () => StepUpChallengeId },
|
|
6041
6008
|
{ no: 3, name: "webauthn_options", kind: "scalar", oneof: "challenge", T: 12 /*ScalarType.BYTES*/ },
|
|
6042
6009
|
{ no: 4, name: "allowed_methods", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6043
6010
|
{ no: 5, name: "decay_level", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -6046,7 +6013,6 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6046
6013
|
create(value) {
|
|
6047
6014
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6048
6015
|
message.method = 0;
|
|
6049
|
-
message.challengeId = "";
|
|
6050
6016
|
message.challenge = { oneofKind: undefined };
|
|
6051
6017
|
message.allowedMethods = [];
|
|
6052
6018
|
message.decayLevel = "";
|
|
@@ -6062,8 +6028,8 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6062
6028
|
case /* sid.v1.authn.StepUpMethod method */ 1:
|
|
6063
6029
|
message.method = reader.int32();
|
|
6064
6030
|
break;
|
|
6065
|
-
case /*
|
|
6066
|
-
message.challengeId = reader.
|
|
6031
|
+
case /* sid.v1.ids.StepUpChallengeId challenge_id */ 6:
|
|
6032
|
+
message.challengeId = StepUpChallengeId.internalBinaryRead(reader, reader.uint32(), options, message.challengeId);
|
|
6067
6033
|
break;
|
|
6068
6034
|
case /* bytes webauthn_options */ 3:
|
|
6069
6035
|
message.challenge = {
|
|
@@ -6096,9 +6062,6 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6096
6062
|
/* sid.v1.authn.StepUpMethod method = 1; */
|
|
6097
6063
|
if (message.method !== 0)
|
|
6098
6064
|
writer.tag(1, WireType.Varint).int32(message.method);
|
|
6099
|
-
/* string challenge_id = 2; */
|
|
6100
|
-
if (message.challengeId !== "")
|
|
6101
|
-
writer.tag(2, WireType.LengthDelimited).string(message.challengeId);
|
|
6102
6065
|
/* bytes webauthn_options = 3; */
|
|
6103
6066
|
if (message.challenge.oneofKind === "webauthnOptions")
|
|
6104
6067
|
writer.tag(3, WireType.LengthDelimited).bytes(message.challenge.webauthnOptions);
|
|
@@ -6112,6 +6075,9 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6112
6075
|
/* string decay_level = 5; */
|
|
6113
6076
|
if (message.decayLevel !== "")
|
|
6114
6077
|
writer.tag(5, WireType.LengthDelimited).string(message.decayLevel);
|
|
6078
|
+
/* sid.v1.ids.StepUpChallengeId challenge_id = 6; */
|
|
6079
|
+
if (message.challengeId)
|
|
6080
|
+
StepUpChallengeId.internalBinaryWrite(message.challengeId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
6115
6081
|
let u = options.writeUnknownFields;
|
|
6116
6082
|
if (u !== false)
|
|
6117
6083
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6126,9 +6092,8 @@ export const StepUpChallenge = new StepUpChallenge$Type();
|
|
|
6126
6092
|
class CompleteStepUpRequest$Type extends MessageType {
|
|
6127
6093
|
constructor() {
|
|
6128
6094
|
super("sid.v1.authn.CompleteStepUpRequest", [
|
|
6129
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6130
6095
|
{ no: 2, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6131
|
-
{ no:
|
|
6096
|
+
{ no: 7, name: "challenge_id", kind: "message", T: () => StepUpChallengeId },
|
|
6132
6097
|
{ no: 4, name: "totp_code", kind: "scalar", oneof: "proof", T: 9 /*ScalarType.STRING*/ },
|
|
6133
6098
|
{ no: 5, name: "webauthn_assertion", kind: "scalar", oneof: "proof", T: 12 /*ScalarType.BYTES*/ },
|
|
6134
6099
|
{ no: 6, name: "recovery_code", kind: "scalar", oneof: "proof", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -6136,9 +6101,7 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6136
6101
|
}
|
|
6137
6102
|
create(value) {
|
|
6138
6103
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6139
|
-
message.sessionId = "";
|
|
6140
6104
|
message.method = 0;
|
|
6141
|
-
message.challengeId = "";
|
|
6142
6105
|
message.proof = { oneofKind: undefined };
|
|
6143
6106
|
if (value !== undefined)
|
|
6144
6107
|
reflectionMergePartial(this, message, value);
|
|
@@ -6149,14 +6112,11 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6149
6112
|
while (reader.pos < end) {
|
|
6150
6113
|
let [fieldNo, wireType] = reader.tag();
|
|
6151
6114
|
switch (fieldNo) {
|
|
6152
|
-
case /* string session_id */ 1:
|
|
6153
|
-
message.sessionId = reader.string();
|
|
6154
|
-
break;
|
|
6155
6115
|
case /* sid.v1.authn.StepUpMethod method */ 2:
|
|
6156
6116
|
message.method = reader.int32();
|
|
6157
6117
|
break;
|
|
6158
|
-
case /*
|
|
6159
|
-
message.challengeId = reader.
|
|
6118
|
+
case /* sid.v1.ids.StepUpChallengeId challenge_id */ 7:
|
|
6119
|
+
message.challengeId = StepUpChallengeId.internalBinaryRead(reader, reader.uint32(), options, message.challengeId);
|
|
6160
6120
|
break;
|
|
6161
6121
|
case /* string totp_code */ 4:
|
|
6162
6122
|
message.proof = {
|
|
@@ -6188,15 +6148,9 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6188
6148
|
return message;
|
|
6189
6149
|
}
|
|
6190
6150
|
internalBinaryWrite(message, writer, options) {
|
|
6191
|
-
/* string session_id = 1; */
|
|
6192
|
-
if (message.sessionId !== "")
|
|
6193
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6194
6151
|
/* sid.v1.authn.StepUpMethod method = 2; */
|
|
6195
6152
|
if (message.method !== 0)
|
|
6196
6153
|
writer.tag(2, WireType.Varint).int32(message.method);
|
|
6197
|
-
/* string challenge_id = 3; */
|
|
6198
|
-
if (message.challengeId !== "")
|
|
6199
|
-
writer.tag(3, WireType.LengthDelimited).string(message.challengeId);
|
|
6200
6154
|
/* string totp_code = 4; */
|
|
6201
6155
|
if (message.proof.oneofKind === "totpCode")
|
|
6202
6156
|
writer.tag(4, WireType.LengthDelimited).string(message.proof.totpCode);
|
|
@@ -6206,6 +6160,9 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6206
6160
|
/* string recovery_code = 6; */
|
|
6207
6161
|
if (message.proof.oneofKind === "recoveryCode")
|
|
6208
6162
|
writer.tag(6, WireType.LengthDelimited).string(message.proof.recoveryCode);
|
|
6163
|
+
/* sid.v1.ids.StepUpChallengeId challenge_id = 7; */
|
|
6164
|
+
if (message.challengeId)
|
|
6165
|
+
StepUpChallengeId.internalBinaryWrite(message.challengeId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
6209
6166
|
let u = options.writeUnknownFields;
|
|
6210
6167
|
if (u !== false)
|
|
6211
6168
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6283,12 +6240,11 @@ export const CompleteStepUpResponse = new CompleteStepUpResponse$Type();
|
|
|
6283
6240
|
class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
6284
6241
|
constructor() {
|
|
6285
6242
|
super("sid.v1.authn.DeleteMfaCredentialRequest", [
|
|
6286
|
-
{ no:
|
|
6243
|
+
{ no: 2, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
6287
6244
|
]);
|
|
6288
6245
|
}
|
|
6289
6246
|
create(value) {
|
|
6290
6247
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6291
|
-
message.credentialId = "";
|
|
6292
6248
|
if (value !== undefined)
|
|
6293
6249
|
reflectionMergePartial(this, message, value);
|
|
6294
6250
|
return message;
|
|
@@ -6298,8 +6254,8 @@ class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
|
6298
6254
|
while (reader.pos < end) {
|
|
6299
6255
|
let [fieldNo, wireType] = reader.tag();
|
|
6300
6256
|
switch (fieldNo) {
|
|
6301
|
-
case /*
|
|
6302
|
-
message.credentialId = reader.
|
|
6257
|
+
case /* sid.v1.ids.CredentialId credential_id */ 2:
|
|
6258
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
6303
6259
|
break;
|
|
6304
6260
|
default:
|
|
6305
6261
|
let u = options.readUnknownField;
|
|
@@ -6313,9 +6269,9 @@ class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
|
6313
6269
|
return message;
|
|
6314
6270
|
}
|
|
6315
6271
|
internalBinaryWrite(message, writer, options) {
|
|
6316
|
-
/*
|
|
6317
|
-
if (message.credentialId
|
|
6318
|
-
writer.tag(
|
|
6272
|
+
/* sid.v1.ids.CredentialId credential_id = 2; */
|
|
6273
|
+
if (message.credentialId)
|
|
6274
|
+
CredentialId.internalBinaryWrite(message.credentialId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
6319
6275
|
let u = options.writeUnknownFields;
|
|
6320
6276
|
if (u !== false)
|
|
6321
6277
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6604,13 +6560,12 @@ export const RequestPasswordResetResponse = new RequestPasswordResetResponse$Typ
|
|
|
6604
6560
|
class VerifyPasswordResetRequest$Type extends MessageType {
|
|
6605
6561
|
constructor() {
|
|
6606
6562
|
super("sid.v1.authn.VerifyPasswordResetRequest", [
|
|
6607
|
-
{ no:
|
|
6563
|
+
{ no: 3, name: "reset_session_id", kind: "message", T: () => ResetSessionId },
|
|
6608
6564
|
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6609
6565
|
]);
|
|
6610
6566
|
}
|
|
6611
6567
|
create(value) {
|
|
6612
6568
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6613
|
-
message.sessionId = "";
|
|
6614
6569
|
message.token = "";
|
|
6615
6570
|
if (value !== undefined)
|
|
6616
6571
|
reflectionMergePartial(this, message, value);
|
|
@@ -6621,8 +6576,8 @@ class VerifyPasswordResetRequest$Type extends MessageType {
|
|
|
6621
6576
|
while (reader.pos < end) {
|
|
6622
6577
|
let [fieldNo, wireType] = reader.tag();
|
|
6623
6578
|
switch (fieldNo) {
|
|
6624
|
-
case /*
|
|
6625
|
-
message.
|
|
6579
|
+
case /* sid.v1.ids.ResetSessionId reset_session_id */ 3:
|
|
6580
|
+
message.resetSessionId = ResetSessionId.internalBinaryRead(reader, reader.uint32(), options, message.resetSessionId);
|
|
6626
6581
|
break;
|
|
6627
6582
|
case /* string token */ 2:
|
|
6628
6583
|
message.token = reader.string();
|
|
@@ -6639,12 +6594,12 @@ class VerifyPasswordResetRequest$Type extends MessageType {
|
|
|
6639
6594
|
return message;
|
|
6640
6595
|
}
|
|
6641
6596
|
internalBinaryWrite(message, writer, options) {
|
|
6642
|
-
/* string session_id = 1; */
|
|
6643
|
-
if (message.sessionId !== "")
|
|
6644
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6645
6597
|
/* string token = 2; */
|
|
6646
6598
|
if (message.token !== "")
|
|
6647
6599
|
writer.tag(2, WireType.LengthDelimited).string(message.token);
|
|
6600
|
+
/* sid.v1.ids.ResetSessionId reset_session_id = 3; */
|
|
6601
|
+
if (message.resetSessionId)
|
|
6602
|
+
ResetSessionId.internalBinaryWrite(message.resetSessionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
6648
6603
|
let u = options.writeUnknownFields;
|
|
6649
6604
|
if (u !== false)
|
|
6650
6605
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6659,14 +6614,12 @@ export const VerifyPasswordResetRequest = new VerifyPasswordResetRequest$Type();
|
|
|
6659
6614
|
class VerifyPasswordResetResponse$Type extends MessageType {
|
|
6660
6615
|
constructor() {
|
|
6661
6616
|
super("sid.v1.authn.VerifyPasswordResetResponse", [
|
|
6662
|
-
{ no: 1, name: "reset_session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6663
6617
|
{ no: 2, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
6664
6618
|
{ no: 3, name: "history", kind: "message", T: () => PasswordHistoryContext }
|
|
6665
6619
|
]);
|
|
6666
6620
|
}
|
|
6667
6621
|
create(value) {
|
|
6668
6622
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6669
|
-
message.resetSessionId = "";
|
|
6670
6623
|
message.expiresIn = 0;
|
|
6671
6624
|
if (value !== undefined)
|
|
6672
6625
|
reflectionMergePartial(this, message, value);
|
|
@@ -6677,9 +6630,6 @@ class VerifyPasswordResetResponse$Type extends MessageType {
|
|
|
6677
6630
|
while (reader.pos < end) {
|
|
6678
6631
|
let [fieldNo, wireType] = reader.tag();
|
|
6679
6632
|
switch (fieldNo) {
|
|
6680
|
-
case /* string reset_session_id */ 1:
|
|
6681
|
-
message.resetSessionId = reader.string();
|
|
6682
|
-
break;
|
|
6683
6633
|
case /* int32 expires_in */ 2:
|
|
6684
6634
|
message.expiresIn = reader.int32();
|
|
6685
6635
|
break;
|
|
@@ -6698,9 +6648,6 @@ class VerifyPasswordResetResponse$Type extends MessageType {
|
|
|
6698
6648
|
return message;
|
|
6699
6649
|
}
|
|
6700
6650
|
internalBinaryWrite(message, writer, options) {
|
|
6701
|
-
/* string reset_session_id = 1; */
|
|
6702
|
-
if (message.resetSessionId !== "")
|
|
6703
|
-
writer.tag(1, WireType.LengthDelimited).string(message.resetSessionId);
|
|
6704
6651
|
/* int32 expires_in = 2; */
|
|
6705
6652
|
if (message.expiresIn !== 0)
|
|
6706
6653
|
writer.tag(2, WireType.Varint).int32(message.expiresIn);
|
|
@@ -6822,7 +6769,6 @@ export const ExecutePasswordResetResponse = new ExecutePasswordResetResponse$Typ
|
|
|
6822
6769
|
class CompletePasswordResetRequest$Type extends MessageType {
|
|
6823
6770
|
constructor() {
|
|
6824
6771
|
super("sid.v1.authn.CompletePasswordResetRequest", [
|
|
6825
|
-
{ no: 1, name: "reset_session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6826
6772
|
{ no: 7, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
6827
6773
|
{ no: 2, name: "registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
6828
6774
|
{ no: 8, name: "proof", kind: "message", T: () => PasswordRegistrationProof }
|
|
@@ -6830,7 +6776,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
6830
6776
|
}
|
|
6831
6777
|
create(value) {
|
|
6832
6778
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6833
|
-
message.resetSessionId = "";
|
|
6834
6779
|
message.registrationRecord = new Uint8Array(0);
|
|
6835
6780
|
if (value !== undefined)
|
|
6836
6781
|
reflectionMergePartial(this, message, value);
|
|
@@ -6841,9 +6786,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
6841
6786
|
while (reader.pos < end) {
|
|
6842
6787
|
let [fieldNo, wireType] = reader.tag();
|
|
6843
6788
|
switch (fieldNo) {
|
|
6844
|
-
case /* string reset_session_id */ 1:
|
|
6845
|
-
message.resetSessionId = reader.string();
|
|
6846
|
-
break;
|
|
6847
6789
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 7:
|
|
6848
6790
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
6849
6791
|
break;
|
|
@@ -6865,9 +6807,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
6865
6807
|
return message;
|
|
6866
6808
|
}
|
|
6867
6809
|
internalBinaryWrite(message, writer, options) {
|
|
6868
|
-
/* string reset_session_id = 1; */
|
|
6869
|
-
if (message.resetSessionId !== "")
|
|
6870
|
-
writer.tag(1, WireType.LengthDelimited).string(message.resetSessionId);
|
|
6871
6810
|
/* bytes registration_record = 2; */
|
|
6872
6811
|
if (message.registrationRecord.length)
|
|
6873
6812
|
writer.tag(2, WireType.LengthDelimited).bytes(message.registrationRecord);
|
|
@@ -6891,7 +6830,7 @@ export const CompletePasswordResetRequest = new CompletePasswordResetRequest$Typ
|
|
|
6891
6830
|
class CompletePasswordResetResponse$Type extends MessageType {
|
|
6892
6831
|
constructor() {
|
|
6893
6832
|
super("sid.v1.authn.CompletePasswordResetResponse", [
|
|
6894
|
-
{ no:
|
|
6833
|
+
{ no: 4, name: "session_id", kind: "message", T: () => SessionId },
|
|
6895
6834
|
{ no: 3, name: "expires_in", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
6896
6835
|
]);
|
|
6897
6836
|
}
|
|
@@ -6906,8 +6845,8 @@ class CompletePasswordResetResponse$Type extends MessageType {
|
|
|
6906
6845
|
while (reader.pos < end) {
|
|
6907
6846
|
let [fieldNo, wireType] = reader.tag();
|
|
6908
6847
|
switch (fieldNo) {
|
|
6909
|
-
case /*
|
|
6910
|
-
message.sessionId = reader.
|
|
6848
|
+
case /* sid.v1.ids.SessionId session_id */ 4:
|
|
6849
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
6911
6850
|
break;
|
|
6912
6851
|
case /* optional int32 expires_in */ 3:
|
|
6913
6852
|
message.expiresIn = reader.int32();
|
|
@@ -6924,12 +6863,12 @@ class CompletePasswordResetResponse$Type extends MessageType {
|
|
|
6924
6863
|
return message;
|
|
6925
6864
|
}
|
|
6926
6865
|
internalBinaryWrite(message, writer, options) {
|
|
6927
|
-
/* optional string session_id = 1; */
|
|
6928
|
-
if (message.sessionId !== undefined)
|
|
6929
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6930
6866
|
/* optional int32 expires_in = 3; */
|
|
6931
6867
|
if (message.expiresIn !== undefined)
|
|
6932
6868
|
writer.tag(3, WireType.Varint).int32(message.expiresIn);
|
|
6869
|
+
/* sid.v1.ids.SessionId session_id = 4; */
|
|
6870
|
+
if (message.sessionId)
|
|
6871
|
+
SessionId.internalBinaryWrite(message.sessionId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
6933
6872
|
let u = options.writeUnknownFields;
|
|
6934
6873
|
if (u !== false)
|
|
6935
6874
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6997,7 +6936,7 @@ export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
|
|
|
6997
6936
|
{ name: "SubmitDynamicPrompt", options: { "google.api.http": { post: "/v1/auth/prompt/{prompt_id}/submit", body: "*" }, "sid.v1.common.retry": { ceremony: "the prompt step is consumed by its first submission: a repeat finds it answered and changes nothing" } }, I: SubmitDynamicPromptRequest, O: SubmitDynamicPromptResponse },
|
|
6998
6937
|
{ name: "RequestStepUp", options: { "google.api.http": { post: "/v1/auth/step-up/request", body: "*" }, "sid.v1.common.retry": { ceremony: "each request opens its own single-use challenge; nothing is elevated before it completes" } }, I: RequestStepUpRequest, O: StepUpChallenge },
|
|
6999
6938
|
{ name: "CompleteStepUp", options: { "google.api.http": { post: "/v1/auth/step-up/complete", body: "*" }, "sid.v1.common.retry": { ceremony: "its proof counts once: a TOTP time step, recovery code or passkey challenge is spent by its first use, so a repeat elevates nothing" } }, I: CompleteStepUpRequest, O: CompleteStepUpResponse },
|
|
7000
|
-
{ name: "DeleteMfaCredential", idempotency: "IDEMPOTENT", options: { "google.api.http": {
|
|
6939
|
+
{ name: "DeleteMfaCredential", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/mfa/credentials:delete", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteMfaCredentialRequest, O: DeleteMfaCredentialResponse },
|
|
7001
6940
|
{ name: "ConfirmAccountDeletion", options: { "google.api.http": { post: "/v1/auth/delete-confirm", body: "*" }, "sid.v1.common.retry": { ceremony: "the deletion confirmation token is single-use: a repeat finds it spent and deletes nothing more" } }, I: ConfirmAccountDeletionRequest, O: ConfirmAccountDeletionResponse },
|
|
7002
6941
|
{ name: "RequestPasswordReset", options: { "google.api.http": { post: "/v1/auth/password/reset/request", body: "*" }, "sid.v1.common.retry": { ceremony: "each request issues its own single-use reset link under the delivery rate limit; no account state changes" } }, I: RequestPasswordResetRequest, O: RequestPasswordResetResponse },
|
|
7003
6942
|
{ name: "VerifyPasswordReset", options: { "google.api.http": { post: "/v1/auth/password/reset/verify", body: "*" }, "sid.v1.common.retry": { ceremony: "the reset link is consumed once into a reset session" } }, I: VerifyPasswordResetRequest, O: VerifyPasswordResetResponse },
|