@arbol-ai/sdk 5.49.0 → 5.51.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.
@@ -1,5 +1,12 @@
1
1
  import type { PageInfo, ResponseMetadata } from "../../models.js";
2
2
  export interface AccountConnection {
3
+ /**
4
+ * Whether Arbi, the organization's assistant, may use this connection. On
5
+ * until someone turns it off.
6
+ */
7
+ arbi: {
8
+ enabled: boolean;
9
+ };
3
10
  errorCode: string | null;
4
11
  /**
5
12
  * Its settings by name. Every caller reads a custom server's; only staff read
@@ -145,8 +145,9 @@ export interface GetRequest {
145
145
  /**
146
146
  * `pending`: waiting for its (next) call or message. `in_progress`: being
147
147
  * called, or on WhatsApp waiting for a reply until a reminder is due.
148
- * `completed`: an attempt succeeded; on WhatsApp, the message arrived.
149
- * `failed`: its attempts ran out, or it cannot be reached.
148
+ * `completed`: a call succeeded or ended normally with an inconclusive
149
+ * analysis; on WhatsApp, the message arrived. `failed`: its attempts ran out,
150
+ * or it cannot be reached.
150
151
  */
151
152
  recipientsStatus?: "pending" | "in_progress" | "completed" | "failed" | "cancelled";
152
153
  }
@@ -11,8 +11,9 @@ export interface Client {
11
11
  * Look up affiliation
12
12
  *
13
13
  * Read one matching member contract from an active Account connection.
14
- * Unknown or unresolved is never inactive. Session cookies are reused; one
15
- * renewal is admitted only on expiry. This does not authorize care.
14
+ * Confirmed affiliation results are reused for seven days. Unknown or
15
+ * unresolved is never inactive. Session cookies are reused; one renewal is
16
+ * admitted only on expiry. This does not authorize care.
16
17
  */
17
18
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
18
19
  }
@@ -6,6 +6,7 @@ import { type Client as ClinicClient } from "./clinic/client.js";
6
6
  import { type Client as ClinicsClient } from "./clinics/client.js";
7
7
  import { type Client as ConnectionsClient } from "./connections/client.js";
8
8
  import { type Client as ContractsClient } from "./contracts/client.js";
9
+ import { type Client as PatientNameEncodingsClient } from "./patientNameEncodings/client.js";
9
10
  import { type Client as PatientsClient } from "./patients/client.js";
10
11
  import { type Client as ProfessionalsClient } from "./professionals/client.js";
11
12
  import { type Client as ServiceCatalogsClient } from "./serviceCatalogs/client.js";
@@ -24,6 +25,7 @@ export interface Client {
24
25
  readonly clinics: ClinicsClient;
25
26
  readonly connections: ConnectionsClient;
26
27
  readonly contracts: ContractsClient;
28
+ readonly patientNameEncodings: PatientNameEncodingsClient;
27
29
  readonly patients: PatientsClient;
28
30
  readonly professionals: ProfessionalsClient;
29
31
  readonly serviceCatalogs: ServiceCatalogsClient;
@@ -8,6 +8,7 @@ import { bind as bindClinic, } from "./clinic/client.js";
8
8
  import { bind as bindClinics, } from "./clinics/client.js";
9
9
  import { bind as bindConnections, } from "./connections/client.js";
10
10
  import { bind as bindContracts, } from "./contracts/client.js";
11
+ import { bind as bindPatientNameEncodings, } from "./patientNameEncodings/client.js";
11
12
  import { bind as bindPatients, } from "./patients/client.js";
12
13
  import { bind as bindProfessionals, } from "./professionals/client.js";
13
14
  import { bind as bindServiceCatalogs, } from "./serviceCatalogs/client.js";
@@ -23,6 +24,7 @@ export function bind(transport) {
23
24
  let clinicsClient;
24
25
  let connectionsClient;
25
26
  let contractsClient;
27
+ let patientNameEncodingsClient;
26
28
  let patientsClient;
27
29
  let professionalsClient;
28
30
  let serviceCatalogsClient;
@@ -49,6 +51,9 @@ export function bind(transport) {
49
51
  get contracts() {
50
52
  return (contractsClient ??= bindContracts(transport));
51
53
  },
54
+ get patientNameEncodings() {
55
+ return (patientNameEncodingsClient ??= bindPatientNameEncodings(transport));
56
+ },
52
57
  get patients() {
53
58
  return (patientsClient ??= bindPatients(transport));
54
59
  },
@@ -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 { VisoftAgencyNotServedFailure, VisoftClinic, VisoftClinicAgency, VisoftConnectionNotConfiguredError, VisoftConnectionNotConfiguredFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedFailure, VisoftProfessional, VisoftProviderUnavailableFailure, } from "./models.js";
5
+ export type { VisoftAgencyNotServedFailure, VisoftClinic, VisoftClinicAgency, VisoftConnectionNotConfiguredError, VisoftConnectionNotConfiguredFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedError, VisoftCredentialsRejectedFailure, VisoftProfessional, VisoftProviderUnavailableFailure, } from "./models.js";
@@ -141,6 +141,22 @@ export interface VisoftContractService {
141
141
  */
142
142
  price: number | null;
143
143
  }
144
+ /**
145
+ * A failed answer.
146
+ */
147
+ export interface VisoftCredentialsRejectedError {
148
+ data: null;
149
+ /**
150
+ * The clinical system rejected the username or password, or the user is
151
+ * blocked.
152
+ */
153
+ error: VisoftCredentialsRejectedFailure;
154
+ /**
155
+ * What every answer carries besides its data or error.
156
+ */
157
+ metadata: ResponseMetadata;
158
+ success: false;
159
+ }
144
160
  /**
145
161
  * The clinical system rejected the username or password, or the user is
146
162
  * blocked.
@@ -0,0 +1,24 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { VisoftLookupPatientNameEncodingBody, VisoftPatientNameEncodingAuditResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * Audit stored patient name encoding
12
+ *
13
+ * Read the current SIIPS records of the supplied patients and identify name
14
+ * fields with recognizable misdecoded Spanish accents. Returns only the
15
+ * affected field names and document type, without the names or document
16
+ * numbers. Requires the permission to correct patient records. This operation
17
+ * only reads records.
18
+ */
19
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
20
+ }
21
+ export declare function createClient(options: ClientOptions): Client;
22
+ export declare function bind(transport: Transport): Client;
23
+ export type LookupRequest = VisoftLookupPatientNameEncodingBody;
24
+ export type LookupResponse = VisoftPatientNameEncodingAuditResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
10
+ };
11
+ }
12
+ const LookupOperation = {
13
+ method: "POST",
14
+ route: "/v1/visoft/patient-name-encodings/lookup",
15
+ body: "flat",
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { VisoftLookupPatientNameEncodingBadGatewayError, VisoftLookupPatientNameEncodingBadGatewayFailure, VisoftLookupPatientNameEncodingBody, VisoftPatientNameEncodingAudit, VisoftPatientNameEncodingAuditResponse, VisoftPatientNameEncodingResult, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,56 @@
1
+ import type { OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
2
+ import type { VisoftProviderUnavailableFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface VisoftLookupPatientNameEncodingBadGatewayError {
7
+ data: null;
8
+ error: VisoftLookupPatientNameEncodingBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type VisoftLookupPatientNameEncodingBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
16
+ export interface VisoftLookupPatientNameEncodingBody {
17
+ /**
18
+ * The connection to run on. Optional when the organization has one Visoft
19
+ * connection; required when it has several. Another organization's connection
20
+ * is CONNECTION_NOT_FOUND.
21
+ */
22
+ connectionId?: string;
23
+ /**
24
+ * Distinct patient document numbers from an authorized source.
25
+ */
26
+ documentNumbers: string[];
27
+ }
28
+ export interface VisoftPatientNameEncodingAudit {
29
+ /**
30
+ * One result per supplied document number, in the same order.
31
+ */
32
+ results: VisoftPatientNameEncodingResult[];
33
+ }
34
+ /**
35
+ * A successful answer.
36
+ */
37
+ export interface VisoftPatientNameEncodingAuditResponse {
38
+ data: VisoftPatientNameEncodingAudit;
39
+ error: null;
40
+ /**
41
+ * What every answer carries besides its data or error.
42
+ */
43
+ metadata: ResponseMetadata;
44
+ success: true;
45
+ }
46
+ export interface VisoftPatientNameEncodingResult {
47
+ /**
48
+ * Stored name fields containing a recognizable misdecoded Spanish accent.
49
+ */
50
+ affectedFields: ("firstName1" | "firstName2" | "lastName1" | "lastName2")[];
51
+ /**
52
+ * The SIIPS document type for an affected patient, or null.
53
+ */
54
+ documentType: string | null;
55
+ found: boolean;
56
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -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, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftCredentialsRejectedError, VisoftLookupPatientBadGatewayError, VisoftLookupPatientBadGatewayFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
5
+ export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftLookupPatientBadGatewayError, VisoftLookupPatientBadGatewayFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
@@ -390,22 +390,6 @@ export interface VisoftCreatePatientUnprocessableContentError {
390
390
  success: false;
391
391
  }
392
392
  export type VisoftCreatePatientUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
393
- /**
394
- * A failed answer.
395
- */
396
- export interface VisoftCredentialsRejectedError {
397
- data: null;
398
- /**
399
- * The clinical system rejected the username or password, or the user is
400
- * blocked.
401
- */
402
- error: VisoftCredentialsRejectedFailure;
403
- /**
404
- * What every answer carries besides its data or error.
405
- */
406
- metadata: ResponseMetadata;
407
- success: false;
408
- }
409
393
  /**
410
394
  * A failed answer.
411
395
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.49.0",
3
+ "version": "5.51.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.20261110.193119",
62
- "sha256": "7dbe848b03e48e1adc474efd29cb938b3286c4c54757a55a2b82bae8aa0a927f"
61
+ "release": "1.20261111.142422",
62
+ "sha256": "bb24b083f82d419f963d51b86095e2271dc564389e6bcae1c93d50795e2c0595"
63
63
  }
64
64
  }
65
65
  }