@naturali/sdk 0.127.1 → 0.127.3
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 +87 -5
- package/dist/index.d.cts +520 -203
- package/dist/index.d.mts +520 -203
- package/dist/index.mjs +87 -5
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -707,7 +707,7 @@ var Actors = class {
|
|
|
707
707
|
/**
|
|
708
708
|
* Merge actor tags
|
|
709
709
|
*
|
|
710
|
-
* Merges provided tags
|
|
710
|
+
* Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
|
|
711
711
|
*/
|
|
712
712
|
static mergeActorTags(options) {
|
|
713
713
|
return (options.client ?? client).patch({
|
|
@@ -1925,7 +1925,7 @@ var Conversations = class {
|
|
|
1925
1925
|
/**
|
|
1926
1926
|
* Merge conversation tags
|
|
1927
1927
|
*
|
|
1928
|
-
* Merges provided tags
|
|
1928
|
+
* Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
|
|
1929
1929
|
*/
|
|
1930
1930
|
static mergeConversationTags(options) {
|
|
1931
1931
|
return (options.client ?? client).patch({
|
|
@@ -2095,7 +2095,7 @@ var Documents = class {
|
|
|
2095
2095
|
/**
|
|
2096
2096
|
* Merge document tags
|
|
2097
2097
|
*
|
|
2098
|
-
* Merges provided tags
|
|
2098
|
+
* Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
|
|
2099
2099
|
*/
|
|
2100
2100
|
static mergeDocumentTags(options) {
|
|
2101
2101
|
return (options.client ?? client).patch({
|
|
@@ -2605,7 +2605,7 @@ var Files = class {
|
|
|
2605
2605
|
/**
|
|
2606
2606
|
* Merge file tags
|
|
2607
2607
|
*
|
|
2608
|
-
* Merges provided tags
|
|
2608
|
+
* Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
|
|
2609
2609
|
*/
|
|
2610
2610
|
static mergeFileTags(options) {
|
|
2611
2611
|
return (options.client ?? client).patch({
|
|
@@ -3027,7 +3027,7 @@ var Knowledge = class {
|
|
|
3027
3027
|
/**
|
|
3028
3028
|
* Search knowledge
|
|
3029
3029
|
*
|
|
3030
|
-
* Searches across documents and memory entries using
|
|
3030
|
+
* Searches across documents and memory entries using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
|
|
3031
3031
|
*/
|
|
3032
3032
|
static searchKnowledge(options) {
|
|
3033
3033
|
return (options.client ?? client).post({
|
|
@@ -3104,6 +3104,47 @@ var Memories = class {
|
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
}
|
|
3107
|
+
/**
|
|
3108
|
+
* Get memory tags
|
|
3109
|
+
*
|
|
3110
|
+
* Returns all tags attached to the memory
|
|
3111
|
+
*/
|
|
3112
|
+
static getMemoryTags(options) {
|
|
3113
|
+
return (options.client ?? client).get({
|
|
3114
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3115
|
+
...options
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* Merge memory tags
|
|
3120
|
+
*
|
|
3121
|
+
* Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
|
|
3122
|
+
*/
|
|
3123
|
+
static mergeMemoryTags(options) {
|
|
3124
|
+
return (options.client ?? client).patch({
|
|
3125
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3126
|
+
...options,
|
|
3127
|
+
headers: {
|
|
3128
|
+
"Content-Type": "application/json",
|
|
3129
|
+
...options.headers
|
|
3130
|
+
}
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* Replace memory tags
|
|
3135
|
+
*
|
|
3136
|
+
* Replaces all tags on the memory with the provided tags (not merged)
|
|
3137
|
+
*/
|
|
3138
|
+
static replaceMemoryTags(options) {
|
|
3139
|
+
return (options.client ?? client).put({
|
|
3140
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3141
|
+
...options,
|
|
3142
|
+
headers: {
|
|
3143
|
+
"Content-Type": "application/json",
|
|
3144
|
+
...options.headers
|
|
3145
|
+
}
|
|
3146
|
+
});
|
|
3147
|
+
}
|
|
3107
3148
|
};
|
|
3108
3149
|
var MemoryEntries = class {
|
|
3109
3150
|
/**
|
|
@@ -3169,6 +3210,47 @@ var MemoryEntries = class {
|
|
|
3169
3210
|
}
|
|
3170
3211
|
});
|
|
3171
3212
|
}
|
|
3213
|
+
/**
|
|
3214
|
+
* Get memory entry tags
|
|
3215
|
+
*
|
|
3216
|
+
* Returns all tags attached to the memory entry
|
|
3217
|
+
*/
|
|
3218
|
+
static getMemoryEntryTags(options) {
|
|
3219
|
+
return (options.client ?? client).get({
|
|
3220
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3221
|
+
...options
|
|
3222
|
+
});
|
|
3223
|
+
}
|
|
3224
|
+
/**
|
|
3225
|
+
* Merge memory entry tags
|
|
3226
|
+
*
|
|
3227
|
+
* Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
|
|
3228
|
+
*/
|
|
3229
|
+
static mergeMemoryEntryTags(options) {
|
|
3230
|
+
return (options.client ?? client).patch({
|
|
3231
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3232
|
+
...options,
|
|
3233
|
+
headers: {
|
|
3234
|
+
"Content-Type": "application/json",
|
|
3235
|
+
...options.headers
|
|
3236
|
+
}
|
|
3237
|
+
});
|
|
3238
|
+
}
|
|
3239
|
+
/**
|
|
3240
|
+
* Replace memory entry tags
|
|
3241
|
+
*
|
|
3242
|
+
* Replaces all tags on the memory entry with the provided tags (not merged)
|
|
3243
|
+
*/
|
|
3244
|
+
static replaceMemoryEntryTags(options) {
|
|
3245
|
+
return (options.client ?? client).put({
|
|
3246
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3247
|
+
...options,
|
|
3248
|
+
headers: {
|
|
3249
|
+
"Content-Type": "application/json",
|
|
3250
|
+
...options.headers
|
|
3251
|
+
}
|
|
3252
|
+
});
|
|
3253
|
+
}
|
|
3172
3254
|
};
|
|
3173
3255
|
var ModelRoutes = class {
|
|
3174
3256
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.127.
|
|
3
|
+
"version": "0.127.3",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.127.
|
|
40
|
+
"@naturali/api": "0.127.3"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|