@structured-id/proto 0.9.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 +15 -0
- package/dist/generated/sid/v1/admin/security.d.ts +17 -0
- package/dist/generated/sid/v1/admin/security.js +17 -1
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/authn/application_session.client.d.ts +45 -2
- package/dist/generated/sid/v1/authn/application_session.client.js +25 -1
- package/dist/generated/sid/v1/authn/application_session.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/application_session.d.ts +24 -0
- package/dist/generated/sid/v1/authn/application_session.js +49 -2
- package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +24 -32
- package/dist/generated/sid/v1/authn/auth.client.js +72 -78
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +207 -264
- package/dist/generated/sid/v1/authn/auth.js +243 -487
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +190 -0
- package/dist/generated/sid/v1/authn/native_session.js +265 -0
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -0
- package/dist/generated/sid/v1/ids/ids.d.ts +16 -0
- package/dist/generated/sid/v1/ids/ids.js +8 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/totp.d.ts +16 -0
- package/dist/totp.js +64 -0
- package/dist/totp.js.map +1 -0
- package/package.json +6 -2
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// @generated from protobuf file "sid/v1/authn/auth.proto" (package "sid.v1.authn", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
|
+
import { RefreshNativeSessionResponse } from "./native_session.js";
|
|
6
|
+
import { RefreshNativeSessionRequest } from "./native_session.js";
|
|
5
7
|
import { Duration } from "../../../google/protobuf/duration.js";
|
|
6
8
|
import { Empty } from "../../../google/protobuf/empty.js";
|
|
7
9
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -9,10 +11,46 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
9
11
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
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";
|
|
12
19
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
20
|
+
import { CredentialId } from "../ids/ids.js";
|
|
13
21
|
import { PasswordRegistrationProof } from "./password_history.js";
|
|
14
22
|
import { PasswordOperationId } from "../ids/ids.js";
|
|
15
23
|
import { PasswordHistoryContext } from "./password_history.js";
|
|
24
|
+
import { SessionId } from "../ids/ids.js";
|
|
25
|
+
import { OpaqueLoginId } from "../ids/ids.js";
|
|
26
|
+
/**
|
|
27
|
+
* The HMAC of a TOTP (RFC 6238 §1.2).
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf enum sid.v1.authn.TotpAlgorithm
|
|
30
|
+
*/
|
|
31
|
+
export var TotpAlgorithm;
|
|
32
|
+
(function (TotpAlgorithm) {
|
|
33
|
+
/**
|
|
34
|
+
* Never sent; a client receiving it cannot enroll.
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf enum value: TOTP_ALGORITHM_UNSPECIFIED = 0;
|
|
37
|
+
*/
|
|
38
|
+
TotpAlgorithm[TotpAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
39
|
+
/**
|
|
40
|
+
* HMAC-SHA-1, what authenticator apps support universally.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf enum value: TOTP_ALGORITHM_SHA1 = 1;
|
|
43
|
+
*/
|
|
44
|
+
TotpAlgorithm[TotpAlgorithm["SHA1"] = 1] = "SHA1";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf enum value: TOTP_ALGORITHM_SHA256 = 2;
|
|
47
|
+
*/
|
|
48
|
+
TotpAlgorithm[TotpAlgorithm["SHA256"] = 2] = "SHA256";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf enum value: TOTP_ALGORITHM_SHA512 = 3;
|
|
51
|
+
*/
|
|
52
|
+
TotpAlgorithm[TotpAlgorithm["SHA512"] = 3] = "SHA512";
|
|
53
|
+
})(TotpAlgorithm || (TotpAlgorithm = {}));
|
|
16
54
|
/**
|
|
17
55
|
* Field type of a dynamic prompt field.
|
|
18
56
|
*
|
|
@@ -98,233 +136,6 @@ export var StepUpMethod;
|
|
|
98
136
|
StepUpMethod[StepUpMethod["RECOVERY_CODE"] = 3] = "RECOVERY_CODE";
|
|
99
137
|
})(StepUpMethod || (StepUpMethod = {}));
|
|
100
138
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
101
|
-
class OpaqueRegistrationStartRequest$Type extends MessageType {
|
|
102
|
-
constructor() {
|
|
103
|
-
super("sid.v1.authn.OpaqueRegistrationStartRequest", [
|
|
104
|
-
{ no: 1, name: "principal", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
105
|
-
{ no: 2, name: "registration_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
106
|
-
{ no: 3, name: "claim_token", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
107
|
-
]);
|
|
108
|
-
}
|
|
109
|
-
create(value) {
|
|
110
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
111
|
-
message.principal = "";
|
|
112
|
-
message.registrationRequest = new Uint8Array(0);
|
|
113
|
-
if (value !== undefined)
|
|
114
|
-
reflectionMergePartial(this, message, value);
|
|
115
|
-
return message;
|
|
116
|
-
}
|
|
117
|
-
internalBinaryRead(reader, length, options, target) {
|
|
118
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
119
|
-
while (reader.pos < end) {
|
|
120
|
-
let [fieldNo, wireType] = reader.tag();
|
|
121
|
-
switch (fieldNo) {
|
|
122
|
-
case /* string principal */ 1:
|
|
123
|
-
message.principal = reader.string();
|
|
124
|
-
break;
|
|
125
|
-
case /* bytes registration_request */ 2:
|
|
126
|
-
message.registrationRequest = reader.bytes();
|
|
127
|
-
break;
|
|
128
|
-
case /* optional string claim_token */ 3:
|
|
129
|
-
message.claimToken = reader.string();
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
let u = options.readUnknownField;
|
|
133
|
-
if (u === "throw")
|
|
134
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
135
|
-
let d = reader.skip(wireType);
|
|
136
|
-
if (u !== false)
|
|
137
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return message;
|
|
141
|
-
}
|
|
142
|
-
internalBinaryWrite(message, writer, options) {
|
|
143
|
-
/* string principal = 1; */
|
|
144
|
-
if (message.principal !== "")
|
|
145
|
-
writer.tag(1, WireType.LengthDelimited).string(message.principal);
|
|
146
|
-
/* bytes registration_request = 2; */
|
|
147
|
-
if (message.registrationRequest.length)
|
|
148
|
-
writer.tag(2, WireType.LengthDelimited).bytes(message.registrationRequest);
|
|
149
|
-
/* optional string claim_token = 3; */
|
|
150
|
-
if (message.claimToken !== undefined)
|
|
151
|
-
writer.tag(3, WireType.LengthDelimited).string(message.claimToken);
|
|
152
|
-
let u = options.writeUnknownFields;
|
|
153
|
-
if (u !== false)
|
|
154
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
155
|
-
return writer;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* @generated MessageType for protobuf message sid.v1.authn.OpaqueRegistrationStartRequest
|
|
160
|
-
*/
|
|
161
|
-
export const OpaqueRegistrationStartRequest = new OpaqueRegistrationStartRequest$Type();
|
|
162
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
163
|
-
class OpaqueRegistrationStartResponse$Type extends MessageType {
|
|
164
|
-
constructor() {
|
|
165
|
-
super("sid.v1.authn.OpaqueRegistrationStartResponse", [
|
|
166
|
-
{ no: 1, name: "registration_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
167
|
-
{ no: 2, name: "server_setup", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
168
|
-
]);
|
|
169
|
-
}
|
|
170
|
-
create(value) {
|
|
171
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
172
|
-
message.registrationResponse = new Uint8Array(0);
|
|
173
|
-
message.serverSetup = "";
|
|
174
|
-
if (value !== undefined)
|
|
175
|
-
reflectionMergePartial(this, message, value);
|
|
176
|
-
return message;
|
|
177
|
-
}
|
|
178
|
-
internalBinaryRead(reader, length, options, target) {
|
|
179
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
180
|
-
while (reader.pos < end) {
|
|
181
|
-
let [fieldNo, wireType] = reader.tag();
|
|
182
|
-
switch (fieldNo) {
|
|
183
|
-
case /* bytes registration_response */ 1:
|
|
184
|
-
message.registrationResponse = reader.bytes();
|
|
185
|
-
break;
|
|
186
|
-
case /* string server_setup */ 2:
|
|
187
|
-
message.serverSetup = reader.string();
|
|
188
|
-
break;
|
|
189
|
-
default:
|
|
190
|
-
let u = options.readUnknownField;
|
|
191
|
-
if (u === "throw")
|
|
192
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
193
|
-
let d = reader.skip(wireType);
|
|
194
|
-
if (u !== false)
|
|
195
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return message;
|
|
199
|
-
}
|
|
200
|
-
internalBinaryWrite(message, writer, options) {
|
|
201
|
-
/* bytes registration_response = 1; */
|
|
202
|
-
if (message.registrationResponse.length)
|
|
203
|
-
writer.tag(1, WireType.LengthDelimited).bytes(message.registrationResponse);
|
|
204
|
-
/* string server_setup = 2; */
|
|
205
|
-
if (message.serverSetup !== "")
|
|
206
|
-
writer.tag(2, WireType.LengthDelimited).string(message.serverSetup);
|
|
207
|
-
let u = options.writeUnknownFields;
|
|
208
|
-
if (u !== false)
|
|
209
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
210
|
-
return writer;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @generated MessageType for protobuf message sid.v1.authn.OpaqueRegistrationStartResponse
|
|
215
|
-
*/
|
|
216
|
-
export const OpaqueRegistrationStartResponse = new OpaqueRegistrationStartResponse$Type();
|
|
217
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
218
|
-
class OpaqueRegistrationFinishRequest$Type extends MessageType {
|
|
219
|
-
constructor() {
|
|
220
|
-
super("sid.v1.authn.OpaqueRegistrationFinishRequest", [
|
|
221
|
-
{ no: 1, name: "principal", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
222
|
-
{ no: 2, name: "registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
223
|
-
{ no: 3, name: "server_setup", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
224
|
-
]);
|
|
225
|
-
}
|
|
226
|
-
create(value) {
|
|
227
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
228
|
-
message.principal = "";
|
|
229
|
-
message.registrationRecord = new Uint8Array(0);
|
|
230
|
-
message.serverSetup = "";
|
|
231
|
-
if (value !== undefined)
|
|
232
|
-
reflectionMergePartial(this, message, value);
|
|
233
|
-
return message;
|
|
234
|
-
}
|
|
235
|
-
internalBinaryRead(reader, length, options, target) {
|
|
236
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
237
|
-
while (reader.pos < end) {
|
|
238
|
-
let [fieldNo, wireType] = reader.tag();
|
|
239
|
-
switch (fieldNo) {
|
|
240
|
-
case /* string principal */ 1:
|
|
241
|
-
message.principal = reader.string();
|
|
242
|
-
break;
|
|
243
|
-
case /* bytes registration_record */ 2:
|
|
244
|
-
message.registrationRecord = reader.bytes();
|
|
245
|
-
break;
|
|
246
|
-
case /* string server_setup */ 3:
|
|
247
|
-
message.serverSetup = reader.string();
|
|
248
|
-
break;
|
|
249
|
-
default:
|
|
250
|
-
let u = options.readUnknownField;
|
|
251
|
-
if (u === "throw")
|
|
252
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
253
|
-
let d = reader.skip(wireType);
|
|
254
|
-
if (u !== false)
|
|
255
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return message;
|
|
259
|
-
}
|
|
260
|
-
internalBinaryWrite(message, writer, options) {
|
|
261
|
-
/* string principal = 1; */
|
|
262
|
-
if (message.principal !== "")
|
|
263
|
-
writer.tag(1, WireType.LengthDelimited).string(message.principal);
|
|
264
|
-
/* bytes registration_record = 2; */
|
|
265
|
-
if (message.registrationRecord.length)
|
|
266
|
-
writer.tag(2, WireType.LengthDelimited).bytes(message.registrationRecord);
|
|
267
|
-
/* string server_setup = 3; */
|
|
268
|
-
if (message.serverSetup !== "")
|
|
269
|
-
writer.tag(3, WireType.LengthDelimited).string(message.serverSetup);
|
|
270
|
-
let u = options.writeUnknownFields;
|
|
271
|
-
if (u !== false)
|
|
272
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
273
|
-
return writer;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* @generated MessageType for protobuf message sid.v1.authn.OpaqueRegistrationFinishRequest
|
|
278
|
-
*/
|
|
279
|
-
export const OpaqueRegistrationFinishRequest = new OpaqueRegistrationFinishRequest$Type();
|
|
280
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
281
|
-
class OpaqueRegistrationFinishResponse$Type extends MessageType {
|
|
282
|
-
constructor() {
|
|
283
|
-
super("sid.v1.authn.OpaqueRegistrationFinishResponse", [
|
|
284
|
-
{ no: 2, name: "credential_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
285
|
-
]);
|
|
286
|
-
}
|
|
287
|
-
create(value) {
|
|
288
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
289
|
-
message.credentialId = "";
|
|
290
|
-
if (value !== undefined)
|
|
291
|
-
reflectionMergePartial(this, message, value);
|
|
292
|
-
return message;
|
|
293
|
-
}
|
|
294
|
-
internalBinaryRead(reader, length, options, target) {
|
|
295
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
296
|
-
while (reader.pos < end) {
|
|
297
|
-
let [fieldNo, wireType] = reader.tag();
|
|
298
|
-
switch (fieldNo) {
|
|
299
|
-
case /* string credential_id */ 2:
|
|
300
|
-
message.credentialId = reader.string();
|
|
301
|
-
break;
|
|
302
|
-
default:
|
|
303
|
-
let u = options.readUnknownField;
|
|
304
|
-
if (u === "throw")
|
|
305
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
306
|
-
let d = reader.skip(wireType);
|
|
307
|
-
if (u !== false)
|
|
308
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return message;
|
|
312
|
-
}
|
|
313
|
-
internalBinaryWrite(message, writer, options) {
|
|
314
|
-
/* string credential_id = 2; */
|
|
315
|
-
if (message.credentialId !== "")
|
|
316
|
-
writer.tag(2, WireType.LengthDelimited).string(message.credentialId);
|
|
317
|
-
let u = options.writeUnknownFields;
|
|
318
|
-
if (u !== false)
|
|
319
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
320
|
-
return writer;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* @generated MessageType for protobuf message sid.v1.authn.OpaqueRegistrationFinishResponse
|
|
325
|
-
*/
|
|
326
|
-
export const OpaqueRegistrationFinishResponse = new OpaqueRegistrationFinishResponse$Type();
|
|
327
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
328
139
|
class OpaqueLoginStartRequest$Type extends MessageType {
|
|
329
140
|
constructor() {
|
|
330
141
|
super("sid.v1.authn.OpaqueLoginStartRequest", [
|
|
@@ -384,13 +195,12 @@ class OpaqueLoginStartResponse$Type extends MessageType {
|
|
|
384
195
|
constructor() {
|
|
385
196
|
super("sid.v1.authn.OpaqueLoginStartResponse", [
|
|
386
197
|
{ no: 1, name: "credential_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
387
|
-
{ no:
|
|
198
|
+
{ no: 3, name: "login_id", kind: "message", T: () => OpaqueLoginId }
|
|
388
199
|
]);
|
|
389
200
|
}
|
|
390
201
|
create(value) {
|
|
391
202
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
392
203
|
message.credentialResponse = new Uint8Array(0);
|
|
393
|
-
message.serverLoginState = "";
|
|
394
204
|
if (value !== undefined)
|
|
395
205
|
reflectionMergePartial(this, message, value);
|
|
396
206
|
return message;
|
|
@@ -403,8 +213,8 @@ class OpaqueLoginStartResponse$Type extends MessageType {
|
|
|
403
213
|
case /* bytes credential_response */ 1:
|
|
404
214
|
message.credentialResponse = reader.bytes();
|
|
405
215
|
break;
|
|
406
|
-
case /*
|
|
407
|
-
message.
|
|
216
|
+
case /* sid.v1.ids.OpaqueLoginId login_id */ 3:
|
|
217
|
+
message.loginId = OpaqueLoginId.internalBinaryRead(reader, reader.uint32(), options, message.loginId);
|
|
408
218
|
break;
|
|
409
219
|
default:
|
|
410
220
|
let u = options.readUnknownField;
|
|
@@ -421,9 +231,9 @@ class OpaqueLoginStartResponse$Type extends MessageType {
|
|
|
421
231
|
/* bytes credential_response = 1; */
|
|
422
232
|
if (message.credentialResponse.length)
|
|
423
233
|
writer.tag(1, WireType.LengthDelimited).bytes(message.credentialResponse);
|
|
424
|
-
/*
|
|
425
|
-
if (message.
|
|
426
|
-
writer.tag(
|
|
234
|
+
/* sid.v1.ids.OpaqueLoginId login_id = 3; */
|
|
235
|
+
if (message.loginId)
|
|
236
|
+
OpaqueLoginId.internalBinaryWrite(message.loginId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
427
237
|
let u = options.writeUnknownFields;
|
|
428
238
|
if (u !== false)
|
|
429
239
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -440,14 +250,13 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
|
|
|
440
250
|
super("sid.v1.authn.OpaqueLoginFinishRequest", [
|
|
441
251
|
{ no: 1, name: "principal", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
442
252
|
{ no: 2, name: "credential_finalization", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
443
|
-
{ no:
|
|
253
|
+
{ no: 4, name: "login_id", kind: "message", T: () => OpaqueLoginId }
|
|
444
254
|
]);
|
|
445
255
|
}
|
|
446
256
|
create(value) {
|
|
447
257
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
448
258
|
message.principal = "";
|
|
449
259
|
message.credentialFinalization = new Uint8Array(0);
|
|
450
|
-
message.serverLoginState = "";
|
|
451
260
|
if (value !== undefined)
|
|
452
261
|
reflectionMergePartial(this, message, value);
|
|
453
262
|
return message;
|
|
@@ -463,8 +272,8 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
|
|
|
463
272
|
case /* bytes credential_finalization */ 2:
|
|
464
273
|
message.credentialFinalization = reader.bytes();
|
|
465
274
|
break;
|
|
466
|
-
case /*
|
|
467
|
-
message.
|
|
275
|
+
case /* sid.v1.ids.OpaqueLoginId login_id */ 4:
|
|
276
|
+
message.loginId = OpaqueLoginId.internalBinaryRead(reader, reader.uint32(), options, message.loginId);
|
|
468
277
|
break;
|
|
469
278
|
default:
|
|
470
279
|
let u = options.readUnknownField;
|
|
@@ -484,9 +293,9 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
|
|
|
484
293
|
/* bytes credential_finalization = 2; */
|
|
485
294
|
if (message.credentialFinalization.length)
|
|
486
295
|
writer.tag(2, WireType.LengthDelimited).bytes(message.credentialFinalization);
|
|
487
|
-
/*
|
|
488
|
-
if (message.
|
|
489
|
-
writer.tag(
|
|
296
|
+
/* sid.v1.ids.OpaqueLoginId login_id = 4; */
|
|
297
|
+
if (message.loginId)
|
|
298
|
+
OpaqueLoginId.internalBinaryWrite(message.loginId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
490
299
|
let u = options.writeUnknownFields;
|
|
491
300
|
if (u !== false)
|
|
492
301
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -501,7 +310,7 @@ export const OpaqueLoginFinishRequest = new OpaqueLoginFinishRequest$Type();
|
|
|
501
310
|
class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
502
311
|
constructor() {
|
|
503
312
|
super("sid.v1.authn.OpaqueLoginFinishResponse", [
|
|
504
|
-
{ no:
|
|
313
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
505
314
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
506
315
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
507
316
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -510,7 +319,6 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
510
319
|
}
|
|
511
320
|
create(value) {
|
|
512
321
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
513
|
-
message.sessionId = "";
|
|
514
322
|
message.expiresIn = 0n;
|
|
515
323
|
message.secondFactors = [];
|
|
516
324
|
message.enrollableFactors = [];
|
|
@@ -523,8 +331,8 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
523
331
|
while (reader.pos < end) {
|
|
524
332
|
let [fieldNo, wireType] = reader.tag();
|
|
525
333
|
switch (fieldNo) {
|
|
526
|
-
case /*
|
|
527
|
-
message.sessionId = reader.
|
|
334
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
335
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
528
336
|
break;
|
|
529
337
|
case /* int64 expires_in */ 3:
|
|
530
338
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -558,9 +366,6 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
558
366
|
return message;
|
|
559
367
|
}
|
|
560
368
|
internalBinaryWrite(message, writer, options) {
|
|
561
|
-
/* string session_id = 1; */
|
|
562
|
-
if (message.sessionId !== "")
|
|
563
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
564
369
|
/* int64 expires_in = 3; */
|
|
565
370
|
if (message.expiresIn !== 0n)
|
|
566
371
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -581,6 +386,9 @@ class OpaqueLoginFinishResponse$Type extends MessageType {
|
|
|
581
386
|
writer.int32(message.enrollableFactors[i]);
|
|
582
387
|
writer.join();
|
|
583
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();
|
|
584
392
|
let u = options.writeUnknownFields;
|
|
585
393
|
if (u !== false)
|
|
586
394
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -779,12 +587,11 @@ export const OpaqueZkppRegistrationFinishRequest = new OpaqueZkppRegistrationFin
|
|
|
779
587
|
class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
780
588
|
constructor() {
|
|
781
589
|
super("sid.v1.authn.OpaqueZkppRegistrationFinishResponse", [
|
|
782
|
-
{ no:
|
|
590
|
+
{ no: 3, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
783
591
|
]);
|
|
784
592
|
}
|
|
785
593
|
create(value) {
|
|
786
594
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
787
|
-
message.credentialId = "";
|
|
788
595
|
if (value !== undefined)
|
|
789
596
|
reflectionMergePartial(this, message, value);
|
|
790
597
|
return message;
|
|
@@ -794,8 +601,8 @@ class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
|
794
601
|
while (reader.pos < end) {
|
|
795
602
|
let [fieldNo, wireType] = reader.tag();
|
|
796
603
|
switch (fieldNo) {
|
|
797
|
-
case /*
|
|
798
|
-
message.credentialId = reader.
|
|
604
|
+
case /* sid.v1.ids.CredentialId credential_id */ 3:
|
|
605
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
799
606
|
break;
|
|
800
607
|
default:
|
|
801
608
|
let u = options.readUnknownField;
|
|
@@ -809,9 +616,9 @@ class OpaqueZkppRegistrationFinishResponse$Type extends MessageType {
|
|
|
809
616
|
return message;
|
|
810
617
|
}
|
|
811
618
|
internalBinaryWrite(message, writer, options) {
|
|
812
|
-
/*
|
|
813
|
-
if (message.credentialId
|
|
814
|
-
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();
|
|
815
622
|
let u = options.writeUnknownFields;
|
|
816
623
|
if (u !== false)
|
|
817
624
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -826,14 +633,13 @@ export const OpaqueZkppRegistrationFinishResponse = new OpaqueZkppRegistrationFi
|
|
|
826
633
|
class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
827
634
|
constructor() {
|
|
828
635
|
super("sid.v1.authn.PasswordChangeChallengeRequest", [
|
|
829
|
-
{ no:
|
|
636
|
+
{ no: 4, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
830
637
|
{ no: 2, name: "credential_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
831
638
|
{ no: 3, name: "registration_request", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
832
639
|
]);
|
|
833
640
|
}
|
|
834
641
|
create(value) {
|
|
835
642
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
836
|
-
message.credentialId = "";
|
|
837
643
|
message.credentialRequest = new Uint8Array(0);
|
|
838
644
|
message.registrationRequest = new Uint8Array(0);
|
|
839
645
|
if (value !== undefined)
|
|
@@ -845,8 +651,8 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
845
651
|
while (reader.pos < end) {
|
|
846
652
|
let [fieldNo, wireType] = reader.tag();
|
|
847
653
|
switch (fieldNo) {
|
|
848
|
-
case /*
|
|
849
|
-
message.credentialId = reader.
|
|
654
|
+
case /* sid.v1.ids.CredentialId credential_id */ 4:
|
|
655
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
850
656
|
break;
|
|
851
657
|
case /* bytes credential_request */ 2:
|
|
852
658
|
message.credentialRequest = reader.bytes();
|
|
@@ -866,15 +672,15 @@ class PasswordChangeChallengeRequest$Type extends MessageType {
|
|
|
866
672
|
return message;
|
|
867
673
|
}
|
|
868
674
|
internalBinaryWrite(message, writer, options) {
|
|
869
|
-
/* string credential_id = 1; */
|
|
870
|
-
if (message.credentialId !== "")
|
|
871
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
872
675
|
/* bytes credential_request = 2; */
|
|
873
676
|
if (message.credentialRequest.length)
|
|
874
677
|
writer.tag(2, WireType.LengthDelimited).bytes(message.credentialRequest);
|
|
875
678
|
/* bytes registration_request = 3; */
|
|
876
679
|
if (message.registrationRequest.length)
|
|
877
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();
|
|
878
684
|
let u = options.writeUnknownFields;
|
|
879
685
|
if (u !== false)
|
|
880
686
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -944,13 +750,12 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
944
750
|
constructor() {
|
|
945
751
|
super("sid.v1.authn.PasswordChangeExecuteRequest", [
|
|
946
752
|
{ no: 9, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
947
|
-
{ no:
|
|
753
|
+
{ no: 11, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
948
754
|
{ no: 10, name: "credential_finalization", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
949
755
|
]);
|
|
950
756
|
}
|
|
951
757
|
create(value) {
|
|
952
758
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
953
|
-
message.credentialId = "";
|
|
954
759
|
message.credentialFinalization = new Uint8Array(0);
|
|
955
760
|
if (value !== undefined)
|
|
956
761
|
reflectionMergePartial(this, message, value);
|
|
@@ -964,8 +769,8 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
964
769
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 9:
|
|
965
770
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
966
771
|
break;
|
|
967
|
-
case /*
|
|
968
|
-
message.credentialId = reader.
|
|
772
|
+
case /* sid.v1.ids.CredentialId credential_id */ 11:
|
|
773
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
969
774
|
break;
|
|
970
775
|
case /* bytes credential_finalization */ 10:
|
|
971
776
|
message.credentialFinalization = reader.bytes();
|
|
@@ -982,15 +787,15 @@ class PasswordChangeExecuteRequest$Type extends MessageType {
|
|
|
982
787
|
return message;
|
|
983
788
|
}
|
|
984
789
|
internalBinaryWrite(message, writer, options) {
|
|
985
|
-
/* string credential_id = 1; */
|
|
986
|
-
if (message.credentialId !== "")
|
|
987
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
988
790
|
/* sid.v1.ids.PasswordOperationId operation_id = 9; */
|
|
989
791
|
if (message.operationId)
|
|
990
792
|
PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
991
793
|
/* bytes credential_finalization = 10; */
|
|
992
794
|
if (message.credentialFinalization.length)
|
|
993
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();
|
|
994
799
|
let u = options.writeUnknownFields;
|
|
995
800
|
if (u !== false)
|
|
996
801
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1053,14 +858,13 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
1053
858
|
constructor() {
|
|
1054
859
|
super("sid.v1.authn.PasswordChangeFinishRequest", [
|
|
1055
860
|
{ no: 4, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
1056
|
-
{ no:
|
|
861
|
+
{ no: 6, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
1057
862
|
{ no: 3, name: "registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1058
863
|
{ no: 5, name: "proof", kind: "message", T: () => PasswordRegistrationProof }
|
|
1059
864
|
]);
|
|
1060
865
|
}
|
|
1061
866
|
create(value) {
|
|
1062
867
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1063
|
-
message.credentialId = "";
|
|
1064
868
|
message.registrationRecord = new Uint8Array(0);
|
|
1065
869
|
if (value !== undefined)
|
|
1066
870
|
reflectionMergePartial(this, message, value);
|
|
@@ -1074,8 +878,8 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
1074
878
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 4:
|
|
1075
879
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
1076
880
|
break;
|
|
1077
|
-
case /*
|
|
1078
|
-
message.credentialId = reader.
|
|
881
|
+
case /* sid.v1.ids.CredentialId credential_id */ 6:
|
|
882
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
1079
883
|
break;
|
|
1080
884
|
case /* bytes registration_record */ 3:
|
|
1081
885
|
message.registrationRecord = reader.bytes();
|
|
@@ -1095,9 +899,6 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
1095
899
|
return message;
|
|
1096
900
|
}
|
|
1097
901
|
internalBinaryWrite(message, writer, options) {
|
|
1098
|
-
/* string credential_id = 1; */
|
|
1099
|
-
if (message.credentialId !== "")
|
|
1100
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
1101
902
|
/* bytes registration_record = 3; */
|
|
1102
903
|
if (message.registrationRecord.length)
|
|
1103
904
|
writer.tag(3, WireType.LengthDelimited).bytes(message.registrationRecord);
|
|
@@ -1107,6 +908,9 @@ class PasswordChangeFinishRequest$Type extends MessageType {
|
|
|
1107
908
|
/* sid.v1.authn.PasswordRegistrationProof proof = 5; */
|
|
1108
909
|
if (message.proof)
|
|
1109
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();
|
|
1110
914
|
let u = options.writeUnknownFields;
|
|
1111
915
|
if (u !== false)
|
|
1112
916
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1276,12 +1080,11 @@ export const WebAuthnRegistrationFinishRequest = new WebAuthnRegistrationFinishR
|
|
|
1276
1080
|
class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
1277
1081
|
constructor() {
|
|
1278
1082
|
super("sid.v1.authn.WebAuthnRegistrationFinishResponse", [
|
|
1279
|
-
{ no:
|
|
1083
|
+
{ no: 2, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
1280
1084
|
]);
|
|
1281
1085
|
}
|
|
1282
1086
|
create(value) {
|
|
1283
1087
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1284
|
-
message.credentialId = "";
|
|
1285
1088
|
if (value !== undefined)
|
|
1286
1089
|
reflectionMergePartial(this, message, value);
|
|
1287
1090
|
return message;
|
|
@@ -1291,8 +1094,8 @@ class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
|
1291
1094
|
while (reader.pos < end) {
|
|
1292
1095
|
let [fieldNo, wireType] = reader.tag();
|
|
1293
1096
|
switch (fieldNo) {
|
|
1294
|
-
case /*
|
|
1295
|
-
message.credentialId = reader.
|
|
1097
|
+
case /* sid.v1.ids.CredentialId credential_id */ 2:
|
|
1098
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
1296
1099
|
break;
|
|
1297
1100
|
default:
|
|
1298
1101
|
let u = options.readUnknownField;
|
|
@@ -1306,9 +1109,9 @@ class WebAuthnRegistrationFinishResponse$Type extends MessageType {
|
|
|
1306
1109
|
return message;
|
|
1307
1110
|
}
|
|
1308
1111
|
internalBinaryWrite(message, writer, options) {
|
|
1309
|
-
/*
|
|
1310
|
-
if (message.credentialId
|
|
1311
|
-
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();
|
|
1312
1115
|
let u = options.writeUnknownFields;
|
|
1313
1116
|
if (u !== false)
|
|
1314
1117
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1370,15 +1173,13 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1370
1173
|
constructor() {
|
|
1371
1174
|
super("sid.v1.authn.WebAuthnAuthenticationStartResponse", [
|
|
1372
1175
|
{ no: 1, name: "challenge", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1373
|
-
{ no: 2, name: "options", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1374
|
-
{ no: 3, name: "state_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1176
|
+
{ no: 2, name: "options", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1375
1177
|
]);
|
|
1376
1178
|
}
|
|
1377
1179
|
create(value) {
|
|
1378
1180
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1379
1181
|
message.challenge = new Uint8Array(0);
|
|
1380
1182
|
message.options = new Uint8Array(0);
|
|
1381
|
-
message.stateKey = "";
|
|
1382
1183
|
if (value !== undefined)
|
|
1383
1184
|
reflectionMergePartial(this, message, value);
|
|
1384
1185
|
return message;
|
|
@@ -1394,9 +1195,6 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1394
1195
|
case /* bytes options */ 2:
|
|
1395
1196
|
message.options = reader.bytes();
|
|
1396
1197
|
break;
|
|
1397
|
-
case /* string state_key */ 3:
|
|
1398
|
-
message.stateKey = reader.string();
|
|
1399
|
-
break;
|
|
1400
1198
|
default:
|
|
1401
1199
|
let u = options.readUnknownField;
|
|
1402
1200
|
if (u === "throw")
|
|
@@ -1415,9 +1213,6 @@ class WebAuthnAuthenticationStartResponse$Type extends MessageType {
|
|
|
1415
1213
|
/* bytes options = 2; */
|
|
1416
1214
|
if (message.options.length)
|
|
1417
1215
|
writer.tag(2, WireType.LengthDelimited).bytes(message.options);
|
|
1418
|
-
/* string state_key = 3; */
|
|
1419
|
-
if (message.stateKey !== "")
|
|
1420
|
-
writer.tag(3, WireType.LengthDelimited).string(message.stateKey);
|
|
1421
1216
|
let u = options.writeUnknownFields;
|
|
1422
1217
|
if (u !== false)
|
|
1423
1218
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1433,8 +1228,7 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1433
1228
|
constructor() {
|
|
1434
1229
|
super("sid.v1.authn.WebAuthnAuthenticationFinishRequest", [
|
|
1435
1230
|
{ no: 1, name: "principal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1436
|
-
{ no: 2, name: "credential", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1437
|
-
{ no: 3, name: "state_key", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1231
|
+
{ no: 2, name: "credential", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1438
1232
|
]);
|
|
1439
1233
|
}
|
|
1440
1234
|
create(value) {
|
|
@@ -1455,9 +1249,6 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1455
1249
|
case /* bytes credential */ 2:
|
|
1456
1250
|
message.credential = reader.bytes();
|
|
1457
1251
|
break;
|
|
1458
|
-
case /* optional string state_key */ 3:
|
|
1459
|
-
message.stateKey = reader.string();
|
|
1460
|
-
break;
|
|
1461
1252
|
default:
|
|
1462
1253
|
let u = options.readUnknownField;
|
|
1463
1254
|
if (u === "throw")
|
|
@@ -1476,9 +1267,6 @@ class WebAuthnAuthenticationFinishRequest$Type extends MessageType {
|
|
|
1476
1267
|
/* bytes credential = 2; */
|
|
1477
1268
|
if (message.credential.length)
|
|
1478
1269
|
writer.tag(2, WireType.LengthDelimited).bytes(message.credential);
|
|
1479
|
-
/* optional string state_key = 3; */
|
|
1480
|
-
if (message.stateKey !== undefined)
|
|
1481
|
-
writer.tag(3, WireType.LengthDelimited).string(message.stateKey);
|
|
1482
1270
|
let u = options.writeUnknownFields;
|
|
1483
1271
|
if (u !== false)
|
|
1484
1272
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1493,7 +1281,7 @@ export const WebAuthnAuthenticationFinishRequest = new WebAuthnAuthenticationFin
|
|
|
1493
1281
|
class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
1494
1282
|
constructor() {
|
|
1495
1283
|
super("sid.v1.authn.WebAuthnAuthenticationFinishResponse", [
|
|
1496
|
-
{ no:
|
|
1284
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
1497
1285
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1498
1286
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
1499
1287
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1502,7 +1290,6 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1502
1290
|
}
|
|
1503
1291
|
create(value) {
|
|
1504
1292
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1505
|
-
message.sessionId = "";
|
|
1506
1293
|
message.expiresIn = 0n;
|
|
1507
1294
|
message.secondFactors = [];
|
|
1508
1295
|
message.enrollableFactors = [];
|
|
@@ -1515,8 +1302,8 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1515
1302
|
while (reader.pos < end) {
|
|
1516
1303
|
let [fieldNo, wireType] = reader.tag();
|
|
1517
1304
|
switch (fieldNo) {
|
|
1518
|
-
case /*
|
|
1519
|
-
message.sessionId = reader.
|
|
1305
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
1306
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
1520
1307
|
break;
|
|
1521
1308
|
case /* int64 expires_in */ 3:
|
|
1522
1309
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -1550,9 +1337,6 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1550
1337
|
return message;
|
|
1551
1338
|
}
|
|
1552
1339
|
internalBinaryWrite(message, writer, options) {
|
|
1553
|
-
/* string session_id = 1; */
|
|
1554
|
-
if (message.sessionId !== "")
|
|
1555
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
1556
1340
|
/* int64 expires_in = 3; */
|
|
1557
1341
|
if (message.expiresIn !== 0n)
|
|
1558
1342
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -1573,6 +1357,9 @@ class WebAuthnAuthenticationFinishResponse$Type extends MessageType {
|
|
|
1573
1357
|
writer.int32(message.enrollableFactors[i]);
|
|
1574
1358
|
writer.join();
|
|
1575
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();
|
|
1576
1363
|
let u = options.writeUnknownFields;
|
|
1577
1364
|
if (u !== false)
|
|
1578
1365
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2468,12 +2255,11 @@ export const OAuth2RevokeResponse = new OAuth2RevokeResponse$Type();
|
|
|
2468
2255
|
class ValidateSessionRequest$Type extends MessageType {
|
|
2469
2256
|
constructor() {
|
|
2470
2257
|
super("sid.v1.authn.ValidateSessionRequest", [
|
|
2471
|
-
{ no:
|
|
2258
|
+
{ no: 2, name: "session_id", kind: "message", T: () => SessionId }
|
|
2472
2259
|
]);
|
|
2473
2260
|
}
|
|
2474
2261
|
create(value) {
|
|
2475
2262
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2476
|
-
message.sessionId = "";
|
|
2477
2263
|
if (value !== undefined)
|
|
2478
2264
|
reflectionMergePartial(this, message, value);
|
|
2479
2265
|
return message;
|
|
@@ -2483,8 +2269,8 @@ class ValidateSessionRequest$Type extends MessageType {
|
|
|
2483
2269
|
while (reader.pos < end) {
|
|
2484
2270
|
let [fieldNo, wireType] = reader.tag();
|
|
2485
2271
|
switch (fieldNo) {
|
|
2486
|
-
case /*
|
|
2487
|
-
message.sessionId = reader.
|
|
2272
|
+
case /* sid.v1.ids.SessionId session_id */ 2:
|
|
2273
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
2488
2274
|
break;
|
|
2489
2275
|
default:
|
|
2490
2276
|
let u = options.readUnknownField;
|
|
@@ -2498,9 +2284,9 @@ class ValidateSessionRequest$Type extends MessageType {
|
|
|
2498
2284
|
return message;
|
|
2499
2285
|
}
|
|
2500
2286
|
internalBinaryWrite(message, writer, options) {
|
|
2501
|
-
/*
|
|
2502
|
-
if (message.sessionId
|
|
2503
|
-
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();
|
|
2504
2290
|
let u = options.writeUnknownFields;
|
|
2505
2291
|
if (u !== false)
|
|
2506
2292
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2941,13 +2727,12 @@ export const RequestMagicLinkRequest = new RequestMagicLinkRequest$Type();
|
|
|
2941
2727
|
class RequestMagicLinkResponse$Type extends MessageType {
|
|
2942
2728
|
constructor() {
|
|
2943
2729
|
super("sid.v1.authn.RequestMagicLinkResponse", [
|
|
2944
|
-
{ no:
|
|
2730
|
+
{ no: 3, name: "magic_link_id", kind: "message", T: () => MagicLinkId },
|
|
2945
2731
|
{ no: 2, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
2946
2732
|
]);
|
|
2947
2733
|
}
|
|
2948
2734
|
create(value) {
|
|
2949
2735
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2950
|
-
message.sessionId = "";
|
|
2951
2736
|
message.expiresIn = 0;
|
|
2952
2737
|
if (value !== undefined)
|
|
2953
2738
|
reflectionMergePartial(this, message, value);
|
|
@@ -2958,8 +2743,8 @@ class RequestMagicLinkResponse$Type extends MessageType {
|
|
|
2958
2743
|
while (reader.pos < end) {
|
|
2959
2744
|
let [fieldNo, wireType] = reader.tag();
|
|
2960
2745
|
switch (fieldNo) {
|
|
2961
|
-
case /*
|
|
2962
|
-
message.
|
|
2746
|
+
case /* sid.v1.ids.MagicLinkId magic_link_id */ 3:
|
|
2747
|
+
message.magicLinkId = MagicLinkId.internalBinaryRead(reader, reader.uint32(), options, message.magicLinkId);
|
|
2963
2748
|
break;
|
|
2964
2749
|
case /* int32 expires_in */ 2:
|
|
2965
2750
|
message.expiresIn = reader.int32();
|
|
@@ -2976,12 +2761,12 @@ class RequestMagicLinkResponse$Type extends MessageType {
|
|
|
2976
2761
|
return message;
|
|
2977
2762
|
}
|
|
2978
2763
|
internalBinaryWrite(message, writer, options) {
|
|
2979
|
-
/* string session_id = 1; */
|
|
2980
|
-
if (message.sessionId !== "")
|
|
2981
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
2982
2764
|
/* int32 expires_in = 2; */
|
|
2983
2765
|
if (message.expiresIn !== 0)
|
|
2984
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();
|
|
2985
2770
|
let u = options.writeUnknownFields;
|
|
2986
2771
|
if (u !== false)
|
|
2987
2772
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2996,13 +2781,12 @@ export const RequestMagicLinkResponse = new RequestMagicLinkResponse$Type();
|
|
|
2996
2781
|
class VerifyMagicLinkRequest$Type extends MessageType {
|
|
2997
2782
|
constructor() {
|
|
2998
2783
|
super("sid.v1.authn.VerifyMagicLinkRequest", [
|
|
2999
|
-
{ no:
|
|
2784
|
+
{ no: 3, name: "magic_link_id", kind: "message", T: () => MagicLinkId },
|
|
3000
2785
|
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3001
2786
|
]);
|
|
3002
2787
|
}
|
|
3003
2788
|
create(value) {
|
|
3004
2789
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3005
|
-
message.sessionId = "";
|
|
3006
2790
|
message.token = "";
|
|
3007
2791
|
if (value !== undefined)
|
|
3008
2792
|
reflectionMergePartial(this, message, value);
|
|
@@ -3013,8 +2797,8 @@ class VerifyMagicLinkRequest$Type extends MessageType {
|
|
|
3013
2797
|
while (reader.pos < end) {
|
|
3014
2798
|
let [fieldNo, wireType] = reader.tag();
|
|
3015
2799
|
switch (fieldNo) {
|
|
3016
|
-
case /*
|
|
3017
|
-
message.
|
|
2800
|
+
case /* sid.v1.ids.MagicLinkId magic_link_id */ 3:
|
|
2801
|
+
message.magicLinkId = MagicLinkId.internalBinaryRead(reader, reader.uint32(), options, message.magicLinkId);
|
|
3018
2802
|
break;
|
|
3019
2803
|
case /* string token */ 2:
|
|
3020
2804
|
message.token = reader.string();
|
|
@@ -3031,12 +2815,12 @@ class VerifyMagicLinkRequest$Type extends MessageType {
|
|
|
3031
2815
|
return message;
|
|
3032
2816
|
}
|
|
3033
2817
|
internalBinaryWrite(message, writer, options) {
|
|
3034
|
-
/* string session_id = 1; */
|
|
3035
|
-
if (message.sessionId !== "")
|
|
3036
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
3037
2818
|
/* string token = 2; */
|
|
3038
2819
|
if (message.token !== "")
|
|
3039
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();
|
|
3040
2824
|
let u = options.writeUnknownFields;
|
|
3041
2825
|
if (u !== false)
|
|
3042
2826
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3051,13 +2835,12 @@ export const VerifyMagicLinkRequest = new VerifyMagicLinkRequest$Type();
|
|
|
3051
2835
|
class VerifyMagicLinkResponse$Type extends MessageType {
|
|
3052
2836
|
constructor() {
|
|
3053
2837
|
super("sid.v1.authn.VerifyMagicLinkResponse", [
|
|
3054
|
-
{ no:
|
|
2838
|
+
{ no: 4, name: "session_id", kind: "message", T: () => SessionId },
|
|
3055
2839
|
{ no: 3, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
3056
2840
|
]);
|
|
3057
2841
|
}
|
|
3058
2842
|
create(value) {
|
|
3059
2843
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3060
|
-
message.sessionId = "";
|
|
3061
2844
|
message.expiresIn = 0;
|
|
3062
2845
|
if (value !== undefined)
|
|
3063
2846
|
reflectionMergePartial(this, message, value);
|
|
@@ -3068,8 +2851,8 @@ class VerifyMagicLinkResponse$Type extends MessageType {
|
|
|
3068
2851
|
while (reader.pos < end) {
|
|
3069
2852
|
let [fieldNo, wireType] = reader.tag();
|
|
3070
2853
|
switch (fieldNo) {
|
|
3071
|
-
case /*
|
|
3072
|
-
message.sessionId = reader.
|
|
2854
|
+
case /* sid.v1.ids.SessionId session_id */ 4:
|
|
2855
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
3073
2856
|
break;
|
|
3074
2857
|
case /* int32 expires_in */ 3:
|
|
3075
2858
|
message.expiresIn = reader.int32();
|
|
@@ -3086,12 +2869,12 @@ class VerifyMagicLinkResponse$Type extends MessageType {
|
|
|
3086
2869
|
return message;
|
|
3087
2870
|
}
|
|
3088
2871
|
internalBinaryWrite(message, writer, options) {
|
|
3089
|
-
/* string session_id = 1; */
|
|
3090
|
-
if (message.sessionId !== "")
|
|
3091
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
3092
2872
|
/* int32 expires_in = 3; */
|
|
3093
2873
|
if (message.expiresIn !== 0)
|
|
3094
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();
|
|
3095
2878
|
let u = options.writeUnknownFields;
|
|
3096
2879
|
if (u !== false)
|
|
3097
2880
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3263,13 +3046,12 @@ export const LegacyMigrateStartRequest = new LegacyMigrateStartRequest$Type();
|
|
|
3263
3046
|
class LegacyMigrateStartResponse$Type extends MessageType {
|
|
3264
3047
|
constructor() {
|
|
3265
3048
|
super("sid.v1.authn.LegacyMigrateStartResponse", [
|
|
3266
|
-
{ no:
|
|
3049
|
+
{ no: 3, name: "upgrade_id", kind: "message", T: () => ImportedPasswordUpgradeId },
|
|
3267
3050
|
{ no: 2, name: "opaque_registration_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
3268
3051
|
]);
|
|
3269
3052
|
}
|
|
3270
3053
|
create(value) {
|
|
3271
3054
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3272
|
-
message.migrationToken = "";
|
|
3273
3055
|
message.opaqueRegistrationResponse = new Uint8Array(0);
|
|
3274
3056
|
if (value !== undefined)
|
|
3275
3057
|
reflectionMergePartial(this, message, value);
|
|
@@ -3280,8 +3062,8 @@ class LegacyMigrateStartResponse$Type extends MessageType {
|
|
|
3280
3062
|
while (reader.pos < end) {
|
|
3281
3063
|
let [fieldNo, wireType] = reader.tag();
|
|
3282
3064
|
switch (fieldNo) {
|
|
3283
|
-
case /*
|
|
3284
|
-
message.
|
|
3065
|
+
case /* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id */ 3:
|
|
3066
|
+
message.upgradeId = ImportedPasswordUpgradeId.internalBinaryRead(reader, reader.uint32(), options, message.upgradeId);
|
|
3285
3067
|
break;
|
|
3286
3068
|
case /* bytes opaque_registration_response */ 2:
|
|
3287
3069
|
message.opaqueRegistrationResponse = reader.bytes();
|
|
@@ -3298,12 +3080,12 @@ class LegacyMigrateStartResponse$Type extends MessageType {
|
|
|
3298
3080
|
return message;
|
|
3299
3081
|
}
|
|
3300
3082
|
internalBinaryWrite(message, writer, options) {
|
|
3301
|
-
/* string migration_token = 1; */
|
|
3302
|
-
if (message.migrationToken !== "")
|
|
3303
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationToken);
|
|
3304
3083
|
/* bytes opaque_registration_response = 2; */
|
|
3305
3084
|
if (message.opaqueRegistrationResponse.length)
|
|
3306
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();
|
|
3307
3089
|
let u = options.writeUnknownFields;
|
|
3308
3090
|
if (u !== false)
|
|
3309
3091
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3318,13 +3100,12 @@ export const LegacyMigrateStartResponse = new LegacyMigrateStartResponse$Type();
|
|
|
3318
3100
|
class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
3319
3101
|
constructor() {
|
|
3320
3102
|
super("sid.v1.authn.LegacyMigrateFinishRequest", [
|
|
3321
|
-
{ no:
|
|
3103
|
+
{ no: 3, name: "upgrade_id", kind: "message", T: () => ImportedPasswordUpgradeId },
|
|
3322
3104
|
{ no: 2, name: "opaque_registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
3323
3105
|
]);
|
|
3324
3106
|
}
|
|
3325
3107
|
create(value) {
|
|
3326
3108
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3327
|
-
message.migrationToken = "";
|
|
3328
3109
|
message.opaqueRegistrationRecord = new Uint8Array(0);
|
|
3329
3110
|
if (value !== undefined)
|
|
3330
3111
|
reflectionMergePartial(this, message, value);
|
|
@@ -3335,8 +3116,8 @@ class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
|
3335
3116
|
while (reader.pos < end) {
|
|
3336
3117
|
let [fieldNo, wireType] = reader.tag();
|
|
3337
3118
|
switch (fieldNo) {
|
|
3338
|
-
case /*
|
|
3339
|
-
message.
|
|
3119
|
+
case /* sid.v1.ids.ImportedPasswordUpgradeId upgrade_id */ 3:
|
|
3120
|
+
message.upgradeId = ImportedPasswordUpgradeId.internalBinaryRead(reader, reader.uint32(), options, message.upgradeId);
|
|
3340
3121
|
break;
|
|
3341
3122
|
case /* bytes opaque_registration_record */ 2:
|
|
3342
3123
|
message.opaqueRegistrationRecord = reader.bytes();
|
|
@@ -3353,12 +3134,12 @@ class LegacyMigrateFinishRequest$Type extends MessageType {
|
|
|
3353
3134
|
return message;
|
|
3354
3135
|
}
|
|
3355
3136
|
internalBinaryWrite(message, writer, options) {
|
|
3356
|
-
/* string migration_token = 1; */
|
|
3357
|
-
if (message.migrationToken !== "")
|
|
3358
|
-
writer.tag(1, WireType.LengthDelimited).string(message.migrationToken);
|
|
3359
3137
|
/* bytes opaque_registration_record = 2; */
|
|
3360
3138
|
if (message.opaqueRegistrationRecord.length)
|
|
3361
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();
|
|
3362
3143
|
let u = options.writeUnknownFields;
|
|
3363
3144
|
if (u !== false)
|
|
3364
3145
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3373,7 +3154,7 @@ export const LegacyMigrateFinishRequest = new LegacyMigrateFinishRequest$Type();
|
|
|
3373
3154
|
class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
3374
3155
|
constructor() {
|
|
3375
3156
|
super("sid.v1.authn.LegacyMigrateFinishResponse", [
|
|
3376
|
-
{ no:
|
|
3157
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
3377
3158
|
{ no: 3, name: "expires_in", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3378
3159
|
{ no: 4, name: "second_factors", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
3379
3160
|
{ no: 5, name: "browser_csrf", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3382,7 +3163,6 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3382
3163
|
}
|
|
3383
3164
|
create(value) {
|
|
3384
3165
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3385
|
-
message.sessionId = "";
|
|
3386
3166
|
message.expiresIn = 0n;
|
|
3387
3167
|
message.secondFactors = [];
|
|
3388
3168
|
message.enrollableFactors = [];
|
|
@@ -3395,8 +3175,8 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3395
3175
|
while (reader.pos < end) {
|
|
3396
3176
|
let [fieldNo, wireType] = reader.tag();
|
|
3397
3177
|
switch (fieldNo) {
|
|
3398
|
-
case /*
|
|
3399
|
-
message.sessionId = reader.
|
|
3178
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
3179
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
3400
3180
|
break;
|
|
3401
3181
|
case /* int64 expires_in */ 3:
|
|
3402
3182
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -3430,9 +3210,6 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3430
3210
|
return message;
|
|
3431
3211
|
}
|
|
3432
3212
|
internalBinaryWrite(message, writer, options) {
|
|
3433
|
-
/* string session_id = 1; */
|
|
3434
|
-
if (message.sessionId !== "")
|
|
3435
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
3436
3213
|
/* int64 expires_in = 3; */
|
|
3437
3214
|
if (message.expiresIn !== 0n)
|
|
3438
3215
|
writer.tag(3, WireType.Varint).int64(message.expiresIn);
|
|
@@ -3453,6 +3230,9 @@ class LegacyMigrateFinishResponse$Type extends MessageType {
|
|
|
3453
3230
|
writer.int32(message.enrollableFactors[i]);
|
|
3454
3231
|
writer.join();
|
|
3455
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();
|
|
3456
3236
|
let u = options.writeUnknownFields;
|
|
3457
3237
|
if (u !== false)
|
|
3458
3238
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3592,7 +3372,7 @@ export const GetZkppPolicyResponse = new GetZkppPolicyResponse$Type();
|
|
|
3592
3372
|
class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
3593
3373
|
constructor() {
|
|
3594
3374
|
super("sid.v1.authn.SubmitDeferredZkProofRequest", [
|
|
3595
|
-
{ no:
|
|
3375
|
+
{ no: 5, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
3596
3376
|
{ no: 2, name: "zkpp_proof", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
3597
3377
|
{ no: 3, name: "instances", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
3598
3378
|
{ no: 4, name: "policy_version", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -3600,7 +3380,6 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3600
3380
|
}
|
|
3601
3381
|
create(value) {
|
|
3602
3382
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3603
|
-
message.credentialId = "";
|
|
3604
3383
|
message.zkppProof = new Uint8Array(0);
|
|
3605
3384
|
message.instances = [];
|
|
3606
3385
|
message.policyVersion = 0;
|
|
@@ -3613,8 +3392,8 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3613
3392
|
while (reader.pos < end) {
|
|
3614
3393
|
let [fieldNo, wireType] = reader.tag();
|
|
3615
3394
|
switch (fieldNo) {
|
|
3616
|
-
case /*
|
|
3617
|
-
message.credentialId = reader.
|
|
3395
|
+
case /* sid.v1.ids.CredentialId credential_id */ 5:
|
|
3396
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
3618
3397
|
break;
|
|
3619
3398
|
case /* bytes zkpp_proof */ 2:
|
|
3620
3399
|
message.zkppProof = reader.bytes();
|
|
@@ -3637,9 +3416,6 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3637
3416
|
return message;
|
|
3638
3417
|
}
|
|
3639
3418
|
internalBinaryWrite(message, writer, options) {
|
|
3640
|
-
/* string credential_id = 1; */
|
|
3641
|
-
if (message.credentialId !== "")
|
|
3642
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
3643
3419
|
/* bytes zkpp_proof = 2; */
|
|
3644
3420
|
if (message.zkppProof.length)
|
|
3645
3421
|
writer.tag(2, WireType.LengthDelimited).bytes(message.zkppProof);
|
|
@@ -3649,6 +3425,9 @@ class SubmitDeferredZkProofRequest$Type extends MessageType {
|
|
|
3649
3425
|
/* uint32 policy_version = 4; */
|
|
3650
3426
|
if (message.policyVersion !== 0)
|
|
3651
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();
|
|
3652
3431
|
let u = options.writeUnknownFields;
|
|
3653
3432
|
if (u !== false)
|
|
3654
3433
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3748,18 +3527,22 @@ export const StartTotpEnrollmentRequest = new StartTotpEnrollmentRequest$Type();
|
|
|
3748
3527
|
class TotpEnrollmentChallenge$Type extends MessageType {
|
|
3749
3528
|
constructor() {
|
|
3750
3529
|
super("sid.v1.authn.TotpEnrollmentChallenge", [
|
|
3751
|
-
{ no: 1, name: "secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3752
|
-
{ no: 2, name: "qr_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3753
3530
|
{ no: 3, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3754
|
-
{ no: 4, name: "account_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3531
|
+
{ no: 4, name: "account_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3532
|
+
{ no: 5, name: "shared_secret", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
3533
|
+
{ no: 6, name: "algorithm", kind: "enum", T: () => ["sid.v1.authn.TotpAlgorithm", TotpAlgorithm, "TOTP_ALGORITHM_"] },
|
|
3534
|
+
{ no: 7, name: "digits", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
3535
|
+
{ no: 8, name: "period_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
3755
3536
|
]);
|
|
3756
3537
|
}
|
|
3757
3538
|
create(value) {
|
|
3758
3539
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3759
|
-
message.secret = "";
|
|
3760
|
-
message.qrUri = "";
|
|
3761
3540
|
message.issuer = "";
|
|
3762
3541
|
message.accountName = "";
|
|
3542
|
+
message.sharedSecret = new Uint8Array(0);
|
|
3543
|
+
message.algorithm = 0;
|
|
3544
|
+
message.digits = 0;
|
|
3545
|
+
message.periodSeconds = 0;
|
|
3763
3546
|
if (value !== undefined)
|
|
3764
3547
|
reflectionMergePartial(this, message, value);
|
|
3765
3548
|
return message;
|
|
@@ -3769,18 +3552,24 @@ class TotpEnrollmentChallenge$Type extends MessageType {
|
|
|
3769
3552
|
while (reader.pos < end) {
|
|
3770
3553
|
let [fieldNo, wireType] = reader.tag();
|
|
3771
3554
|
switch (fieldNo) {
|
|
3772
|
-
case /* string secret */ 1:
|
|
3773
|
-
message.secret = reader.string();
|
|
3774
|
-
break;
|
|
3775
|
-
case /* string qr_uri */ 2:
|
|
3776
|
-
message.qrUri = reader.string();
|
|
3777
|
-
break;
|
|
3778
3555
|
case /* string issuer */ 3:
|
|
3779
3556
|
message.issuer = reader.string();
|
|
3780
3557
|
break;
|
|
3781
3558
|
case /* string account_name */ 4:
|
|
3782
3559
|
message.accountName = reader.string();
|
|
3783
3560
|
break;
|
|
3561
|
+
case /* bytes shared_secret */ 5:
|
|
3562
|
+
message.sharedSecret = reader.bytes();
|
|
3563
|
+
break;
|
|
3564
|
+
case /* sid.v1.authn.TotpAlgorithm algorithm */ 6:
|
|
3565
|
+
message.algorithm = reader.int32();
|
|
3566
|
+
break;
|
|
3567
|
+
case /* uint32 digits */ 7:
|
|
3568
|
+
message.digits = reader.uint32();
|
|
3569
|
+
break;
|
|
3570
|
+
case /* uint32 period_seconds */ 8:
|
|
3571
|
+
message.periodSeconds = reader.uint32();
|
|
3572
|
+
break;
|
|
3784
3573
|
default:
|
|
3785
3574
|
let u = options.readUnknownField;
|
|
3786
3575
|
if (u === "throw")
|
|
@@ -3793,18 +3582,24 @@ class TotpEnrollmentChallenge$Type extends MessageType {
|
|
|
3793
3582
|
return message;
|
|
3794
3583
|
}
|
|
3795
3584
|
internalBinaryWrite(message, writer, options) {
|
|
3796
|
-
/* string secret = 1; */
|
|
3797
|
-
if (message.secret !== "")
|
|
3798
|
-
writer.tag(1, WireType.LengthDelimited).string(message.secret);
|
|
3799
|
-
/* string qr_uri = 2; */
|
|
3800
|
-
if (message.qrUri !== "")
|
|
3801
|
-
writer.tag(2, WireType.LengthDelimited).string(message.qrUri);
|
|
3802
3585
|
/* string issuer = 3; */
|
|
3803
3586
|
if (message.issuer !== "")
|
|
3804
3587
|
writer.tag(3, WireType.LengthDelimited).string(message.issuer);
|
|
3805
3588
|
/* string account_name = 4; */
|
|
3806
3589
|
if (message.accountName !== "")
|
|
3807
3590
|
writer.tag(4, WireType.LengthDelimited).string(message.accountName);
|
|
3591
|
+
/* bytes shared_secret = 5; */
|
|
3592
|
+
if (message.sharedSecret.length)
|
|
3593
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.sharedSecret);
|
|
3594
|
+
/* sid.v1.authn.TotpAlgorithm algorithm = 6; */
|
|
3595
|
+
if (message.algorithm !== 0)
|
|
3596
|
+
writer.tag(6, WireType.Varint).int32(message.algorithm);
|
|
3597
|
+
/* uint32 digits = 7; */
|
|
3598
|
+
if (message.digits !== 0)
|
|
3599
|
+
writer.tag(7, WireType.Varint).uint32(message.digits);
|
|
3600
|
+
/* uint32 period_seconds = 8; */
|
|
3601
|
+
if (message.periodSeconds !== 0)
|
|
3602
|
+
writer.tag(8, WireType.Varint).uint32(message.periodSeconds);
|
|
3808
3603
|
let u = options.writeUnknownFields;
|
|
3809
3604
|
if (u !== false)
|
|
3810
3605
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3866,13 +3661,12 @@ export const FinishTotpEnrollmentRequest = new FinishTotpEnrollmentRequest$Type(
|
|
|
3866
3661
|
class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
3867
3662
|
constructor() {
|
|
3868
3663
|
super("sid.v1.authn.FinishTotpEnrollmentResponse", [
|
|
3869
|
-
{ no:
|
|
3664
|
+
{ no: 3, name: "credential_id", kind: "message", T: () => CredentialId },
|
|
3870
3665
|
{ no: 2, name: "recovery_codes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3871
3666
|
]);
|
|
3872
3667
|
}
|
|
3873
3668
|
create(value) {
|
|
3874
3669
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3875
|
-
message.credentialId = "";
|
|
3876
3670
|
message.recoveryCodes = [];
|
|
3877
3671
|
if (value !== undefined)
|
|
3878
3672
|
reflectionMergePartial(this, message, value);
|
|
@@ -3883,8 +3677,8 @@ class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
|
3883
3677
|
while (reader.pos < end) {
|
|
3884
3678
|
let [fieldNo, wireType] = reader.tag();
|
|
3885
3679
|
switch (fieldNo) {
|
|
3886
|
-
case /*
|
|
3887
|
-
message.credentialId = reader.
|
|
3680
|
+
case /* sid.v1.ids.CredentialId credential_id */ 3:
|
|
3681
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
3888
3682
|
break;
|
|
3889
3683
|
case /* repeated string recovery_codes */ 2:
|
|
3890
3684
|
message.recoveryCodes.push(reader.string());
|
|
@@ -3901,12 +3695,12 @@ class FinishTotpEnrollmentResponse$Type extends MessageType {
|
|
|
3901
3695
|
return message;
|
|
3902
3696
|
}
|
|
3903
3697
|
internalBinaryWrite(message, writer, options) {
|
|
3904
|
-
/* string credential_id = 1; */
|
|
3905
|
-
if (message.credentialId !== "")
|
|
3906
|
-
writer.tag(1, WireType.LengthDelimited).string(message.credentialId);
|
|
3907
3698
|
/* repeated string recovery_codes = 2; */
|
|
3908
3699
|
for (let i = 0; i < message.recoveryCodes.length; i++)
|
|
3909
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();
|
|
3910
3704
|
let u = options.writeUnknownFields;
|
|
3911
3705
|
if (u !== false)
|
|
3912
3706
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3969,7 +3763,7 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3969
3763
|
constructor() {
|
|
3970
3764
|
super("sid.v1.authn.MfaVerifyResponse", [
|
|
3971
3765
|
{ no: 1, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3972
|
-
{ no:
|
|
3766
|
+
{ no: 7, name: "session_id", kind: "message", T: () => SessionId },
|
|
3973
3767
|
{ no: 4, name: "expires_in", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3974
3768
|
{ no: 5, name: "redirect_to", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3975
3769
|
{ no: 6, name: "remaining_codes", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
@@ -3990,8 +3784,8 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
3990
3784
|
case /* bool verified */ 1:
|
|
3991
3785
|
message.verified = reader.bool();
|
|
3992
3786
|
break;
|
|
3993
|
-
case /*
|
|
3994
|
-
message.sessionId = reader.
|
|
3787
|
+
case /* sid.v1.ids.SessionId session_id */ 7:
|
|
3788
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
3995
3789
|
break;
|
|
3996
3790
|
case /* optional int64 expires_in */ 4:
|
|
3997
3791
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -4017,9 +3811,6 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
4017
3811
|
/* bool verified = 1; */
|
|
4018
3812
|
if (message.verified !== false)
|
|
4019
3813
|
writer.tag(1, WireType.Varint).bool(message.verified);
|
|
4020
|
-
/* optional string session_id = 2; */
|
|
4021
|
-
if (message.sessionId !== undefined)
|
|
4022
|
-
writer.tag(2, WireType.LengthDelimited).string(message.sessionId);
|
|
4023
3814
|
/* optional int64 expires_in = 4; */
|
|
4024
3815
|
if (message.expiresIn !== undefined)
|
|
4025
3816
|
writer.tag(4, WireType.Varint).int64(message.expiresIn);
|
|
@@ -4029,6 +3820,9 @@ class MfaVerifyResponse$Type extends MessageType {
|
|
|
4029
3820
|
/* optional int32 remaining_codes = 6; */
|
|
4030
3821
|
if (message.remainingCodes !== undefined)
|
|
4031
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();
|
|
4032
3826
|
let u = options.writeUnknownFields;
|
|
4033
3827
|
if (u !== false)
|
|
4034
3828
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4362,7 +4156,7 @@ export const RequestOtpRequest = new RequestOtpRequest$Type();
|
|
|
4362
4156
|
class RequestOtpResponse$Type extends MessageType {
|
|
4363
4157
|
constructor() {
|
|
4364
4158
|
super("sid.v1.authn.RequestOtpResponse", [
|
|
4365
|
-
{ no:
|
|
4159
|
+
{ no: 5, name: "otp_session_id", kind: "message", T: () => OtpSessionId },
|
|
4366
4160
|
{ no: 2, name: "masked_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4367
4161
|
{ no: 3, name: "expires_in_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
4368
4162
|
{ no: 4, name: "code_length", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -4370,7 +4164,6 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4370
4164
|
}
|
|
4371
4165
|
create(value) {
|
|
4372
4166
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
4373
|
-
message.otpSessionId = "";
|
|
4374
4167
|
message.maskedTarget = "";
|
|
4375
4168
|
message.expiresInSeconds = 0;
|
|
4376
4169
|
message.codeLength = 0;
|
|
@@ -4383,8 +4176,8 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4383
4176
|
while (reader.pos < end) {
|
|
4384
4177
|
let [fieldNo, wireType] = reader.tag();
|
|
4385
4178
|
switch (fieldNo) {
|
|
4386
|
-
case /*
|
|
4387
|
-
message.otpSessionId = reader.
|
|
4179
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 5:
|
|
4180
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4388
4181
|
break;
|
|
4389
4182
|
case /* string masked_target */ 2:
|
|
4390
4183
|
message.maskedTarget = reader.string();
|
|
@@ -4407,9 +4200,6 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4407
4200
|
return message;
|
|
4408
4201
|
}
|
|
4409
4202
|
internalBinaryWrite(message, writer, options) {
|
|
4410
|
-
/* string otp_session_id = 1; */
|
|
4411
|
-
if (message.otpSessionId !== "")
|
|
4412
|
-
writer.tag(1, WireType.LengthDelimited).string(message.otpSessionId);
|
|
4413
4203
|
/* string masked_target = 2; */
|
|
4414
4204
|
if (message.maskedTarget !== "")
|
|
4415
4205
|
writer.tag(2, WireType.LengthDelimited).string(message.maskedTarget);
|
|
@@ -4419,6 +4209,9 @@ class RequestOtpResponse$Type extends MessageType {
|
|
|
4419
4209
|
/* uint32 code_length = 4; */
|
|
4420
4210
|
if (message.codeLength !== 0)
|
|
4421
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();
|
|
4422
4215
|
let u = options.writeUnknownFields;
|
|
4423
4216
|
if (u !== false)
|
|
4424
4217
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4434,7 +4227,7 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4434
4227
|
constructor() {
|
|
4435
4228
|
super("sid.v1.authn.VerifyOtpRequest", [
|
|
4436
4229
|
{ no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4437
|
-
{ no:
|
|
4230
|
+
{ no: 3, name: "otp_session_id", kind: "message", T: () => OtpSessionId }
|
|
4438
4231
|
]);
|
|
4439
4232
|
}
|
|
4440
4233
|
create(value) {
|
|
@@ -4452,8 +4245,8 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4452
4245
|
case /* string code */ 1:
|
|
4453
4246
|
message.code = reader.string();
|
|
4454
4247
|
break;
|
|
4455
|
-
case /*
|
|
4456
|
-
message.
|
|
4248
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 3:
|
|
4249
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4457
4250
|
break;
|
|
4458
4251
|
default:
|
|
4459
4252
|
let u = options.readUnknownField;
|
|
@@ -4470,9 +4263,9 @@ class VerifyOtpRequest$Type extends MessageType {
|
|
|
4470
4263
|
/* string code = 1; */
|
|
4471
4264
|
if (message.code !== "")
|
|
4472
4265
|
writer.tag(1, WireType.LengthDelimited).string(message.code);
|
|
4473
|
-
/*
|
|
4474
|
-
if (message.
|
|
4475
|
-
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();
|
|
4476
4269
|
let u = options.writeUnknownFields;
|
|
4477
4270
|
if (u !== false)
|
|
4478
4271
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4489,7 +4282,7 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4489
4282
|
super("sid.v1.authn.VerifyOtpResponse", [
|
|
4490
4283
|
{ no: 1, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4491
4284
|
{ no: 2, name: "redirect_to", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
4492
|
-
{ no:
|
|
4285
|
+
{ no: 6, name: "session_id", kind: "message", T: () => SessionId },
|
|
4493
4286
|
{ no: 5, name: "expires_in", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
4494
4287
|
]);
|
|
4495
4288
|
}
|
|
@@ -4511,8 +4304,8 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4511
4304
|
case /* optional string redirect_to */ 2:
|
|
4512
4305
|
message.redirectTo = reader.string();
|
|
4513
4306
|
break;
|
|
4514
|
-
case /*
|
|
4515
|
-
message.sessionId = reader.
|
|
4307
|
+
case /* sid.v1.ids.SessionId session_id */ 6:
|
|
4308
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
4516
4309
|
break;
|
|
4517
4310
|
case /* optional int64 expires_in */ 5:
|
|
4518
4311
|
message.expiresIn = reader.int64().toBigInt();
|
|
@@ -4535,12 +4328,12 @@ class VerifyOtpResponse$Type extends MessageType {
|
|
|
4535
4328
|
/* optional string redirect_to = 2; */
|
|
4536
4329
|
if (message.redirectTo !== undefined)
|
|
4537
4330
|
writer.tag(2, WireType.LengthDelimited).string(message.redirectTo);
|
|
4538
|
-
/* optional string session_id = 3; */
|
|
4539
|
-
if (message.sessionId !== undefined)
|
|
4540
|
-
writer.tag(3, WireType.LengthDelimited).string(message.sessionId);
|
|
4541
4331
|
/* optional int64 expires_in = 5; */
|
|
4542
4332
|
if (message.expiresIn !== undefined)
|
|
4543
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();
|
|
4544
4337
|
let u = options.writeUnknownFields;
|
|
4545
4338
|
if (u !== false)
|
|
4546
4339
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4555,7 +4348,7 @@ export const VerifyOtpResponse = new VerifyOtpResponse$Type();
|
|
|
4555
4348
|
class ResendOtpRequest$Type extends MessageType {
|
|
4556
4349
|
constructor() {
|
|
4557
4350
|
super("sid.v1.authn.ResendOtpRequest", [
|
|
4558
|
-
{ no:
|
|
4351
|
+
{ no: 2, name: "otp_session_id", kind: "message", T: () => OtpSessionId }
|
|
4559
4352
|
]);
|
|
4560
4353
|
}
|
|
4561
4354
|
create(value) {
|
|
@@ -4569,8 +4362,8 @@ class ResendOtpRequest$Type extends MessageType {
|
|
|
4569
4362
|
while (reader.pos < end) {
|
|
4570
4363
|
let [fieldNo, wireType] = reader.tag();
|
|
4571
4364
|
switch (fieldNo) {
|
|
4572
|
-
case /*
|
|
4573
|
-
message.
|
|
4365
|
+
case /* sid.v1.ids.OtpSessionId otp_session_id */ 2:
|
|
4366
|
+
message.otpSessionId = OtpSessionId.internalBinaryRead(reader, reader.uint32(), options, message.otpSessionId);
|
|
4574
4367
|
break;
|
|
4575
4368
|
default:
|
|
4576
4369
|
let u = options.readUnknownField;
|
|
@@ -4584,9 +4377,9 @@ class ResendOtpRequest$Type extends MessageType {
|
|
|
4584
4377
|
return message;
|
|
4585
4378
|
}
|
|
4586
4379
|
internalBinaryWrite(message, writer, options) {
|
|
4587
|
-
/*
|
|
4588
|
-
if (message.
|
|
4589
|
-
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();
|
|
4590
4383
|
let u = options.writeUnknownFields;
|
|
4591
4384
|
if (u !== false)
|
|
4592
4385
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6163,13 +5956,11 @@ export const SubmitDynamicPromptResponse = new SubmitDynamicPromptResponse$Type(
|
|
|
6163
5956
|
class RequestStepUpRequest$Type extends MessageType {
|
|
6164
5957
|
constructor() {
|
|
6165
5958
|
super("sid.v1.authn.RequestStepUpRequest", [
|
|
6166
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6167
5959
|
{ no: 2, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] }
|
|
6168
5960
|
]);
|
|
6169
5961
|
}
|
|
6170
5962
|
create(value) {
|
|
6171
5963
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6172
|
-
message.sessionId = "";
|
|
6173
5964
|
message.method = 0;
|
|
6174
5965
|
if (value !== undefined)
|
|
6175
5966
|
reflectionMergePartial(this, message, value);
|
|
@@ -6180,9 +5971,6 @@ class RequestStepUpRequest$Type extends MessageType {
|
|
|
6180
5971
|
while (reader.pos < end) {
|
|
6181
5972
|
let [fieldNo, wireType] = reader.tag();
|
|
6182
5973
|
switch (fieldNo) {
|
|
6183
|
-
case /* string session_id */ 1:
|
|
6184
|
-
message.sessionId = reader.string();
|
|
6185
|
-
break;
|
|
6186
5974
|
case /* sid.v1.authn.StepUpMethod method */ 2:
|
|
6187
5975
|
message.method = reader.int32();
|
|
6188
5976
|
break;
|
|
@@ -6198,9 +5986,6 @@ class RequestStepUpRequest$Type extends MessageType {
|
|
|
6198
5986
|
return message;
|
|
6199
5987
|
}
|
|
6200
5988
|
internalBinaryWrite(message, writer, options) {
|
|
6201
|
-
/* string session_id = 1; */
|
|
6202
|
-
if (message.sessionId !== "")
|
|
6203
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6204
5989
|
/* sid.v1.authn.StepUpMethod method = 2; */
|
|
6205
5990
|
if (message.method !== 0)
|
|
6206
5991
|
writer.tag(2, WireType.Varint).int32(message.method);
|
|
@@ -6219,7 +6004,7 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6219
6004
|
constructor() {
|
|
6220
6005
|
super("sid.v1.authn.StepUpChallenge", [
|
|
6221
6006
|
{ no: 1, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6222
|
-
{ no:
|
|
6007
|
+
{ no: 6, name: "challenge_id", kind: "message", T: () => StepUpChallengeId },
|
|
6223
6008
|
{ no: 3, name: "webauthn_options", kind: "scalar", oneof: "challenge", T: 12 /*ScalarType.BYTES*/ },
|
|
6224
6009
|
{ no: 4, name: "allowed_methods", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6225
6010
|
{ no: 5, name: "decay_level", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -6228,7 +6013,6 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6228
6013
|
create(value) {
|
|
6229
6014
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6230
6015
|
message.method = 0;
|
|
6231
|
-
message.challengeId = "";
|
|
6232
6016
|
message.challenge = { oneofKind: undefined };
|
|
6233
6017
|
message.allowedMethods = [];
|
|
6234
6018
|
message.decayLevel = "";
|
|
@@ -6244,8 +6028,8 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6244
6028
|
case /* sid.v1.authn.StepUpMethod method */ 1:
|
|
6245
6029
|
message.method = reader.int32();
|
|
6246
6030
|
break;
|
|
6247
|
-
case /*
|
|
6248
|
-
message.challengeId = reader.
|
|
6031
|
+
case /* sid.v1.ids.StepUpChallengeId challenge_id */ 6:
|
|
6032
|
+
message.challengeId = StepUpChallengeId.internalBinaryRead(reader, reader.uint32(), options, message.challengeId);
|
|
6249
6033
|
break;
|
|
6250
6034
|
case /* bytes webauthn_options */ 3:
|
|
6251
6035
|
message.challenge = {
|
|
@@ -6278,9 +6062,6 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6278
6062
|
/* sid.v1.authn.StepUpMethod method = 1; */
|
|
6279
6063
|
if (message.method !== 0)
|
|
6280
6064
|
writer.tag(1, WireType.Varint).int32(message.method);
|
|
6281
|
-
/* string challenge_id = 2; */
|
|
6282
|
-
if (message.challengeId !== "")
|
|
6283
|
-
writer.tag(2, WireType.LengthDelimited).string(message.challengeId);
|
|
6284
6065
|
/* bytes webauthn_options = 3; */
|
|
6285
6066
|
if (message.challenge.oneofKind === "webauthnOptions")
|
|
6286
6067
|
writer.tag(3, WireType.LengthDelimited).bytes(message.challenge.webauthnOptions);
|
|
@@ -6294,6 +6075,9 @@ class StepUpChallenge$Type extends MessageType {
|
|
|
6294
6075
|
/* string decay_level = 5; */
|
|
6295
6076
|
if (message.decayLevel !== "")
|
|
6296
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();
|
|
6297
6081
|
let u = options.writeUnknownFields;
|
|
6298
6082
|
if (u !== false)
|
|
6299
6083
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6308,9 +6092,8 @@ export const StepUpChallenge = new StepUpChallenge$Type();
|
|
|
6308
6092
|
class CompleteStepUpRequest$Type extends MessageType {
|
|
6309
6093
|
constructor() {
|
|
6310
6094
|
super("sid.v1.authn.CompleteStepUpRequest", [
|
|
6311
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6312
6095
|
{ no: 2, name: "method", kind: "enum", T: () => ["sid.v1.authn.StepUpMethod", StepUpMethod, "STEP_UP_METHOD_"] },
|
|
6313
|
-
{ no:
|
|
6096
|
+
{ no: 7, name: "challenge_id", kind: "message", T: () => StepUpChallengeId },
|
|
6314
6097
|
{ no: 4, name: "totp_code", kind: "scalar", oneof: "proof", T: 9 /*ScalarType.STRING*/ },
|
|
6315
6098
|
{ no: 5, name: "webauthn_assertion", kind: "scalar", oneof: "proof", T: 12 /*ScalarType.BYTES*/ },
|
|
6316
6099
|
{ no: 6, name: "recovery_code", kind: "scalar", oneof: "proof", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -6318,9 +6101,7 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6318
6101
|
}
|
|
6319
6102
|
create(value) {
|
|
6320
6103
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6321
|
-
message.sessionId = "";
|
|
6322
6104
|
message.method = 0;
|
|
6323
|
-
message.challengeId = "";
|
|
6324
6105
|
message.proof = { oneofKind: undefined };
|
|
6325
6106
|
if (value !== undefined)
|
|
6326
6107
|
reflectionMergePartial(this, message, value);
|
|
@@ -6331,14 +6112,11 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6331
6112
|
while (reader.pos < end) {
|
|
6332
6113
|
let [fieldNo, wireType] = reader.tag();
|
|
6333
6114
|
switch (fieldNo) {
|
|
6334
|
-
case /* string session_id */ 1:
|
|
6335
|
-
message.sessionId = reader.string();
|
|
6336
|
-
break;
|
|
6337
6115
|
case /* sid.v1.authn.StepUpMethod method */ 2:
|
|
6338
6116
|
message.method = reader.int32();
|
|
6339
6117
|
break;
|
|
6340
|
-
case /*
|
|
6341
|
-
message.challengeId = reader.
|
|
6118
|
+
case /* sid.v1.ids.StepUpChallengeId challenge_id */ 7:
|
|
6119
|
+
message.challengeId = StepUpChallengeId.internalBinaryRead(reader, reader.uint32(), options, message.challengeId);
|
|
6342
6120
|
break;
|
|
6343
6121
|
case /* string totp_code */ 4:
|
|
6344
6122
|
message.proof = {
|
|
@@ -6370,15 +6148,9 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6370
6148
|
return message;
|
|
6371
6149
|
}
|
|
6372
6150
|
internalBinaryWrite(message, writer, options) {
|
|
6373
|
-
/* string session_id = 1; */
|
|
6374
|
-
if (message.sessionId !== "")
|
|
6375
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6376
6151
|
/* sid.v1.authn.StepUpMethod method = 2; */
|
|
6377
6152
|
if (message.method !== 0)
|
|
6378
6153
|
writer.tag(2, WireType.Varint).int32(message.method);
|
|
6379
|
-
/* string challenge_id = 3; */
|
|
6380
|
-
if (message.challengeId !== "")
|
|
6381
|
-
writer.tag(3, WireType.LengthDelimited).string(message.challengeId);
|
|
6382
6154
|
/* string totp_code = 4; */
|
|
6383
6155
|
if (message.proof.oneofKind === "totpCode")
|
|
6384
6156
|
writer.tag(4, WireType.LengthDelimited).string(message.proof.totpCode);
|
|
@@ -6388,6 +6160,9 @@ class CompleteStepUpRequest$Type extends MessageType {
|
|
|
6388
6160
|
/* string recovery_code = 6; */
|
|
6389
6161
|
if (message.proof.oneofKind === "recoveryCode")
|
|
6390
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();
|
|
6391
6166
|
let u = options.writeUnknownFields;
|
|
6392
6167
|
if (u !== false)
|
|
6393
6168
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6465,12 +6240,11 @@ export const CompleteStepUpResponse = new CompleteStepUpResponse$Type();
|
|
|
6465
6240
|
class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
6466
6241
|
constructor() {
|
|
6467
6242
|
super("sid.v1.authn.DeleteMfaCredentialRequest", [
|
|
6468
|
-
{ no:
|
|
6243
|
+
{ no: 2, name: "credential_id", kind: "message", T: () => CredentialId }
|
|
6469
6244
|
]);
|
|
6470
6245
|
}
|
|
6471
6246
|
create(value) {
|
|
6472
6247
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6473
|
-
message.credentialId = "";
|
|
6474
6248
|
if (value !== undefined)
|
|
6475
6249
|
reflectionMergePartial(this, message, value);
|
|
6476
6250
|
return message;
|
|
@@ -6480,8 +6254,8 @@ class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
|
6480
6254
|
while (reader.pos < end) {
|
|
6481
6255
|
let [fieldNo, wireType] = reader.tag();
|
|
6482
6256
|
switch (fieldNo) {
|
|
6483
|
-
case /*
|
|
6484
|
-
message.credentialId = reader.
|
|
6257
|
+
case /* sid.v1.ids.CredentialId credential_id */ 2:
|
|
6258
|
+
message.credentialId = CredentialId.internalBinaryRead(reader, reader.uint32(), options, message.credentialId);
|
|
6485
6259
|
break;
|
|
6486
6260
|
default:
|
|
6487
6261
|
let u = options.readUnknownField;
|
|
@@ -6495,9 +6269,9 @@ class DeleteMfaCredentialRequest$Type extends MessageType {
|
|
|
6495
6269
|
return message;
|
|
6496
6270
|
}
|
|
6497
6271
|
internalBinaryWrite(message, writer, options) {
|
|
6498
|
-
/*
|
|
6499
|
-
if (message.credentialId
|
|
6500
|
-
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();
|
|
6501
6275
|
let u = options.writeUnknownFields;
|
|
6502
6276
|
if (u !== false)
|
|
6503
6277
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6786,13 +6560,12 @@ export const RequestPasswordResetResponse = new RequestPasswordResetResponse$Typ
|
|
|
6786
6560
|
class VerifyPasswordResetRequest$Type extends MessageType {
|
|
6787
6561
|
constructor() {
|
|
6788
6562
|
super("sid.v1.authn.VerifyPasswordResetRequest", [
|
|
6789
|
-
{ no:
|
|
6563
|
+
{ no: 3, name: "reset_session_id", kind: "message", T: () => ResetSessionId },
|
|
6790
6564
|
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
6791
6565
|
]);
|
|
6792
6566
|
}
|
|
6793
6567
|
create(value) {
|
|
6794
6568
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6795
|
-
message.sessionId = "";
|
|
6796
6569
|
message.token = "";
|
|
6797
6570
|
if (value !== undefined)
|
|
6798
6571
|
reflectionMergePartial(this, message, value);
|
|
@@ -6803,8 +6576,8 @@ class VerifyPasswordResetRequest$Type extends MessageType {
|
|
|
6803
6576
|
while (reader.pos < end) {
|
|
6804
6577
|
let [fieldNo, wireType] = reader.tag();
|
|
6805
6578
|
switch (fieldNo) {
|
|
6806
|
-
case /*
|
|
6807
|
-
message.
|
|
6579
|
+
case /* sid.v1.ids.ResetSessionId reset_session_id */ 3:
|
|
6580
|
+
message.resetSessionId = ResetSessionId.internalBinaryRead(reader, reader.uint32(), options, message.resetSessionId);
|
|
6808
6581
|
break;
|
|
6809
6582
|
case /* string token */ 2:
|
|
6810
6583
|
message.token = reader.string();
|
|
@@ -6821,12 +6594,12 @@ class VerifyPasswordResetRequest$Type extends MessageType {
|
|
|
6821
6594
|
return message;
|
|
6822
6595
|
}
|
|
6823
6596
|
internalBinaryWrite(message, writer, options) {
|
|
6824
|
-
/* string session_id = 1; */
|
|
6825
|
-
if (message.sessionId !== "")
|
|
6826
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
6827
6597
|
/* string token = 2; */
|
|
6828
6598
|
if (message.token !== "")
|
|
6829
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();
|
|
6830
6603
|
let u = options.writeUnknownFields;
|
|
6831
6604
|
if (u !== false)
|
|
6832
6605
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6841,14 +6614,12 @@ export const VerifyPasswordResetRequest = new VerifyPasswordResetRequest$Type();
|
|
|
6841
6614
|
class VerifyPasswordResetResponse$Type extends MessageType {
|
|
6842
6615
|
constructor() {
|
|
6843
6616
|
super("sid.v1.authn.VerifyPasswordResetResponse", [
|
|
6844
|
-
{ no: 1, name: "reset_session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
6845
6617
|
{ no: 2, name: "expires_in", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
6846
6618
|
{ no: 3, name: "history", kind: "message", T: () => PasswordHistoryContext }
|
|
6847
6619
|
]);
|
|
6848
6620
|
}
|
|
6849
6621
|
create(value) {
|
|
6850
6622
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
6851
|
-
message.resetSessionId = "";
|
|
6852
6623
|
message.expiresIn = 0;
|
|
6853
6624
|
if (value !== undefined)
|
|
6854
6625
|
reflectionMergePartial(this, message, value);
|
|
@@ -6859,9 +6630,6 @@ class VerifyPasswordResetResponse$Type extends MessageType {
|
|
|
6859
6630
|
while (reader.pos < end) {
|
|
6860
6631
|
let [fieldNo, wireType] = reader.tag();
|
|
6861
6632
|
switch (fieldNo) {
|
|
6862
|
-
case /* string reset_session_id */ 1:
|
|
6863
|
-
message.resetSessionId = reader.string();
|
|
6864
|
-
break;
|
|
6865
6633
|
case /* int32 expires_in */ 2:
|
|
6866
6634
|
message.expiresIn = reader.int32();
|
|
6867
6635
|
break;
|
|
@@ -6880,9 +6648,6 @@ class VerifyPasswordResetResponse$Type extends MessageType {
|
|
|
6880
6648
|
return message;
|
|
6881
6649
|
}
|
|
6882
6650
|
internalBinaryWrite(message, writer, options) {
|
|
6883
|
-
/* string reset_session_id = 1; */
|
|
6884
|
-
if (message.resetSessionId !== "")
|
|
6885
|
-
writer.tag(1, WireType.LengthDelimited).string(message.resetSessionId);
|
|
6886
6651
|
/* int32 expires_in = 2; */
|
|
6887
6652
|
if (message.expiresIn !== 0)
|
|
6888
6653
|
writer.tag(2, WireType.Varint).int32(message.expiresIn);
|
|
@@ -7004,7 +6769,6 @@ export const ExecutePasswordResetResponse = new ExecutePasswordResetResponse$Typ
|
|
|
7004
6769
|
class CompletePasswordResetRequest$Type extends MessageType {
|
|
7005
6770
|
constructor() {
|
|
7006
6771
|
super("sid.v1.authn.CompletePasswordResetRequest", [
|
|
7007
|
-
{ no: 1, name: "reset_session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7008
6772
|
{ no: 7, name: "operation_id", kind: "message", T: () => PasswordOperationId },
|
|
7009
6773
|
{ no: 2, name: "registration_record", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
7010
6774
|
{ no: 8, name: "proof", kind: "message", T: () => PasswordRegistrationProof }
|
|
@@ -7012,7 +6776,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
7012
6776
|
}
|
|
7013
6777
|
create(value) {
|
|
7014
6778
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
7015
|
-
message.resetSessionId = "";
|
|
7016
6779
|
message.registrationRecord = new Uint8Array(0);
|
|
7017
6780
|
if (value !== undefined)
|
|
7018
6781
|
reflectionMergePartial(this, message, value);
|
|
@@ -7023,9 +6786,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
7023
6786
|
while (reader.pos < end) {
|
|
7024
6787
|
let [fieldNo, wireType] = reader.tag();
|
|
7025
6788
|
switch (fieldNo) {
|
|
7026
|
-
case /* string reset_session_id */ 1:
|
|
7027
|
-
message.resetSessionId = reader.string();
|
|
7028
|
-
break;
|
|
7029
6789
|
case /* sid.v1.ids.PasswordOperationId operation_id */ 7:
|
|
7030
6790
|
message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);
|
|
7031
6791
|
break;
|
|
@@ -7047,9 +6807,6 @@ class CompletePasswordResetRequest$Type extends MessageType {
|
|
|
7047
6807
|
return message;
|
|
7048
6808
|
}
|
|
7049
6809
|
internalBinaryWrite(message, writer, options) {
|
|
7050
|
-
/* string reset_session_id = 1; */
|
|
7051
|
-
if (message.resetSessionId !== "")
|
|
7052
|
-
writer.tag(1, WireType.LengthDelimited).string(message.resetSessionId);
|
|
7053
6810
|
/* bytes registration_record = 2; */
|
|
7054
6811
|
if (message.registrationRecord.length)
|
|
7055
6812
|
writer.tag(2, WireType.LengthDelimited).bytes(message.registrationRecord);
|
|
@@ -7073,7 +6830,7 @@ export const CompletePasswordResetRequest = new CompletePasswordResetRequest$Typ
|
|
|
7073
6830
|
class CompletePasswordResetResponse$Type extends MessageType {
|
|
7074
6831
|
constructor() {
|
|
7075
6832
|
super("sid.v1.authn.CompletePasswordResetResponse", [
|
|
7076
|
-
{ no:
|
|
6833
|
+
{ no: 4, name: "session_id", kind: "message", T: () => SessionId },
|
|
7077
6834
|
{ no: 3, name: "expires_in", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
7078
6835
|
]);
|
|
7079
6836
|
}
|
|
@@ -7088,8 +6845,8 @@ class CompletePasswordResetResponse$Type extends MessageType {
|
|
|
7088
6845
|
while (reader.pos < end) {
|
|
7089
6846
|
let [fieldNo, wireType] = reader.tag();
|
|
7090
6847
|
switch (fieldNo) {
|
|
7091
|
-
case /*
|
|
7092
|
-
message.sessionId = reader.
|
|
6848
|
+
case /* sid.v1.ids.SessionId session_id */ 4:
|
|
6849
|
+
message.sessionId = SessionId.internalBinaryRead(reader, reader.uint32(), options, message.sessionId);
|
|
7093
6850
|
break;
|
|
7094
6851
|
case /* optional int32 expires_in */ 3:
|
|
7095
6852
|
message.expiresIn = reader.int32();
|
|
@@ -7106,12 +6863,12 @@ class CompletePasswordResetResponse$Type extends MessageType {
|
|
|
7106
6863
|
return message;
|
|
7107
6864
|
}
|
|
7108
6865
|
internalBinaryWrite(message, writer, options) {
|
|
7109
|
-
/* optional string session_id = 1; */
|
|
7110
|
-
if (message.sessionId !== undefined)
|
|
7111
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
7112
6866
|
/* optional int32 expires_in = 3; */
|
|
7113
6867
|
if (message.expiresIn !== undefined)
|
|
7114
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();
|
|
7115
6872
|
let u = options.writeUnknownFields;
|
|
7116
6873
|
if (u !== false)
|
|
7117
6874
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7126,8 +6883,6 @@ export const CompletePasswordResetResponse = new CompletePasswordResetResponse$T
|
|
|
7126
6883
|
* @generated ServiceType for protobuf service sid.v1.authn.AuthService
|
|
7127
6884
|
*/
|
|
7128
6885
|
export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
|
|
7129
|
-
{ name: "OpaqueRegistrationStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/opaque/registration/start", body: "*" } }, I: OpaqueRegistrationStartRequest, O: OpaqueRegistrationStartResponse },
|
|
7130
|
-
{ name: "OpaqueRegistrationFinish", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/opaque/registration/finish", body: "*" }, "sid.v1.common.retry": { natural: "plain registration creates no account: every call is refused with FEATURE_NOT_AVAILABLE before any effect" } }, I: OpaqueRegistrationFinishRequest, O: OpaqueRegistrationFinishResponse },
|
|
7131
6886
|
{ name: "OpaqueLoginStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/opaque/login/start", body: "*" } }, I: OpaqueLoginStartRequest, O: OpaqueLoginStartResponse },
|
|
7132
6887
|
{ name: "OpaqueLoginFinish", options: { "google.api.http": { post: "/v1/auth/opaque/login/finish", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 9807 \u00A76: the login state is consumed by its finish; a repeat finds none and creates no session" } }, I: OpaqueLoginFinishRequest, O: OpaqueLoginFinishResponse },
|
|
7133
6888
|
{ name: "OpaqueZkppRegistrationStart", options: { "google.api.http": { post: "/v1/auth/opaque-zkpp/registration/start", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 9807 \u00A75: each start opens its own pending registration; nothing is registered before its finish" } }, I: OpaqueZkppRegistrationStartRequest, O: OpaqueZkppRegistrationStartResponse },
|
|
@@ -7151,6 +6906,7 @@ export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
|
|
|
7151
6906
|
{ name: "VerifyMagicLink", options: { "google.api.http": { post: "/v1/auth/magic-link/verify", body: "*" }, "sid.v1.common.retry": { ceremony: "the link is single-use: a repeat finds it spent and creates no session" } }, I: VerifyMagicLinkRequest, O: VerifyMagicLinkResponse },
|
|
7152
6907
|
{ name: "LegacyMigrateStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/legacy/migrate/start", body: "*" } }, I: LegacyMigrateStartRequest, O: LegacyMigrateStartResponse },
|
|
7153
6908
|
{ name: "LegacyMigrateFinish", options: { "google.api.http": { post: "/v1/auth/legacy/migrate/finish", body: "*" }, "sid.v1.common.retry": { ceremony: "the migration state is taken by its first finish: a repeat finds none and replaces nothing" } }, I: LegacyMigrateFinishRequest, O: LegacyMigrateFinishResponse },
|
|
6909
|
+
{ name: "RefreshNativeSession", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/auth/native-session/refresh", body: "*" }, "sid.v1.common.retry": { ceremony: "a generation rotates once: a retry of the same exchange within the redelivery window, with any credential of the rotated generation and a fresh proof, answers the committed generation; after the window, or for another exchange, a rotated credential is refused" } }, I: RefreshNativeSessionRequest, O: RefreshNativeSessionResponse },
|
|
7154
6910
|
{ name: "ValidateSession", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/sessions/validate", body: "*" } }, I: ValidateSessionRequest, O: ValidateSessionResponse },
|
|
7155
6911
|
{ name: "ResolvePrincipal", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/resolve", body: "*" } }, I: ResolvePrincipalRequest, O: ResolvePrincipalResponse },
|
|
7156
6912
|
{ name: "GetZkppPolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/auth/opaque-zkpp/policy" } }, I: GetZkppPolicyRequest, O: GetZkppPolicyResponse },
|
|
@@ -7180,7 +6936,7 @@ export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
|
|
|
7180
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 },
|
|
7181
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 },
|
|
7182
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 },
|
|
7183
|
-
{ 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 },
|
|
7184
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 },
|
|
7185
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 },
|
|
7186
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 },
|