@mastra/auth-workos 0.10.0 → 0.10.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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/auth-workos@0.10.0 build /home/runner/work/mastra/mastra/auth/workos
2
+ > @mastra/auth-workos@0.10.1-alpha.0 build /home/runner/work/mastra/mastra/auth/workos
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.4.0
7
+ CLI tsup v8.5.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 7538ms
9
+ TSC ⚡️ Build success in 7410ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/auth/workos/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/auth/workos/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 8130ms
16
+ DTS ⚡️ Build success in 11216ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 11.63 KB
20
+ ESM dist/index.js 12.40 KB
21
21
  ESM dist/getMachineId-darwin-UJH25LDA.js 770.00 B
22
22
  ESM dist/getMachineId-linux-YF3RLZNP.js 440.00 B
23
23
  ESM dist/getMachineId-bsd-IPBZSYCM.js 564.00 B
@@ -25,6 +25,6 @@ Analysis will use the bundled TypeScript version 5.8.3
25
25
  ESM dist/chunk-N62AETLJ.js 334.00 B
26
26
  ESM dist/getMachineId-unsupported-UOUTBEEW.js 382.00 B
27
27
  ESM dist/chunk-JLXWUSDO.js 32.51 KB
28
- ESM ⚡️ Build success in 2022ms
29
- CJS dist/index.cjs 53.57 KB
30
- CJS ⚡️ Build success in 2023ms
28
+ ESM ⚡️ Build success in 2521ms
29
+ CJS dist/index.cjs 54.34 KB
30
+ CJS ⚡️ Build success in 2521ms
package/CHANGELOG.md CHANGED
@@ -1 +1,17 @@
1
1
  # @mastra/auth-workos
2
+
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 63f6b7d: dependencies updates:
8
+ - Updated dependency [`@workos-inc/node@^7.54.0` ↗︎](https://www.npmjs.com/package/@workos-inc/node/v/7.54.0) (from `^7.50.1`, in `dependencies`)
9
+ - @mastra/auth@0.1.0
10
+
11
+ ## 0.10.1-alpha.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 63f6b7d: dependencies updates:
16
+ - Updated dependency [`@workos-inc/node@^7.54.0` ↗︎](https://www.npmjs.com/package/@workos-inc/node/v/7.54.0) (from `^7.50.1`, in `dependencies`)
17
+ - @mastra/auth@0.1.0
package/dist/index.cjs CHANGED
@@ -1174,7 +1174,7 @@ var init_esm = __esm({
1174
1174
  }
1175
1175
  });
1176
1176
 
1177
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
1177
+ // ../../packages/core/dist/chunk-IFQGBW42.js
1178
1178
  init_esm();
1179
1179
  function hasActiveTelemetry(tracerName = "default-tracer") {
1180
1180
  try {
@@ -1306,7 +1306,7 @@ function InstrumentClass(options) {
1306
1306
  };
1307
1307
  }
1308
1308
 
1309
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
1309
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
1310
1310
  var RegisteredLogger = {
1311
1311
  LLM: "LLM"};
1312
1312
  var LogLevel = {
@@ -1326,17 +1326,40 @@ var MastraLogger = class {
1326
1326
  getTransports() {
1327
1327
  return this.transports;
1328
1328
  }
1329
- async getLogs(transportId) {
1329
+ trackException(_error) {
1330
+ }
1331
+ async getLogs(transportId, params) {
1330
1332
  if (!transportId || !this.transports.has(transportId)) {
1331
- return [];
1333
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
1332
1334
  }
1333
- return this.transports.get(transportId).getLogs() ?? [];
1335
+ return this.transports.get(transportId).getLogs(params) ?? {
1336
+ logs: [],
1337
+ total: 0,
1338
+ page: params?.page ?? 1,
1339
+ perPage: params?.perPage ?? 100,
1340
+ hasMore: false
1341
+ };
1334
1342
  }
1335
- async getLogsByRunId({ transportId, runId }) {
1343
+ async getLogsByRunId({
1344
+ transportId,
1345
+ runId,
1346
+ fromDate,
1347
+ toDate,
1348
+ logLevel,
1349
+ filters,
1350
+ page,
1351
+ perPage
1352
+ }) {
1336
1353
  if (!transportId || !this.transports.has(transportId) || !runId) {
1337
- return [];
1354
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
1338
1355
  }
1339
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
1356
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
1357
+ logs: [],
1358
+ total: 0,
1359
+ page: page ?? 1,
1360
+ perPage: perPage ?? 100,
1361
+ hasMore: false
1362
+ };
1340
1363
  }
1341
1364
  };
1342
1365
  var ConsoleLogger = class extends MastraLogger {
@@ -1363,15 +1386,15 @@ var ConsoleLogger = class extends MastraLogger {
1363
1386
  console.error(message, ...args);
1364
1387
  }
1365
1388
  }
1366
- async getLogs(_transportId) {
1367
- return [];
1389
+ async getLogs(_transportId, _params) {
1390
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
1368
1391
  }
1369
1392
  async getLogsByRunId(_args) {
1370
- return [];
1393
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
1371
1394
  }
1372
1395
  };
1373
1396
 
1374
- // ../../packages/core/dist/chunk-JOCKZ2US.js
1397
+ // ../../packages/core/dist/chunk-5IEKR756.js
1375
1398
  var MastraBase = class {
1376
1399
  component = RegisteredLogger.LLM;
1377
1400
  logger;
@@ -1421,7 +1444,7 @@ var MastraBase = class {
1421
1444
  }
1422
1445
  };
1423
1446
 
1424
- // ../../packages/core/dist/chunk-C6A6W6XS.js
1447
+ // ../../packages/core/dist/chunk-WQNOATKB.js
1425
1448
  var __create = Object.create;
1426
1449
  var __defProp = Object.defineProperty;
1427
1450
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { SpanKind, trace, context, propagation, SpanStatusCode } from './chunk-J
2
2
  import { verifyJwks } from '@mastra/auth';
3
3
  import { WorkOS } from '@workos-inc/node';
4
4
 
5
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
5
+ // ../../packages/core/dist/chunk-IFQGBW42.js
6
6
  function hasActiveTelemetry(tracerName = "default-tracer") {
7
7
  try {
8
8
  return !!trace.getTracer(tracerName);
@@ -133,7 +133,7 @@ function InstrumentClass(options) {
133
133
  };
134
134
  }
135
135
 
136
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
136
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
137
137
  var RegisteredLogger = {
138
138
  LLM: "LLM"};
139
139
  var LogLevel = {
@@ -153,17 +153,40 @@ var MastraLogger = class {
153
153
  getTransports() {
154
154
  return this.transports;
155
155
  }
156
- async getLogs(transportId) {
156
+ trackException(_error) {
157
+ }
158
+ async getLogs(transportId, params) {
157
159
  if (!transportId || !this.transports.has(transportId)) {
158
- return [];
160
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
159
161
  }
160
- return this.transports.get(transportId).getLogs() ?? [];
162
+ return this.transports.get(transportId).getLogs(params) ?? {
163
+ logs: [],
164
+ total: 0,
165
+ page: params?.page ?? 1,
166
+ perPage: params?.perPage ?? 100,
167
+ hasMore: false
168
+ };
161
169
  }
162
- async getLogsByRunId({ transportId, runId }) {
170
+ async getLogsByRunId({
171
+ transportId,
172
+ runId,
173
+ fromDate,
174
+ toDate,
175
+ logLevel,
176
+ filters,
177
+ page,
178
+ perPage
179
+ }) {
163
180
  if (!transportId || !this.transports.has(transportId) || !runId) {
164
- return [];
181
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
165
182
  }
166
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
183
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
184
+ logs: [],
185
+ total: 0,
186
+ page: page ?? 1,
187
+ perPage: perPage ?? 100,
188
+ hasMore: false
189
+ };
167
190
  }
168
191
  };
169
192
  var ConsoleLogger = class extends MastraLogger {
@@ -190,15 +213,15 @@ var ConsoleLogger = class extends MastraLogger {
190
213
  console.error(message, ...args);
191
214
  }
192
215
  }
193
- async getLogs(_transportId) {
194
- return [];
216
+ async getLogs(_transportId, _params) {
217
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
195
218
  }
196
219
  async getLogsByRunId(_args) {
197
- return [];
220
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
198
221
  }
199
222
  };
200
223
 
201
- // ../../packages/core/dist/chunk-JOCKZ2US.js
224
+ // ../../packages/core/dist/chunk-5IEKR756.js
202
225
  var MastraBase = class {
203
226
  component = RegisteredLogger.LLM;
204
227
  logger;
@@ -248,7 +271,7 @@ var MastraBase = class {
248
271
  }
249
272
  };
250
273
 
251
- // ../../packages/core/dist/chunk-C6A6W6XS.js
274
+ // ../../packages/core/dist/chunk-WQNOATKB.js
252
275
  var __create = Object.create;
253
276
  var __defProp = Object.defineProperty;
254
277
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-workos",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Mastra WorkOS Auth integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,17 +20,17 @@
20
20
  },
21
21
  "license": "Elastic-2.0",
22
22
  "dependencies": {
23
- "@workos-inc/node": "^7.50.1",
23
+ "@workos-inc/node": "^7.54.0",
24
24
  "@mastra/auth": "0.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^22.13.1",
28
- "eslint": "^9.25.1",
29
- "tsup": "^8.4.0",
27
+ "@types/node": "^20.19.0",
28
+ "eslint": "^9.28.0",
29
+ "tsup": "^8.5.0",
30
30
  "typescript": "^5.8.3",
31
31
  "vitest": "^2.1.9",
32
- "@mastra/core": "0.10.2",
33
- "@internal/lint": "0.0.8"
32
+ "@internal/lint": "0.0.13",
33
+ "@mastra/core": "0.10.6"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake",