@workos-inc/node 2.15.0 → 2.15.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.
- package/lib/audit-logs/interfaces/create-audit-log-event-options.interface.d.ts +1 -1
- package/lib/directory-sync/interfaces/user.interface.d.ts +1 -1
- package/lib/mfa/interfaces/challenge-factor-options.d.ts +1 -1
- package/lib/mfa/interfaces/enroll-factor-options.d.ts +1 -1
- package/lib/mfa/interfaces/totp.interface.d.ts +3 -0
- package/lib/mfa/interfaces/verify-factor-options.d.ts +1 -1
- package/lib/mfa/mfa.spec.js +6 -0
- package/lib/webhooks/interfaces/webhook-directory.interface.d.ts +2 -2
- package/lib/webhooks/interfaces/webhook.interface.d.ts +1 -1
- package/lib/workos.js +1 -1
- package/package.json +5 -5
|
@@ -23,4 +23,4 @@ export interface CreateAuditLogEventOptions {
|
|
|
23
23
|
};
|
|
24
24
|
metadata?: Record<string, string | number | boolean>;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type CreateAuditLogEventRequestOptions = Pick<PostOptions, 'idempotencyKey'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Group } from './group.interface';
|
|
2
|
-
export
|
|
2
|
+
export type DefaultCustomAttributes = Record<string, unknown>;
|
|
3
3
|
export interface User<TCustomAttributes extends object = DefaultCustomAttributes, TRawAttributes = any> {
|
|
4
4
|
id: string;
|
|
5
5
|
directory_id: string;
|
package/lib/mfa/mfa.spec.js
CHANGED
|
@@ -73,8 +73,11 @@ describe('MFA', () => {
|
|
|
73
73
|
updated_at: '2022-03-15T20:39:19.892Z',
|
|
74
74
|
type: 'totp',
|
|
75
75
|
totp: {
|
|
76
|
+
issuer: 'WorkOS',
|
|
76
77
|
qr_code: 'qr-code-test',
|
|
77
78
|
secret: 'secret-test',
|
|
79
|
+
uri: 'uri-test',
|
|
80
|
+
user: 'some_user',
|
|
78
81
|
},
|
|
79
82
|
});
|
|
80
83
|
const workos = new workos_1.WorkOS('sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU', {
|
|
@@ -91,8 +94,11 @@ describe('MFA', () => {
|
|
|
91
94
|
"id": "auth_factor_1234",
|
|
92
95
|
"object": "authentication_factor",
|
|
93
96
|
"totp": Object {
|
|
97
|
+
"issuer": "WorkOS",
|
|
94
98
|
"qr_code": "qr-code-test",
|
|
95
99
|
"secret": "secret-test",
|
|
100
|
+
"uri": "uri-test",
|
|
101
|
+
"user": "some_user",
|
|
96
102
|
},
|
|
97
103
|
"type": "totp",
|
|
98
104
|
"updated_at": "2022-03-15T20:39:19.892Z",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type WebhookDirectoryType = 'okta scim v1.1' | 'okta scim v2.0' | 'azure scim v2.0' | 'bamboohr' | 'breathe hr' | 'cyberark scim v2.0' | 'fourth hr' | 'gsuite directory' | 'generic scim v1.1' | 'generic scim v2.0' | 'gusto' | 'hibob' | 'jump cloud scim v2.0' | 'onelogin scim v2.0' | 'people hr' | 'pingfederate scim v2.0' | 'rippling' | 's3' | 'workday';
|
|
2
|
+
export type WebhookDirectoryState = 'active' | 'validating' | 'invalid_credentials' | 'inactive' | 'deleting';
|
|
3
3
|
interface WebhookDirectoryDomain {
|
|
4
4
|
object: 'organization_domain';
|
|
5
5
|
id: string;
|
|
@@ -69,5 +69,5 @@ export interface DsyncUserUpdatedWebhook extends WebhookBase {
|
|
|
69
69
|
event: 'dsync.user.updated';
|
|
70
70
|
data: User & Record<'previous_attributes', any>;
|
|
71
71
|
}
|
|
72
|
-
export
|
|
72
|
+
export type Webhook = ConnectionActivatedWebhook | ConnectionDeactivatedWebhook | ConnectionDeletedWebhook | DsyncActivatedWebhook | DsyncDeactivatedWebhook | DsyncDeletedWebhook | DsyncGroupCreatedWebhook | DsyncGroupUpdatedWebhook | DsyncGroupDeletedWebhook | DsyncGroupUserAddedWebhook | DsyncGroupUserRemovedWebhook | DsyncUserCreatedWebhook | DsyncUserUpdatedWebhook | DsyncUserDeletedWebhook;
|
|
73
73
|
export {};
|
package/lib/workos.js
CHANGED
|
@@ -25,7 +25,7 @@ const webhooks_1 = require("./webhooks/webhooks");
|
|
|
25
25
|
const mfa_1 = require("./mfa/mfa");
|
|
26
26
|
const audit_logs_1 = require("./audit-logs/audit-logs");
|
|
27
27
|
const bad_request_exception_1 = require("./common/exceptions/bad-request.exception");
|
|
28
|
-
const VERSION = '2.15.
|
|
28
|
+
const VERSION = '2.15.1';
|
|
29
29
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
30
30
|
class WorkOS {
|
|
31
31
|
constructor(key, options = {}) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.15.
|
|
2
|
+
"version": "2.15.1",
|
|
3
3
|
"name": "@workos-inc/node",
|
|
4
4
|
"author": "WorkOS",
|
|
5
5
|
"description": "A Node wrapper for the WorkOS API",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"workos"
|
|
10
10
|
],
|
|
11
11
|
"volta": {
|
|
12
|
-
"node": "14.
|
|
12
|
+
"node": "14.21.1",
|
|
13
13
|
"yarn": "1.22.19"
|
|
14
14
|
},
|
|
15
15
|
"main": "lib/index.js",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "27.5.2",
|
|
43
|
-
"@types/node": "14.18.
|
|
43
|
+
"@types/node": "14.18.33",
|
|
44
44
|
"@types/pluralize": "0.0.29",
|
|
45
45
|
"axios-mock-adapter": "1.21.2",
|
|
46
46
|
"jest": "27.5.1",
|
|
47
|
-
"prettier": "2.
|
|
47
|
+
"prettier": "2.8.0",
|
|
48
48
|
"supertest": "6.2.3",
|
|
49
49
|
"ts-jest": "27.1.5",
|
|
50
50
|
"tslint": "6.1.3",
|
|
51
|
-
"typescript": "4.
|
|
51
|
+
"typescript": "4.9.3"
|
|
52
52
|
}
|
|
53
53
|
}
|