@arbidocs/sdk 0.3.140 → 0.3.142
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/dist/{browser-B9JRGjYZ.d.cts → browser-Cj68Nzgn.d.cts} +79 -12
- package/dist/{browser-B9JRGjYZ.d.ts → browser-Cj68Nzgn.d.ts} +79 -12
- package/dist/browser.cjs +27 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +27 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +36 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +36 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6131,13 +6131,29 @@ async function runTask(arbi, taskId) {
|
|
|
6131
6131
|
}
|
|
6132
6132
|
|
|
6133
6133
|
// src/operations/notes.ts
|
|
6134
|
+
var notes_exports = {};
|
|
6135
|
+
__export(notes_exports, {
|
|
6136
|
+
createNote: () => createNote,
|
|
6137
|
+
deleteNote: () => deleteNote,
|
|
6138
|
+
listNotes: () => listNotes,
|
|
6139
|
+
remindNote: () => remindNote,
|
|
6140
|
+
searchNotes: () => searchNotes,
|
|
6141
|
+
updateNote: () => updateNote
|
|
6142
|
+
});
|
|
6134
6143
|
async function createNote(arbi, body) {
|
|
6135
6144
|
return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
|
|
6136
6145
|
}
|
|
6137
6146
|
async function listNotes(arbi, options) {
|
|
6138
6147
|
return requireData(
|
|
6139
6148
|
await arbi.fetch.GET("/v1/notes/list", {
|
|
6140
|
-
params: {
|
|
6149
|
+
params: {
|
|
6150
|
+
query: {
|
|
6151
|
+
pinned_only: options?.pinnedOnly ?? false,
|
|
6152
|
+
date_from: options?.from,
|
|
6153
|
+
date_to: options?.to,
|
|
6154
|
+
dated_only: options?.datedOnly
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6141
6157
|
}),
|
|
6142
6158
|
"Failed to list notes"
|
|
6143
6159
|
);
|
|
@@ -6160,6 +6176,18 @@ async function deleteNote(arbi, memoryId) {
|
|
|
6160
6176
|
});
|
|
6161
6177
|
if (error) throw new Error("Failed to delete note");
|
|
6162
6178
|
}
|
|
6179
|
+
async function remindNote(arbi, noteId, options = {}) {
|
|
6180
|
+
return requireData(
|
|
6181
|
+
await arbi.fetch.POST("/v1/notes/{note_ext_id}/remind", {
|
|
6182
|
+
params: { path: { note_ext_id: noteId } },
|
|
6183
|
+
body: {
|
|
6184
|
+
remind_at: options.remindAt ?? null,
|
|
6185
|
+
lead_minutes: options.leadMinutes ?? null
|
|
6186
|
+
}
|
|
6187
|
+
}),
|
|
6188
|
+
"Failed to set reminder"
|
|
6189
|
+
);
|
|
6190
|
+
}
|
|
6163
6191
|
|
|
6164
6192
|
// src/arbi.ts
|
|
6165
6193
|
var Arbi = class {
|
|
@@ -6640,10 +6668,15 @@ var Arbi = class {
|
|
|
6640
6668
|
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6641
6669
|
notes = {
|
|
6642
6670
|
create: (body) => createNote(this.requireClient(), body),
|
|
6671
|
+
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6672
|
+
* ordered by when they happened. */
|
|
6643
6673
|
list: (options) => listNotes(this.requireClient(), options),
|
|
6644
6674
|
search: (body) => searchNotes(this.requireClient(), body),
|
|
6645
6675
|
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6646
|
-
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6676
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId),
|
|
6677
|
+
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6678
|
+
* `leadMinutes` before its date. */
|
|
6679
|
+
remind: (noteId, options = {}) => remindNote(this.requireClient(), noteId, options)
|
|
6647
6680
|
};
|
|
6648
6681
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6649
6682
|
sessions = {
|
|
@@ -7837,6 +7870,7 @@ exports.getErrorMessage = getErrorMessage;
|
|
|
7837
7870
|
exports.getRawWorkspaceKey = getRawWorkspaceKey;
|
|
7838
7871
|
exports.health = health_exports;
|
|
7839
7872
|
exports.listen = listen_exports;
|
|
7873
|
+
exports.notes = notes_exports;
|
|
7840
7874
|
exports.parseSSEEvents = parseSSEEvents;
|
|
7841
7875
|
exports.parseSlashCommand = parseSlashCommand;
|
|
7842
7876
|
exports.parseSlashTokenInProgress = parseSlashTokenInProgress;
|