@arbol-ai/sdk 5.34.0 → 5.35.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.
@@ -10,11 +10,16 @@ export interface Client {
10
10
  /**
11
11
  * Find availability
12
12
  *
13
- * Find the free appointment times for one patient and one service. With no
14
- * date it answers with the soonest day that has room; with a date it answers
15
- * for that day. times[] are the hours you may book, otherDates[] are other
16
- * days that month with room, and otherProfessionals[] are the other doctors
17
- * who see this service. Offer two or three times, never the whole list.
13
+ * Find the free appointment times for one patient and one service. With a
14
+ * date it answers for that day. With no date it answers for the
15
+ * professional's next day with an agenda, which can be full. times[] are the
16
+ * hours you may book, and only free ones are ever listed; otherDates[] are
17
+ * other days that month with room; days[] says how every day of that month
18
+ * stands (available, full or no_agenda); reserved says the day's only free
19
+ * slot is held back; and otherProfessionals[] are the other doctors who see
20
+ * this service. An empty times[] does not mean the whole agenda is full:
21
+ * prepare_appointment searches other months. Offer two or three times, never
22
+ * the whole list.
18
23
  */
19
24
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
20
25
  }
@@ -39,9 +39,9 @@ export interface SuraFindAvailabilityBody {
39
39
  */
40
40
  connectionId?: string;
41
41
  /**
42
- * A day to look at, as YYYY-MM-DD. Omit it for the soonest day with room.
43
- * Resolve relative dates like "mañana" against the clinic's own timezone
44
- * before calling.
42
+ * A day to look at, as YYYY-MM-DD. Omit it to start from the professional's
43
+ * next day with an agenda. Resolve relative dates like "mañana" against the
44
+ * clinic's own timezone before calling.
45
45
  */
46
46
  date?: string | null;
47
47
  /**
@@ -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, } from "./client.js";
5
- export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraConnectionNotConfiguredFailure, SuraCopayEntry, SuraCopayHistory, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSchedule, SuraScheduleCapacity, SuraScheduleHours, SuraScheduleStatus, SuraSearchedDay, SuraService, SuraServicePage, SuraServiceSchedule, SuraToolRefusedError, SuraToolRefusedFailure, SuraToolRefusedFailureData, } from "./models.js";
5
+ export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCalendarDay, SuraCancelledAppointment, SuraConnectionNotConfiguredFailure, SuraCopayEntry, SuraCopayHistory, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSchedule, SuraScheduleCapacity, SuraScheduleHours, SuraScheduleStatus, SuraSearchedDay, SuraService, SuraServicePage, SuraServiceSchedule, SuraToolRefusedError, SuraToolRefusedFailure, SuraToolRefusedFailureData, } from "./models.js";
@@ -109,6 +109,12 @@ export interface SuraAvailability {
109
109
  */
110
110
  aiHint: string;
111
111
  date: string | null;
112
+ /**
113
+ * Every day of that month for this professional, so a day with no hours says
114
+ * why. Empty only when SURA's calendar could not be read. Absent on older
115
+ * saved results; absence does not establish a day state.
116
+ */
117
+ days?: SuraCalendarDay[];
112
118
  ok: true;
113
119
  /**
114
120
  * Other days that month with room.
@@ -121,6 +127,12 @@ export interface SuraAvailability {
121
127
  patient: SuraAvailabilityPatient;
122
128
  plan: string | null;
123
129
  professional: string | null;
130
+ /**
131
+ * True when the day's only free slot is held for the primary-care IPS until
132
+ * 24 hours before it; times leaves it out. Absent on older saved results;
133
+ * absence does not mean false.
134
+ */
135
+ reserved?: boolean;
124
136
  service: string | null;
125
137
  /**
126
138
  * The hours that may be booked that day, HH:MM.
@@ -168,6 +180,17 @@ export interface SuraBookedAppointment {
168
180
  */
169
181
  time: string;
170
182
  }
183
+ export interface SuraCalendarDay {
184
+ /**
185
+ * YYYY-MM-DD.
186
+ */
187
+ date: string;
188
+ /**
189
+ * available: it has free slots. full: it has an agenda with none free.
190
+ * no_agenda: the professional has no agenda that day.
191
+ */
192
+ status: "available" | "full" | "no_agenda";
193
+ }
171
194
  export interface SuraCancelledAppointment {
172
195
  /**
173
196
  * Spanish guidance for the model: what to do next.
@@ -566,6 +589,10 @@ export interface SuraRefusal {
566
589
  ok: false;
567
590
  options?: SuraAppointment[];
568
591
  place?: string;
592
+ /**
593
+ * The plan a refusal about coverage was judged on.
594
+ */
595
+ plan?: string;
569
596
  professionals?: string[];
570
597
  service?: string | null;
571
598
  serviceId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.34.0",
3
+ "version": "5.35.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.15838",
62
- "sha256": "046bba468060514045acd14deae2d0628d28870dbc10b41c400dfb619bd8b28b"
61
+ "release": "1.20261105.41647",
62
+ "sha256": "9f4c514a6aa7f95ada90b3e20fcdd34835193d5190e350bad35061dac279115c"
63
63
  }
64
64
  }
65
65
  }