@structured-id/proto 0.9.0 → 0.10.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.
@@ -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";
@@ -13,6 +15,35 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
13
15
  import { PasswordRegistrationProof } from "./password_history.js";
14
16
  import { PasswordOperationId } from "../ids/ids.js";
15
17
  import { PasswordHistoryContext } from "./password_history.js";
18
+ import { OpaqueLoginId } from "../ids/ids.js";
19
+ /**
20
+ * The HMAC of a TOTP (RFC 6238 §1.2).
21
+ *
22
+ * @generated from protobuf enum sid.v1.authn.TotpAlgorithm
23
+ */
24
+ export var TotpAlgorithm;
25
+ (function (TotpAlgorithm) {
26
+ /**
27
+ * Never sent; a client receiving it cannot enroll.
28
+ *
29
+ * @generated from protobuf enum value: TOTP_ALGORITHM_UNSPECIFIED = 0;
30
+ */
31
+ TotpAlgorithm[TotpAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
32
+ /**
33
+ * HMAC-SHA-1, what authenticator apps support universally.
34
+ *
35
+ * @generated from protobuf enum value: TOTP_ALGORITHM_SHA1 = 1;
36
+ */
37
+ TotpAlgorithm[TotpAlgorithm["SHA1"] = 1] = "SHA1";
38
+ /**
39
+ * @generated from protobuf enum value: TOTP_ALGORITHM_SHA256 = 2;
40
+ */
41
+ TotpAlgorithm[TotpAlgorithm["SHA256"] = 2] = "SHA256";
42
+ /**
43
+ * @generated from protobuf enum value: TOTP_ALGORITHM_SHA512 = 3;
44
+ */
45
+ TotpAlgorithm[TotpAlgorithm["SHA512"] = 3] = "SHA512";
46
+ })(TotpAlgorithm || (TotpAlgorithm = {}));
16
47
  /**
17
48
  * Field type of a dynamic prompt field.
18
49
  *
@@ -98,233 +129,6 @@ export var StepUpMethod;
98
129
  StepUpMethod[StepUpMethod["RECOVERY_CODE"] = 3] = "RECOVERY_CODE";
99
130
  })(StepUpMethod || (StepUpMethod = {}));
100
131
  // @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
132
  class OpaqueLoginStartRequest$Type extends MessageType {
329
133
  constructor() {
330
134
  super("sid.v1.authn.OpaqueLoginStartRequest", [
@@ -384,13 +188,12 @@ class OpaqueLoginStartResponse$Type extends MessageType {
384
188
  constructor() {
385
189
  super("sid.v1.authn.OpaqueLoginStartResponse", [
386
190
  { no: 1, name: "credential_response", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
387
- { no: 2, name: "server_login_state", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
191
+ { no: 3, name: "login_id", kind: "message", T: () => OpaqueLoginId }
388
192
  ]);
389
193
  }
390
194
  create(value) {
391
195
  const message = globalThis.Object.create((this.messagePrototype));
392
196
  message.credentialResponse = new Uint8Array(0);
393
- message.serverLoginState = "";
394
197
  if (value !== undefined)
395
198
  reflectionMergePartial(this, message, value);
396
199
  return message;
@@ -403,8 +206,8 @@ class OpaqueLoginStartResponse$Type extends MessageType {
403
206
  case /* bytes credential_response */ 1:
404
207
  message.credentialResponse = reader.bytes();
405
208
  break;
406
- case /* string server_login_state */ 2:
407
- message.serverLoginState = reader.string();
209
+ case /* sid.v1.ids.OpaqueLoginId login_id */ 3:
210
+ message.loginId = OpaqueLoginId.internalBinaryRead(reader, reader.uint32(), options, message.loginId);
408
211
  break;
409
212
  default:
410
213
  let u = options.readUnknownField;
@@ -421,9 +224,9 @@ class OpaqueLoginStartResponse$Type extends MessageType {
421
224
  /* bytes credential_response = 1; */
422
225
  if (message.credentialResponse.length)
423
226
  writer.tag(1, WireType.LengthDelimited).bytes(message.credentialResponse);
424
- /* string server_login_state = 2; */
425
- if (message.serverLoginState !== "")
426
- writer.tag(2, WireType.LengthDelimited).string(message.serverLoginState);
227
+ /* sid.v1.ids.OpaqueLoginId login_id = 3; */
228
+ if (message.loginId)
229
+ OpaqueLoginId.internalBinaryWrite(message.loginId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
427
230
  let u = options.writeUnknownFields;
428
231
  if (u !== false)
429
232
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -440,14 +243,13 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
440
243
  super("sid.v1.authn.OpaqueLoginFinishRequest", [
441
244
  { no: 1, name: "principal", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
442
245
  { no: 2, name: "credential_finalization", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
443
- { no: 3, name: "server_login_state", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
246
+ { no: 4, name: "login_id", kind: "message", T: () => OpaqueLoginId }
444
247
  ]);
445
248
  }
446
249
  create(value) {
447
250
  const message = globalThis.Object.create((this.messagePrototype));
448
251
  message.principal = "";
449
252
  message.credentialFinalization = new Uint8Array(0);
450
- message.serverLoginState = "";
451
253
  if (value !== undefined)
452
254
  reflectionMergePartial(this, message, value);
453
255
  return message;
@@ -463,8 +265,8 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
463
265
  case /* bytes credential_finalization */ 2:
464
266
  message.credentialFinalization = reader.bytes();
465
267
  break;
466
- case /* string server_login_state */ 3:
467
- message.serverLoginState = reader.string();
268
+ case /* sid.v1.ids.OpaqueLoginId login_id */ 4:
269
+ message.loginId = OpaqueLoginId.internalBinaryRead(reader, reader.uint32(), options, message.loginId);
468
270
  break;
469
271
  default:
470
272
  let u = options.readUnknownField;
@@ -484,9 +286,9 @@ class OpaqueLoginFinishRequest$Type extends MessageType {
484
286
  /* bytes credential_finalization = 2; */
485
287
  if (message.credentialFinalization.length)
486
288
  writer.tag(2, WireType.LengthDelimited).bytes(message.credentialFinalization);
487
- /* string server_login_state = 3; */
488
- if (message.serverLoginState !== "")
489
- writer.tag(3, WireType.LengthDelimited).string(message.serverLoginState);
289
+ /* sid.v1.ids.OpaqueLoginId login_id = 4; */
290
+ if (message.loginId)
291
+ OpaqueLoginId.internalBinaryWrite(message.loginId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
490
292
  let u = options.writeUnknownFields;
491
293
  if (u !== false)
492
294
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3748,18 +3550,22 @@ export const StartTotpEnrollmentRequest = new StartTotpEnrollmentRequest$Type();
3748
3550
  class TotpEnrollmentChallenge$Type extends MessageType {
3749
3551
  constructor() {
3750
3552
  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
3553
  { no: 3, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3754
- { no: 4, name: "account_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3554
+ { no: 4, name: "account_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3555
+ { no: 5, name: "shared_secret", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
3556
+ { no: 6, name: "algorithm", kind: "enum", T: () => ["sid.v1.authn.TotpAlgorithm", TotpAlgorithm, "TOTP_ALGORITHM_"] },
3557
+ { no: 7, name: "digits", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
3558
+ { no: 8, name: "period_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
3755
3559
  ]);
3756
3560
  }
3757
3561
  create(value) {
3758
3562
  const message = globalThis.Object.create((this.messagePrototype));
3759
- message.secret = "";
3760
- message.qrUri = "";
3761
3563
  message.issuer = "";
3762
3564
  message.accountName = "";
3565
+ message.sharedSecret = new Uint8Array(0);
3566
+ message.algorithm = 0;
3567
+ message.digits = 0;
3568
+ message.periodSeconds = 0;
3763
3569
  if (value !== undefined)
3764
3570
  reflectionMergePartial(this, message, value);
3765
3571
  return message;
@@ -3769,18 +3575,24 @@ class TotpEnrollmentChallenge$Type extends MessageType {
3769
3575
  while (reader.pos < end) {
3770
3576
  let [fieldNo, wireType] = reader.tag();
3771
3577
  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
3578
  case /* string issuer */ 3:
3779
3579
  message.issuer = reader.string();
3780
3580
  break;
3781
3581
  case /* string account_name */ 4:
3782
3582
  message.accountName = reader.string();
3783
3583
  break;
3584
+ case /* bytes shared_secret */ 5:
3585
+ message.sharedSecret = reader.bytes();
3586
+ break;
3587
+ case /* sid.v1.authn.TotpAlgorithm algorithm */ 6:
3588
+ message.algorithm = reader.int32();
3589
+ break;
3590
+ case /* uint32 digits */ 7:
3591
+ message.digits = reader.uint32();
3592
+ break;
3593
+ case /* uint32 period_seconds */ 8:
3594
+ message.periodSeconds = reader.uint32();
3595
+ break;
3784
3596
  default:
3785
3597
  let u = options.readUnknownField;
3786
3598
  if (u === "throw")
@@ -3793,18 +3605,24 @@ class TotpEnrollmentChallenge$Type extends MessageType {
3793
3605
  return message;
3794
3606
  }
3795
3607
  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
3608
  /* string issuer = 3; */
3803
3609
  if (message.issuer !== "")
3804
3610
  writer.tag(3, WireType.LengthDelimited).string(message.issuer);
3805
3611
  /* string account_name = 4; */
3806
3612
  if (message.accountName !== "")
3807
3613
  writer.tag(4, WireType.LengthDelimited).string(message.accountName);
3614
+ /* bytes shared_secret = 5; */
3615
+ if (message.sharedSecret.length)
3616
+ writer.tag(5, WireType.LengthDelimited).bytes(message.sharedSecret);
3617
+ /* sid.v1.authn.TotpAlgorithm algorithm = 6; */
3618
+ if (message.algorithm !== 0)
3619
+ writer.tag(6, WireType.Varint).int32(message.algorithm);
3620
+ /* uint32 digits = 7; */
3621
+ if (message.digits !== 0)
3622
+ writer.tag(7, WireType.Varint).uint32(message.digits);
3623
+ /* uint32 period_seconds = 8; */
3624
+ if (message.periodSeconds !== 0)
3625
+ writer.tag(8, WireType.Varint).uint32(message.periodSeconds);
3808
3626
  let u = options.writeUnknownFields;
3809
3627
  if (u !== false)
3810
3628
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7126,8 +6944,6 @@ export const CompletePasswordResetResponse = new CompletePasswordResetResponse$T
7126
6944
  * @generated ServiceType for protobuf service sid.v1.authn.AuthService
7127
6945
  */
7128
6946
  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
6947
  { name: "OpaqueLoginStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/opaque/login/start", body: "*" } }, I: OpaqueLoginStartRequest, O: OpaqueLoginStartResponse },
7132
6948
  { 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
6949
  { 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 +6967,7 @@ export const AuthService = new ServiceType("sid.v1.authn.AuthService", [
7151
6967
  { 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
6968
  { name: "LegacyMigrateStart", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/legacy/migrate/start", body: "*" } }, I: LegacyMigrateStartRequest, O: LegacyMigrateStartResponse },
7153
6969
  { 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 },
6970
+ { 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
6971
  { name: "ValidateSession", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/sessions/validate", body: "*" } }, I: ValidateSessionRequest, O: ValidateSessionResponse },
7155
6972
  { name: "ResolvePrincipal", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/auth/resolve", body: "*" } }, I: ResolvePrincipalRequest, O: ResolvePrincipalResponse },
7156
6973
  { name: "GetZkppPolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/auth/opaque-zkpp/policy" } }, I: GetZkppPolicyRequest, O: GetZkppPolicyResponse },