@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.cjs CHANGED
@@ -714,7 +714,7 @@ var Actors = class {
714
714
  /**
715
715
  * Merge actor tags
716
716
  *
717
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
717
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
718
718
  */
719
719
  static mergeActorTags(options) {
720
720
  return (options.client ?? client).patch({
@@ -1475,7 +1475,7 @@ var Conversations = class {
1475
1475
  /**
1476
1476
  * Merge conversation tags
1477
1477
  *
1478
- * Merges provided tags with existing tags
1478
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
1479
1479
  */
1480
1480
  static mergeConversationTags(options) {
1481
1481
  return (options.client ?? client).patch({
@@ -1669,7 +1669,7 @@ var Documents = class {
1669
1669
  /**
1670
1670
  * Merge document tags
1671
1671
  *
1672
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
1672
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
1673
1673
  */
1674
1674
  static mergeDocumentTags(options) {
1675
1675
  return (options.client ?? client).patch({
@@ -2209,7 +2209,7 @@ var Files = class {
2209
2209
  /**
2210
2210
  * Merge file tags
2211
2211
  *
2212
- * Merges provided tags with existing tags
2212
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
2213
2213
  */
2214
2214
  static mergeFileTags(options) {
2215
2215
  return (options.client ?? client).patch({
@@ -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, or memory IDs/tags. At least one of `query`, `document_paths`, `document_ids`, `memory_ids`, or `memory_tags` must be provided.
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 into the memory's 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 into the memory entry's 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
  /**