@mastra/mongodb 1.8.1-alpha.1 → 1.9.0-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/CHANGELOG.md +49 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +30 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -5
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/skills/index.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 1.9.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added favorites support to storage adapters so callers can favorite/unfavorite stored agents and skills, query favorite state alongside list results, and filter listings by visibility. ([#16580](https://github.com/mastra-ai/mastra/pull/16580))
|
|
8
|
+
|
|
9
|
+
**Example**
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
const storage = new LibSQLStore({
|
|
13
|
+
/* config */
|
|
14
|
+
});
|
|
15
|
+
const favorites = await storage.getStore('favorites');
|
|
16
|
+
|
|
17
|
+
await favorites?.favorite({
|
|
18
|
+
userId: 'user-1',
|
|
19
|
+
entityType: 'agent',
|
|
20
|
+
entityId: 'agent-42',
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Bumped `@mastra/core` peer dependency floor to `>=1.34.0-0` so the new `@mastra/core/storage/domains/favorites` subpath is available. Older `@mastra/core` versions don't ship the `FavoritesStorage` base class these adapters now extend. ([#16580](https://github.com/mastra-ai/mastra/pull/16580))
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`816b974`](https://github.com/mastra-ai/mastra/commit/816b974b424e4a1bfae3af30cc41263b6f1c0344), [`816b974`](https://github.com/mastra-ai/mastra/commit/816b974b424e4a1bfae3af30cc41263b6f1c0344), [`b32ba5f`](https://github.com/mastra-ai/mastra/commit/b32ba5fde524b46a4ff1bdf38e30d62a2bb29b04)]:
|
|
29
|
+
- @mastra/core@1.35.0-alpha.2
|
|
30
|
+
|
|
31
|
+
## 1.8.1
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Respect optional `resourceId` in `getThreadById` so scoped thread lookups return `null` when the thread belongs to a different resource. ([#14237](https://github.com/mastra-ai/mastra/pull/14237))
|
|
36
|
+
|
|
37
|
+
Example:
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
const thread = await memory.getThreadById({
|
|
41
|
+
threadId: 'my-thread-id',
|
|
42
|
+
resourceId: 'my-user-id',
|
|
43
|
+
});
|
|
44
|
+
// Returns null if the thread does not belong to 'my-user-id'.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- Track `suspendedAt` and `suspendPayload` on background tasks. SQL adapters auto-migrate the new columns via `alterTable`. ([#16260](https://github.com/mastra-ai/mastra/pull/16260))
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`9f17410`](https://github.com/mastra-ai/mastra/commit/9f1741080def23d42ee50b39887a385ae316a3c6), [`7ad5585`](https://github.com/mastra-ai/mastra/commit/7ad55856406f1de398dc713f6a9eaa78b2784bb6), [`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60), [`cc189cc`](https://github.com/mastra-ai/mastra/commit/cc189cc0128eb7af233476b5e421ec6888bffde7), [`d1fdbd0`](https://github.com/mastra-ai/mastra/commit/d1fdbd012add5623cb7e6b7f882b605ab358bbb4), [`210ea7a`](https://github.com/mastra-ai/mastra/commit/210ea7af559791b73a44fc9c12179908aaa3183f), [`7c275a8`](https://github.com/mastra-ai/mastra/commit/7c275a810595e1a6c41ccc39720531ab65734700), [`bae019e`](https://github.com/mastra-ai/mastra/commit/bae019ecb6694da96909f7ec7b9eb3a0a33aa887), [`890b24c`](https://github.com/mastra-ai/mastra/commit/890b24cc7d32ed6aa4dfe253e54dc6bf4099f690), [`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`b59316f`](https://github.com/mastra-ai/mastra/commit/b59316ffa0f7688165b0f9c81ccdf85da461e5b2), [`0f48ebf`](https://github.com/mastra-ai/mastra/commit/0f48ebfc7ac7897b2092a189f45751924cf56d1c), [`37c0dc5`](https://github.com/mastra-ai/mastra/commit/37c0dc5697d343db98628bf867bf71ce6deec6d7), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`83218c8`](https://github.com/mastra-ai/mastra/commit/83218c88b37773c9424fbe733b37be556e55e94d), [`ef6b584`](https://github.com/mastra-ai/mastra/commit/ef6b5847ac33c0a7e80af3a86e8801e2933dd3ee), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`d91ebe2`](https://github.com/mastra-ai/mastra/commit/d91ebe28ee065d8f2ed6df741c3c07f58d359529), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`33f5061`](https://github.com/mastra-ai/mastra/commit/33f5061cd1c0335020c3faae61ce96de822854fa), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`265ec9f`](https://github.com/mastra-ai/mastra/commit/265ec9f887b5c81255c873a76ff7796f16e4f99b), [`ce01024`](https://github.com/mastra-ai/mastra/commit/ce010242eee9bdfc09e4c26725b9d37998679a8d), [`6ce80bf`](https://github.com/mastra-ai/mastra/commit/6ce80bf4872a891e0bddf8b80561a80584efb14b), [`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`9268531`](https://github.com/mastra-ai/mastra/commit/9268531e7ec4be98beeba3b3ae8be0a7ea380662), [`13ead79`](https://github.com/mastra-ai/mastra/commit/13ead79149486b88144db7e11e6ff551caef5be1), [`dccd8f1`](https://github.com/mastra-ai/mastra/commit/dccd8f1f8b8f1ad203b77556207e5529567c616d), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`f180e49`](https://github.com/mastra-ai/mastra/commit/f180e4990e71b04c9a475b523584071712f0048f), [`9260e01`](https://github.com/mastra-ai/mastra/commit/9260e015276fb1b500f7878ee452b47476bf1583), [`2f6c54e`](https://github.com/mastra-ai/mastra/commit/2f6c54e17c041cac1def54baaa6b771647836414), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`e06a159`](https://github.com/mastra-ai/mastra/commit/e06a1598ca07a6c3778aefc2a2d288363c6294ff), [`4dd900d`](https://github.com/mastra-ai/mastra/commit/4dd900d75dfe9be89f8c15188b368a8622aa1e18), [`b560d6f`](https://github.com/mastra-ai/mastra/commit/b560d6f88b9b904b15c10f75c949eb145bc27684), [`99869ec`](https://github.com/mastra-ai/mastra/commit/99869ecb1f2aa6dfcc44fa4e843e5ee0344efa64), [`900d086`](https://github.com/mastra-ai/mastra/commit/900d086bb737b9cf2fcf68f11b0389b801a2738c), [`4c0e286`](https://github.com/mastra-ai/mastra/commit/4c0e28637c9cfb4f416549b55e97ebfa13319dfc), [`55f1e2d`](https://github.com/mastra-ai/mastra/commit/55f1e2d65425b95a49ae788053b266f256e38c96), [`4ff5bdf`](https://github.com/mastra-ai/mastra/commit/4ff5bdfe170cba6dfb5260c6af0f4ba668430772), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`db34bc6`](https://github.com/mastra-ai/mastra/commit/db34bc6fb36cf125bda0c46be4d3fdc774b70cc4), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`bbcd93c`](https://github.com/mastra-ai/mastra/commit/bbcd93cf7d8aa1007d6d84bfd033b8015c912087), [`8373ff4`](https://github.com/mastra-ai/mastra/commit/8373ff46745d77af79f183c4470f80fa2727a6b2), [`d48a705`](https://github.com/mastra-ai/mastra/commit/d48a705ff3dfbdc7a996e07ecd8293b5effd9a2a), [`308bd07`](https://github.com/mastra-ai/mastra/commit/308bd074f35cef0c75d82fc1eb19382fe04ecf6f), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`36b3bbf`](https://github.com/mastra-ai/mastra/commit/36b3bbf5a8d59f7e23d47e29340e76c681b4929c), [`d86f031`](https://github.com/mastra-ai/mastra/commit/d86f031eb6b0b2570145afafea664e59bf688962), [`b275631`](https://github.com/mastra-ai/mastra/commit/b275631dc10541a482b2e2d4a3e3cfa843bd5fa1), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`bd36d8e`](https://github.com/mastra-ai/mastra/commit/bd36d8eb6de8c9a0310352649dbd4b06703c2299), [`11c1528`](https://github.com/mastra-ai/mastra/commit/11c152848c5d0ef227184853b5040f5b41ee7b1e), [`4999667`](https://github.com/mastra-ai/mastra/commit/49996678b68356cad7f088430009690406c50fbd), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`8ac9141`](https://github.com/mastra-ai/mastra/commit/8ac9141439caa8fdd674944c4d84f29b3c730296), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`105e454`](https://github.com/mastra-ai/mastra/commit/105e454c95af06a7c741c15969d8f9b0f02463a7), [`aebde9c`](https://github.com/mastra-ai/mastra/commit/aebde9cfacf56592c6b6350cae721740fe090b8a), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066), [`5688881`](https://github.com/mastra-ai/mastra/commit/5688881669c7ed157f31ac77f6fc5f8d95ceea32)]:
|
|
50
|
+
- @mastra/core@1.33.0
|
|
51
|
+
|
|
3
52
|
## 1.8.1-alpha.1
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-mongodb
|
|
|
3
3
|
description: Documentation for @mastra/mongodb. Use when working with @mastra/mongodb APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/mongodb"
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.9.0-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var evals = require('@mastra/core/evals');
|
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
16
|
var package_default = {
|
|
17
|
-
version: "1.
|
|
17
|
+
version: "1.9.0-alpha.0"};
|
|
18
18
|
var MongoDBFilterTranslator = class extends filter.BaseFilterTranslator {
|
|
19
19
|
getSupportedOperators() {
|
|
20
20
|
return {
|
|
@@ -922,7 +922,8 @@ var SNAPSHOT_FIELDS = [
|
|
|
922
922
|
"requestContextSchema",
|
|
923
923
|
"workspace",
|
|
924
924
|
"skills",
|
|
925
|
-
"skillsFormat"
|
|
925
|
+
"skillsFormat",
|
|
926
|
+
"browser"
|
|
926
927
|
];
|
|
927
928
|
var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsStorage {
|
|
928
929
|
#connector;
|
|
@@ -1065,17 +1066,20 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1065
1066
|
});
|
|
1066
1067
|
}
|
|
1067
1068
|
const now = /* @__PURE__ */ new Date();
|
|
1069
|
+
const visibility = agent.visibility ?? (agent.authorId ? "private" : void 0);
|
|
1068
1070
|
const newAgent = {
|
|
1069
1071
|
id: agent.id,
|
|
1070
1072
|
status: "draft",
|
|
1071
1073
|
activeVersionId: void 0,
|
|
1072
1074
|
authorId: agent.authorId,
|
|
1075
|
+
visibility,
|
|
1073
1076
|
metadata: agent.metadata,
|
|
1077
|
+
favoriteCount: 0,
|
|
1074
1078
|
createdAt: now,
|
|
1075
1079
|
updatedAt: now
|
|
1076
1080
|
};
|
|
1077
1081
|
await collection.insertOne(this.serializeAgent(newAgent));
|
|
1078
|
-
const { id: _id, authorId: _authorId, metadata: _metadata, ...snapshotConfig } = agent;
|
|
1082
|
+
const { id: _id, authorId: _authorId, visibility: _visibility, metadata: _metadata, ...snapshotConfig } = agent;
|
|
1079
1083
|
const versionId = crypto$1.randomUUID();
|
|
1080
1084
|
await this.createVersion({
|
|
1081
1085
|
id: versionId,
|
|
@@ -1121,6 +1125,7 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1121
1125
|
const metadataFields = {
|
|
1122
1126
|
authorId: updates.authorId,
|
|
1123
1127
|
activeVersionId: updates.activeVersionId,
|
|
1128
|
+
visibility: updates.visibility,
|
|
1124
1129
|
metadata: updates.metadata,
|
|
1125
1130
|
status: updates.status
|
|
1126
1131
|
};
|
|
@@ -1128,6 +1133,9 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1128
1133
|
if (metadataFields.activeVersionId !== void 0) {
|
|
1129
1134
|
updateDoc.activeVersionId = metadataFields.activeVersionId;
|
|
1130
1135
|
}
|
|
1136
|
+
if (metadataFields.visibility !== void 0) {
|
|
1137
|
+
updateDoc.visibility = metadataFields.visibility;
|
|
1138
|
+
}
|
|
1131
1139
|
if (metadataFields.status !== void 0) {
|
|
1132
1140
|
updateDoc.status = metadataFields.status;
|
|
1133
1141
|
}
|
|
@@ -1181,7 +1189,7 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1181
1189
|
}
|
|
1182
1190
|
async list(args) {
|
|
1183
1191
|
try {
|
|
1184
|
-
const { page = 0, perPage: perPageInput, orderBy, authorId, metadata, status } = args || {};
|
|
1192
|
+
const { page = 0, perPage: perPageInput, orderBy, authorId, visibility, metadata, status } = args || {};
|
|
1185
1193
|
const { field, direction } = this.parseOrderBy(orderBy);
|
|
1186
1194
|
if (page < 0) {
|
|
1187
1195
|
throw new error.MastraError(
|
|
@@ -1204,6 +1212,9 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1204
1212
|
if (authorId) {
|
|
1205
1213
|
filter.authorId = authorId;
|
|
1206
1214
|
}
|
|
1215
|
+
if (visibility) {
|
|
1216
|
+
filter.visibility = visibility;
|
|
1217
|
+
}
|
|
1207
1218
|
if (metadata) {
|
|
1208
1219
|
for (const [key, value] of Object.entries(metadata)) {
|
|
1209
1220
|
filter[`metadata.${key}`] = value;
|
|
@@ -1258,7 +1269,9 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1258
1269
|
status: rest.status,
|
|
1259
1270
|
activeVersionId: rest.activeVersionId,
|
|
1260
1271
|
authorId: rest.authorId,
|
|
1272
|
+
visibility: rest.visibility ?? void 0,
|
|
1261
1273
|
metadata: rest.metadata,
|
|
1274
|
+
favoriteCount: rest.favoriteCount === null || rest.favoriteCount === void 0 ? 0 : Number(rest.favoriteCount),
|
|
1262
1275
|
createdAt: rest.createdAt instanceof Date ? rest.createdAt : new Date(rest.createdAt),
|
|
1263
1276
|
updatedAt: rest.updatedAt instanceof Date ? rest.updatedAt : new Date(rest.updatedAt)
|
|
1264
1277
|
};
|
|
@@ -1273,7 +1286,9 @@ var MongoDBAgentsStorage = class _MongoDBAgentsStorage extends storage.AgentsSto
|
|
|
1273
1286
|
status: agent.status,
|
|
1274
1287
|
activeVersionId: agent.activeVersionId,
|
|
1275
1288
|
authorId: agent.authorId,
|
|
1289
|
+
visibility: agent.visibility,
|
|
1276
1290
|
metadata: agent.metadata,
|
|
1291
|
+
favoriteCount: agent.favoriteCount,
|
|
1277
1292
|
createdAt: agent.createdAt,
|
|
1278
1293
|
updatedAt: agent.updatedAt
|
|
1279
1294
|
};
|
|
@@ -8751,6 +8766,7 @@ var SNAPSHOT_FIELDS6 = [
|
|
|
8751
8766
|
"references",
|
|
8752
8767
|
"scripts",
|
|
8753
8768
|
"assets",
|
|
8769
|
+
"files",
|
|
8754
8770
|
"metadata",
|
|
8755
8771
|
"tree"
|
|
8756
8772
|
];
|
|
@@ -8860,11 +8876,13 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
8860
8876
|
});
|
|
8861
8877
|
}
|
|
8862
8878
|
const now = /* @__PURE__ */ new Date();
|
|
8879
|
+
const visibility = skill.visibility ?? (skill.authorId ? "private" : void 0);
|
|
8863
8880
|
const newSkill = {
|
|
8864
8881
|
id,
|
|
8865
8882
|
status: "draft",
|
|
8866
8883
|
activeVersionId: void 0,
|
|
8867
8884
|
authorId: skill.authorId,
|
|
8885
|
+
visibility,
|
|
8868
8886
|
createdAt: now,
|
|
8869
8887
|
updatedAt: now
|
|
8870
8888
|
};
|
|
@@ -8924,6 +8942,7 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
8924
8942
|
};
|
|
8925
8943
|
const metadataFields = {
|
|
8926
8944
|
authorId: updates.authorId,
|
|
8945
|
+
visibility: updates.visibility,
|
|
8927
8946
|
activeVersionId: updates.activeVersionId,
|
|
8928
8947
|
status: updates.status
|
|
8929
8948
|
};
|
|
@@ -8956,6 +8975,7 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
8956
8975
|
});
|
|
8957
8976
|
}
|
|
8958
8977
|
if (metadataFields.authorId !== void 0) updateDoc.authorId = metadataFields.authorId;
|
|
8978
|
+
if (metadataFields.visibility !== void 0) updateDoc.visibility = metadataFields.visibility;
|
|
8959
8979
|
if (metadataFields.activeVersionId !== void 0) {
|
|
8960
8980
|
updateDoc.activeVersionId = metadataFields.activeVersionId;
|
|
8961
8981
|
if (metadataFields.status === void 0) {
|
|
@@ -9011,7 +9031,7 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
9011
9031
|
}
|
|
9012
9032
|
async list(args) {
|
|
9013
9033
|
try {
|
|
9014
|
-
const { page = 0, perPage: perPageInput, orderBy, authorId, metadata } = args || {};
|
|
9034
|
+
const { page = 0, perPage: perPageInput, orderBy, authorId, visibility, metadata } = args || {};
|
|
9015
9035
|
const { field, direction } = this.parseOrderBy(orderBy);
|
|
9016
9036
|
if (page < 0) {
|
|
9017
9037
|
throw new error.MastraError(
|
|
@@ -9031,6 +9051,9 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
9031
9051
|
if (authorId) {
|
|
9032
9052
|
filter.authorId = authorId;
|
|
9033
9053
|
}
|
|
9054
|
+
if (visibility) {
|
|
9055
|
+
filter.visibility = visibility;
|
|
9056
|
+
}
|
|
9034
9057
|
if (metadata) {
|
|
9035
9058
|
for (const [key, value] of Object.entries(metadata)) {
|
|
9036
9059
|
filter[`metadata.${key}`] = value;
|
|
@@ -9283,6 +9306,7 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
9283
9306
|
status: rest.status,
|
|
9284
9307
|
activeVersionId: rest.activeVersionId,
|
|
9285
9308
|
authorId: rest.authorId,
|
|
9309
|
+
visibility: rest.visibility,
|
|
9286
9310
|
createdAt: rest.createdAt instanceof Date ? rest.createdAt : new Date(rest.createdAt),
|
|
9287
9311
|
updatedAt: rest.updatedAt instanceof Date ? rest.updatedAt : new Date(rest.updatedAt)
|
|
9288
9312
|
};
|
|
@@ -9293,6 +9317,7 @@ var MongoDBSkillsStorage = class _MongoDBSkillsStorage extends storage.SkillsSto
|
|
|
9293
9317
|
status: skill.status,
|
|
9294
9318
|
activeVersionId: skill.activeVersionId,
|
|
9295
9319
|
authorId: skill.authorId,
|
|
9320
|
+
visibility: skill.visibility,
|
|
9296
9321
|
createdAt: skill.createdAt,
|
|
9297
9322
|
updatedAt: skill.updatedAt
|
|
9298
9323
|
};
|