@workos-inc/node 2.17.0 → 2.18.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.
@@ -150,6 +150,8 @@ describe('AuditLogs', () => {
150
150
  const options = {
151
151
  actions: ['foo', 'bar'],
152
152
  actors: ['Jon', 'Smith'],
153
+ actor_names: ['Jon', 'Smith'],
154
+ actor_ids: ['user_foo', 'user_bar'],
153
155
  organization_id: 'org_123',
154
156
  range_end: new Date(),
155
157
  range_start: new Date(),
@@ -1,6 +1,11 @@
1
1
  export interface AuditLogExportOptions {
2
2
  actions?: string[];
3
+ /**
4
+ * @deprecated Please use `actor_names` instead.
5
+ */
3
6
  actors?: string[];
7
+ actor_names?: string[];
8
+ actor_ids?: string[];
4
9
  organization_id: string;
5
10
  range_end: Date;
6
11
  range_start: Date;
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.17.0';
28
+ const VERSION = '2.18.0';
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.17.0",
2
+ "version": "2.18.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",