@nurama/sdk 1.4.4 → 1.4.6
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/README.md +7 -7
- package/dist/browser/nurama-bot-sdk.js +37 -4
- package/dist/browser/nurama-bot-sdk.min.js +1 -1
- package/dist/browser/nurama-sdk.js +37 -4
- package/dist/browser/nurama-sdk.min.js +1 -1
- package/dist/routes/project.d.ts +16 -0
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/project.js +37 -0
- package/dist/routes/project.js.map +1 -1
- package/dist/version.js +4 -4
- package/package.json +2 -2
- package/src/routes/project.ts +37 -0
- package/src/version.ts +4 -4
|
@@ -5973,6 +5973,39 @@
|
|
|
5973
5973
|
sendJWT: true
|
|
5974
5974
|
});
|
|
5975
5975
|
},
|
|
5976
|
+
/**
|
|
5977
|
+
* Gets your reading position in a project's highlights: when you last
|
|
5978
|
+
* caught up, and how many messages others have highlighted since. If you
|
|
5979
|
+
* have never caught up, it counts from when read tracking began.
|
|
5980
|
+
* @param {string} projectId - The project ID.
|
|
5981
|
+
* @param {'creator' | 'reviewer'} visibility - Which highlights.
|
|
5982
|
+
* @returns {Promise<ReadState>} Your reading position.
|
|
5983
|
+
*/
|
|
5984
|
+
async getHighlightsReadState(projectId, visibility) {
|
|
5985
|
+
if (!projectId) throw new Error("projectId is required.");
|
|
5986
|
+
if (!visibility) throw new Error("visibility is required.");
|
|
5987
|
+
return client._request({
|
|
5988
|
+
method: "GET",
|
|
5989
|
+
endpoint: `/v1/projects/${projectId}/${visibility}/highlighted-messages/read-state`,
|
|
5990
|
+
sendJWT: true
|
|
5991
|
+
});
|
|
5992
|
+
},
|
|
5993
|
+
/**
|
|
5994
|
+
* Marks a project's highlights as read. Pass `lastReadAt` (epoch ms) — the
|
|
5995
|
+
* `highlightedAt` of the newest highlight you had loaded; omit it to catch
|
|
5996
|
+
* up to now. The marker only moves forward and never past the present.
|
|
5997
|
+
* @returns {Promise<ReadState>} Your updated reading position.
|
|
5998
|
+
*/
|
|
5999
|
+
async markHighlightsCaughtUp(projectId, visibility, lastReadAt) {
|
|
6000
|
+
if (!projectId) throw new Error("projectId is required.");
|
|
6001
|
+
if (!visibility) throw new Error("visibility is required.");
|
|
6002
|
+
return client._request({
|
|
6003
|
+
method: "POST",
|
|
6004
|
+
endpoint: `/v1/projects/${projectId}/${visibility}/highlighted-messages/read-state`,
|
|
6005
|
+
body: lastReadAt === void 0 ? {} : { lastReadAt },
|
|
6006
|
+
sendJWT: true
|
|
6007
|
+
});
|
|
6008
|
+
},
|
|
5976
6009
|
/**
|
|
5977
6010
|
* Top-N assets in a project by access-activity event type (plays, downloads, embeds).
|
|
5978
6011
|
* Requires project read access. Returns asset IDs and counts only; hydrate names and
|
|
@@ -11556,10 +11589,10 @@
|
|
|
11556
11589
|
|
|
11557
11590
|
// src/version.ts
|
|
11558
11591
|
var SDK_VERSION = {
|
|
11559
|
-
version: "1.4.
|
|
11560
|
-
buildTimestamp: "2026-10-
|
|
11561
|
-
buildHash: "
|
|
11562
|
-
gitCommit: "
|
|
11592
|
+
version: "1.4.6",
|
|
11593
|
+
buildTimestamp: "2026-10-30T09:37:39.703Z",
|
|
11594
|
+
buildHash: "591a47b7ee697e4b2fd756a50b5b647e",
|
|
11595
|
+
gitCommit: "e46370d",
|
|
11563
11596
|
dirty: false
|
|
11564
11597
|
};
|
|
11565
11598
|
|