@naturali/sdk 0.215.0 → 0.217.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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.mts +12 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1795,7 +1795,7 @@ var Assistant = class {
|
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Read the turn's context
|
|
1797
1797
|
*
|
|
1798
|
-
* 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
|
|
1798
|
+
* What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
|
|
1799
1799
|
*
|
|
1800
1800
|
*/
|
|
1801
1801
|
static getAssistantContext(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -2359,14 +2359,18 @@ type AssistantMessageCreate = {
|
|
|
2359
2359
|
context?: AssistantPageContext;
|
|
2360
2360
|
};
|
|
2361
2361
|
/**
|
|
2362
|
-
* Where in the app the message was sent from. The turn can read
|
|
2362
|
+
* Where in the app the message was sent from, and the pages the person added to it. The turn can read both back with `GET /v1/assistant/context`, so "this playbook" means the one on screen. Only paths travel; what the pages show, the Assistant reads from the API itself.
|
|
2363
2363
|
*
|
|
2364
2364
|
*/
|
|
2365
2365
|
type AssistantPageContext = {
|
|
2366
2366
|
/**
|
|
2367
|
-
*
|
|
2367
|
+
* The app page beside the conversation, starting with `/`; never a URL.
|
|
2368
2368
|
*/
|
|
2369
|
-
path
|
|
2369
|
+
path?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* App pages the person added to this message; a repeated one counts once.
|
|
2372
|
+
*/
|
|
2373
|
+
attached?: Array<string>;
|
|
2370
2374
|
};
|
|
2371
2375
|
/**
|
|
2372
2376
|
* The context of the Assistant turn the call runs in.
|
|
@@ -2377,6 +2381,10 @@ type AssistantTurnContext = {
|
|
|
2377
2381
|
*
|
|
2378
2382
|
*/
|
|
2379
2383
|
path: string | null;
|
|
2384
|
+
/**
|
|
2385
|
+
* The app pages the person added to the turn's message; empty outside a turn.
|
|
2386
|
+
*/
|
|
2387
|
+
attached: Array<string>;
|
|
2380
2388
|
};
|
|
2381
2389
|
/**
|
|
2382
2390
|
* The messages one turn added — yours, then the Assistant's reply.
|
|
@@ -33186,7 +33194,7 @@ export declare class Assistant {
|
|
|
33186
33194
|
/**
|
|
33187
33195
|
* Read the turn's context
|
|
33188
33196
|
*
|
|
33189
|
-
* 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
|
|
33197
|
+
* What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
|
|
33190
33198
|
*
|
|
33191
33199
|
*/
|
|
33192
33200
|
static getAssistantContext<ThrowOnError extends boolean = false>(options?: Options<GetAssistantContextData, ThrowOnError>): RequestResult<GetAssistantContextResponses, GetAssistantContextErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -2359,14 +2359,18 @@ type AssistantMessageCreate = {
|
|
|
2359
2359
|
context?: AssistantPageContext;
|
|
2360
2360
|
};
|
|
2361
2361
|
/**
|
|
2362
|
-
* Where in the app the message was sent from. The turn can read
|
|
2362
|
+
* Where in the app the message was sent from, and the pages the person added to it. The turn can read both back with `GET /v1/assistant/context`, so "this playbook" means the one on screen. Only paths travel; what the pages show, the Assistant reads from the API itself.
|
|
2363
2363
|
*
|
|
2364
2364
|
*/
|
|
2365
2365
|
type AssistantPageContext = {
|
|
2366
2366
|
/**
|
|
2367
|
-
*
|
|
2367
|
+
* The app page beside the conversation, starting with `/`; never a URL.
|
|
2368
2368
|
*/
|
|
2369
|
-
path
|
|
2369
|
+
path?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* App pages the person added to this message; a repeated one counts once.
|
|
2372
|
+
*/
|
|
2373
|
+
attached?: Array<string>;
|
|
2370
2374
|
};
|
|
2371
2375
|
/**
|
|
2372
2376
|
* The context of the Assistant turn the call runs in.
|
|
@@ -2377,6 +2381,10 @@ type AssistantTurnContext = {
|
|
|
2377
2381
|
*
|
|
2378
2382
|
*/
|
|
2379
2383
|
path: string | null;
|
|
2384
|
+
/**
|
|
2385
|
+
* The app pages the person added to the turn's message; empty outside a turn.
|
|
2386
|
+
*/
|
|
2387
|
+
attached: Array<string>;
|
|
2380
2388
|
};
|
|
2381
2389
|
/**
|
|
2382
2390
|
* The messages one turn added — yours, then the Assistant's reply.
|
|
@@ -33186,7 +33194,7 @@ export declare class Assistant {
|
|
|
33186
33194
|
/**
|
|
33187
33195
|
* Read the turn's context
|
|
33188
33196
|
*
|
|
33189
|
-
* 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
|
|
33197
|
+
* What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
|
|
33190
33198
|
*
|
|
33191
33199
|
*/
|
|
33192
33200
|
static getAssistantContext<ThrowOnError extends boolean = false>(options?: Options<GetAssistantContextData, ThrowOnError>): RequestResult<GetAssistantContextResponses, GetAssistantContextErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -1794,7 +1794,7 @@ var Assistant = class {
|
|
|
1794
1794
|
/**
|
|
1795
1795
|
* Read the turn's context
|
|
1796
1796
|
*
|
|
1797
|
-
* 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
|
|
1797
|
+
* What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
|
|
1798
1798
|
*
|
|
1799
1799
|
*/
|
|
1800
1800
|
static getAssistantContext(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.217.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.217.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|