@arbol-ai/sdk 5.69.0 → 5.71.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.
@@ -11,7 +11,10 @@ export interface Client {
11
11
  * List agendas
12
12
  *
13
13
  * Use the organization gMedic account. Read-only request; provider failures
14
- * are never empty results.
14
+ * are never empty results. Agendas gMedic marks inactive (active: false) are
15
+ * left out, so they are never offered; agendas without that flag are kept. A
16
+ * page can hold fewer items than limit: follow nextCursor while hasNextPage
17
+ * is true.
15
18
  */
16
19
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
17
20
  }
@@ -12,8 +12,9 @@ export interface Client {
12
12
  *
13
13
  * Create a patient appointment. For agents at clinics using colored booking
14
14
  * windows, send bookingRoute with the verified payment route. The connector
15
- * selects the appointment color and rechecks the entire interval. Reconcile
16
- * unknown outcomes before repeating.
15
+ * selects the appointment color and rechecks the entire interval. An agenda
16
+ * gMedic marks inactive is refused with AGENDA_INACTIVE before anything is
17
+ * written. Reconcile unknown outcomes before repeating.
17
18
  */
18
19
  create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
19
20
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Empty, OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
2
+ import type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
3
  /**
4
4
  * gMedic has no appointment with this id.
5
5
  */
@@ -234,7 +234,7 @@ export interface GmedicCreateAppointmentConflictError {
234
234
  metadata: ResponseMetadata;
235
235
  success: false;
236
236
  }
237
- export type GmedicCreateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicBookingInProgressFailure;
237
+ export type GmedicCreateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicAgendaInactiveFailure | GmedicBookingInProgressFailure;
238
238
  /**
239
239
  * A failed answer.
240
240
  */
@@ -12,7 +12,8 @@ export interface Client {
12
12
  *
13
13
  * List available intervals. At clinics using colored booking windows, send
14
14
  * the verified bookingRoute. Check the full duration within a returned
15
- * interval and a compatible agenda.
15
+ * interval and a compatible agenda. An agenda gMedic marks inactive answers
16
+ * AGENDA_INACTIVE: do not offer it.
16
17
  */
17
18
  list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
19
  }
@@ -1,5 +1,5 @@
1
1
  import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
2
+ import type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
3
  export interface GmedicAvailabilityPage {
4
4
  /**
5
5
  * Items admitted by this resource contract within the verified organization.
@@ -68,7 +68,7 @@ export interface GmedicListAvailabilityConflictError {
68
68
  metadata: ResponseMetadata;
69
69
  success: false;
70
70
  }
71
- export type GmedicListAvailabilityConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure;
71
+ export type GmedicListAvailabilityConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicAgendaInactiveFailure;
72
72
  /**
73
73
  * A failed answer.
74
74
  */
@@ -11,7 +11,8 @@ export interface Client {
11
11
  * List available days
12
12
  *
13
13
  * Use the organization gMedic account. Read-only request; provider failures
14
- * are never empty results.
14
+ * are never empty results. An agenda gMedic marks inactive answers
15
+ * AGENDA_INACTIVE.
15
16
  */
16
17
  list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
17
18
  }
@@ -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 { GmedicAvailableDaysPage, GmedicAvailableDaysPageResponse, GmedicListAvailableDaysBadGatewayError, GmedicListAvailableDaysBadGatewayFailure, GmedicListAvailableDaysNotFoundError, GmedicListAvailableDaysNotFoundFailure, GmedicListAvailableDaysServiceUnavailableError, GmedicListAvailableDaysServiceUnavailableFailure, } from "./models.js";
5
+ export type { GmedicAvailableDaysPage, GmedicAvailableDaysPageResponse, GmedicListAvailableDaysBadGatewayError, GmedicListAvailableDaysBadGatewayFailure, GmedicListAvailableDaysConflictError, GmedicListAvailableDaysConflictFailure, GmedicListAvailableDaysNotFoundError, GmedicListAvailableDaysNotFoundFailure, GmedicListAvailableDaysServiceUnavailableError, GmedicListAvailableDaysServiceUnavailableFailure, } from "./models.js";
@@ -1,5 +1,5 @@
1
1
  import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
2
+ import type { GmedicAgendaInactiveFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
3
  export interface GmedicAvailableDaysPage {
4
4
  /**
5
5
  * Items admitted by this resource contract within the verified organization.
@@ -39,6 +39,19 @@ export interface GmedicListAvailableDaysBadGatewayError {
39
39
  success: false;
40
40
  }
41
41
  export type GmedicListAvailableDaysBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface GmedicListAvailableDaysConflictError {
46
+ data: null;
47
+ error: GmedicListAvailableDaysConflictFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type GmedicListAvailableDaysConflictFailure = GmedicNotConfiguredFailure | GmedicAgendaInactiveFailure;
42
55
  /**
43
56
  * A failed answer.
44
57
  */
@@ -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 { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
5
+ export type { GmedicAgendaInactiveFailure, GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
@@ -1,4 +1,26 @@
1
1
  import type { Empty, ResponseMetadata } from "../models.js";
2
+ /**
3
+ * This agenda is inactive in gMedic. Do not offer or book it: choose an active
4
+ * agenda from list_agendas or refer the request to reception.
5
+ */
6
+ export interface GmedicAgendaInactiveFailure {
7
+ /**
8
+ * The failure code, stable across releases.
9
+ */
10
+ code: "AGENDA_INACTIVE";
11
+ /**
12
+ * No fields.
13
+ */
14
+ data: Empty;
15
+ /**
16
+ * What went wrong, for people; it never contains input values.
17
+ */
18
+ message: string;
19
+ /**
20
+ * Whether repeating the same request may succeed.
21
+ */
22
+ retryable: false;
23
+ }
2
24
  /**
3
25
  * This booking requires a verified free interval in the clinic’s correct blue
4
26
  * or gray window. Check availability with the required booking color or refer
@@ -43,8 +43,7 @@ export interface Client {
43
43
  * resolved from the provider's own data and nothing was written; send it and
44
44
  * repeat: contractId when the payer has several active contracts;
45
45
  * classification.relationship when the affiliate type is neither C nor N;
46
- * classification.listStatus when the payer uses an attention list;
47
- * referral.authorizationNumber when the payer requires authorization; a
46
+ * classification.listStatus when the payer uses an attention list; a
48
47
  * classification.salaryRange the regime lists; or billing when the payer's
49
48
  * tariff grid has no positive tariff for the service. Before anything is
50
49
  * written, the patient is resolved by citizenship card; the source must still
@@ -530,7 +530,7 @@ export interface RaizAgentVoiceSettings {
530
530
  * Names and terms the transcriber should favor (people, places, products).
531
531
  */
532
532
  keywords: string[];
533
- llm: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
533
+ llm: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "arbolito/voice-fast" | null;
534
534
  maxDurationMessage?: string | null;
535
535
  maxDurationSeconds: number | null;
536
536
  /**
@@ -15,7 +15,10 @@ export interface Client {
15
15
  * the provider it is directed to, explicit charge type, fixed fee or copay
16
16
  * percentage and provider-reported payments. Procedures that could not be
17
17
  * read, unknown balance and copay cap remain null. Does not issue, attend,
18
- * modify or pay an authorization.
18
+ * modify or pay an authorization. It cannot search or list a patient’s
19
+ * authorizations: to check one, ask the person for its issuer code and
20
+ * number, and never say SURA is checking whether they have one. A pending or
21
+ * missing answer never means the patient has no authorization.
19
22
  */
20
23
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.69.0",
3
+ "version": "5.71.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.20261120.163816",
62
- "sha256": "4dcce28a0d0634fb55805f72d6db8dc586e0a4e9930a869f650c9460d06be606"
61
+ "release": "1.20261125.21951",
62
+ "sha256": "8d52030d5ca554e5ea36967e17622553c3c195c032a1a47c7f10633f8ab90143"
63
63
  }
64
64
  }
65
65
  }