@naturali/cli 0.203.1 → 0.204.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 +40 -24
  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.203.1";
20
+ var version = "0.204.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1857,7 +1857,7 @@ var Assistant = class {
1857
1857
  /**
1858
1858
  * Read a conversation
1859
1859
  *
1860
- * The newest 100 messages of one conversation, oldest first.
1860
+ * A page of one conversation, oldest first. `offset` and `total` count every stored message, tool-only turns included, which this list leaves out — so a page can hold fewer than `limit`, and the list ends when `offset + limit` reaches `total`. The newest page is at `offset = total - limit`.
1861
1861
  *
1862
1862
  */
1863
1863
  static listAssistantSessionMessages(options) {
@@ -5958,7 +5958,7 @@ var Users = class {
5958
5958
  *
5959
5959
  * The plan the account is on, how long its projects may keep content, how much indexed storage it is holding, and the credit it has left — the figures the platform already enforces against, readable by the account they are enforced against.
5960
5960
  *
5961
- * A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage_limit_gb`. Every refusal names what is missing; this is where the numbers behind them are read.
5961
+ * A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage.limit`. Every refusal names what is missing; this is where the numbers behind them are read.
5962
5962
  *
5963
5963
  * Every figure here is a local read, which is what keeps this route cheap enough to poll — unlike `GET /v1/users/me/usage`, which asks the meter once per project.
5964
5964
  *
@@ -10189,7 +10189,7 @@ const routes = {
10189
10189
  moduleDocsUrl: "https://naturali.ai/docs/modules/assistant",
10190
10190
  httpMethod: "get",
10191
10191
  pathParams: [],
10192
- queryParams: ["limit", "cursor"],
10192
+ queryParams: ["limit", "offset"],
10193
10193
  headerParams: [],
10194
10194
  cookieParams: [],
10195
10195
  flags: [{
@@ -10199,10 +10199,10 @@ const routes = {
10199
10199
  "type": "integer",
10200
10200
  "in": "query"
10201
10201
  }, {
10202
- "name": "cursor",
10203
- "description": "Opaque pagination cursor from a previous response's next_cursor.",
10202
+ "name": "offset",
10203
+ "description": "Results to skip. Negative or not an integer it is `400`.",
10204
10204
  "required": false,
10205
- "type": "string",
10205
+ "type": "integer",
10206
10206
  "in": "query"
10207
10207
  }]
10208
10208
  },
@@ -10263,20 +10263,36 @@ const routes = {
10263
10263
  "list-assistant-session-messages": {
10264
10264
  serviceClass: "Assistant",
10265
10265
  operationId: "listAssistantSessionMessages",
10266
- description: "The newest 100 messages of one conversation, oldest first.",
10266
+ description: "A page of one conversation, oldest first. `offset` and `total` count every stored message, tool-only turns included, which this list leaves out — so a page can hold fewer than `limit`, and the list ends when `offset + limit` reaches `total`. The newest page is at `offset = total - limit`.",
10267
10267
  moduleDocsUrl: "https://naturali.ai/docs/modules/assistant",
10268
10268
  httpMethod: "get",
10269
10269
  pathParams: ["session_id"],
10270
- queryParams: [],
10270
+ queryParams: ["limit", "offset"],
10271
10271
  headerParams: [],
10272
10272
  cookieParams: [],
10273
- flags: [{
10274
- "name": "session_id",
10275
- "description": "Assistant session ID, as listed.",
10276
- "required": true,
10277
- "type": "string",
10278
- "in": "path"
10279
- }]
10273
+ flags: [
10274
+ {
10275
+ "name": "session_id",
10276
+ "description": "Assistant session ID, as listed.",
10277
+ "required": true,
10278
+ "type": "string",
10279
+ "in": "path"
10280
+ },
10281
+ {
10282
+ "name": "limit",
10283
+ "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
10284
+ "required": false,
10285
+ "type": "integer",
10286
+ "in": "query"
10287
+ },
10288
+ {
10289
+ "name": "offset",
10290
+ "description": "Results to skip. Negative or not an integer it is `400`.",
10291
+ "required": false,
10292
+ "type": "integer",
10293
+ "in": "query"
10294
+ }
10295
+ ]
10280
10296
  },
10281
10297
  "send-assistant-session-message": {
10282
10298
  serviceClass: "Assistant",
@@ -10295,7 +10311,7 @@ const routes = {
10295
10311
  "type": "string",
10296
10312
  "in": "path"
10297
10313
  }, {
10298
- "name": "text",
10314
+ "name": "content",
10299
10315
  "description": "",
10300
10316
  "required": true,
10301
10317
  "type": "string",
@@ -11072,7 +11088,7 @@ const routes = {
11072
11088
  },
11073
11089
  {
11074
11090
  "name": "default",
11075
- "description": "`action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`. `repeat` is only valid alongside `action: message`.\n",
11091
+ "description": "",
11076
11092
  "required": true,
11077
11093
  "type": "object",
11078
11094
  "in": "body"
@@ -11249,7 +11265,7 @@ const routes = {
11249
11265
  },
11250
11266
  {
11251
11267
  "name": "default",
11252
- "description": "`action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`. `repeat` is only valid alongside `action: message`.\n",
11268
+ "description": "",
11253
11269
  "required": false,
11254
11270
  "type": "object",
11255
11271
  "in": "body"
@@ -11374,7 +11390,7 @@ const routes = {
11374
11390
  },
11375
11391
  {
11376
11392
  "name": "identifier",
11377
- "description": "Filter to one address by its bare, channel-native identifier (a phone number on WhatsApp; a Discord user id, or `thread:<id>` for a guild thread) — the same value the channel itself reports, not the prefixed form the `identifier` field above returns. At most one row matches.\n",
11393
+ "description": "Filter to one address by the identifier conversations carry (`discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`, `whatsapp:dm:<phone>`), in this channel's kind; any other form is `400`. At most one row matches.\n",
11378
11394
  "required": false,
11379
11395
  "type": "string",
11380
11396
  "in": "query"
@@ -11408,7 +11424,7 @@ const routes = {
11408
11424
  },
11409
11425
  {
11410
11426
  "name": "identifier",
11411
- "description": "The bare, channel-native identifier (a phone number, a Discord user id).",
11427
+ "description": "The address identifier, in this channel's kind (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`); any other form is `400`.",
11412
11428
  "required": true,
11413
11429
  "type": "string",
11414
11430
  "in": "body"
@@ -23385,7 +23401,7 @@ const routes = {
23385
23401
  "get-current-user-billing": {
23386
23402
  serviceClass: "Users",
23387
23403
  operationId: "getCurrentUserBilling",
23388
- description: "The plan the account is on, how long its projects may keep content, how much indexed storage it is holding, and the credit it has left — the figures the platform already enforces against, readable by the account they are enforced against. A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage_limit_gb`. Every refusal names what is missing; this is where the numbers behind them are read. Every figure here is a local read, which is what keeps this route cheap enough to poll — unlike `GET /v1/users/me/usage`, which asks the meter once per project. Answers for the caller's own account only, and always the account the credential resolves to — an API key answers for the user that minted it. The plan gating a *project* is that project's billing owner's, so a member of someone else's project reads their own rung here, not that project's.",
23404
+ description: "The plan the account is on, how long its projects may keep content, how much indexed storage it is holding, and the credit it has left — the figures the platform already enforces against, readable by the account they are enforced against. A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage.limit`. Every refusal names what is missing; this is where the numbers behind them are read. Every figure here is a local read, which is what keeps this route cheap enough to poll — unlike `GET /v1/users/me/usage`, which asks the meter once per project. Answers for the caller's own account only, and always the account the credential resolves to — an API key answers for the user that minted it. The plan gating a *project* is that project's billing owner's, so a member of someone else's project reads their own rung here, not that project's.",
23389
23405
  moduleDocsUrl: "https://naturali.ai/docs/modules/users",
23390
23406
  httpMethod: "get",
23391
23407
  pathParams: [],
@@ -23911,7 +23927,7 @@ const routes = {
23911
23927
  "cursor",
23912
23928
  "webhook_id",
23913
23929
  "status",
23914
- "event_type"
23930
+ "type"
23915
23931
  ],
23916
23932
  headerParams: [],
23917
23933
  cookieParams: [],
@@ -23952,7 +23968,7 @@ const routes = {
23952
23968
  "in": "query"
23953
23969
  },
23954
23970
  {
23955
- "name": "event_type",
23971
+ "name": "type",
23956
23972
  "description": "Only deliveries of this event type.",
23957
23973
  "required": false,
23958
23974
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.203.1",
3
+ "version": "0.204.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.203.1",
34
+ "@naturali/sdk": "0.204.0",
35
35
  "@ttoss/openapi-codegen": "^0.5.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",