@arbol-ai/sdk 2.19.0 → 3.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.
Files changed (203) hide show
  1. package/README.md +19 -1
  2. package/dist/client.d.ts +4 -0
  3. package/dist/client.js +10 -0
  4. package/dist/index.d.ts +1 -1
  5. package/dist/models.d.ts +396 -0
  6. package/dist/models.js +5 -1
  7. package/dist/nuevaEps/affiliations/models.d.ts +6 -5
  8. package/dist/nuevaEps/connections/models.d.ts +18 -18
  9. package/dist/nuevaEps/index.d.ts +1 -1
  10. package/dist/nuevaEps/models.d.ts +16 -232
  11. package/dist/{visoft/tools → orsovision/agencies}/client.d.ts +13 -19
  12. package/dist/{visoft/tools → orsovision/agencies}/client.js +2 -2
  13. package/dist/orsovision/agencies/index.d.ts +5 -0
  14. package/dist/orsovision/agencies/models.d.ts +107 -0
  15. package/dist/orsovision/appointments/client.d.ts +39 -0
  16. package/dist/orsovision/appointments/client.js +29 -0
  17. package/dist/orsovision/appointments/index.d.ts +5 -0
  18. package/dist/orsovision/appointments/models.d.ts +206 -0
  19. package/dist/orsovision/appointments/models.js +9 -0
  20. package/dist/orsovision/availability/client.d.ts +32 -0
  21. package/dist/orsovision/availability/client.js +19 -0
  22. package/dist/orsovision/availability/index.d.ts +5 -0
  23. package/dist/orsovision/availability/models.d.ts +239 -0
  24. package/dist/orsovision/availability/models.js +15 -0
  25. package/dist/orsovision/client.d.ts +27 -0
  26. package/dist/orsovision/client.js +50 -0
  27. package/dist/orsovision/clinic/client.d.ts +34 -0
  28. package/dist/{visoft/specialtyRules → orsovision/clinic}/client.js +3 -3
  29. package/dist/orsovision/clinic/index.d.ts +5 -0
  30. package/dist/orsovision/clinic/models.d.ts +89 -0
  31. package/dist/orsovision/contracts/client.d.ts +69 -0
  32. package/dist/orsovision/contracts/client.js +18 -0
  33. package/dist/orsovision/contracts/index.d.ts +5 -0
  34. package/dist/orsovision/contracts/models.d.ts +108 -0
  35. package/dist/orsovision/index.d.ts +5 -0
  36. package/dist/orsovision/index.js +4 -0
  37. package/dist/orsovision/models.d.ts +227 -0
  38. package/dist/orsovision/patients/client.d.ts +52 -0
  39. package/dist/orsovision/patients/client.js +34 -0
  40. package/dist/orsovision/patients/index.d.ts +5 -0
  41. package/dist/orsovision/patients/models.d.ts +297 -0
  42. package/dist/orsovision/patients/models.js +3 -0
  43. package/dist/orsovision/services/client.d.ts +74 -0
  44. package/dist/orsovision/services/client.js +18 -0
  45. package/dist/orsovision/services/index.d.ts +5 -0
  46. package/dist/orsovision/services/index.js +4 -0
  47. package/dist/orsovision/services/models.d.ts +105 -0
  48. package/dist/orsovision/services/models.js +3 -0
  49. package/dist/orsovision/tools/client.d.ts +44 -0
  50. package/dist/{raiz/roles → orsovision/tools}/client.js +3 -3
  51. package/dist/orsovision/tools/index.d.ts +5 -0
  52. package/dist/orsovision/tools/index.js +4 -0
  53. package/dist/orsovision/tools/models.d.ts +101 -0
  54. package/dist/orsovision/tools/models.js +3 -0
  55. package/dist/raiz/client.d.ts +0 -4
  56. package/dist/raiz/client.js +0 -10
  57. package/dist/raiz/organization/client.d.ts +40 -40
  58. package/dist/raiz/organization/client.js +10 -10
  59. package/dist/raiz/organization/index.d.ts +1 -1
  60. package/dist/raiz/reports/client.d.ts +3 -3
  61. package/dist/raiz/reports/client.js +2 -2
  62. package/dist/raiz/reports/index.d.ts +1 -1
  63. package/dist/somos/appointments/client.d.ts +40 -0
  64. package/dist/somos/appointments/client.js +29 -0
  65. package/dist/somos/appointments/index.d.ts +5 -0
  66. package/dist/somos/appointments/index.js +4 -0
  67. package/dist/somos/appointments/models.d.ts +301 -0
  68. package/dist/somos/appointments/models.js +9 -0
  69. package/dist/somos/availability/client.d.ts +33 -0
  70. package/dist/somos/availability/client.js +19 -0
  71. package/dist/somos/availability/index.d.ts +5 -0
  72. package/dist/somos/availability/index.js +4 -0
  73. package/dist/somos/availability/models.d.ts +340 -0
  74. package/dist/somos/availability/models.js +15 -0
  75. package/dist/somos/client.d.ts +29 -0
  76. package/dist/somos/client.js +55 -0
  77. package/dist/somos/clinic/client.d.ts +33 -0
  78. package/dist/somos/clinic/client.js +18 -0
  79. package/dist/somos/clinic/index.d.ts +5 -0
  80. package/dist/somos/clinic/index.js +4 -0
  81. package/dist/somos/clinic/models.d.ts +89 -0
  82. package/dist/somos/clinic/models.js +3 -0
  83. package/dist/somos/contracts/client.d.ts +74 -0
  84. package/dist/somos/contracts/client.js +18 -0
  85. package/dist/somos/contracts/index.d.ts +5 -0
  86. package/dist/somos/contracts/index.js +4 -0
  87. package/dist/somos/contracts/models.d.ts +107 -0
  88. package/dist/somos/contracts/models.js +3 -0
  89. package/dist/somos/groups/client.d.ts +67 -0
  90. package/dist/{visoft → somos}/groups/client.js +2 -2
  91. package/dist/somos/groups/index.d.ts +5 -0
  92. package/dist/somos/groups/index.js +4 -0
  93. package/dist/somos/groups/models.d.ts +117 -0
  94. package/dist/somos/groups/models.js +3 -0
  95. package/dist/somos/index.d.ts +5 -0
  96. package/dist/somos/index.js +4 -0
  97. package/dist/somos/models.d.ts +227 -0
  98. package/dist/somos/models.js +3 -0
  99. package/dist/somos/patients/client.d.ts +51 -0
  100. package/dist/somos/patients/client.js +34 -0
  101. package/dist/somos/patients/index.d.ts +5 -0
  102. package/dist/somos/patients/index.js +4 -0
  103. package/dist/somos/patients/models.d.ts +327 -0
  104. package/dist/somos/patients/models.js +3 -0
  105. package/dist/somos/services/client.d.ts +117 -0
  106. package/dist/somos/services/client.js +26 -0
  107. package/dist/somos/services/index.d.ts +5 -0
  108. package/dist/somos/services/index.js +4 -0
  109. package/dist/somos/services/models.d.ts +272 -0
  110. package/dist/somos/services/models.js +3 -0
  111. package/dist/somos/specialtyRules/client.d.ts +44 -0
  112. package/dist/somos/specialtyRules/client.js +18 -0
  113. package/dist/somos/specialtyRules/index.d.ts +5 -0
  114. package/dist/somos/specialtyRules/index.js +4 -0
  115. package/dist/somos/specialtyRules/models.d.ts +54 -0
  116. package/dist/somos/specialtyRules/models.js +3 -0
  117. package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
  118. package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
  119. package/dist/somos/tools/index.d.ts +5 -0
  120. package/dist/somos/tools/index.js +4 -0
  121. package/dist/somos/tools/models.d.ts +101 -0
  122. package/dist/somos/tools/models.js +3 -0
  123. package/dist/visoft/appointments/client.d.ts +20 -194
  124. package/dist/visoft/appointments/client.js +5 -4
  125. package/dist/visoft/appointments/index.d.ts +1 -0
  126. package/dist/visoft/appointments/models.d.ts +391 -0
  127. package/dist/visoft/appointments/models.js +15 -0
  128. package/dist/visoft/availability/client.d.ts +10 -164
  129. package/dist/visoft/availability/client.js +9 -9
  130. package/dist/visoft/availability/index.d.ts +2 -2
  131. package/dist/visoft/availability/models.d.ts +154 -64
  132. package/dist/visoft/availability/models.js +10 -8
  133. package/dist/visoft/client.d.ts +6 -8
  134. package/dist/visoft/client.js +15 -20
  135. package/dist/visoft/clinic/client.d.ts +30 -0
  136. package/dist/visoft/clinic/client.js +18 -0
  137. package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
  138. package/dist/visoft/clinic/index.js +4 -0
  139. package/dist/visoft/clinic/models.d.ts +13 -0
  140. package/dist/visoft/clinic/models.js +3 -0
  141. package/dist/visoft/clinics/client.d.ts +2 -31
  142. package/dist/visoft/clinics/client.js +1 -8
  143. package/dist/visoft/clinics/index.d.ts +2 -2
  144. package/dist/visoft/clinics/models.d.ts +13 -24
  145. package/dist/visoft/connections/client.d.ts +17 -74
  146. package/dist/visoft/connections/client.js +10 -11
  147. package/dist/visoft/connections/index.d.ts +1 -1
  148. package/dist/visoft/connections/models.d.ts +93 -1
  149. package/dist/visoft/connections/models.js +6 -0
  150. package/dist/visoft/contracts/client.d.ts +14 -49
  151. package/dist/visoft/contracts/client.js +2 -2
  152. package/dist/visoft/contracts/index.d.ts +1 -1
  153. package/dist/visoft/contracts/models.d.ts +43 -7
  154. package/dist/visoft/index.d.ts +1 -1
  155. package/dist/visoft/models.d.ts +311 -139
  156. package/dist/visoft/patients/client.d.ts +24 -264
  157. package/dist/visoft/patients/client.js +7 -6
  158. package/dist/visoft/patients/index.d.ts +1 -0
  159. package/dist/visoft/patients/models.d.ts +737 -0
  160. package/dist/visoft/patients/models.js +15 -0
  161. package/dist/visoft/professionals/client.d.ts +56 -0
  162. package/dist/visoft/professionals/client.js +18 -0
  163. package/dist/visoft/professionals/index.d.ts +5 -0
  164. package/dist/visoft/professionals/index.js +4 -0
  165. package/dist/visoft/professionals/models.d.ts +54 -0
  166. package/dist/visoft/professionals/models.js +3 -0
  167. package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
  168. package/dist/visoft/serviceCatalogs/client.js +18 -0
  169. package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
  170. package/dist/visoft/serviceCatalogs/index.js +4 -0
  171. package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
  172. package/dist/visoft/serviceCatalogs/models.js +3 -0
  173. package/dist/visoft/services/client.d.ts +25 -61
  174. package/dist/visoft/services/client.js +2 -2
  175. package/dist/visoft/services/index.d.ts +1 -1
  176. package/dist/visoft/services/models.d.ts +52 -15
  177. package/package.json +9 -3
  178. package/dist/raiz/members/client.d.ts +0 -102
  179. package/dist/raiz/members/client.js +0 -35
  180. package/dist/raiz/members/index.d.ts +0 -5
  181. package/dist/raiz/members/models.d.ts +0 -48
  182. package/dist/raiz/members/models.js +0 -10
  183. package/dist/raiz/roles/index.d.ts +0 -5
  184. package/dist/raiz/roles/models.d.ts +0 -32
  185. package/dist/visoft/agencies/client.d.ts +0 -58
  186. package/dist/visoft/agencies/index.d.ts +0 -5
  187. package/dist/visoft/agencies/models.d.ts +0 -29
  188. package/dist/visoft/groups/client.d.ts +0 -69
  189. package/dist/visoft/groups/index.d.ts +0 -5
  190. package/dist/visoft/groups/models.d.ts +0 -39
  191. package/dist/visoft/specialtyRules/client.d.ts +0 -50
  192. package/dist/visoft/tools/index.d.ts +0 -5
  193. package/dist/visoft/tools/models.d.ts +0 -37
  194. /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
  195. /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
  196. /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
  197. /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
  198. /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
  199. /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
  200. /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
  201. /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
  202. /package/dist/{visoft/tools → orsovision}/models.js +0 -0
  203. /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
@@ -1,5 +1,5 @@
1
- import { type Connection, type ConnectionPage, type DeletedObject } from "../../models.js";
2
- import type { NuevaEpsForbiddenFailure, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsOutcomeUnknownFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRateLimitedFailure, NuevaEpsRegionBlockedFailure, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUpstreamUnavailableFailure } from "../models.js";
1
+ import { type Connection, type ConnectionPage, type DeletedObject, type ForbiddenFailure, type OutcomeUnknownFailure, type RateLimitedFailure, type UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
3
3
  /**
4
4
  * A successful answer.
5
5
  */
@@ -36,7 +36,7 @@ export interface NuevaEpsDeleteConnectionBadGatewayError {
36
36
  metadata: NuevaEpsResponseMetadata;
37
37
  success: false;
38
38
  }
39
- export type NuevaEpsDeleteConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
39
+ export type NuevaEpsDeleteConnectionBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
40
40
  /**
41
41
  * A failed answer.
42
42
  */
@@ -62,7 +62,7 @@ export interface NuevaEpsDeleteConnectionForbiddenError {
62
62
  metadata: NuevaEpsResponseMetadata;
63
63
  success: false;
64
64
  }
65
- export type NuevaEpsDeleteConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
65
+ export type NuevaEpsDeleteConnectionForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
66
66
  /**
67
67
  * A failed answer.
68
68
  */
@@ -75,7 +75,7 @@ export interface NuevaEpsDeleteConnectionServiceUnavailableError {
75
75
  metadata: NuevaEpsResponseMetadata;
76
76
  success: false;
77
77
  }
78
- export type NuevaEpsDeleteConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
78
+ export type NuevaEpsDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
79
79
  /**
80
80
  * A failed answer.
81
81
  */
@@ -88,7 +88,7 @@ export interface NuevaEpsDeleteConnectionTooManyRequestsError {
88
88
  metadata: NuevaEpsResponseMetadata;
89
89
  success: false;
90
90
  }
91
- export type NuevaEpsDeleteConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
91
+ export type NuevaEpsDeleteConnectionTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
92
92
  /**
93
93
  * A successful answer.
94
94
  */
@@ -113,7 +113,7 @@ export interface NuevaEpsGetConnectionBadGatewayError {
113
113
  metadata: NuevaEpsResponseMetadata;
114
114
  success: false;
115
115
  }
116
- export type NuevaEpsGetConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
116
+ export type NuevaEpsGetConnectionBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
117
117
  /**
118
118
  * A failed answer.
119
119
  */
@@ -139,7 +139,7 @@ export interface NuevaEpsGetConnectionForbiddenError {
139
139
  metadata: NuevaEpsResponseMetadata;
140
140
  success: false;
141
141
  }
142
- export type NuevaEpsGetConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
142
+ export type NuevaEpsGetConnectionForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
143
143
  /**
144
144
  * A failed answer.
145
145
  */
@@ -152,7 +152,7 @@ export interface NuevaEpsGetConnectionServiceUnavailableError {
152
152
  metadata: NuevaEpsResponseMetadata;
153
153
  success: false;
154
154
  }
155
- export type NuevaEpsGetConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
155
+ export type NuevaEpsGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
156
156
  /**
157
157
  * A failed answer.
158
158
  */
@@ -165,7 +165,7 @@ export interface NuevaEpsGetConnectionTooManyRequestsError {
165
165
  metadata: NuevaEpsResponseMetadata;
166
166
  success: false;
167
167
  }
168
- export type NuevaEpsGetConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
168
+ export type NuevaEpsGetConnectionTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
169
169
  /**
170
170
  * A failed answer.
171
171
  */
@@ -178,7 +178,7 @@ export interface NuevaEpsListConnectionsBadGatewayError {
178
178
  metadata: NuevaEpsResponseMetadata;
179
179
  success: false;
180
180
  }
181
- export type NuevaEpsListConnectionsBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
181
+ export type NuevaEpsListConnectionsBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
182
182
  /**
183
183
  * A failed answer.
184
184
  */
@@ -204,7 +204,7 @@ export interface NuevaEpsListConnectionsForbiddenError {
204
204
  metadata: NuevaEpsResponseMetadata;
205
205
  success: false;
206
206
  }
207
- export type NuevaEpsListConnectionsForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
207
+ export type NuevaEpsListConnectionsForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
208
208
  /**
209
209
  * A failed answer.
210
210
  */
@@ -217,7 +217,7 @@ export interface NuevaEpsListConnectionsServiceUnavailableError {
217
217
  metadata: NuevaEpsResponseMetadata;
218
218
  success: false;
219
219
  }
220
- export type NuevaEpsListConnectionsServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
220
+ export type NuevaEpsListConnectionsServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
221
221
  /**
222
222
  * A failed answer.
223
223
  */
@@ -230,7 +230,7 @@ export interface NuevaEpsListConnectionsTooManyRequestsError {
230
230
  metadata: NuevaEpsResponseMetadata;
231
231
  success: false;
232
232
  }
233
- export type NuevaEpsListConnectionsTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
233
+ export type NuevaEpsListConnectionsTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
234
234
  /**
235
235
  * A failed answer.
236
236
  */
@@ -243,7 +243,7 @@ export interface NuevaEpsVerifyConnectionBadGatewayError {
243
243
  metadata: NuevaEpsResponseMetadata;
244
244
  success: false;
245
245
  }
246
- export type NuevaEpsVerifyConnectionBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
246
+ export type NuevaEpsVerifyConnectionBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
247
247
  export interface NuevaEpsVerifyConnectionBody {
248
248
  /**
249
249
  * Document type code accepted by Nueva EPS; provider-specific codes retain
@@ -283,7 +283,7 @@ export interface NuevaEpsVerifyConnectionForbiddenError {
283
283
  metadata: NuevaEpsResponseMetadata;
284
284
  success: false;
285
285
  }
286
- export type NuevaEpsVerifyConnectionForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
286
+ export type NuevaEpsVerifyConnectionForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
287
287
  export type NuevaEpsVerifyConnectionResult = {
288
288
  stateRef: string;
289
289
  status: "active";
@@ -316,7 +316,7 @@ export interface NuevaEpsVerifyConnectionServiceUnavailableError {
316
316
  metadata: NuevaEpsResponseMetadata;
317
317
  success: false;
318
318
  }
319
- export type NuevaEpsVerifyConnectionServiceUnavailableFailure = NuevaEpsUpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
319
+ export type NuevaEpsVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
320
320
  /**
321
321
  * A failed answer.
322
322
  */
@@ -329,6 +329,6 @@ export interface NuevaEpsVerifyConnectionTooManyRequestsError {
329
329
  metadata: NuevaEpsResponseMetadata;
330
330
  success: false;
331
331
  }
332
- export type NuevaEpsVerifyConnectionTooManyRequestsFailure = NuevaEpsRateLimitedFailure | NuevaEpsLoginCooldownFailure;
332
+ export type NuevaEpsVerifyConnectionTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
333
333
  export declare const NuevaEpsConnectionPageResponseCodec: import("../../_/codec.js").Codec;
334
334
  export declare const NuevaEpsConnectionResponseCodec: import("../../_/codec.js").Codec;
@@ -2,4 +2,4 @@ export { ApiError } from "../_/index.js";
2
2
  export type { RequestOptions } from "../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, } from "./client.js";
5
- export type { NuevaEpsAuthorizationsUnavailableError, NuevaEpsAuthorizationsUnavailableFailure, NuevaEpsEmpty, NuevaEpsForbiddenFailure, NuevaEpsInternalError, NuevaEpsInternalFailure, NuevaEpsInvalidInputError, NuevaEpsInvalidInputFailure, NuevaEpsInvalidInputFailureData, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsOutcomeUnknownFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRateLimitedFailure, NuevaEpsRegionBlockedFailure, NuevaEpsRequestTooLargeError, NuevaEpsRequestTooLargeFailure, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUnauthorizedError, NuevaEpsUnauthorizedFailure, NuevaEpsUnsupportedMediaTypeError, NuevaEpsUnsupportedMediaTypeFailure, NuevaEpsUpstreamTimeoutError, NuevaEpsUpstreamTimeoutFailure, NuevaEpsUpstreamUnavailableFailure, } from "./models.js";
5
+ export type { NuevaEpsAuthorizationsUnavailableError, NuevaEpsAuthorizationsUnavailableFailure, NuevaEpsInternalError, NuevaEpsInvalidInputError, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsRequestTooLargeError, NuevaEpsResponseMetadata, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUnauthorizedError, NuevaEpsUnsupportedMediaTypeError, NuevaEpsUpstreamTimeoutError, } from "./models.js";
@@ -1,4 +1,4 @@
1
- import type { ValidationIssue } from "../models.js";
1
+ import type { Empty, InternalFailure, InvalidInputFailure, RequestTooLargeFailure, UnauthorizedFailure, UnsupportedMediaTypeFailure, UpstreamTimeoutFailure } from "../models.js";
2
2
  /**
3
3
  * A failed answer.
4
4
  */
@@ -27,34 +27,7 @@ export interface NuevaEpsAuthorizationsUnavailableFailure {
27
27
  /**
28
28
  * No fields.
29
29
  */
30
- data: NuevaEpsEmpty;
31
- /**
32
- * What went wrong, for people; it never contains input values.
33
- */
34
- message: string;
35
- /**
36
- * Whether repeating the same request may succeed.
37
- */
38
- retryable: false;
39
- }
40
- /**
41
- * No fields.
42
- */
43
- export type NuevaEpsEmpty = {
44
- [key: string]: unknown;
45
- };
46
- /**
47
- * The token does not authorize this operation.
48
- */
49
- export interface NuevaEpsForbiddenFailure {
50
- /**
51
- * The failure code, stable across releases.
52
- */
53
- code: "FORBIDDEN";
54
- /**
55
- * No fields.
56
- */
57
- data: NuevaEpsEmpty;
30
+ data: Empty;
58
31
  /**
59
32
  * What went wrong, for people; it never contains input values.
60
33
  */
@@ -72,34 +45,13 @@ export interface NuevaEpsInternalError {
72
45
  /**
73
46
  * The service could not complete the operation.
74
47
  */
75
- error: NuevaEpsInternalFailure;
48
+ error: InternalFailure;
76
49
  /**
77
50
  * What every answer carries besides its data or error.
78
51
  */
79
52
  metadata: NuevaEpsResponseMetadata;
80
53
  success: false;
81
54
  }
82
- /**
83
- * The service could not complete the operation.
84
- */
85
- export interface NuevaEpsInternalFailure {
86
- /**
87
- * The failure code, stable across releases.
88
- */
89
- code: "INTERNAL_ERROR";
90
- /**
91
- * No fields.
92
- */
93
- data: NuevaEpsEmpty;
94
- /**
95
- * What went wrong, for people; it never contains input values.
96
- */
97
- message: string;
98
- /**
99
- * Whether repeating the same request may succeed.
100
- */
101
- retryable: false;
102
- }
103
55
  /**
104
56
  * A failed answer.
105
57
  */
@@ -108,34 +60,13 @@ export interface NuevaEpsInvalidInputError {
108
60
  /**
109
61
  * The request does not match the published schema.
110
62
  */
111
- error: NuevaEpsInvalidInputFailure;
63
+ error: InvalidInputFailure;
112
64
  /**
113
65
  * What every answer carries besides its data or error.
114
66
  */
115
67
  metadata: NuevaEpsResponseMetadata;
116
68
  success: false;
117
69
  }
118
- /**
119
- * The request does not match the published schema.
120
- */
121
- export interface NuevaEpsInvalidInputFailure {
122
- /**
123
- * The failure code, stable across releases.
124
- */
125
- code: "INVALID_INPUT";
126
- data: NuevaEpsInvalidInputFailureData;
127
- /**
128
- * What went wrong, for people; it never contains input values.
129
- */
130
- message: string;
131
- /**
132
- * Whether repeating the same request may succeed.
133
- */
134
- retryable: false;
135
- }
136
- export interface NuevaEpsInvalidInputFailureData {
137
- issues?: ValidationIssue[];
138
- }
139
70
  /**
140
71
  * Login attempts are temporarily paused after a submitted or uncertain attempt.
141
72
  */
@@ -147,7 +78,7 @@ export interface NuevaEpsLoginCooldownFailure {
147
78
  /**
148
79
  * No fields.
149
80
  */
150
- data: NuevaEpsEmpty;
81
+ data: Empty;
151
82
  /**
152
83
  * What went wrong, for people; it never contains input values.
153
84
  */
@@ -168,7 +99,7 @@ export interface NuevaEpsLoginRejectedFailure {
168
99
  /**
169
100
  * No fields.
170
101
  */
171
- data: NuevaEpsEmpty;
102
+ data: Empty;
172
103
  /**
173
104
  * What went wrong, for people; it never contains input values.
174
105
  */
@@ -189,28 +120,7 @@ export interface NuevaEpsNotConfiguredFailure {
189
120
  /**
190
121
  * No fields.
191
122
  */
192
- data: NuevaEpsEmpty;
193
- /**
194
- * What went wrong, for people; it never contains input values.
195
- */
196
- message: string;
197
- /**
198
- * Whether repeating the same request may succeed.
199
- */
200
- retryable: false;
201
- }
202
- /**
203
- * The operation may have been applied; check its result before repeating it.
204
- */
205
- export interface NuevaEpsOutcomeUnknownFailure {
206
- /**
207
- * The failure code, stable across releases.
208
- */
209
- code: "OUTCOME_UNKNOWN";
210
- /**
211
- * No fields.
212
- */
213
- data: NuevaEpsEmpty;
123
+ data: Empty;
214
124
  /**
215
125
  * What went wrong, for people; it never contains input values.
216
126
  */
@@ -231,7 +141,7 @@ export interface NuevaEpsPortalChangedFailure {
231
141
  /**
232
142
  * No fields.
233
143
  */
234
- data: NuevaEpsEmpty;
144
+ data: Empty;
235
145
  /**
236
146
  * What went wrong, for people; it never contains input values.
237
147
  */
@@ -252,7 +162,7 @@ export interface NuevaEpsPortalUnavailableFailure {
252
162
  /**
253
163
  * No fields.
254
164
  */
255
- data: NuevaEpsEmpty;
165
+ data: Empty;
256
166
  /**
257
167
  * What went wrong, for people; it never contains input values.
258
168
  */
@@ -262,27 +172,6 @@ export interface NuevaEpsPortalUnavailableFailure {
262
172
  */
263
173
  retryable: false;
264
174
  }
265
- /**
266
- * The request rate limit was exceeded. Try again later.
267
- */
268
- export interface NuevaEpsRateLimitedFailure {
269
- /**
270
- * The failure code, stable across releases.
271
- */
272
- code: "RATE_LIMITED";
273
- /**
274
- * No fields.
275
- */
276
- data: NuevaEpsEmpty;
277
- /**
278
- * What went wrong, for people; it never contains input values.
279
- */
280
- message: string;
281
- /**
282
- * Whether repeating the same request may succeed.
283
- */
284
- retryable: true;
285
- }
286
175
  /**
287
176
  * This container cannot access the provider login page.
288
177
  */
@@ -294,7 +183,7 @@ export interface NuevaEpsRegionBlockedFailure {
294
183
  /**
295
184
  * No fields.
296
185
  */
297
- data: NuevaEpsEmpty;
186
+ data: Empty;
298
187
  /**
299
188
  * What went wrong, for people; it never contains input values.
300
189
  */
@@ -312,34 +201,13 @@ export interface NuevaEpsRequestTooLargeError {
312
201
  /**
313
202
  * The request exceeds the allowed size.
314
203
  */
315
- error: NuevaEpsRequestTooLargeFailure;
204
+ error: RequestTooLargeFailure;
316
205
  /**
317
206
  * What every answer carries besides its data or error.
318
207
  */
319
208
  metadata: NuevaEpsResponseMetadata;
320
209
  success: false;
321
210
  }
322
- /**
323
- * The request exceeds the allowed size.
324
- */
325
- export interface NuevaEpsRequestTooLargeFailure {
326
- /**
327
- * The failure code, stable across releases.
328
- */
329
- code: "REQUEST_TOO_LARGE";
330
- /**
331
- * No fields.
332
- */
333
- data: NuevaEpsEmpty;
334
- /**
335
- * What went wrong, for people; it never contains input values.
336
- */
337
- message: string;
338
- /**
339
- * Whether repeating the same request may succeed.
340
- */
341
- retryable: false;
342
- }
343
211
  /**
344
212
  * What every answer carries besides its data or error.
345
213
  */
@@ -360,7 +228,7 @@ export interface NuevaEpsSessionBusyFailure {
360
228
  /**
361
229
  * No fields.
362
230
  */
363
- data: NuevaEpsEmpty;
231
+ data: Empty;
364
232
  /**
365
233
  * What went wrong, for people; it never contains input values.
366
234
  */
@@ -381,7 +249,7 @@ export interface NuevaEpsSessionRequiredFailure {
381
249
  /**
382
250
  * No fields.
383
251
  */
384
- data: NuevaEpsEmpty;
252
+ data: Empty;
385
253
  /**
386
254
  * What went wrong, for people; it never contains input values.
387
255
  */
@@ -399,34 +267,13 @@ export interface NuevaEpsUnauthorizedError {
399
267
  /**
400
268
  * A valid access token is required.
401
269
  */
402
- error: NuevaEpsUnauthorizedFailure;
270
+ error: UnauthorizedFailure;
403
271
  /**
404
272
  * What every answer carries besides its data or error.
405
273
  */
406
274
  metadata: NuevaEpsResponseMetadata;
407
275
  success: false;
408
276
  }
409
- /**
410
- * A valid access token is required.
411
- */
412
- export interface NuevaEpsUnauthorizedFailure {
413
- /**
414
- * The failure code, stable across releases.
415
- */
416
- code: "UNAUTHORIZED";
417
- /**
418
- * No fields.
419
- */
420
- data: NuevaEpsEmpty;
421
- /**
422
- * What went wrong, for people; it never contains input values.
423
- */
424
- message: string;
425
- /**
426
- * Whether repeating the same request may succeed.
427
- */
428
- retryable: false;
429
- }
430
277
  /**
431
278
  * A failed answer.
432
279
  */
@@ -435,34 +282,13 @@ export interface NuevaEpsUnsupportedMediaTypeError {
435
282
  /**
436
283
  * The request content type is not supported.
437
284
  */
438
- error: NuevaEpsUnsupportedMediaTypeFailure;
285
+ error: UnsupportedMediaTypeFailure;
439
286
  /**
440
287
  * What every answer carries besides its data or error.
441
288
  */
442
289
  metadata: NuevaEpsResponseMetadata;
443
290
  success: false;
444
291
  }
445
- /**
446
- * The request content type is not supported.
447
- */
448
- export interface NuevaEpsUnsupportedMediaTypeFailure {
449
- /**
450
- * The failure code, stable across releases.
451
- */
452
- code: "UNSUPPORTED_MEDIA_TYPE";
453
- /**
454
- * No fields.
455
- */
456
- data: NuevaEpsEmpty;
457
- /**
458
- * What went wrong, for people; it never contains input values.
459
- */
460
- message: string;
461
- /**
462
- * Whether repeating the same request may succeed.
463
- */
464
- retryable: false;
465
- }
466
292
  /**
467
293
  * A failed answer.
468
294
  */
@@ -471,52 +297,10 @@ export interface NuevaEpsUpstreamTimeoutError {
471
297
  /**
472
298
  * The upstream service did not respond before its deadline.
473
299
  */
474
- error: NuevaEpsUpstreamTimeoutFailure;
300
+ error: UpstreamTimeoutFailure;
475
301
  /**
476
302
  * What every answer carries besides its data or error.
477
303
  */
478
304
  metadata: NuevaEpsResponseMetadata;
479
305
  success: false;
480
306
  }
481
- /**
482
- * The upstream service did not respond before its deadline.
483
- */
484
- export interface NuevaEpsUpstreamTimeoutFailure {
485
- /**
486
- * The failure code, stable across releases.
487
- */
488
- code: "UPSTREAM_TIMEOUT";
489
- /**
490
- * No fields.
491
- */
492
- data: NuevaEpsEmpty;
493
- /**
494
- * What went wrong, for people; it never contains input values.
495
- */
496
- message: string;
497
- /**
498
- * Whether repeating the same request may succeed.
499
- */
500
- retryable: true;
501
- }
502
- /**
503
- * The upstream service could not complete the request.
504
- */
505
- export interface NuevaEpsUpstreamUnavailableFailure {
506
- /**
507
- * The failure code, stable across releases.
508
- */
509
- code: "UPSTREAM_UNAVAILABLE";
510
- /**
511
- * No fields.
512
- */
513
- data: NuevaEpsEmpty;
514
- /**
515
- * What went wrong, for people; it never contains input values.
516
- */
517
- message: string;
518
- /**
519
- * Whether repeating the same request may succeed.
520
- */
521
- retryable: true;
522
- }
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
3
- import type { VisoftClinicToolPage } from "./models.js";
2
+ import type { OrsovisionAgencyPageResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -9,15 +8,15 @@ export interface ClientOptions extends BaseClientOptions {
9
8
  }
10
9
  export interface Client {
11
10
  /**
12
- * List the clinic's tools
11
+ * List the chain's locations
13
12
  *
14
- * Every tool the connection's clinic supports, in ascending name order, with
15
- * that clinic's exact parameters and instructions, each naming the operation
16
- * that runs it; a list's tool declares the page fields too. Every operation
17
- * publishes the same definition for all clinics; this answers the
18
- * connection's clinic's own, as its schema checks them. The clinic itself,
19
- * its timezone and the version of these definitions are visoft.clinics.get's.
20
- * Contains no patient data and performs no clinical login.
13
+ * The chain's locations (agencies), in ascending code order: every other call
14
+ * names one by its code, because each location has its own agreements,
15
+ * services and agendas. Ask the person which location suits them; never pick
16
+ * one for them. Contains no patient data and performs no clinical login.
17
+ * Orsovision's tool pack sets this tool's rules, parameters and accepted
18
+ * values (orsovision.tools.list answers them), and every call is checked
19
+ * against them.
21
20
  */
22
21
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
23
22
  }
@@ -38,9 +37,9 @@ export interface ListRequest {
38
37
  */
39
38
  limit?: number;
40
39
  /**
41
- * The connection to run on. Optional when the organization has one Visoft
42
- * connection; required when it has several. Another organization's connection
43
- * is NOT_FOUND.
40
+ * The Visoft connection to run on, as Account lists it (con_…). Optional when
41
+ * the organization has one; required when it has several. Another
42
+ * organization's connection is CONNECTION_NOT_FOUND.
44
43
  */
45
44
  connectionId?: string;
46
45
  /**
@@ -49,9 +48,4 @@ export interface ListRequest {
49
48
  */
50
49
  channel?: "voice" | "web" | "whatsapp";
51
50
  }
52
- export interface ListResponse {
53
- data: VisoftClinicToolPage;
54
- error: null;
55
- metadata: ResponseMetadata;
56
- success: true;
57
- }
51
+ export type ListResponse = OrsovisionAgencyPageResponse;
@@ -11,8 +11,8 @@ export function bind(transport) {
11
11
  }
12
12
  const ListOperation = {
13
13
  method: "GET",
14
- route: "/v1/visoft/tools",
14
+ route: "/v1/orsovision/agencies",
15
15
  query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel" },
16
16
  response: null,
17
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
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
18
  };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { OrsovisionAgency, OrsovisionAgencyPage, OrsovisionAgencyPageResponse, OrsovisionListAgenciesBadGatewayError, OrsovisionListAgenciesBadGatewayFailure, OrsovisionListAgenciesConflictError, OrsovisionListAgenciesConflictFailure, OrsovisionListAgenciesNotFoundError, OrsovisionListAgenciesNotFoundFailure, OrsovisionListAgenciesServiceUnavailableError, OrsovisionListAgenciesServiceUnavailableFailure, OrsovisionListAgenciesUnprocessableContentError, OrsovisionListAgenciesUnprocessableContentFailure, } from "./models.js";