@arbol-ai/sdk 5.25.0 → 5.26.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.
|
@@ -27,14 +27,14 @@ export interface Client {
|
|
|
27
27
|
*
|
|
28
28
|
* Count the conversations `list_conversations` returns for the same filters
|
|
29
29
|
* (every filter it takes, without `sort`), up to 10,000: `capped` then says
|
|
30
|
-
* at least that many match. `averageMessageCount`
|
|
31
|
-
* `
|
|
32
|
-
* by `outcome`, `status`,
|
|
33
|
-
* Agent tools they used, and
|
|
34
|
-
* calls of `toolName` failed) or
|
|
35
|
-
* for contact). Use it to answer
|
|
36
|
-
*
|
|
37
|
-
* `get_report`.
|
|
30
|
+
* at least that many match. `averageMessageCount` and
|
|
31
|
+
* `averageDurationSeconds` are their average length. `groupBy` also divides
|
|
32
|
+
* them, largest group first, each with its outcomes: by `outcome`, `status`,
|
|
33
|
+
* `channel`, `agent`, `sentiment`, `tool` (which Agent tools they used, and
|
|
34
|
+
* in how many a tool failed), `toolError` (why calls of `toolName` failed) or
|
|
35
|
+
* `fact:<definition key>` (such as the reason for contact). Use it to answer
|
|
36
|
+
* how many conversations match, or how they divide, instead of paging through
|
|
37
|
+
* the list; for volumes per day use `get_report`.
|
|
38
38
|
*/
|
|
39
39
|
count(request?: CountRequest, options?: RequestOptions): Promise<CountResponse>;
|
|
40
40
|
/**
|
|
@@ -70,7 +70,8 @@ export interface Client {
|
|
|
70
70
|
* the AI), `worker` (`ai` or `team`: who answers it now), the Agent's tools
|
|
71
71
|
* (`toolName`, `toolStatus`: which tool it called and how the call ended), a
|
|
72
72
|
* captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or
|
|
73
|
-
* `passed`),
|
|
73
|
+
* `passed`), `toReview` (what needs a person's look: not resolved, or handed
|
|
74
|
+
* to the team), length (`messagesMin`, `messagesMax`, `durationMin`,
|
|
74
75
|
* `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time
|
|
75
76
|
* (`startedAfter`, `startedBefore`); `q` searches participant identities
|
|
76
77
|
* (names, profile names, usernames, phones, emails and documents), visible
|
|
@@ -210,6 +211,12 @@ export interface CountRequest {
|
|
|
210
211
|
*/
|
|
211
212
|
startedBefore?: Temporal.Instant;
|
|
212
213
|
status?: "open" | "closed";
|
|
214
|
+
/**
|
|
215
|
+
* Started today or in the last 7, 30, 90 or 365 days including today,
|
|
216
|
+
* counting days in the organization's time zone as `get_report` does. A saved
|
|
217
|
+
* view keeps its period this way, so it moves with the calendar.
|
|
218
|
+
*/
|
|
219
|
+
period?: "today" | "7d" | "30d" | "90d" | "365d";
|
|
213
220
|
/**
|
|
214
221
|
* Comma-separated sentiments of the analysis.
|
|
215
222
|
*/
|
|
@@ -241,6 +248,12 @@ export interface CountRequest {
|
|
|
241
248
|
* `passed`, at least one answered and every answered one yes.
|
|
242
249
|
*/
|
|
243
250
|
assessment?: "failed" | "passed";
|
|
251
|
+
/**
|
|
252
|
+
* `true`: conversations to review, as `get_report` counts them in
|
|
253
|
+
* `toReviewCount`: the analysis says the request was not resolved, or the AI
|
|
254
|
+
* handed the conversation to the team. `false`: the others.
|
|
255
|
+
*/
|
|
256
|
+
toReview?: boolean;
|
|
244
257
|
/**
|
|
245
258
|
* At least this many messages.
|
|
246
259
|
*/
|
|
@@ -419,6 +432,12 @@ export interface ListRequest {
|
|
|
419
432
|
*/
|
|
420
433
|
startedBefore?: Temporal.Instant;
|
|
421
434
|
status?: "open" | "closed";
|
|
435
|
+
/**
|
|
436
|
+
* Started today or in the last 7, 30, 90 or 365 days including today,
|
|
437
|
+
* counting days in the organization's time zone as `get_report` does. A saved
|
|
438
|
+
* view keeps its period this way, so it moves with the calendar.
|
|
439
|
+
*/
|
|
440
|
+
period?: "today" | "7d" | "30d" | "90d" | "365d";
|
|
422
441
|
/**
|
|
423
442
|
* Comma-separated sentiments of the analysis.
|
|
424
443
|
*/
|
|
@@ -450,6 +469,12 @@ export interface ListRequest {
|
|
|
450
469
|
* `passed`, at least one answered and every answered one yes.
|
|
451
470
|
*/
|
|
452
471
|
assessment?: "failed" | "passed";
|
|
472
|
+
/**
|
|
473
|
+
* `true`: conversations to review, as `get_report` counts them in
|
|
474
|
+
* `toReviewCount`: the analysis says the request was not resolved, or the AI
|
|
475
|
+
* handed the conversation to the team. `false`: the others.
|
|
476
|
+
*/
|
|
477
|
+
toReview?: boolean;
|
|
453
478
|
/**
|
|
454
479
|
* At least this many messages.
|
|
455
480
|
*/
|
|
@@ -25,7 +25,7 @@ const ContinueOperation = {
|
|
|
25
25
|
const CountOperation = {
|
|
26
26
|
method: "GET",
|
|
27
27
|
route: "/v1/raiz/conversations/count",
|
|
28
|
-
query: { agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", groupBy: "groupBy" },
|
|
28
|
+
query: { agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", groupBy: "groupBy" },
|
|
29
29
|
response: null,
|
|
30
30
|
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 },
|
|
31
31
|
};
|
|
@@ -46,7 +46,7 @@ const GetOperation = {
|
|
|
46
46
|
const ListOperation = {
|
|
47
47
|
method: "GET",
|
|
48
48
|
route: "/v1/raiz/conversations",
|
|
49
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", sort: "sort" },
|
|
49
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", sort: "sort" },
|
|
50
50
|
response: object([["data", null, () => RaizConversationPageCodec]]),
|
|
51
51
|
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 },
|
|
52
52
|
};
|
|
@@ -116,6 +116,7 @@ export interface RaizConversation {
|
|
|
116
116
|
workers: RaizConversationWorker[];
|
|
117
117
|
}
|
|
118
118
|
export interface RaizConversationCount {
|
|
119
|
+
averageDurationSeconds: number | null;
|
|
119
120
|
averageMessageCount: number | null;
|
|
120
121
|
/**
|
|
121
122
|
* True when the count reached 10000: at least that many match.
|
|
@@ -143,6 +144,8 @@ export interface RaizConversationDiagnostics {
|
|
|
143
144
|
terminationReasonPresent: boolean;
|
|
144
145
|
}
|
|
145
146
|
export interface RaizConversationGroup {
|
|
147
|
+
averageDurationSeconds: number | null;
|
|
148
|
+
averageMessageCount: number | null;
|
|
146
149
|
/**
|
|
147
150
|
* Conversations in the group.
|
|
148
151
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.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",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"packageManager": "bun@1.4.3",
|
|
58
58
|
"arbol": {
|
|
59
59
|
"openapi": {
|
|
60
|
-
"release": "1.20261101.
|
|
61
|
-
"sha256": "
|
|
60
|
+
"release": "1.20261101.92027",
|
|
61
|
+
"sha256": "e9be828ee9b2d19b0f340ec445d812a85a2a24ab2ccb9577e74bdfc058336af2"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|