@proteos/sdk 0.39.0 → 0.40.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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -15
- package/dist/index.d.ts +78 -15
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agent/index.ts +1 -0
- package/src/agent/session-types.ts +9 -2
- package/src/agent/types.ts +15 -2
- package/src/conversation/index.ts +24 -3
- package/src/conversation/types.ts +45 -6
- package/src/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1382,10 +1382,11 @@ var ConnectionServiceImpl = class {
|
|
|
1382
1382
|
request
|
|
1383
1383
|
);
|
|
1384
1384
|
}
|
|
1385
|
-
async delete(id) {
|
|
1386
|
-
await this.client.
|
|
1385
|
+
async delete(id, query = {}) {
|
|
1386
|
+
await this.client.requestWithQuery(
|
|
1387
1387
|
"DELETE",
|
|
1388
|
-
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}
|
|
1388
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1389
|
+
query
|
|
1389
1390
|
);
|
|
1390
1391
|
}
|
|
1391
1392
|
install(id) {
|
|
@@ -1537,6 +1538,12 @@ var ConversationServiceImpl = class {
|
|
|
1537
1538
|
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
|
|
1538
1539
|
);
|
|
1539
1540
|
}
|
|
1541
|
+
delete(id) {
|
|
1542
|
+
return this.client.request(
|
|
1543
|
+
"DELETE",
|
|
1544
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
|
|
1545
|
+
);
|
|
1546
|
+
}
|
|
1540
1547
|
markRead(id) {
|
|
1541
1548
|
return this.client.request(
|
|
1542
1549
|
"POST",
|