@arbol-ai/sdk 5.25.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 (137) 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/raiz/conversations/client.d.ts +34 -9
  8. package/dist/raiz/conversations/client.js +2 -2
  9. package/dist/raiz/conversations/models.d.ts +3 -0
  10. package/dist/visoft/appointments/index.d.ts +1 -1
  11. package/dist/visoft/appointments/models.d.ts +32 -6
  12. package/dist/visoft/availability/models.d.ts +4 -4
  13. package/dist/visoft/contracts/index.d.ts +1 -1
  14. package/dist/visoft/contracts/models.d.ts +16 -3
  15. package/dist/visoft/index.d.ts +1 -1
  16. package/dist/visoft/models.d.ts +67 -2
  17. package/dist/visoft/patients/index.d.ts +1 -1
  18. package/dist/visoft/patients/models.d.ts +35 -6
  19. package/dist/visoft/professionals/models.d.ts +4 -4
  20. package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
  21. package/dist/visoft/services/index.d.ts +1 -1
  22. package/dist/visoft/services/models.d.ts +16 -3
  23. package/package.json +3 -3
  24. package/dist/orsovision/agencies/client.d.ts +0 -51
  25. package/dist/orsovision/agencies/client.js +0 -18
  26. package/dist/orsovision/agencies/index.d.ts +0 -5
  27. package/dist/orsovision/agencies/index.js +0 -4
  28. package/dist/orsovision/agencies/models.d.ts +0 -107
  29. package/dist/orsovision/agencies/models.js +0 -3
  30. package/dist/orsovision/appointments/client.d.ts +0 -39
  31. package/dist/orsovision/appointments/client.js +0 -29
  32. package/dist/orsovision/appointments/index.d.ts +0 -5
  33. package/dist/orsovision/appointments/index.js +0 -4
  34. package/dist/orsovision/appointments/models.d.ts +0 -182
  35. package/dist/orsovision/appointments/models.js +0 -9
  36. package/dist/orsovision/availability/client.d.ts +0 -32
  37. package/dist/orsovision/availability/client.js +0 -19
  38. package/dist/orsovision/availability/index.d.ts +0 -5
  39. package/dist/orsovision/availability/index.js +0 -4
  40. package/dist/orsovision/availability/models.d.ts +0 -228
  41. package/dist/orsovision/availability/models.js +0 -15
  42. package/dist/orsovision/client.d.ts +0 -27
  43. package/dist/orsovision/client.js +0 -50
  44. package/dist/orsovision/clinic/client.d.ts +0 -34
  45. package/dist/orsovision/clinic/client.js +0 -18
  46. package/dist/orsovision/clinic/index.d.ts +0 -5
  47. package/dist/orsovision/clinic/index.js +0 -4
  48. package/dist/orsovision/clinic/models.d.ts +0 -90
  49. package/dist/orsovision/clinic/models.js +0 -3
  50. package/dist/orsovision/contracts/client.d.ts +0 -69
  51. package/dist/orsovision/contracts/client.js +0 -18
  52. package/dist/orsovision/contracts/index.d.ts +0 -5
  53. package/dist/orsovision/contracts/index.js +0 -4
  54. package/dist/orsovision/contracts/models.d.ts +0 -84
  55. package/dist/orsovision/contracts/models.js +0 -3
  56. package/dist/orsovision/index.d.ts +0 -5
  57. package/dist/orsovision/index.js +0 -4
  58. package/dist/orsovision/models.d.ts +0 -66
  59. package/dist/orsovision/models.js +0 -3
  60. package/dist/orsovision/patients/client.d.ts +0 -52
  61. package/dist/orsovision/patients/client.js +0 -34
  62. package/dist/orsovision/patients/index.d.ts +0 -5
  63. package/dist/orsovision/patients/index.js +0 -4
  64. package/dist/orsovision/patients/models.d.ts +0 -287
  65. package/dist/orsovision/patients/models.js +0 -3
  66. package/dist/orsovision/services/client.d.ts +0 -74
  67. package/dist/orsovision/services/client.js +0 -18
  68. package/dist/orsovision/services/index.d.ts +0 -5
  69. package/dist/orsovision/services/index.js +0 -4
  70. package/dist/orsovision/services/models.d.ts +0 -81
  71. package/dist/orsovision/services/models.js +0 -3
  72. package/dist/orsovision/tools/client.d.ts +0 -44
  73. package/dist/orsovision/tools/client.js +0 -18
  74. package/dist/orsovision/tools/index.d.ts +0 -5
  75. package/dist/orsovision/tools/index.js +0 -4
  76. package/dist/orsovision/tools/models.d.ts +0 -102
  77. package/dist/orsovision/tools/models.js +0 -3
  78. package/dist/somos/appointments/client.d.ts +0 -40
  79. package/dist/somos/appointments/client.js +0 -29
  80. package/dist/somos/appointments/index.d.ts +0 -5
  81. package/dist/somos/appointments/index.js +0 -4
  82. package/dist/somos/appointments/models.d.ts +0 -303
  83. package/dist/somos/appointments/models.js +0 -9
  84. package/dist/somos/availability/client.d.ts +0 -33
  85. package/dist/somos/availability/client.js +0 -19
  86. package/dist/somos/availability/index.d.ts +0 -5
  87. package/dist/somos/availability/index.js +0 -4
  88. package/dist/somos/availability/models.d.ts +0 -338
  89. package/dist/somos/availability/models.js +0 -15
  90. package/dist/somos/client.d.ts +0 -29
  91. package/dist/somos/client.js +0 -55
  92. package/dist/somos/clinic/client.d.ts +0 -33
  93. package/dist/somos/clinic/client.js +0 -18
  94. package/dist/somos/clinic/index.d.ts +0 -5
  95. package/dist/somos/clinic/index.js +0 -4
  96. package/dist/somos/clinic/models.d.ts +0 -90
  97. package/dist/somos/clinic/models.js +0 -3
  98. package/dist/somos/contracts/client.d.ts +0 -74
  99. package/dist/somos/contracts/client.js +0 -18
  100. package/dist/somos/contracts/index.d.ts +0 -5
  101. package/dist/somos/contracts/index.js +0 -4
  102. package/dist/somos/contracts/models.d.ts +0 -96
  103. package/dist/somos/contracts/models.js +0 -3
  104. package/dist/somos/groups/client.d.ts +0 -67
  105. package/dist/somos/groups/client.js +0 -18
  106. package/dist/somos/groups/index.d.ts +0 -5
  107. package/dist/somos/groups/index.js +0 -4
  108. package/dist/somos/groups/models.d.ts +0 -117
  109. package/dist/somos/groups/models.js +0 -3
  110. package/dist/somos/index.d.ts +0 -5
  111. package/dist/somos/index.js +0 -4
  112. package/dist/somos/models.d.ts +0 -88
  113. package/dist/somos/models.js +0 -3
  114. package/dist/somos/patients/client.d.ts +0 -51
  115. package/dist/somos/patients/client.js +0 -34
  116. package/dist/somos/patients/index.d.ts +0 -5
  117. package/dist/somos/patients/index.js +0 -4
  118. package/dist/somos/patients/models.d.ts +0 -330
  119. package/dist/somos/patients/models.js +0 -3
  120. package/dist/somos/services/client.d.ts +0 -116
  121. package/dist/somos/services/client.js +0 -26
  122. package/dist/somos/services/index.d.ts +0 -5
  123. package/dist/somos/services/index.js +0 -4
  124. package/dist/somos/services/models.d.ts +0 -261
  125. package/dist/somos/services/models.js +0 -3
  126. package/dist/somos/specialtyRules/client.d.ts +0 -44
  127. package/dist/somos/specialtyRules/client.js +0 -18
  128. package/dist/somos/specialtyRules/index.d.ts +0 -5
  129. package/dist/somos/specialtyRules/index.js +0 -4
  130. package/dist/somos/specialtyRules/models.d.ts +0 -54
  131. package/dist/somos/specialtyRules/models.js +0 -3
  132. package/dist/somos/tools/client.d.ts +0 -44
  133. package/dist/somos/tools/client.js +0 -18
  134. package/dist/somos/tools/index.d.ts +0 -5
  135. package/dist/somos/tools/index.js +0 -4
  136. package/dist/somos/tools/models.d.ts +0 -102
  137. package/dist/somos/tools/models.js +0 -3
@@ -1,330 +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 SomosCorrectPatientBadGatewayError {
7
- data: null;
8
- error: SomosCorrectPatientBadGatewayFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type SomosCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
16
- export interface SomosCorrectPatientBody {
17
- /**
18
- * Dirección corregida; omítela si no cambió.
19
- */
20
- address?: string;
21
- /**
22
- * Nacimiento corregido YYYY-MM-DD; omítelo si no cambió.
23
- */
24
- birthDate?: string;
25
- /**
26
- * The channel the conversation happens on: voice, whatsapp or web (the
27
- * default).
28
- */
29
- channel?: "voice" | "web" | "whatsapp";
30
- /**
31
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
32
- * the organization has one; required when it has several. Another
33
- * organization's connection is CONNECTION_NOT_FOUND.
34
- */
35
- connectionId?: string;
36
- /**
37
- * Documento del paciente existente; solo dígitos.
38
- */
39
- documentNumber: string;
40
- /**
41
- * Correo corregido; omítelo si no cambió.
42
- */
43
- email?: string;
44
- /**
45
- * Primer nombre corregido; omítelo si no cambió.
46
- */
47
- firstName1?: string;
48
- /**
49
- * Segundo nombre corregido; omítelo si no cambió.
50
- */
51
- firstName2?: string;
52
- /**
53
- * Primer apellido corregido; omítelo si no cambió.
54
- */
55
- lastName1?: string;
56
- /**
57
- * Segundo apellido corregido; omítelo si no cambió.
58
- */
59
- lastName2?: string;
60
- /**
61
- * Celular corregido; omítelo si no cambió.
62
- */
63
- phoneMobile?: string;
64
- /**
65
- * Teléfono fijo corregido; omítelo si no cambió.
66
- */
67
- phoneOffice?: string;
68
- /**
69
- * Sexo del registro corregido y confirmado explícitamente: M o F. No lo
70
- * infieras del nombre ni lo confundas con identidad de género u orientación.
71
- * Omítelo si no cambió; updated:true confirma la lectura posterior del dato
72
- * guardado.
73
- */
74
- sex?: string;
75
- }
76
- /**
77
- * A failed answer.
78
- */
79
- export interface SomosCorrectPatientConflictError {
80
- data: null;
81
- error: SomosCorrectPatientConflictFailure;
82
- /**
83
- * What every answer carries besides its data or error.
84
- */
85
- metadata: ResponseMetadata;
86
- success: false;
87
- }
88
- export type SomosCorrectPatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
89
- /**
90
- * A failed answer.
91
- */
92
- export interface SomosCorrectPatientNotFoundError {
93
- data: null;
94
- error: SomosCorrectPatientNotFoundFailure;
95
- /**
96
- * What every answer carries besides its data or error.
97
- */
98
- metadata: ResponseMetadata;
99
- success: false;
100
- }
101
- export type SomosCorrectPatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
102
- /**
103
- * A failed answer.
104
- */
105
- export interface SomosCorrectPatientServiceUnavailableError {
106
- data: null;
107
- error: SomosCorrectPatientServiceUnavailableFailure;
108
- /**
109
- * What every answer carries besides its data or error.
110
- */
111
- metadata: ResponseMetadata;
112
- success: false;
113
- }
114
- export type SomosCorrectPatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
115
- /**
116
- * A failed answer.
117
- */
118
- export interface SomosCreatePatientBadGatewayError {
119
- data: null;
120
- error: SomosCreatePatientBadGatewayFailure;
121
- /**
122
- * What every answer carries besides its data or error.
123
- */
124
- metadata: ResponseMetadata;
125
- success: false;
126
- }
127
- export type SomosCreatePatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
128
- export interface SomosCreatePatientBody {
129
- /**
130
- * Nacimiento confirmado, YYYY-MM-DD.
131
- */
132
- birthDate: string;
133
- /**
134
- * The channel the conversation happens on: voice, whatsapp or web (the
135
- * default).
136
- */
137
- channel?: "voice" | "web" | "whatsapp";
138
- /**
139
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
140
- * the organization has one; required when it has several. Another
141
- * organization's connection is CONNECTION_NOT_FOUND.
142
- */
143
- connectionId?: string;
144
- /**
145
- * Solo dígitos confirmados; nunca leas el número completo en voz alta.
146
- */
147
- documentNumber: string;
148
- /**
149
- * Tipo tal como aparece en el documento; acepta el nombre completo (Registro
150
- * Civil) o el código (RC). Para un adulto de 18 o más puedes omitirlo o
151
- * enviar CC: el servidor asume cédula de ciudadanía. Para un menor pregunta
152
- * siempre (RC o TI); CC se rechaza con menores. Extranjeros: CE, PA, PE o PT
153
- * según digan.
154
- */
155
- documentType?: string;
156
- /**
157
- * Correo opcional; omítelo si no hay, nunca envíes vacío.
158
- */
159
- email?: string;
160
- /**
161
- * Si ya la conoces, la EPS confirmada; con specialty e intent el servidor
162
- * devuelve availability en esta misma respuesta.
163
- */
164
- eps?: string;
165
- /**
166
- * Primer nombre confirmado. Con cuatro partes: las dos primeras son
167
- * firstName1 y firstName2, las dos últimas lastName1 y lastName2; si la
168
- * división es ambigua pregunta una sola vez.
169
- */
170
- firstName1: string;
171
- /**
172
- * Segundo nombre confirmado; omítelo si no existe.
173
- */
174
- firstName2?: string;
175
- /**
176
- * Si ya la conoces, la intención de hoy (valoracion para paciente nuevo).
177
- */
178
- intent?: string;
179
- /**
180
- * Primer apellido tal como se confirmó.
181
- */
182
- lastName1: string;
183
- /**
184
- * Segundo apellido confirmado; omítelo si no existe.
185
- */
186
- lastName2?: string;
187
- /**
188
- * Celular confirmado: 10 dígitos y empieza por 3. Omítelo solo si la persona
189
- * se niega a darlo.
190
- */
191
- phoneMobile?: string;
192
- /**
193
- * Si ya lo conoces, el régimen confirmado.
194
- */
195
- regimen?: string;
196
- /**
197
- * Dato confirmado: M=masculino, F=femenino. Se normalizan esas etiquetas
198
- * exactas, mayúsculas y espacios. NUNCA lo infieras del nombre ni de la voz;
199
- * pregunta si no está confirmado.
200
- */
201
- sex: string;
202
- /**
203
- * Si ya la conoces, la especialidad pedida hoy: el servidor busca
204
- * disponibilidad en la misma llamada y la devuelve en availability.
205
- */
206
- specialty?: string;
207
- }
208
- /**
209
- * A failed answer.
210
- */
211
- export interface SomosCreatePatientConflictError {
212
- data: null;
213
- error: SomosCreatePatientConflictFailure;
214
- /**
215
- * What every answer carries besides its data or error.
216
- */
217
- metadata: ResponseMetadata;
218
- success: false;
219
- }
220
- export type SomosCreatePatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
221
- /**
222
- * A failed answer.
223
- */
224
- export interface SomosCreatePatientNotFoundError {
225
- data: null;
226
- error: SomosCreatePatientNotFoundFailure;
227
- /**
228
- * What every answer carries besides its data or error.
229
- */
230
- metadata: ResponseMetadata;
231
- success: false;
232
- }
233
- export type SomosCreatePatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
234
- /**
235
- * A failed answer.
236
- */
237
- export interface SomosCreatePatientServiceUnavailableError {
238
- data: null;
239
- error: SomosCreatePatientServiceUnavailableFailure;
240
- /**
241
- * What every answer carries besides its data or error.
242
- */
243
- metadata: ResponseMetadata;
244
- success: false;
245
- }
246
- export type SomosCreatePatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
247
- /**
248
- * A failed answer.
249
- */
250
- export interface SomosLookupPatientBadGatewayError {
251
- data: null;
252
- error: SomosLookupPatientBadGatewayFailure;
253
- /**
254
- * What every answer carries besides its data or error.
255
- */
256
- metadata: ResponseMetadata;
257
- success: false;
258
- }
259
- export type SomosLookupPatientBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
260
- export interface SomosLookupPatientBody {
261
- /**
262
- * The channel the conversation happens on: voice, whatsapp or web (the
263
- * default).
264
- */
265
- channel?: "voice" | "web" | "whatsapp";
266
- /**
267
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
268
- * the organization has one; required when it has several. Another
269
- * organization's connection is CONNECTION_NOT_FOUND.
270
- */
271
- connectionId?: string;
272
- /**
273
- * Solo dígitos, sin puntos ni espacios, conservando ceros iniciales.
274
- * WhatsApp: usa el documento escrito completo y claro sin otro turno de
275
- * confirmación. Voz: úsalo únicamente después de confirmar el documento
276
- * completo, repetido dígito por dígito, en un turno posterior.
277
- */
278
- documentNumber: string;
279
- /**
280
- * true solo cuando necesites filas históricas: pastAppointments y admissions.
281
- * therapyHistory ya resume el historial completo sin este indicador; no
282
- * repitas la consulta para obtenerlo. Para control usa
283
- * therapyHistory.<fono|to>.hasPriorVisit.
284
- */
285
- includePast?: boolean;
286
- /**
287
- * Con includePast, limita pastAppointments a los últimos N días (p. ej. 3
288
- * para '¿vine esta semana?'). Omítelo para el historial completo.
289
- */
290
- pastDays?: number;
291
- }
292
- /**
293
- * A failed answer.
294
- */
295
- export interface SomosLookupPatientConflictError {
296
- data: null;
297
- error: SomosLookupPatientConflictFailure;
298
- /**
299
- * What every answer carries besides its data or error.
300
- */
301
- metadata: ResponseMetadata;
302
- success: false;
303
- }
304
- export type SomosLookupPatientConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
305
- /**
306
- * A failed answer.
307
- */
308
- export interface SomosLookupPatientNotFoundError {
309
- data: null;
310
- error: SomosLookupPatientNotFoundFailure;
311
- /**
312
- * What every answer carries besides its data or error.
313
- */
314
- metadata: ResponseMetadata;
315
- success: false;
316
- }
317
- export type SomosLookupPatientNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
318
- /**
319
- * A failed answer.
320
- */
321
- export interface SomosLookupPatientServiceUnavailableError {
322
- data: null;
323
- error: SomosLookupPatientServiceUnavailableFailure;
324
- /**
325
- * What every answer carries besides its data or error.
326
- */
327
- metadata: ResponseMetadata;
328
- success: false;
329
- }
330
- export type SomosLookupPatientServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -1,116 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { SomosContractServicePageResponse, SomosLookupServicesBody, SomosServiceLookupResponse } 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
- * List a contract's services
12
- *
13
- * The services of one of the clinic's contracts (code), in ascending code
14
- * order; with q, only those whose code or name contains it. When none does,
15
- * the search is TOOL_REFUSED (SERVICE_SEARCH_NOT_FOUND), and
16
- * data.details.didYouMean holds up to three of the contract's services,
17
- * within the same filters, that the catalog search finds closest in meaning:
18
- * suggestions to confirm, never substitutes. A contract without the service
19
- * asked for is TOOL_REFUSED (SERVICE_NOT_IN_CONTRACT), whose guidance names
20
- * the contract that has it. Catalog items that cannot be booked are not
21
- * appointment availability. A refusal is TOOL_REFUSED: data.reason says why,
22
- * data.guidance what to do next and data.details what it offers instead; it
23
- * is never an outage. Somos Salud's tool pack sets this tool's rules,
24
- * parameters and accepted values (somos.tools.list answers them), and every
25
- * call is checked against them.
26
- */
27
- list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
28
- /**
29
- * Look up a contract's services
30
- *
31
- * The services of one of the clinic's contracts closest to a query: first
32
- * those whose code or name contains it (match words, score 1), then those the
33
- * catalog search finds close in meaning (match meaning), at most limit (5 by
34
- * default). Every answer is one of the contract's current services, within
35
- * specialty when it is named; a match by meaning is a suggestion to confirm
36
- * with the person or the order, never a substitute for the service ordered.
37
- * An empty answer says nothing about coverage. CONTRACT_NOT_FOUND when the
38
- * clinic has no such contract; SERVICES_SEARCH_UNAVAILABLE when AI Search
39
- * cannot answer and no service matched by words. Contains no patient data.
40
- */
41
- lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
42
- }
43
- export declare function createClient(options: ClientOptions): Client;
44
- export declare function bind(transport: Transport): Client;
45
- export interface ListRequest {
46
- /**
47
- * Code exacto devuelto por list_contracts o presente en el historial del
48
- * paciente para la misma especialidad.
49
- */
50
- code: string;
51
- /**
52
- * Código o frase del servicio confirmado en la orden. Acota por contenido sin
53
- * distinguir mayúsculas ni tildes, junto con los demás filtros; no cambia el
54
- * convenio ni la especialidad.
55
- */
56
- q?: string;
57
- /**
58
- * Especialidad pedida hoy; acepta el nombre clínico o el código y la
59
- * normaliza al código interno para acotar la respuesta al servicio correcto.
60
- */
61
- specialty?: string;
62
- /**
63
- * Intención confirmada para consultar el servicio. Audiometría tonal y
64
- * logoaudiometría sí se agendan con specialty=audio; no preguntes valoración
65
- * frente a control para estos exámenes. Inmitancia se coordina en MR.
66
- */
67
- intent?: string;
68
- /**
69
- * Solo para fisio con intent=modalidad.
70
- */
71
- modality?: string;
72
- /**
73
- * Solo para specialty=fisio: frase real del servicio en la autorización EPS
74
- * cuando la modalidad la requiera. Para cualquier otra especialidad, omite
75
- * este campo. Omite el campo en valoración/control de fisioterapia común.
76
- * Nunca envíes x, NO, vacío ni otro relleno. Para biofeedback se requiere la
77
- * frase exacta; no infieras el servicio de piso pélvico.
78
- */
79
- authorizationService?: string;
80
- /**
81
- * true solo si la persona afirma que un servicio falta o acaba de
82
- * habilitarse; relee el catálogo en vez del caché de 6 h.
83
- */
84
- refresh?: boolean;
85
- /**
86
- * Opaque cursor returned by pageInfo; omit it to request the first page.
87
- */
88
- cursor?: string;
89
- /**
90
- * Direction to traverse the stable keyset ordering from the supplied cursor.
91
- */
92
- direction?: "forward" | "backward";
93
- /**
94
- * Maximum items returned in one page. Defaults to 25; larger reads require
95
- * another cursor.
96
- */
97
- limit?: number;
98
- /**
99
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
100
- * the organization has one; required when it has several. Another
101
- * organization's connection is CONNECTION_NOT_FOUND.
102
- */
103
- connectionId?: string;
104
- /**
105
- * The channel the conversation happens on: voice, whatsapp or web (the
106
- * default).
107
- */
108
- channel?: "voice" | "web" | "whatsapp";
109
- /**
110
- * Deprecated: use `q`. Answered until 2027-01-28.
111
- */
112
- search?: string;
113
- }
114
- export type ListResponse = SomosContractServicePageResponse;
115
- export type LookupRequest = SomosLookupServicesBody;
116
- export type LookupResponse = SomosServiceLookupResponse;
@@ -1,26 +0,0 @@
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
- list: (request, options) => transport.send(ListOperation, request, options),
10
- lookup: (request, options) => transport.send(LookupOperation, request, options),
11
- };
12
- }
13
- const ListOperation = {
14
- method: "GET",
15
- route: "/v1/somos/services",
16
- query: { code: "code", q: "q", specialty: "specialty", intent: "intent", modality: "modality", authorizationService: "authorizationService", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel", search: "search" },
17
- response: null,
18
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
- };
20
- const LookupOperation = {
21
- method: "POST",
22
- route: "/v1/somos/services/lookup",
23
- body: "flat",
24
- response: null,
25
- 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 },
26
- };
@@ -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, ListRequest, ListResponse, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { SomosContractNotFoundFailure, SomosContractService, SomosContractServicePage, SomosContractServicePageResponse, SomosListServicesBadGatewayError, SomosListServicesBadGatewayFailure, SomosListServicesConflictError, SomosListServicesConflictFailure, SomosListServicesNotFoundError, SomosListServicesNotFoundFailure, SomosListServicesServiceUnavailableError, SomosListServicesServiceUnavailableFailure, SomosLookupServicesBadGatewayError, SomosLookupServicesBadGatewayFailure, SomosLookupServicesBody, SomosLookupServicesConflictError, SomosLookupServicesConflictFailure, SomosLookupServicesNotFoundError, SomosLookupServicesNotFoundFailure, SomosLookupServicesServiceUnavailableError, SomosLookupServicesServiceUnavailableFailure, SomosServiceLookup, SomosServiceLookupResponse, SomosServiceMatch, SomosServicesSearchUnavailableFailure, } 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";