@workos-inc/node 2.6.1 → 2.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.
@@ -2,4 +2,5 @@ export interface PaginationOptions {
2
2
  limit?: number;
3
3
  before?: string;
4
4
  after?: string;
5
+ order?: 'asc' | 'desc';
5
6
  }
@@ -33,8 +33,11 @@ describe('DirectorySync', () => {
33
33
  };
34
34
  const groupResponse = {
35
35
  id: 'dir_grp_123',
36
+ idp_id: '123',
36
37
  directory_id: 'dir_123',
37
38
  name: 'Foo Group',
39
+ created_at: `2021-10-27 15:21:50.640958`,
40
+ updated_at: '2021-10-27 15:21:50.640959',
38
41
  raw_attributes: {
39
42
  foo: 'bar',
40
43
  },
@@ -1,6 +1,9 @@
1
1
  export interface Group {
2
2
  id: string;
3
+ idp_id: string;
3
4
  directory_id: string;
4
5
  name: string;
6
+ created_at: string;
7
+ updated_at: string;
5
8
  raw_attributes: any;
6
9
  }
@@ -3,7 +3,7 @@ export interface Challenge {
3
3
  id: string;
4
4
  created_at: string;
5
5
  updated_at: string;
6
- expires_at: string;
6
+ expires_at?: string;
7
7
  code: string;
8
8
  authentication_factor_id: string;
9
9
  }
@@ -1,15 +1,33 @@
1
1
  export declare enum ConnectionType {
2
2
  ADFSSAML = "ADFSSAML",
3
+ AdpOidc = "AdpOidc",
3
4
  Auth0SAML = "Auth0SAML",
4
5
  AzureSAML = "AzureSAML",
6
+ CasSAML = "CasSAML",
7
+ ClassLinkSAML = "ClassLinkSAML",
8
+ CloudflareSAML = "CloudflareSAML",
9
+ CyberArkSAML = "CyberArkSAML",
10
+ DuoSAML = "DuoSAML",
5
11
  GenericOIDC = "GenericOIDC",
6
12
  GenericSAML = "GenericSAML",
7
13
  GoogleOAuth = "GoogleOAuth",
8
14
  GoogleSAML = "GoogleSAML",
15
+ JumpCloudSAML = "JumpCloudSAML",
16
+ KeycloakSAML = "KeycloakSAML",
17
+ LastPassSAML = "LastPassSAML",
9
18
  MagicLink = "MagicLink",
19
+ MicrosoftOAuth = "MicrosoftOAuth",
20
+ MiniOrangeSAML = "MiniOrangeSAML",
21
+ NetIqSAML = "NetIqSAML",
10
22
  OktaSAML = "OktaSAML",
11
23
  OneLoginSAML = "OneLoginSAML",
24
+ OracleSAML = "OracleSAML",
12
25
  PingFederateSAML = "PingFederateSAML",
13
26
  PingOneSAML = "PingOneSAML",
27
+ RipplingSAML = "RipplingSAML",
28
+ SalesforceSAML = "SalesforceSAML",
29
+ ShibbolethGenericSAML = "ShibbolethGenericSAML",
30
+ ShibbolethSAML = "ShibbolethSAML",
31
+ SimpleSamlPhpSAML = "SimpleSamlPhpSAML",
14
32
  VMwareSAML = "VMwareSAML"
15
33
  }
@@ -4,16 +4,34 @@ exports.ConnectionType = void 0;
4
4
  var ConnectionType;
5
5
  (function (ConnectionType) {
6
6
  ConnectionType["ADFSSAML"] = "ADFSSAML";
7
+ ConnectionType["AdpOidc"] = "AdpOidc";
7
8
  ConnectionType["Auth0SAML"] = "Auth0SAML";
8
9
  ConnectionType["AzureSAML"] = "AzureSAML";
10
+ ConnectionType["CasSAML"] = "CasSAML";
11
+ ConnectionType["ClassLinkSAML"] = "ClassLinkSAML";
12
+ ConnectionType["CloudflareSAML"] = "CloudflareSAML";
13
+ ConnectionType["CyberArkSAML"] = "CyberArkSAML";
14
+ ConnectionType["DuoSAML"] = "DuoSAML";
9
15
  ConnectionType["GenericOIDC"] = "GenericOIDC";
10
16
  ConnectionType["GenericSAML"] = "GenericSAML";
11
17
  ConnectionType["GoogleOAuth"] = "GoogleOAuth";
12
18
  ConnectionType["GoogleSAML"] = "GoogleSAML";
19
+ ConnectionType["JumpCloudSAML"] = "JumpCloudSAML";
20
+ ConnectionType["KeycloakSAML"] = "KeycloakSAML";
21
+ ConnectionType["LastPassSAML"] = "LastPassSAML";
13
22
  ConnectionType["MagicLink"] = "MagicLink";
23
+ ConnectionType["MicrosoftOAuth"] = "MicrosoftOAuth";
24
+ ConnectionType["MiniOrangeSAML"] = "MiniOrangeSAML";
25
+ ConnectionType["NetIqSAML"] = "NetIqSAML";
14
26
  ConnectionType["OktaSAML"] = "OktaSAML";
15
27
  ConnectionType["OneLoginSAML"] = "OneLoginSAML";
28
+ ConnectionType["OracleSAML"] = "OracleSAML";
16
29
  ConnectionType["PingFederateSAML"] = "PingFederateSAML";
17
30
  ConnectionType["PingOneSAML"] = "PingOneSAML";
31
+ ConnectionType["RipplingSAML"] = "RipplingSAML";
32
+ ConnectionType["SalesforceSAML"] = "SalesforceSAML";
33
+ ConnectionType["ShibbolethGenericSAML"] = "ShibbolethGenericSAML";
34
+ ConnectionType["ShibbolethSAML"] = "ShibbolethSAML";
35
+ ConnectionType["SimpleSamlPhpSAML"] = "SimpleSamlPhpSAML";
18
36
  ConnectionType["VMwareSAML"] = "VMwareSAML";
19
37
  })(ConnectionType = exports.ConnectionType || (exports.ConnectionType = {}));
package/lib/workos.js CHANGED
@@ -23,7 +23,7 @@ const portal_1 = require("./portal/portal");
23
23
  const sso_1 = require("./sso/sso");
24
24
  const webhooks_1 = require("./webhooks/webhooks");
25
25
  const mfa_1 = require("./mfa/mfa");
26
- const VERSION = '2.6.1';
26
+ const VERSION = '2.7.0';
27
27
  const DEFAULT_HOSTNAME = 'api.workos.com';
28
28
  class WorkOS {
29
29
  constructor(key, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.6.1",
2
+ "version": "2.7.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -39,15 +39,15 @@
39
39
  "query-string": "7.1.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/jest": "27.5.1",
43
- "@types/node": "14.18.18",
42
+ "@types/jest": "27.5.2",
43
+ "@types/node": "14.18.20",
44
44
  "@types/pluralize": "0.0.29",
45
- "axios-mock-adapter": "1.20.0",
45
+ "axios-mock-adapter": "1.21.1",
46
46
  "jest": "27.5.1",
47
47
  "prettier": "2.6.2",
48
48
  "supertest": "6.2.3",
49
49
  "ts-jest": "27.1.5",
50
50
  "tslint": "6.1.3",
51
- "typescript": "4.6.4"
51
+ "typescript": "4.7.3"
52
52
  }
53
53
  }