@arbol-ai/sdk 2.1.0 → 2.2.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.
Files changed (58) hide show
  1. package/dist/raiz/agents/client.js +2 -2
  2. package/dist/raiz/agents/index.d.ts +1 -1
  3. package/dist/raiz/agents/models.d.ts +1 -46
  4. package/dist/raiz/agents/models.js +1 -5
  5. package/dist/raiz/bulletins/client.d.ts +182 -0
  6. package/dist/raiz/bulletins/client.js +53 -0
  7. package/dist/raiz/bulletins/index.d.ts +5 -0
  8. package/dist/raiz/bulletins/index.js +4 -0
  9. package/dist/raiz/bulletins/models.d.ts +53 -0
  10. package/dist/raiz/bulletins/models.js +12 -0
  11. package/dist/raiz/campaigns/client.js +2 -2
  12. package/dist/raiz/campaigns/index.d.ts +1 -1
  13. package/dist/raiz/campaigns/models.d.ts +6 -57
  14. package/dist/raiz/campaigns/models.js +1 -9
  15. package/dist/raiz/changes/client.js +1 -1
  16. package/dist/raiz/changes/models.d.ts +2 -2
  17. package/dist/raiz/channels/client.d.ts +2 -2
  18. package/dist/raiz/channels/client.js +3 -3
  19. package/dist/raiz/channels/index.d.ts +1 -1
  20. package/dist/raiz/channels/models.d.ts +23 -96
  21. package/dist/raiz/channels/models.js +2 -8
  22. package/dist/raiz/client.d.ts +2 -0
  23. package/dist/raiz/client.js +5 -0
  24. package/dist/raiz/contacts/client.js +6 -6
  25. package/dist/raiz/contacts/index.d.ts +1 -1
  26. package/dist/raiz/contacts/models.d.ts +4 -40
  27. package/dist/raiz/contacts/models.js +2 -8
  28. package/dist/raiz/conversations/client.d.ts +17 -11
  29. package/dist/raiz/conversations/client.js +5 -5
  30. package/dist/raiz/conversations/index.d.ts +1 -1
  31. package/dist/raiz/conversations/models.d.ts +17 -103
  32. package/dist/raiz/conversations/models.js +5 -12
  33. package/dist/raiz/definitions/client.js +2 -2
  34. package/dist/raiz/evalCases/client.js +2 -2
  35. package/dist/raiz/evalRuns/client.js +1 -1
  36. package/dist/raiz/facts/client.js +1 -1
  37. package/dist/raiz/index.d.ts +1 -1
  38. package/dist/raiz/knowledge/client.d.ts +3 -2
  39. package/dist/raiz/knowledge/client.js +4 -4
  40. package/dist/raiz/knowledge/index.d.ts +1 -1
  41. package/dist/raiz/knowledge/models.d.ts +1 -42
  42. package/dist/raiz/knowledge/models.js +1 -6
  43. package/dist/raiz/members/client.d.ts +3 -2
  44. package/dist/raiz/models.d.ts +17 -0
  45. package/dist/raiz/organization/client.d.ts +4 -2
  46. package/dist/raiz/organization/client.js +2 -2
  47. package/dist/raiz/organization/index.d.ts +1 -1
  48. package/dist/raiz/organization/models.d.ts +6 -4
  49. package/dist/raiz/profiles/client.js +2 -2
  50. package/dist/raiz/reports/client.d.ts +10 -9
  51. package/dist/raiz/reports/client.js +1 -1
  52. package/dist/raiz/reports/models.d.ts +2 -0
  53. package/dist/raiz/suppressions/client.d.ts +2 -1
  54. package/dist/raiz/suppressions/client.js +1 -1
  55. package/dist/raiz/tasks/client.js +4 -4
  56. package/dist/raiz/templates/client.d.ts +2 -1
  57. package/dist/raiz/voices/client.js +1 -1
  58. package/package.json +3 -3
@@ -19,26 +19,26 @@ const CancelOperation = {
19
19
  route: "/v1/raiz/tasks/cancel",
20
20
  body: "flat",
21
21
  response: object([["data", null, () => RaizTaskCodec]]),
22
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
22
+ 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 },
23
23
  };
24
24
  const GetOperation = {
25
25
  method: "GET",
26
26
  route: "/v1/raiz/tasks/get",
27
27
  query: { taskId: "taskId" },
28
28
  response: object([["data", null, () => RaizTaskCodec]]),
29
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
29
+ 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
30
  };
31
31
  const ListOperation = {
32
32
  method: "GET",
33
33
  route: "/v1/raiz/tasks",
34
34
  query: { cursor: "cursor", direction: "direction", limit: "limit", kind: "kind", status: "status" },
35
35
  response: object([["data", null, () => RaizTaskPageCodec]]),
36
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
36
+ 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 },
37
37
  };
38
38
  const RetryOperation = {
39
39
  method: "POST",
40
40
  route: "/v1/raiz/tasks/retry",
41
41
  body: "flat",
42
42
  response: object([["data", null, () => RaizTaskCodec]]),
43
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
43
+ 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 },
44
44
  };
@@ -1,5 +1,6 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
2
  import type { ResponseMetadata } from "../../models.js";
3
+ import type { RaizPhoneNumber } from "../models.js";
3
4
  import type { RaizTemplate, RaizTemplatePage } from "./models.js";
4
5
  export interface ClientOptions extends BaseClientOptions {
5
6
  /**
@@ -53,7 +54,7 @@ export interface CreateRequest {
53
54
  type: "url";
54
55
  url: string;
55
56
  } | {
56
- phoneNumber: string;
57
+ phoneNumber: RaizPhoneNumber;
57
58
  text: string;
58
59
  type: "phone_number";
59
60
  })[];
@@ -14,5 +14,5 @@ const ListOperation = {
14
14
  route: "/v1/raiz/voices",
15
15
  query: { cursor: "cursor", direction: "direction", limit: "limit", language: "language", q: "q" },
16
16
  response: null,
17
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
17
+ 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 },
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.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.20261019.4056",
54
- "sha256": "a160f98ddd0944d6e78111d113869b22cac6caabc036bb47f7609c009c37e501"
53
+ "release": "1.20261019.214511",
54
+ "sha256": "84dc23076d7f8fcdd9fc8ff13bb53ba4093f93613e32d3097f43fecf50e4f0d3"
55
55
  }
56
56
  }
57
57
  }