@workos-inc/node 4.0.0 → 5.0.1

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.
@@ -28,7 +28,7 @@ describe('DirectorySync', () => {
28
28
  object: 'directory',
29
29
  organizationId: 'org_01EXSR7M9QTKCC5D531SMCWMYG',
30
30
  state: 'active',
31
- type: 'okta scim v1.1',
31
+ type: 'okta scim v2.0',
32
32
  updatedAt: '2021-12-13 12:15:45.531847',
33
33
  };
34
34
  const directoryResponse = {
@@ -40,7 +40,7 @@ describe('DirectorySync', () => {
40
40
  object: 'directory',
41
41
  organization_id: 'org_01EXSR7M9QTKCC5D531SMCWMYG',
42
42
  state: 'linked',
43
- type: 'okta scim v1.1',
43
+ type: 'okta scim v2.0',
44
44
  updated_at: '2021-12-13 12:15:45.531847',
45
45
  };
46
46
  const group = {
@@ -17,7 +17,7 @@ export interface DirectoryUser<TCustomAttributes extends object = DefaultCustomA
17
17
  username: string | null;
18
18
  lastName: string | null;
19
19
  jobTitle: string | null;
20
- state: 'active' | 'inactive' | 'suspended';
20
+ state: 'active' | 'inactive';
21
21
  createdAt: string;
22
22
  updatedAt: string;
23
23
  }
@@ -38,7 +38,7 @@ export interface DirectoryUserResponse<TCustomAttributes extends object = Defaul
38
38
  username: string | null;
39
39
  last_name: string | null;
40
40
  job_title: string | null;
41
- state: 'active' | 'inactive' | 'suspended';
41
+ state: 'active' | 'inactive';
42
42
  created_at: string;
43
43
  updated_at: string;
44
44
  }
@@ -1,4 +1,4 @@
1
- export type DirectoryType = 'azure scim v2.0' | 'bamboohr' | 'breathe hr' | 'cezanne hr' | 'cyberark scim v2.0' | 'fourth hr' | 'gsuite directory' | 'generic scim v1.1' | 'generic scim v2.0' | 'gusto' | 'hibob' | 'jump cloud scim v2.0' | 'okta scim v1.1' | 'okta scim v2.0' | 'onelogin scim v2.0' | 'people hr' | 'personio' | 'pingfederate scim v2.0' | 'rippling' | 'rippling scim v2.0' | 'sftp' | 'sftp workday' | 's3' | 'workday';
1
+ export type DirectoryType = 'azure scim v2.0' | 'bamboohr' | 'breathe hr' | 'cezanne hr' | 'cyberark scim v2.0' | 'fourth hr' | 'gsuite directory' | 'generic scim v2.0' | 'hibob' | 'jump cloud scim v2.0' | 'okta scim v2.0' | 'onelogin scim v2.0' | 'people hr' | 'personio' | 'pingfederate scim v2.0' | 'rippling scim v2.0' | 'sftp' | 'sftp workday' | 'workday';
2
2
  export type DirectoryState = 'active' | 'deleting' | 'inactive' | 'invalid_credentials' | 'validating';
3
3
  export type DirectoryStateResponse = 'deleting' | 'invalid_credentials' | 'linked' | 'unlinked' | 'validating';
4
4
  export interface Directory {
@@ -1,9 +1,9 @@
1
1
  import { User, UserResponse } from './user.interface';
2
2
  export interface AuthenticationResponse {
3
3
  user: User;
4
- organizationId: string;
4
+ organizationId?: string;
5
5
  }
6
6
  export interface AuthenticationResponseResponse {
7
7
  user: UserResponse;
8
- organization_id: string;
8
+ organization_id?: string;
9
9
  }
@@ -5,7 +5,7 @@ export interface UpdateUserOptions {
5
5
  emailVerified?: boolean;
6
6
  password?: string;
7
7
  passwordHash?: string;
8
- passwordHashType?: 'bcrypt';
8
+ passwordHashType?: 'bcrypt' | 'firebase-scrypt';
9
9
  }
10
10
  export interface SerializedUpdateUserOptions {
11
11
  first_name?: string;
@@ -13,5 +13,5 @@ export interface SerializedUpdateUserOptions {
13
13
  email_verified?: boolean;
14
14
  password?: string;
15
15
  password_hash?: string;
16
- password_hash_type?: 'bcrypt';
16
+ password_hash_type?: 'bcrypt' | 'firebase-scrypt';
17
17
  }
package/lib/workos.js CHANGED
@@ -27,7 +27,7 @@ const mfa_1 = require("./mfa/mfa");
27
27
  const audit_logs_1 = require("./audit-logs/audit-logs");
28
28
  const user_management_1 = require("./user-management/user-management");
29
29
  const bad_request_exception_1 = require("./common/exceptions/bad-request.exception");
30
- const VERSION = '4.0.0';
30
+ const VERSION = '5.0.1';
31
31
  const DEFAULT_HOSTNAME = 'api.workos.com';
32
32
  class WorkOS {
33
33
  constructor(key, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.0",
2
+ "version": "5.0.1",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -34,7 +34,7 @@
34
34
  "prepublishOnly": "yarn run build"
35
35
  },
36
36
  "dependencies": {
37
- "axios": "1.6.0",
37
+ "axios": "~1.6.5",
38
38
  "pluralize": "8.0.0"
39
39
  },
40
40
  "devDependencies": {