@workos-inc/node 2.1.1 → 2.2.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,6 +2,7 @@ import { Group } from './group.interface';
|
|
|
2
2
|
export declare type DefaultCustomAttributes = Record<string, unknown>;
|
|
3
3
|
export interface User<TCustomAttributes extends object = DefaultCustomAttributes> {
|
|
4
4
|
id: string;
|
|
5
|
+
directory_id: string;
|
|
5
6
|
raw_attributes: any;
|
|
6
7
|
custom_attributes: TCustomAttributes;
|
|
7
8
|
idp_id: string;
|
|
@@ -30,21 +30,15 @@ export interface DsyncDeletedWebhook extends WebhookBase {
|
|
|
30
30
|
}
|
|
31
31
|
export interface DsyncGroupCreatedWebhook extends WebhookBase {
|
|
32
32
|
event: 'dsync.group.created';
|
|
33
|
-
data: Group
|
|
34
|
-
directory_id: string;
|
|
35
|
-
};
|
|
33
|
+
data: Group;
|
|
36
34
|
}
|
|
37
35
|
export interface DsyncGroupDeletedWebhook extends WebhookBase {
|
|
38
36
|
event: 'dsync.group.deleted';
|
|
39
|
-
data: Group
|
|
40
|
-
directory_id: string;
|
|
41
|
-
};
|
|
37
|
+
data: Group;
|
|
42
38
|
}
|
|
43
39
|
export interface DsyncGroupUpdatedWebhook extends WebhookBase {
|
|
44
40
|
event: 'dsync.group.updated';
|
|
45
|
-
data: Group
|
|
46
|
-
directory_id: string;
|
|
47
|
-
};
|
|
41
|
+
data: Group;
|
|
48
42
|
}
|
|
49
43
|
export interface DsyncGroupUserAddedWebhook extends WebhookBase {
|
|
50
44
|
event: 'dsync.group.user_added';
|
package/lib/workos.js
CHANGED
|
@@ -22,7 +22,7 @@ const passwordless_1 = require("./passwordless/passwordless");
|
|
|
22
22
|
const portal_1 = require("./portal/portal");
|
|
23
23
|
const sso_1 = require("./sso/sso");
|
|
24
24
|
const webhooks_1 = require("./webhooks/webhooks");
|
|
25
|
-
const VERSION = '2.
|
|
25
|
+
const VERSION = '2.2.0';
|
|
26
26
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
27
27
|
class WorkOS {
|
|
28
28
|
constructor(key, options = {}) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.2.0",
|
|
3
3
|
"name": "@workos-inc/node",
|
|
4
4
|
"author": "WorkOS",
|
|
5
5
|
"description": "A Node wrapper for the WorkOS API",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "27.0.2",
|
|
43
|
-
"@types/node": "14.17.
|
|
43
|
+
"@types/node": "14.17.33",
|
|
44
44
|
"@types/pluralize": "0.0.29",
|
|
45
45
|
"axios-mock-adapter": "1.20.0",
|
|
46
46
|
"jest": "27.3.1",
|