@mastra/auth-auth0 0.10.0 → 0.10.1-alpha.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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +7 -0
- package/LICENSE.md +12 -4
- package/dist/index.cjs +53 -16
- package/dist/index.js +53 -16
- package/package.json +9 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.
|
|
7
|
+
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 8489ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/auth/auth0/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/auth/auth0/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 12084ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in
|
|
20
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m54.59 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 2463ms
|
|
22
22
|
[32mESM[39m [1mdist/getMachineId-darwin-UJH25LDA.js [22m[32m770.00 B[39m
|
|
23
23
|
[32mESM[39m [1mdist/getMachineId-linux-YF3RLZNP.js [22m[32m440.00 B[39m
|
|
24
24
|
[32mESM[39m [1mdist/getMachineId-bsd-IPBZSYCM.js [22m[32m564.00 B[39m
|
|
25
25
|
[32mESM[39m [1mdist/getMachineId-win-PKATJI4A.js [22m[32m738.00 B[39m
|
|
26
26
|
[32mESM[39m [1mdist/chunk-N62AETLJ.js [22m[32m334.00 B[39m
|
|
27
27
|
[32mESM[39m [1mdist/getMachineId-unsupported-UOUTBEEW.js [22m[32m382.00 B[39m
|
|
28
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
28
|
+
[32mESM[39m [1mdist/index.js [22m[32m12.67 KB[39m
|
|
29
29
|
[32mESM[39m [1mdist/chunk-JLXWUSDO.js [22m[32m32.51 KB[39m
|
|
30
|
-
[32mESM[39m ⚡️ Build success in
|
|
30
|
+
[32mESM[39m ⚡️ Build success in 2467ms
|
package/CHANGELOG.md
CHANGED
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
# Apache License 2.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2025 Kepler Software, Inc.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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({
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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({
|
|
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-
|
|
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-
|
|
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-alpha.0",
|
|
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": "
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"jose": "^6.0.
|
|
23
|
+
"jose": "^6.0.12"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"eslint": "^9.
|
|
28
|
-
"tsup": "^8.
|
|
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.
|
|
31
|
-
"@internal/lint": "0.0.
|
|
32
|
-
"@mastra/core": "0.
|
|
30
|
+
"vitest": "^3.2.4",
|
|
31
|
+
"@internal/lint": "0.0.23",
|
|
32
|
+
"@mastra/core": "0.12.0-alpha.2"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake",
|