@arbol-ai/sdk 2.3.0 → 2.5.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.
@@ -12,14 +12,22 @@ 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), `tool_calls_daily` (Agent
16
- * tool calls per day), `tool_calls` (each call, newest first),
17
- * `assessment_results_daily` (assessment results per day), each over days in
18
- * the organization's time zone (`from`, `to`; the last 30 days by default),
19
- * or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId`
20
- * or `definitionId`; a filter that does not apply to the report fails with
21
- * REPORT_FILTER_UNSUPPORTED. At most 1000 rows: `hasMore` means narrow the
22
- * range. The `reports-and-charts` skill turns results into a chart or table.
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;
19
+ * confirmedCount is its compatibility alias and must not be added again;
20
+ * reschedules, cancellations, failures, pending and unverified results
21
+ * separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls`
22
+ * (each call, newest first), `assessment_results_daily` (assessment results
23
+ * per day), each over days in the organization's time zone (`from`, `to`; the
24
+ * last 30 days by default), or `campaign_progress`. Narrow with `agentId`,
25
+ * `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At
26
+ * most 1000 rows: `hasMore` means split the range or filter. Booking outcomes
27
+ * return no partial totals when their evidence scan exceeds its bound.
28
+ * Conversation success and completed tool calls never establish a booking;
29
+ * these are historical receipts, not the provider's current appointment
30
+ * status.
23
31
  */
24
32
  current(request: CurrentRequest, options?: RequestOptions): Promise<CurrentResponse>;
25
33
  }
@@ -46,18 +54,20 @@ export interface CurrentRequest {
46
54
  from?: Temporal.PlainDate;
47
55
  /**
48
56
  * `conversations_daily`: conversations the AI took part in per day, Agent,
49
- * channel type and direction, with outcomes, escalations to the team and the
50
- * conversations to review (filters `agentId`, `channelType`); WhatsApp
51
- * conversations the organization's people handled on their own are left out.
52
- * `tool_calls_daily`: AI tool calls per day, Agent and tool, with failures
53
- * and durations (filter `agentId`). `tool_calls`: the same calls one by one,
54
- * newest first, each with its conversation, status, duration and error code,
55
- * never its input or output (filter `agentId`). `assessment_results_daily`:
56
- * yes/no assessments per day and definition (filter `definitionId`).
57
- * `campaign_progress`: recipients per campaign by status (filter
58
- * `campaignId`; no date range).
57
+ * channel type and direction, with outcomes and escalations (filters
58
+ * `agentId`, `channelType`). `booking_outcomes`: verified saved booking
59
+ * receipts per completion day, Agent and integration, excluding
60
+ * test/import/deleted conversations; confirmed new bookings, reschedules,
61
+ * cancellations, failed, pending, unverified and duplicate receipts
62
+ * separately (filter `agentId`). Historical evidence, not current appointment
63
+ * status; hasMore requires splitting the range and returns no partial totals.
64
+ * `tool_calls_daily`: tool calls per day, Agent and tool with
65
+ * failures/durations (filter `agentId`). `tool_calls`: individual calls,
66
+ * never inputs/outputs (filter `agentId`). `assessment_results_daily`:
67
+ * assessments per day/definition (filter `definitionId`).
68
+ * `campaign_progress`: recipients by status (filter `campaignId`; no dates).
59
69
  */
60
- name: "conversations_daily" | "tool_calls_daily" | "tool_calls" | "assessment_results_daily" | "campaign_progress";
70
+ name: "conversations_daily" | "tool_calls_daily" | "tool_calls" | "booking_outcomes" | "assessment_results_daily" | "campaign_progress";
61
71
  /**
62
72
  * Last day (`YYYY-MM-DD`), inclusive, of a daily report. Default: today in
63
73
  * the organization's time zone.
@@ -54,6 +54,25 @@ export type RaizReport = {
54
54
  toolkit: string | null;
55
55
  }[];
56
56
  to: Temporal.PlainDate;
57
+ } | {
58
+ from: Temporal.PlainDate;
59
+ hasMore: boolean;
60
+ name: "booking_outcomes";
61
+ rows: {
62
+ agentId: string | null;
63
+ agentName: string | null;
64
+ cancelledCount: number;
65
+ confirmedCount: number;
66
+ createdCount: number;
67
+ day: Temporal.PlainDate;
68
+ duplicateCount: number;
69
+ failedCount: number;
70
+ pendingCount: number;
71
+ rescheduledCount: number;
72
+ source: string;
73
+ unverifiedCount: number;
74
+ }[];
75
+ to: Temporal.PlainDate;
57
76
  } | {
58
77
  from: Temporal.PlainDate;
59
78
  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([["occurredAt", null, instant]]))], ["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([["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]])]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "2.3.0",
3
+ "version": "2.5.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.20261020.151758",
54
- "sha256": "5b020e784bbc5ad68a94649af77543cd8c2b16717386ba15b59a9f7b7c71fe53"
53
+ "release": "1.20261021.53505",
54
+ "sha256": "3dbd465d9ddac7ecd1b00c5694419214ef02e6aa3925085dabaea80077fbfcca"
55
55
  }
56
56
  }
57
57
  }