@naturali/cli 0.258.1 → 0.259.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.
Files changed (2) hide show
  1. package/dist/index.mjs +33 -11
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.258.1";
20
+ var version = "0.259.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -3721,7 +3721,7 @@ var Knowledge = class {
3721
3721
  /**
3722
3722
  * Search knowledge
3723
3723
  *
3724
- * Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.
3724
+ * Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — by the stored vector of an existing document or memory (`similar_to_document_id`, `similar_to_memory_id`), or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `similar_to_document_id`, `similar_to_memory_id`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.
3725
3725
  */
3726
3726
  static searchKnowledge(options) {
3727
3727
  return (options.client ?? client).post({
@@ -5123,7 +5123,7 @@ var Policies = class {
5123
5123
  /**
5124
5124
  * Create a policy
5125
5125
  *
5126
- * Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`. Without a project, creates a global policy, which only the unrestricted admin may.
5126
+ * Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`; an `Allow` without `resource` grants every resource of that project. Without a project, creates a global policy, which only the unrestricted admin may.
5127
5127
  */
5128
5128
  static createPolicy(options) {
5129
5129
  return (options.client ?? client).post({
@@ -6210,7 +6210,7 @@ var Triggers = class {
6210
6210
  /**
6211
6211
  * Create a trigger
6212
6212
  *
6213
- * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`. An event trigger whose `policy_ids` cannot read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.
6213
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`. An event trigger whose `policy_ids` cannot read a platform namespace its `events` subscribe to is refused with `400` `EVENTS_UNREADABLE`.
6214
6214
  */
6215
6215
  static createTrigger(options) {
6216
6216
  return (options.client ?? client).post({
@@ -6258,7 +6258,7 @@ var Triggers = class {
6258
6258
  /**
6259
6259
  * Update a trigger
6260
6260
  *
6261
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`. An update leaving an event trigger's `policy_ids` unable to read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.
6261
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`. An update leaving an event trigger's `policy_ids` unable to read a platform namespace its `events` subscribe to is refused with `400` `EVENTS_UNREADABLE`.
6262
6262
  *
6263
6263
  */
6264
6264
  static updateTrigger(options) {
@@ -17376,7 +17376,7 @@ const routes = {
17376
17376
  "search-knowledge": {
17377
17377
  serviceClass: "Knowledge",
17378
17378
  operationId: "searchKnowledge",
17379
- description: "Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.",
17379
+ description: "Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — by the stored vector of an existing document or memory (`similar_to_document_id`, `similar_to_memory_id`), or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `similar_to_document_id`, `similar_to_memory_id`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.",
17380
17380
  moduleDocsUrl: "https://naturali.ai/docs/modules/knowledge",
17381
17381
  httpMethod: "post",
17382
17382
  pathParams: ["project_id"],
@@ -17398,16 +17398,30 @@ const routes = {
17398
17398
  "type": "string",
17399
17399
  "in": "body"
17400
17400
  },
17401
+ {
17402
+ "name": "similar_to_document_id",
17403
+ "description": "Ranks by this document's stored embedding (the mean of its chunk embeddings) instead of a query: the vector channel alone, no embedding call, and none of the document's own chunks in the results. Not combinable with `query` or `similar_to_memory_id`.",
17404
+ "required": false,
17405
+ "type": "string",
17406
+ "in": "body"
17407
+ },
17408
+ {
17409
+ "name": "similar_to_memory_id",
17410
+ "description": "Ranks by this memory's stored embedding instead of a query: the vector channel alone, no embedding call, and the memory itself left out of the results. Not combinable with `query` or `similar_to_document_id`.",
17411
+ "required": false,
17412
+ "type": "string",
17413
+ "in": "body"
17414
+ },
17401
17415
  {
17402
17416
  "name": "min_similarity",
17403
- "description": "Minimum raw cosine `similarity_score` a **vector** candidate must reach to take part in ranking, applied before fusion. Only applies when `query` is provided. Lexical candidates are deliberately exempt: a result that literally contains the searched token is the evidence, and dropping it for a low cosine is the failure hybrid search exists to prevent. Not a floor on `score`, whose fused value encodes rank position rather than similarity.",
17417
+ "description": "Minimum raw cosine `similarity_score` a **vector** candidate must reach to take part in ranking, applied before fusion. Only applies when `query` or a `similar_to_*` source is provided. Lexical candidates are deliberately exempt: a result that literally contains the searched token is the evidence, and dropping it for a low cosine is the failure hybrid search exists to prevent. Not a floor on `score`, whose fused value encodes rank position rather than similarity.",
17404
17418
  "required": false,
17405
17419
  "type": "number",
17406
17420
  "in": "body"
17407
17421
  },
17408
17422
  {
17409
17423
  "name": "rrf_k",
17410
- "description": "The `k` in the reciprocal rank fusion term `1 / (k + rank)`, which sets how steeply a result's contribution decays with its position in each ranked list. A smaller value weights the very top of each list more heavily. Defaults to 60. Only applies when `query` is provided.",
17424
+ "description": "The `k` in the reciprocal rank fusion term `1 / (k + rank)`, which sets how steeply a result's contribution decays with its position in each ranked list. A smaller value weights the very top of each list more heavily. Defaults to 60. Only applies when `query` is provided; ignored with a `similar_to_*` source, which ranks by one channel.",
17411
17425
  "required": false,
17412
17426
  "type": "integer",
17413
17427
  "in": "body"
@@ -22270,7 +22284,7 @@ const routes = {
22270
22284
  "create-policy": {
22271
22285
  serviceClass: "Policies",
22272
22286
  operationId: "createPolicy",
22273
- description: "Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`. Without a project, creates a global policy, which only the unrestricted admin may.",
22287
+ description: "Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`; an `Allow` without `resource` grants every resource of that project. Without a project, creates a global policy, which only the unrestricted admin may.",
22274
22288
  moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
22275
22289
  httpMethod: "post",
22276
22290
  pathParams: ["project_id"],
@@ -24270,6 +24284,7 @@ const routes = {
24270
24284
  "assignee",
24271
24285
  "blocked",
24272
24286
  "metadata",
24287
+ "order",
24273
24288
  "limit",
24274
24289
  "cursor"
24275
24290
  ],
@@ -24339,6 +24354,13 @@ const routes = {
24339
24354
  "type": "string",
24340
24355
  "in": "query"
24341
24356
  },
24357
+ {
24358
+ "name": "order",
24359
+ "description": "Omitted, newest first. `next` lists in pull order: effective priority (the highest `priority` of the task and of every open task it blocks, transitively; `null` below `very_low`), then `readiness.unblocks` descending, then `entered_state_at` oldest first, then `id`. It composes with every filter and answers one page: `limit` applies, a `cursor` is a `400`, and `next_cursor` is `null`.",
24360
+ "required": false,
24361
+ "type": "string",
24362
+ "in": "query"
24363
+ },
24342
24364
  {
24343
24365
  "name": "limit",
24344
24366
  "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
@@ -25590,7 +25612,7 @@ const routes = {
25590
25612
  "create-trigger": {
25591
25613
  serviceClass: "Triggers",
25592
25614
  operationId: "createTrigger",
25593
- description: "Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`. An event trigger whose `policy_ids` cannot read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.",
25615
+ description: "Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`. An event trigger whose `policy_ids` cannot read a platform namespace its `events` subscribe to is refused with `400` `EVENTS_UNREADABLE`.",
25594
25616
  moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
25595
25617
  httpMethod: "post",
25596
25618
  pathParams: ["project_id"],
@@ -25773,7 +25795,7 @@ const routes = {
25773
25795
  "update-trigger": {
25774
25796
  serviceClass: "Triggers",
25775
25797
  operationId: "updateTrigger",
25776
- description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`. An update leaving an event trigger's `policy_ids` unable to read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.",
25798
+ description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`. An update leaving an event trigger's `policy_ids` unable to read a platform namespace its `events` subscribe to is refused with `400` `EVENTS_UNREADABLE`.",
25777
25799
  moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
25778
25800
  httpMethod: "patch",
25779
25801
  pathParams: ["project_id", "trigger_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.258.1",
3
+ "version": "0.259.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.258.1",
34
+ "@naturali/sdk": "0.259.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",