@naturali/cli 0.167.0 → 0.168.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 +59 -1
  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.167.0";
20
+ var version = "0.168.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1754,6 +1754,34 @@ var Assistant = class {
1754
1754
  }
1755
1755
  });
1756
1756
  }
1757
+ /**
1758
+ * Read the conversation
1759
+ *
1760
+ * The newest 100 messages of your conversation with the Assistant in the app, oldest first. An account that has not messaged it yet has an empty conversation.
1761
+ *
1762
+ */
1763
+ static listAssistantMessages(options) {
1764
+ return (options?.client ?? client).get({
1765
+ url: "/v1/assistant/messages",
1766
+ ...options
1767
+ });
1768
+ }
1769
+ /**
1770
+ * Message the Assistant
1771
+ *
1772
+ * Runs one turn as your account and answers with the messages it added: yours, then the Assistant's reply. The turn is paid from your credit and refused before it runs when the balance is below zero.
1773
+ *
1774
+ */
1775
+ static sendAssistantMessage(options) {
1776
+ return (options.client ?? client).post({
1777
+ url: "/v1/assistant/messages",
1778
+ ...options,
1779
+ headers: {
1780
+ "Content-Type": "application/json",
1781
+ ...options.headers
1782
+ }
1783
+ });
1784
+ }
1757
1785
  };
1758
1786
  var AuditLog = class {
1759
1787
  /**
@@ -9356,6 +9384,36 @@ const routes = {
9356
9384
  "in": "body"
9357
9385
  }]
9358
9386
  },
9387
+ "list-assistant-messages": {
9388
+ serviceClass: "Assistant",
9389
+ operationId: "listAssistantMessages",
9390
+ description: "The newest 100 messages of your conversation with the Assistant in the app, oldest first. An account that has not messaged it yet has an empty conversation.",
9391
+ moduleDocsUrl: "https://docs.naturali.ai/docs/modules/assistant",
9392
+ httpMethod: "get",
9393
+ pathParams: [],
9394
+ queryParams: [],
9395
+ headerParams: [],
9396
+ cookieParams: [],
9397
+ flags: []
9398
+ },
9399
+ "send-assistant-message": {
9400
+ serviceClass: "Assistant",
9401
+ operationId: "sendAssistantMessage",
9402
+ description: "Runs one turn as your account and answers with the messages it added: yours, then the Assistant's reply. The turn is paid from your credit and refused before it runs when the balance is below zero.",
9403
+ moduleDocsUrl: "https://docs.naturali.ai/docs/modules/assistant",
9404
+ httpMethod: "post",
9405
+ pathParams: [],
9406
+ queryParams: [],
9407
+ headerParams: [],
9408
+ cookieParams: [],
9409
+ flags: [{
9410
+ "name": "text",
9411
+ "description": "",
9412
+ "required": true,
9413
+ "type": "string",
9414
+ "in": "body"
9415
+ }]
9416
+ },
9359
9417
  "list-audit-entries": {
9360
9418
  serviceClass: "AuditLog",
9361
9419
  operationId: "listAuditEntries",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.167.0",
3
+ "version": "0.168.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "yaml": "^2.9.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@naturali/sdk": "0.167.0",
28
+ "@naturali/sdk": "0.168.0",
29
29
  "@ttoss/openapi-codegen": "^0.5.0",
30
30
  "@types/node": "^26.5.1",
31
31
  "tsdown": "^0.23.0",