@workos-inc/node 5.0.1 → 5.1.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.
@@ -1,6 +1,7 @@
1
1
  import { AuthenticateWithOptionsBase, SerializedAuthenticateWithOptionsBase } from './authenticate-with-options-base.interface';
2
2
  export interface AuthenticateWithCodeOptions extends AuthenticateWithOptionsBase {
3
3
  code: string;
4
+ invitationToken?: string;
4
5
  }
5
6
  export interface AuthenticateUserWithCodeCredentials {
6
7
  clientSecret: string | undefined;
@@ -8,4 +9,5 @@ export interface AuthenticateUserWithCodeCredentials {
8
9
  export interface SerializedAuthenticateWithCodeOptions extends SerializedAuthenticateWithOptionsBase {
9
10
  grant_type: 'authorization_code';
10
11
  code: string;
12
+ invitation_token?: string;
11
13
  }
@@ -2,6 +2,7 @@ import { AuthenticateWithOptionsBase, SerializedAuthenticateWithOptionsBase } fr
2
2
  export interface AuthenticateWithMagicAuthOptions extends AuthenticateWithOptionsBase {
3
3
  code: string;
4
4
  email: string;
5
+ invitationToken?: string;
5
6
  linkAuthorizationCode?: string;
6
7
  }
7
8
  export interface AuthenticateUserWithMagicAuthCredentials {
@@ -11,5 +12,6 @@ export interface SerializedAuthenticateWithMagicAuthOptions extends SerializedAu
11
12
  grant_type: 'urn:workos:oauth:grant-type:magic-auth:code';
12
13
  code: string;
13
14
  email: string;
15
+ invitation_token?: string;
14
16
  link_authorization_code?: string;
15
17
  }
@@ -2,6 +2,7 @@ import { AuthenticateWithOptionsBase, SerializedAuthenticateWithOptionsBase } fr
2
2
  export interface AuthenticateWithPasswordOptions extends AuthenticateWithOptionsBase {
3
3
  email: string;
4
4
  password: string;
5
+ invitationToken?: string;
5
6
  }
6
7
  export interface AuthenticateUserWithPasswordCredentials {
7
8
  clientSecret: string | undefined;
@@ -10,4 +11,5 @@ export interface SerializedAuthenticateWithPasswordOptions extends SerializedAut
10
11
  grant_type: 'password';
11
12
  email: string;
12
13
  password: string;
14
+ invitation_token?: string;
13
15
  }
@@ -6,6 +6,7 @@ const serializeAuthenticateWithCodeOptions = (options) => ({
6
6
  client_id: options.clientId,
7
7
  client_secret: options.clientSecret,
8
8
  code: options.code,
9
+ invitation_token: options.invitationToken,
9
10
  ip_address: options.ipAddress,
10
11
  user_agent: options.userAgent,
11
12
  });
@@ -7,6 +7,7 @@ const serializeAuthenticateWithMagicAuthOptions = (options) => ({
7
7
  client_secret: options.clientSecret,
8
8
  code: options.code,
9
9
  email: options.email,
10
+ invitation_token: options.invitationToken,
10
11
  link_authorization_code: options.linkAuthorizationCode,
11
12
  ip_address: options.ipAddress,
12
13
  user_agent: options.userAgent,
@@ -7,6 +7,7 @@ const serializeAuthenticateWithPasswordOptions = (options) => ({
7
7
  client_secret: options.clientSecret,
8
8
  email: options.email,
9
9
  password: options.password,
10
+ invitation_token: options.invitationToken,
10
11
  ip_address: options.ipAddress,
11
12
  user_agent: options.userAgent,
12
13
  });
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 = '5.0.1';
30
+ const VERSION = '5.1.0';
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": "5.0.1",
2
+ "version": "5.1.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",