@arbol-ai/sdk 3.0.1 → 4.0.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 +23 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +6 -7
- package/dist/agenda/availability/client.d.ts +3 -4
- package/dist/agenda/bookings/client.d.ts +11 -12
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +8 -2
- package/dist/agenda/offerings/client.d.ts +4 -4
- package/dist/agenda/resources/client.d.ts +4 -4
- package/dist/agenda/scheduleRules/client.d.ts +4 -4
- package/dist/agenda/services/client.d.ts +4 -4
- package/dist/agenda/waitlist/client.d.ts +3 -4
- package/dist/axxa/authorizations/client.d.ts +2 -2
- package/dist/axxa/connections/client.d.ts +6 -5
- package/dist/axxa/eligibility/client.d.ts +2 -2
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +8 -2
- package/dist/axxa/provider/client.d.ts +2 -2
- package/dist/gmedic/agendaServices/client.d.ts +2 -2
- package/dist/gmedic/agendas/client.d.ts +2 -2
- package/dist/gmedic/appointments/client.d.ts +4 -4
- package/dist/gmedic/availability/client.d.ts +2 -2
- package/dist/gmedic/availableDays/client.d.ts +2 -2
- package/dist/gmedic/branchOffices/client.d.ts +2 -2
- package/dist/gmedic/connections/client.d.ts +6 -5
- package/dist/gmedic/dictionaryEntries/client.d.ts +2 -2
- package/dist/gmedic/healthPartners/client.d.ts +2 -2
- package/dist/gmedic/healthPromotionEntities/client.d.ts +2 -2
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +2 -2
- package/dist/gmedic/models.d.ts +8 -2
- package/dist/gmedic/occupations/client.d.ts +2 -2
- package/dist/gmedic/patientNotes/client.d.ts +4 -4
- package/dist/gmedic/patients/client.d.ts +4 -4
- package/dist/gmedic/services/client.d.ts +2 -2
- package/dist/gmedic/sessionPackages/client.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +293 -5
- package/dist/nuevaEps/affiliations/models.d.ts +8 -8
- package/dist/nuevaEps/connections/client.d.ts +3 -2
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +25 -37
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/bulletins/client.d.ts +7 -6
- package/dist/raiz/campaigns/client.d.ts +5 -6
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +1 -1
- package/dist/raiz/conversations/client.d.ts +8 -8
- package/dist/raiz/definitions/client.d.ts +5 -5
- package/dist/raiz/evalCases/client.d.ts +4 -4
- package/dist/raiz/evalRuns/client.d.ts +3 -4
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +1 -1
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +6 -7
- package/dist/raiz/models.d.ts +8 -2
- package/dist/raiz/organization/client.d.ts +4 -5
- package/dist/raiz/profiles/client.d.ts +5 -6
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/tasks/client.d.ts +5 -6
- package/dist/raiz/tasks/client.js +1 -1
- package/dist/raiz/templates/client.d.ts +3 -4
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +2 -3
- package/dist/sura/appointments/client.d.ts +5 -6
- package/dist/sura/authorizations/client.d.ts +2 -3
- package/dist/sura/availability/client.d.ts +2 -3
- package/dist/sura/connections/client.d.ts +6 -5
- package/dist/sura/copays/client.d.ts +2 -3
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +8 -2
- package/dist/sura/operations/client.d.ts +2 -3
- package/dist/sura/patients/client.d.ts +2 -3
- package/dist/sura/professionals/client.d.ts +2 -3
- package/dist/sura/services/client.d.ts +2 -3
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +3 -162
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
package/dist/models.d.ts
CHANGED
|
@@ -30,6 +30,18 @@ export interface AvailabilityBookingInput {
|
|
|
30
30
|
time: string;
|
|
31
31
|
toGroup?: string;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* A failed answer.
|
|
35
|
+
*/
|
|
36
|
+
export interface CancelAppointmentBadGatewayError {
|
|
37
|
+
data: null;
|
|
38
|
+
error: CancelAppointmentBadGatewayFailure;
|
|
39
|
+
/**
|
|
40
|
+
* What every answer carries besides its data or error.
|
|
41
|
+
*/
|
|
42
|
+
metadata: ResponseMetadata;
|
|
43
|
+
success: false;
|
|
44
|
+
}
|
|
33
45
|
export type CancelAppointmentBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
34
46
|
export interface Connection {
|
|
35
47
|
id: string;
|
|
@@ -94,9 +106,35 @@ export interface ConnectionPage {
|
|
|
94
106
|
*/
|
|
95
107
|
pageInfo: PageInfo;
|
|
96
108
|
}
|
|
97
|
-
|
|
109
|
+
/**
|
|
110
|
+
* A failed answer.
|
|
111
|
+
*/
|
|
112
|
+
export interface CreateAppointmentBadGatewayError {
|
|
113
|
+
data: null;
|
|
114
|
+
error: CreateAppointmentBadGatewayFailure;
|
|
115
|
+
/**
|
|
116
|
+
* What every answer carries besides its data or error.
|
|
117
|
+
*/
|
|
118
|
+
metadata: ResponseMetadata;
|
|
119
|
+
success: false;
|
|
120
|
+
}
|
|
98
121
|
export type CreateAppointmentBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
99
|
-
|
|
122
|
+
/**
|
|
123
|
+
* A failed answer.
|
|
124
|
+
*/
|
|
125
|
+
export interface CredentialsRejectedError {
|
|
126
|
+
data: null;
|
|
127
|
+
/**
|
|
128
|
+
* The clinical system rejected the username or password, or the user is
|
|
129
|
+
* blocked.
|
|
130
|
+
*/
|
|
131
|
+
error: CredentialsRejectedFailure;
|
|
132
|
+
/**
|
|
133
|
+
* What every answer carries besides its data or error.
|
|
134
|
+
*/
|
|
135
|
+
metadata: ResponseMetadata;
|
|
136
|
+
success: false;
|
|
137
|
+
}
|
|
100
138
|
/**
|
|
101
139
|
* The clinical system rejected the username or password, or the user is
|
|
102
140
|
* blocked.
|
|
@@ -126,6 +164,18 @@ export interface DeletedObject {
|
|
|
126
164
|
*/
|
|
127
165
|
id: string;
|
|
128
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* A successful answer.
|
|
169
|
+
*/
|
|
170
|
+
export interface DeletedObjectResponse {
|
|
171
|
+
data: DeletedObject;
|
|
172
|
+
error: null;
|
|
173
|
+
/**
|
|
174
|
+
* What every answer carries besides its data or error.
|
|
175
|
+
*/
|
|
176
|
+
metadata: ResponseMetadata;
|
|
177
|
+
success: true;
|
|
178
|
+
}
|
|
129
179
|
/**
|
|
130
180
|
* No fields.
|
|
131
181
|
*/
|
|
@@ -152,6 +202,21 @@ export interface Failure {
|
|
|
152
202
|
*/
|
|
153
203
|
retryable: boolean;
|
|
154
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* A failed answer.
|
|
207
|
+
*/
|
|
208
|
+
export interface ForbiddenError {
|
|
209
|
+
data: null;
|
|
210
|
+
/**
|
|
211
|
+
* The token does not authorize this operation.
|
|
212
|
+
*/
|
|
213
|
+
error: ForbiddenFailure;
|
|
214
|
+
/**
|
|
215
|
+
* What every answer carries besides its data or error.
|
|
216
|
+
*/
|
|
217
|
+
metadata: ResponseMetadata;
|
|
218
|
+
success: false;
|
|
219
|
+
}
|
|
155
220
|
/**
|
|
156
221
|
* The token does not authorize this operation.
|
|
157
222
|
*/
|
|
@@ -173,7 +238,21 @@ export interface ForbiddenFailure {
|
|
|
173
238
|
*/
|
|
174
239
|
retryable: false;
|
|
175
240
|
}
|
|
176
|
-
|
|
241
|
+
/**
|
|
242
|
+
* A failed answer.
|
|
243
|
+
*/
|
|
244
|
+
export interface InternalError {
|
|
245
|
+
data: null;
|
|
246
|
+
/**
|
|
247
|
+
* The service could not complete the operation.
|
|
248
|
+
*/
|
|
249
|
+
error: InternalFailure;
|
|
250
|
+
/**
|
|
251
|
+
* What every answer carries besides its data or error.
|
|
252
|
+
*/
|
|
253
|
+
metadata: ResponseMetadata;
|
|
254
|
+
success: false;
|
|
255
|
+
}
|
|
177
256
|
/**
|
|
178
257
|
* The service could not complete the operation.
|
|
179
258
|
*/
|
|
@@ -195,6 +274,21 @@ export interface InternalFailure {
|
|
|
195
274
|
*/
|
|
196
275
|
retryable: false;
|
|
197
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* A failed answer.
|
|
279
|
+
*/
|
|
280
|
+
export interface InvalidInputError {
|
|
281
|
+
data: null;
|
|
282
|
+
/**
|
|
283
|
+
* The request does not match the published schema.
|
|
284
|
+
*/
|
|
285
|
+
error: InvalidInputFailure;
|
|
286
|
+
/**
|
|
287
|
+
* What every answer carries besides its data or error.
|
|
288
|
+
*/
|
|
289
|
+
metadata: ResponseMetadata;
|
|
290
|
+
success: false;
|
|
291
|
+
}
|
|
198
292
|
/**
|
|
199
293
|
* The request does not match the published schema.
|
|
200
294
|
*/
|
|
@@ -216,14 +310,99 @@ export interface InvalidInputFailure {
|
|
|
216
310
|
export interface InvalidInputFailureData {
|
|
217
311
|
issues?: ValidationIssue[];
|
|
218
312
|
}
|
|
219
|
-
|
|
313
|
+
/**
|
|
314
|
+
* A failed answer.
|
|
315
|
+
*/
|
|
316
|
+
export interface ListAvailabilityUnprocessableContentError {
|
|
317
|
+
data: null;
|
|
318
|
+
error: ListAvailabilityUnprocessableContentFailure;
|
|
319
|
+
/**
|
|
320
|
+
* What every answer carries besides its data or error.
|
|
321
|
+
*/
|
|
322
|
+
metadata: ResponseMetadata;
|
|
323
|
+
success: false;
|
|
324
|
+
}
|
|
220
325
|
export type ListAvailabilityUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
|
|
326
|
+
/**
|
|
327
|
+
* A failed answer.
|
|
328
|
+
*/
|
|
329
|
+
export interface ListContractsBadGatewayError {
|
|
330
|
+
data: null;
|
|
331
|
+
error: ListContractsBadGatewayFailure;
|
|
332
|
+
/**
|
|
333
|
+
* What every answer carries besides its data or error.
|
|
334
|
+
*/
|
|
335
|
+
metadata: ResponseMetadata;
|
|
336
|
+
success: false;
|
|
337
|
+
}
|
|
221
338
|
export type ListContractsBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
339
|
+
/**
|
|
340
|
+
* A failed answer.
|
|
341
|
+
*/
|
|
342
|
+
export interface ListContractsUnprocessableContentError {
|
|
343
|
+
data: null;
|
|
344
|
+
error: ListContractsUnprocessableContentFailure;
|
|
345
|
+
/**
|
|
346
|
+
* What every answer carries besides its data or error.
|
|
347
|
+
*/
|
|
348
|
+
metadata: ResponseMetadata;
|
|
349
|
+
success: false;
|
|
350
|
+
}
|
|
222
351
|
export type ListContractsUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
|
|
352
|
+
/**
|
|
353
|
+
* A failed answer.
|
|
354
|
+
*/
|
|
355
|
+
export interface ListServicesBadGatewayError {
|
|
356
|
+
data: null;
|
|
357
|
+
error: ListServicesBadGatewayFailure;
|
|
358
|
+
/**
|
|
359
|
+
* What every answer carries besides its data or error.
|
|
360
|
+
*/
|
|
361
|
+
metadata: ResponseMetadata;
|
|
362
|
+
success: false;
|
|
363
|
+
}
|
|
223
364
|
export type ListServicesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
365
|
+
/**
|
|
366
|
+
* A failed answer.
|
|
367
|
+
*/
|
|
368
|
+
export interface ListServicesUnprocessableContentError {
|
|
369
|
+
data: null;
|
|
370
|
+
error: ListServicesUnprocessableContentFailure;
|
|
371
|
+
/**
|
|
372
|
+
* What every answer carries besides its data or error.
|
|
373
|
+
*/
|
|
374
|
+
metadata: ResponseMetadata;
|
|
375
|
+
success: false;
|
|
376
|
+
}
|
|
224
377
|
export type ListServicesUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
|
|
225
|
-
|
|
378
|
+
/**
|
|
379
|
+
* A failed answer.
|
|
380
|
+
*/
|
|
381
|
+
export interface LookupPatientBadGatewayError {
|
|
382
|
+
data: null;
|
|
383
|
+
error: LookupPatientBadGatewayFailure;
|
|
384
|
+
/**
|
|
385
|
+
* What every answer carries besides its data or error.
|
|
386
|
+
*/
|
|
387
|
+
metadata: ResponseMetadata;
|
|
388
|
+
success: false;
|
|
389
|
+
}
|
|
226
390
|
export type LookupPatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
|
|
391
|
+
/**
|
|
392
|
+
* A failed answer.
|
|
393
|
+
*/
|
|
394
|
+
export interface OutcomeUnknownError {
|
|
395
|
+
data: null;
|
|
396
|
+
/**
|
|
397
|
+
* The operation may have been applied; check its result before repeating it.
|
|
398
|
+
*/
|
|
399
|
+
error: OutcomeUnknownFailure;
|
|
400
|
+
/**
|
|
401
|
+
* What every answer carries besides its data or error.
|
|
402
|
+
*/
|
|
403
|
+
metadata: ResponseMetadata;
|
|
404
|
+
success: false;
|
|
405
|
+
}
|
|
227
406
|
/**
|
|
228
407
|
* The operation may have been applied; check its result before repeating it.
|
|
229
408
|
*/
|
|
@@ -284,6 +463,21 @@ export interface ProviderUnavailableFailure {
|
|
|
284
463
|
*/
|
|
285
464
|
retryable: true;
|
|
286
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* A failed answer.
|
|
468
|
+
*/
|
|
469
|
+
export interface RateLimitedError {
|
|
470
|
+
data: null;
|
|
471
|
+
/**
|
|
472
|
+
* The request rate limit was exceeded. Try again later.
|
|
473
|
+
*/
|
|
474
|
+
error: RateLimitedFailure;
|
|
475
|
+
/**
|
|
476
|
+
* What every answer carries besides its data or error.
|
|
477
|
+
*/
|
|
478
|
+
metadata: ResponseMetadata;
|
|
479
|
+
success: false;
|
|
480
|
+
}
|
|
287
481
|
/**
|
|
288
482
|
* The request rate limit was exceeded. Try again later.
|
|
289
483
|
*/
|
|
@@ -305,6 +499,21 @@ export interface RateLimitedFailure {
|
|
|
305
499
|
*/
|
|
306
500
|
retryable: true;
|
|
307
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* A failed answer.
|
|
504
|
+
*/
|
|
505
|
+
export interface RequestTooLargeError {
|
|
506
|
+
data: null;
|
|
507
|
+
/**
|
|
508
|
+
* The request exceeds the allowed size.
|
|
509
|
+
*/
|
|
510
|
+
error: RequestTooLargeFailure;
|
|
511
|
+
/**
|
|
512
|
+
* What every answer carries besides its data or error.
|
|
513
|
+
*/
|
|
514
|
+
metadata: ResponseMetadata;
|
|
515
|
+
success: false;
|
|
516
|
+
}
|
|
308
517
|
/**
|
|
309
518
|
* The request exceeds the allowed size.
|
|
310
519
|
*/
|
|
@@ -326,6 +535,9 @@ export interface RequestTooLargeFailure {
|
|
|
326
535
|
*/
|
|
327
536
|
retryable: false;
|
|
328
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* What every answer carries besides its data or error.
|
|
540
|
+
*/
|
|
329
541
|
export interface ResponseMetadata {
|
|
330
542
|
/**
|
|
331
543
|
* Request correlation identifier, also sent as X-Request-Id.
|
|
@@ -380,6 +592,37 @@ export interface ToolRefusedFailureData {
|
|
|
380
592
|
export type ToolResult = {
|
|
381
593
|
[key: string]: unknown;
|
|
382
594
|
};
|
|
595
|
+
/**
|
|
596
|
+
* A successful answer.
|
|
597
|
+
*/
|
|
598
|
+
export interface ToolResultResponse {
|
|
599
|
+
/**
|
|
600
|
+
* The tool's clinical answer. ok:false is a conversational refusal the Agent
|
|
601
|
+
* reads (error, errorCode, ai_hint), not a failure.
|
|
602
|
+
*/
|
|
603
|
+
data: ToolResult;
|
|
604
|
+
error: null;
|
|
605
|
+
/**
|
|
606
|
+
* What every answer carries besides its data or error.
|
|
607
|
+
*/
|
|
608
|
+
metadata: ResponseMetadata;
|
|
609
|
+
success: true;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* A failed answer.
|
|
613
|
+
*/
|
|
614
|
+
export interface UnauthorizedError {
|
|
615
|
+
data: null;
|
|
616
|
+
/**
|
|
617
|
+
* A valid access token is required.
|
|
618
|
+
*/
|
|
619
|
+
error: UnauthorizedFailure;
|
|
620
|
+
/**
|
|
621
|
+
* What every answer carries besides its data or error.
|
|
622
|
+
*/
|
|
623
|
+
metadata: ResponseMetadata;
|
|
624
|
+
success: false;
|
|
625
|
+
}
|
|
383
626
|
/**
|
|
384
627
|
* A valid access token is required.
|
|
385
628
|
*/
|
|
@@ -401,6 +644,21 @@ export interface UnauthorizedFailure {
|
|
|
401
644
|
*/
|
|
402
645
|
retryable: false;
|
|
403
646
|
}
|
|
647
|
+
/**
|
|
648
|
+
* A failed answer.
|
|
649
|
+
*/
|
|
650
|
+
export interface UnsupportedMediaTypeError {
|
|
651
|
+
data: null;
|
|
652
|
+
/**
|
|
653
|
+
* The request content type is not supported.
|
|
654
|
+
*/
|
|
655
|
+
error: UnsupportedMediaTypeFailure;
|
|
656
|
+
/**
|
|
657
|
+
* What every answer carries besides its data or error.
|
|
658
|
+
*/
|
|
659
|
+
metadata: ResponseMetadata;
|
|
660
|
+
success: false;
|
|
661
|
+
}
|
|
404
662
|
/**
|
|
405
663
|
* The request content type is not supported.
|
|
406
664
|
*/
|
|
@@ -422,6 +680,21 @@ export interface UnsupportedMediaTypeFailure {
|
|
|
422
680
|
*/
|
|
423
681
|
retryable: false;
|
|
424
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* A failed answer.
|
|
685
|
+
*/
|
|
686
|
+
export interface UpstreamTimeoutError {
|
|
687
|
+
data: null;
|
|
688
|
+
/**
|
|
689
|
+
* The upstream service did not respond before its deadline.
|
|
690
|
+
*/
|
|
691
|
+
error: UpstreamTimeoutFailure;
|
|
692
|
+
/**
|
|
693
|
+
* What every answer carries besides its data or error.
|
|
694
|
+
*/
|
|
695
|
+
metadata: ResponseMetadata;
|
|
696
|
+
success: false;
|
|
697
|
+
}
|
|
425
698
|
/**
|
|
426
699
|
* The upstream service did not respond before its deadline.
|
|
427
700
|
*/
|
|
@@ -443,6 +716,21 @@ export interface UpstreamTimeoutFailure {
|
|
|
443
716
|
*/
|
|
444
717
|
retryable: true;
|
|
445
718
|
}
|
|
719
|
+
/**
|
|
720
|
+
* A failed answer.
|
|
721
|
+
*/
|
|
722
|
+
export interface UpstreamUnavailableError {
|
|
723
|
+
data: null;
|
|
724
|
+
/**
|
|
725
|
+
* The upstream service could not complete the request.
|
|
726
|
+
*/
|
|
727
|
+
error: UpstreamUnavailableFailure;
|
|
728
|
+
/**
|
|
729
|
+
* What every answer carries besides its data or error.
|
|
730
|
+
*/
|
|
731
|
+
metadata: ResponseMetadata;
|
|
732
|
+
success: false;
|
|
733
|
+
}
|
|
446
734
|
/**
|
|
447
735
|
* The upstream service could not complete the request.
|
|
448
736
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure,
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* A failed answer.
|
|
5
5
|
*/
|
|
@@ -9,7 +9,7 @@ export interface NuevaEpsLookupAffiliationBadGatewayError {
|
|
|
9
9
|
/**
|
|
10
10
|
* What every answer carries besides its data or error.
|
|
11
11
|
*/
|
|
12
|
-
metadata:
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
13
|
success: false;
|
|
14
14
|
}
|
|
15
15
|
export type NuevaEpsLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
@@ -54,7 +54,7 @@ export interface NuevaEpsLookupAffiliationConflictError {
|
|
|
54
54
|
/**
|
|
55
55
|
* What every answer carries besides its data or error.
|
|
56
56
|
*/
|
|
57
|
-
metadata:
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
58
|
success: false;
|
|
59
59
|
}
|
|
60
60
|
export type NuevaEpsLookupAffiliationConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
@@ -67,7 +67,7 @@ export interface NuevaEpsLookupAffiliationForbiddenError {
|
|
|
67
67
|
/**
|
|
68
68
|
* What every answer carries besides its data or error.
|
|
69
69
|
*/
|
|
70
|
-
metadata:
|
|
70
|
+
metadata: ResponseMetadata;
|
|
71
71
|
success: false;
|
|
72
72
|
}
|
|
73
73
|
export type NuevaEpsLookupAffiliationForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
@@ -116,7 +116,7 @@ export interface NuevaEpsLookupAffiliationResultResponse {
|
|
|
116
116
|
/**
|
|
117
117
|
* What every answer carries besides its data or error.
|
|
118
118
|
*/
|
|
119
|
-
metadata:
|
|
119
|
+
metadata: ResponseMetadata;
|
|
120
120
|
success: true;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
@@ -128,7 +128,7 @@ export interface NuevaEpsLookupAffiliationServiceUnavailableError {
|
|
|
128
128
|
/**
|
|
129
129
|
* What every answer carries besides its data or error.
|
|
130
130
|
*/
|
|
131
|
-
metadata:
|
|
131
|
+
metadata: ResponseMetadata;
|
|
132
132
|
success: false;
|
|
133
133
|
}
|
|
134
134
|
export type NuevaEpsLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
@@ -141,7 +141,7 @@ export interface NuevaEpsLookupAffiliationTooManyRequestsError {
|
|
|
141
141
|
/**
|
|
142
142
|
* What every answer carries besides its data or error.
|
|
143
143
|
*/
|
|
144
|
-
metadata:
|
|
144
|
+
metadata: ResponseMetadata;
|
|
145
145
|
success: false;
|
|
146
146
|
}
|
|
147
147
|
export type NuevaEpsLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import
|
|
2
|
+
import type { DeletedObjectResponse } from "../../models.js";
|
|
3
|
+
import { type NuevaEpsConnectionPageResponse, type NuevaEpsConnectionResponse, type NuevaEpsVerifyConnectionBody, type NuevaEpsVerifyConnectionResultResponse } from "./models.js";
|
|
3
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
5
|
/**
|
|
5
6
|
* The URL the paths of the API are relative to.
|
|
@@ -45,7 +46,7 @@ export interface DeleteRequest {
|
|
|
45
46
|
*/
|
|
46
47
|
id: string;
|
|
47
48
|
}
|
|
48
|
-
export type DeleteResponse =
|
|
49
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
49
50
|
export interface GetRequest {
|
|
50
51
|
/**
|
|
51
52
|
* The id.
|
|
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { NuevaEpsConnectionPageResponse, NuevaEpsConnectionResponse, NuevaEpsDeleteConnectionBadGatewayError, NuevaEpsDeleteConnectionBadGatewayFailure, NuevaEpsDeleteConnectionConflictError, NuevaEpsDeleteConnectionConflictFailure, NuevaEpsDeleteConnectionForbiddenError, NuevaEpsDeleteConnectionForbiddenFailure, NuevaEpsDeleteConnectionServiceUnavailableError, NuevaEpsDeleteConnectionServiceUnavailableFailure, NuevaEpsDeleteConnectionTooManyRequestsError, NuevaEpsDeleteConnectionTooManyRequestsFailure,
|
|
5
|
+
export type { NuevaEpsConnectionPageResponse, NuevaEpsConnectionResponse, NuevaEpsDeleteConnectionBadGatewayError, NuevaEpsDeleteConnectionBadGatewayFailure, NuevaEpsDeleteConnectionConflictError, NuevaEpsDeleteConnectionConflictFailure, NuevaEpsDeleteConnectionForbiddenError, NuevaEpsDeleteConnectionForbiddenFailure, NuevaEpsDeleteConnectionServiceUnavailableError, NuevaEpsDeleteConnectionServiceUnavailableFailure, NuevaEpsDeleteConnectionTooManyRequestsError, NuevaEpsDeleteConnectionTooManyRequestsFailure, NuevaEpsGetConnectionBadGatewayError, NuevaEpsGetConnectionBadGatewayFailure, NuevaEpsGetConnectionConflictError, NuevaEpsGetConnectionConflictFailure, NuevaEpsGetConnectionForbiddenError, NuevaEpsGetConnectionForbiddenFailure, NuevaEpsGetConnectionServiceUnavailableError, NuevaEpsGetConnectionServiceUnavailableFailure, NuevaEpsGetConnectionTooManyRequestsError, NuevaEpsGetConnectionTooManyRequestsFailure, NuevaEpsListConnectionsBadGatewayError, NuevaEpsListConnectionsBadGatewayFailure, NuevaEpsListConnectionsConflictError, NuevaEpsListConnectionsConflictFailure, NuevaEpsListConnectionsForbiddenError, NuevaEpsListConnectionsForbiddenFailure, NuevaEpsListConnectionsServiceUnavailableError, NuevaEpsListConnectionsServiceUnavailableFailure, NuevaEpsListConnectionsTooManyRequestsError, NuevaEpsListConnectionsTooManyRequestsFailure, NuevaEpsVerifyConnectionBadGatewayError, NuevaEpsVerifyConnectionBadGatewayFailure, NuevaEpsVerifyConnectionBody, NuevaEpsVerifyConnectionConflictError, NuevaEpsVerifyConnectionConflictFailure, NuevaEpsVerifyConnectionForbiddenError, NuevaEpsVerifyConnectionForbiddenFailure, NuevaEpsVerifyConnectionResult, NuevaEpsVerifyConnectionResultResponse, NuevaEpsVerifyConnectionServiceUnavailableError, NuevaEpsVerifyConnectionServiceUnavailableFailure, NuevaEpsVerifyConnectionTooManyRequestsError, NuevaEpsVerifyConnectionTooManyRequestsFailure, } from "./models.js";
|