@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.
- package/README.md +4 -4
- package/dist/client.d.ts +0 -4
- package/dist/client.js +0 -10
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -282
- package/dist/models.js +1 -5
- package/dist/raiz/conversations/client.d.ts +34 -9
- package/dist/raiz/conversations/client.js +2 -2
- package/dist/raiz/conversations/models.d.ts +3 -0
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +32 -6
- package/dist/visoft/availability/models.d.ts +4 -4
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +16 -3
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +67 -2
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +35 -6
- package/dist/visoft/professionals/models.d.ts +4 -4
- package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +16 -3
- package/package.json +3 -3
- package/dist/orsovision/agencies/client.d.ts +0 -51
- package/dist/orsovision/agencies/client.js +0 -18
- package/dist/orsovision/agencies/index.d.ts +0 -5
- package/dist/orsovision/agencies/index.js +0 -4
- package/dist/orsovision/agencies/models.d.ts +0 -107
- package/dist/orsovision/agencies/models.js +0 -3
- package/dist/orsovision/appointments/client.d.ts +0 -39
- package/dist/orsovision/appointments/client.js +0 -29
- package/dist/orsovision/appointments/index.d.ts +0 -5
- package/dist/orsovision/appointments/index.js +0 -4
- package/dist/orsovision/appointments/models.d.ts +0 -182
- package/dist/orsovision/appointments/models.js +0 -9
- package/dist/orsovision/availability/client.d.ts +0 -32
- package/dist/orsovision/availability/client.js +0 -19
- package/dist/orsovision/availability/index.d.ts +0 -5
- package/dist/orsovision/availability/index.js +0 -4
- package/dist/orsovision/availability/models.d.ts +0 -228
- package/dist/orsovision/availability/models.js +0 -15
- package/dist/orsovision/client.d.ts +0 -27
- package/dist/orsovision/client.js +0 -50
- package/dist/orsovision/clinic/client.d.ts +0 -34
- package/dist/orsovision/clinic/client.js +0 -18
- package/dist/orsovision/clinic/index.d.ts +0 -5
- package/dist/orsovision/clinic/index.js +0 -4
- package/dist/orsovision/clinic/models.d.ts +0 -90
- package/dist/orsovision/clinic/models.js +0 -3
- package/dist/orsovision/contracts/client.d.ts +0 -69
- package/dist/orsovision/contracts/client.js +0 -18
- package/dist/orsovision/contracts/index.d.ts +0 -5
- package/dist/orsovision/contracts/index.js +0 -4
- package/dist/orsovision/contracts/models.d.ts +0 -84
- package/dist/orsovision/contracts/models.js +0 -3
- package/dist/orsovision/index.d.ts +0 -5
- package/dist/orsovision/index.js +0 -4
- package/dist/orsovision/models.d.ts +0 -66
- package/dist/orsovision/models.js +0 -3
- package/dist/orsovision/patients/client.d.ts +0 -52
- package/dist/orsovision/patients/client.js +0 -34
- package/dist/orsovision/patients/index.d.ts +0 -5
- package/dist/orsovision/patients/index.js +0 -4
- package/dist/orsovision/patients/models.d.ts +0 -287
- package/dist/orsovision/patients/models.js +0 -3
- package/dist/orsovision/services/client.d.ts +0 -74
- package/dist/orsovision/services/client.js +0 -18
- package/dist/orsovision/services/index.d.ts +0 -5
- package/dist/orsovision/services/index.js +0 -4
- package/dist/orsovision/services/models.d.ts +0 -81
- package/dist/orsovision/services/models.js +0 -3
- package/dist/orsovision/tools/client.d.ts +0 -44
- package/dist/orsovision/tools/client.js +0 -18
- package/dist/orsovision/tools/index.d.ts +0 -5
- package/dist/orsovision/tools/index.js +0 -4
- package/dist/orsovision/tools/models.d.ts +0 -102
- package/dist/orsovision/tools/models.js +0 -3
- package/dist/somos/appointments/client.d.ts +0 -40
- package/dist/somos/appointments/client.js +0 -29
- package/dist/somos/appointments/index.d.ts +0 -5
- package/dist/somos/appointments/index.js +0 -4
- package/dist/somos/appointments/models.d.ts +0 -303
- package/dist/somos/appointments/models.js +0 -9
- package/dist/somos/availability/client.d.ts +0 -33
- package/dist/somos/availability/client.js +0 -19
- package/dist/somos/availability/index.d.ts +0 -5
- package/dist/somos/availability/index.js +0 -4
- package/dist/somos/availability/models.d.ts +0 -338
- package/dist/somos/availability/models.js +0 -15
- package/dist/somos/client.d.ts +0 -29
- package/dist/somos/client.js +0 -55
- package/dist/somos/clinic/client.d.ts +0 -33
- package/dist/somos/clinic/client.js +0 -18
- package/dist/somos/clinic/index.d.ts +0 -5
- package/dist/somos/clinic/index.js +0 -4
- package/dist/somos/clinic/models.d.ts +0 -90
- package/dist/somos/clinic/models.js +0 -3
- package/dist/somos/contracts/client.d.ts +0 -74
- package/dist/somos/contracts/client.js +0 -18
- package/dist/somos/contracts/index.d.ts +0 -5
- package/dist/somos/contracts/index.js +0 -4
- package/dist/somos/contracts/models.d.ts +0 -96
- package/dist/somos/contracts/models.js +0 -3
- package/dist/somos/groups/client.d.ts +0 -67
- package/dist/somos/groups/client.js +0 -18
- package/dist/somos/groups/index.d.ts +0 -5
- package/dist/somos/groups/index.js +0 -4
- package/dist/somos/groups/models.d.ts +0 -117
- package/dist/somos/groups/models.js +0 -3
- package/dist/somos/index.d.ts +0 -5
- package/dist/somos/index.js +0 -4
- package/dist/somos/models.d.ts +0 -88
- package/dist/somos/models.js +0 -3
- package/dist/somos/patients/client.d.ts +0 -51
- package/dist/somos/patients/client.js +0 -34
- package/dist/somos/patients/index.d.ts +0 -5
- package/dist/somos/patients/index.js +0 -4
- package/dist/somos/patients/models.d.ts +0 -330
- package/dist/somos/patients/models.js +0 -3
- package/dist/somos/services/client.d.ts +0 -116
- package/dist/somos/services/client.js +0 -26
- package/dist/somos/services/index.d.ts +0 -5
- package/dist/somos/services/index.js +0 -4
- package/dist/somos/services/models.d.ts +0 -261
- package/dist/somos/services/models.js +0 -3
- package/dist/somos/specialtyRules/client.d.ts +0 -44
- package/dist/somos/specialtyRules/client.js +0 -18
- package/dist/somos/specialtyRules/index.d.ts +0 -5
- package/dist/somos/specialtyRules/index.js +0 -4
- package/dist/somos/specialtyRules/models.d.ts +0 -54
- package/dist/somos/specialtyRules/models.js +0 -3
- package/dist/somos/tools/client.d.ts +0 -44
- package/dist/somos/tools/client.js +0 -18
- package/dist/somos/tools/index.d.ts +0 -5
- package/dist/somos/tools/index.js +0 -4
- package/dist/somos/tools/models.d.ts +0 -102
- package/dist/somos/tools/models.js +0 -3
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, Empty, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
/**
|
|
4
|
-
* The clinic has no contract with that code; somos.contracts.list answers the
|
|
5
|
-
* clinic's contracts.
|
|
6
|
-
*/
|
|
7
|
-
export interface SomosContractNotFoundFailure {
|
|
8
|
-
/**
|
|
9
|
-
* The failure code, stable across releases.
|
|
10
|
-
*/
|
|
11
|
-
code: "CONTRACT_NOT_FOUND";
|
|
12
|
-
/**
|
|
13
|
-
* No fields.
|
|
14
|
-
*/
|
|
15
|
-
data: Empty;
|
|
16
|
-
/**
|
|
17
|
-
* What went wrong, for people; it never contains input values.
|
|
18
|
-
*/
|
|
19
|
-
message: string;
|
|
20
|
-
/**
|
|
21
|
-
* Whether repeating the same request may succeed.
|
|
22
|
-
*/
|
|
23
|
-
retryable: false;
|
|
24
|
-
}
|
|
25
|
-
export interface SomosContractService {
|
|
26
|
-
/**
|
|
27
|
-
* The service, as somos.availability.lookup takes it.
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
* The service's name in the clinic's catalog.
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* The contract's price, when the catalog states one.
|
|
36
|
-
*/
|
|
37
|
-
price: number | null;
|
|
38
|
-
}
|
|
39
|
-
export interface SomosContractServicePage {
|
|
40
|
-
/**
|
|
41
|
-
* Items admitted by this resource contract within the verified organization.
|
|
42
|
-
*/
|
|
43
|
-
data: SomosContractService[];
|
|
44
|
-
/**
|
|
45
|
-
* Discriminator for a resource list response.
|
|
46
|
-
*/
|
|
47
|
-
object: "list";
|
|
48
|
-
/**
|
|
49
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
50
|
-
*/
|
|
51
|
-
pageInfo: PageInfo;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* A successful answer.
|
|
55
|
-
*/
|
|
56
|
-
export interface SomosContractServicePageResponse {
|
|
57
|
-
data: SomosContractServicePage;
|
|
58
|
-
error: null;
|
|
59
|
-
/**
|
|
60
|
-
* What every answer carries besides its data or error.
|
|
61
|
-
*/
|
|
62
|
-
metadata: ResponseMetadata;
|
|
63
|
-
success: true;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* A failed answer.
|
|
67
|
-
*/
|
|
68
|
-
export interface SomosListServicesBadGatewayError {
|
|
69
|
-
data: null;
|
|
70
|
-
error: SomosListServicesBadGatewayFailure;
|
|
71
|
-
/**
|
|
72
|
-
* What every answer carries besides its data or error.
|
|
73
|
-
*/
|
|
74
|
-
metadata: ResponseMetadata;
|
|
75
|
-
success: false;
|
|
76
|
-
}
|
|
77
|
-
export type SomosListServicesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
78
|
-
/**
|
|
79
|
-
* A failed answer.
|
|
80
|
-
*/
|
|
81
|
-
export interface SomosListServicesConflictError {
|
|
82
|
-
data: null;
|
|
83
|
-
error: SomosListServicesConflictFailure;
|
|
84
|
-
/**
|
|
85
|
-
* What every answer carries besides its data or error.
|
|
86
|
-
*/
|
|
87
|
-
metadata: ResponseMetadata;
|
|
88
|
-
success: false;
|
|
89
|
-
}
|
|
90
|
-
export type SomosListServicesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
91
|
-
/**
|
|
92
|
-
* A failed answer.
|
|
93
|
-
*/
|
|
94
|
-
export interface SomosListServicesNotFoundError {
|
|
95
|
-
data: null;
|
|
96
|
-
error: SomosListServicesNotFoundFailure;
|
|
97
|
-
/**
|
|
98
|
-
* What every answer carries besides its data or error.
|
|
99
|
-
*/
|
|
100
|
-
metadata: ResponseMetadata;
|
|
101
|
-
success: false;
|
|
102
|
-
}
|
|
103
|
-
export type SomosListServicesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
104
|
-
/**
|
|
105
|
-
* A failed answer.
|
|
106
|
-
*/
|
|
107
|
-
export interface SomosListServicesServiceUnavailableError {
|
|
108
|
-
data: null;
|
|
109
|
-
error: SomosListServicesServiceUnavailableFailure;
|
|
110
|
-
/**
|
|
111
|
-
* What every answer carries besides its data or error.
|
|
112
|
-
*/
|
|
113
|
-
metadata: ResponseMetadata;
|
|
114
|
-
success: false;
|
|
115
|
-
}
|
|
116
|
-
export type SomosListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
117
|
-
/**
|
|
118
|
-
* A failed answer.
|
|
119
|
-
*/
|
|
120
|
-
export interface SomosLookupServicesBadGatewayError {
|
|
121
|
-
data: null;
|
|
122
|
-
error: SomosLookupServicesBadGatewayFailure;
|
|
123
|
-
/**
|
|
124
|
-
* What every answer carries besides its data or error.
|
|
125
|
-
*/
|
|
126
|
-
metadata: ResponseMetadata;
|
|
127
|
-
success: false;
|
|
128
|
-
}
|
|
129
|
-
export type SomosLookupServicesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
130
|
-
export interface SomosLookupServicesBody {
|
|
131
|
-
/**
|
|
132
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
133
|
-
* the organization has one; required when it has several. Another
|
|
134
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
135
|
-
*/
|
|
136
|
-
connectionId?: string;
|
|
137
|
-
/**
|
|
138
|
-
* The contract whose current services may answer, as somos.contracts.list
|
|
139
|
-
* names it.
|
|
140
|
-
*/
|
|
141
|
-
contractCode: string;
|
|
142
|
-
/**
|
|
143
|
-
* How many services to answer at most: 5 by default.
|
|
144
|
-
*/
|
|
145
|
-
limit?: number;
|
|
146
|
-
/**
|
|
147
|
-
* The service as the person or their order names it: words, a code or both.
|
|
148
|
-
* Case and accents do not matter.
|
|
149
|
-
*/
|
|
150
|
-
q: string;
|
|
151
|
-
/**
|
|
152
|
-
* Only services of this specialty, when the conversation has confirmed one.
|
|
153
|
-
*/
|
|
154
|
-
specialty?: "fisio" | "fono" | "to" | "neuropsi" | "psico" | "respi" | "nutri" | "audio" | "espiro";
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* A failed answer.
|
|
158
|
-
*/
|
|
159
|
-
export interface SomosLookupServicesConflictError {
|
|
160
|
-
data: null;
|
|
161
|
-
error: SomosLookupServicesConflictFailure;
|
|
162
|
-
/**
|
|
163
|
-
* What every answer carries besides its data or error.
|
|
164
|
-
*/
|
|
165
|
-
metadata: ResponseMetadata;
|
|
166
|
-
success: false;
|
|
167
|
-
}
|
|
168
|
-
export type SomosLookupServicesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
169
|
-
/**
|
|
170
|
-
* A failed answer.
|
|
171
|
-
*/
|
|
172
|
-
export interface SomosLookupServicesNotFoundError {
|
|
173
|
-
data: null;
|
|
174
|
-
error: SomosLookupServicesNotFoundFailure;
|
|
175
|
-
/**
|
|
176
|
-
* What every answer carries besides its data or error.
|
|
177
|
-
*/
|
|
178
|
-
metadata: ResponseMetadata;
|
|
179
|
-
success: false;
|
|
180
|
-
}
|
|
181
|
-
export type SomosLookupServicesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure | SomosContractNotFoundFailure;
|
|
182
|
-
/**
|
|
183
|
-
* A failed answer.
|
|
184
|
-
*/
|
|
185
|
-
export interface SomosLookupServicesServiceUnavailableError {
|
|
186
|
-
data: null;
|
|
187
|
-
error: SomosLookupServicesServiceUnavailableFailure;
|
|
188
|
-
/**
|
|
189
|
-
* What every answer carries besides its data or error.
|
|
190
|
-
*/
|
|
191
|
-
metadata: ResponseMetadata;
|
|
192
|
-
success: false;
|
|
193
|
-
}
|
|
194
|
-
export type SomosLookupServicesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure | SomosServicesSearchUnavailableFailure;
|
|
195
|
-
export interface SomosServiceLookup {
|
|
196
|
-
/**
|
|
197
|
-
* The contract whose current services answered.
|
|
198
|
-
*/
|
|
199
|
-
contractCode: string;
|
|
200
|
-
/**
|
|
201
|
-
* The closest services first: matches by words, then by meaning. Empty when
|
|
202
|
-
* none is close enough, which says nothing about coverage.
|
|
203
|
-
*/
|
|
204
|
-
data: SomosServiceMatch[];
|
|
205
|
-
object: "service_lookup";
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* A successful answer.
|
|
209
|
-
*/
|
|
210
|
-
export interface SomosServiceLookupResponse {
|
|
211
|
-
data: SomosServiceLookup;
|
|
212
|
-
error: null;
|
|
213
|
-
/**
|
|
214
|
-
* What every answer carries besides its data or error.
|
|
215
|
-
*/
|
|
216
|
-
metadata: ResponseMetadata;
|
|
217
|
-
success: true;
|
|
218
|
-
}
|
|
219
|
-
export interface SomosServiceMatch {
|
|
220
|
-
/**
|
|
221
|
-
* The service, as somos.availability.lookup takes it.
|
|
222
|
-
*/
|
|
223
|
-
code: string;
|
|
224
|
-
/**
|
|
225
|
-
* words: the code or the name contains the query. meaning: the catalog search
|
|
226
|
-
* found it close to the query in meaning; confirm it with the person or the
|
|
227
|
-
* order before using it.
|
|
228
|
-
*/
|
|
229
|
-
match: "words" | "meaning";
|
|
230
|
-
/**
|
|
231
|
-
* The service's name in the contract's catalog.
|
|
232
|
-
*/
|
|
233
|
-
name: string;
|
|
234
|
-
/**
|
|
235
|
-
* How close the service is to the query: 1 for a match by words, otherwise AI
|
|
236
|
-
* Search's score.
|
|
237
|
-
*/
|
|
238
|
-
score: number;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* The services index could not be searched or written; the contract's catalog
|
|
242
|
-
* still answers.
|
|
243
|
-
*/
|
|
244
|
-
export interface SomosServicesSearchUnavailableFailure {
|
|
245
|
-
/**
|
|
246
|
-
* The failure code, stable across releases.
|
|
247
|
-
*/
|
|
248
|
-
code: "SERVICES_SEARCH_UNAVAILABLE";
|
|
249
|
-
/**
|
|
250
|
-
* No fields.
|
|
251
|
-
*/
|
|
252
|
-
data: Empty;
|
|
253
|
-
/**
|
|
254
|
-
* What went wrong, for people; it never contains input values.
|
|
255
|
-
*/
|
|
256
|
-
message: string;
|
|
257
|
-
/**
|
|
258
|
-
* Whether repeating the same request may succeed.
|
|
259
|
-
*/
|
|
260
|
-
retryable: true;
|
|
261
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { ToolResultResponse } 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
|
-
* Get a specialty's rules
|
|
12
|
-
*
|
|
13
|
-
* A specialty's prerequisites and scheduling rules, as the clinic publishes
|
|
14
|
-
* them. Somos Salud's tool pack sets this tool's rules, parameters and
|
|
15
|
-
* accepted values (somos.tools.list answers them), and every call is checked
|
|
16
|
-
* against them.
|
|
17
|
-
*/
|
|
18
|
-
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
19
|
-
}
|
|
20
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
-
export declare function bind(transport: Transport): Client;
|
|
22
|
-
export interface GetRequest {
|
|
23
|
-
/**
|
|
24
|
-
* Nombre clínico o código de la especialidad. Acepta, por ejemplo,
|
|
25
|
-
* fisioterapia/fisio, fonoaudiología/fono, terapia ocupacional/to,
|
|
26
|
-
* neuropsicología/neuropsi, psicología/psico, terapia respiratoria/respi,
|
|
27
|
-
* nutrición/nutri, audiología/audio y espirometría/espiro. 'Salud
|
|
28
|
-
* ocupacional' es ambiguo: los exámenes médicos laborales no se agendan por
|
|
29
|
-
* este canal.
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
34
|
-
* the organization has one; required when it has several. Another
|
|
35
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
36
|
-
*/
|
|
37
|
-
connectionId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
40
|
-
* default).
|
|
41
|
-
*/
|
|
42
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
43
|
-
}
|
|
44
|
-
export type GetResponse = ToolResultResponse;
|
|
@@ -1,18 +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
|
-
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const GetOperation = {
|
|
13
|
-
method: "GET",
|
|
14
|
-
route: "/v1/somos/specialty-rules",
|
|
15
|
-
query: { name: "name", connectionId: "connectionId", channel: "channel" },
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -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, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
-
export type { SomosGetSpecialtyRulesBadGatewayError, SomosGetSpecialtyRulesBadGatewayFailure, SomosGetSpecialtyRulesConflictError, SomosGetSpecialtyRulesConflictFailure, SomosGetSpecialtyRulesNotFoundError, SomosGetSpecialtyRulesNotFoundFailure, SomosGetSpecialtyRulesServiceUnavailableError, SomosGetSpecialtyRulesServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,54 +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 SomosGetSpecialtyRulesBadGatewayError {
|
|
7
|
-
data: null;
|
|
8
|
-
error: SomosGetSpecialtyRulesBadGatewayFailure;
|
|
9
|
-
/**
|
|
10
|
-
* What every answer carries besides its data or error.
|
|
11
|
-
*/
|
|
12
|
-
metadata: ResponseMetadata;
|
|
13
|
-
success: false;
|
|
14
|
-
}
|
|
15
|
-
export type SomosGetSpecialtyRulesBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
16
|
-
/**
|
|
17
|
-
* A failed answer.
|
|
18
|
-
*/
|
|
19
|
-
export interface SomosGetSpecialtyRulesConflictError {
|
|
20
|
-
data: null;
|
|
21
|
-
error: SomosGetSpecialtyRulesConflictFailure;
|
|
22
|
-
/**
|
|
23
|
-
* What every answer carries besides its data or error.
|
|
24
|
-
*/
|
|
25
|
-
metadata: ResponseMetadata;
|
|
26
|
-
success: false;
|
|
27
|
-
}
|
|
28
|
-
export type SomosGetSpecialtyRulesConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
29
|
-
/**
|
|
30
|
-
* A failed answer.
|
|
31
|
-
*/
|
|
32
|
-
export interface SomosGetSpecialtyRulesNotFoundError {
|
|
33
|
-
data: null;
|
|
34
|
-
error: SomosGetSpecialtyRulesNotFoundFailure;
|
|
35
|
-
/**
|
|
36
|
-
* What every answer carries besides its data or error.
|
|
37
|
-
*/
|
|
38
|
-
metadata: ResponseMetadata;
|
|
39
|
-
success: false;
|
|
40
|
-
}
|
|
41
|
-
export type SomosGetSpecialtyRulesNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
42
|
-
/**
|
|
43
|
-
* A failed answer.
|
|
44
|
-
*/
|
|
45
|
-
export interface SomosGetSpecialtyRulesServiceUnavailableError {
|
|
46
|
-
data: null;
|
|
47
|
-
error: SomosGetSpecialtyRulesServiceUnavailableFailure;
|
|
48
|
-
/**
|
|
49
|
-
* What every answer carries besides its data or error.
|
|
50
|
-
*/
|
|
51
|
-
metadata: ResponseMetadata;
|
|
52
|
-
success: false;
|
|
53
|
-
}
|
|
54
|
-
export type SomosGetSpecialtyRulesServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { SomosClinicToolPageResponse } 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 the clinic's tools
|
|
12
|
-
*
|
|
13
|
-
* Every tool Somos Salud's agents may call, in ascending name order, with the
|
|
14
|
-
* clinic's exact parameters and instructions, each naming the operation that
|
|
15
|
-
* runs it; a list's tool declares the page fields too. The clinic itself, its
|
|
16
|
-
* timezone and the version of these definitions are somos.clinic.get's.
|
|
17
|
-
* Contains no patient data and performs no clinical login.
|
|
18
|
-
*/
|
|
19
|
-
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
-
export declare function bind(transport: Transport): Client;
|
|
23
|
-
export interface ListRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
26
|
-
*/
|
|
27
|
-
cursor?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
30
|
-
*/
|
|
31
|
-
direction?: "forward" | "backward";
|
|
32
|
-
/**
|
|
33
|
-
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
34
|
-
* another cursor.
|
|
35
|
-
*/
|
|
36
|
-
limit?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
39
|
-
* the organization has one; required when it has several. Another
|
|
40
|
-
* organization's connection is CONNECTION_NOT_FOUND.
|
|
41
|
-
*/
|
|
42
|
-
connectionId?: string;
|
|
43
|
-
}
|
|
44
|
-
export type ListResponse = SomosClinicToolPageResponse;
|
|
@@ -1,18 +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
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const ListOperation = {
|
|
13
|
-
method: "GET",
|
|
14
|
-
route: "/v1/somos/tools",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId" },
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
-
};
|
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { SomosClinicTool, SomosClinicToolPage, SomosClinicToolPageResponse, SomosListToolsBadGatewayError, SomosListToolsBadGatewayFailure, SomosListToolsConflictError, SomosListToolsConflictFailure, SomosListToolsNotFoundError, SomosListToolsNotFoundFailure, SomosListToolsServiceUnavailableError, SomosListToolsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
|
|
3
|
-
export interface SomosClinicTool {
|
|
4
|
-
/**
|
|
5
|
-
* The clinic's instructions for this tool.
|
|
6
|
-
*/
|
|
7
|
-
description: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
/**
|
|
10
|
-
* JSON Schema of the clinic's exact parameters for this tool.
|
|
11
|
-
*/
|
|
12
|
-
inputSchema: {
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
};
|
|
15
|
-
mutates: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The tool's name, as the clinic's instructions name it.
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* The operation that runs this tool, such as somos.patients.lookup.
|
|
22
|
-
*/
|
|
23
|
-
operation: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface SomosClinicToolPage {
|
|
26
|
-
/**
|
|
27
|
-
* Items admitted by this resource contract within the verified organization.
|
|
28
|
-
*/
|
|
29
|
-
data: SomosClinicTool[];
|
|
30
|
-
/**
|
|
31
|
-
* Discriminator for a resource list response.
|
|
32
|
-
*/
|
|
33
|
-
object: "list";
|
|
34
|
-
/**
|
|
35
|
-
* Opaque navigation cursors for this page’s stable keyset order.
|
|
36
|
-
*/
|
|
37
|
-
pageInfo: PageInfo;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A successful answer.
|
|
41
|
-
*/
|
|
42
|
-
export interface SomosClinicToolPageResponse {
|
|
43
|
-
data: SomosClinicToolPage;
|
|
44
|
-
error: null;
|
|
45
|
-
/**
|
|
46
|
-
* What every answer carries besides its data or error.
|
|
47
|
-
*/
|
|
48
|
-
metadata: ResponseMetadata;
|
|
49
|
-
success: true;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* A failed answer.
|
|
53
|
-
*/
|
|
54
|
-
export interface SomosListToolsBadGatewayError {
|
|
55
|
-
data: null;
|
|
56
|
-
error: SomosListToolsBadGatewayFailure;
|
|
57
|
-
/**
|
|
58
|
-
* What every answer carries besides its data or error.
|
|
59
|
-
*/
|
|
60
|
-
metadata: ResponseMetadata;
|
|
61
|
-
success: false;
|
|
62
|
-
}
|
|
63
|
-
export type SomosListToolsBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
|
|
64
|
-
/**
|
|
65
|
-
* A failed answer.
|
|
66
|
-
*/
|
|
67
|
-
export interface SomosListToolsConflictError {
|
|
68
|
-
data: null;
|
|
69
|
-
error: SomosListToolsConflictFailure;
|
|
70
|
-
/**
|
|
71
|
-
* What every answer carries besides its data or error.
|
|
72
|
-
*/
|
|
73
|
-
metadata: ResponseMetadata;
|
|
74
|
-
success: false;
|
|
75
|
-
}
|
|
76
|
-
export type SomosListToolsConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
|
|
77
|
-
/**
|
|
78
|
-
* A failed answer.
|
|
79
|
-
*/
|
|
80
|
-
export interface SomosListToolsNotFoundError {
|
|
81
|
-
data: null;
|
|
82
|
-
error: SomosListToolsNotFoundFailure;
|
|
83
|
-
/**
|
|
84
|
-
* What every answer carries besides its data or error.
|
|
85
|
-
*/
|
|
86
|
-
metadata: ResponseMetadata;
|
|
87
|
-
success: false;
|
|
88
|
-
}
|
|
89
|
-
export type SomosListToolsNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
|
|
90
|
-
/**
|
|
91
|
-
* A failed answer.
|
|
92
|
-
*/
|
|
93
|
-
export interface SomosListToolsServiceUnavailableError {
|
|
94
|
-
data: null;
|
|
95
|
-
error: SomosListToolsServiceUnavailableFailure;
|
|
96
|
-
/**
|
|
97
|
-
* What every answer carries besides its data or error.
|
|
98
|
-
*/
|
|
99
|
-
metadata: ResponseMetadata;
|
|
100
|
-
success: false;
|
|
101
|
-
}
|
|
102
|
-
export type SomosListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
|