@arbol-ai/sdk 5.32.0 → 5.33.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 (62) hide show
  1. package/dist/account/permissions/models.d.ts +1 -1
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.js +5 -0
  4. package/dist/comfachoco/affiliations/client.d.ts +24 -0
  5. package/dist/comfachoco/affiliations/client.js +19 -0
  6. package/dist/comfachoco/affiliations/index.d.ts +5 -0
  7. package/dist/comfachoco/affiliations/index.js +4 -0
  8. package/dist/comfachoco/affiliations/models.d.ts +97 -0
  9. package/dist/comfachoco/affiliations/models.js +13 -0
  10. package/dist/comfachoco/client.d.ts +15 -0
  11. package/dist/comfachoco/client.js +20 -0
  12. package/dist/comfachoco/connections/client.d.ts +55 -0
  13. package/dist/comfachoco/connections/client.js +33 -0
  14. package/dist/comfachoco/connections/index.d.ts +5 -0
  15. package/dist/comfachoco/connections/index.js +4 -0
  16. package/dist/comfachoco/connections/models.d.ts +204 -0
  17. package/dist/comfachoco/connections/models.js +9 -0
  18. package/dist/comfachoco/index.d.ts +5 -0
  19. package/dist/comfachoco/index.js +4 -0
  20. package/dist/comfachoco/models.d.ts +220 -0
  21. package/dist/comfachoco/models.js +3 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/models.d.ts +12 -0
  24. package/dist/models.js +3 -0
  25. package/dist/nuevaEps/affiliations/models.d.ts +2 -2
  26. package/dist/nuevaEps/client.d.ts +6 -0
  27. package/dist/nuevaEps/client.js +15 -0
  28. package/dist/nuevaEps/connections/models.d.ts +6 -5
  29. package/dist/nuevaEps/index.d.ts +1 -1
  30. package/dist/nuevaEps/ingestionErrorReports/client.d.ts +33 -0
  31. package/dist/nuevaEps/ingestionErrorReports/client.js +19 -0
  32. package/dist/nuevaEps/ingestionErrorReports/index.d.ts +5 -0
  33. package/dist/nuevaEps/ingestionErrorReports/index.js +4 -0
  34. package/dist/nuevaEps/ingestionErrorReports/models.d.ts +87 -0
  35. package/dist/nuevaEps/ingestionErrorReports/models.js +10 -0
  36. package/dist/nuevaEps/ingestions/client.d.ts +68 -0
  37. package/dist/nuevaEps/ingestions/client.js +26 -0
  38. package/dist/nuevaEps/ingestions/index.d.ts +5 -0
  39. package/dist/nuevaEps/ingestions/index.js +4 -0
  40. package/dist/nuevaEps/ingestions/models.d.ts +182 -0
  41. package/dist/nuevaEps/ingestions/models.js +3 -0
  42. package/dist/nuevaEps/models.d.ts +65 -0
  43. package/dist/nuevaEps/precursoras/client.d.ts +27 -0
  44. package/dist/nuevaEps/precursoras/client.js +18 -0
  45. package/dist/nuevaEps/precursoras/index.d.ts +5 -0
  46. package/dist/nuevaEps/precursoras/index.js +4 -0
  47. package/dist/nuevaEps/precursoras/models.d.ts +94 -0
  48. package/dist/nuevaEps/precursoras/models.js +3 -0
  49. package/dist/raiz/channels/models.d.ts +10 -10
  50. package/dist/raiz/channels/models.js +1 -1
  51. package/dist/raiz/conversations/client.d.ts +24 -9
  52. package/dist/raiz/conversations/index.d.ts +1 -1
  53. package/dist/raiz/conversations/models.d.ts +3 -14
  54. package/dist/raiz/conversations/models.js +2 -4
  55. package/dist/raiz/index.d.ts +1 -1
  56. package/dist/raiz/knowledge/client.d.ts +4 -3
  57. package/dist/raiz/models.d.ts +8 -2
  58. package/dist/raiz/reports/client.d.ts +35 -20
  59. package/dist/raiz/reports/client.js +1 -1
  60. package/dist/raiz/reports/models.d.ts +21 -0
  61. package/dist/raiz/reports/models.js +1 -1
  62. package/package.json +5 -4
@@ -807,7 +807,14 @@ export interface RaizFailureResponse {
807
807
  data: {
808
808
  [key: string]: unknown;
809
809
  };
810
- message: "No voice line can place this call. Give an active outbound voice channel, or assign one to the Agent.";
810
+ message: "No voice line can place this call. Name an active outbound line of the organization with `from` or `channelId`, or assign one to the Agent.";
811
+ retryable: false;
812
+ } | {
813
+ code: "VOICE_NOT_AVAILABLE";
814
+ data: {
815
+ [key: string]: unknown;
816
+ };
817
+ message: "This voice is not available. Choose one from `listVoices`.";
811
818
  retryable: false;
812
819
  } | {
813
820
  code: "VOICE_NUMBER_IN_USE";
@@ -1047,7 +1054,6 @@ export interface RaizFailureResponse {
1047
1054
  metadata: RaizResponseMetadata;
1048
1055
  success: false;
1049
1056
  }
1050
- export type RaizHttpsUrl = string;
1051
1057
  export interface RaizOutsideHoursTemplate {
1052
1058
  /**
1053
1059
  * The template's language in WhatsApp's code, for example `es` or `es_MX`.
@@ -12,10 +12,13 @@ export interface Client {
12
12
  * Get a report
13
13
  *
14
14
  * Get the numbers behind a question. `name`: `conversations_daily`
15
- * (conversations the AI took part in, per day), `booking_outcomes` (verified
16
- * saved booking receipts by completion day and integration, excluding tests,
17
- * imports and deleted conversations; createdCount counts new appointments
18
- * created by the AI, not confirmations of existing appointments;
15
+ * (conversations the AI took part in, per day), `booking_details` (verified
16
+ * individual creation receipts with patient, specialty, appointments and
17
+ * later recorded cancellations; also requires conversation read/write
18
+ * permission; filter specialty by its recorded code), `booking_outcomes`
19
+ * (verified saved booking receipts by completion day and integration,
20
+ * excluding tests, imports and deleted conversations; createdCount counts new
21
+ * appointments created by the AI, not confirmations of existing appointments;
19
22
  * confirmedCount is its compatibility alias and must not be added again;
20
23
  * reschedules, cancellations, failures, pending and unverified results
21
24
  * separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls`
@@ -37,6 +40,11 @@ export interface Client {
37
40
  export declare function createClient(options: ClientOptions): Client;
38
41
  export declare function bind(transport: Transport): Client;
39
42
  export interface GetRequest {
43
+ /**
44
+ * Only booking_details: exact specialty code recorded in the booking
45
+ * (case-insensitive). Omit to read all specialties.
46
+ */
47
+ specialty?: string;
40
48
  /**
41
49
  * Agent id.
42
50
  */
@@ -58,23 +66,30 @@ export interface GetRequest {
58
66
  /**
59
67
  * `conversations_daily`: conversations the AI took part in per day, Agent,
60
68
  * channel type and direction, with outcomes and escalations (filters
61
- * `agentId`, `channelType`). `booking_outcomes`: verified saved booking
62
- * receipts per completion day, Agent and integration, excluding
63
- * test/import/deleted conversations; confirmed new bookings, reschedules,
64
- * cancellations, failed, pending, unverified and duplicate receipts
65
- * separately (filter `agentId`). Historical evidence, not current appointment
66
- * status; hasMore requires splitting the range and returns no partial totals.
67
- * `tool_calls_daily`: tool calls per day, Agent and tool with
68
- * failures/durations (filter `agentId`). `tool_calls`: individual calls,
69
- * never inputs/outputs (filter `agentId`). `assessment_results_daily`:
70
- * assessments per day/definition (filter `definitionId`). `pqrsf_daily`:
71
- * classification, confirmed resolution and referral-link counts from the
72
- * pqrsf_* definitions, including pending/unclassified conversations,
73
- * excluding tests/imports/deleted records (filters `agentId`, `channelType`);
74
- * no measured filing reduction is inferred. `campaign_progress`: recipients
75
- * by status (filter `campaignId`; no dates).
69
+ * `agentId`, `channelType`). `booking_details`: individual patients and
70
+ * appointments from explicit successful creation receipts, including
71
+ * specialty, paired exams, deduplication, matched patient names and later
72
+ * recorded cancellations; filters agentId and specialty; requires
73
+ * conversation read/write permission too. Historical receipts with
74
+ * created=true, not current provider status or all provider protocols.
75
+ * unverifiedCount covers explicit creations missing a stable patient/slot.
76
+ * `booking_outcomes`: verified saved booking receipts per completion day,
77
+ * Agent and integration, excluding test/import/deleted conversations;
78
+ * confirmed new bookings, reschedules, cancellations, failed, pending,
79
+ * unverified and duplicate receipts separately (filter `agentId`). Historical
80
+ * evidence, not current appointment status; hasMore requires splitting the
81
+ * range and returns no partial totals. `tool_calls_daily`: tool calls per
82
+ * day, Agent and tool with failures/durations (filter `agentId`).
83
+ * `tool_calls`: individual calls, never inputs/outputs (filter `agentId`).
84
+ * `assessment_results_daily`: assessments per day/definition (filter
85
+ * `definitionId`). `pqrsf_daily`: classification, confirmed resolution and
86
+ * referral-link counts from the pqrsf_* definitions, including
87
+ * pending/unclassified conversations, excluding tests/imports/deleted records
88
+ * (filters `agentId`, `channelType`); no measured filing reduction is
89
+ * inferred. `campaign_progress`: recipients by status (filter `campaignId`;
90
+ * no dates).
76
91
  */
77
- name: "conversations_daily" | "pqrsf_daily" | "tool_calls_daily" | "tool_calls" | "booking_outcomes" | "assessment_results_daily" | "campaign_progress";
92
+ name: "conversations_daily" | "pqrsf_daily" | "tool_calls_daily" | "tool_calls" | "booking_outcomes" | "booking_details" | "assessment_results_daily" | "campaign_progress";
78
93
  /**
79
94
  * Last day (`YYYY-MM-DD`), inclusive, of a daily report. Default: today in
80
95
  * the organization's time zone.
@@ -13,7 +13,7 @@ export function bind(transport) {
13
13
  const GetOperation = {
14
14
  method: "GET",
15
15
  route: "/v1/raiz/reports",
16
- query: { agentId: "agentId", campaignId: "campaignId", channelType: "channelType", definitionId: "definitionId", from: "from", name: "name", to: "to" },
16
+ query: { specialty: "specialty", agentId: "agentId", campaignId: "campaignId", channelType: "channelType", definitionId: "definitionId", from: "from", name: "name", to: "to" },
17
17
  response: object([["data", null, () => RaizReportCodec]]),
18
18
  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 },
19
19
  };
@@ -92,6 +92,27 @@ export type RaizReport = {
92
92
  unverifiedCount: number;
93
93
  }[];
94
94
  to: Temporal.PlainDate;
95
+ } | {
96
+ from: Temporal.PlainDate;
97
+ hasMore: boolean;
98
+ name: "booking_details";
99
+ rows: {
100
+ appointmentDate: Temporal.PlainDate;
101
+ appointmentTime: string;
102
+ cancelledAt: Temporal.Instant | null;
103
+ conversationId: string;
104
+ createdAt: Temporal.Instant;
105
+ day: Temporal.PlainDate;
106
+ exam: string | null;
107
+ messageId: string;
108
+ patientDocument: string;
109
+ patientName: string | null;
110
+ professionalName: string | null;
111
+ specialty: string | null;
112
+ }[];
113
+ snapshotAt: Temporal.Instant;
114
+ to: Temporal.PlainDate;
115
+ unverifiedCount: number;
95
116
  } | {
96
117
  from: Temporal.PlainDate;
97
118
  hasMore: boolean;
@@ -1,4 +1,4 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { array, date, instant, object, union } from "../../_/index.js";
4
- export const RaizReportCodec = union([object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["occurredAt", null, instant]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]])]);
4
+ export const RaizReportCodec = union([object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["occurredAt", null, instant]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["appointmentDate", null, date], ["cancelledAt", null, instant], ["createdAt", null, instant], ["day", null, date]]))], ["snapshotAt", null, instant], ["to", null, date]]), object([["from", null, date], ["rows", null, array(object([["day", null, date]]))], ["to", null, date]])]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.32.0",
3
+ "version": "5.33.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",
@@ -49,7 +49,8 @@
49
49
  "typecheck": "tsc -p tsconfig.json --noEmit",
50
50
  "build": "rm -rf dist && tsc -p tsconfig.json",
51
51
  "test": "bun test ./tests",
52
- "verify": "bun run typecheck && bun run test && bun run build"
52
+ "verify": "bun run typecheck && bun run build",
53
+ "verify:with-tests": "bun run typecheck && bun run test && bun run build"
53
54
  },
54
55
  "devDependencies": {
55
56
  "typescript": "7.0.2"
@@ -57,8 +58,8 @@
57
58
  "packageManager": "bun@1.4.3",
58
59
  "arbol": {
59
60
  "openapi": {
60
- "release": "1.20261104.175529",
61
- "sha256": "1b369c7b1b5ca963a101a6b551fb7382d5e951b750583bd74122c518817ac2d4"
61
+ "release": "1.20261105.5813",
62
+ "sha256": "608afec9826be487c1894d6251251afa6b6f329d8145fb1d1f26a306a8b7be26"
62
63
  }
63
64
  }
64
65
  }