@arbidocs/sdk 0.3.139 → 0.3.141

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.cjs CHANGED
@@ -3953,6 +3953,7 @@ async function streamSSE(response, callbacks = {}) {
3953
3953
  }
3954
3954
  if (data.context) {
3955
3955
  context = data.context;
3956
+ callbacks.onContextUpdate?.(data.context);
3956
3957
  }
3957
3958
  if (data.t != null) callbacks.onElapsedTime?.(data.t);
3958
3959
  callbacks.onComplete?.();
@@ -5566,6 +5567,7 @@ __export(notes_exports, {
5566
5567
  createNote: () => createNote,
5567
5568
  deleteNote: () => deleteNote,
5568
5569
  listNotes: () => listNotes,
5570
+ remindNote: () => remindNote,
5569
5571
  searchNotes: () => searchNotes,
5570
5572
  updateNote: () => updateNote
5571
5573
  });
@@ -5575,7 +5577,14 @@ async function createNote(arbi, body) {
5575
5577
  async function listNotes(arbi, options) {
5576
5578
  return requireData(
5577
5579
  await arbi.fetch.GET("/v1/notes/list", {
5578
- params: { query: { pinned_only: options?.pinnedOnly ?? false } }
5580
+ params: {
5581
+ query: {
5582
+ pinned_only: options?.pinnedOnly ?? false,
5583
+ date_from: options?.from,
5584
+ date_to: options?.to,
5585
+ dated_only: options?.datedOnly
5586
+ }
5587
+ }
5579
5588
  }),
5580
5589
  "Failed to list notes"
5581
5590
  );
@@ -5598,6 +5607,18 @@ async function deleteNote(arbi, memoryId) {
5598
5607
  });
5599
5608
  if (error) throw new Error("Failed to delete note");
5600
5609
  }
5610
+ async function remindNote(arbi, noteId, options = {}) {
5611
+ return requireData(
5612
+ await arbi.fetch.POST("/v1/notes/{note_ext_id}/remind", {
5613
+ params: { path: { note_ext_id: noteId } },
5614
+ body: {
5615
+ remind_at: options.remindAt ?? null,
5616
+ lead_minutes: options.leadMinutes ?? null
5617
+ }
5618
+ }),
5619
+ "Failed to set reminder"
5620
+ );
5621
+ }
5601
5622
 
5602
5623
  // src/arbi.ts
5603
5624
  var Arbi = class {
@@ -6078,10 +6099,15 @@ var Arbi = class {
6078
6099
  // ── Workspace notes ─────────────────────────────────────────────────
6079
6100
  notes = {
6080
6101
  create: (body) => createNote(this.requireClient(), body),
6102
+ /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
6103
+ * ordered by when they happened. */
6081
6104
  list: (options) => listNotes(this.requireClient(), options),
6082
6105
  search: (body) => searchNotes(this.requireClient(), body),
6083
6106
  update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
6084
- delete: (noteId) => deleteNote(this.requireClient(), noteId)
6107
+ delete: (noteId) => deleteNote(this.requireClient(), noteId),
6108
+ /** One-off reminder on a dated note: an explicit `remindAt`, or
6109
+ * `leadMinutes` before its date. */
6110
+ remind: (noteId, options = {}) => remindNote(this.requireClient(), noteId, options)
6085
6111
  };
6086
6112
  // ── Sessions ────────────────────────────────────────────────────────
6087
6113
  sessions = {