@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.
- package/dist/agenda/appointments/client.d.ts +10 -0
- package/dist/agenda/appointments/client.js +1 -1
- package/dist/agenda/client.d.ts +2 -0
- package/dist/agenda/client.js +5 -0
- package/dist/agenda/offerings/client.d.ts +145 -1
- package/dist/agenda/offerings/client.js +17 -1
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/resources/client.d.ts +110 -1
- package/dist/agenda/resources/client.js +17 -1
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/client.d.ts +188 -0
- package/dist/agenda/scheduleRules/client.js +36 -0
- package/dist/agenda/scheduleRules/index.d.ts +4 -0
- package/dist/agenda/scheduleRules/index.js +4 -0
- package/dist/agenda/services/client.d.ts +81 -1
- package/dist/agenda/services/client.js +17 -1
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/raiz/channels/client.d.ts +14 -8
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +179 -7
- package/dist/raiz/models.d.ts +14 -0
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +2 -2
- package/dist/raiz/reports/client.d.ts +29 -19
- package/dist/raiz/reports/models.d.ts +19 -0
- package/dist/raiz/reports/models.js +1 -1
- package/package.json +3 -3
|
@@ -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), `
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
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
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
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
|
+
"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.
|
|
54
|
-
"sha256": "
|
|
53
|
+
"release": "1.20261021.53505",
|
|
54
|
+
"sha256": "3dbd465d9ddac7ecd1b00c5694419214ef02e6aa3925085dabaea80077fbfcca"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|