@naturali/cli 0.127.0 → 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.mjs +320 -34
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.127.
|
|
17
|
+
var version = "0.127.2";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -725,7 +725,7 @@ var Actors = class {
|
|
|
725
725
|
/**
|
|
726
726
|
* Merge actor tags
|
|
727
727
|
*
|
|
728
|
-
* Merges provided tags
|
|
728
|
+
* Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
|
|
729
729
|
*/
|
|
730
730
|
static mergeActorTags(options) {
|
|
731
731
|
return (options.client ?? client).patch({
|
|
@@ -1943,7 +1943,7 @@ var Conversations = class {
|
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Merge conversation tags
|
|
1945
1945
|
*
|
|
1946
|
-
* Merges provided tags
|
|
1946
|
+
* Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
|
|
1947
1947
|
*/
|
|
1948
1948
|
static mergeConversationTags(options) {
|
|
1949
1949
|
return (options.client ?? client).patch({
|
|
@@ -2113,7 +2113,7 @@ var Documents = class {
|
|
|
2113
2113
|
/**
|
|
2114
2114
|
* Merge document tags
|
|
2115
2115
|
*
|
|
2116
|
-
* Merges provided tags
|
|
2116
|
+
* Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
|
|
2117
2117
|
*/
|
|
2118
2118
|
static mergeDocumentTags(options) {
|
|
2119
2119
|
return (options.client ?? client).patch({
|
|
@@ -2623,7 +2623,7 @@ var Files = class {
|
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Merge file tags
|
|
2625
2625
|
*
|
|
2626
|
-
* Merges provided tags
|
|
2626
|
+
* Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
|
|
2627
2627
|
*/
|
|
2628
2628
|
static mergeFileTags(options) {
|
|
2629
2629
|
return (options.client ?? client).patch({
|
|
@@ -3045,7 +3045,7 @@ var Knowledge = class {
|
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Search knowledge
|
|
3047
3047
|
*
|
|
3048
|
-
* Searches across documents and memory entries using semantic search, file paths, document IDs,
|
|
3048
|
+
* 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.
|
|
3049
3049
|
*/
|
|
3050
3050
|
static searchKnowledge(options) {
|
|
3051
3051
|
return (options.client ?? client).post({
|
|
@@ -3122,6 +3122,47 @@ var Memories = class {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
});
|
|
3124
3124
|
}
|
|
3125
|
+
/**
|
|
3126
|
+
* Get memory tags
|
|
3127
|
+
*
|
|
3128
|
+
* Returns all tags attached to the memory
|
|
3129
|
+
*/
|
|
3130
|
+
static getMemoryTags(options) {
|
|
3131
|
+
return (options.client ?? client).get({
|
|
3132
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3133
|
+
...options
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
/**
|
|
3137
|
+
* Merge memory tags
|
|
3138
|
+
*
|
|
3139
|
+
* Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
|
|
3140
|
+
*/
|
|
3141
|
+
static mergeMemoryTags(options) {
|
|
3142
|
+
return (options.client ?? client).patch({
|
|
3143
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3144
|
+
...options,
|
|
3145
|
+
headers: {
|
|
3146
|
+
"Content-Type": "application/json",
|
|
3147
|
+
...options.headers
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* Replace memory tags
|
|
3153
|
+
*
|
|
3154
|
+
* Replaces all tags on the memory with the provided tags (not merged)
|
|
3155
|
+
*/
|
|
3156
|
+
static replaceMemoryTags(options) {
|
|
3157
|
+
return (options.client ?? client).put({
|
|
3158
|
+
url: "/v1/projects/{project_id}/memories/{memory_id}/tags",
|
|
3159
|
+
...options,
|
|
3160
|
+
headers: {
|
|
3161
|
+
"Content-Type": "application/json",
|
|
3162
|
+
...options.headers
|
|
3163
|
+
}
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3125
3166
|
};
|
|
3126
3167
|
var MemoryEntries = class {
|
|
3127
3168
|
/**
|
|
@@ -3187,6 +3228,47 @@ var MemoryEntries = class {
|
|
|
3187
3228
|
}
|
|
3188
3229
|
});
|
|
3189
3230
|
}
|
|
3231
|
+
/**
|
|
3232
|
+
* Get memory entry tags
|
|
3233
|
+
*
|
|
3234
|
+
* Returns all tags attached to the memory entry
|
|
3235
|
+
*/
|
|
3236
|
+
static getMemoryEntryTags(options) {
|
|
3237
|
+
return (options.client ?? client).get({
|
|
3238
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3239
|
+
...options
|
|
3240
|
+
});
|
|
3241
|
+
}
|
|
3242
|
+
/**
|
|
3243
|
+
* Merge memory entry tags
|
|
3244
|
+
*
|
|
3245
|
+
* Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
|
|
3246
|
+
*/
|
|
3247
|
+
static mergeMemoryEntryTags(options) {
|
|
3248
|
+
return (options.client ?? client).patch({
|
|
3249
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3250
|
+
...options,
|
|
3251
|
+
headers: {
|
|
3252
|
+
"Content-Type": "application/json",
|
|
3253
|
+
...options.headers
|
|
3254
|
+
}
|
|
3255
|
+
});
|
|
3256
|
+
}
|
|
3257
|
+
/**
|
|
3258
|
+
* Replace memory entry tags
|
|
3259
|
+
*
|
|
3260
|
+
* Replaces all tags on the memory entry with the provided tags (not merged)
|
|
3261
|
+
*/
|
|
3262
|
+
static replaceMemoryEntryTags(options) {
|
|
3263
|
+
return (options.client ?? client).put({
|
|
3264
|
+
url: "/v1/projects/{project_id}/memory-entries/{entry_id}/tags",
|
|
3265
|
+
...options,
|
|
3266
|
+
headers: {
|
|
3267
|
+
"Content-Type": "application/json",
|
|
3268
|
+
...options.headers
|
|
3269
|
+
}
|
|
3270
|
+
});
|
|
3271
|
+
}
|
|
3190
3272
|
};
|
|
3191
3273
|
var ModelRoutes = class {
|
|
3192
3274
|
/**
|
|
@@ -5405,6 +5487,7 @@ const routes = {
|
|
|
5405
5487
|
"agent_id",
|
|
5406
5488
|
"chat_id",
|
|
5407
5489
|
"conversation_id",
|
|
5490
|
+
"tags",
|
|
5408
5491
|
"limit",
|
|
5409
5492
|
"offset"
|
|
5410
5493
|
],
|
|
@@ -5451,6 +5534,13 @@ const routes = {
|
|
|
5451
5534
|
"type": "string",
|
|
5452
5535
|
"in": "query"
|
|
5453
5536
|
},
|
|
5537
|
+
{
|
|
5538
|
+
"name": "tags",
|
|
5539
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
5540
|
+
"required": false,
|
|
5541
|
+
"type": "array",
|
|
5542
|
+
"in": "query"
|
|
5543
|
+
},
|
|
5454
5544
|
{
|
|
5455
5545
|
"name": "limit",
|
|
5456
5546
|
"description": "Maximum number of results to return",
|
|
@@ -5602,7 +5692,7 @@ const routes = {
|
|
|
5602
5692
|
},
|
|
5603
5693
|
{
|
|
5604
5694
|
"name": "tags",
|
|
5605
|
-
"description": "",
|
|
5695
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and knowledge search.",
|
|
5606
5696
|
"required": false,
|
|
5607
5697
|
"type": "object",
|
|
5608
5698
|
"in": "body"
|
|
@@ -5678,7 +5768,7 @@ const routes = {
|
|
|
5678
5768
|
"merge-actor-tags": {
|
|
5679
5769
|
serviceClass: "Actors",
|
|
5680
5770
|
operationId: "mergeActorTags",
|
|
5681
|
-
description: "Merges provided tags
|
|
5771
|
+
description: "Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)",
|
|
5682
5772
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/actors",
|
|
5683
5773
|
httpMethod: "patch",
|
|
5684
5774
|
pathParams: ["project_id", "actor_id"],
|
|
@@ -6256,6 +6346,13 @@ const routes = {
|
|
|
6256
6346
|
"type": "object",
|
|
6257
6347
|
"in": "body"
|
|
6258
6348
|
},
|
|
6349
|
+
{
|
|
6350
|
+
"name": "prompt_caching",
|
|
6351
|
+
"description": "Prompt caching for this agent's turns. `{\"enabled\": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.",
|
|
6352
|
+
"required": false,
|
|
6353
|
+
"type": "object",
|
|
6354
|
+
"in": "body"
|
|
6355
|
+
},
|
|
6259
6356
|
{
|
|
6260
6357
|
"name": "max_context_messages",
|
|
6261
6358
|
"description": "Maximum number of recent messages included in the context window. Null means no limit.",
|
|
@@ -6450,6 +6547,13 @@ const routes = {
|
|
|
6450
6547
|
"type": "object",
|
|
6451
6548
|
"in": "body"
|
|
6452
6549
|
},
|
|
6550
|
+
{
|
|
6551
|
+
"name": "prompt_caching",
|
|
6552
|
+
"description": "Prompt caching for this agent's turns. `{\"enabled\": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.",
|
|
6553
|
+
"required": false,
|
|
6554
|
+
"type": "object",
|
|
6555
|
+
"in": "body"
|
|
6556
|
+
},
|
|
6453
6557
|
{
|
|
6454
6558
|
"name": "max_context_messages",
|
|
6455
6559
|
"description": "Maximum number of recent messages included in the context window. Null means no limit.",
|
|
@@ -6622,6 +6726,13 @@ const routes = {
|
|
|
6622
6726
|
"type": "object",
|
|
6623
6727
|
"in": "body"
|
|
6624
6728
|
},
|
|
6729
|
+
{
|
|
6730
|
+
"name": "prompt_caching",
|
|
6731
|
+
"description": "Prompt caching for this agent's turns. `{\"enabled\": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.",
|
|
6732
|
+
"required": false,
|
|
6733
|
+
"type": "object",
|
|
6734
|
+
"in": "body"
|
|
6735
|
+
},
|
|
6625
6736
|
{
|
|
6626
6737
|
"name": "max_context_messages",
|
|
6627
6738
|
"description": "Maximum number of recent messages included in the context window. Null means no limit.",
|
|
@@ -6800,7 +6911,7 @@ const routes = {
|
|
|
6800
6911
|
},
|
|
6801
6912
|
{
|
|
6802
6913
|
"name": "knowledge_config",
|
|
6803
|
-
"description": "Per-generation knowledge retrieval override. Array filters (memory_ids,
|
|
6914
|
+
"description": "Per-generation knowledge retrieval override. Array filters (memory_ids, document_ids, document_paths) are unioned with the agent's stored knowledge_config; `tags` pairs are merged with the override winning per key; scalar fields (min_score, limit) use the per-generation value when present.",
|
|
6804
6915
|
"required": false,
|
|
6805
6916
|
"type": "object",
|
|
6806
6917
|
"in": "body"
|
|
@@ -8835,6 +8946,7 @@ const routes = {
|
|
|
8835
8946
|
pathParams: ["project_id"],
|
|
8836
8947
|
queryParams: [
|
|
8837
8948
|
"actor_id",
|
|
8949
|
+
"tags",
|
|
8838
8950
|
"limit",
|
|
8839
8951
|
"offset"
|
|
8840
8952
|
],
|
|
@@ -8853,6 +8965,13 @@ const routes = {
|
|
|
8853
8965
|
"type": "string",
|
|
8854
8966
|
"in": "query"
|
|
8855
8967
|
},
|
|
8968
|
+
{
|
|
8969
|
+
"name": "tags",
|
|
8970
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
8971
|
+
"required": false,
|
|
8972
|
+
"type": "array",
|
|
8973
|
+
"in": "query"
|
|
8974
|
+
},
|
|
8856
8975
|
{
|
|
8857
8976
|
"name": "limit",
|
|
8858
8977
|
"description": "Maximum number of results to return",
|
|
@@ -9233,7 +9352,7 @@ const routes = {
|
|
|
9233
9352
|
"merge-conversation-tags": {
|
|
9234
9353
|
serviceClass: "Conversations",
|
|
9235
9354
|
operationId: "mergeConversationTags",
|
|
9236
|
-
description: "Merges provided tags
|
|
9355
|
+
description: "Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)",
|
|
9237
9356
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/conversations",
|
|
9238
9357
|
httpMethod: "patch",
|
|
9239
9358
|
pathParams: ["project_id", "conversation_id"],
|
|
@@ -9261,6 +9380,7 @@ const routes = {
|
|
|
9261
9380
|
pathParams: ["project_id"],
|
|
9262
9381
|
queryParams: [
|
|
9263
9382
|
"path_prefix",
|
|
9383
|
+
"tags",
|
|
9264
9384
|
"limit",
|
|
9265
9385
|
"offset"
|
|
9266
9386
|
],
|
|
@@ -9279,6 +9399,13 @@ const routes = {
|
|
|
9279
9399
|
"type": "string",
|
|
9280
9400
|
"in": "query"
|
|
9281
9401
|
},
|
|
9402
|
+
{
|
|
9403
|
+
"name": "tags",
|
|
9404
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
9405
|
+
"required": false,
|
|
9406
|
+
"type": "array",
|
|
9407
|
+
"in": "query"
|
|
9408
|
+
},
|
|
9282
9409
|
{
|
|
9283
9410
|
"name": "limit",
|
|
9284
9411
|
"description": "Maximum number of results to return",
|
|
@@ -9348,7 +9475,7 @@ const routes = {
|
|
|
9348
9475
|
},
|
|
9349
9476
|
{
|
|
9350
9477
|
"name": "tags",
|
|
9351
|
-
"description": "Key-value tags",
|
|
9478
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and knowledge search.",
|
|
9352
9479
|
"required": false,
|
|
9353
9480
|
"type": "object",
|
|
9354
9481
|
"in": "body"
|
|
@@ -9415,7 +9542,7 @@ const routes = {
|
|
|
9415
9542
|
},
|
|
9416
9543
|
{
|
|
9417
9544
|
"name": "tags",
|
|
9418
|
-
"description": "Key-value tags
|
|
9545
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and knowledge search.",
|
|
9419
9546
|
"required": false,
|
|
9420
9547
|
"type": "object",
|
|
9421
9548
|
"in": "body"
|
|
@@ -9518,7 +9645,7 @@ const routes = {
|
|
|
9518
9645
|
},
|
|
9519
9646
|
{
|
|
9520
9647
|
"name": "tags",
|
|
9521
|
-
"description": "Key-value tags",
|
|
9648
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and knowledge search.",
|
|
9522
9649
|
"required": false,
|
|
9523
9650
|
"type": "object",
|
|
9524
9651
|
"in": "body"
|
|
@@ -9669,7 +9796,7 @@ const routes = {
|
|
|
9669
9796
|
"merge-document-tags": {
|
|
9670
9797
|
serviceClass: "Documents",
|
|
9671
9798
|
operationId: "mergeDocumentTags",
|
|
9672
|
-
description: "Merges provided tags
|
|
9799
|
+
description: "Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)",
|
|
9673
9800
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/documents",
|
|
9674
9801
|
httpMethod: "patch",
|
|
9675
9802
|
pathParams: ["project_id", "document_id"],
|
|
@@ -10643,7 +10770,11 @@ const routes = {
|
|
|
10643
10770
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/files",
|
|
10644
10771
|
httpMethod: "get",
|
|
10645
10772
|
pathParams: ["project_id"],
|
|
10646
|
-
queryParams: [
|
|
10773
|
+
queryParams: [
|
|
10774
|
+
"tags",
|
|
10775
|
+
"limit",
|
|
10776
|
+
"offset"
|
|
10777
|
+
],
|
|
10647
10778
|
flags: [
|
|
10648
10779
|
{
|
|
10649
10780
|
"name": "project_id",
|
|
@@ -10652,6 +10783,13 @@ const routes = {
|
|
|
10652
10783
|
"type": "string",
|
|
10653
10784
|
"in": "path"
|
|
10654
10785
|
},
|
|
10786
|
+
{
|
|
10787
|
+
"name": "tags",
|
|
10788
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
10789
|
+
"required": false,
|
|
10790
|
+
"type": "array",
|
|
10791
|
+
"in": "query"
|
|
10792
|
+
},
|
|
10655
10793
|
{
|
|
10656
10794
|
"name": "limit",
|
|
10657
10795
|
"description": "Maximum number of results to return",
|
|
@@ -10991,7 +11129,7 @@ const routes = {
|
|
|
10991
11129
|
"merge-file-tags": {
|
|
10992
11130
|
serviceClass: "Files",
|
|
10993
11131
|
operationId: "mergeFileTags",
|
|
10994
|
-
description: "Merges provided tags
|
|
11132
|
+
description: "Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)",
|
|
10995
11133
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/files",
|
|
10996
11134
|
httpMethod: "patch",
|
|
10997
11135
|
pathParams: ["project_id", "file_id"],
|
|
@@ -12136,7 +12274,7 @@ const routes = {
|
|
|
12136
12274
|
"search-knowledge": {
|
|
12137
12275
|
serviceClass: "Knowledge",
|
|
12138
12276
|
operationId: "searchKnowledge",
|
|
12139
|
-
description: "Searches across documents and memory entries using semantic search, file paths, document IDs,
|
|
12277
|
+
description: "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.",
|
|
12140
12278
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/knowledge",
|
|
12141
12279
|
httpMethod: "post",
|
|
12142
12280
|
pathParams: ["project_id"],
|
|
@@ -12177,13 +12315,6 @@ const routes = {
|
|
|
12177
12315
|
"type": "array",
|
|
12178
12316
|
"in": "body"
|
|
12179
12317
|
},
|
|
12180
|
-
{
|
|
12181
|
-
"name": "memory_tags",
|
|
12182
|
-
"description": "Search entries in memories whose tags match any of these patterns (glob supported)",
|
|
12183
|
-
"required": false,
|
|
12184
|
-
"type": "array",
|
|
12185
|
-
"in": "body"
|
|
12186
|
-
},
|
|
12187
12318
|
{
|
|
12188
12319
|
"name": "document_paths",
|
|
12189
12320
|
"description": "Filter results to documents whose file path starts with one of these prefixes",
|
|
@@ -12197,6 +12328,13 @@ const routes = {
|
|
|
12197
12328
|
"required": false,
|
|
12198
12329
|
"type": "array",
|
|
12199
12330
|
"in": "body"
|
|
12331
|
+
},
|
|
12332
|
+
{
|
|
12333
|
+
"name": "tags",
|
|
12334
|
+
"description": "Filter results to documents and memory entries whose `tags` contain every one of these key-value pairs (exact, case-sensitive match). The only filter that scopes both stores, so passing it alone searches both. For memory it matches at entry granularity: an entry is returned when its parent memory's tags match or its own do.",
|
|
12335
|
+
"required": false,
|
|
12336
|
+
"type": "string",
|
|
12337
|
+
"in": "body"
|
|
12200
12338
|
}
|
|
12201
12339
|
]
|
|
12202
12340
|
},
|
|
@@ -12222,7 +12360,7 @@ const routes = {
|
|
|
12222
12360
|
},
|
|
12223
12361
|
{
|
|
12224
12362
|
"name": "tags",
|
|
12225
|
-
"description": "Filter
|
|
12363
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
12226
12364
|
"required": false,
|
|
12227
12365
|
"type": "array",
|
|
12228
12366
|
"in": "query"
|
|
@@ -12275,9 +12413,9 @@ const routes = {
|
|
|
12275
12413
|
},
|
|
12276
12414
|
{
|
|
12277
12415
|
"name": "tags",
|
|
12278
|
-
"description": "Optional
|
|
12416
|
+
"description": "Optional key-value tags. Scopes the memory in knowledge search, where every requested pair must match exactly.",
|
|
12279
12417
|
"required": false,
|
|
12280
|
-
"type": "
|
|
12418
|
+
"type": "string",
|
|
12281
12419
|
"in": "body"
|
|
12282
12420
|
}
|
|
12283
12421
|
]
|
|
@@ -12343,9 +12481,9 @@ const routes = {
|
|
|
12343
12481
|
},
|
|
12344
12482
|
{
|
|
12345
12483
|
"name": "tags",
|
|
12346
|
-
"description": "Optional
|
|
12484
|
+
"description": "Optional key-value tags. Replaces the stored bag; `null` clears it.",
|
|
12347
12485
|
"required": false,
|
|
12348
|
-
"type": "
|
|
12486
|
+
"type": "string",
|
|
12349
12487
|
"in": "body"
|
|
12350
12488
|
}
|
|
12351
12489
|
]
|
|
@@ -12372,6 +12510,72 @@ const routes = {
|
|
|
12372
12510
|
"in": "path"
|
|
12373
12511
|
}]
|
|
12374
12512
|
},
|
|
12513
|
+
"get-memory-tags": {
|
|
12514
|
+
serviceClass: "Memories",
|
|
12515
|
+
operationId: "getMemoryTags",
|
|
12516
|
+
description: "Returns all tags attached to the memory",
|
|
12517
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memories",
|
|
12518
|
+
httpMethod: "get",
|
|
12519
|
+
pathParams: ["project_id", "memory_id"],
|
|
12520
|
+
queryParams: [],
|
|
12521
|
+
flags: [{
|
|
12522
|
+
"name": "project_id",
|
|
12523
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12524
|
+
"required": true,
|
|
12525
|
+
"type": "string",
|
|
12526
|
+
"in": "path"
|
|
12527
|
+
}, {
|
|
12528
|
+
"name": "memory_id",
|
|
12529
|
+
"description": "Memory ID",
|
|
12530
|
+
"required": true,
|
|
12531
|
+
"type": "string",
|
|
12532
|
+
"in": "path"
|
|
12533
|
+
}]
|
|
12534
|
+
},
|
|
12535
|
+
"replace-memory-tags": {
|
|
12536
|
+
serviceClass: "Memories",
|
|
12537
|
+
operationId: "replaceMemoryTags",
|
|
12538
|
+
description: "Replaces all tags on the memory with the provided tags (not merged)",
|
|
12539
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memories",
|
|
12540
|
+
httpMethod: "put",
|
|
12541
|
+
pathParams: ["project_id", "memory_id"],
|
|
12542
|
+
queryParams: [],
|
|
12543
|
+
flags: [{
|
|
12544
|
+
"name": "project_id",
|
|
12545
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12546
|
+
"required": true,
|
|
12547
|
+
"type": "string",
|
|
12548
|
+
"in": "path"
|
|
12549
|
+
}, {
|
|
12550
|
+
"name": "memory_id",
|
|
12551
|
+
"description": "Memory ID",
|
|
12552
|
+
"required": true,
|
|
12553
|
+
"type": "string",
|
|
12554
|
+
"in": "path"
|
|
12555
|
+
}]
|
|
12556
|
+
},
|
|
12557
|
+
"merge-memory-tags": {
|
|
12558
|
+
serviceClass: "Memories",
|
|
12559
|
+
operationId: "mergeMemoryTags",
|
|
12560
|
+
description: "Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)",
|
|
12561
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memories",
|
|
12562
|
+
httpMethod: "patch",
|
|
12563
|
+
pathParams: ["project_id", "memory_id"],
|
|
12564
|
+
queryParams: [],
|
|
12565
|
+
flags: [{
|
|
12566
|
+
"name": "project_id",
|
|
12567
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12568
|
+
"required": true,
|
|
12569
|
+
"type": "string",
|
|
12570
|
+
"in": "path"
|
|
12571
|
+
}, {
|
|
12572
|
+
"name": "memory_id",
|
|
12573
|
+
"description": "Memory ID",
|
|
12574
|
+
"required": true,
|
|
12575
|
+
"type": "string",
|
|
12576
|
+
"in": "path"
|
|
12577
|
+
}]
|
|
12578
|
+
},
|
|
12375
12579
|
"list-memory-entries": {
|
|
12376
12580
|
serviceClass: "MemoryEntries",
|
|
12377
12581
|
operationId: "listMemoryEntries",
|
|
@@ -12381,6 +12585,7 @@ const routes = {
|
|
|
12381
12585
|
pathParams: ["project_id"],
|
|
12382
12586
|
queryParams: [
|
|
12383
12587
|
"memory_id",
|
|
12588
|
+
"tags",
|
|
12384
12589
|
"limit",
|
|
12385
12590
|
"offset",
|
|
12386
12591
|
"include_invalidated"
|
|
@@ -12400,6 +12605,13 @@ const routes = {
|
|
|
12400
12605
|
"type": "string",
|
|
12401
12606
|
"in": "query"
|
|
12402
12607
|
},
|
|
12608
|
+
{
|
|
12609
|
+
"name": "tags",
|
|
12610
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
12611
|
+
"required": false,
|
|
12612
|
+
"type": "array",
|
|
12613
|
+
"in": "query"
|
|
12614
|
+
},
|
|
12403
12615
|
{
|
|
12404
12616
|
"name": "limit",
|
|
12405
12617
|
"description": "Maximum number of results to return",
|
|
@@ -12462,9 +12674,9 @@ const routes = {
|
|
|
12462
12674
|
},
|
|
12463
12675
|
{
|
|
12464
12676
|
"name": "tags",
|
|
12465
|
-
"description": "Per-entry
|
|
12677
|
+
"description": "Per-entry key-value tags, used for entry-granularity filtering by `tags` in search-knowledge.",
|
|
12466
12678
|
"required": false,
|
|
12467
|
-
"type": "
|
|
12679
|
+
"type": "string",
|
|
12468
12680
|
"in": "body"
|
|
12469
12681
|
},
|
|
12470
12682
|
{
|
|
@@ -12537,9 +12749,9 @@ const routes = {
|
|
|
12537
12749
|
},
|
|
12538
12750
|
{
|
|
12539
12751
|
"name": "tags",
|
|
12540
|
-
"description": "Replaces the entry's tags. Pass null or an empty
|
|
12752
|
+
"description": "Replaces the entry's tags. Pass null or an empty object to clear.",
|
|
12541
12753
|
"required": false,
|
|
12542
|
-
"type": "
|
|
12754
|
+
"type": "string",
|
|
12543
12755
|
"in": "body"
|
|
12544
12756
|
},
|
|
12545
12757
|
{
|
|
@@ -12573,6 +12785,72 @@ const routes = {
|
|
|
12573
12785
|
"in": "path"
|
|
12574
12786
|
}]
|
|
12575
12787
|
},
|
|
12788
|
+
"get-memory-entry-tags": {
|
|
12789
|
+
serviceClass: "MemoryEntries",
|
|
12790
|
+
operationId: "getMemoryEntryTags",
|
|
12791
|
+
description: "Returns all tags attached to the memory entry",
|
|
12792
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memory-entries",
|
|
12793
|
+
httpMethod: "get",
|
|
12794
|
+
pathParams: ["project_id", "entry_id"],
|
|
12795
|
+
queryParams: [],
|
|
12796
|
+
flags: [{
|
|
12797
|
+
"name": "project_id",
|
|
12798
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12799
|
+
"required": true,
|
|
12800
|
+
"type": "string",
|
|
12801
|
+
"in": "path"
|
|
12802
|
+
}, {
|
|
12803
|
+
"name": "entry_id",
|
|
12804
|
+
"description": "Memory entry ID",
|
|
12805
|
+
"required": true,
|
|
12806
|
+
"type": "string",
|
|
12807
|
+
"in": "path"
|
|
12808
|
+
}]
|
|
12809
|
+
},
|
|
12810
|
+
"replace-memory-entry-tags": {
|
|
12811
|
+
serviceClass: "MemoryEntries",
|
|
12812
|
+
operationId: "replaceMemoryEntryTags",
|
|
12813
|
+
description: "Replaces all tags on the memory entry with the provided tags (not merged)",
|
|
12814
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memory-entries",
|
|
12815
|
+
httpMethod: "put",
|
|
12816
|
+
pathParams: ["project_id", "entry_id"],
|
|
12817
|
+
queryParams: [],
|
|
12818
|
+
flags: [{
|
|
12819
|
+
"name": "project_id",
|
|
12820
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12821
|
+
"required": true,
|
|
12822
|
+
"type": "string",
|
|
12823
|
+
"in": "path"
|
|
12824
|
+
}, {
|
|
12825
|
+
"name": "entry_id",
|
|
12826
|
+
"description": "Memory entry ID",
|
|
12827
|
+
"required": true,
|
|
12828
|
+
"type": "string",
|
|
12829
|
+
"in": "path"
|
|
12830
|
+
}]
|
|
12831
|
+
},
|
|
12832
|
+
"merge-memory-entry-tags": {
|
|
12833
|
+
serviceClass: "MemoryEntries",
|
|
12834
|
+
operationId: "mergeMemoryEntryTags",
|
|
12835
|
+
description: "Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)",
|
|
12836
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/memory-entries",
|
|
12837
|
+
httpMethod: "patch",
|
|
12838
|
+
pathParams: ["project_id", "entry_id"],
|
|
12839
|
+
queryParams: [],
|
|
12840
|
+
flags: [{
|
|
12841
|
+
"name": "project_id",
|
|
12842
|
+
"description": "Project public ID (proj_ prefix).",
|
|
12843
|
+
"required": true,
|
|
12844
|
+
"type": "string",
|
|
12845
|
+
"in": "path"
|
|
12846
|
+
}, {
|
|
12847
|
+
"name": "entry_id",
|
|
12848
|
+
"description": "Memory entry ID",
|
|
12849
|
+
"required": true,
|
|
12850
|
+
"type": "string",
|
|
12851
|
+
"in": "path"
|
|
12852
|
+
}]
|
|
12853
|
+
},
|
|
12576
12854
|
"list-model-routes": {
|
|
12577
12855
|
serviceClass: "ModelRoutes",
|
|
12578
12856
|
operationId: "listModelRoutes",
|
|
@@ -14484,6 +14762,7 @@ const routes = {
|
|
|
14484
14762
|
"agent_id",
|
|
14485
14763
|
"actor_id",
|
|
14486
14764
|
"status",
|
|
14765
|
+
"tags",
|
|
14487
14766
|
"limit",
|
|
14488
14767
|
"offset"
|
|
14489
14768
|
],
|
|
@@ -14516,6 +14795,13 @@ const routes = {
|
|
|
14516
14795
|
"type": "string",
|
|
14517
14796
|
"in": "query"
|
|
14518
14797
|
},
|
|
14798
|
+
{
|
|
14799
|
+
"name": "tags",
|
|
14800
|
+
"description": "Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.\n",
|
|
14801
|
+
"required": false,
|
|
14802
|
+
"type": "array",
|
|
14803
|
+
"in": "query"
|
|
14804
|
+
},
|
|
14519
14805
|
{
|
|
14520
14806
|
"name": "limit",
|
|
14521
14807
|
"description": "",
|
|
@@ -14894,7 +15180,7 @@ const routes = {
|
|
|
14894
15180
|
},
|
|
14895
15181
|
{
|
|
14896
15182
|
"name": "tags",
|
|
14897
|
-
"description": "
|
|
15183
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and knowledge search.",
|
|
14898
15184
|
"required": false,
|
|
14899
15185
|
"type": "object",
|
|
14900
15186
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.127.
|
|
3
|
+
"version": "0.127.2",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.127.
|
|
33
|
+
"@naturali/sdk": "0.127.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|