@naturali/sdk 0.127.1 → 0.127.2

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
@@ -708,7 +708,7 @@ var Actors = class {
708
708
  /**
709
709
  * Merge actor tags
710
710
  *
711
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
711
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
712
712
  */
713
713
  static mergeActorTags(options) {
714
714
  return (options.client ?? client).patch({
@@ -1926,7 +1926,7 @@ var Conversations = class {
1926
1926
  /**
1927
1927
  * Merge conversation tags
1928
1928
  *
1929
- * Merges provided tags with existing tags
1929
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
1930
1930
  */
1931
1931
  static mergeConversationTags(options) {
1932
1932
  return (options.client ?? client).patch({
@@ -2096,7 +2096,7 @@ var Documents = class {
2096
2096
  /**
2097
2097
  * Merge document tags
2098
2098
  *
2099
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
2099
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
2100
2100
  */
2101
2101
  static mergeDocumentTags(options) {
2102
2102
  return (options.client ?? client).patch({
@@ -2606,7 +2606,7 @@ var Files = class {
2606
2606
  /**
2607
2607
  * Merge file tags
2608
2608
  *
2609
- * Merges provided tags with existing tags
2609
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
2610
2610
  */
2611
2611
  static mergeFileTags(options) {
2612
2612
  return (options.client ?? client).patch({
@@ -3028,7 +3028,7 @@ var Knowledge = class {
3028
3028
  /**
3029
3029
  * Search knowledge
3030
3030
  *
3031
- * 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.
3031
+ * 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.
3032
3032
  */
3033
3033
  static searchKnowledge(options) {
3034
3034
  return (options.client ?? client).post({
@@ -3105,6 +3105,47 @@ var Memories = class {
3105
3105
  }
3106
3106
  });
3107
3107
  }
3108
+ /**
3109
+ * Get memory tags
3110
+ *
3111
+ * Returns all tags attached to the memory
3112
+ */
3113
+ static getMemoryTags(options) {
3114
+ return (options.client ?? client).get({
3115
+ url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
3116
+ ...options
3117
+ });
3118
+ }
3119
+ /**
3120
+ * Merge memory tags
3121
+ *
3122
+ * Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
3123
+ */
3124
+ static mergeMemoryTags(options) {
3125
+ return (options.client ?? client).patch({
3126
+ url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
3127
+ ...options,
3128
+ headers: {
3129
+ "Content-Type": "application/json",
3130
+ ...options.headers
3131
+ }
3132
+ });
3133
+ }
3134
+ /**
3135
+ * Replace memory tags
3136
+ *
3137
+ * Replaces all tags on the memory with the provided tags (not merged)
3138
+ */
3139
+ static replaceMemoryTags(options) {
3140
+ return (options.client ?? client).put({
3141
+ url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
3142
+ ...options,
3143
+ headers: {
3144
+ "Content-Type": "application/json",
3145
+ ...options.headers
3146
+ }
3147
+ });
3148
+ }
3108
3149
  };
3109
3150
  var MemoryEntries = class {
3110
3151
  /**
@@ -3170,6 +3211,47 @@ var MemoryEntries = class {
3170
3211
  }
3171
3212
  });
3172
3213
  }
3214
+ /**
3215
+ * Get memory entry tags
3216
+ *
3217
+ * Returns all tags attached to the memory entry
3218
+ */
3219
+ static getMemoryEntryTags(options) {
3220
+ return (options.client ?? client).get({
3221
+ url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
3222
+ ...options
3223
+ });
3224
+ }
3225
+ /**
3226
+ * Merge memory entry tags
3227
+ *
3228
+ * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
3229
+ */
3230
+ static mergeMemoryEntryTags(options) {
3231
+ return (options.client ?? client).patch({
3232
+ url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
3233
+ ...options,
3234
+ headers: {
3235
+ "Content-Type": "application/json",
3236
+ ...options.headers
3237
+ }
3238
+ });
3239
+ }
3240
+ /**
3241
+ * Replace memory entry tags
3242
+ *
3243
+ * Replaces all tags on the memory entry with the provided tags (not merged)
3244
+ */
3245
+ static replaceMemoryEntryTags(options) {
3246
+ return (options.client ?? client).put({
3247
+ url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
3248
+ ...options,
3249
+ headers: {
3250
+ "Content-Type": "application/json",
3251
+ ...options.headers
3252
+ }
3253
+ });
3254
+ }
3173
3255
  };
3174
3256
  var ModelRoutes = class {
3175
3257
  /**