@terminal3/t3n-sdk 5.19.0 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3074,6 +3074,14 @@ declare class T3nClient {
3074
3074
  */
3075
3075
  private finalizedPayload;
3076
3076
  private did;
3077
+ /**
3078
+ * Address the last OIDC login proved, read from its `Finish` reply.
3079
+ * `null` when the login proved none — the claim its provider row governs
3080
+ * carried no usable address — which is the case that still needs
3081
+ * `otpRequest` / `otpVerify` before `submitUserInput`.
3082
+ * Exposed through {@link getProvenEmail}.
3083
+ */
3084
+ private provenEmail;
3077
3085
  private handshakeResult;
3078
3086
  constructor(config: T3nClientConfig);
3079
3087
  /**
@@ -3130,7 +3138,9 @@ declare class T3nClient {
3130
3138
  * Validates the `oidc_auth_action` tag before reading `did`: a decodable but
3131
3139
  * non-`Finish` reply is reported as such rather than silently misread as a
3132
3140
  * missing DID (which would discard whatever the server actually said). Returns
3133
- * the session {@link Did}.
3141
+ * the session {@link Did}, and records the reply's `proven_email` — absent on
3142
+ * the workload reply and on any node older than the field — for
3143
+ * {@link getProvenEmail}.
3134
3144
  */
3135
3145
  private parseFinishDid;
3136
3146
  /**
@@ -4290,6 +4300,14 @@ declare class T3nClient {
4290
4300
  getSessionId(): SessionId | null;
4291
4301
  getStatus(): SessionStatus;
4292
4302
  getDid(): Did | null;
4303
+ /**
4304
+ * The address the last OIDC login proved, or `null` if it proved none.
4305
+ *
4306
+ * Lets a caller prompt for an address at the point of entry rather than
4307
+ * discovering it is missing from an `email_not_verified` refusal on
4308
+ * `submitUserInput`. A node older than this field always reports `null`.
4309
+ */
4310
+ getProvenEmail(): string | null;
4293
4311
  getLastSetCookie(): string | null;
4294
4312
  getLastResponseHeaders(): Record<string, string>;
4295
4313
  isAuthenticated(): boolean;