@workos-inc/node 7.6.0 → 7.7.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.
@@ -3,9 +3,11 @@ export interface EnrollAuthFactorOptions {
3
3
  type: 'totp';
4
4
  totpIssuer?: string;
5
5
  totpUser?: string;
6
+ totpSecret?: string;
6
7
  }
7
8
  export interface SerializedEnrollUserInMfaFactorOptions {
8
9
  type: 'totp';
9
10
  totp_issuer?: string;
10
11
  totp_user?: string;
12
+ totp_secret?: string;
11
13
  }
@@ -5,5 +5,6 @@ const serializeEnrollAuthFactorOptions = (options) => ({
5
5
  type: options.type,
6
6
  totp_issuer: options.totpIssuer,
7
7
  totp_user: options.totpUser,
8
+ totp_secret: options.totpSecret,
8
9
  });
9
10
  exports.serializeEnrollAuthFactorOptions = serializeEnrollAuthFactorOptions;
@@ -528,6 +528,7 @@ describe('UserManagement', () => {
528
528
  type: 'totp',
529
529
  totpIssuer: 'WorkOS',
530
530
  totpUser: 'some_user',
531
+ totpSecret: 'secret-test',
531
532
  });
532
533
  expect((0, test_utils_1.fetchURL)()).toContain(`/user_management/users/${userId}/auth_factors`);
533
534
  expect(resp).toMatchObject({
package/lib/workos.js CHANGED
@@ -24,7 +24,7 @@ const audit_logs_1 = require("./audit-logs/audit-logs");
24
24
  const user_management_1 = require("./user-management/user-management");
25
25
  const bad_request_exception_1 = require("./common/exceptions/bad-request.exception");
26
26
  const fetch_client_1 = require("./common/utils/fetch-client");
27
- const VERSION = '7.6.0';
27
+ const VERSION = '7.7.0';
28
28
  const DEFAULT_HOSTNAME = 'api.workos.com';
29
29
  class WorkOS {
30
30
  constructor(key, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.6.0",
2
+ "version": "7.7.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",