@mastra/auth-auth0 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,30 +1,30 @@
1
1
 
2
- > @mastra/auth-auth0@0.10.0 build /home/runner/work/mastra/mastra/auth/auth0
2
+ > @mastra/auth-auth0@0.10.1-alpha.0 build /home/runner/work/mastra/mastra/auth/auth0
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 6637ms
9
+ TSC ⚡️ Build success in 8135ms
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/auth0/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/auth0/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 10638ms
16
+ DTS ⚡️ Build success in 10797ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 53.34 KB
21
- CJS ⚡️ Build success in 2427ms
22
- ESM dist/getMachineId-darwin-UJH25LDA.js 770.00 B
23
20
  ESM dist/getMachineId-linux-YF3RLZNP.js 440.00 B
21
+ ESM dist/getMachineId-darwin-UJH25LDA.js 770.00 B
24
22
  ESM dist/getMachineId-bsd-IPBZSYCM.js 564.00 B
25
23
  ESM dist/getMachineId-win-PKATJI4A.js 738.00 B
26
24
  ESM dist/chunk-N62AETLJ.js 334.00 B
27
25
  ESM dist/getMachineId-unsupported-UOUTBEEW.js 382.00 B
28
- ESM dist/index.js 11.42 KB
26
+ ESM dist/index.js 12.67 KB
29
27
  ESM dist/chunk-JLXWUSDO.js 32.51 KB
30
- ESM ⚡️ Build success in 2434ms
28
+ ESM ⚡️ Build success in 2321ms
29
+ CJS dist/index.cjs 54.59 KB
30
+ CJS ⚡️ Build success in 2321ms
package/CHANGELOG.md CHANGED
@@ -1 +1,15 @@
1
1
  # @mastra/auth-auth0
2
+
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ee857ae: dependencies updates:
8
+ - Updated dependency [`jose@^6.0.12` ↗︎](https://www.npmjs.com/package/jose/v/6.0.12) (from `^6.0.11`, in `dependencies`)
9
+
10
+ ## 0.10.1-alpha.0
11
+
12
+ ### Patch Changes
13
+
14
+ - ee857ae: dependencies updates:
15
+ - Updated dependency [`jose@^6.0.12` ↗︎](https://www.npmjs.com/package/jose/v/6.0.12) (from `^6.0.11`, in `dependencies`)
package/LICENSE.md CHANGED
@@ -1,7 +1,15 @@
1
- Copyright 2025 Mastra AI, Inc.
1
+ # Apache License 2.0
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2025 Kepler Software, Inc.
4
4
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
6
8
 
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
package/dist/index.cjs CHANGED
@@ -1173,7 +1173,7 @@ var init_esm = __esm({
1173
1173
  }
1174
1174
  });
1175
1175
 
1176
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
1176
+ // ../../packages/core/dist/chunk-AMETU3JF.js
1177
1177
  init_esm();
1178
1178
  function hasActiveTelemetry(tracerName = "default-tracer") {
1179
1179
  try {
@@ -1187,10 +1187,14 @@ function getBaggageValues(ctx) {
1187
1187
  const requestId = currentBaggage?.getEntry("http.request_id")?.value;
1188
1188
  const componentName = currentBaggage?.getEntry("componentName")?.value;
1189
1189
  const runId = currentBaggage?.getEntry("runId")?.value;
1190
+ const threadId = currentBaggage?.getEntry("threadId")?.value;
1191
+ const resourceId = currentBaggage?.getEntry("resourceId")?.value;
1190
1192
  return {
1191
1193
  requestId,
1192
1194
  componentName,
1193
- runId
1195
+ runId,
1196
+ threadId,
1197
+ resourceId
1194
1198
  };
1195
1199
  }
1196
1200
  function withSpan(options) {
@@ -1222,10 +1226,16 @@ function withSpan(options) {
1222
1226
  span.setAttribute(`${spanName}.argument.${index}`, "[Not Serializable]");
1223
1227
  }
1224
1228
  });
1225
- const { requestId, componentName, runId } = getBaggageValues(ctx);
1229
+ const { requestId, componentName, runId, threadId, resourceId } = getBaggageValues(ctx);
1226
1230
  if (requestId) {
1227
1231
  span.setAttribute("http.request_id", requestId);
1228
1232
  }
1233
+ if (threadId) {
1234
+ span.setAttribute("threadId", threadId);
1235
+ }
1236
+ if (resourceId) {
1237
+ span.setAttribute("resourceId", resourceId);
1238
+ }
1229
1239
  if (componentName) {
1230
1240
  span.setAttribute("componentName", componentName);
1231
1241
  span.setAttribute("runId", runId);
@@ -1240,7 +1250,11 @@ function withSpan(options) {
1240
1250
  // @ts-ignore
1241
1251
  runId: { value: this.runId },
1242
1252
  // @ts-ignore
1243
- "http.request_id": { value: requestId }
1253
+ "http.request_id": { value: requestId },
1254
+ // @ts-ignore
1255
+ threadId: { value: threadId },
1256
+ // @ts-ignore
1257
+ resourceId: { value: resourceId }
1244
1258
  })
1245
1259
  );
1246
1260
  }
@@ -1305,7 +1319,7 @@ function InstrumentClass(options) {
1305
1319
  };
1306
1320
  }
1307
1321
 
1308
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
1322
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
1309
1323
  var RegisteredLogger = {
1310
1324
  LLM: "LLM"};
1311
1325
  var LogLevel = {
@@ -1325,17 +1339,40 @@ var MastraLogger = class {
1325
1339
  getTransports() {
1326
1340
  return this.transports;
1327
1341
  }
1328
- async getLogs(transportId) {
1342
+ trackException(_error) {
1343
+ }
1344
+ async getLogs(transportId, params) {
1329
1345
  if (!transportId || !this.transports.has(transportId)) {
1330
- return [];
1346
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
1331
1347
  }
1332
- return this.transports.get(transportId).getLogs() ?? [];
1348
+ return this.transports.get(transportId).getLogs(params) ?? {
1349
+ logs: [],
1350
+ total: 0,
1351
+ page: params?.page ?? 1,
1352
+ perPage: params?.perPage ?? 100,
1353
+ hasMore: false
1354
+ };
1333
1355
  }
1334
- async getLogsByRunId({ transportId, runId }) {
1356
+ async getLogsByRunId({
1357
+ transportId,
1358
+ runId,
1359
+ fromDate,
1360
+ toDate,
1361
+ logLevel,
1362
+ filters,
1363
+ page,
1364
+ perPage
1365
+ }) {
1335
1366
  if (!transportId || !this.transports.has(transportId) || !runId) {
1336
- return [];
1367
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
1337
1368
  }
1338
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
1369
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
1370
+ logs: [],
1371
+ total: 0,
1372
+ page: page ?? 1,
1373
+ perPage: perPage ?? 100,
1374
+ hasMore: false
1375
+ };
1339
1376
  }
1340
1377
  };
1341
1378
  var ConsoleLogger = class extends MastraLogger {
@@ -1362,15 +1399,15 @@ var ConsoleLogger = class extends MastraLogger {
1362
1399
  console.error(message, ...args);
1363
1400
  }
1364
1401
  }
1365
- async getLogs(_transportId) {
1366
- return [];
1402
+ async getLogs(_transportId, _params) {
1403
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
1367
1404
  }
1368
1405
  async getLogsByRunId(_args) {
1369
- return [];
1406
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
1370
1407
  }
1371
1408
  };
1372
1409
 
1373
- // ../../packages/core/dist/chunk-JOCKZ2US.js
1410
+ // ../../packages/core/dist/chunk-7OE6SJZL.js
1374
1411
  var MastraBase = class {
1375
1412
  component = RegisteredLogger.LLM;
1376
1413
  logger;
@@ -1420,7 +1457,7 @@ var MastraBase = class {
1420
1457
  }
1421
1458
  };
1422
1459
 
1423
- // ../../packages/core/dist/chunk-C6A6W6XS.js
1460
+ // ../../packages/core/dist/chunk-WQNOATKB.js
1424
1461
  var __create = Object.create;
1425
1462
  var __defProp = Object.defineProperty;
1426
1463
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SpanKind, trace, context, propagation, SpanStatusCode } from './chunk-JLXWUSDO.js';
2
2
  import { createRemoteJWKSet, jwtVerify } from 'jose';
3
3
 
4
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
4
+ // ../../packages/core/dist/chunk-AMETU3JF.js
5
5
  function hasActiveTelemetry(tracerName = "default-tracer") {
6
6
  try {
7
7
  return !!trace.getTracer(tracerName);
@@ -14,10 +14,14 @@ function getBaggageValues(ctx) {
14
14
  const requestId = currentBaggage?.getEntry("http.request_id")?.value;
15
15
  const componentName = currentBaggage?.getEntry("componentName")?.value;
16
16
  const runId = currentBaggage?.getEntry("runId")?.value;
17
+ const threadId = currentBaggage?.getEntry("threadId")?.value;
18
+ const resourceId = currentBaggage?.getEntry("resourceId")?.value;
17
19
  return {
18
20
  requestId,
19
21
  componentName,
20
- runId
22
+ runId,
23
+ threadId,
24
+ resourceId
21
25
  };
22
26
  }
23
27
  function withSpan(options) {
@@ -49,10 +53,16 @@ function withSpan(options) {
49
53
  span.setAttribute(`${spanName}.argument.${index}`, "[Not Serializable]");
50
54
  }
51
55
  });
52
- const { requestId, componentName, runId } = getBaggageValues(ctx);
56
+ const { requestId, componentName, runId, threadId, resourceId } = getBaggageValues(ctx);
53
57
  if (requestId) {
54
58
  span.setAttribute("http.request_id", requestId);
55
59
  }
60
+ if (threadId) {
61
+ span.setAttribute("threadId", threadId);
62
+ }
63
+ if (resourceId) {
64
+ span.setAttribute("resourceId", resourceId);
65
+ }
56
66
  if (componentName) {
57
67
  span.setAttribute("componentName", componentName);
58
68
  span.setAttribute("runId", runId);
@@ -67,7 +77,11 @@ function withSpan(options) {
67
77
  // @ts-ignore
68
78
  runId: { value: this.runId },
69
79
  // @ts-ignore
70
- "http.request_id": { value: requestId }
80
+ "http.request_id": { value: requestId },
81
+ // @ts-ignore
82
+ threadId: { value: threadId },
83
+ // @ts-ignore
84
+ resourceId: { value: resourceId }
71
85
  })
72
86
  );
73
87
  }
@@ -132,7 +146,7 @@ function InstrumentClass(options) {
132
146
  };
133
147
  }
134
148
 
135
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
149
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
136
150
  var RegisteredLogger = {
137
151
  LLM: "LLM"};
138
152
  var LogLevel = {
@@ -152,17 +166,40 @@ var MastraLogger = class {
152
166
  getTransports() {
153
167
  return this.transports;
154
168
  }
155
- async getLogs(transportId) {
169
+ trackException(_error) {
170
+ }
171
+ async getLogs(transportId, params) {
156
172
  if (!transportId || !this.transports.has(transportId)) {
157
- return [];
173
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
158
174
  }
159
- return this.transports.get(transportId).getLogs() ?? [];
175
+ return this.transports.get(transportId).getLogs(params) ?? {
176
+ logs: [],
177
+ total: 0,
178
+ page: params?.page ?? 1,
179
+ perPage: params?.perPage ?? 100,
180
+ hasMore: false
181
+ };
160
182
  }
161
- async getLogsByRunId({ transportId, runId }) {
183
+ async getLogsByRunId({
184
+ transportId,
185
+ runId,
186
+ fromDate,
187
+ toDate,
188
+ logLevel,
189
+ filters,
190
+ page,
191
+ perPage
192
+ }) {
162
193
  if (!transportId || !this.transports.has(transportId) || !runId) {
163
- return [];
194
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
164
195
  }
165
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
196
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
197
+ logs: [],
198
+ total: 0,
199
+ page: page ?? 1,
200
+ perPage: perPage ?? 100,
201
+ hasMore: false
202
+ };
166
203
  }
167
204
  };
168
205
  var ConsoleLogger = class extends MastraLogger {
@@ -189,15 +226,15 @@ var ConsoleLogger = class extends MastraLogger {
189
226
  console.error(message, ...args);
190
227
  }
191
228
  }
192
- async getLogs(_transportId) {
193
- return [];
229
+ async getLogs(_transportId, _params) {
230
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
194
231
  }
195
232
  async getLogsByRunId(_args) {
196
- return [];
233
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
197
234
  }
198
235
  };
199
236
 
200
- // ../../packages/core/dist/chunk-JOCKZ2US.js
237
+ // ../../packages/core/dist/chunk-7OE6SJZL.js
201
238
  var MastraBase = class {
202
239
  component = RegisteredLogger.LLM;
203
240
  logger;
@@ -247,7 +284,7 @@ var MastraBase = class {
247
284
  }
248
285
  };
249
286
 
250
- // ../../packages/core/dist/chunk-C6A6W6XS.js
287
+ // ../../packages/core/dist/chunk-WQNOATKB.js
251
288
  var __create = Object.create;
252
289
  var __defProp = Object.defineProperty;
253
290
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-auth0",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Mastra Auth0 Auth integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,18 +18,18 @@
18
18
  },
19
19
  "./package.json": "./package.json"
20
20
  },
21
- "license": "Elastic-2.0",
21
+ "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "jose": "^6.0.11"
23
+ "jose": "^6.0.12"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^22.13.1",
27
- "eslint": "^9.25.1",
28
- "tsup": "^8.4.0",
26
+ "@types/node": "^20.19.0",
27
+ "eslint": "^9.30.1",
28
+ "tsup": "^8.5.0",
29
29
  "typescript": "^5.8.3",
30
- "vitest": "^2.1.9",
31
- "@internal/lint": "0.0.8",
32
- "@mastra/core": "0.10.2"
30
+ "vitest": "^3.2.4",
31
+ "@internal/lint": "0.0.24",
32
+ "@mastra/core": "0.12.0"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake",