@arbol-ai/sdk 2.8.0 → 2.9.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.
@@ -1,5 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
2
+ import type { DeletedObject, ResponseMetadata } from "../../models.js";
3
3
  import type { RaizCount } from "../models.js";
4
4
  import { type RaizConversation, type RaizConversationPage } from "./models.js";
5
5
  export interface ClientOptions extends BaseClientOptions {
@@ -32,6 +32,14 @@ export interface Client {
32
32
  * use `get_report`.
33
33
  */
34
34
  count(request?: CountRequest, options?: RequestOptions): Promise<CountResponse>;
35
+ /**
36
+ * Delete a conversation
37
+ *
38
+ * Delete a closed conversation: it leaves every list and report, its
39
+ * transcript and facts are kept, and the history records who deleted it. Not
40
+ * an AI tool.
41
+ */
42
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
35
43
  /**
36
44
  * Get a conversation
37
45
  *
@@ -197,6 +205,18 @@ export interface CountResponse {
197
205
  metadata: ResponseMetadata;
198
206
  success: true;
199
207
  }
208
+ export interface DeleteRequest {
209
+ /**
210
+ * Conversation id.
211
+ */
212
+ conversationId: string;
213
+ }
214
+ export interface DeleteResponse {
215
+ data: DeletedObject;
216
+ error: null;
217
+ metadata: ResponseMetadata;
218
+ success: true;
219
+ }
200
220
  export interface GetRequest {
201
221
  /**
202
222
  * Conversation id.
@@ -9,6 +9,7 @@ export function bind(transport) {
9
9
  return {
10
10
  continue: (request, options) => transport.send(ContinueOperation, request, options),
11
11
  count: (request, options) => transport.send(CountOperation, request, options),
12
+ delete: (request, options) => transport.send(DeleteOperation, request, options),
12
13
  get: (request, options) => transport.send(GetOperation, request, options),
13
14
  list: (request, options) => transport.send(ListOperation, request, options),
14
15
  update: (request, options) => transport.send(UpdateOperation, request, options),
@@ -28,6 +29,13 @@ const CountOperation = {
28
29
  response: null,
29
30
  errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
30
31
  };
32
+ const DeleteOperation = {
33
+ method: "DELETE",
34
+ route: "/v1/raiz/conversations/delete",
35
+ body: "flat",
36
+ response: null,
37
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
38
+ };
31
39
  const GetOperation = {
32
40
  method: "GET",
33
41
  route: "/v1/raiz/conversations/get",
@@ -1,5 +1,5 @@
1
1
  export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, ContinueRequest, ContinueResponse, CountRequest, CountResponse, GetRequest, GetResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
4
+ export type { Client, ClientOptions, ContinueRequest, ContinueResponse, CountRequest, CountResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
5
  export type { RaizConversation, RaizConversationPage, RaizConversationWorker, RaizMessage, RaizMessagePage, RaizSignedUrl, } from "./models.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -50,8 +50,8 @@
50
50
  "packageManager": "bun@1.4.3",
51
51
  "arbol": {
52
52
  "openapi": {
53
- "release": "1.20261023.13947",
54
- "sha256": "1c5faf8f909599f3c67cb00c9370946d6ffd505ee2885a7d62170f253b3c736d"
53
+ "release": "1.20261023.34948",
54
+ "sha256": "5e0595dc6bae6f9f6ac64d2a632d1b1d6bf0bfbdbd2bb939a80407b38f69f96a"
55
55
  }
56
56
  }
57
57
  }