@naturali/cli 0.258.2 → 0.259.1

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 +49 -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.2";
20
+ var version = "0.259.1";
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"],
@@ -22849,6 +22863,7 @@ const routes = {
22849
22863
  "source",
22850
22864
  "trigger_id",
22851
22865
  "action_id",
22866
+ "model",
22852
22867
  "include",
22853
22868
  "from",
22854
22869
  "to",
@@ -22956,6 +22971,13 @@ const routes = {
22956
22971
  "type": "string",
22957
22972
  "in": "query"
22958
22973
  },
22974
+ {
22975
+ "name": "model",
22976
+ "description": "Narrow to one model, by the name a group_by=model bucket is keyed by. Matched as recorded, so it still selects the spend of a provider that has since been deleted. A value naming no model yields an empty rollup, not an error.\n",
22977
+ "required": false,
22978
+ "type": "string",
22979
+ "in": "query"
22980
+ },
22959
22981
  {
22960
22982
  "name": "include",
22961
22983
  "description": "Optional extras to compute. The only value is distinct, which adds the distinct object — one count per kind of entity the window touched. Opt-in because each counter costs the window another sort, so a caller who does not ask keeps the cheap response whatever the event table grows to. Any other value is a 400.\n",
@@ -23013,6 +23035,7 @@ const routes = {
23013
23035
  "source",
23014
23036
  "trigger_id",
23015
23037
  "action_id",
23038
+ "model",
23016
23039
  "limit",
23017
23040
  "cursor"
23018
23041
  ],
@@ -23110,6 +23133,13 @@ const routes = {
23110
23133
  "type": "string",
23111
23134
  "in": "query"
23112
23135
  },
23136
+ {
23137
+ "name": "model",
23138
+ "description": "Narrow to one model, by the name a group_by=model bucket is keyed by. Matched as recorded, so it still selects the spend of a provider that has since been deleted. A value naming no model yields an empty rollup, not an error.\n",
23139
+ "required": false,
23140
+ "type": "string",
23141
+ "in": "query"
23142
+ },
23113
23143
  {
23114
23144
  "name": "limit",
23115
23145
  "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
@@ -24270,6 +24300,7 @@ const routes = {
24270
24300
  "assignee",
24271
24301
  "blocked",
24272
24302
  "metadata",
24303
+ "order",
24273
24304
  "limit",
24274
24305
  "cursor"
24275
24306
  ],
@@ -24339,6 +24370,13 @@ const routes = {
24339
24370
  "type": "string",
24340
24371
  "in": "query"
24341
24372
  },
24373
+ {
24374
+ "name": "order",
24375
+ "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`.",
24376
+ "required": false,
24377
+ "type": "string",
24378
+ "in": "query"
24379
+ },
24342
24380
  {
24343
24381
  "name": "limit",
24344
24382
  "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 +25628,7 @@ const routes = {
25590
25628
  "create-trigger": {
25591
25629
  serviceClass: "Triggers",
25592
25630
  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`.",
25631
+ 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
25632
  moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
25595
25633
  httpMethod: "post",
25596
25634
  pathParams: ["project_id"],
@@ -25773,7 +25811,7 @@ const routes = {
25773
25811
  "update-trigger": {
25774
25812
  serviceClass: "Triggers",
25775
25813
  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`.",
25814
+ 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
25815
  moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
25778
25816
  httpMethod: "patch",
25779
25817
  pathParams: ["project_id", "trigger_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.258.2",
3
+ "version": "0.259.1",
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.2",
34
+ "@naturali/sdk": "0.259.1",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",