@arbol-ai/sdk 1.20261019.4056 → 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 (59) hide show
  1. package/README.md +38 -23
  2. package/dist/raiz/agents/client.js +2 -2
  3. package/dist/raiz/agents/index.d.ts +1 -1
  4. package/dist/raiz/agents/models.d.ts +1 -46
  5. package/dist/raiz/agents/models.js +1 -5
  6. package/dist/raiz/bulletins/client.d.ts +182 -0
  7. package/dist/raiz/bulletins/client.js +53 -0
  8. package/dist/raiz/bulletins/index.d.ts +5 -0
  9. package/dist/raiz/bulletins/index.js +4 -0
  10. package/dist/raiz/bulletins/models.d.ts +53 -0
  11. package/dist/raiz/bulletins/models.js +12 -0
  12. package/dist/raiz/campaigns/client.js +2 -2
  13. package/dist/raiz/campaigns/index.d.ts +1 -1
  14. package/dist/raiz/campaigns/models.d.ts +6 -57
  15. package/dist/raiz/campaigns/models.js +1 -9
  16. package/dist/raiz/changes/client.js +1 -1
  17. package/dist/raiz/changes/models.d.ts +2 -2
  18. package/dist/raiz/channels/client.d.ts +2 -2
  19. package/dist/raiz/channels/client.js +3 -3
  20. package/dist/raiz/channels/index.d.ts +1 -1
  21. package/dist/raiz/channels/models.d.ts +23 -96
  22. package/dist/raiz/channels/models.js +2 -8
  23. package/dist/raiz/client.d.ts +2 -0
  24. package/dist/raiz/client.js +5 -0
  25. package/dist/raiz/contacts/client.js +6 -6
  26. package/dist/raiz/contacts/index.d.ts +1 -1
  27. package/dist/raiz/contacts/models.d.ts +4 -40
  28. package/dist/raiz/contacts/models.js +2 -8
  29. package/dist/raiz/conversations/client.d.ts +17 -11
  30. package/dist/raiz/conversations/client.js +5 -5
  31. package/dist/raiz/conversations/index.d.ts +1 -1
  32. package/dist/raiz/conversations/models.d.ts +17 -103
  33. package/dist/raiz/conversations/models.js +5 -12
  34. package/dist/raiz/definitions/client.js +2 -2
  35. package/dist/raiz/evalCases/client.js +2 -2
  36. package/dist/raiz/evalRuns/client.js +1 -1
  37. package/dist/raiz/facts/client.js +1 -1
  38. package/dist/raiz/index.d.ts +1 -1
  39. package/dist/raiz/knowledge/client.d.ts +3 -2
  40. package/dist/raiz/knowledge/client.js +4 -4
  41. package/dist/raiz/knowledge/index.d.ts +1 -1
  42. package/dist/raiz/knowledge/models.d.ts +1 -42
  43. package/dist/raiz/knowledge/models.js +1 -6
  44. package/dist/raiz/members/client.d.ts +3 -2
  45. package/dist/raiz/models.d.ts +17 -0
  46. package/dist/raiz/organization/client.d.ts +4 -2
  47. package/dist/raiz/organization/client.js +2 -2
  48. package/dist/raiz/organization/index.d.ts +1 -1
  49. package/dist/raiz/organization/models.d.ts +6 -4
  50. package/dist/raiz/profiles/client.js +2 -2
  51. package/dist/raiz/reports/client.d.ts +10 -9
  52. package/dist/raiz/reports/client.js +1 -1
  53. package/dist/raiz/reports/models.d.ts +2 -0
  54. package/dist/raiz/suppressions/client.d.ts +2 -1
  55. package/dist/raiz/suppressions/client.js +1 -1
  56. package/dist/raiz/tasks/client.js +4 -4
  57. package/dist/raiz/templates/client.d.ts +2 -1
  58. package/dist/raiz/voices/client.js +1 -1
  59. package/package.json +9 -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": "1.20261019.4056",
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",
@@ -39,7 +39,7 @@
39
39
  "forge": "cargo install --quiet --locked --git https://github.com/cloudflare/forge --rev 7f86447210b7bea3779bfdab3cd5655eade0eadb --root .forge forge",
40
40
  "openapi": "curl -fsS --proto =https --max-redirs 0 --max-filesize 33554432 -o openapi.json https://api.getarbol.com/openapi.json",
41
41
  "hash": "bun scripts/release.ts hash",
42
- "generate": "rm -rf src && .forge/bin/forge --target ts --out src openapi.json && bun pm pkg set version=\"$(jq -r .info.version openapi.json)\" && bun scripts/release.ts record",
42
+ "generate": "rm -rf src && .forge/bin/forge --target ts --out src openapi.json && bun scripts/release.ts record",
43
43
  "typecheck": "tsc -p tsconfig.json --noEmit",
44
44
  "build": "rm -rf dist && tsc -p tsconfig.json",
45
45
  "verify": "bun run typecheck && bun run build"
@@ -47,5 +47,11 @@
47
47
  "devDependencies": {
48
48
  "typescript": "7.0.2"
49
49
  },
50
- "packageManager": "bun@1.4.3"
50
+ "packageManager": "bun@1.4.3",
51
+ "arbol": {
52
+ "openapi": {
53
+ "release": "1.20261019.214511",
54
+ "sha256": "84dc23076d7f8fcdd9fc8ff13bb53ba4093f93613e32d3097f43fecf50e4f0d3"
55
+ }
56
+ }
51
57
  }