@structured-id/proto 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/generated/sid/v1/account/account.d.ts +8 -8
  3. package/dist/generated/sid/v1/account/account.js +34 -34
  4. package/dist/generated/sid/v1/account/account.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
  6. package/dist/generated/sid/v1/admin/enrollment.js +4 -4
  7. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
  9. package/dist/generated/sid/v1/admin/operations.js +32 -32
  10. package/dist/generated/sid/v1/admin/operations.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
  12. package/dist/generated/sid/v1/admin/organizations.js +16 -16
  13. package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
  15. package/dist/generated/sid/v1/admin/provisioning.js +13 -13
  16. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  17. package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
  18. package/dist/generated/sid/v1/authn/auth.js +315 -315
  19. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
  21. package/dist/generated/sid/v1/authn/flows.js +4 -4
  22. package/dist/generated/sid/v1/authn/flows.js.map +1 -1
  23. package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
  24. package/dist/generated/sid/v1/authn/native_session.js +5 -5
  25. package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
  26. package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
  27. package/dist/generated/sid/v1/authn/password_history.js +35 -35
  28. package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
  29. package/dist/generated/sid/v1/authz/authz.d.ts +30 -30
  30. package/dist/generated/sid/v1/authz/authz.js +113 -113
  31. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  32. package/dist/generated/sid/v1/common/operation.d.ts +3 -3
  33. package/dist/generated/sid/v1/common/operation.js +13 -13
  34. package/dist/generated/sid/v1/common/operation.js.map +1 -1
  35. package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
  36. package/dist/generated/sid/v1/federation/upstream.js +48 -48
  37. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  38. package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
  39. package/dist/generated/sid/v1/identity/identity.js +367 -367
  40. package/dist/generated/sid/v1/identity/identity.js.map +1 -1
  41. package/dist/generated/sid/v1/ids/ids.d.ts +18 -0
  42. package/dist/generated/sid/v1/ids/ids.js +9 -0
  43. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  44. package/dist/generated/sid/v1/machine/machine_user.d.ts +22 -15
  45. package/dist/generated/sid/v1/machine/machine_user.js +60 -60
  46. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  47. package/package.json +5 -5
@@ -55,7 +55,7 @@ export interface OpaqueLoginStartResponse {
55
55
  * the login's AKE state (ephemeral keys, expected finalization) itself for
56
56
  * 5 minutes, and a Finish takes it once.
57
57
  *
58
- * @generated from protobuf field: sid.v1.ids.OpaqueLoginId login_id = 3
58
+ * @generated from protobuf field: sid.v1.ids.OpaqueLoginId login_id = 2
59
59
  */
60
60
  loginId?: OpaqueLoginId;
61
61
  }
@@ -81,7 +81,7 @@ export interface OpaqueLoginFinishRequest {
81
81
  /**
82
82
  * The login being finished: OpaqueLoginStartResponse.login_id, as received.
83
83
  *
84
- * @generated from protobuf field: sid.v1.ids.OpaqueLoginId login_id = 4
84
+ * @generated from protobuf field: sid.v1.ids.OpaqueLoginId login_id = 3
85
85
  */
86
86
  loginId?: OpaqueLoginId;
87
87
  }
@@ -114,14 +114,14 @@ export interface OpaqueLoginFinishResponse {
114
114
  * The session this sign-in opened, for session management (listing,
115
115
  * revocation). Not a credential.
116
116
  *
117
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 7
117
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
118
118
  */
119
119
  sessionId?: SessionId;
120
120
  /**
121
121
  * Seconds until the delivered credential expires: the access token for a
122
122
  * native client (default 900), the session cookie for a browser.
123
123
  *
124
- * @generated from protobuf field: int64 expires_in = 3
124
+ * @generated from protobuf field: int64 expires_in = 2
125
125
  */
126
126
  expiresIn: bigint;
127
127
  /**
@@ -132,7 +132,7 @@ export interface OpaqueLoginFinishResponse {
132
132
  * (VerifyTotp for STEP_UP_METHOD_TOTP), which returns the session. Empty
133
133
  * when the session is complete.
134
134
  *
135
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 4
135
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 3
136
136
  */
137
137
  secondFactors: StepUpMethod[];
138
138
  /**
@@ -141,7 +141,7 @@ export interface OpaqueLoginFinishResponse {
141
141
  * browser delivery, in this response to the configured sign-in page's
142
142
  * origin. It authenticates nothing by itself.
143
143
  *
144
- * @generated from protobuf field: optional string browser_csrf = 5
144
+ * @generated from protobuf field: optional string browser_csrf = 4
145
145
  */
146
146
  browserCsrf?: string;
147
147
  /**
@@ -153,7 +153,7 @@ export interface OpaqueLoginFinishResponse {
153
153
  * Empty on an account with established protection, whose lost factor goes
154
154
  * through recovery instead.
155
155
  *
156
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 6
156
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 5
157
157
  */
158
158
  enrollableFactors: StepUpMethod[];
159
159
  }
@@ -187,7 +187,7 @@ export interface OpaqueZkppRegistrationStartRequest {
187
187
  * is consumed when the account commits. Ignored once the installation is
188
188
  * claimed. Bearer secret: never logged or echoed.
189
189
  *
190
- * @generated from protobuf field: optional string claim_token = 6
190
+ * @generated from protobuf field: optional string claim_token = 3
191
191
  */
192
192
  claimToken?: string;
193
193
  /**
@@ -198,7 +198,7 @@ export interface OpaqueZkppRegistrationStartRequest {
198
198
  * other modes, and while the administrator claim is open: the claim token
199
199
  * alone admits that registration, whatever the mode.
200
200
  *
201
- * @generated from protobuf field: optional string invite_code = 8
201
+ * @generated from protobuf field: optional string invite_code = 4
202
202
  */
203
203
  inviteCode?: string;
204
204
  }
@@ -217,7 +217,7 @@ export interface OpaqueZkppRegistrationStartResponse {
217
217
  * The history context of this registration: its operation ID, the new
218
218
  * owner's history domain and the comparison domains to evaluate.
219
219
  *
220
- * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 3
220
+ * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 2
221
221
  */
222
222
  history?: PasswordHistoryContext;
223
223
  }
@@ -228,7 +228,7 @@ export interface OpaqueZkppRegistrationFinishRequest {
228
228
  /**
229
229
  * The registration operation (from OpaqueZkppRegistrationStartResponse.history).
230
230
  *
231
- * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 6
231
+ * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1
232
232
  */
233
233
  operationId?: PasswordOperationId;
234
234
  /**
@@ -241,7 +241,7 @@ export interface OpaqueZkppRegistrationFinishRequest {
241
241
  /**
242
242
  * The registration proof; absent when the client cannot prove.
243
243
  *
244
- * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 7
244
+ * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 3
245
245
  */
246
246
  proof?: PasswordRegistrationProof;
247
247
  }
@@ -252,7 +252,7 @@ export interface OpaqueZkppRegistrationFinishResponse {
252
252
  /**
253
253
  * The password credential the registration stored.
254
254
  *
255
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 3
255
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
256
256
  */
257
257
  credentialId?: CredentialId;
258
258
  }
@@ -265,7 +265,7 @@ export interface PasswordChangeChallengeRequest {
265
265
  * ListCredentials filtered by type=OPAQUE. The Profile is resolved from
266
266
  * the bearer token, not sent.
267
267
  *
268
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 4
268
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
269
269
  */
270
270
  credentialId?: CredentialId;
271
271
  /**
@@ -299,7 +299,7 @@ export interface PasswordChangeChallengeResponse {
299
299
  * domain, the comparison domains the new password is checked in and the
300
300
  * policy version the proof is made for.
301
301
  *
302
- * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 4
302
+ * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 1
303
303
  */
304
304
  history?: PasswordHistoryContext;
305
305
  /**
@@ -307,7 +307,7 @@ export interface PasswordChangeChallengeResponse {
307
307
  * client finishes the sign-in with it and sends KE3 in execute. Absent when
308
308
  * the request carried no credential_request.
309
309
  *
310
- * @generated from protobuf field: bytes credential_response = 5
310
+ * @generated from protobuf field: bytes credential_response = 2
311
311
  */
312
312
  credentialResponse: Uint8Array;
313
313
  }
@@ -318,21 +318,23 @@ export interface PasswordChangeExecuteRequest {
318
318
  /**
319
319
  * The change operation (from PasswordChangeChallengeResponse.history).
320
320
  *
321
- * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 9
321
+ * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1
322
322
  */
323
323
  operationId?: PasswordOperationId;
324
324
  /**
325
325
  * Target OPAQUE credential (same as in ChallengeRequest).
326
326
  *
327
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 11
327
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 2
328
328
  */
329
329
  credentialId?: CredentialId;
330
330
  /**
331
331
  * OPAQUE CredentialFinalization (KE3) of the current-password sign-in begun
332
332
  * in the challenge (RFC 9807 §6), under the change context. Required when
333
- * the challenge carried credential_request, absent otherwise.
333
+ * the challenge carried credential_request, absent otherwise. The new
334
+ * password's registration request travels only in the challenge, where the
335
+ * current-password context covers it.
334
336
  *
335
- * @generated from protobuf field: bytes credential_finalization = 10
337
+ * @generated from protobuf field: bytes credential_finalization = 3
336
338
  */
337
339
  credentialFinalization: Uint8Array;
338
340
  }
@@ -355,13 +357,13 @@ export interface PasswordChangeFinishRequest {
355
357
  /**
356
358
  * The change operation (from PasswordChangeChallengeResponse.history).
357
359
  *
358
- * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 4
360
+ * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1
359
361
  */
360
362
  operationId?: PasswordOperationId;
361
363
  /**
362
364
  * Target OPAQUE credential (same as in Challenge/Execute).
363
365
  *
364
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 6
366
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 2
365
367
  */
366
368
  credentialId?: CredentialId;
367
369
  /**
@@ -376,7 +378,7 @@ export interface PasswordChangeFinishRequest {
376
378
  * The registration proof for the new password; absent when the client
377
379
  * cannot prove, in which case the change installs policy-unverified.
378
380
  *
379
- * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 5
381
+ * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 4
380
382
  */
381
383
  proof?: PasswordRegistrationProof;
382
384
  }
@@ -439,7 +441,7 @@ export interface WebAuthnRegistrationFinishResponse {
439
441
  * The passkey credential the registration stored, for management (delete,
440
442
  * label). Not the authenticator's WebAuthn credential ID.
441
443
  *
442
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 2
444
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
443
445
  */
444
446
  credentialId?: CredentialId;
445
447
  }
@@ -470,7 +472,9 @@ export interface WebAuthnAuthenticationStartResponse {
470
472
  /**
471
473
  * PublicKeyCredentialRequestOptions serialized as JSON. Contains: challenge,
472
474
  * rpId, allowCredentials (populated for principal-first, empty for conditional UI),
473
- * userVerification, timeout.
475
+ * userVerification, timeout. The server finds the ceremony by the challenge
476
+ * the assertion signs (WebAuthn Level 3 §7.2 step 12); no separate
477
+ * reference travels.
474
478
  *
475
479
  * @generated from protobuf field: bytes options = 2
476
480
  */
@@ -508,31 +512,31 @@ export interface WebAuthnAuthenticationFinishResponse {
508
512
  /**
509
513
  * Same semantics as OpaqueLoginFinishResponse.session_id.
510
514
  *
511
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 7
515
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
512
516
  */
513
517
  sessionId?: SessionId;
514
518
  /**
515
519
  * Seconds until the delivered credential expires.
516
520
  *
517
- * @generated from protobuf field: int64 expires_in = 3
521
+ * @generated from protobuf field: int64 expires_in = 2
518
522
  */
519
523
  expiresIn: bigint;
520
524
  /**
521
525
  * Same semantics as OpaqueLoginFinishResponse.second_factors.
522
526
  *
523
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 4
527
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 3
524
528
  */
525
529
  secondFactors: StepUpMethod[];
526
530
  /**
527
531
  * Same semantics as OpaqueLoginFinishResponse.browser_csrf.
528
532
  *
529
- * @generated from protobuf field: optional string browser_csrf = 5
533
+ * @generated from protobuf field: optional string browser_csrf = 4
530
534
  */
531
535
  browserCsrf?: string;
532
536
  /**
533
537
  * Same semantics as OpaqueLoginFinishResponse.enrollable_factors.
534
538
  *
535
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 6
539
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 5
536
540
  */
537
541
  enrollableFactors: StepUpMethod[];
538
542
  }
@@ -1124,7 +1128,7 @@ export interface ValidateSessionRequest {
1124
1128
  /**
1125
1129
  * The session to validate, from the token's `sid` claim or the cookie.
1126
1130
  *
1127
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 2
1131
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
1128
1132
  */
1129
1133
  sessionId?: SessionId;
1130
1134
  }
@@ -1334,7 +1338,7 @@ export interface RequestMagicLinkResponse {
1334
1338
  /**
1335
1339
  * The magic link requested. Client may display "check your email" with this reference.
1336
1340
  *
1337
- * @generated from protobuf field: sid.v1.ids.MagicLinkId magic_link_id = 3
1341
+ * @generated from protobuf field: sid.v1.ids.MagicLinkId magic_link_id = 1
1338
1342
  */
1339
1343
  magicLinkId?: MagicLinkId;
1340
1344
  /**
@@ -1351,7 +1355,7 @@ export interface VerifyMagicLinkRequest {
1351
1355
  /**
1352
1356
  * The magic link, from its URL (the page decodes the URL's text form).
1353
1357
  *
1354
- * @generated from protobuf field: sid.v1.ids.MagicLinkId magic_link_id = 3
1358
+ * @generated from protobuf field: sid.v1.ids.MagicLinkId magic_link_id = 1
1355
1359
  */
1356
1360
  magicLinkId?: MagicLinkId;
1357
1361
  /**
@@ -1371,13 +1375,13 @@ export interface VerifyMagicLinkResponse {
1371
1375
  /**
1372
1376
  * The session the link opened (not the magic link itself).
1373
1377
  *
1374
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 4
1378
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
1375
1379
  */
1376
1380
  sessionId?: SessionId;
1377
1381
  /**
1378
1382
  * Seconds until the delivered credential expires.
1379
1383
  *
1380
- * @generated from protobuf field: int32 expires_in = 3
1384
+ * @generated from protobuf field: int32 expires_in = 2
1381
1385
  */
1382
1386
  expiresIn: number;
1383
1387
  }
@@ -1405,7 +1409,9 @@ export interface ResolvePrincipalResponse {
1405
1409
  * started without credential IDs), "magic_link" when magic links are
1406
1410
  * enabled and the identifier is an email address or phone number. Whether
1407
1411
  * the account can use a method is decided at that method's step, which
1408
- * refuses an unknown account exactly as a wrong secret.
1412
+ * refuses an unknown account exactly as a wrong secret. No method is
1413
+ * suggested from the account's last sign-in, which would disclose that the
1414
+ * account exists; a client remembers its last method locally.
1409
1415
  *
1410
1416
  * @generated from protobuf field: repeated string available_methods = 1
1411
1417
  */
@@ -1446,7 +1452,7 @@ export interface LegacyMigrateStartResponse {
1446
1452
  * The upgrade this start began, kept by the server for 5 minutes. The
1447
1453
  * client sends it with the finish.
1448
1454
  *
1449
- * @generated from protobuf field: sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 3
1455
+ * @generated from protobuf field: sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 1
1450
1456
  */
1451
1457
  upgradeId?: ImportedPasswordUpgradeId;
1452
1458
  /**
@@ -1463,7 +1469,7 @@ export interface LegacyMigrateFinishRequest {
1463
1469
  /**
1464
1470
  * From LegacyMigrateStartResponse.upgrade_id.
1465
1471
  *
1466
- * @generated from protobuf field: sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 3
1472
+ * @generated from protobuf field: sid.v1.ids.ImportedPasswordUpgradeId upgrade_id = 1
1467
1473
  */
1468
1474
  upgradeId?: ImportedPasswordUpgradeId;
1469
1475
  /**
@@ -1484,31 +1490,31 @@ export interface LegacyMigrateFinishResponse {
1484
1490
  /**
1485
1491
  * Same semantics as OpaqueLoginFinishResponse.session_id.
1486
1492
  *
1487
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 7
1493
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
1488
1494
  */
1489
1495
  sessionId?: SessionId;
1490
1496
  /**
1491
1497
  * Seconds until the delivered credential expires.
1492
1498
  *
1493
- * @generated from protobuf field: int64 expires_in = 3
1499
+ * @generated from protobuf field: int64 expires_in = 2
1494
1500
  */
1495
1501
  expiresIn: bigint;
1496
1502
  /**
1497
1503
  * Same semantics as OpaqueLoginFinishResponse.second_factors.
1498
1504
  *
1499
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 4
1505
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod second_factors = 3
1500
1506
  */
1501
1507
  secondFactors: StepUpMethod[];
1502
1508
  /**
1503
1509
  * Same semantics as OpaqueLoginFinishResponse.browser_csrf.
1504
1510
  *
1505
- * @generated from protobuf field: optional string browser_csrf = 5
1511
+ * @generated from protobuf field: optional string browser_csrf = 4
1506
1512
  */
1507
1513
  browserCsrf?: string;
1508
1514
  /**
1509
1515
  * Same semantics as OpaqueLoginFinishResponse.enrollable_factors.
1510
1516
  *
1511
- * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 6
1517
+ * @generated from protobuf field: repeated sid.v1.authn.StepUpMethod enrollable_factors = 5
1512
1518
  */
1513
1519
  enrollableFactors: StepUpMethod[];
1514
1520
  }
@@ -1567,7 +1573,7 @@ export interface SubmitDeferredZkProofRequest {
1567
1573
  * The password credential to verify; it must belong to the bearer token's
1568
1574
  * Profile.
1569
1575
  *
1570
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 5
1576
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
1571
1577
  */
1572
1578
  credentialId?: CredentialId;
1573
1579
  /**
@@ -1616,44 +1622,44 @@ export interface StartTotpEnrollmentRequest {
1616
1622
  * @generated from protobuf message sid.v1.authn.TotpEnrollmentChallenge
1617
1623
  */
1618
1624
  export interface TotpEnrollmentChallenge {
1625
+ /**
1626
+ * The TOTP shared secret (RFC 6238 §5.1, the HMAC key), raw: 20 random
1627
+ * bytes generated by the server. SECURITY: delivered only in this response
1628
+ * of the enrollment, never again; the client shows it once.
1629
+ *
1630
+ * @generated from protobuf field: bytes shared_secret = 1
1631
+ */
1632
+ sharedSecret: Uint8Array;
1619
1633
  /**
1620
1634
  * Issuer name displayed in authenticator app (e.g., "StructuredID").
1621
1635
  * Server-configured (RealmSettings.display_name).
1622
1636
  *
1623
- * @generated from protobuf field: string issuer = 3
1637
+ * @generated from protobuf field: string issuer = 2
1624
1638
  */
1625
1639
  issuer: string;
1626
1640
  /**
1627
1641
  * Account identifier displayed in authenticator app (e.g., user's email).
1628
1642
  * Server resolves from profile's primary email or username.
1629
1643
  *
1630
- * @generated from protobuf field: string account_name = 4
1644
+ * @generated from protobuf field: string account_name = 3
1631
1645
  */
1632
1646
  accountName: string;
1633
- /**
1634
- * The TOTP shared secret (RFC 6238 §5.1, the HMAC key), raw: 20 random
1635
- * bytes generated by the server. SECURITY: delivered only in this response
1636
- * of the enrollment, never again; the client shows it once.
1637
- *
1638
- * @generated from protobuf field: bytes shared_secret = 5
1639
- */
1640
- sharedSecret: Uint8Array;
1641
1647
  /**
1642
1648
  * The HMAC the codes use (RFC 6238 §1.2).
1643
1649
  *
1644
- * @generated from protobuf field: sid.v1.authn.TotpAlgorithm algorithm = 6
1650
+ * @generated from protobuf field: sid.v1.authn.TotpAlgorithm algorithm = 4
1645
1651
  */
1646
1652
  algorithm: TotpAlgorithm;
1647
1653
  /**
1648
1654
  * Digits per code (RFC 4226 §5.3), e.g. 6.
1649
1655
  *
1650
- * @generated from protobuf field: uint32 digits = 7
1656
+ * @generated from protobuf field: uint32 digits = 5
1651
1657
  */
1652
1658
  digits: number;
1653
1659
  /**
1654
1660
  * Seconds each code is valid for (RFC 6238 §4.1, X), e.g. 30.
1655
1661
  *
1656
- * @generated from protobuf field: uint32 period_seconds = 8
1662
+ * @generated from protobuf field: uint32 period_seconds = 6
1657
1663
  */
1658
1664
  periodSeconds: number;
1659
1665
  }
@@ -1676,7 +1682,7 @@ export interface FinishTotpEnrollmentResponse {
1676
1682
  /**
1677
1683
  * The TOTP credential the enrollment stored.
1678
1684
  *
1679
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 3
1685
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
1680
1686
  */
1681
1687
  credentialId?: CredentialId;
1682
1688
  /**
@@ -1723,28 +1729,30 @@ export interface MfaVerifyResponse {
1723
1729
  * The session after MFA elevation (refreshed with the updated amr). Set
1724
1730
  * when verified=true and this was the last required MFA step.
1725
1731
  *
1726
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 7
1732
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 2
1727
1733
  */
1728
1734
  sessionId?: SessionId;
1729
1735
  /**
1730
1736
  * Seconds until the delivered credential expires; set when one was
1731
- * delivered.
1737
+ * delivered. The elevated session's new access token, with the updated amr
1738
+ * claim, is delivered as for OpaqueLoginFinishResponse (`authorization`
1739
+ * metadata).
1732
1740
  *
1733
- * @generated from protobuf field: optional int64 expires_in = 4
1741
+ * @generated from protobuf field: optional int64 expires_in = 3
1734
1742
  */
1735
1743
  expiresIn?: bigint;
1736
1744
  /**
1737
1745
  * Next step in the authentication flow, if any. Server determines based on
1738
1746
  * policy (e.g., terms acceptance, profile completion). Empty if login is complete.
1739
1747
  *
1740
- * @generated from protobuf field: optional string redirect_to = 5
1748
+ * @generated from protobuf field: optional string redirect_to = 4
1741
1749
  */
1742
1750
  redirectTo?: string;
1743
1751
  /**
1744
1752
  * Number of remaining unused recovery codes. Set only for VerifyRecoveryCode
1745
1753
  * responses — helps user know when to generate new codes.
1746
1754
  *
1747
- * @generated from protobuf field: optional int32 remaining_codes = 6
1755
+ * @generated from protobuf field: optional int32 remaining_codes = 5
1748
1756
  */
1749
1757
  remainingCodes?: number;
1750
1758
  }
@@ -1814,7 +1822,7 @@ export interface RequestOtpResponse {
1814
1822
  /**
1815
1823
  * The code requested, for its verify and resend.
1816
1824
  *
1817
- * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 5
1825
+ * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 1
1818
1826
  */
1819
1827
  otpSessionId?: OtpSessionId;
1820
1828
  /**
@@ -1841,7 +1849,7 @@ export interface VerifyOtpRequest {
1841
1849
  /**
1842
1850
  * The code's request, from RequestOtpResponse.otp_session_id.
1843
1851
  *
1844
- * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 3
1852
+ * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 2
1845
1853
  */
1846
1854
  otpSessionId?: OtpSessionId;
1847
1855
  }
@@ -1862,13 +1870,15 @@ export interface VerifyOtpResponse {
1862
1870
  * Mailbox possession grants provisional scopes only: it cannot add or
1863
1871
  * change a credential of an existing account.
1864
1872
  *
1865
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 6
1873
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 3
1866
1874
  */
1867
1875
  sessionId?: SessionId;
1868
1876
  /**
1869
- * Seconds until the delivered credential expires; set when verified.
1877
+ * Seconds until the delivered credential expires; set when verified. The
1878
+ * provisional session's access token (restricted scopes) is delivered as for
1879
+ * OpaqueLoginFinishResponse (`authorization` metadata).
1870
1880
  *
1871
- * @generated from protobuf field: optional int64 expires_in = 5
1881
+ * @generated from protobuf field: optional int64 expires_in = 4
1872
1882
  */
1873
1883
  expiresIn?: bigint;
1874
1884
  }
@@ -1879,7 +1889,7 @@ export interface ResendOtpRequest {
1879
1889
  /**
1880
1890
  * The code's request, from RequestOtpResponse.otp_session_id.
1881
1891
  *
1882
- * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 2
1892
+ * @generated from protobuf field: sid.v1.ids.OtpSessionId otp_session_id = 1
1883
1893
  */
1884
1894
  otpSessionId?: OtpSessionId;
1885
1895
  }
@@ -2269,7 +2279,7 @@ export interface SubmitDynamicPromptResponse {
2269
2279
  */
2270
2280
  export interface RequestStepUpRequest {
2271
2281
  /**
2272
- * @generated from protobuf field: sid.v1.authn.StepUpMethod method = 2
2282
+ * @generated from protobuf field: sid.v1.authn.StepUpMethod method = 1
2273
2283
  */
2274
2284
  method: StepUpMethod;
2275
2285
  }
@@ -2287,7 +2297,7 @@ export interface StepUpChallenge {
2287
2297
  * The challenge, for CompleteStepUp of the same session; absent for a
2288
2298
  * 1-phase method.
2289
2299
  *
2290
- * @generated from protobuf field: sid.v1.ids.StepUpChallengeId challenge_id = 6
2300
+ * @generated from protobuf field: sid.v1.ids.StepUpChallengeId challenge_id = 2
2291
2301
  */
2292
2302
  challengeId?: StepUpChallengeId;
2293
2303
  /**
@@ -2325,13 +2335,13 @@ export interface StepUpChallenge {
2325
2335
  */
2326
2336
  export interface CompleteStepUpRequest {
2327
2337
  /**
2328
- * @generated from protobuf field: sid.v1.authn.StepUpMethod method = 2
2338
+ * @generated from protobuf field: sid.v1.authn.StepUpMethod method = 1
2329
2339
  */
2330
2340
  method: StepUpMethod;
2331
2341
  /**
2332
2342
  * From StepUpChallenge.challenge_id; absent for a 1-phase method.
2333
2343
  *
2334
- * @generated from protobuf field: sid.v1.ids.StepUpChallengeId challenge_id = 7
2344
+ * @generated from protobuf field: sid.v1.ids.StepUpChallengeId challenge_id = 2
2335
2345
  */
2336
2346
  challengeId?: StepUpChallengeId;
2337
2347
  /**
@@ -2340,19 +2350,19 @@ export interface CompleteStepUpRequest {
2340
2350
  proof: {
2341
2351
  oneofKind: "totpCode";
2342
2352
  /**
2343
- * @generated from protobuf field: string totp_code = 4
2353
+ * @generated from protobuf field: string totp_code = 3
2344
2354
  */
2345
2355
  totpCode: string;
2346
2356
  } | {
2347
2357
  oneofKind: "webauthnAssertion";
2348
2358
  /**
2349
- * @generated from protobuf field: bytes webauthn_assertion = 5
2359
+ * @generated from protobuf field: bytes webauthn_assertion = 4
2350
2360
  */
2351
2361
  webauthnAssertion: Uint8Array;
2352
2362
  } | {
2353
2363
  oneofKind: "recoveryCode";
2354
2364
  /**
2355
- * @generated from protobuf field: string recovery_code = 6
2365
+ * @generated from protobuf field: string recovery_code = 5
2356
2366
  */
2357
2367
  recoveryCode: string;
2358
2368
  } | {
@@ -2387,7 +2397,7 @@ export interface DeleteMfaCredentialRequest {
2387
2397
  /**
2388
2398
  * The MFA credential of the caller's Profile to delete.
2389
2399
  *
2390
- * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 2
2400
+ * @generated from protobuf field: sid.v1.ids.CredentialId credential_id = 1
2391
2401
  */
2392
2402
  credentialId?: CredentialId;
2393
2403
  }
@@ -2463,7 +2473,7 @@ export interface VerifyPasswordResetRequest {
2463
2473
  /**
2464
2474
  * The reset, from the emailed link (the page decodes the URL's text form).
2465
2475
  *
2466
- * @generated from protobuf field: sid.v1.ids.ResetSessionId reset_session_id = 3
2476
+ * @generated from protobuf field: sid.v1.ids.ResetSessionId reset_session_id = 1
2467
2477
  */
2468
2478
  resetSessionId?: ResetSessionId;
2469
2479
  /**
@@ -2481,7 +2491,7 @@ export interface VerifyPasswordResetRequest {
2481
2491
  */
2482
2492
  export interface VerifyPasswordResetResponse {
2483
2493
  /**
2484
- * @generated from protobuf field: int32 expires_in = 2
2494
+ * @generated from protobuf field: int32 expires_in = 1
2485
2495
  */
2486
2496
  expiresIn: number;
2487
2497
  /**
@@ -2489,7 +2499,7 @@ export interface VerifyPasswordResetResponse {
2489
2499
  * owner's history domain and the comparison domains it is checked in. The
2490
2500
  * reset needs no old password: the retained history is the owner's, not the client's.
2491
2501
  *
2492
- * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 3
2502
+ * @generated from protobuf field: sid.v1.authn.PasswordHistoryContext history = 2
2493
2503
  */
2494
2504
  history?: PasswordHistoryContext;
2495
2505
  }
@@ -2532,7 +2542,7 @@ export interface CompletePasswordResetRequest {
2532
2542
  * The reset operation (from VerifyPasswordResetResponse.history). Carries
2533
2543
  * the verified reset session's authority, as in ExecutePasswordReset.
2534
2544
  *
2535
- * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 7
2545
+ * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1
2536
2546
  */
2537
2547
  operationId?: PasswordOperationId;
2538
2548
  /**
@@ -2546,7 +2556,7 @@ export interface CompletePasswordResetRequest {
2546
2556
  * The registration proof for the replacement password; absent when the
2547
2557
  * client cannot prove, in which case it installs policy-unverified.
2548
2558
  *
2549
- * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 8
2559
+ * @generated from protobuf field: sid.v1.authn.PasswordRegistrationProof proof = 3
2550
2560
  */
2551
2561
  proof?: PasswordRegistrationProof;
2552
2562
  }
@@ -2563,13 +2573,13 @@ export interface CompletePasswordResetResponse {
2563
2573
  /**
2564
2574
  * The session the reset signed in; absent when it signed in none.
2565
2575
  *
2566
- * @generated from protobuf field: sid.v1.ids.SessionId session_id = 4
2576
+ * @generated from protobuf field: sid.v1.ids.SessionId session_id = 1
2567
2577
  */
2568
2578
  sessionId?: SessionId;
2569
2579
  /**
2570
2580
  * Seconds until the delivered credential expires; absent with session_id.
2571
2581
  *
2572
- * @generated from protobuf field: optional int32 expires_in = 3
2582
+ * @generated from protobuf field: optional int32 expires_in = 2
2573
2583
  */
2574
2584
  expiresIn?: number;
2575
2585
  }