@naturali/cli 0.214.5 → 0.215.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 +48 -14
  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.214.5";
20
+ var version = "0.215.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1813,6 +1813,18 @@ var Assistant = class {
1813
1813
  });
1814
1814
  }
1815
1815
  /**
1816
+ * Read the turn's context
1817
+ *
1818
+ * What the Assistant turn this call runs in was sent with: the app page the person had open. The Assistant calls it when a message points at the screen ("this playbook"). Any other caller reads `path: null`.
1819
+ *
1820
+ */
1821
+ static getAssistantContext(options) {
1822
+ return (options?.client ?? client).get({
1823
+ url: "/v1/assistant/context",
1824
+ ...options
1825
+ });
1826
+ }
1827
+ /**
1816
1828
  * List your conversations
1817
1829
  *
1818
1830
  * Your conversations with the Assistant in the app, newest first. Each is a session of its own; a conversation on Discord or WhatsApp is not listed here.
@@ -10263,6 +10275,18 @@ const routes = {
10263
10275
  "in": "body"
10264
10276
  }]
10265
10277
  },
10278
+ "get-assistant-context": {
10279
+ serviceClass: "Assistant",
10280
+ operationId: "getAssistantContext",
10281
+ description: "What the Assistant turn this call runs in was sent with: the app page the person had open. The Assistant calls it when a message points at the screen (\"this playbook\"). Any other caller reads `path: null`.",
10282
+ moduleDocsUrl: "https://naturali.ai/docs/modules/assistant",
10283
+ httpMethod: "get",
10284
+ pathParams: [],
10285
+ queryParams: [],
10286
+ headerParams: [],
10287
+ cookieParams: [],
10288
+ flags: []
10289
+ },
10266
10290
  "list-assistant-sessions": {
10267
10291
  serviceClass: "Assistant",
10268
10292
  operationId: "listAssistantSessions",
@@ -10396,19 +10420,29 @@ const routes = {
10396
10420
  queryParams: [],
10397
10421
  headerParams: [],
10398
10422
  cookieParams: [],
10399
- flags: [{
10400
- "name": "session_id",
10401
- "description": "Assistant session ID, as listed.",
10402
- "required": true,
10403
- "type": "string",
10404
- "in": "path"
10405
- }, {
10406
- "name": "content",
10407
- "description": "",
10408
- "required": true,
10409
- "type": "string",
10410
- "in": "body"
10411
- }]
10423
+ flags: [
10424
+ {
10425
+ "name": "session_id",
10426
+ "description": "Assistant session ID, as listed.",
10427
+ "required": true,
10428
+ "type": "string",
10429
+ "in": "path"
10430
+ },
10431
+ {
10432
+ "name": "content",
10433
+ "description": "",
10434
+ "required": true,
10435
+ "type": "string",
10436
+ "in": "body"
10437
+ },
10438
+ {
10439
+ "name": "context",
10440
+ "description": "Where in the app the message was sent from. The turn can read it back with `GET /v1/assistant/context`, so \"this playbook\" means the one on screen. Only the path travels; what the page shows, the Assistant reads from the API itself.\n",
10441
+ "required": false,
10442
+ "type": "object",
10443
+ "in": "body"
10444
+ }
10445
+ ]
10412
10446
  },
10413
10447
  "list-audit-entries": {
10414
10448
  serviceClass: "AuditLog",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.214.5",
3
+ "version": "0.215.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.214.5",
34
+ "@naturali/sdk": "0.215.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",