@soat/sdk 0.46.0 → 0.48.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.mjs CHANGED
@@ -713,7 +713,7 @@ var Actors = class {
713
713
  /**
714
714
  * Merge actor tags
715
715
  *
716
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
716
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
717
717
  */
718
718
  static mergeActorTags(options) {
719
719
  return (options.client ?? client).patch({
@@ -1474,7 +1474,7 @@ var Conversations = class {
1474
1474
  /**
1475
1475
  * Merge conversation tags
1476
1476
  *
1477
- * Merges provided tags with existing tags
1477
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
1478
1478
  */
1479
1479
  static mergeConversationTags(options) {
1480
1480
  return (options.client ?? client).patch({
@@ -1668,7 +1668,7 @@ var Documents = class {
1668
1668
  /**
1669
1669
  * Merge document tags
1670
1670
  *
1671
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
1671
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
1672
1672
  */
1673
1673
  static mergeDocumentTags(options) {
1674
1674
  return (options.client ?? client).patch({
@@ -2208,7 +2208,7 @@ var Files = class {
2208
2208
  /**
2209
2209
  * Merge file tags
2210
2210
  *
2211
- * Merges provided tags with existing tags
2211
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
2212
2212
  */
2213
2213
  static mergeFileTags(options) {
2214
2214
  return (options.client ?? client).patch({
@@ -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, or memory IDs/tags. At least one of `query`, `document_paths`, `document_ids`, `memory_ids`, or `memory_tags` must be provided.
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 into the memory's 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 into the memory entry's 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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.46.0",
3
+ "version": "0.48.0",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",