@structured-id/ui-core 2.0.0 → 3.0.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 (152) hide show
  1. package/README.md +22 -10
  2. package/package.json +25 -43
  3. package/src/components/SidStatusBadge.vue +1 -5
  4. package/src/composables/useAccountTransport.test.ts +2 -1
  5. package/src/composables/useGrpc.test.ts +17 -14
  6. package/src/composables/useGrpc.ts +4 -2
  7. package/src/index.ts +2 -120
  8. package/src/profile/components/ConsentManager.vue +5 -1
  9. package/src/profile/components/ProfileEditor.vue +1 -1
  10. package/src/profile/components/SecuritySettings.vue +5 -1
  11. package/src/profile/components/SessionList.vue +2 -1
  12. package/src/profile/components/SidRegistrationForm.test.ts +173 -1
  13. package/src/profile/components/SidRegistrationForm.vue +88 -32
  14. package/src/profile/components/index.ts +1 -4
  15. package/src/profile/composables/index.ts +1 -0
  16. package/src/profile/composables/operationPlan.test.ts +155 -0
  17. package/src/profile/composables/operationPlan.ts +218 -0
  18. package/src/profile/composables/useAccountApi.ts +4 -4
  19. package/src/profile/composables/useAuth.test.ts +312 -31
  20. package/src/profile/composables/useAuth.ts +176 -30
  21. package/src/profile/composables/useAuthApi.opaque.test.ts +13 -6
  22. package/src/profile/composables/useAuthApi.ts +40 -18
  23. package/src/profile/composables/useCurrentPasswordRequirement.test.ts +196 -0
  24. package/src/profile/composables/useCurrentPasswordRequirement.ts +95 -0
  25. package/src/profile/composables/useEnrollmentApi.test.ts +7 -3
  26. package/src/profile/composables/useEnrollmentApi.ts +3 -5
  27. package/src/profile/composables/useIdentityApi.ts +4 -4
  28. package/src/profile/composables/useSecurityLevel.test.ts +1 -1
  29. package/src/profile/composables/useSecurityLevel.ts +1 -1
  30. package/src/quasar/SidPasswordCeremony.test.ts +253 -0
  31. package/src/quasar/SidPasswordCeremony.vue +456 -0
  32. package/src/quasar/index.ts +2 -0
  33. package/src/utils/rpcRefusal.test.ts +4 -4
  34. package/src/utils/rpcRefusal.ts +8 -4
  35. package/dist/browser-vp/index.cjs +0 -349
  36. package/dist/browser-vp/index.d.cts +0 -276
  37. package/dist/browser-vp/index.d.ts +0 -276
  38. package/dist/browser-vp/index.js +0 -349
  39. package/dist/chunk-C3Q766CY.cjs +0 -125
  40. package/dist/chunk-J5YXRXB5.js +0 -125
  41. package/dist/index.cjs +0 -23581
  42. package/dist/index.d.cts +0 -11539
  43. package/dist/index.d.ts +0 -11539
  44. package/dist/index.js +0 -23581
  45. package/dist/storage-4CB2JTLW.cjs +0 -22
  46. package/dist/storage-THRWREZP.js +0 -22
  47. package/src/browser-vp/crypto.ts +0 -253
  48. package/src/browser-vp/index.test.ts +0 -10
  49. package/src/browser-vp/index.ts +0 -116
  50. package/src/browser-vp/prf.ts +0 -179
  51. package/src/browser-vp/storage.test.ts +0 -9
  52. package/src/browser-vp/storage.ts +0 -163
  53. package/src/browser-vp/types.ts +0 -95
  54. package/src/browser-vp/vp.test.ts +0 -43
  55. package/src/browser-vp/vp.ts +0 -111
  56. package/src/generated/google/api/http.ts +0 -687
  57. package/src/generated/google/api/httpbody.ts +0 -159
  58. package/src/generated/google/protobuf/any.ts +0 -326
  59. package/src/generated/google/protobuf/descriptor.ts +0 -4865
  60. package/src/generated/google/protobuf/duration.ts +0 -230
  61. package/src/generated/google/protobuf/empty.ts +0 -94
  62. package/src/generated/google/protobuf/struct.ts +0 -484
  63. package/src/generated/google/protobuf/timestamp.ts +0 -287
  64. package/src/generated/google/rpc/error_details.ts +0 -1386
  65. package/src/generated/google/rpc/status.ts +0 -127
  66. package/src/generated/sid/v1/account/account.client.ts +0 -527
  67. package/src/generated/sid/v1/account/account.ts +0 -3261
  68. package/src/generated/sid/v1/admin/admin.client.ts +0 -139
  69. package/src/generated/sid/v1/admin/admin.ts +0 -781
  70. package/src/generated/sid/v1/admin/admin_roles.client.ts +0 -181
  71. package/src/generated/sid/v1/admin/admin_roles.ts +0 -1606
  72. package/src/generated/sid/v1/admin/analytics.client.ts +0 -106
  73. package/src/generated/sid/v1/admin/analytics.ts +0 -1017
  74. package/src/generated/sid/v1/admin/branding.client.ts +0 -166
  75. package/src/generated/sid/v1/admin/branding.ts +0 -1906
  76. package/src/generated/sid/v1/admin/enrollment.client.ts +0 -177
  77. package/src/generated/sid/v1/admin/enrollment.ts +0 -1766
  78. package/src/generated/sid/v1/admin/events.client.ts +0 -195
  79. package/src/generated/sid/v1/admin/events.ts +0 -1900
  80. package/src/generated/sid/v1/admin/flow.client.ts +0 -183
  81. package/src/generated/sid/v1/admin/flow.ts +0 -1552
  82. package/src/generated/sid/v1/admin/keys.client.ts +0 -107
  83. package/src/generated/sid/v1/admin/keys.ts +0 -931
  84. package/src/generated/sid/v1/admin/login_experience.client.ts +0 -160
  85. package/src/generated/sid/v1/admin/login_experience.ts +0 -1061
  86. package/src/generated/sid/v1/admin/migration.client.ts +0 -127
  87. package/src/generated/sid/v1/admin/migration.ts +0 -1948
  88. package/src/generated/sid/v1/admin/notifications.client.ts +0 -134
  89. package/src/generated/sid/v1/admin/notifications.ts +0 -1273
  90. package/src/generated/sid/v1/admin/operations.client.ts +0 -241
  91. package/src/generated/sid/v1/admin/operations.ts +0 -2633
  92. package/src/generated/sid/v1/admin/organizations.client.ts +0 -57
  93. package/src/generated/sid/v1/admin/organizations.ts +0 -332
  94. package/src/generated/sid/v1/admin/provisioning.client.ts +0 -232
  95. package/src/generated/sid/v1/admin/provisioning.ts +0 -1383
  96. package/src/generated/sid/v1/admin/scopes.client.ts +0 -171
  97. package/src/generated/sid/v1/admin/scopes.ts +0 -1324
  98. package/src/generated/sid/v1/admin/security.client.ts +0 -410
  99. package/src/generated/sid/v1/admin/security.ts +0 -4077
  100. package/src/generated/sid/v1/admin/sessions.client.ts +0 -114
  101. package/src/generated/sid/v1/admin/sessions.ts +0 -923
  102. package/src/generated/sid/v1/admin/settings.client.ts +0 -351
  103. package/src/generated/sid/v1/admin/settings.ts +0 -2458
  104. package/src/generated/sid/v1/admin/user_profile.client.ts +0 -57
  105. package/src/generated/sid/v1/admin/user_profile.ts +0 -730
  106. package/src/generated/sid/v1/admin/webhooks.client.ts +0 -269
  107. package/src/generated/sid/v1/admin/webhooks.ts +0 -2804
  108. package/src/generated/sid/v1/attestation/attestation.client.ts +0 -115
  109. package/src/generated/sid/v1/attestation/attestation.ts +0 -813
  110. package/src/generated/sid/v1/authn/auth.client.ts +0 -943
  111. package/src/generated/sid/v1/authn/auth.ts +0 -9719
  112. package/src/generated/sid/v1/authn/flows.client.ts +0 -413
  113. package/src/generated/sid/v1/authn/flows.ts +0 -3205
  114. package/src/generated/sid/v1/authn/issuer.client.ts +0 -489
  115. package/src/generated/sid/v1/authn/issuer.ts +0 -1600
  116. package/src/generated/sid/v1/authn/password_history.client.ts +0 -57
  117. package/src/generated/sid/v1/authn/password_history.ts +0 -578
  118. package/src/generated/sid/v1/authn/system_integration.client.ts +0 -73
  119. package/src/generated/sid/v1/authn/system_integration.ts +0 -218
  120. package/src/generated/sid/v1/authz/authz.client.ts +0 -459
  121. package/src/generated/sid/v1/authz/authz.ts +0 -6524
  122. package/src/generated/sid/v1/authz/forward_auth.client.ts +0 -97
  123. package/src/generated/sid/v1/authz/forward_auth.ts +0 -79
  124. package/src/generated/sid/v1/authz/governance.client.ts +0 -102
  125. package/src/generated/sid/v1/authz/governance.ts +0 -875
  126. package/src/generated/sid/v1/common/errors.ts +0 -710
  127. package/src/generated/sid/v1/common/pagination.ts +0 -152
  128. package/src/generated/sid/v1/common/transport.ts +0 -227
  129. package/src/generated/sid/v1/common/types.ts +0 -151
  130. package/src/generated/sid/v1/events/event_stream.client.ts +0 -67
  131. package/src/generated/sid/v1/events/event_stream.ts +0 -375
  132. package/src/generated/sid/v1/federation/upstream.client.ts +0 -142
  133. package/src/generated/sid/v1/federation/upstream.ts +0 -1736
  134. package/src/generated/sid/v1/identity/identity.client.ts +0 -467
  135. package/src/generated/sid/v1/identity/identity.ts +0 -5676
  136. package/src/generated/sid/v1/ids/ids.ts +0 -395
  137. package/src/generated/sid/v1/machine/machine_user.client.ts +0 -219
  138. package/src/generated/sid/v1/machine/machine_user.ts +0 -2364
  139. package/src/generated/sid/v1/machine/pat.client.ts +0 -130
  140. package/src/generated/sid/v1/machine/pat.ts +0 -1083
  141. package/src/generated/sid/v1/projects/projects.client.ts +0 -404
  142. package/src/generated/sid/v1/projects/projects.ts +0 -4446
  143. package/src/generated/sid/v1/scim/scim.client.ts +0 -520
  144. package/src/generated/sid/v1/scim/scim.ts +0 -3182
  145. package/src/generated/sid/v1/test/test.client.ts +0 -232
  146. package/src/generated/sid/v1/test/test.ts +0 -1136
  147. package/src/transport/adaptive.test.ts +0 -728
  148. package/src/transport/adaptive.ts +0 -308
  149. package/src/transport/framing.test.ts +0 -227
  150. package/src/transport/framing.ts +0 -98
  151. package/src/transport/webtransport.test.ts +0 -728
  152. package/src/transport/webtransport.ts +0 -323
@@ -1,943 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
2
- // @generated from protobuf file "sid/v1/authn/auth.proto" (package "sid.v1.authn", syntax proto3)
3
- // tslint:disable
4
- import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
- import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
- import { AuthService } from "./auth";
7
- import type { CompletePasswordResetResponse } from "./auth";
8
- import type { CompletePasswordResetRequest } from "./auth";
9
- import type { ExecutePasswordResetResponse } from "./auth";
10
- import type { ExecutePasswordResetRequest } from "./auth";
11
- import type { VerifyPasswordResetResponse } from "./auth";
12
- import type { VerifyPasswordResetRequest } from "./auth";
13
- import type { RequestPasswordResetResponse } from "./auth";
14
- import type { RequestPasswordResetRequest } from "./auth";
15
- import type { ConfirmAccountDeletionResponse } from "./auth";
16
- import type { ConfirmAccountDeletionRequest } from "./auth";
17
- import type { DeleteMfaCredentialResponse } from "./auth";
18
- import type { DeleteMfaCredentialRequest } from "./auth";
19
- import type { CompleteStepUpResponse } from "./auth";
20
- import type { CompleteStepUpRequest } from "./auth";
21
- import type { StepUpChallenge } from "./auth";
22
- import type { RequestStepUpRequest } from "./auth";
23
- import type { SubmitDynamicPromptResponse } from "./auth";
24
- import type { SubmitDynamicPromptRequest } from "./auth";
25
- import type { DynamicPrompt } from "./auth";
26
- import type { GetDynamicPromptRequest } from "./auth";
27
- import type { VerifyCaptchaResponse } from "./auth";
28
- import type { VerifyCaptchaRequest } from "./auth";
29
- import type { DenyCibaRequest } from "./auth";
30
- import type { CibaConsentResponse } from "./auth";
31
- import type { ApproveCibaRequest } from "./auth";
32
- import type { AcceptTermsResponse } from "./auth";
33
- import type { AcceptTermsRequest } from "./auth";
34
- import type { GetTermsResponse } from "./auth";
35
- import type { GetTermsRequest } from "./auth";
36
- import type { SelectOrganizationResponse } from "./auth";
37
- import type { SelectOrganizationRequest } from "./auth";
38
- import type { ListUserOrganizationsResponse } from "./auth";
39
- import type { ListUserOrganizationsRequest } from "./auth";
40
- import type { ConfirmIdpLinkResponse } from "./auth";
41
- import type { ConfirmIdpLinkRequest } from "./auth";
42
- import type { ResendPhoneVerificationResponse } from "./auth";
43
- import type { ResendPhoneVerificationRequest } from "./auth";
44
- import type { VerifyPhoneResponse } from "./auth";
45
- import type { VerifyPhoneRequest } from "./auth";
46
- import type { ResendEmailVerificationResponse } from "./auth";
47
- import type { ResendEmailVerificationRequest } from "./auth";
48
- import type { ResendOtpResponse } from "./auth";
49
- import type { ResendOtpRequest } from "./auth";
50
- import type { VerifyOtpResponse } from "./auth";
51
- import type { VerifyOtpRequest } from "./auth";
52
- import type { RequestOtpResponse } from "./auth";
53
- import type { RequestOtpRequest } from "./auth";
54
- import type { VerifyRecoveryCodeRequest } from "./auth";
55
- import type { GenerateRecoveryCodesResponse } from "./auth";
56
- import type { GenerateRecoveryCodesRequest } from "./auth";
57
- import type { ResendSmsMfaResponse } from "./auth";
58
- import type { ResendSmsMfaRequest } from "./auth";
59
- import type { VerifySmsMfaRequest } from "./auth";
60
- import type { MfaVerifyResponse } from "./auth";
61
- import type { VerifyTotpRequest } from "./auth";
62
- import type { FinishTotpEnrollmentResponse } from "./auth";
63
- import type { FinishTotpEnrollmentRequest } from "./auth";
64
- import type { TotpEnrollmentChallenge } from "./auth";
65
- import type { StartTotpEnrollmentRequest } from "./auth";
66
- import type { SubmitDeferredZkProofResponse } from "./auth";
67
- import type { SubmitDeferredZkProofRequest } from "./auth";
68
- import type { GetZkppPolicyResponse } from "./auth";
69
- import type { GetZkppPolicyRequest } from "./auth";
70
- import type { ResolvePrincipalResponse } from "./auth";
71
- import type { ResolvePrincipalRequest } from "./auth";
72
- import type { ValidateSessionResponse } from "./auth";
73
- import type { ValidateSessionRequest } from "./auth";
74
- import type { LegacyMigrateFinishResponse } from "./auth";
75
- import type { LegacyMigrateFinishRequest } from "./auth";
76
- import type { LegacyMigrateStartResponse } from "./auth";
77
- import type { LegacyMigrateStartRequest } from "./auth";
78
- import type { VerifyMagicLinkResponse } from "./auth";
79
- import type { VerifyMagicLinkRequest } from "./auth";
80
- import type { RequestMagicLinkResponse } from "./auth";
81
- import type { RequestMagicLinkRequest } from "./auth";
82
- import type { SubmitDeviceUserCodeResponse } from "./auth";
83
- import type { SubmitDeviceUserCodeRequest } from "./auth";
84
- import type { DeviceAuthorizationResponse } from "./auth";
85
- import type { DeviceAuthorizationRequest } from "./auth";
86
- import type { OAuth2RevokeResponse } from "./auth";
87
- import type { OAuth2RevokeRequest } from "./auth";
88
- import type { OAuth2IntrospectResponse } from "./auth";
89
- import type { OAuth2IntrospectRequest } from "./auth";
90
- import type { OAuth2TokenResponse } from "./auth";
91
- import type { OAuth2TokenRequest } from "./auth";
92
- import type { OAuth2AuthorizeResponse } from "./auth";
93
- import type { OAuth2AuthorizeRequest } from "./auth";
94
- import type { WebAuthnAuthenticationFinishResponse } from "./auth";
95
- import type { WebAuthnAuthenticationFinishRequest } from "./auth";
96
- import type { WebAuthnAuthenticationStartResponse } from "./auth";
97
- import type { WebAuthnAuthenticationStartRequest } from "./auth";
98
- import type { WebAuthnRegistrationFinishResponse } from "./auth";
99
- import type { WebAuthnRegistrationFinishRequest } from "./auth";
100
- import type { WebAuthnRegistrationStartResponse } from "./auth";
101
- import type { WebAuthnRegistrationStartRequest } from "./auth";
102
- import type { PasswordChangeFinishResponse } from "./auth";
103
- import type { PasswordChangeFinishRequest } from "./auth";
104
- import type { PasswordChangeExecuteResponse } from "./auth";
105
- import type { PasswordChangeExecuteRequest } from "./auth";
106
- import type { PasswordChangeChallengeResponse } from "./auth";
107
- import type { PasswordChangeChallengeRequest } from "./auth";
108
- import type { OpaqueZkppRegistrationFinishResponse } from "./auth";
109
- import type { OpaqueZkppRegistrationFinishRequest } from "./auth";
110
- import type { OpaqueZkppRegistrationStartResponse } from "./auth";
111
- import type { OpaqueZkppRegistrationStartRequest } from "./auth";
112
- import type { OpaqueLoginFinishResponse } from "./auth";
113
- import type { OpaqueLoginFinishRequest } from "./auth";
114
- import type { OpaqueLoginStartResponse } from "./auth";
115
- import type { OpaqueLoginStartRequest } from "./auth";
116
- import type { OpaqueRegistrationFinishResponse } from "./auth";
117
- import type { OpaqueRegistrationFinishRequest } from "./auth";
118
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
119
- import type { OpaqueRegistrationStartResponse } from "./auth";
120
- import type { OpaqueRegistrationStartRequest } from "./auth";
121
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
122
- import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
123
- /**
124
- * AuthService handles authentication flows.
125
- *
126
- * @generated from protobuf service sid.v1.authn.AuthService
127
- */
128
- export interface IAuthServiceClient {
129
- /**
130
- * OPAQUE password authentication (RFC 9807).
131
- *
132
- * @generated from protobuf rpc: OpaqueRegistrationStart
133
- */
134
- opaqueRegistrationStart(input: OpaqueRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationStartRequest, OpaqueRegistrationStartResponse>;
135
- /**
136
- * @generated from protobuf rpc: OpaqueRegistrationFinish
137
- */
138
- opaqueRegistrationFinish(input: OpaqueRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationFinishRequest, OpaqueRegistrationFinishResponse>;
139
- /**
140
- * @generated from protobuf rpc: OpaqueLoginStart
141
- */
142
- opaqueLoginStart(input: OpaqueLoginStartRequest, options?: RpcOptions): UnaryCall<OpaqueLoginStartRequest, OpaqueLoginStartResponse>;
143
- /**
144
- * @generated from protobuf rpc: OpaqueLoginFinish
145
- */
146
- opaqueLoginFinish(input: OpaqueLoginFinishRequest, options?: RpcOptions): UnaryCall<OpaqueLoginFinishRequest, OpaqueLoginFinishResponse>;
147
- /**
148
- * OPAQUE-ZKPP: OPAQUE with zero-knowledge password policy proof (Pallas curve).
149
- *
150
- * @generated from protobuf rpc: OpaqueZkppRegistrationStart
151
- */
152
- opaqueZkppRegistrationStart(input: OpaqueZkppRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueZkppRegistrationStartRequest, OpaqueZkppRegistrationStartResponse>;
153
- /**
154
- * @generated from protobuf rpc: OpaqueZkppRegistrationFinish
155
- */
156
- opaqueZkppRegistrationFinish(input: OpaqueZkppRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueZkppRegistrationFinishRequest, OpaqueZkppRegistrationFinishResponse>;
157
- /**
158
- * @generated from protobuf rpc: PasswordChangeChallenge
159
- */
160
- passwordChangeChallenge(input: PasswordChangeChallengeRequest, options?: RpcOptions): UnaryCall<PasswordChangeChallengeRequest, PasswordChangeChallengeResponse>;
161
- /**
162
- * @generated from protobuf rpc: PasswordChangeExecute
163
- */
164
- passwordChangeExecute(input: PasswordChangeExecuteRequest, options?: RpcOptions): UnaryCall<PasswordChangeExecuteRequest, PasswordChangeExecuteResponse>;
165
- /**
166
- * @generated from protobuf rpc: PasswordChangeFinish
167
- */
168
- passwordChangeFinish(input: PasswordChangeFinishRequest, options?: RpcOptions): UnaryCall<PasswordChangeFinishRequest, PasswordChangeFinishResponse>;
169
- /**
170
- * WebAuthn (passkeys).
171
- *
172
- * @generated from protobuf rpc: WebAuthnRegistrationStart
173
- */
174
- webAuthnRegistrationStart(input: WebAuthnRegistrationStartRequest, options?: RpcOptions): UnaryCall<WebAuthnRegistrationStartRequest, WebAuthnRegistrationStartResponse>;
175
- /**
176
- * @generated from protobuf rpc: WebAuthnRegistrationFinish
177
- */
178
- webAuthnRegistrationFinish(input: WebAuthnRegistrationFinishRequest, options?: RpcOptions): UnaryCall<WebAuthnRegistrationFinishRequest, WebAuthnRegistrationFinishResponse>;
179
- /**
180
- * @generated from protobuf rpc: WebAuthnAuthenticationStart
181
- */
182
- webAuthnAuthenticationStart(input: WebAuthnAuthenticationStartRequest, options?: RpcOptions): UnaryCall<WebAuthnAuthenticationStartRequest, WebAuthnAuthenticationStartResponse>;
183
- /**
184
- * @generated from protobuf rpc: WebAuthnAuthenticationFinish
185
- */
186
- webAuthnAuthenticationFinish(input: WebAuthnAuthenticationFinishRequest, options?: RpcOptions): UnaryCall<WebAuthnAuthenticationFinishRequest, WebAuthnAuthenticationFinishResponse>;
187
- /**
188
- * OAuth2 / OIDC flows.
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
- *
198
- * @generated from protobuf rpc: OAuth2Authorize
199
- */
200
- oAuth2Authorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse>;
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
- *
212
- * @generated from protobuf rpc: OAuth2Token
213
- */
214
- oAuth2Token(input: OAuth2TokenRequest, options?: RpcOptions): UnaryCall<OAuth2TokenRequest, OAuth2TokenResponse>;
215
- /**
216
- * @generated from protobuf rpc: OAuth2Introspect
217
- */
218
- oAuth2Introspect(input: OAuth2IntrospectRequest, options?: RpcOptions): UnaryCall<OAuth2IntrospectRequest, OAuth2IntrospectResponse>;
219
- /**
220
- * @generated from protobuf rpc: OAuth2Revoke
221
- */
222
- oAuth2Revoke(input: OAuth2RevokeRequest, options?: RpcOptions): UnaryCall<OAuth2RevokeRequest, OAuth2RevokeResponse>;
223
- /**
224
- * Device Authorization Grant (RFC 8628): the device starts here and polls
225
- * OAuth2Token with the device_code grant (RFC 8628 §3.4).
226
- *
227
- * @generated from protobuf rpc: StartDeviceAuthorization
228
- */
229
- startDeviceAuthorization(input: DeviceAuthorizationRequest, options?: RpcOptions): UnaryCall<DeviceAuthorizationRequest, DeviceAuthorizationResponse>;
230
- /**
231
- * @generated from protobuf rpc: SubmitDeviceUserCode
232
- */
233
- submitDeviceUserCode(input: SubmitDeviceUserCodeRequest, options?: RpcOptions): UnaryCall<SubmitDeviceUserCodeRequest, SubmitDeviceUserCodeResponse>;
234
- // ── Magic Link (passwordless, corporate profiles) ──
235
-
236
- /**
237
- * @generated from protobuf rpc: RequestMagicLink
238
- */
239
- requestMagicLink(input: RequestMagicLinkRequest, options?: RpcOptions): UnaryCall<RequestMagicLinkRequest, RequestMagicLinkResponse>;
240
- /**
241
- * @generated from protobuf rpc: VerifyMagicLink
242
- */
243
- verifyMagicLink(input: VerifyMagicLinkRequest, options?: RpcOptions): UnaryCall<VerifyMagicLinkRequest, VerifyMagicLinkResponse>;
244
- /**
245
- * Legacy password migration (on-login OPAQUE re-registration).
246
- *
247
- * @generated from protobuf rpc: LegacyMigrateStart
248
- */
249
- legacyMigrateStart(input: LegacyMigrateStartRequest, options?: RpcOptions): UnaryCall<LegacyMigrateStartRequest, LegacyMigrateStartResponse>;
250
- /**
251
- * @generated from protobuf rpc: LegacyMigrateFinish
252
- */
253
- legacyMigrateFinish(input: LegacyMigrateFinishRequest, options?: RpcOptions): UnaryCall<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse>;
254
- /**
255
- * Session validation.
256
- *
257
- * @generated from protobuf rpc: ValidateSession
258
- */
259
- validateSession(input: ValidateSessionRequest, options?: RpcOptions): UnaryCall<ValidateSessionRequest, ValidateSessionResponse>;
260
- /**
261
- * Unified login flow: resolve principal → available auth methods.
262
- *
263
- * @generated from protobuf rpc: ResolvePrincipal
264
- */
265
- resolvePrincipal(input: ResolvePrincipalRequest, options?: RpcOptions): UnaryCall<ResolvePrincipalRequest, ResolvePrincipalResponse>;
266
- /**
267
- * ZKPP password policy: current policy version and parameters.
268
- *
269
- * @generated from protobuf rpc: GetZkppPolicy
270
- */
271
- getZkppPolicy(input: GetZkppPolicyRequest, options?: RpcOptions): UnaryCall<GetZkppPolicyRequest, GetZkppPolicyResponse>;
272
- /**
273
- * Submit a deferred ZK proof for a credential registered without WASM.
274
- * Must be called within 24h of registration from a WASM-capable device.
275
- *
276
- * @generated from protobuf rpc: SubmitDeferredZkProof
277
- */
278
- submitDeferredZkProof(input: SubmitDeferredZkProofRequest, options?: RpcOptions): UnaryCall<SubmitDeferredZkProofRequest, SubmitDeferredZkProofResponse>;
279
- // ── MFA TOTP ──
280
-
281
- /**
282
- * @generated from protobuf rpc: StartTotpEnrollment
283
- */
284
- startTotpEnrollment(input: StartTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<StartTotpEnrollmentRequest, TotpEnrollmentChallenge>;
285
- /**
286
- * @generated from protobuf rpc: FinishTotpEnrollment
287
- */
288
- finishTotpEnrollment(input: FinishTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishTotpEnrollmentRequest, FinishTotpEnrollmentResponse>;
289
- /**
290
- * @generated from protobuf rpc: VerifyTotp
291
- */
292
- verifyTotp(input: VerifyTotpRequest, options?: RpcOptions): UnaryCall<VerifyTotpRequest, MfaVerifyResponse>;
293
- // ── MFA SMS ──
294
-
295
- /**
296
- * @generated from protobuf rpc: VerifySmsMfa
297
- */
298
- verifySmsMfa(input: VerifySmsMfaRequest, options?: RpcOptions): UnaryCall<VerifySmsMfaRequest, MfaVerifyResponse>;
299
- /**
300
- * @generated from protobuf rpc: ResendSmsMfa
301
- */
302
- resendSmsMfa(input: ResendSmsMfaRequest, options?: RpcOptions): UnaryCall<ResendSmsMfaRequest, ResendSmsMfaResponse>;
303
- // ── MFA Recovery Codes ──
304
-
305
- /**
306
- * @generated from protobuf rpc: GenerateRecoveryCodes
307
- */
308
- generateRecoveryCodes(input: GenerateRecoveryCodesRequest, options?: RpcOptions): UnaryCall<GenerateRecoveryCodesRequest, GenerateRecoveryCodesResponse>;
309
- /**
310
- * @generated from protobuf rpc: VerifyRecoveryCode
311
- */
312
- verifyRecoveryCode(input: VerifyRecoveryCodeRequest, options?: RpcOptions): UnaryCall<VerifyRecoveryCodeRequest, MfaVerifyResponse>;
313
- // ── OTP verification (email/phone, non-MFA) ──
314
-
315
- /**
316
- * @generated from protobuf rpc: RequestOtp
317
- */
318
- requestOtp(input: RequestOtpRequest, options?: RpcOptions): UnaryCall<RequestOtpRequest, RequestOtpResponse>;
319
- /**
320
- * @generated from protobuf rpc: VerifyOtp
321
- */
322
- verifyOtp(input: VerifyOtpRequest, options?: RpcOptions): UnaryCall<VerifyOtpRequest, VerifyOtpResponse>;
323
- /**
324
- * @generated from protobuf rpc: ResendOtp
325
- */
326
- resendOtp(input: ResendOtpRequest, options?: RpcOptions): UnaryCall<ResendOtpRequest, ResendOtpResponse>;
327
- // ── Email/Phone verification ──
328
-
329
- /**
330
- * @generated from protobuf rpc: ResendEmailVerification
331
- */
332
- resendEmailVerification(input: ResendEmailVerificationRequest, options?: RpcOptions): UnaryCall<ResendEmailVerificationRequest, ResendEmailVerificationResponse>;
333
- /**
334
- * @generated from protobuf rpc: VerifyPhone
335
- */
336
- verifyPhone(input: VerifyPhoneRequest, options?: RpcOptions): UnaryCall<VerifyPhoneRequest, VerifyPhoneResponse>;
337
- /**
338
- * @generated from protobuf rpc: ResendPhoneVerification
339
- */
340
- resendPhoneVerification(input: ResendPhoneVerificationRequest, options?: RpcOptions): UnaryCall<ResendPhoneVerificationRequest, ResendPhoneVerificationResponse>;
341
- // ── IdP linking ──
342
-
343
- /**
344
- * @generated from protobuf rpc: ConfirmIdpLink
345
- */
346
- confirmIdpLink(input: ConfirmIdpLinkRequest, options?: RpcOptions): UnaryCall<ConfirmIdpLinkRequest, ConfirmIdpLinkResponse>;
347
- // ── Organization selector (multi-org login) ──
348
-
349
- /**
350
- * @generated from protobuf rpc: ListUserOrganizations
351
- */
352
- listUserOrganizations(input: ListUserOrganizationsRequest, options?: RpcOptions): UnaryCall<ListUserOrganizationsRequest, ListUserOrganizationsResponse>;
353
- /**
354
- * @generated from protobuf rpc: SelectOrganization
355
- */
356
- selectOrganization(input: SelectOrganizationRequest, options?: RpcOptions): UnaryCall<SelectOrganizationRequest, SelectOrganizationResponse>;
357
- // ── Terms acceptance ──
358
-
359
- /**
360
- * @generated from protobuf rpc: GetTerms
361
- */
362
- getTerms(input: GetTermsRequest, options?: RpcOptions): UnaryCall<GetTermsRequest, GetTermsResponse>;
363
- /**
364
- * @generated from protobuf rpc: AcceptTerms
365
- */
366
- acceptTerms(input: AcceptTermsRequest, options?: RpcOptions): UnaryCall<AcceptTermsRequest, AcceptTermsResponse>;
367
- // ── CIBA consent ──
368
-
369
- /**
370
- * @generated from protobuf rpc: ApproveCiba
371
- */
372
- approveCiba(input: ApproveCibaRequest, options?: RpcOptions): UnaryCall<ApproveCibaRequest, CibaConsentResponse>;
373
- /**
374
- * @generated from protobuf rpc: DenyCiba
375
- */
376
- denyCiba(input: DenyCibaRequest, options?: RpcOptions): UnaryCall<DenyCibaRequest, CibaConsentResponse>;
377
- // ── Captcha ──
378
-
379
- /**
380
- * @generated from protobuf rpc: VerifyCaptcha
381
- */
382
- verifyCaptcha(input: VerifyCaptchaRequest, options?: RpcOptions): UnaryCall<VerifyCaptchaRequest, VerifyCaptchaResponse>;
383
- // ── Dynamic prompt (custom auth steps) ──
384
-
385
- /**
386
- * @generated from protobuf rpc: GetDynamicPrompt
387
- */
388
- getDynamicPrompt(input: GetDynamicPromptRequest, options?: RpcOptions): UnaryCall<GetDynamicPromptRequest, DynamicPrompt>;
389
- /**
390
- * @generated from protobuf rpc: SubmitDynamicPrompt
391
- */
392
- submitDynamicPrompt(input: SubmitDynamicPromptRequest, options?: RpcOptions): UnaryCall<SubmitDynamicPromptRequest, SubmitDynamicPromptResponse>;
393
- // ── Step-up authentication ──
394
-
395
- /**
396
- * Generic step-up Phase 1: request challenge (WebAuthn). Skip for TOTP/recovery.
397
- *
398
- * @generated from protobuf rpc: RequestStepUp
399
- */
400
- requestStepUp(input: RequestStepUpRequest, options?: RpcOptions): UnaryCall<RequestStepUpRequest, StepUpChallenge>;
401
- /**
402
- * Generic step-up Phase 2: submit proof → elevate session → rotate token.
403
- *
404
- * @generated from protobuf rpc: CompleteStepUp
405
- */
406
- completeStepUp(input: CompleteStepUpRequest, options?: RpcOptions): UnaryCall<CompleteStepUpRequest, CompleteStepUpResponse>;
407
- // ── MFA credential management ──
408
-
409
- /**
410
- * Delete an MFA credential (TOTP, WebAuthn, Recovery).
411
- * Requires elevated session (step-up auth) before calling.
412
- *
413
- * @generated from protobuf rpc: DeleteMfaCredential
414
- */
415
- deleteMfaCredential(input: DeleteMfaCredentialRequest, options?: RpcOptions): UnaryCall<DeleteMfaCredentialRequest, DeleteMfaCredentialResponse>;
416
- // ── Account deletion confirmation ──
417
-
418
- /**
419
- * @generated from protobuf rpc: ConfirmAccountDeletion
420
- */
421
- confirmAccountDeletion(input: ConfirmAccountDeletionRequest, options?: RpcOptions): UnaryCall<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse>;
422
- /**
423
- * Password reset flow (magic link → new OPAQUE credential).
424
- *
425
- * @generated from protobuf rpc: RequestPasswordReset
426
- */
427
- requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, RequestPasswordResetResponse>;
428
- /**
429
- * @generated from protobuf rpc: VerifyPasswordReset
430
- */
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>;
439
- /**
440
- * @generated from protobuf rpc: CompletePasswordReset
441
- */
442
- completePasswordReset(input: CompletePasswordResetRequest, options?: RpcOptions): UnaryCall<CompletePasswordResetRequest, CompletePasswordResetResponse>;
443
- }
444
- /**
445
- * AuthService handles authentication flows.
446
- *
447
- * @generated from protobuf service sid.v1.authn.AuthService
448
- */
449
- export class AuthServiceClient implements IAuthServiceClient, ServiceInfo {
450
- typeName = AuthService.typeName;
451
- methods = AuthService.methods;
452
- options = AuthService.options;
453
- constructor(private readonly _transport: RpcTransport) {
454
- }
455
- /**
456
- * OPAQUE password authentication (RFC 9807).
457
- *
458
- * @generated from protobuf rpc: OpaqueRegistrationStart
459
- */
460
- opaqueRegistrationStart(input: OpaqueRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationStartRequest, OpaqueRegistrationStartResponse> {
461
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
462
- return stackIntercept<OpaqueRegistrationStartRequest, OpaqueRegistrationStartResponse>("unary", this._transport, method, opt, input);
463
- }
464
- /**
465
- * @generated from protobuf rpc: OpaqueRegistrationFinish
466
- */
467
- opaqueRegistrationFinish(input: OpaqueRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueRegistrationFinishRequest, OpaqueRegistrationFinishResponse> {
468
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
469
- return stackIntercept<OpaqueRegistrationFinishRequest, OpaqueRegistrationFinishResponse>("unary", this._transport, method, opt, input);
470
- }
471
- /**
472
- * @generated from protobuf rpc: OpaqueLoginStart
473
- */
474
- opaqueLoginStart(input: OpaqueLoginStartRequest, options?: RpcOptions): UnaryCall<OpaqueLoginStartRequest, OpaqueLoginStartResponse> {
475
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
476
- return stackIntercept<OpaqueLoginStartRequest, OpaqueLoginStartResponse>("unary", this._transport, method, opt, input);
477
- }
478
- /**
479
- * @generated from protobuf rpc: OpaqueLoginFinish
480
- */
481
- opaqueLoginFinish(input: OpaqueLoginFinishRequest, options?: RpcOptions): UnaryCall<OpaqueLoginFinishRequest, OpaqueLoginFinishResponse> {
482
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
483
- return stackIntercept<OpaqueLoginFinishRequest, OpaqueLoginFinishResponse>("unary", this._transport, method, opt, input);
484
- }
485
- /**
486
- * OPAQUE-ZKPP: OPAQUE with zero-knowledge password policy proof (Pallas curve).
487
- *
488
- * @generated from protobuf rpc: OpaqueZkppRegistrationStart
489
- */
490
- opaqueZkppRegistrationStart(input: OpaqueZkppRegistrationStartRequest, options?: RpcOptions): UnaryCall<OpaqueZkppRegistrationStartRequest, OpaqueZkppRegistrationStartResponse> {
491
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
492
- return stackIntercept<OpaqueZkppRegistrationStartRequest, OpaqueZkppRegistrationStartResponse>("unary", this._transport, method, opt, input);
493
- }
494
- /**
495
- * @generated from protobuf rpc: OpaqueZkppRegistrationFinish
496
- */
497
- opaqueZkppRegistrationFinish(input: OpaqueZkppRegistrationFinishRequest, options?: RpcOptions): UnaryCall<OpaqueZkppRegistrationFinishRequest, OpaqueZkppRegistrationFinishResponse> {
498
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
499
- return stackIntercept<OpaqueZkppRegistrationFinishRequest, OpaqueZkppRegistrationFinishResponse>("unary", this._transport, method, opt, input);
500
- }
501
- /**
502
- * @generated from protobuf rpc: PasswordChangeChallenge
503
- */
504
- passwordChangeChallenge(input: PasswordChangeChallengeRequest, options?: RpcOptions): UnaryCall<PasswordChangeChallengeRequest, PasswordChangeChallengeResponse> {
505
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
506
- return stackIntercept<PasswordChangeChallengeRequest, PasswordChangeChallengeResponse>("unary", this._transport, method, opt, input);
507
- }
508
- /**
509
- * @generated from protobuf rpc: PasswordChangeExecute
510
- */
511
- passwordChangeExecute(input: PasswordChangeExecuteRequest, options?: RpcOptions): UnaryCall<PasswordChangeExecuteRequest, PasswordChangeExecuteResponse> {
512
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
513
- return stackIntercept<PasswordChangeExecuteRequest, PasswordChangeExecuteResponse>("unary", this._transport, method, opt, input);
514
- }
515
- /**
516
- * @generated from protobuf rpc: PasswordChangeFinish
517
- */
518
- passwordChangeFinish(input: PasswordChangeFinishRequest, options?: RpcOptions): UnaryCall<PasswordChangeFinishRequest, PasswordChangeFinishResponse> {
519
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
520
- return stackIntercept<PasswordChangeFinishRequest, PasswordChangeFinishResponse>("unary", this._transport, method, opt, input);
521
- }
522
- /**
523
- * WebAuthn (passkeys).
524
- *
525
- * @generated from protobuf rpc: WebAuthnRegistrationStart
526
- */
527
- webAuthnRegistrationStart(input: WebAuthnRegistrationStartRequest, options?: RpcOptions): UnaryCall<WebAuthnRegistrationStartRequest, WebAuthnRegistrationStartResponse> {
528
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
529
- return stackIntercept<WebAuthnRegistrationStartRequest, WebAuthnRegistrationStartResponse>("unary", this._transport, method, opt, input);
530
- }
531
- /**
532
- * @generated from protobuf rpc: WebAuthnRegistrationFinish
533
- */
534
- webAuthnRegistrationFinish(input: WebAuthnRegistrationFinishRequest, options?: RpcOptions): UnaryCall<WebAuthnRegistrationFinishRequest, WebAuthnRegistrationFinishResponse> {
535
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
536
- return stackIntercept<WebAuthnRegistrationFinishRequest, WebAuthnRegistrationFinishResponse>("unary", this._transport, method, opt, input);
537
- }
538
- /**
539
- * @generated from protobuf rpc: WebAuthnAuthenticationStart
540
- */
541
- webAuthnAuthenticationStart(input: WebAuthnAuthenticationStartRequest, options?: RpcOptions): UnaryCall<WebAuthnAuthenticationStartRequest, WebAuthnAuthenticationStartResponse> {
542
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
543
- return stackIntercept<WebAuthnAuthenticationStartRequest, WebAuthnAuthenticationStartResponse>("unary", this._transport, method, opt, input);
544
- }
545
- /**
546
- * @generated from protobuf rpc: WebAuthnAuthenticationFinish
547
- */
548
- webAuthnAuthenticationFinish(input: WebAuthnAuthenticationFinishRequest, options?: RpcOptions): UnaryCall<WebAuthnAuthenticationFinishRequest, WebAuthnAuthenticationFinishResponse> {
549
- const method = this.methods[12], opt = this._transport.mergeOptions(options);
550
- return stackIntercept<WebAuthnAuthenticationFinishRequest, WebAuthnAuthenticationFinishResponse>("unary", this._transport, method, opt, input);
551
- }
552
- /**
553
- * OAuth2 / OIDC flows.
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
- *
563
- * @generated from protobuf rpc: OAuth2Authorize
564
- */
565
- oAuth2Authorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse> {
566
- const method = this.methods[13], opt = this._transport.mergeOptions(options);
567
- return stackIntercept<OAuth2AuthorizeRequest, OAuth2AuthorizeResponse>("unary", this._transport, method, opt, input);
568
- }
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
- *
580
- * @generated from protobuf rpc: OAuth2Token
581
- */
582
- oAuth2Token(input: OAuth2TokenRequest, options?: RpcOptions): UnaryCall<OAuth2TokenRequest, OAuth2TokenResponse> {
583
- const method = this.methods[14], opt = this._transport.mergeOptions(options);
584
- return stackIntercept<OAuth2TokenRequest, OAuth2TokenResponse>("unary", this._transport, method, opt, input);
585
- }
586
- /**
587
- * @generated from protobuf rpc: OAuth2Introspect
588
- */
589
- oAuth2Introspect(input: OAuth2IntrospectRequest, options?: RpcOptions): UnaryCall<OAuth2IntrospectRequest, OAuth2IntrospectResponse> {
590
- const method = this.methods[15], opt = this._transport.mergeOptions(options);
591
- return stackIntercept<OAuth2IntrospectRequest, OAuth2IntrospectResponse>("unary", this._transport, method, opt, input);
592
- }
593
- /**
594
- * @generated from protobuf rpc: OAuth2Revoke
595
- */
596
- oAuth2Revoke(input: OAuth2RevokeRequest, options?: RpcOptions): UnaryCall<OAuth2RevokeRequest, OAuth2RevokeResponse> {
597
- const method = this.methods[16], opt = this._transport.mergeOptions(options);
598
- return stackIntercept<OAuth2RevokeRequest, OAuth2RevokeResponse>("unary", this._transport, method, opt, input);
599
- }
600
- /**
601
- * Device Authorization Grant (RFC 8628): the device starts here and polls
602
- * OAuth2Token with the device_code grant (RFC 8628 §3.4).
603
- *
604
- * @generated from protobuf rpc: StartDeviceAuthorization
605
- */
606
- startDeviceAuthorization(input: DeviceAuthorizationRequest, options?: RpcOptions): UnaryCall<DeviceAuthorizationRequest, DeviceAuthorizationResponse> {
607
- const method = this.methods[17], opt = this._transport.mergeOptions(options);
608
- return stackIntercept<DeviceAuthorizationRequest, DeviceAuthorizationResponse>("unary", this._transport, method, opt, input);
609
- }
610
- /**
611
- * @generated from protobuf rpc: SubmitDeviceUserCode
612
- */
613
- submitDeviceUserCode(input: SubmitDeviceUserCodeRequest, options?: RpcOptions): UnaryCall<SubmitDeviceUserCodeRequest, SubmitDeviceUserCodeResponse> {
614
- const method = this.methods[18], opt = this._transport.mergeOptions(options);
615
- return stackIntercept<SubmitDeviceUserCodeRequest, SubmitDeviceUserCodeResponse>("unary", this._transport, method, opt, input);
616
- }
617
- // ── Magic Link (passwordless, corporate profiles) ──
618
-
619
- /**
620
- * @generated from protobuf rpc: RequestMagicLink
621
- */
622
- requestMagicLink(input: RequestMagicLinkRequest, options?: RpcOptions): UnaryCall<RequestMagicLinkRequest, RequestMagicLinkResponse> {
623
- const method = this.methods[19], opt = this._transport.mergeOptions(options);
624
- return stackIntercept<RequestMagicLinkRequest, RequestMagicLinkResponse>("unary", this._transport, method, opt, input);
625
- }
626
- /**
627
- * @generated from protobuf rpc: VerifyMagicLink
628
- */
629
- verifyMagicLink(input: VerifyMagicLinkRequest, options?: RpcOptions): UnaryCall<VerifyMagicLinkRequest, VerifyMagicLinkResponse> {
630
- const method = this.methods[20], opt = this._transport.mergeOptions(options);
631
- return stackIntercept<VerifyMagicLinkRequest, VerifyMagicLinkResponse>("unary", this._transport, method, opt, input);
632
- }
633
- /**
634
- * Legacy password migration (on-login OPAQUE re-registration).
635
- *
636
- * @generated from protobuf rpc: LegacyMigrateStart
637
- */
638
- legacyMigrateStart(input: LegacyMigrateStartRequest, options?: RpcOptions): UnaryCall<LegacyMigrateStartRequest, LegacyMigrateStartResponse> {
639
- const method = this.methods[21], opt = this._transport.mergeOptions(options);
640
- return stackIntercept<LegacyMigrateStartRequest, LegacyMigrateStartResponse>("unary", this._transport, method, opt, input);
641
- }
642
- /**
643
- * @generated from protobuf rpc: LegacyMigrateFinish
644
- */
645
- legacyMigrateFinish(input: LegacyMigrateFinishRequest, options?: RpcOptions): UnaryCall<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse> {
646
- const method = this.methods[22], opt = this._transport.mergeOptions(options);
647
- return stackIntercept<LegacyMigrateFinishRequest, LegacyMigrateFinishResponse>("unary", this._transport, method, opt, input);
648
- }
649
- /**
650
- * Session validation.
651
- *
652
- * @generated from protobuf rpc: ValidateSession
653
- */
654
- validateSession(input: ValidateSessionRequest, options?: RpcOptions): UnaryCall<ValidateSessionRequest, ValidateSessionResponse> {
655
- const method = this.methods[23], opt = this._transport.mergeOptions(options);
656
- return stackIntercept<ValidateSessionRequest, ValidateSessionResponse>("unary", this._transport, method, opt, input);
657
- }
658
- /**
659
- * Unified login flow: resolve principal → available auth methods.
660
- *
661
- * @generated from protobuf rpc: ResolvePrincipal
662
- */
663
- resolvePrincipal(input: ResolvePrincipalRequest, options?: RpcOptions): UnaryCall<ResolvePrincipalRequest, ResolvePrincipalResponse> {
664
- const method = this.methods[24], opt = this._transport.mergeOptions(options);
665
- return stackIntercept<ResolvePrincipalRequest, ResolvePrincipalResponse>("unary", this._transport, method, opt, input);
666
- }
667
- /**
668
- * ZKPP password policy: current policy version and parameters.
669
- *
670
- * @generated from protobuf rpc: GetZkppPolicy
671
- */
672
- getZkppPolicy(input: GetZkppPolicyRequest, options?: RpcOptions): UnaryCall<GetZkppPolicyRequest, GetZkppPolicyResponse> {
673
- const method = this.methods[25], opt = this._transport.mergeOptions(options);
674
- return stackIntercept<GetZkppPolicyRequest, GetZkppPolicyResponse>("unary", this._transport, method, opt, input);
675
- }
676
- /**
677
- * Submit a deferred ZK proof for a credential registered without WASM.
678
- * Must be called within 24h of registration from a WASM-capable device.
679
- *
680
- * @generated from protobuf rpc: SubmitDeferredZkProof
681
- */
682
- submitDeferredZkProof(input: SubmitDeferredZkProofRequest, options?: RpcOptions): UnaryCall<SubmitDeferredZkProofRequest, SubmitDeferredZkProofResponse> {
683
- const method = this.methods[26], opt = this._transport.mergeOptions(options);
684
- return stackIntercept<SubmitDeferredZkProofRequest, SubmitDeferredZkProofResponse>("unary", this._transport, method, opt, input);
685
- }
686
- // ── MFA TOTP ──
687
-
688
- /**
689
- * @generated from protobuf rpc: StartTotpEnrollment
690
- */
691
- startTotpEnrollment(input: StartTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<StartTotpEnrollmentRequest, TotpEnrollmentChallenge> {
692
- const method = this.methods[27], opt = this._transport.mergeOptions(options);
693
- return stackIntercept<StartTotpEnrollmentRequest, TotpEnrollmentChallenge>("unary", this._transport, method, opt, input);
694
- }
695
- /**
696
- * @generated from protobuf rpc: FinishTotpEnrollment
697
- */
698
- finishTotpEnrollment(input: FinishTotpEnrollmentRequest, options?: RpcOptions): UnaryCall<FinishTotpEnrollmentRequest, FinishTotpEnrollmentResponse> {
699
- const method = this.methods[28], opt = this._transport.mergeOptions(options);
700
- return stackIntercept<FinishTotpEnrollmentRequest, FinishTotpEnrollmentResponse>("unary", this._transport, method, opt, input);
701
- }
702
- /**
703
- * @generated from protobuf rpc: VerifyTotp
704
- */
705
- verifyTotp(input: VerifyTotpRequest, options?: RpcOptions): UnaryCall<VerifyTotpRequest, MfaVerifyResponse> {
706
- const method = this.methods[29], opt = this._transport.mergeOptions(options);
707
- return stackIntercept<VerifyTotpRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
708
- }
709
- // ── MFA SMS ──
710
-
711
- /**
712
- * @generated from protobuf rpc: VerifySmsMfa
713
- */
714
- verifySmsMfa(input: VerifySmsMfaRequest, options?: RpcOptions): UnaryCall<VerifySmsMfaRequest, MfaVerifyResponse> {
715
- const method = this.methods[30], opt = this._transport.mergeOptions(options);
716
- return stackIntercept<VerifySmsMfaRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
717
- }
718
- /**
719
- * @generated from protobuf rpc: ResendSmsMfa
720
- */
721
- resendSmsMfa(input: ResendSmsMfaRequest, options?: RpcOptions): UnaryCall<ResendSmsMfaRequest, ResendSmsMfaResponse> {
722
- const method = this.methods[31], opt = this._transport.mergeOptions(options);
723
- return stackIntercept<ResendSmsMfaRequest, ResendSmsMfaResponse>("unary", this._transport, method, opt, input);
724
- }
725
- // ── MFA Recovery Codes ──
726
-
727
- /**
728
- * @generated from protobuf rpc: GenerateRecoveryCodes
729
- */
730
- generateRecoveryCodes(input: GenerateRecoveryCodesRequest, options?: RpcOptions): UnaryCall<GenerateRecoveryCodesRequest, GenerateRecoveryCodesResponse> {
731
- const method = this.methods[32], opt = this._transport.mergeOptions(options);
732
- return stackIntercept<GenerateRecoveryCodesRequest, GenerateRecoveryCodesResponse>("unary", this._transport, method, opt, input);
733
- }
734
- /**
735
- * @generated from protobuf rpc: VerifyRecoveryCode
736
- */
737
- verifyRecoveryCode(input: VerifyRecoveryCodeRequest, options?: RpcOptions): UnaryCall<VerifyRecoveryCodeRequest, MfaVerifyResponse> {
738
- const method = this.methods[33], opt = this._transport.mergeOptions(options);
739
- return stackIntercept<VerifyRecoveryCodeRequest, MfaVerifyResponse>("unary", this._transport, method, opt, input);
740
- }
741
- // ── OTP verification (email/phone, non-MFA) ──
742
-
743
- /**
744
- * @generated from protobuf rpc: RequestOtp
745
- */
746
- requestOtp(input: RequestOtpRequest, options?: RpcOptions): UnaryCall<RequestOtpRequest, RequestOtpResponse> {
747
- const method = this.methods[34], opt = this._transport.mergeOptions(options);
748
- return stackIntercept<RequestOtpRequest, RequestOtpResponse>("unary", this._transport, method, opt, input);
749
- }
750
- /**
751
- * @generated from protobuf rpc: VerifyOtp
752
- */
753
- verifyOtp(input: VerifyOtpRequest, options?: RpcOptions): UnaryCall<VerifyOtpRequest, VerifyOtpResponse> {
754
- const method = this.methods[35], opt = this._transport.mergeOptions(options);
755
- return stackIntercept<VerifyOtpRequest, VerifyOtpResponse>("unary", this._transport, method, opt, input);
756
- }
757
- /**
758
- * @generated from protobuf rpc: ResendOtp
759
- */
760
- resendOtp(input: ResendOtpRequest, options?: RpcOptions): UnaryCall<ResendOtpRequest, ResendOtpResponse> {
761
- const method = this.methods[36], opt = this._transport.mergeOptions(options);
762
- return stackIntercept<ResendOtpRequest, ResendOtpResponse>("unary", this._transport, method, opt, input);
763
- }
764
- // ── Email/Phone verification ──
765
-
766
- /**
767
- * @generated from protobuf rpc: ResendEmailVerification
768
- */
769
- resendEmailVerification(input: ResendEmailVerificationRequest, options?: RpcOptions): UnaryCall<ResendEmailVerificationRequest, ResendEmailVerificationResponse> {
770
- const method = this.methods[37], opt = this._transport.mergeOptions(options);
771
- return stackIntercept<ResendEmailVerificationRequest, ResendEmailVerificationResponse>("unary", this._transport, method, opt, input);
772
- }
773
- /**
774
- * @generated from protobuf rpc: VerifyPhone
775
- */
776
- verifyPhone(input: VerifyPhoneRequest, options?: RpcOptions): UnaryCall<VerifyPhoneRequest, VerifyPhoneResponse> {
777
- const method = this.methods[38], opt = this._transport.mergeOptions(options);
778
- return stackIntercept<VerifyPhoneRequest, VerifyPhoneResponse>("unary", this._transport, method, opt, input);
779
- }
780
- /**
781
- * @generated from protobuf rpc: ResendPhoneVerification
782
- */
783
- resendPhoneVerification(input: ResendPhoneVerificationRequest, options?: RpcOptions): UnaryCall<ResendPhoneVerificationRequest, ResendPhoneVerificationResponse> {
784
- const method = this.methods[39], opt = this._transport.mergeOptions(options);
785
- return stackIntercept<ResendPhoneVerificationRequest, ResendPhoneVerificationResponse>("unary", this._transport, method, opt, input);
786
- }
787
- // ── IdP linking ──
788
-
789
- /**
790
- * @generated from protobuf rpc: ConfirmIdpLink
791
- */
792
- confirmIdpLink(input: ConfirmIdpLinkRequest, options?: RpcOptions): UnaryCall<ConfirmIdpLinkRequest, ConfirmIdpLinkResponse> {
793
- const method = this.methods[40], opt = this._transport.mergeOptions(options);
794
- return stackIntercept<ConfirmIdpLinkRequest, ConfirmIdpLinkResponse>("unary", this._transport, method, opt, input);
795
- }
796
- // ── Organization selector (multi-org login) ──
797
-
798
- /**
799
- * @generated from protobuf rpc: ListUserOrganizations
800
- */
801
- listUserOrganizations(input: ListUserOrganizationsRequest, options?: RpcOptions): UnaryCall<ListUserOrganizationsRequest, ListUserOrganizationsResponse> {
802
- const method = this.methods[41], opt = this._transport.mergeOptions(options);
803
- return stackIntercept<ListUserOrganizationsRequest, ListUserOrganizationsResponse>("unary", this._transport, method, opt, input);
804
- }
805
- /**
806
- * @generated from protobuf rpc: SelectOrganization
807
- */
808
- selectOrganization(input: SelectOrganizationRequest, options?: RpcOptions): UnaryCall<SelectOrganizationRequest, SelectOrganizationResponse> {
809
- const method = this.methods[42], opt = this._transport.mergeOptions(options);
810
- return stackIntercept<SelectOrganizationRequest, SelectOrganizationResponse>("unary", this._transport, method, opt, input);
811
- }
812
- // ── Terms acceptance ──
813
-
814
- /**
815
- * @generated from protobuf rpc: GetTerms
816
- */
817
- getTerms(input: GetTermsRequest, options?: RpcOptions): UnaryCall<GetTermsRequest, GetTermsResponse> {
818
- const method = this.methods[43], opt = this._transport.mergeOptions(options);
819
- return stackIntercept<GetTermsRequest, GetTermsResponse>("unary", this._transport, method, opt, input);
820
- }
821
- /**
822
- * @generated from protobuf rpc: AcceptTerms
823
- */
824
- acceptTerms(input: AcceptTermsRequest, options?: RpcOptions): UnaryCall<AcceptTermsRequest, AcceptTermsResponse> {
825
- const method = this.methods[44], opt = this._transport.mergeOptions(options);
826
- return stackIntercept<AcceptTermsRequest, AcceptTermsResponse>("unary", this._transport, method, opt, input);
827
- }
828
- // ── CIBA consent ──
829
-
830
- /**
831
- * @generated from protobuf rpc: ApproveCiba
832
- */
833
- approveCiba(input: ApproveCibaRequest, options?: RpcOptions): UnaryCall<ApproveCibaRequest, CibaConsentResponse> {
834
- const method = this.methods[45], opt = this._transport.mergeOptions(options);
835
- return stackIntercept<ApproveCibaRequest, CibaConsentResponse>("unary", this._transport, method, opt, input);
836
- }
837
- /**
838
- * @generated from protobuf rpc: DenyCiba
839
- */
840
- denyCiba(input: DenyCibaRequest, options?: RpcOptions): UnaryCall<DenyCibaRequest, CibaConsentResponse> {
841
- const method = this.methods[46], opt = this._transport.mergeOptions(options);
842
- return stackIntercept<DenyCibaRequest, CibaConsentResponse>("unary", this._transport, method, opt, input);
843
- }
844
- // ── Captcha ──
845
-
846
- /**
847
- * @generated from protobuf rpc: VerifyCaptcha
848
- */
849
- verifyCaptcha(input: VerifyCaptchaRequest, options?: RpcOptions): UnaryCall<VerifyCaptchaRequest, VerifyCaptchaResponse> {
850
- const method = this.methods[47], opt = this._transport.mergeOptions(options);
851
- return stackIntercept<VerifyCaptchaRequest, VerifyCaptchaResponse>("unary", this._transport, method, opt, input);
852
- }
853
- // ── Dynamic prompt (custom auth steps) ──
854
-
855
- /**
856
- * @generated from protobuf rpc: GetDynamicPrompt
857
- */
858
- getDynamicPrompt(input: GetDynamicPromptRequest, options?: RpcOptions): UnaryCall<GetDynamicPromptRequest, DynamicPrompt> {
859
- const method = this.methods[48], opt = this._transport.mergeOptions(options);
860
- return stackIntercept<GetDynamicPromptRequest, DynamicPrompt>("unary", this._transport, method, opt, input);
861
- }
862
- /**
863
- * @generated from protobuf rpc: SubmitDynamicPrompt
864
- */
865
- submitDynamicPrompt(input: SubmitDynamicPromptRequest, options?: RpcOptions): UnaryCall<SubmitDynamicPromptRequest, SubmitDynamicPromptResponse> {
866
- const method = this.methods[49], opt = this._transport.mergeOptions(options);
867
- return stackIntercept<SubmitDynamicPromptRequest, SubmitDynamicPromptResponse>("unary", this._transport, method, opt, input);
868
- }
869
- // ── Step-up authentication ──
870
-
871
- /**
872
- * Generic step-up Phase 1: request challenge (WebAuthn). Skip for TOTP/recovery.
873
- *
874
- * @generated from protobuf rpc: RequestStepUp
875
- */
876
- requestStepUp(input: RequestStepUpRequest, options?: RpcOptions): UnaryCall<RequestStepUpRequest, StepUpChallenge> {
877
- const method = this.methods[50], opt = this._transport.mergeOptions(options);
878
- return stackIntercept<RequestStepUpRequest, StepUpChallenge>("unary", this._transport, method, opt, input);
879
- }
880
- /**
881
- * Generic step-up Phase 2: submit proof → elevate session → rotate token.
882
- *
883
- * @generated from protobuf rpc: CompleteStepUp
884
- */
885
- completeStepUp(input: CompleteStepUpRequest, options?: RpcOptions): UnaryCall<CompleteStepUpRequest, CompleteStepUpResponse> {
886
- const method = this.methods[51], opt = this._transport.mergeOptions(options);
887
- return stackIntercept<CompleteStepUpRequest, CompleteStepUpResponse>("unary", this._transport, method, opt, input);
888
- }
889
- // ── MFA credential management ──
890
-
891
- /**
892
- * Delete an MFA credential (TOTP, WebAuthn, Recovery).
893
- * Requires elevated session (step-up auth) before calling.
894
- *
895
- * @generated from protobuf rpc: DeleteMfaCredential
896
- */
897
- deleteMfaCredential(input: DeleteMfaCredentialRequest, options?: RpcOptions): UnaryCall<DeleteMfaCredentialRequest, DeleteMfaCredentialResponse> {
898
- const method = this.methods[52], opt = this._transport.mergeOptions(options);
899
- return stackIntercept<DeleteMfaCredentialRequest, DeleteMfaCredentialResponse>("unary", this._transport, method, opt, input);
900
- }
901
- // ── Account deletion confirmation ──
902
-
903
- /**
904
- * @generated from protobuf rpc: ConfirmAccountDeletion
905
- */
906
- confirmAccountDeletion(input: ConfirmAccountDeletionRequest, options?: RpcOptions): UnaryCall<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse> {
907
- const method = this.methods[53], opt = this._transport.mergeOptions(options);
908
- return stackIntercept<ConfirmAccountDeletionRequest, ConfirmAccountDeletionResponse>("unary", this._transport, method, opt, input);
909
- }
910
- /**
911
- * Password reset flow (magic link → new OPAQUE credential).
912
- *
913
- * @generated from protobuf rpc: RequestPasswordReset
914
- */
915
- requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, RequestPasswordResetResponse> {
916
- const method = this.methods[54], opt = this._transport.mergeOptions(options);
917
- return stackIntercept<RequestPasswordResetRequest, RequestPasswordResetResponse>("unary", this._transport, method, opt, input);
918
- }
919
- /**
920
- * @generated from protobuf rpc: VerifyPasswordReset
921
- */
922
- verifyPasswordReset(input: VerifyPasswordResetRequest, options?: RpcOptions): UnaryCall<VerifyPasswordResetRequest, VerifyPasswordResetResponse> {
923
- const method = this.methods[55], opt = this._transport.mergeOptions(options);
924
- return stackIntercept<VerifyPasswordResetRequest, VerifyPasswordResetResponse>("unary", this._transport, method, opt, input);
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
- }
936
- /**
937
- * @generated from protobuf rpc: CompletePasswordReset
938
- */
939
- completePasswordReset(input: CompletePasswordResetRequest, options?: RpcOptions): UnaryCall<CompletePasswordResetRequest, CompletePasswordResetResponse> {
940
- const method = this.methods[57], opt = this._transport.mergeOptions(options);
941
- return stackIntercept<CompletePasswordResetRequest, CompletePasswordResetResponse>("unary", this._transport, method, opt, input);
942
- }
943
- }