@naturali/cli 0.141.3 → 0.141.5
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.mjs +59 -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.141.
|
|
20
|
+
var version = "0.141.5";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1029,6 +1029,18 @@ var Channels = class {
|
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
1031
|
/**
|
|
1032
|
+
* Delete a conversation
|
|
1033
|
+
*
|
|
1034
|
+
* Removes the conversation and the runtime session it maps to. The address, its actor and its other conversations are left alone; the address's next message opens a fresh conversation. To erase the address itself, use [`DELETE /v1/projects/{project_id}/addresses/{identifier}`](/docs/api/addresses/delete-address).
|
|
1035
|
+
*
|
|
1036
|
+
*/
|
|
1037
|
+
static deleteChannelConversation(options) {
|
|
1038
|
+
return (options.client ?? client).delete({
|
|
1039
|
+
url: "/v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}",
|
|
1040
|
+
...options
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1032
1044
|
* Get a conversation
|
|
1033
1045
|
*
|
|
1034
1046
|
* Where the conversation points: the address it belongs to, the route (or sentinel) whose action opened it, and the runtime session it maps 1:1 to. The messages are not here — read them with [`GET /v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}/messages`](/docs/api/channels/list-channel-conversation-messages).
|
|
@@ -7073,7 +7085,7 @@ const routes = {
|
|
|
7073
7085
|
httpMethod: "put",
|
|
7074
7086
|
pathParams: ["project_id", "agent_id"],
|
|
7075
7087
|
queryParams: [],
|
|
7076
|
-
headerParams: [],
|
|
7088
|
+
headerParams: ["If-Match"],
|
|
7077
7089
|
cookieParams: [],
|
|
7078
7090
|
flags: [
|
|
7079
7091
|
{
|
|
@@ -7090,6 +7102,13 @@ const routes = {
|
|
|
7090
7102
|
"type": "string",
|
|
7091
7103
|
"in": "path"
|
|
7092
7104
|
},
|
|
7105
|
+
{
|
|
7106
|
+
"name": "If-Match",
|
|
7107
|
+
"description": "The version the caller believes the resource holds, as an entity tag (`3` or `\"3\"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.",
|
|
7108
|
+
"required": false,
|
|
7109
|
+
"type": "string",
|
|
7110
|
+
"in": "header"
|
|
7111
|
+
},
|
|
7093
7112
|
{
|
|
7094
7113
|
"name": "ai_provider_id",
|
|
7095
7114
|
"description": "",
|
|
@@ -9677,6 +9696,44 @@ const routes = {
|
|
|
9677
9696
|
}
|
|
9678
9697
|
]
|
|
9679
9698
|
},
|
|
9699
|
+
"delete-channel-conversation": {
|
|
9700
|
+
serviceClass: "Channels",
|
|
9701
|
+
operationId: "deleteChannelConversation",
|
|
9702
|
+
description: "Removes the conversation and the runtime session it maps to. The address, its actor and its other conversations are left alone; the address's next message opens a fresh conversation. To erase the address itself, use [`DELETE /v1/projects/{project_id}/addresses/{identifier}`](/docs/api/addresses/delete-address).",
|
|
9703
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/channels",
|
|
9704
|
+
httpMethod: "delete",
|
|
9705
|
+
pathParams: [
|
|
9706
|
+
"project_id",
|
|
9707
|
+
"channel_id",
|
|
9708
|
+
"conversation_id"
|
|
9709
|
+
],
|
|
9710
|
+
queryParams: [],
|
|
9711
|
+
headerParams: [],
|
|
9712
|
+
cookieParams: [],
|
|
9713
|
+
flags: [
|
|
9714
|
+
{
|
|
9715
|
+
"name": "project_id",
|
|
9716
|
+
"description": "Project public ID (proj_ prefix).",
|
|
9717
|
+
"required": true,
|
|
9718
|
+
"type": "string",
|
|
9719
|
+
"in": "path"
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
"name": "channel_id",
|
|
9723
|
+
"description": "Channel public ID (chan_ prefix).",
|
|
9724
|
+
"required": true,
|
|
9725
|
+
"type": "string",
|
|
9726
|
+
"in": "path"
|
|
9727
|
+
},
|
|
9728
|
+
{
|
|
9729
|
+
"name": "conversation_id",
|
|
9730
|
+
"description": "Conversation public ID (conv_ prefix).",
|
|
9731
|
+
"required": true,
|
|
9732
|
+
"type": "string",
|
|
9733
|
+
"in": "path"
|
|
9734
|
+
}
|
|
9735
|
+
]
|
|
9736
|
+
},
|
|
9680
9737
|
"list-channel-conversation-messages": {
|
|
9681
9738
|
serviceClass: "Channels",
|
|
9682
9739
|
operationId: "listChannelConversationMessages",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.141.
|
|
3
|
+
"version": "0.141.5",
|
|
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.141.
|
|
28
|
+
"@naturali/sdk": "0.141.5",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|