@arbol-ai/sdk 2.17.0 → 2.19.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.
@@ -257,6 +257,7 @@ export interface RaizAgentVoiceSettings {
257
257
  keywords: string[];
258
258
  llm: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
259
259
  maxDurationSeconds: number | null;
260
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null;
260
261
  /**
261
262
  * Keep the call recording (copied to Raíz after the call).
262
263
  */
@@ -48,8 +48,11 @@ export interface Client {
48
48
  * outcome, sentiment and current facts. Add `expand=messages` for the
49
49
  * transcript, oldest first, each message with its author, the Agent's tool
50
50
  * calls and quoted replies (continue with `messagesCursor`), and
51
- * `expand=recording` for a short-lived link to the call recording. The
52
- * `review-conversation` skill explains how to read and summarize one.
51
+ * `expand=recording` for a short-lived link to the call recording. Staff may
52
+ * also request `expand=diagnostics` for bounded live call-termination
53
+ * evidence; this additionally requires raiz:staff:operate and never changes
54
+ * the conversation. The `review-conversation` skill explains how to read and
55
+ * summarize one.
53
56
  */
54
57
  get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
55
58
  /**
@@ -223,7 +226,8 @@ export interface GetRequest {
223
226
  */
224
227
  conversationId: string;
225
228
  /**
226
- * Related data to include, comma-separated: `messages`, `recording`.
229
+ * Related data to include, comma-separated: `messages`, `recording`,
230
+ * `diagnostics`.
227
231
  */
228
232
  expand?: string;
229
233
  /**
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ContinueRequest, ContinueResponse, CountRequest, CountResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
- export type { RaizConversation, RaizConversationPage, RaizConversationWorker, RaizMessage, RaizMessagePage, RaizSignedUrl, } from "./models.js";
5
+ export type { RaizConversation, RaizConversationDiagnostics, RaizConversationPage, RaizConversationWorker, RaizMessage, RaizMessagePage, RaizSignedUrl, } from "./models.js";
@@ -38,6 +38,13 @@ export interface RaizConversation {
38
38
  */
39
39
  createdAt: Temporal.Instant;
40
40
  deletedAt: Temporal.Instant | null;
41
+ /**
42
+ * Staff-only, live read of a call's provider termination evidence. Never
43
+ * includes provider identifiers, credentials, transcript content or free-form
44
+ * error text. Unavailable evidence is explicit and does not change the stored
45
+ * conversation.
46
+ */
47
+ diagnostics?: RaizConversationDiagnostics;
41
48
  direction: "inbound" | "outbound";
42
49
  durationSeconds: number | null;
43
50
  endedAt: Temporal.Instant | null;
@@ -107,6 +114,21 @@ export interface RaizConversation {
107
114
  */
108
115
  workers: RaizConversationWorker[];
109
116
  }
117
+ export interface RaizConversationDiagnostics {
118
+ errorCode: string | null;
119
+ providerErrorCode: number | null;
120
+ providerErrorPresent: boolean;
121
+ providerStatus: "initiated" | "active" | "processing" | "completed" | "failed" | "unknown" | null;
122
+ /**
123
+ * Words explicitly present in the provider's termination/error evidence,
124
+ * normalized to a fixed vocabulary. They are diagnostic signals, not proof of
125
+ * a business outcome or an exhaustive root cause; an empty list preserves an
126
+ * unclassified failure.
127
+ */
128
+ signals: ("model" | "speech" | "tool" | "timeout" | "quota" | "transport" | "client_disconnected" | "inactivity" | "duration_limit" | "normal_end")[];
129
+ status: "available" | "unavailable" | "not_recorded" | "not_applicable";
130
+ terminationReasonPresent: boolean;
131
+ }
110
132
  export interface RaizConversationPage {
111
133
  /**
112
134
  * Items admitted by this resource contract within the verified organization.
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { VisoftAvailabilitySlot, VisoftAvailabilitySlotPage, } from "./models.js";
5
+ export type { VisoftAvailabilityBookingInput, VisoftAvailabilitySlot, VisoftAvailabilitySlotPage, } from "./models.js";
@@ -1,9 +1,34 @@
1
1
  import type { PageInfo } from "../../models.js";
2
+ export interface VisoftAvailabilityBookingInput {
3
+ agency: string;
4
+ authorizationService?: string;
5
+ contract: string;
6
+ date: Temporal.PlainDate;
7
+ fonoGroup?: string;
8
+ intent?: string;
9
+ medicName: string;
10
+ modality?: string;
11
+ pairWithNext?: boolean;
12
+ patientAgeMonths?: string;
13
+ professionalChangeConfirmed?: boolean;
14
+ sala?: string;
15
+ service: string;
16
+ specialty?: string;
17
+ time: string;
18
+ toGroup?: string;
19
+ }
2
20
  export interface VisoftAvailabilitySlot {
3
21
  /**
4
22
  * The professional's agenda, when they run several.
5
23
  */
6
24
  agenda?: string;
25
+ /**
26
+ * Copy these exact arguments to visoft.appointments.create only after the
27
+ * person confirms this slot and service; add the confirmed documentNumber.
28
+ * Retain separately confirmed consent. Never replace the service or contract
29
+ * with a fresh EPS guess.
30
+ */
31
+ bookingInput?: VisoftAvailabilityBookingInput;
7
32
  /**
8
33
  * The day, in the clinic's timezone.
9
34
  */
@@ -70,5 +95,6 @@ export interface VisoftAvailabilitySlotPage {
70
95
  */
71
96
  pageInfo: PageInfo;
72
97
  }
98
+ export declare const VisoftAvailabilityBookingInputCodec: import("../../_/codec.js").Codec;
73
99
  export declare const VisoftAvailabilitySlotCodec: import("../../_/codec.js").Codec;
74
100
  export declare const VisoftAvailabilitySlotPageCodec: import("../../_/codec.js").Codec;
@@ -1,7 +1,11 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { array, date, object } from "../../_/index.js";
4
+ export const VisoftAvailabilityBookingInputCodec = object([
5
+ ["date", null, date],
6
+ ]);
4
7
  export const VisoftAvailabilitySlotCodec = object([
8
+ ["bookingInput", null, () => VisoftAvailabilityBookingInputCodec],
5
9
  ["date", null, date],
6
10
  ]);
7
11
  export const VisoftAvailabilitySlotPageCodec = object([
@@ -111,6 +111,11 @@ export interface CorrectRequest {
111
111
  * meaning, accepted values and whether it is required.
112
112
  */
113
113
  phoneOffice?: string;
114
+ /**
115
+ * As the connection's clinic defines it: visoft.tools.list answers its
116
+ * meaning, accepted values and whether it is required.
117
+ */
118
+ sex?: string;
114
119
  }
115
120
  export interface CorrectResponse {
116
121
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "2.17.0",
3
+ "version": "2.19.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.20261029.182916",
54
- "sha256": "30e974049d8c3576a6b73e21c4c4c09b153ff27c1368ff7059075458366afb63"
53
+ "release": "1.20261029.212716",
54
+ "sha256": "9cf962dffffeca4df40accc75e3012ab056253ddbc7a840883ea04769d60da87"
55
55
  }
56
56
  }
57
57
  }