@meshagent/meshagent-ts-auth 0.41.0 → 0.41.2
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/CHANGELOG.md +9 -0
- package/dist/browser/ma-auth.global.js +15 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [0.41.2]
|
|
2
|
+
- The default TypeScript chatbot template now runs as a standalone HTTP app with `/health` and `/api/chat`, supports public deployment metadata, and no longer depends on the runtime `@meshagent/meshagent` package.
|
|
3
|
+
- Added a new Anthropic chatbot template that talks to the room Anthropic proxy.
|
|
4
|
+
- Generated template dependencies now target `@types/node` 22.10.0, `tsx` 4.20.0, `@vercel/ncc` 0.38.3, and `typescript` 5.8.0.
|
|
5
|
+
|
|
6
|
+
## [0.41.1]
|
|
7
|
+
- TypeScript feed subscription requests and responses now carry an optional `filename_datetime_format`.
|
|
8
|
+
- The chatbot UI template now builds and runs as a standalone Next.js app, deploys as a private websocket-enabled service with the `/messages` port, keeps messages pinned to the bottom, and updates Next.js to `16.2.6`.
|
|
9
|
+
|
|
1
10
|
## [0.41.0]
|
|
2
11
|
- Added spec-based route models and route CRUD/listing APIs, including room and agent routes, with legacy-payload compatibility.
|
|
3
12
|
- Managed-agent toolkit descriptions were simplified to omit `thumbnailUrl` and `pricing`.
|
|
@@ -38245,11 +38245,12 @@ ${newlined}
|
|
|
38245
38245
|
if (!data || typeof data !== "object") {
|
|
38246
38246
|
throw new requirement_1.RoomException("Invalid feed subscription payload");
|
|
38247
38247
|
}
|
|
38248
|
-
const { id: id2, feed_id: feedIdRaw, feedId, project_id: projectIdRaw, projectId, room, room_id: roomIdRaw, roomId, path, created_at: createdAtRaw, createdAt, annotations } = data;
|
|
38248
|
+
const { id: id2, feed_id: feedIdRaw, feedId, project_id: projectIdRaw, projectId, room, room_id: roomIdRaw, roomId, path, filename_datetime_format: filenameDatetimeFormatRaw, filenameDatetimeFormat, created_at: createdAtRaw, createdAt, annotations } = data;
|
|
38249
38249
|
const feedIdValue = typeof feedId === "string" ? feedId : feedIdRaw;
|
|
38250
38250
|
const projectIdValue = typeof projectId === "string" ? projectId : projectIdRaw;
|
|
38251
38251
|
const createdAtValue = typeof createdAt === "string" ? createdAt : createdAtRaw;
|
|
38252
38252
|
const roomIdValue = typeof roomId === "string" ? roomId : roomIdRaw;
|
|
38253
|
+
const filenameDatetimeFormatValue = typeof filenameDatetimeFormat === "string" ? filenameDatetimeFormat : typeof filenameDatetimeFormatRaw === "string" ? filenameDatetimeFormatRaw : void 0;
|
|
38253
38254
|
if (typeof id2 !== "string" || typeof feedIdValue !== "string" || typeof projectIdValue !== "string" || typeof room !== "string" || typeof path !== "string" || typeof createdAtValue !== "string") {
|
|
38254
38255
|
throw new requirement_1.RoomException("Invalid feed subscription payload: missing required fields");
|
|
38255
38256
|
}
|
|
@@ -38260,6 +38261,7 @@ ${newlined}
|
|
|
38260
38261
|
room,
|
|
38261
38262
|
roomId: typeof roomIdValue === "string" ? roomIdValue : void 0,
|
|
38262
38263
|
path,
|
|
38264
|
+
filenameDatetimeFormat: filenameDatetimeFormatValue,
|
|
38263
38265
|
createdAt: new Date(createdAtValue),
|
|
38264
38266
|
annotations: annotations && typeof annotations === "object" ? annotations : {}
|
|
38265
38267
|
};
|
|
@@ -39066,19 +39068,27 @@ ${newlined}
|
|
|
39066
39068
|
});
|
|
39067
39069
|
}
|
|
39068
39070
|
async createFeedSubscription(params2) {
|
|
39069
|
-
const { projectId, feedId, room, path, annotations = {} } = params2;
|
|
39071
|
+
const { projectId, feedId, room, path, filenameDatetimeFormat, annotations = {} } = params2;
|
|
39070
39072
|
const data = await this.request(`/accounts/projects/${projectId}/feeds/${feedId}/subscriptions`, {
|
|
39071
39073
|
method: "POST",
|
|
39072
|
-
json: {
|
|
39074
|
+
json: {
|
|
39075
|
+
room,
|
|
39076
|
+
path,
|
|
39077
|
+
...filenameDatetimeFormat !== void 0 ? { filename_datetime_format: filenameDatetimeFormat } : {},
|
|
39078
|
+
annotations
|
|
39079
|
+
},
|
|
39073
39080
|
action: "create feed subscription"
|
|
39074
39081
|
});
|
|
39075
39082
|
return this.parseFeedSubscription(data.subscription);
|
|
39076
39083
|
}
|
|
39077
39084
|
async updateFeedSubscription(params2) {
|
|
39078
|
-
const { projectId, feedId, subscriptionId, annotations = {} } = params2;
|
|
39085
|
+
const { projectId, feedId, subscriptionId, filenameDatetimeFormat, annotations = {} } = params2;
|
|
39079
39086
|
await this.request(`/accounts/projects/${projectId}/feeds/${feedId}/subscriptions/${subscriptionId}`, {
|
|
39080
39087
|
method: "PUT",
|
|
39081
|
-
json: {
|
|
39088
|
+
json: {
|
|
39089
|
+
...filenameDatetimeFormat !== void 0 ? { filename_datetime_format: filenameDatetimeFormat } : {},
|
|
39090
|
+
annotations
|
|
39091
|
+
},
|
|
39082
39092
|
action: "update feed subscription",
|
|
39083
39093
|
responseType: "void"
|
|
39084
39094
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshagent/meshagent-ts-auth",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Meshagent Typescript Auth",
|
|
5
5
|
"homepage": "https://github.com/meshagent/meshagent-ts-auth",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@meshagent/meshagent": "^0.41.
|
|
42
|
+
"@meshagent/meshagent": "^0.41.2",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|