@arbidocs/sdk 0.3.138 → 0.3.139
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-DSk5KK4x.d.cts → browser-CygvmtPQ.d.cts} +109 -132
- package/dist/{browser-DSk5KK4x.d.ts → browser-CygvmtPQ.d.ts} +109 -132
- package/dist/browser.cjs +31 -34
- 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 +31 -34
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +23 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +23 -26
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6126,38 +6126,35 @@ async function runTask(arbi, taskId) {
|
|
|
6126
6126
|
);
|
|
6127
6127
|
}
|
|
6128
6128
|
|
|
6129
|
-
// src/operations/
|
|
6130
|
-
async function
|
|
6131
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
6129
|
+
// src/operations/notes.ts
|
|
6130
|
+
async function createNote(arbi, body) {
|
|
6131
|
+
return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
|
|
6132
6132
|
}
|
|
6133
|
-
async function
|
|
6133
|
+
async function listNotes(arbi, options) {
|
|
6134
6134
|
return requireData(
|
|
6135
|
-
await arbi.fetch.GET("/v1/
|
|
6135
|
+
await arbi.fetch.GET("/v1/notes/list", {
|
|
6136
6136
|
params: { query: { pinned_only: options?.pinnedOnly ?? false } }
|
|
6137
6137
|
}),
|
|
6138
|
-
"Failed to list
|
|
6138
|
+
"Failed to list notes"
|
|
6139
6139
|
);
|
|
6140
6140
|
}
|
|
6141
|
-
async function
|
|
6142
|
-
return requireData(
|
|
6143
|
-
await arbi.fetch.POST("/v1/memory/search", { body }),
|
|
6144
|
-
"Failed to search memories"
|
|
6145
|
-
);
|
|
6141
|
+
async function searchNotes(arbi, body) {
|
|
6142
|
+
return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
|
|
6146
6143
|
}
|
|
6147
|
-
async function
|
|
6144
|
+
async function updateNote(arbi, memoryId, body) {
|
|
6148
6145
|
return requireData(
|
|
6149
|
-
await arbi.fetch.PATCH("/v1/
|
|
6150
|
-
params: { path: {
|
|
6146
|
+
await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
|
|
6147
|
+
params: { path: { note_ext_id: memoryId } },
|
|
6151
6148
|
body
|
|
6152
6149
|
}),
|
|
6153
|
-
"Failed to update
|
|
6150
|
+
"Failed to update note"
|
|
6154
6151
|
);
|
|
6155
6152
|
}
|
|
6156
|
-
async function
|
|
6157
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
6158
|
-
params: { path: {
|
|
6153
|
+
async function deleteNote(arbi, memoryId) {
|
|
6154
|
+
const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
|
|
6155
|
+
params: { path: { note_ext_id: memoryId } }
|
|
6159
6156
|
});
|
|
6160
|
-
if (error) throw new Error("Failed to delete
|
|
6157
|
+
if (error) throw new Error("Failed to delete note");
|
|
6161
6158
|
}
|
|
6162
6159
|
|
|
6163
6160
|
// src/arbi.ts
|
|
@@ -6636,13 +6633,13 @@ var Arbi = class {
|
|
|
6636
6633
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6637
6634
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6638
6635
|
};
|
|
6639
|
-
// ── Workspace
|
|
6640
|
-
|
|
6641
|
-
create: (body) =>
|
|
6642
|
-
list: (options) =>
|
|
6643
|
-
search: (body) =>
|
|
6644
|
-
update: (
|
|
6645
|
-
delete: (
|
|
6636
|
+
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6637
|
+
notes = {
|
|
6638
|
+
create: (body) => createNote(this.requireClient(), body),
|
|
6639
|
+
list: (options) => listNotes(this.requireClient(), options),
|
|
6640
|
+
search: (body) => searchNotes(this.requireClient(), body),
|
|
6641
|
+
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6642
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6646
6643
|
};
|
|
6647
6644
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6648
6645
|
sessions = {
|