@structured-id/ui-core 1.1.0 → 1.3.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 (101) hide show
  1. package/README.md +9 -5
  2. package/dist/browser-vp/index.d.cts +0 -11
  3. package/dist/browser-vp/index.d.ts +0 -11
  4. package/dist/index.cjs +13721 -9514
  5. package/dist/index.d.cts +4362 -2375
  6. package/dist/index.d.ts +4362 -2375
  7. package/dist/index.js +13937 -9730
  8. package/package.json +3 -3
  9. package/src/browser-vp/crypto.ts +0 -1
  10. package/src/browser-vp/index.ts +0 -2
  11. package/src/browser-vp/prf.ts +0 -2
  12. package/src/browser-vp/storage.ts +0 -2
  13. package/src/browser-vp/types.ts +0 -2
  14. package/src/browser-vp/vp.ts +0 -2
  15. package/src/composables/index.ts +6 -1
  16. package/src/composables/useAccountTransport.test.ts +121 -0
  17. package/src/composables/useAccountTransport.ts +69 -0
  18. package/src/composables/useBffAuth.ts +44 -34
  19. package/src/generated/google/api/httpbody.ts +159 -0
  20. package/src/generated/google/protobuf/any.ts +326 -0
  21. package/src/generated/google/rpc/error_details.ts +1386 -0
  22. package/src/generated/google/rpc/status.ts +127 -0
  23. package/src/generated/sid/v1/account/account.ts +1 -1
  24. package/src/generated/sid/v1/admin/admin.client.ts +15 -12
  25. package/src/generated/sid/v1/admin/admin.ts +24 -89
  26. package/src/generated/sid/v1/admin/enrollment.client.ts +24 -12
  27. package/src/generated/sid/v1/admin/enrollment.ts +65 -3
  28. package/src/generated/sid/v1/admin/events.client.ts +8 -8
  29. package/src/generated/sid/v1/admin/flow.ts +1 -1
  30. package/src/generated/sid/v1/admin/keys.ts +1 -1
  31. package/src/generated/sid/v1/admin/notifications.client.ts +12 -6
  32. package/src/generated/sid/v1/admin/notifications.ts +11 -70
  33. package/src/generated/sid/v1/admin/operations.ts +20 -35
  34. package/src/generated/sid/v1/admin/organizations.client.ts +2 -2
  35. package/src/generated/sid/v1/admin/organizations.ts +15 -32
  36. package/src/generated/sid/v1/admin/provisioning.client.ts +232 -0
  37. package/src/generated/sid/v1/admin/provisioning.ts +1383 -0
  38. package/src/generated/sid/v1/admin/scopes.ts +1 -1
  39. package/src/generated/sid/v1/admin/security.client.ts +22 -24
  40. package/src/generated/sid/v1/admin/security.ts +13 -22
  41. package/src/generated/sid/v1/admin/settings.client.ts +29 -18
  42. package/src/generated/sid/v1/admin/settings.ts +2 -82
  43. package/src/generated/sid/v1/attestation/attestation.client.ts +6 -6
  44. package/src/generated/sid/v1/attestation/attestation.ts +8 -8
  45. package/src/generated/sid/v1/authn/auth.client.ts +101 -58
  46. package/src/generated/sid/v1/authn/auth.ts +842 -414
  47. package/src/generated/sid/v1/authn/flows.ts +0 -12
  48. package/src/generated/sid/v1/authn/issuer.client.ts +489 -0
  49. package/src/generated/sid/v1/authn/issuer.ts +1600 -0
  50. package/src/generated/sid/v1/authn/password_history.client.ts +57 -0
  51. package/src/generated/sid/v1/authn/password_history.ts +578 -0
  52. package/src/generated/sid/v1/authn/system_integration.client.ts +73 -0
  53. package/src/generated/sid/v1/authn/system_integration.ts +218 -0
  54. package/src/generated/sid/v1/authz/authz.ts +1498 -317
  55. package/src/generated/sid/v1/authz/forward_auth.client.ts +97 -0
  56. package/src/generated/sid/v1/authz/forward_auth.ts +79 -0
  57. package/src/generated/sid/v1/authz/governance.client.ts +2 -2
  58. package/src/generated/sid/v1/authz/governance.ts +61 -4
  59. package/src/generated/sid/v1/common/errors.ts +532 -6
  60. package/src/generated/sid/v1/events/event_stream.client.ts +2 -2
  61. package/src/generated/sid/v1/events/event_stream.ts +2 -1
  62. package/src/generated/sid/v1/identity/identity.ts +98 -58
  63. package/src/generated/sid/v1/ids/ids.ts +395 -0
  64. package/src/generated/sid/v1/machine/machine_user.ts +0 -36
  65. package/src/generated/sid/v1/machine/pat.client.ts +2 -19
  66. package/src/generated/sid/v1/machine/pat.ts +1 -186
  67. package/src/generated/sid/v1/projects/projects.client.ts +137 -19
  68. package/src/generated/sid/v1/projects/projects.ts +2105 -405
  69. package/src/generated/sid/v1/scim/scim.client.ts +248 -2
  70. package/src/generated/sid/v1/scim/scim.ts +153 -14
  71. package/src/generated/sid/v1/test/test.ts +1 -1
  72. package/src/i18n/index.ts +0 -11
  73. package/src/index.ts +36 -2
  74. package/src/package-exports.test.ts +18 -0
  75. package/src/profile/components/SidLoginForm.vue +5 -2
  76. package/src/profile/components/SidRegistrationForm.test.ts +58 -1
  77. package/src/profile/components/SidRegistrationForm.vue +118 -12
  78. package/src/profile/components/index.ts +4 -0
  79. package/src/profile/composables/index.ts +2 -1
  80. package/src/profile/composables/useAccountApi.ts +20 -7
  81. package/src/profile/composables/useAuth.test.ts +453 -0
  82. package/src/profile/composables/useAuth.ts +414 -0
  83. package/src/profile/composables/useAuthApi.opaque.test.ts +18 -0
  84. package/src/profile/composables/useAuthApi.ts +188 -20
  85. package/src/profile/composables/useEnrollmentApi.test.ts +33 -0
  86. package/src/profile/composables/useEnrollmentApi.ts +26 -0
  87. package/src/profile/composables/useIdentityApi.ts +17 -7
  88. package/src/profile/composables/useLoginSuccess.test.ts +97 -3
  89. package/src/profile/composables/useLoginSuccess.ts +80 -22
  90. package/src/profile/composables/useSecurityLevel.test.ts +10 -3
  91. package/src/profile/composables/useSecurityLevel.ts +12 -3
  92. package/src/quasar/SidPrincipalInput.vue +4 -7
  93. package/src/utils/normalizePrincipal.test.ts +19 -5
  94. package/src/utils/normalizePrincipal.ts +7 -9
  95. package/src/utils/rpcRefusal.test.ts +151 -0
  96. package/src/utils/rpcRefusal.ts +252 -0
  97. package/src/utils/validators.test.ts +9 -0
  98. package/src/utils/validators.ts +14 -2
  99. package/src/composables/useAuth.ts +0 -40
  100. package/src/profile/composables/useOpaqueAuth.test.ts +0 -290
  101. package/src/profile/composables/useOpaqueAuth.ts +0 -191
@@ -26,7 +26,7 @@ export interface DeviceAttestation {
26
26
  /**
27
27
  * @generated from protobuf field: string device_id = 2
28
28
  */
29
- deviceId: string; // References Device in sid-identity
29
+ deviceId: string; // Attested device (`Device.id` in sid-identity, UUIDv7)
30
30
  /**
31
31
  * @generated from protobuf field: string profile_id = 3
32
32
  */
@@ -85,7 +85,7 @@ export interface RegisterDeviceKeyRequest {
85
85
  /**
86
86
  * @generated from protobuf field: string device_id = 1
87
87
  */
88
- deviceId: string; // Device to register key for
88
+ deviceId: string; // Device to register key for (`Device.id`, UUIDv7)
89
89
  /**
90
90
  * @generated from protobuf field: sid.v1.attestation.AttestationFormat format = 2
91
91
  */
@@ -122,7 +122,7 @@ export interface GetDeviceAttestationRequest {
122
122
  /**
123
123
  * @generated from protobuf field: string device_id = 1
124
124
  */
125
- deviceId: string;
125
+ deviceId: string; // Device to fetch attestation for (`Device.id`, UUIDv7)
126
126
  }
127
127
  /**
128
128
  * @generated from protobuf message sid.v1.attestation.RotateDeviceKeyRequest
@@ -131,7 +131,7 @@ export interface RotateDeviceKeyRequest {
131
131
  /**
132
132
  * @generated from protobuf field: string device_id = 1
133
133
  */
134
- deviceId: string;
134
+ deviceId: string; // Device whose key is rotated (`Device.id`, UUIDv7)
135
135
  /**
136
136
  * @generated from protobuf field: bytes new_device_public_key = 2
137
137
  */
@@ -152,7 +152,7 @@ export interface RevokeDeviceKeyRequest {
152
152
  /**
153
153
  * @generated from protobuf field: string device_id = 1
154
154
  */
155
- deviceId: string;
155
+ deviceId: string; // Device whose key is revoked (`Device.id`, UUIDv7)
156
156
  }
157
157
  /**
158
158
  * @generated from protobuf message sid.v1.attestation.ListDeviceAttestationsRequest
@@ -277,19 +277,19 @@ export enum AttestationStatus {
277
277
  */
278
278
  PENDING = 1,
279
279
  /**
280
- * Attestation chain verified (EE)
280
+ * Attestation chain verified
281
281
  *
282
282
  * @generated from protobuf enum value: ATTESTATION_STATUS_VERIFIED = 2;
283
283
  */
284
284
  VERIFIED = 2,
285
285
  /**
286
- * Stored but not verified (CE default)
286
+ * Stored; the server does not verify chains
287
287
  *
288
288
  * @generated from protobuf enum value: ATTESTATION_STATUS_UNVERIFIED = 3;
289
289
  */
290
290
  UNVERIFIED = 3,
291
291
  /**
292
- * Verification failed (EE)
292
+ * Verification failed
293
293
  *
294
294
  * @generated from protobuf enum value: ATTESTATION_STATUS_REJECTED = 4;
295
295
  */
@@ -6,6 +6,8 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
6
  import { AuthService } from "./auth";
7
7
  import type { CompletePasswordResetResponse } from "./auth";
8
8
  import type { CompletePasswordResetRequest } from "./auth";
9
+ import type { ExecutePasswordResetResponse } from "./auth";
10
+ import type { ExecutePasswordResetRequest } from "./auth";
9
11
  import type { VerifyPasswordResetResponse } from "./auth";
10
12
  import type { VerifyPasswordResetRequest } from "./auth";
11
13
  import type { RequestPasswordResetResponse } from "./auth";
@@ -79,7 +81,6 @@ import type { RequestMagicLinkResponse } from "./auth";
79
81
  import type { RequestMagicLinkRequest } from "./auth";
80
82
  import type { SubmitDeviceUserCodeResponse } from "./auth";
81
83
  import type { SubmitDeviceUserCodeRequest } from "./auth";
82
- import type { PollDeviceTokenRequest } from "./auth";
83
84
  import type { DeviceAuthorizationResponse } from "./auth";
84
85
  import type { DeviceAuthorizationRequest } from "./auth";
85
86
  import type { OAuth2RevokeResponse } from "./auth";
@@ -186,10 +187,28 @@ export interface IAuthServiceClient {
186
187
  /**
187
188
  * OAuth2 / OIDC flows.
188
189
  *
190
+ * Every OAuth client belongs to exactly one logical OIDC issuer, and these
191
+ * are that issuer's endpoints: `/i/{issuer_handle}/oauth2/*`, as advertised
192
+ * in its discovery document. There is no issuer-less OAuth surface; SID's
193
+ * own sign-in sessions are issued by the authentication RPCs above, not
194
+ * here. The sign-in UI calls OAuth2Authorize with the signed-in user's
195
+ * token after consent and redirects the browser itself; the issuer's
196
+ * browser authorization endpoint (OidcProviderService) runs the same logic.
197
+ *
189
198
  * @generated from protobuf rpc: OAuth2Authorize
190
199
  */
191
200
  oAuth2Authorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse>;
192
201
  /**
202
+ *
203
+ * The token, introspection, revocation and device authorization RPCs have
204
+ * no HTTP binding: their HTTP form is fixed by the RFCs (form-encoded
205
+ * request, RFC error body and status), which OidcProviderService serves on
206
+ * the issuer's paths with the same logic. A refusal here is a canonical
207
+ * status whose ErrorInfo metadata `oauth_error` is the RFC 6749 §5.2 or
208
+ * RFC 8628 §3.5 error code. A confidential client authenticates with the
209
+ * secret in the body, or with HTTP Basic in the `authorization` metadata
210
+ * (RFC 6749 §2.3.1), never both.
211
+ *
193
212
  * @generated from protobuf rpc: OAuth2Token
194
213
  */
195
214
  oAuth2Token(input: OAuth2TokenRequest, options?: RpcOptions): UnaryCall<OAuth2TokenRequest, OAuth2TokenResponse>;
@@ -202,15 +221,12 @@ export interface IAuthServiceClient {
202
221
  */
203
222
  oAuth2Revoke(input: OAuth2RevokeRequest, options?: RpcOptions): UnaryCall<OAuth2RevokeRequest, OAuth2RevokeResponse>;
204
223
  /**
205
- * Device Authorization Grant (RFC 8628).
224
+ * Device Authorization Grant (RFC 8628): the device starts here and polls
225
+ * OAuth2Token with the device_code grant (RFC 8628 §3.4).
206
226
  *
207
227
  * @generated from protobuf rpc: StartDeviceAuthorization
208
228
  */
209
229
  startDeviceAuthorization(input: DeviceAuthorizationRequest, options?: RpcOptions): UnaryCall<DeviceAuthorizationRequest, DeviceAuthorizationResponse>;
210
- /**
211
- * @generated from protobuf rpc: PollDeviceToken
212
- */
213
- pollDeviceToken(input: PollDeviceTokenRequest, options?: RpcOptions): UnaryCall<PollDeviceTokenRequest, OAuth2TokenResponse>;
214
230
  /**
215
231
  * @generated from protobuf rpc: SubmitDeviceUserCode
216
232
  */
@@ -348,7 +364,7 @@ export interface IAuthServiceClient {
348
364
  * @generated from protobuf rpc: AcceptTerms
349
365
  */
350
366
  acceptTerms(input: AcceptTermsRequest, options?: RpcOptions): UnaryCall<AcceptTermsRequest, AcceptTermsResponse>;
351
- // ── CIBA consent (EE) ──
367
+ // ── CIBA consent ──
352
368
 
353
369
  /**
354
370
  * @generated from protobuf rpc: ApproveCiba
@@ -364,7 +380,7 @@ export interface IAuthServiceClient {
364
380
  * @generated from protobuf rpc: VerifyCaptcha
365
381
  */
366
382
  verifyCaptcha(input: VerifyCaptchaRequest, options?: RpcOptions): UnaryCall<VerifyCaptchaRequest, VerifyCaptchaResponse>;
367
- // ── Dynamic prompt (EE custom auth steps) ──
383
+ // ── Dynamic prompt (custom auth steps) ──
368
384
 
369
385
  /**
370
386
  * @generated from protobuf rpc: GetDynamicPrompt
@@ -405,7 +421,6 @@ export interface IAuthServiceClient {
405
421
  confirmAccountDeletion(input: ConfirmAccountDeletionRequest, options?: RpcOptions): UnaryCall<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse>;
406
422
  /**
407
423
  * Password reset flow (magic link → new OPAQUE credential).
408
- * SaaS extends this with key recovery (Shamir shards, DownloadRecoveryShard) in proto-ee.
409
424
  *
410
425
  * @generated from protobuf rpc: RequestPasswordReset
411
426
  */
@@ -414,6 +429,13 @@ export interface IAuthServiceClient {
414
429
  * @generated from protobuf rpc: VerifyPasswordReset
415
430
  */
416
431
  verifyPasswordReset(input: VerifyPasswordResetRequest, options?: RpcOptions): UnaryCall<VerifyPasswordResetRequest, VerifyPasswordResetResponse>;
432
+ /**
433
+ * OPAQUE registration start of the replacement password, under the verified
434
+ * reset's operation.
435
+ *
436
+ * @generated from protobuf rpc: ExecutePasswordReset
437
+ */
438
+ executePasswordReset(input: ExecutePasswordResetRequest, options?: RpcOptions): UnaryCall<ExecutePasswordResetRequest, ExecutePasswordResetResponse>;
417
439
  /**
418
440
  * @generated from protobuf rpc: CompletePasswordReset
419
441
  */
@@ -530,6 +552,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
530
552
  /**
531
553
  * OAuth2 / OIDC flows.
532
554
  *
555
+ * Every OAuth client belongs to exactly one logical OIDC issuer, and these
556
+ * are that issuer's endpoints: `/i/{issuer_handle}/oauth2/*`, as advertised
557
+ * in its discovery document. There is no issuer-less OAuth surface; SID's
558
+ * own sign-in sessions are issued by the authentication RPCs above, not
559
+ * here. The sign-in UI calls OAuth2Authorize with the signed-in user's
560
+ * token after consent and redirects the browser itself; the issuer's
561
+ * browser authorization endpoint (OidcProviderService) runs the same logic.
562
+ *
533
563
  * @generated from protobuf rpc: OAuth2Authorize
534
564
  */
535
565
  oAuth2Authorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse> {
@@ -537,6 +567,16 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
537
567
  return stackIntercept<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse>("unary", this._transport, method, opt, input);
538
568
  }
539
569
  /**
570
+ *
571
+ * The token, introspection, revocation and device authorization RPCs have
572
+ * no HTTP binding: their HTTP form is fixed by the RFCs (form-encoded
573
+ * request, RFC error body and status), which OidcProviderService serves on
574
+ * the issuer's paths with the same logic. A refusal here is a canonical
575
+ * status whose ErrorInfo metadata `oauth_error` is the RFC 6749 §5.2 or
576
+ * RFC 8628 §3.5 error code. A confidential client authenticates with the
577
+ * secret in the body, or with HTTP Basic in the `authorization` metadata
578
+ * (RFC 6749 §2.3.1), never both.
579
+ *
540
580
  * @generated from protobuf rpc: OAuth2Token
541
581
  */
542
582
  oAuth2Token(input: OAuth2TokenRequest, options?: RpcOptions): UnaryCall<OAuth2TokenRequest, OAuth2TokenResponse> {
@@ -558,7 +598,8 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
558
598
  return stackIntercept<OAuth2RevokeRequest, OAuth2RevokeResponse>("unary", this._transport, method, opt, input);
559
599
  }
560
600
  /**
561
- * Device Authorization Grant (RFC 8628).
601
+ * Device Authorization Grant (RFC 8628): the device starts here and polls
602
+ * OAuth2Token with the device_code grant (RFC 8628 §3.4).
562
603
  *
563
604
  * @generated from protobuf rpc: StartDeviceAuthorization
564
605
  */
@@ -566,18 +607,11 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
566
607
  const method = this.methods[17], opt = this._transport.mergeOptions(options);
567
608
  return stackIntercept<DeviceAuthorizationRequest, DeviceAuthorizationResponse>("unary", this._transport, method, opt, input);
568
609
  }
569
- /**
570
- * @generated from protobuf rpc: PollDeviceToken
571
- */
572
- pollDeviceToken(input: PollDeviceTokenRequest, options?: RpcOptions): UnaryCall<PollDeviceTokenRequest, OAuth2TokenResponse> {
573
- const method = this.methods[18], opt = this._transport.mergeOptions(options);
574
- return stackIntercept<PollDeviceTokenRequest, OAuth2TokenResponse>("unary", this._transport, method, opt, input);
575
- }
576
610
  /**
577
611
  * @generated from protobuf rpc: SubmitDeviceUserCode
578
612
  */
579
613
  submitDeviceUserCode(input: SubmitDeviceUserCodeRequest, options?: RpcOptions): UnaryCall<SubmitDeviceUserCodeRequest, SubmitDeviceUserCodeResponse> {
580
- const method = this.methods[19], opt = this._transport.mergeOptions(options);
614
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
581
615
  return stackIntercept<SubmitDeviceUserCodeRequest, SubmitDeviceUserCodeResponse>("unary", this._transport, method, opt, input);
582
616
  }
583
617
  // ── Magic Link (passwordless, corporate profiles) ──
@@ -586,14 +620,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
586
620
  * @generated from protobuf rpc: RequestMagicLink
587
621
  */
588
622
  requestMagicLink(input: RequestMagicLinkRequest, options?: RpcOptions): UnaryCall<RequestMagicLinkRequest, RequestMagicLinkResponse> {
589
- const method = this.methods[20], opt = this._transport.mergeOptions(options);
623
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
590
624
  return stackIntercept<RequestMagicLinkRequest, RequestMagicLinkResponse>("unary", this._transport, method, opt, input);
591
625
  }
592
626
  /**
593
627
  * @generated from protobuf rpc: VerifyMagicLink
594
628
  */
595
629
  verifyMagicLink(input: VerifyMagicLinkRequest, options?: RpcOptions): UnaryCall<VerifyMagicLinkRequest, VerifyMagicLinkResponse> {
596
- const method = this.methods[21], opt = this._transport.mergeOptions(options);
630
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
597
631
  return stackIntercept<VerifyMagicLinkRequest, VerifyMagicLinkResponse>("unary", this._transport, method, opt, input);
598
632
  }
599
633
  /**
@@ -602,14 +636,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
602
636
  * @generated from protobuf rpc: LegacyMigrateStart
603
637
  */
604
638
  legacyMigrateStart(input: LegacyMigrateStartRequest, options?: RpcOptions): UnaryCall<LegacyMigrateStartRequest, LegacyMigrateStartResponse> {
605
- const method = this.methods[22], opt = this._transport.mergeOptions(options);
639
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
606
640
  return stackIntercept<LegacyMigrateStartRequest, LegacyMigrateStartResponse>("unary", this._transport, method, opt, input);
607
641
  }
608
642
  /**
609
643
  * @generated from protobuf rpc: LegacyMigrateFinish
610
644
  */
611
645
  legacyMigrateFinish(input: LegacyMigrateFinishRequest, options?: RpcOptions): UnaryCall<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse> {
612
- const method = this.methods[23], opt = this._transport.mergeOptions(options);
646
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
613
647
  return stackIntercept<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse>("unary", this._transport, method, opt, input);
614
648
  }
615
649
  /**
@@ -618,7 +652,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
618
652
  * @generated from protobuf rpc: ValidateSession
619
653
  */
620
654
  validateSession(input: ValidateSessionRequest, options?: RpcOptions): UnaryCall<ValidateSessionRequest, ValidateSessionResponse> {
621
- const method = this.methods[24], opt = this._transport.mergeOptions(options);
655
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
622
656
  return stackIntercept<ValidateSessionRequest, ValidateSessionResponse>("unary", this._transport, method, opt, input);
623
657
  }
624
658
  /**
@@ -627,7 +661,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
627
661
  * @generated from protobuf rpc: ResolvePrincipal
628
662
  */
629
663
  resolvePrincipal(input: ResolvePrincipalRequest, options?: RpcOptions): UnaryCall<ResolvePrincipalRequest, ResolvePrincipalResponse> {
630
- const method = this.methods[25], opt = this._transport.mergeOptions(options);
664
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
631
665
  return stackIntercept<ResolvePrincipalRequest, ResolvePrincipalResponse>("unary", this._transport, method, opt, input);
632
666
  }
633
667
  /**
@@ -636,7 +670,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
636
670
  * @generated from protobuf rpc: GetZkppPolicy
637
671
  */
638
672
  getZkppPolicy(input: GetZkppPolicyRequest, options?: RpcOptions): UnaryCall<GetZkppPolicyRequest, GetZkppPolicyResponse> {
639
- const method = this.methods[26], opt = this._transport.mergeOptions(options);
673
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
640
674
  return stackIntercept<GetZkppPolicyRequest, GetZkppPolicyResponse>("unary", this._transport, method, opt, input);
641
675
  }
642
676
  /**
@@ -646,7 +680,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
646
680
  * @generated from protobuf rpc: SubmitDeferredZkProof
647
681
  */
648
682
  submitDeferredZkProof(input: SubmitDeferredZkProofRequest, options?: RpcOptions): UnaryCall<SubmitDeferredZkProofRequest, SubmitDeferredZkProofResponse> {
649
- const method = this.methods[27], opt = this._transport.mergeOptions(options);
683
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
650
684
  return stackIntercept<SubmitDeferredZkProofRequest, SubmitDeferredZkProofResponse>("unary", this._transport, method, opt, input);
651
685
  }
652
686
  // ── MFA TOTP ──
@@ -655,21 +689,21 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
655
689
  * @generated from protobuf rpc: StartTotpEnrollment
656
690
  */
657
691
  startTotpEnrollment(input: StartTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<StartTotpEnrollmentRequest, TotpEnrollmentChallenge> {
658
- const method = this.methods[28], opt = this._transport.mergeOptions(options);
692
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
659
693
  return stackIntercept<StartTotpEnrollmentRequest, TotpEnrollmentChallenge>("unary", this._transport, method, opt, input);
660
694
  }
661
695
  /**
662
696
  * @generated from protobuf rpc: FinishTotpEnrollment
663
697
  */
664
698
  finishTotpEnrollment(input: FinishTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishTotpEnrollmentRequest, FinishTotpEnrollmentResponse> {
665
- const method = this.methods[29], opt = this._transport.mergeOptions(options);
699
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
666
700
  return stackIntercept<FinishTotpEnrollmentRequest, FinishTotpEnrollmentResponse>("unary", this._transport, method, opt, input);
667
701
  }
668
702
  /**
669
703
  * @generated from protobuf rpc: VerifyTotp
670
704
  */
671
705
  verifyTotp(input: VerifyTotpRequest, options?: RpcOptions): UnaryCall<VerifyTotpRequest, MfaVerifyResponse> {
672
- const method = this.methods[30], opt = this._transport.mergeOptions(options);
706
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
673
707
  return stackIntercept<VerifyTotpRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
674
708
  }
675
709
  // ── MFA SMS ──
@@ -678,14 +712,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
678
712
  * @generated from protobuf rpc: VerifySmsMfa
679
713
  */
680
714
  verifySmsMfa(input: VerifySmsMfaRequest, options?: RpcOptions): UnaryCall<VerifySmsMfaRequest, MfaVerifyResponse> {
681
- const method = this.methods[31], opt = this._transport.mergeOptions(options);
715
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
682
716
  return stackIntercept<VerifySmsMfaRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
683
717
  }
684
718
  /**
685
719
  * @generated from protobuf rpc: ResendSmsMfa
686
720
  */
687
721
  resendSmsMfa(input: ResendSmsMfaRequest, options?: RpcOptions): UnaryCall<ResendSmsMfaRequest, ResendSmsMfaResponse> {
688
- const method = this.methods[32], opt = this._transport.mergeOptions(options);
722
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
689
723
  return stackIntercept<ResendSmsMfaRequest, ResendSmsMfaResponse>("unary", this._transport, method, opt, input);
690
724
  }
691
725
  // ── MFA Recovery Codes ──
@@ -694,14 +728,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
694
728
  * @generated from protobuf rpc: GenerateRecoveryCodes
695
729
  */
696
730
  generateRecoveryCodes(input: GenerateRecoveryCodesRequest, options?: RpcOptions): UnaryCall<GenerateRecoveryCodesRequest, GenerateRecoveryCodesResponse> {
697
- const method = this.methods[33], opt = this._transport.mergeOptions(options);
731
+ const method = this.methods[32], opt = this._transport.mergeOptions(options);
698
732
  return stackIntercept<GenerateRecoveryCodesRequest, GenerateRecoveryCodesResponse>("unary", this._transport, method, opt, input);
699
733
  }
700
734
  /**
701
735
  * @generated from protobuf rpc: VerifyRecoveryCode
702
736
  */
703
737
  verifyRecoveryCode(input: VerifyRecoveryCodeRequest, options?: RpcOptions): UnaryCall<VerifyRecoveryCodeRequest, MfaVerifyResponse> {
704
- const method = this.methods[34], opt = this._transport.mergeOptions(options);
738
+ const method = this.methods[33], opt = this._transport.mergeOptions(options);
705
739
  return stackIntercept<VerifyRecoveryCodeRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
706
740
  }
707
741
  // ── OTP verification (email/phone, non-MFA) ──
@@ -710,21 +744,21 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
710
744
  * @generated from protobuf rpc: RequestOtp
711
745
  */
712
746
  requestOtp(input: RequestOtpRequest, options?: RpcOptions): UnaryCall<RequestOtpRequest, RequestOtpResponse> {
713
- const method = this.methods[35], opt = this._transport.mergeOptions(options);
747
+ const method = this.methods[34], opt = this._transport.mergeOptions(options);
714
748
  return stackIntercept<RequestOtpRequest, RequestOtpResponse>("unary", this._transport, method, opt, input);
715
749
  }
716
750
  /**
717
751
  * @generated from protobuf rpc: VerifyOtp
718
752
  */
719
753
  verifyOtp(input: VerifyOtpRequest, options?: RpcOptions): UnaryCall<VerifyOtpRequest, VerifyOtpResponse> {
720
- const method = this.methods[36], opt = this._transport.mergeOptions(options);
754
+ const method = this.methods[35], opt = this._transport.mergeOptions(options);
721
755
  return stackIntercept<VerifyOtpRequest, VerifyOtpResponse>("unary", this._transport, method, opt, input);
722
756
  }
723
757
  /**
724
758
  * @generated from protobuf rpc: ResendOtp
725
759
  */
726
760
  resendOtp(input: ResendOtpRequest, options?: RpcOptions): UnaryCall<ResendOtpRequest, ResendOtpResponse> {
727
- const method = this.methods[37], opt = this._transport.mergeOptions(options);
761
+ const method = this.methods[36], opt = this._transport.mergeOptions(options);
728
762
  return stackIntercept<ResendOtpRequest, ResendOtpResponse>("unary", this._transport, method, opt, input);
729
763
  }
730
764
  // ── Email/Phone verification ──
@@ -733,21 +767,21 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
733
767
  * @generated from protobuf rpc: ResendEmailVerification
734
768
  */
735
769
  resendEmailVerification(input: ResendEmailVerificationRequest, options?: RpcOptions): UnaryCall<ResendEmailVerificationRequest, ResendEmailVerificationResponse> {
736
- const method = this.methods[38], opt = this._transport.mergeOptions(options);
770
+ const method = this.methods[37], opt = this._transport.mergeOptions(options);
737
771
  return stackIntercept<ResendEmailVerificationRequest, ResendEmailVerificationResponse>("unary", this._transport, method, opt, input);
738
772
  }
739
773
  /**
740
774
  * @generated from protobuf rpc: VerifyPhone
741
775
  */
742
776
  verifyPhone(input: VerifyPhoneRequest, options?: RpcOptions): UnaryCall<VerifyPhoneRequest, VerifyPhoneResponse> {
743
- const method = this.methods[39], opt = this._transport.mergeOptions(options);
777
+ const method = this.methods[38], opt = this._transport.mergeOptions(options);
744
778
  return stackIntercept<VerifyPhoneRequest, VerifyPhoneResponse>("unary", this._transport, method, opt, input);
745
779
  }
746
780
  /**
747
781
  * @generated from protobuf rpc: ResendPhoneVerification
748
782
  */
749
783
  resendPhoneVerification(input: ResendPhoneVerificationRequest, options?: RpcOptions): UnaryCall<ResendPhoneVerificationRequest, ResendPhoneVerificationResponse> {
750
- const method = this.methods[40], opt = this._transport.mergeOptions(options);
784
+ const method = this.methods[39], opt = this._transport.mergeOptions(options);
751
785
  return stackIntercept<ResendPhoneVerificationRequest, ResendPhoneVerificationResponse>("unary", this._transport, method, opt, input);
752
786
  }
753
787
  // ── IdP linking ──
@@ -756,7 +790,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
756
790
  * @generated from protobuf rpc: ConfirmIdpLink
757
791
  */
758
792
  confirmIdpLink(input: ConfirmIdpLinkRequest, options?: RpcOptions): UnaryCall<ConfirmIdpLinkRequest, ConfirmIdpLinkResponse> {
759
- const method = this.methods[41], opt = this._transport.mergeOptions(options);
793
+ const method = this.methods[40], opt = this._transport.mergeOptions(options);
760
794
  return stackIntercept<ConfirmIdpLinkRequest, ConfirmIdpLinkResponse>("unary", this._transport, method, opt, input);
761
795
  }
762
796
  // ── Organization selector (multi-org login) ──
@@ -765,14 +799,14 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
765
799
  * @generated from protobuf rpc: ListUserOrganizations
766
800
  */
767
801
  listUserOrganizations(input: ListUserOrganizationsRequest, options?: RpcOptions): UnaryCall<ListUserOrganizationsRequest, ListUserOrganizationsResponse> {
768
- const method = this.methods[42], opt = this._transport.mergeOptions(options);
802
+ const method = this.methods[41], opt = this._transport.mergeOptions(options);
769
803
  return stackIntercept<ListUserOrganizationsRequest, ListUserOrganizationsResponse>("unary", this._transport, method, opt, input);
770
804
  }
771
805
  /**
772
806
  * @generated from protobuf rpc: SelectOrganization
773
807
  */
774
808
  selectOrganization(input: SelectOrganizationRequest, options?: RpcOptions): UnaryCall<SelectOrganizationRequest, SelectOrganizationResponse> {
775
- const method = this.methods[43], opt = this._transport.mergeOptions(options);
809
+ const method = this.methods[42], opt = this._transport.mergeOptions(options);
776
810
  return stackIntercept<SelectOrganizationRequest, SelectOrganizationResponse>("unary", this._transport, method, opt, input);
777
811
  }
778
812
  // ── Terms acceptance ──
@@ -781,30 +815,30 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
781
815
  * @generated from protobuf rpc: GetTerms
782
816
  */
783
817
  getTerms(input: GetTermsRequest, options?: RpcOptions): UnaryCall<GetTermsRequest, GetTermsResponse> {
784
- const method = this.methods[44], opt = this._transport.mergeOptions(options);
818
+ const method = this.methods[43], opt = this._transport.mergeOptions(options);
785
819
  return stackIntercept<GetTermsRequest, GetTermsResponse>("unary", this._transport, method, opt, input);
786
820
  }
787
821
  /**
788
822
  * @generated from protobuf rpc: AcceptTerms
789
823
  */
790
824
  acceptTerms(input: AcceptTermsRequest, options?: RpcOptions): UnaryCall<AcceptTermsRequest, AcceptTermsResponse> {
791
- const method = this.methods[45], opt = this._transport.mergeOptions(options);
825
+ const method = this.methods[44], opt = this._transport.mergeOptions(options);
792
826
  return stackIntercept<AcceptTermsRequest, AcceptTermsResponse>("unary", this._transport, method, opt, input);
793
827
  }
794
- // ── CIBA consent (EE) ──
828
+ // ── CIBA consent ──
795
829
 
796
830
  /**
797
831
  * @generated from protobuf rpc: ApproveCiba
798
832
  */
799
833
  approveCiba(input: ApproveCibaRequest, options?: RpcOptions): UnaryCall<ApproveCibaRequest, CibaConsentResponse> {
800
- const method = this.methods[46], opt = this._transport.mergeOptions(options);
834
+ const method = this.methods[45], opt = this._transport.mergeOptions(options);
801
835
  return stackIntercept<ApproveCibaRequest, CibaConsentResponse>("unary", this._transport, method, opt, input);
802
836
  }
803
837
  /**
804
838
  * @generated from protobuf rpc: DenyCiba
805
839
  */
806
840
  denyCiba(input: DenyCibaRequest, options?: RpcOptions): UnaryCall<DenyCibaRequest, CibaConsentResponse> {
807
- const method = this.methods[47], opt = this._transport.mergeOptions(options);
841
+ const method = this.methods[46], opt = this._transport.mergeOptions(options);
808
842
  return stackIntercept<DenyCibaRequest, CibaConsentResponse>("unary", this._transport, method, opt, input);
809
843
  }
810
844
  // ── Captcha ──
@@ -813,23 +847,23 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
813
847
  * @generated from protobuf rpc: VerifyCaptcha
814
848
  */
815
849
  verifyCaptcha(input: VerifyCaptchaRequest, options?: RpcOptions): UnaryCall<VerifyCaptchaRequest, VerifyCaptchaResponse> {
816
- const method = this.methods[48], opt = this._transport.mergeOptions(options);
850
+ const method = this.methods[47], opt = this._transport.mergeOptions(options);
817
851
  return stackIntercept<VerifyCaptchaRequest, VerifyCaptchaResponse>("unary", this._transport, method, opt, input);
818
852
  }
819
- // ── Dynamic prompt (EE custom auth steps) ──
853
+ // ── Dynamic prompt (custom auth steps) ──
820
854
 
821
855
  /**
822
856
  * @generated from protobuf rpc: GetDynamicPrompt
823
857
  */
824
858
  getDynamicPrompt(input: GetDynamicPromptRequest, options?: RpcOptions): UnaryCall<GetDynamicPromptRequest, DynamicPrompt> {
825
- const method = this.methods[49], opt = this._transport.mergeOptions(options);
859
+ const method = this.methods[48], opt = this._transport.mergeOptions(options);
826
860
  return stackIntercept<GetDynamicPromptRequest, DynamicPrompt>("unary", this._transport, method, opt, input);
827
861
  }
828
862
  /**
829
863
  * @generated from protobuf rpc: SubmitDynamicPrompt
830
864
  */
831
865
  submitDynamicPrompt(input: SubmitDynamicPromptRequest, options?: RpcOptions): UnaryCall<SubmitDynamicPromptRequest, SubmitDynamicPromptResponse> {
832
- const method = this.methods[50], opt = this._transport.mergeOptions(options);
866
+ const method = this.methods[49], opt = this._transport.mergeOptions(options);
833
867
  return stackIntercept<SubmitDynamicPromptRequest, SubmitDynamicPromptResponse>("unary", this._transport, method, opt, input);
834
868
  }
835
869
  // ── Step-up authentication ──
@@ -840,7 +874,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
840
874
  * @generated from protobuf rpc: RequestStepUp
841
875
  */
842
876
  requestStepUp(input: RequestStepUpRequest, options?: RpcOptions): UnaryCall<RequestStepUpRequest, StepUpChallenge> {
843
- const method = this.methods[51], opt = this._transport.mergeOptions(options);
877
+ const method = this.methods[50], opt = this._transport.mergeOptions(options);
844
878
  return stackIntercept<RequestStepUpRequest, StepUpChallenge>("unary", this._transport, method, opt, input);
845
879
  }
846
880
  /**
@@ -849,7 +883,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
849
883
  * @generated from protobuf rpc: CompleteStepUp
850
884
  */
851
885
  completeStepUp(input: CompleteStepUpRequest, options?: RpcOptions): UnaryCall<CompleteStepUpRequest, CompleteStepUpResponse> {
852
- const method = this.methods[52], opt = this._transport.mergeOptions(options);
886
+ const method = this.methods[51], opt = this._transport.mergeOptions(options);
853
887
  return stackIntercept<CompleteStepUpRequest, CompleteStepUpResponse>("unary", this._transport, method, opt, input);
854
888
  }
855
889
  // ── MFA credential management ──
@@ -861,7 +895,7 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
861
895
  * @generated from protobuf rpc: DeleteMfaCredential
862
896
  */
863
897
  deleteMfaCredential(input: DeleteMfaCredentialRequest, options?: RpcOptions): UnaryCall<DeleteMfaCredentialRequest, DeleteMfaCredentialResponse> {
864
- const method = this.methods[53], opt = this._transport.mergeOptions(options);
898
+ const method = this.methods[52], opt = this._transport.mergeOptions(options);
865
899
  return stackIntercept<DeleteMfaCredentialRequest, DeleteMfaCredentialResponse>("unary", this._transport, method, opt, input);
866
900
  }
867
901
  // ── Account deletion confirmation ──
@@ -870,26 +904,35 @@ export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
870
904
  * @generated from protobuf rpc: ConfirmAccountDeletion
871
905
  */
872
906
  confirmAccountDeletion(input: ConfirmAccountDeletionRequest, options?: RpcOptions): UnaryCall<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse> {
873
- const method = this.methods[54], opt = this._transport.mergeOptions(options);
907
+ const method = this.methods[53], opt = this._transport.mergeOptions(options);
874
908
  return stackIntercept<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse>("unary", this._transport, method, opt, input);
875
909
  }
876
910
  /**
877
911
  * Password reset flow (magic link → new OPAQUE credential).
878
- * SaaS extends this with key recovery (Shamir shards, DownloadRecoveryShard) in proto-ee.
879
912
  *
880
913
  * @generated from protobuf rpc: RequestPasswordReset
881
914
  */
882
915
  requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, RequestPasswordResetResponse> {
883
- const method = this.methods[55], opt = this._transport.mergeOptions(options);
916
+ const method = this.methods[54], opt = this._transport.mergeOptions(options);
884
917
  return stackIntercept<RequestPasswordResetRequest, RequestPasswordResetResponse>("unary", this._transport, method, opt, input);
885
918
  }
886
919
  /**
887
920
  * @generated from protobuf rpc: VerifyPasswordReset
888
921
  */
889
922
  verifyPasswordReset(input: VerifyPasswordResetRequest, options?: RpcOptions): UnaryCall<VerifyPasswordResetRequest, VerifyPasswordResetResponse> {
890
- const method = this.methods[56], opt = this._transport.mergeOptions(options);
923
+ const method = this.methods[55], opt = this._transport.mergeOptions(options);
891
924
  return stackIntercept<VerifyPasswordResetRequest, VerifyPasswordResetResponse>("unary", this._transport, method, opt, input);
892
925
  }
926
+ /**
927
+ * OPAQUE registration start of the replacement password, under the verified
928
+ * reset's operation.
929
+ *
930
+ * @generated from protobuf rpc: ExecutePasswordReset
931
+ */
932
+ executePasswordReset(input: ExecutePasswordResetRequest, options?: RpcOptions): UnaryCall<ExecutePasswordResetRequest, ExecutePasswordResetResponse> {
933
+ const method = this.methods[56], opt = this._transport.mergeOptions(options);
934
+ return stackIntercept<ExecutePasswordResetRequest, ExecutePasswordResetResponse>("unary", this._transport, method, opt, input);
935
+ }
893
936
  /**
894
937
  * @generated from protobuf rpc: CompletePasswordReset
895
938
  */