@arbol-ai/sdk 5.39.0 → 5.40.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.
@@ -71,19 +71,20 @@ export interface Client {
71
71
  * the AI), `worker` (`ai` or `team`: who answers it now), the Agent's tools
72
72
  * (`toolName`, `toolStatus`: which tool it called and how the call ended), a
73
73
  * captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or
74
- * `passed`), `toReview` (what needs a person's look: not resolved, or handed
75
- * to the team), length (`messagesMin`, `messagesMax`, `durationMin`,
76
- * `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time
77
- * (`startedAfter`, `startedBefore`); `q` searches participant identities
78
- * (names, profile names, usernames, phones, emails and documents), visible
79
- * messages, titles, summaries and exact conversation references;
80
- * `count_conversations` counts every match. Each item already carries its
81
- * title, summary, outcome, sentiment, workers and tool calls (how many, how
82
- * many failed, the latest failure), often enough to answer. `sort`: `started`
83
- * (newest first), `last_message` (latest activity first) or `changed`, the
84
- * feed of status, outcome and analysis changes, oldest first, that systems
85
- * poll from a saved `pageInfo.nextCursor` (a deleted conversation appears
86
- * once with `deletedAt`). Next: `get_conversation` for a transcript.
74
+ * `passed`), `toReview` (evaluated failures or unresolved handoffs;
75
+ * explicitly resolved successes leave this queue), length (`messagesMin`,
76
+ * `messagesMax`, `durationMin`, `durationMax`), `campaignId`, `profileId`,
77
+ * `requestedBy` and start time (`startedAfter`, `startedBefore`); `q`
78
+ * searches participant identities (names, profile names, usernames, phones,
79
+ * emails and documents), visible messages, titles, summaries and exact
80
+ * conversation references; `count_conversations` counts every match. Each
81
+ * item already carries its title, summary, outcome, sentiment, workers and
82
+ * tool calls (how many, how many failed, the latest failure), often enough to
83
+ * answer. `sort`: `started` (newest first), `last_message` (latest activity
84
+ * first) or `changed`, the feed of status, outcome and analysis changes,
85
+ * oldest first, that systems poll from a saved `pageInfo.nextCursor` (a
86
+ * deleted conversation appears once with `deletedAt`). Next:
87
+ * `get_conversation` for a transcript.
87
88
  */
88
89
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
89
90
  /**
@@ -265,8 +266,9 @@ export interface CountRequest {
265
266
  assessment?: "failed" | "passed";
266
267
  /**
267
268
  * `true`: conversations to review, as `get_report` counts them in
268
- * `toReviewCount`: the analysis says the request was not resolved, or the AI
269
- * handed the conversation to the team. `false`: the others.
269
+ * `toReviewCount`: evaluated failures or unresolved escalations. A success
270
+ * explicitly resolved by the team leaves this queue without erasing its
271
+ * escalation history. `false`: the others.
270
272
  */
271
273
  toReview?: boolean;
272
274
  /**
@@ -487,8 +489,9 @@ export interface ListRequest {
487
489
  assessment?: "failed" | "passed";
488
490
  /**
489
491
  * `true`: conversations to review, as `get_report` counts them in
490
- * `toReviewCount`: the analysis says the request was not resolved, or the AI
491
- * handed the conversation to the team. `false`: the others.
492
+ * `toReviewCount`: evaluated failures or unresolved escalations. A success
493
+ * explicitly resolved by the team leaves this queue without erasing its
494
+ * escalation history. `false`: the others.
492
495
  */
493
496
  toReview?: boolean;
494
497
  /**
@@ -85,6 +85,14 @@ export interface RaizConversation {
85
85
  */
86
86
  origin: "inbound" | "manual" | "api" | "campaign" | "import" | "test";
87
87
  outcome: "success" | "failure" | "unknown" | null;
88
+ outcomeReview?: {
89
+ confirmationMessageId: string | null;
90
+ evidence: string;
91
+ outcome: "success" | "failure" | "unknown";
92
+ reason: string;
93
+ reviewedAt: Temporal.Instant;
94
+ reviewedBy: string;
95
+ } | null;
88
96
  profileId: string | null;
89
97
  recording?: SignedUrl | null;
90
98
  recordingAvailable: boolean;
@@ -11,6 +11,7 @@ export const RaizConversationCodec = object([
11
11
  ["facts", null, array(() => RaizFactCodec)],
12
12
  ["lastMessageAt", null, instant],
13
13
  ["messages", null, () => RaizMessagePageCodec],
14
+ ["outcomeReview", null, object([["reviewedAt", null, instant]])],
14
15
  ["recording", null, () => SignedUrlCodec],
15
16
  ["startedAt", null, instant],
16
17
  ["updatedAt", null, instant],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.39.0",
3
+ "version": "5.40.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",
@@ -58,8 +58,8 @@
58
58
  "packageManager": "bun@1.4.3",
59
59
  "arbol": {
60
60
  "openapi": {
61
- "release": "1.20261105.193553",
62
- "sha256": "a7fefc26e04f60595cdd40d058867d090d19e0976d5bae8aa3d2bcd2d3b2b7ff"
61
+ "release": "1.20261105.212004",
62
+ "sha256": "a32ec00dfc0c9e3b9ba937ca70389051bec347a58cb58f41741d7f9677b31421"
63
63
  }
64
64
  }
65
65
  }