@naturali/cli 0.121.0 → 0.121.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 +99 -45
  2. 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.121.0";
17
+ var version = "0.121.1";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -3759,7 +3759,7 @@ var Sessions = class {
3759
3759
  /**
3760
3760
  * Get a session
3761
3761
  *
3762
- * Returns details of a single session.
3762
+ * Returns details of a single session, including a `usage` roll-up of what its generations cost. The listing omits `usage`; for a window, or a split by day, model, agent, provider or run, read `GET /v1/projects/{project_id}/usage` instead.
3763
3763
  */
3764
3764
  static getSession(options) {
3765
3765
  return (options.client ?? client).get({
@@ -5227,6 +5227,7 @@ const routes = {
5227
5227
  pathParams: ["project_id"],
5228
5228
  queryParams: [
5229
5229
  "external_id",
5230
+ "name",
5230
5231
  "agent_id",
5231
5232
  "chat_id",
5232
5233
  "conversation_id",
@@ -5248,6 +5249,13 @@ const routes = {
5248
5249
  "type": "string",
5249
5250
  "in": "query"
5250
5251
  },
5252
+ {
5253
+ "name": "name",
5254
+ "description": "Case-insensitive substring match on the actor name",
5255
+ "required": false,
5256
+ "type": "string",
5257
+ "in": "query"
5258
+ },
5251
5259
  {
5252
5260
  "name": "agent_id",
5253
5261
  "description": "Return only actors linked to this agent",
@@ -10649,20 +10657,30 @@ const routes = {
10649
10657
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/files",
10650
10658
  httpMethod: "get",
10651
10659
  pathParams: ["project_id", "file_id"],
10652
- queryParams: [],
10653
- flags: [{
10654
- "name": "project_id",
10655
- "description": "Project public ID (proj_ prefix).",
10656
- "required": true,
10657
- "type": "string",
10658
- "in": "path"
10659
- }, {
10660
- "name": "file_id",
10661
- "description": "File ID",
10662
- "required": true,
10663
- "type": "string",
10664
- "in": "path"
10665
- }]
10660
+ queryParams: ["token"],
10661
+ flags: [
10662
+ {
10663
+ "name": "project_id",
10664
+ "description": "Project public ID (proj_ prefix).",
10665
+ "required": true,
10666
+ "type": "string",
10667
+ "in": "path"
10668
+ },
10669
+ {
10670
+ "name": "file_id",
10671
+ "description": "File ID",
10672
+ "required": true,
10673
+ "type": "string",
10674
+ "in": "path"
10675
+ },
10676
+ {
10677
+ "name": "token",
10678
+ "description": "Signed single-file download token, an alternative to a bearer credential (issued for ingestion-rule converters).",
10679
+ "required": false,
10680
+ "type": "string",
10681
+ "in": "query"
10682
+ }
10683
+ ]
10666
10684
  },
10667
10685
  "update-file-metadata": {
10668
10686
  serviceClass: "Files",
@@ -10717,20 +10735,30 @@ const routes = {
10717
10735
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/files",
10718
10736
  httpMethod: "get",
10719
10737
  pathParams: ["project_id", "file_id"],
10720
- queryParams: [],
10721
- flags: [{
10722
- "name": "project_id",
10723
- "description": "Project public ID (proj_ prefix).",
10724
- "required": true,
10725
- "type": "string",
10726
- "in": "path"
10727
- }, {
10728
- "name": "file_id",
10729
- "description": "File ID",
10730
- "required": true,
10731
- "type": "string",
10732
- "in": "path"
10733
- }]
10738
+ queryParams: ["token"],
10739
+ flags: [
10740
+ {
10741
+ "name": "project_id",
10742
+ "description": "Project public ID (proj_ prefix).",
10743
+ "required": true,
10744
+ "type": "string",
10745
+ "in": "path"
10746
+ },
10747
+ {
10748
+ "name": "file_id",
10749
+ "description": "File ID",
10750
+ "required": true,
10751
+ "type": "string",
10752
+ "in": "path"
10753
+ },
10754
+ {
10755
+ "name": "token",
10756
+ "description": "Signed single-file download token, an alternative to a bearer credential (issued for ingestion-rule converters).",
10757
+ "required": false,
10758
+ "type": "string",
10759
+ "in": "query"
10760
+ }
10761
+ ]
10734
10762
  },
10735
10763
  "get-file-tags": {
10736
10764
  serviceClass: "Files",
@@ -11086,6 +11114,8 @@ const routes = {
11086
11114
  queryParams: [
11087
11115
  "agent_id",
11088
11116
  "trace_id",
11117
+ "session_id",
11118
+ "actor_id",
11089
11119
  "initiator_generation_id",
11090
11120
  "chain_id",
11091
11121
  "orchestration_run_id",
@@ -11116,6 +11146,20 @@ const routes = {
11116
11146
  "type": "string",
11117
11147
  "in": "query"
11118
11148
  },
11149
+ {
11150
+ "name": "session_id",
11151
+ "description": "Return only the generations dispatched through one session — the turns behind that conversation's spend. A session that does not exist in scope yields an empty page.\n",
11152
+ "required": false,
11153
+ "type": "string",
11154
+ "in": "query"
11155
+ },
11156
+ {
11157
+ "name": "actor_id",
11158
+ "description": "Return only the generations one end user started, across every session they appear in. An actor that does not exist in scope yields an empty page.\n",
11159
+ "required": false,
11160
+ "type": "string",
11161
+ "in": "query"
11162
+ },
11119
11163
  {
11120
11164
  "name": "initiator_generation_id",
11121
11165
  "description": "Filter by the public ID of the parent generation. Returns all generations triggered by that generation — sub-agent invocations. Null-initiated (top-level) generations are not returned.\n",
@@ -13782,20 +13826,30 @@ const routes = {
13782
13826
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/secrets",
13783
13827
  httpMethod: "delete",
13784
13828
  pathParams: ["project_id", "secret_id"],
13785
- queryParams: [],
13786
- flags: [{
13787
- "name": "project_id",
13788
- "description": "Project public ID (proj_ prefix).",
13789
- "required": true,
13790
- "type": "string",
13791
- "in": "path"
13792
- }, {
13793
- "name": "secret_id",
13794
- "description": "Secret ID",
13795
- "required": true,
13796
- "type": "string",
13797
- "in": "path"
13798
- }]
13829
+ queryParams: ["force"],
13830
+ flags: [
13831
+ {
13832
+ "name": "project_id",
13833
+ "description": "Project public ID (proj_ prefix).",
13834
+ "required": true,
13835
+ "type": "string",
13836
+ "in": "path"
13837
+ },
13838
+ {
13839
+ "name": "secret_id",
13840
+ "description": "Secret ID",
13841
+ "required": true,
13842
+ "type": "string",
13843
+ "in": "path"
13844
+ },
13845
+ {
13846
+ "name": "force",
13847
+ "description": "Delete the secret even when AI providers reference it, destroying those providers too. Without it a referenced secret answers SECRET_HAS_DEPENDENTS.",
13848
+ "required": false,
13849
+ "type": "boolean",
13850
+ "in": "query"
13851
+ }
13852
+ ]
13799
13853
  },
13800
13854
  "list-sessions": {
13801
13855
  serviceClass: "Sessions",
@@ -13926,7 +13980,7 @@ const routes = {
13926
13980
  "get-session": {
13927
13981
  serviceClass: "Sessions",
13928
13982
  operationId: "getSession",
13929
- description: "Returns details of a single session.",
13983
+ description: "Returns details of a single session, including a `usage` roll-up of what its generations cost. The listing omits `usage`; for a window, or a split by day, model, agent, provider or run, read `GET /v1/projects/{project_id}/usage` instead.",
13930
13984
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/sessions",
13931
13985
  httpMethod: "get",
13932
13986
  pathParams: ["project_id", "session_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.121.0",
3
+ "version": "0.121.1",
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.121.0"
33
+ "@naturali/sdk": "0.121.1"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",