@naturali/cli 0.141.4 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +51 -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.141.4";
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).
@@ -9684,6 +9696,44 @@ const routes = {
9684
9696
  }
9685
9697
  ]
9686
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
+ },
9687
9737
  "list-channel-conversation-messages": {
9688
9738
  serviceClass: "Channels",
9689
9739
  operationId: "listChannelConversationMessages",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.141.4",
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.4",
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",