@didit-protocol/sdk-node 2.3.0 → 2.4.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.cts CHANGED
@@ -10129,6 +10129,14 @@ interface VerifyEmailResponse {
10129
10129
  organization?: OrganizationSummary;
10130
10130
  /** Minimal application shape returned inline by `POST /programmatic/verify-email/`. Persist the `api_key` immediately. */
10131
10131
  application?: ApplicationCredentialsSummary;
10132
+ /** Present and `true` when the account already has an authenticator app or a passkey. The response then carries `temp_token` instead of tokens and application keys. */
10133
+ "2fa_required"?: boolean;
10134
+ /** Short-lived token for the second-factor step, sent only with `2fa_required`. It is not an access token. */
10135
+ temp_token?: string;
10136
+ /** With `2fa_required`: whether the account has an authenticator app. */
10137
+ has_authenticator?: boolean;
10138
+ /** With `2fa_required`: whether the account has a passkey. */
10139
+ has_passkeys?: boolean;
10132
10140
  }
10133
10141
  interface WalletAddressEntry {
10134
10142
  uuid?: string;
@@ -10747,7 +10755,7 @@ declare class Account extends APIResource {
10747
10755
  /**
10748
10756
  * Verify Email and Issue Credentials
10749
10757
  *
10750
- * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`.
10758
+ * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`. An account that already has an authenticator app or a passkey gets the same second-factor step as the login instead: `2fa_required: true` and a `temp_token`, with no tokens and no application keys.
10751
10759
  *
10752
10760
  * `POST /programmatic/verify-email/`
10753
10761
  */
@@ -13383,7 +13391,7 @@ interface DatabaseValidationValidateParams {
13383
13391
  landline?: string;
13384
13392
  /** Email address for identity-verification services. */
13385
13393
  email?: string;
13386
- /** ISO 3166-1 alpha-2 country of residence. Used by global identity-enrichment services (e.g. `glb_identity_enrichment`) to focus the lookup. */
13394
+ /** ISO 3166-1 alpha-2 country of residence. It was used only by the retired global identity-enrichment service (`glb_identity_enrichment`), which Didit no longer offers. */
13387
13395
  country_of_residence?: string;
13388
13396
  /** What a `partial_match` does to `database_validation.status`. Defaults to `NO_ACTION` (status stays `Approved`, with a warning). */
13389
13397
  partial_match_action?: "DECLINE" | "NO_ACTION" | (string & {});
@@ -23281,7 +23289,7 @@ declare class TokenVerificationError extends DiditError {
23281
23289
  constructor(reason: TokenVerificationReason, message: string);
23282
23290
  }
23283
23291
 
23284
- declare const VERSION = "2.3.0";
23292
+ declare const VERSION = "2.4.0";
23285
23293
 
23286
23294
  /**
23287
23295
  * The canonical JSON of a parsed webhook body: the text `X-Signature-V2` signs
package/dist/index.d.ts CHANGED
@@ -10129,6 +10129,14 @@ interface VerifyEmailResponse {
10129
10129
  organization?: OrganizationSummary;
10130
10130
  /** Minimal application shape returned inline by `POST /programmatic/verify-email/`. Persist the `api_key` immediately. */
10131
10131
  application?: ApplicationCredentialsSummary;
10132
+ /** Present and `true` when the account already has an authenticator app or a passkey. The response then carries `temp_token` instead of tokens and application keys. */
10133
+ "2fa_required"?: boolean;
10134
+ /** Short-lived token for the second-factor step, sent only with `2fa_required`. It is not an access token. */
10135
+ temp_token?: string;
10136
+ /** With `2fa_required`: whether the account has an authenticator app. */
10137
+ has_authenticator?: boolean;
10138
+ /** With `2fa_required`: whether the account has a passkey. */
10139
+ has_passkeys?: boolean;
10132
10140
  }
10133
10141
  interface WalletAddressEntry {
10134
10142
  uuid?: string;
@@ -10747,7 +10755,7 @@ declare class Account extends APIResource {
10747
10755
  /**
10748
10756
  * Verify Email and Issue Credentials
10749
10757
  *
10750
- * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`.
10758
+ * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`. An account that already has an authenticator app or a passkey gets the same second-factor step as the login instead: `2fa_required: true` and a `temp_token`, with no tokens and no application keys.
10751
10759
  *
10752
10760
  * `POST /programmatic/verify-email/`
10753
10761
  */
@@ -13383,7 +13391,7 @@ interface DatabaseValidationValidateParams {
13383
13391
  landline?: string;
13384
13392
  /** Email address for identity-verification services. */
13385
13393
  email?: string;
13386
- /** ISO 3166-1 alpha-2 country of residence. Used by global identity-enrichment services (e.g. `glb_identity_enrichment`) to focus the lookup. */
13394
+ /** ISO 3166-1 alpha-2 country of residence. It was used only by the retired global identity-enrichment service (`glb_identity_enrichment`), which Didit no longer offers. */
13387
13395
  country_of_residence?: string;
13388
13396
  /** What a `partial_match` does to `database_validation.status`. Defaults to `NO_ACTION` (status stays `Approved`, with a warning). */
13389
13397
  partial_match_action?: "DECLINE" | "NO_ACTION" | (string & {});
@@ -23281,7 +23289,7 @@ declare class TokenVerificationError extends DiditError {
23281
23289
  constructor(reason: TokenVerificationReason, message: string);
23282
23290
  }
23283
23291
 
23284
- declare const VERSION = "2.3.0";
23292
+ declare const VERSION = "2.4.0";
23285
23293
 
23286
23294
  /**
23287
23295
  * The canonical JSON of a parsed webhook body: the text `X-Signature-V2` signs
package/dist/index.js CHANGED
@@ -278,7 +278,7 @@ function decodeDates(value, plan, named, depth = 0) {
278
278
  }
279
279
 
280
280
  // src/core/version.ts
281
- var VERSION = "2.3.0";
281
+ var VERSION = "2.4.0";
282
282
 
283
283
  // src/core/runtime.ts
284
284
  function processLike() {
@@ -2042,7 +2042,7 @@ var Account = class extends APIResource {
2042
2042
  /**
2043
2043
  * Verify Email and Issue Credentials
2044
2044
  *
2045
- * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`.
2045
+ * Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair. Persist the returned `api_key`. An account that already has an authenticator app or a passkey gets the same second-factor step as the login instead: `2fa_required: true` and a `temp_token`, with no tokens and no application keys.
2046
2046
  *
2047
2047
  * `POST /programmatic/verify-email/`
2048
2048
  */