@soat/sdk 0.46.0 → 0.47.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/dist/index.cjs +83 -1
- package/dist/index.d.cts +375 -161
- package/dist/index.d.mts +375 -161
- package/dist/index.mjs +83 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2631,7 +2631,7 @@ var Knowledge = class {
|
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Search knowledge
|
|
2633
2633
|
*
|
|
2634
|
-
* Searches across documents and memory entries using semantic search, file paths, document IDs,
|
|
2634
|
+
* Searches across documents and memory entries using semantic search, file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
|
|
2635
2635
|
*/
|
|
2636
2636
|
static searchKnowledge(options) {
|
|
2637
2637
|
return (options.client ?? client).post({
|
|
@@ -2708,6 +2708,47 @@ var Memories = class {
|
|
|
2708
2708
|
}
|
|
2709
2709
|
});
|
|
2710
2710
|
}
|
|
2711
|
+
/**
|
|
2712
|
+
* Get memory tags
|
|
2713
|
+
*
|
|
2714
|
+
* Returns all tags attached to the memory
|
|
2715
|
+
*/
|
|
2716
|
+
static getMemoryTags(options) {
|
|
2717
|
+
return (options.client ?? client).get({
|
|
2718
|
+
url: "/api/v1/memories/{memory_id}/tags",
|
|
2719
|
+
...options
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
/**
|
|
2723
|
+
* Merge memory tags
|
|
2724
|
+
*
|
|
2725
|
+
* Merges provided tags with existing tags (existing tags are preserved unless overridden)
|
|
2726
|
+
*/
|
|
2727
|
+
static mergeMemoryTags(options) {
|
|
2728
|
+
return (options.client ?? client).patch({
|
|
2729
|
+
url: "/api/v1/memories/{memory_id}/tags",
|
|
2730
|
+
...options,
|
|
2731
|
+
headers: {
|
|
2732
|
+
"Content-Type": "application/json",
|
|
2733
|
+
...options.headers
|
|
2734
|
+
}
|
|
2735
|
+
});
|
|
2736
|
+
}
|
|
2737
|
+
/**
|
|
2738
|
+
* Replace memory tags
|
|
2739
|
+
*
|
|
2740
|
+
* Replaces all tags on the memory with the provided tags (not merged)
|
|
2741
|
+
*/
|
|
2742
|
+
static replaceMemoryTags(options) {
|
|
2743
|
+
return (options.client ?? client).put({
|
|
2744
|
+
url: "/api/v1/memories/{memory_id}/tags",
|
|
2745
|
+
...options,
|
|
2746
|
+
headers: {
|
|
2747
|
+
"Content-Type": "application/json",
|
|
2748
|
+
...options.headers
|
|
2749
|
+
}
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2711
2752
|
};
|
|
2712
2753
|
var MemoryEntries = class {
|
|
2713
2754
|
/**
|
|
@@ -2773,6 +2814,47 @@ var MemoryEntries = class {
|
|
|
2773
2814
|
}
|
|
2774
2815
|
});
|
|
2775
2816
|
}
|
|
2817
|
+
/**
|
|
2818
|
+
* Get memory entry tags
|
|
2819
|
+
*
|
|
2820
|
+
* Returns all tags attached to the memory entry
|
|
2821
|
+
*/
|
|
2822
|
+
static getMemoryEntryTags(options) {
|
|
2823
|
+
return (options.client ?? client).get({
|
|
2824
|
+
url: "/api/v1/memory-entries/{entry_id}/tags",
|
|
2825
|
+
...options
|
|
2826
|
+
});
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Merge memory entry tags
|
|
2830
|
+
*
|
|
2831
|
+
* Merges provided tags with existing tags (existing tags are preserved unless overridden)
|
|
2832
|
+
*/
|
|
2833
|
+
static mergeMemoryEntryTags(options) {
|
|
2834
|
+
return (options.client ?? client).patch({
|
|
2835
|
+
url: "/api/v1/memory-entries/{entry_id}/tags",
|
|
2836
|
+
...options,
|
|
2837
|
+
headers: {
|
|
2838
|
+
"Content-Type": "application/json",
|
|
2839
|
+
...options.headers
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* Replace memory entry tags
|
|
2845
|
+
*
|
|
2846
|
+
* Replaces all tags on the memory entry with the provided tags (not merged)
|
|
2847
|
+
*/
|
|
2848
|
+
static replaceMemoryEntryTags(options) {
|
|
2849
|
+
return (options.client ?? client).put({
|
|
2850
|
+
url: "/api/v1/memory-entries/{entry_id}/tags",
|
|
2851
|
+
...options,
|
|
2852
|
+
headers: {
|
|
2853
|
+
"Content-Type": "application/json",
|
|
2854
|
+
...options.headers
|
|
2855
|
+
}
|
|
2856
|
+
});
|
|
2857
|
+
}
|
|
2776
2858
|
};
|
|
2777
2859
|
var ModelRoutes = class {
|
|
2778
2860
|
/**
|