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