@arbol-ai/sdk 5.26.0 → 5.27.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.
Files changed (134) hide show
  1. package/README.md +4 -4
  2. package/dist/client.d.ts +0 -4
  3. package/dist/client.js +0 -10
  4. package/dist/index.d.ts +1 -1
  5. package/dist/models.d.ts +0 -282
  6. package/dist/models.js +1 -5
  7. package/dist/visoft/appointments/index.d.ts +1 -1
  8. package/dist/visoft/appointments/models.d.ts +32 -6
  9. package/dist/visoft/availability/models.d.ts +4 -4
  10. package/dist/visoft/contracts/index.d.ts +1 -1
  11. package/dist/visoft/contracts/models.d.ts +16 -3
  12. package/dist/visoft/index.d.ts +1 -1
  13. package/dist/visoft/models.d.ts +67 -2
  14. package/dist/visoft/patients/index.d.ts +1 -1
  15. package/dist/visoft/patients/models.d.ts +35 -6
  16. package/dist/visoft/professionals/models.d.ts +4 -4
  17. package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
  18. package/dist/visoft/services/index.d.ts +1 -1
  19. package/dist/visoft/services/models.d.ts +16 -3
  20. package/package.json +3 -3
  21. package/dist/orsovision/agencies/client.d.ts +0 -51
  22. package/dist/orsovision/agencies/client.js +0 -18
  23. package/dist/orsovision/agencies/index.d.ts +0 -5
  24. package/dist/orsovision/agencies/index.js +0 -4
  25. package/dist/orsovision/agencies/models.d.ts +0 -107
  26. package/dist/orsovision/agencies/models.js +0 -3
  27. package/dist/orsovision/appointments/client.d.ts +0 -39
  28. package/dist/orsovision/appointments/client.js +0 -29
  29. package/dist/orsovision/appointments/index.d.ts +0 -5
  30. package/dist/orsovision/appointments/index.js +0 -4
  31. package/dist/orsovision/appointments/models.d.ts +0 -182
  32. package/dist/orsovision/appointments/models.js +0 -9
  33. package/dist/orsovision/availability/client.d.ts +0 -32
  34. package/dist/orsovision/availability/client.js +0 -19
  35. package/dist/orsovision/availability/index.d.ts +0 -5
  36. package/dist/orsovision/availability/index.js +0 -4
  37. package/dist/orsovision/availability/models.d.ts +0 -228
  38. package/dist/orsovision/availability/models.js +0 -15
  39. package/dist/orsovision/client.d.ts +0 -27
  40. package/dist/orsovision/client.js +0 -50
  41. package/dist/orsovision/clinic/client.d.ts +0 -34
  42. package/dist/orsovision/clinic/client.js +0 -18
  43. package/dist/orsovision/clinic/index.d.ts +0 -5
  44. package/dist/orsovision/clinic/index.js +0 -4
  45. package/dist/orsovision/clinic/models.d.ts +0 -90
  46. package/dist/orsovision/clinic/models.js +0 -3
  47. package/dist/orsovision/contracts/client.d.ts +0 -69
  48. package/dist/orsovision/contracts/client.js +0 -18
  49. package/dist/orsovision/contracts/index.d.ts +0 -5
  50. package/dist/orsovision/contracts/index.js +0 -4
  51. package/dist/orsovision/contracts/models.d.ts +0 -84
  52. package/dist/orsovision/contracts/models.js +0 -3
  53. package/dist/orsovision/index.d.ts +0 -5
  54. package/dist/orsovision/index.js +0 -4
  55. package/dist/orsovision/models.d.ts +0 -66
  56. package/dist/orsovision/models.js +0 -3
  57. package/dist/orsovision/patients/client.d.ts +0 -52
  58. package/dist/orsovision/patients/client.js +0 -34
  59. package/dist/orsovision/patients/index.d.ts +0 -5
  60. package/dist/orsovision/patients/index.js +0 -4
  61. package/dist/orsovision/patients/models.d.ts +0 -287
  62. package/dist/orsovision/patients/models.js +0 -3
  63. package/dist/orsovision/services/client.d.ts +0 -74
  64. package/dist/orsovision/services/client.js +0 -18
  65. package/dist/orsovision/services/index.d.ts +0 -5
  66. package/dist/orsovision/services/index.js +0 -4
  67. package/dist/orsovision/services/models.d.ts +0 -81
  68. package/dist/orsovision/services/models.js +0 -3
  69. package/dist/orsovision/tools/client.d.ts +0 -44
  70. package/dist/orsovision/tools/client.js +0 -18
  71. package/dist/orsovision/tools/index.d.ts +0 -5
  72. package/dist/orsovision/tools/index.js +0 -4
  73. package/dist/orsovision/tools/models.d.ts +0 -102
  74. package/dist/orsovision/tools/models.js +0 -3
  75. package/dist/somos/appointments/client.d.ts +0 -40
  76. package/dist/somos/appointments/client.js +0 -29
  77. package/dist/somos/appointments/index.d.ts +0 -5
  78. package/dist/somos/appointments/index.js +0 -4
  79. package/dist/somos/appointments/models.d.ts +0 -303
  80. package/dist/somos/appointments/models.js +0 -9
  81. package/dist/somos/availability/client.d.ts +0 -33
  82. package/dist/somos/availability/client.js +0 -19
  83. package/dist/somos/availability/index.d.ts +0 -5
  84. package/dist/somos/availability/index.js +0 -4
  85. package/dist/somos/availability/models.d.ts +0 -338
  86. package/dist/somos/availability/models.js +0 -15
  87. package/dist/somos/client.d.ts +0 -29
  88. package/dist/somos/client.js +0 -55
  89. package/dist/somos/clinic/client.d.ts +0 -33
  90. package/dist/somos/clinic/client.js +0 -18
  91. package/dist/somos/clinic/index.d.ts +0 -5
  92. package/dist/somos/clinic/index.js +0 -4
  93. package/dist/somos/clinic/models.d.ts +0 -90
  94. package/dist/somos/clinic/models.js +0 -3
  95. package/dist/somos/contracts/client.d.ts +0 -74
  96. package/dist/somos/contracts/client.js +0 -18
  97. package/dist/somos/contracts/index.d.ts +0 -5
  98. package/dist/somos/contracts/index.js +0 -4
  99. package/dist/somos/contracts/models.d.ts +0 -96
  100. package/dist/somos/contracts/models.js +0 -3
  101. package/dist/somos/groups/client.d.ts +0 -67
  102. package/dist/somos/groups/client.js +0 -18
  103. package/dist/somos/groups/index.d.ts +0 -5
  104. package/dist/somos/groups/index.js +0 -4
  105. package/dist/somos/groups/models.d.ts +0 -117
  106. package/dist/somos/groups/models.js +0 -3
  107. package/dist/somos/index.d.ts +0 -5
  108. package/dist/somos/index.js +0 -4
  109. package/dist/somos/models.d.ts +0 -88
  110. package/dist/somos/models.js +0 -3
  111. package/dist/somos/patients/client.d.ts +0 -51
  112. package/dist/somos/patients/client.js +0 -34
  113. package/dist/somos/patients/index.d.ts +0 -5
  114. package/dist/somos/patients/index.js +0 -4
  115. package/dist/somos/patients/models.d.ts +0 -330
  116. package/dist/somos/patients/models.js +0 -3
  117. package/dist/somos/services/client.d.ts +0 -116
  118. package/dist/somos/services/client.js +0 -26
  119. package/dist/somos/services/index.d.ts +0 -5
  120. package/dist/somos/services/index.js +0 -4
  121. package/dist/somos/services/models.d.ts +0 -261
  122. package/dist/somos/services/models.js +0 -3
  123. package/dist/somos/specialtyRules/client.d.ts +0 -44
  124. package/dist/somos/specialtyRules/client.js +0 -18
  125. package/dist/somos/specialtyRules/index.d.ts +0 -5
  126. package/dist/somos/specialtyRules/index.js +0 -4
  127. package/dist/somos/specialtyRules/models.d.ts +0 -54
  128. package/dist/somos/specialtyRules/models.js +0 -3
  129. package/dist/somos/tools/client.d.ts +0 -44
  130. package/dist/somos/tools/client.js +0 -18
  131. package/dist/somos/tools/index.d.ts +0 -5
  132. package/dist/somos/tools/index.js +0 -4
  133. package/dist/somos/tools/models.d.ts +0 -102
  134. package/dist/somos/tools/models.js +0 -3
@@ -1,40 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ToolResultResponse } from "../../models.js";
3
- import { type SomosCancelAppointmentBody, type SomosCreateAppointmentBody } from "./models.js";
4
- export interface ClientOptions extends BaseClientOptions {
5
- /**
6
- * The URL the paths of the API are relative to.
7
- */
8
- baseUrl: string;
9
- }
10
- export interface Client {
11
- /**
12
- * Cancel an appointment
13
- *
14
- * Cancel one exact future appointment, only after the person explicitly
15
- * confirmed it, with the cancellation reference from a fresh patient lookup.
16
- * The clinic requires two hours of notice. Never repeat a cancellation whose
17
- * outcome is unknown. Somos Salud's tool pack sets this tool's rules,
18
- * parameters and accepted values (somos.tools.list answers them), and every
19
- * call is checked against them.
20
- */
21
- cancel(request: CancelRequest, options?: RequestOptions): Promise<CancelResponse>;
22
- /**
23
- * Book an appointment
24
- *
25
- * Book one slot somos.availability.lookup returned, only after the person
26
- * explicitly confirmed that exact appointment. Pass its reference unchanged.
27
- * A service the clinic books with a companion is booked with it, in
28
- * consecutive slots, in this one call. Never repeat a booking whose outcome
29
- * is unknown. Somos Salud's tool pack sets this tool's rules, parameters and
30
- * accepted values (somos.tools.list answers them), and every call is checked
31
- * against them.
32
- */
33
- create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
34
- }
35
- export declare function createClient(options: ClientOptions): Client;
36
- export declare function bind(transport: Transport): Client;
37
- export type CancelRequest = SomosCancelAppointmentBody;
38
- export type CancelResponse = ToolResultResponse;
39
- export type CreateRequest = SomosCreateAppointmentBody;
40
- export type CreateResponse = ToolResultResponse;
@@ -1,29 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { SomosCancelAppointmentBodyCodec, SomosCreateAppointmentBodyCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- cancel: (request, options) => transport.send(CancelOperation, request, options),
11
- create: (request, options) => transport.send(CreateOperation, request, options),
12
- };
13
- }
14
- const CancelOperation = {
15
- method: "POST",
16
- route: "/v1/somos/appointments/cancel",
17
- body: "flat",
18
- request: SomosCancelAppointmentBodyCodec,
19
- response: null,
20
- 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 },
21
- };
22
- const CreateOperation = {
23
- method: "POST",
24
- route: "/v1/somos/appointments",
25
- body: "flat",
26
- request: SomosCreateAppointmentBodyCodec,
27
- response: null,
28
- 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 },
29
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, } from "./client.js";
5
- export type { SomosCancelAppointmentBadGatewayError, SomosCancelAppointmentBadGatewayFailure, SomosCancelAppointmentBody, SomosCancelAppointmentConflictError, SomosCancelAppointmentConflictFailure, SomosCancelAppointmentNotFoundError, SomosCancelAppointmentNotFoundFailure, SomosCancelAppointmentServiceUnavailableError, SomosCancelAppointmentServiceUnavailableFailure, SomosCreateAppointmentBadGatewayError, SomosCreateAppointmentBadGatewayFailure, SomosCreateAppointmentBody, SomosCreateAppointmentConflictError, SomosCreateAppointmentConflictFailure, SomosCreateAppointmentNotFoundError, SomosCreateAppointmentNotFoundFailure, SomosCreateAppointmentServiceUnavailableError, SomosCreateAppointmentServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,303 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface SomosCancelAppointmentBadGatewayError {
7
- data: null;
8
- error: SomosCancelAppointmentBadGatewayFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type SomosCancelAppointmentBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
16
- export interface SomosCancelAppointmentBody {
17
- /**
18
- * No lo uses: cancela con date + time. Solo existe por compatibilidad.
19
- */
20
- cancelToken?: string;
21
- /**
22
- * The channel the conversation happens on: voice, whatsapp or web (the
23
- * default).
24
- */
25
- channel?: "voice" | "web" | "whatsapp";
26
- /**
27
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
28
- * the organization has one; required when it has several. Another
29
- * organization's connection is CONNECTION_NOT_FOUND.
30
- */
31
- connectionId?: string;
32
- /**
33
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
34
- *
35
- * @deprecated
36
- */
37
- date?: string;
38
- /**
39
- * Documento confirmado del paciente dueño de la cita; solo dígitos.
40
- */
41
- documentNumber: string;
42
- /**
43
- * The appointment's moment, as an RFC 3339 instant with its offset, exactly
44
- * as an answer gave it in startsAt (for example "2026-11-04T08:50:00-05:00").
45
- * Send it in place of the former date and time; sent beside them, they must
46
- * name the same moment.
47
- */
48
- startsAt?: Temporal.Instant;
49
- /**
50
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
51
- *
52
- * @deprecated
53
- */
54
- time?: string;
55
- }
56
- /**
57
- * A failed answer.
58
- */
59
- export interface SomosCancelAppointmentConflictError {
60
- data: null;
61
- error: SomosCancelAppointmentConflictFailure;
62
- /**
63
- * What every answer carries besides its data or error.
64
- */
65
- metadata: ResponseMetadata;
66
- success: false;
67
- }
68
- export type SomosCancelAppointmentConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
69
- /**
70
- * A failed answer.
71
- */
72
- export interface SomosCancelAppointmentNotFoundError {
73
- data: null;
74
- error: SomosCancelAppointmentNotFoundFailure;
75
- /**
76
- * What every answer carries besides its data or error.
77
- */
78
- metadata: ResponseMetadata;
79
- success: false;
80
- }
81
- export type SomosCancelAppointmentNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
82
- /**
83
- * A failed answer.
84
- */
85
- export interface SomosCancelAppointmentServiceUnavailableError {
86
- data: null;
87
- error: SomosCancelAppointmentServiceUnavailableFailure;
88
- /**
89
- * What every answer carries besides its data or error.
90
- */
91
- metadata: ResponseMetadata;
92
- success: false;
93
- }
94
- export type SomosCancelAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
95
- /**
96
- * A failed answer.
97
- */
98
- export interface SomosCreateAppointmentBadGatewayError {
99
- data: null;
100
- error: SomosCreateAppointmentBadGatewayFailure;
101
- /**
102
- * What every answer carries besides its data or error.
103
- */
104
- metadata: ResponseMetadata;
105
- success: false;
106
- }
107
- export type SomosCreateAppointmentBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
108
- export interface SomosCreateAppointmentBody {
109
- /**
110
- * La sede del horario elegido: copia bookingInput.agency tal cual u omítela.
111
- * Nunca la cambies ni la inventes: el servidor rechaza una sede que no sea de
112
- * esta clínica o que no sea la del horario.
113
- */
114
- agency?: string;
115
- /**
116
- * Solo para specialty=fisio: frase real del servicio en la autorización EPS
117
- * cuando la modalidad la requiera. Para cualquier otra especialidad, omite
118
- * este campo. Omite el campo en valoración/control de fisioterapia común.
119
- * Nunca envíes x, NO, vacío ni otro relleno. Para biofeedback se requiere la
120
- * frase exacta; no infieras el servicio de piso pélvico.
121
- */
122
- authorizationService?: string;
123
- /**
124
- * The channel the conversation happens on: voice, whatsapp or web (the
125
- * default).
126
- */
127
- channel?: "voice" | "web" | "whatsapp";
128
- /**
129
- * Token de logoaudiometría consecutiva a la audiometría del mismo paciente,
130
- * fecha y profesional. El servidor verifica el servicio distinto y el
131
- * intervalo de diez minutos; pairWithNext=true permite resolverlo
132
- * automáticamente.
133
- */
134
- companionToken?: string;
135
- /**
136
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
137
- * the organization has one; required when it has several. Another
138
- * organization's connection is CONNECTION_NOT_FOUND.
139
- */
140
- connectionId?: string;
141
- /**
142
- * Solo si la búsqueda usó contract+service explícitos.
143
- */
144
- contract?: string;
145
- /**
146
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
147
- *
148
- * @deprecated
149
- */
150
- date?: string;
151
- /**
152
- * Documento confirmado de quien recibirá la atención (no del cuidador); si no
153
- * existe, primero create_patient.
154
- */
155
- documentNumber: string;
156
- /**
157
- * Tipo exacto de patient_context; CC por defecto.
158
- */
159
- documentType?: string;
160
- /**
161
- * La misma EPS de la búsqueda, cuando la enviaste.
162
- */
163
- eps?: string;
164
- /**
165
- * Solo Fono control: el mismo grupo de la búsqueda.
166
- */
167
- fonoGroup?: string;
168
- /**
169
- * La misma intención de la búsqueda; obligatoria cuando reservas por date +
170
- * time.
171
- */
172
- intent?: string;
173
- /**
174
- * Copia bookingInput.medicName del horario elegido. Conserva el profesional
175
- * aceptado y la continuidad. Nombre parcial inequívoco válido. SLOT_AMBIGUOUS
176
- * devuelve recovery.retryOptions: corrige este campo con el mismo profesional
177
- * ya elegido; si falta elección, pregunta antes de reservar. No concatenes
178
- * especialidad, alias ni nombres.
179
- */
180
- medicName: string;
181
- /**
182
- * Solo fisio modalidad: la misma de la búsqueda.
183
- */
184
- modality?: string;
185
- /**
186
- * Obligatorio: true solo si la persona confirmó audiometría y logoaudiometría
187
- * juntas, también cuando pidió la logoaudiometría, que nunca va sola; false
188
- * para una audiometría sola y para las demás especialidades. Copia
189
- * bookingInput.pairWithNext y conserva el alcance aceptado: una búsqueda de
190
- * pareja no prueba consentimiento. Dos servicios distintos consecutivos; no
191
- * repitas parejas parciales o inciertas. Inmitancia se coordina en MR.
192
- */
193
- pairWithNext: boolean;
194
- /**
195
- * Solo con fonoGroup o toGroup: la misma edad en meses de la búsqueda.
196
- */
197
- patientAgeMonths?: string;
198
- /**
199
- * Psychology only. true ONLY after explicit caller acceptance of the named
200
- * change from the previous treating professional to the selected medicName.
201
- * Carry that acceptance from availability to booking; never infer it from
202
- * thanks, a date confirmation, or a future appointment. series=true does not
203
- * bypass continuity. If the previous professional cannot be identified,
204
- * explain that limitation instead of inventing their name; explicit
205
- * acceptance of a real returned professionalCandidate permits the change.
206
- */
207
- professionalChangeConfirmed?: boolean;
208
- /**
209
- * El mismo régimen de la búsqueda, cuando lo enviaste.
210
- */
211
- regimen?: string;
212
- /**
213
- * Solo fisio control: la misma sala de la búsqueda, tal como la dijo la
214
- * persona; el servidor la normaliza.
215
- */
216
- sala?: string;
217
- /**
218
- * true only for an explicitly requested additional session. Never use it
219
- * instead of pairWithNext for audiometry plus logoaudiometry, replay a
220
- * partial/uncertain pair or create duplicate first valuations. Psychology
221
- * remains limited to one appointment every seven calendar days, including
222
- * series and a professional change.
223
- */
224
- series?: boolean;
225
- /**
226
- * Solo si la búsqueda usó contract+service explícitos.
227
- */
228
- service?: string;
229
- /**
230
- * La especialidad pedida HOY por la persona, nunca deducida del historial.
231
- * Acepta el nombre clínico o el código y lo normaliza al código interno.
232
- */
233
- specialty: string;
234
- /**
235
- * The appointment's moment, as an RFC 3339 instant with its offset, exactly
236
- * as an answer gave it in startsAt (for example "2026-11-04T08:50:00-05:00").
237
- * Send it in place of the former date and time; sent beside them, they must
238
- * name the same moment.
239
- */
240
- startsAt?: Temporal.Instant;
241
- /**
242
- * Deprecated: use `startsAt`. Answered until 2027-01-28.
243
- *
244
- * @deprecated
245
- */
246
- time?: string;
247
- /**
248
- * Solo TO control: el mismo grupo de la búsqueda.
249
- */
250
- toGroup?: string;
251
- /**
252
- * No lo uses: reserva con date + time. Solo existe por compatibilidad.
253
- */
254
- token?: string;
255
- /**
256
- * Normalmente omítelo: se conserva el código del cupo/token. Si el flujo
257
- * exige enviarlo, copia el código exacto devuelto; nunca etiquetas como
258
- * valoracion o control. R=remisión y S=sesión solo cuando el flujo lo
259
- * confirme.
260
- */
261
- visitType?: string;
262
- }
263
- /**
264
- * A failed answer.
265
- */
266
- export interface SomosCreateAppointmentConflictError {
267
- data: null;
268
- error: SomosCreateAppointmentConflictFailure;
269
- /**
270
- * What every answer carries besides its data or error.
271
- */
272
- metadata: ResponseMetadata;
273
- success: false;
274
- }
275
- export type SomosCreateAppointmentConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
276
- /**
277
- * A failed answer.
278
- */
279
- export interface SomosCreateAppointmentNotFoundError {
280
- data: null;
281
- error: SomosCreateAppointmentNotFoundFailure;
282
- /**
283
- * What every answer carries besides its data or error.
284
- */
285
- metadata: ResponseMetadata;
286
- success: false;
287
- }
288
- export type SomosCreateAppointmentNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
289
- /**
290
- * A failed answer.
291
- */
292
- export interface SomosCreateAppointmentServiceUnavailableError {
293
- data: null;
294
- error: SomosCreateAppointmentServiceUnavailableFailure;
295
- /**
296
- * What every answer carries besides its data or error.
297
- */
298
- metadata: ResponseMetadata;
299
- success: false;
300
- }
301
- export type SomosCreateAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
302
- export declare const SomosCancelAppointmentBodyCodec: import("../../_/codec.js").Codec;
303
- export declare const SomosCreateAppointmentBodyCodec: import("../../_/codec.js").Codec;
@@ -1,9 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { instant, object } from "../../_/index.js";
4
- export const SomosCancelAppointmentBodyCodec = object([
5
- ["startsAt", null, instant],
6
- ]);
7
- export const SomosCreateAppointmentBodyCodec = object([
8
- ["startsAt", null, instant],
9
- ]);
@@ -1,33 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type SomosAvailabilitySlotPageResponse, type SomosListAvailabilityBody } 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
- * Find available appointments
12
- *
13
- * Real available appointments for a service under a contract, one slot per
14
- * item in chronological order, each with its professional and the booking
15
- * reference (token) somos.appointments.create takes. A service that must be
16
- * booked with a companion (logoaudiometry after its audiometry) offers only
17
- * the slots whose companion is free too. limit is how many slots to offer
18
- * (three in a conversation); for more, call again with the same arguments and
19
- * pageInfo.nextCursor. window: requested; extended, the dates asked for had
20
- * none; alternative, the time preference had none (say those first). A
21
- * completed search without slots is TOOL_REFUSED (NO_AVAILABILITY); never
22
- * search again without the person's filters. This read never books anything.
23
- * A refusal is TOOL_REFUSED: data.reason says why, data.guidance what to do
24
- * next and data.details what it offers instead; it is never an outage. Somos
25
- * Salud's tool pack sets this tool's rules, parameters and accepted values
26
- * (somos.tools.list answers them), and every call is checked against them.
27
- */
28
- lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
29
- }
30
- export declare function createClient(options: ClientOptions): Client;
31
- export declare function bind(transport: Transport): Client;
32
- export type LookupRequest = SomosListAvailabilityBody;
33
- export type LookupResponse = SomosAvailabilitySlotPageResponse;
@@ -1,19 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { SomosAvailabilitySlotPageResponseCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- lookup: (request, options) => transport.send(LookupOperation, request, options),
11
- };
12
- }
13
- const LookupOperation = {
14
- method: "POST",
15
- route: "/v1/somos/availability/lookup",
16
- body: "flat",
17
- response: SomosAvailabilitySlotPageResponseCodec,
18
- 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 },
19
- };
@@ -1,5 +0,0 @@
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 { SomosAvailabilitySlot, SomosAvailabilitySlotPage, SomosAvailabilitySlotPageResponse, SomosListAvailabilityBadGatewayError, SomosListAvailabilityBadGatewayFailure, SomosListAvailabilityBody, SomosListAvailabilityConflictError, SomosListAvailabilityConflictFailure, SomosListAvailabilityNotFoundError, SomosListAvailabilityNotFoundFailure, SomosListAvailabilityServiceUnavailableError, SomosListAvailabilityServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";