@arbol-ai/sdk 5.26.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +4 -4
  2. package/dist/client.d.ts +0 -4
  3. package/dist/client.js +0 -10
  4. package/dist/index.d.ts +1 -1
  5. package/dist/models.d.ts +0 -282
  6. package/dist/models.js +1 -5
  7. package/dist/visoft/appointments/index.d.ts +1 -1
  8. package/dist/visoft/appointments/models.d.ts +32 -6
  9. package/dist/visoft/availability/models.d.ts +4 -4
  10. package/dist/visoft/contracts/index.d.ts +1 -1
  11. package/dist/visoft/contracts/models.d.ts +16 -3
  12. package/dist/visoft/index.d.ts +1 -1
  13. package/dist/visoft/models.d.ts +67 -2
  14. package/dist/visoft/patients/index.d.ts +1 -1
  15. package/dist/visoft/patients/models.d.ts +35 -6
  16. package/dist/visoft/professionals/models.d.ts +4 -4
  17. package/dist/visoft/serviceCatalogs/models.d.ts +4 -4
  18. package/dist/visoft/services/index.d.ts +1 -1
  19. package/dist/visoft/services/models.d.ts +16 -3
  20. package/package.json +3 -3
  21. package/dist/orsovision/agencies/client.d.ts +0 -51
  22. package/dist/orsovision/agencies/client.js +0 -18
  23. package/dist/orsovision/agencies/index.d.ts +0 -5
  24. package/dist/orsovision/agencies/index.js +0 -4
  25. package/dist/orsovision/agencies/models.d.ts +0 -107
  26. package/dist/orsovision/agencies/models.js +0 -3
  27. package/dist/orsovision/appointments/client.d.ts +0 -39
  28. package/dist/orsovision/appointments/client.js +0 -29
  29. package/dist/orsovision/appointments/index.d.ts +0 -5
  30. package/dist/orsovision/appointments/index.js +0 -4
  31. package/dist/orsovision/appointments/models.d.ts +0 -182
  32. package/dist/orsovision/appointments/models.js +0 -9
  33. package/dist/orsovision/availability/client.d.ts +0 -32
  34. package/dist/orsovision/availability/client.js +0 -19
  35. package/dist/orsovision/availability/index.d.ts +0 -5
  36. package/dist/orsovision/availability/index.js +0 -4
  37. package/dist/orsovision/availability/models.d.ts +0 -228
  38. package/dist/orsovision/availability/models.js +0 -15
  39. package/dist/orsovision/client.d.ts +0 -27
  40. package/dist/orsovision/client.js +0 -50
  41. package/dist/orsovision/clinic/client.d.ts +0 -34
  42. package/dist/orsovision/clinic/client.js +0 -18
  43. package/dist/orsovision/clinic/index.d.ts +0 -5
  44. package/dist/orsovision/clinic/index.js +0 -4
  45. package/dist/orsovision/clinic/models.d.ts +0 -90
  46. package/dist/orsovision/clinic/models.js +0 -3
  47. package/dist/orsovision/contracts/client.d.ts +0 -69
  48. package/dist/orsovision/contracts/client.js +0 -18
  49. package/dist/orsovision/contracts/index.d.ts +0 -5
  50. package/dist/orsovision/contracts/index.js +0 -4
  51. package/dist/orsovision/contracts/models.d.ts +0 -84
  52. package/dist/orsovision/contracts/models.js +0 -3
  53. package/dist/orsovision/index.d.ts +0 -5
  54. package/dist/orsovision/index.js +0 -4
  55. package/dist/orsovision/models.d.ts +0 -66
  56. package/dist/orsovision/models.js +0 -3
  57. package/dist/orsovision/patients/client.d.ts +0 -52
  58. package/dist/orsovision/patients/client.js +0 -34
  59. package/dist/orsovision/patients/index.d.ts +0 -5
  60. package/dist/orsovision/patients/index.js +0 -4
  61. package/dist/orsovision/patients/models.d.ts +0 -287
  62. package/dist/orsovision/patients/models.js +0 -3
  63. package/dist/orsovision/services/client.d.ts +0 -74
  64. package/dist/orsovision/services/client.js +0 -18
  65. package/dist/orsovision/services/index.d.ts +0 -5
  66. package/dist/orsovision/services/index.js +0 -4
  67. package/dist/orsovision/services/models.d.ts +0 -81
  68. package/dist/orsovision/services/models.js +0 -3
  69. package/dist/orsovision/tools/client.d.ts +0 -44
  70. package/dist/orsovision/tools/client.js +0 -18
  71. package/dist/orsovision/tools/index.d.ts +0 -5
  72. package/dist/orsovision/tools/index.js +0 -4
  73. package/dist/orsovision/tools/models.d.ts +0 -102
  74. package/dist/orsovision/tools/models.js +0 -3
  75. package/dist/somos/appointments/client.d.ts +0 -40
  76. package/dist/somos/appointments/client.js +0 -29
  77. package/dist/somos/appointments/index.d.ts +0 -5
  78. package/dist/somos/appointments/index.js +0 -4
  79. package/dist/somos/appointments/models.d.ts +0 -303
  80. package/dist/somos/appointments/models.js +0 -9
  81. package/dist/somos/availability/client.d.ts +0 -33
  82. package/dist/somos/availability/client.js +0 -19
  83. package/dist/somos/availability/index.d.ts +0 -5
  84. package/dist/somos/availability/index.js +0 -4
  85. package/dist/somos/availability/models.d.ts +0 -338
  86. package/dist/somos/availability/models.js +0 -15
  87. package/dist/somos/client.d.ts +0 -29
  88. package/dist/somos/client.js +0 -55
  89. package/dist/somos/clinic/client.d.ts +0 -33
  90. package/dist/somos/clinic/client.js +0 -18
  91. package/dist/somos/clinic/index.d.ts +0 -5
  92. package/dist/somos/clinic/index.js +0 -4
  93. package/dist/somos/clinic/models.d.ts +0 -90
  94. package/dist/somos/clinic/models.js +0 -3
  95. package/dist/somos/contracts/client.d.ts +0 -74
  96. package/dist/somos/contracts/client.js +0 -18
  97. package/dist/somos/contracts/index.d.ts +0 -5
  98. package/dist/somos/contracts/index.js +0 -4
  99. package/dist/somos/contracts/models.d.ts +0 -96
  100. package/dist/somos/contracts/models.js +0 -3
  101. package/dist/somos/groups/client.d.ts +0 -67
  102. package/dist/somos/groups/client.js +0 -18
  103. package/dist/somos/groups/index.d.ts +0 -5
  104. package/dist/somos/groups/index.js +0 -4
  105. package/dist/somos/groups/models.d.ts +0 -117
  106. package/dist/somos/groups/models.js +0 -3
  107. package/dist/somos/index.d.ts +0 -5
  108. package/dist/somos/index.js +0 -4
  109. package/dist/somos/models.d.ts +0 -88
  110. package/dist/somos/models.js +0 -3
  111. package/dist/somos/patients/client.d.ts +0 -51
  112. package/dist/somos/patients/client.js +0 -34
  113. package/dist/somos/patients/index.d.ts +0 -5
  114. package/dist/somos/patients/index.js +0 -4
  115. package/dist/somos/patients/models.d.ts +0 -330
  116. package/dist/somos/patients/models.js +0 -3
  117. package/dist/somos/services/client.d.ts +0 -116
  118. package/dist/somos/services/client.js +0 -26
  119. package/dist/somos/services/index.d.ts +0 -5
  120. package/dist/somos/services/index.js +0 -4
  121. package/dist/somos/services/models.d.ts +0 -261
  122. package/dist/somos/services/models.js +0 -3
  123. package/dist/somos/specialtyRules/client.d.ts +0 -44
  124. package/dist/somos/specialtyRules/client.js +0 -18
  125. package/dist/somos/specialtyRules/index.d.ts +0 -5
  126. package/dist/somos/specialtyRules/index.js +0 -4
  127. package/dist/somos/specialtyRules/models.d.ts +0 -54
  128. package/dist/somos/specialtyRules/models.js +0 -3
  129. package/dist/somos/tools/client.d.ts +0 -44
  130. package/dist/somos/tools/client.js +0 -18
  131. package/dist/somos/tools/index.d.ts +0 -5
  132. package/dist/somos/tools/index.js +0 -4
  133. package/dist/somos/tools/models.d.ts +0 -102
  134. package/dist/somos/tools/models.js +0 -3
@@ -1,4 +1,4 @@
1
- import type { ConnectionNotConfiguredFailure, Empty, ResponseMetadata } from "../models.js";
1
+ import type { Empty, ResponseMetadata } from "../models.js";
2
2
  /**
3
3
  * The cost centre is not one of the connection's clinic: use one
4
4
  * visoft.clinic.get lists.
@@ -69,13 +69,35 @@ export interface VisoftConnectionNotConfiguredError {
69
69
  * The organization has no active Visoft connection for this call; an
70
70
  * administrator connects Visoft in Account.
71
71
  */
72
- error: ConnectionNotConfiguredFailure;
72
+ error: VisoftConnectionNotConfiguredFailure;
73
73
  /**
74
74
  * What every answer carries besides its data or error.
75
75
  */
76
76
  metadata: ResponseMetadata;
77
77
  success: false;
78
78
  }
79
+ /**
80
+ * The organization has no active Visoft connection for this call; an
81
+ * administrator connects Visoft in Account.
82
+ */
83
+ export interface VisoftConnectionNotConfiguredFailure {
84
+ /**
85
+ * The failure code, stable across releases.
86
+ */
87
+ code: "CONNECTION_NOT_CONFIGURED";
88
+ /**
89
+ * No fields.
90
+ */
91
+ data: Empty;
92
+ /**
93
+ * What went wrong, for people; it never contains input values.
94
+ */
95
+ message: string;
96
+ /**
97
+ * Whether repeating the same request may succeed.
98
+ */
99
+ retryable: false;
100
+ }
79
101
  /**
80
102
  * The clinic's cost centre has no current contract with that code.
81
103
  */
@@ -119,6 +141,28 @@ export interface VisoftContractService {
119
141
  */
120
142
  price: number | null;
121
143
  }
144
+ /**
145
+ * The clinical system rejected the username or password, or the user is
146
+ * blocked.
147
+ */
148
+ export interface VisoftCredentialsRejectedFailure {
149
+ /**
150
+ * The failure code, stable across releases.
151
+ */
152
+ code: "CREDENTIALS_REJECTED";
153
+ /**
154
+ * No fields.
155
+ */
156
+ data: Empty;
157
+ /**
158
+ * What went wrong, for people; it never contains input values.
159
+ */
160
+ message: string;
161
+ /**
162
+ * Whether repeating the same request may succeed.
163
+ */
164
+ retryable: false;
165
+ }
122
166
  export interface VisoftProfessional {
123
167
  /**
124
168
  * The professional's SIIPS id. Empty only in an availability answer of an
@@ -138,3 +182,24 @@ export interface VisoftProfessional {
138
182
  */
139
183
  specialty: string;
140
184
  }
185
+ /**
186
+ * The clinical system did not answer or could not complete the request.
187
+ */
188
+ export interface VisoftProviderUnavailableFailure {
189
+ /**
190
+ * The failure code, stable across releases.
191
+ */
192
+ code: "PROVIDER_UNAVAILABLE";
193
+ /**
194
+ * No fields.
195
+ */
196
+ data: Empty;
197
+ /**
198
+ * What went wrong, for people; it never contains input values.
199
+ */
200
+ message: string;
201
+ /**
202
+ * Whether repeating the same request may succeed.
203
+ */
204
+ retryable: true;
205
+ }
@@ -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, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
5
+ export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftCredentialsRejectedError, VisoftLookupPatientBadGatewayError, VisoftLookupPatientBadGatewayFailure, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
@@ -1,5 +1,5 @@
1
- import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata } from "../../models.js";
2
- import type { VisoftAgencyNotServedFailure } from "../models.js";
1
+ import type { ConnectionNotFoundFailure, Empty, OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
2
+ import type { VisoftAgencyNotServedFailure, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
3
3
  export interface VisoftAdmission {
4
4
  /**
5
5
  * The admission's number.
@@ -118,7 +118,7 @@ export interface VisoftCorrectPatientBadGatewayError {
118
118
  metadata: ResponseMetadata;
119
119
  success: false;
120
120
  }
121
- export type VisoftCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure | VisoftPatientNotSavedFailure;
121
+ export type VisoftCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure | VisoftPatientNotSavedFailure;
122
122
  export interface VisoftCorrectPatientBody {
123
123
  /**
124
124
  * Home address.
@@ -202,7 +202,7 @@ export interface VisoftCorrectPatientUnprocessableContentError {
202
202
  metadata: ResponseMetadata;
203
203
  success: false;
204
204
  }
205
- export type VisoftCorrectPatientUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
205
+ export type VisoftCorrectPatientUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
206
206
  /**
207
207
  * A failed answer.
208
208
  */
@@ -215,7 +215,7 @@ export interface VisoftCreatePatientBadGatewayError {
215
215
  metadata: ResponseMetadata;
216
216
  success: false;
217
217
  }
218
- export type VisoftCreatePatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure | VisoftPatientNotSavedFailure;
218
+ export type VisoftCreatePatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure | VisoftPatientNotSavedFailure;
219
219
  export interface VisoftCreatePatientBody {
220
220
  /**
221
221
  * Home address.
@@ -384,7 +384,36 @@ export interface VisoftCreatePatientUnprocessableContentError {
384
384
  metadata: ResponseMetadata;
385
385
  success: false;
386
386
  }
387
- export type VisoftCreatePatientUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
387
+ export type VisoftCreatePatientUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
388
+ /**
389
+ * A failed answer.
390
+ */
391
+ export interface VisoftCredentialsRejectedError {
392
+ data: null;
393
+ /**
394
+ * The clinical system rejected the username or password, or the user is
395
+ * blocked.
396
+ */
397
+ error: VisoftCredentialsRejectedFailure;
398
+ /**
399
+ * What every answer carries besides its data or error.
400
+ */
401
+ metadata: ResponseMetadata;
402
+ success: false;
403
+ }
404
+ /**
405
+ * A failed answer.
406
+ */
407
+ export interface VisoftLookupPatientBadGatewayError {
408
+ data: null;
409
+ error: VisoftLookupPatientBadGatewayFailure;
410
+ /**
411
+ * What every answer carries besides its data or error.
412
+ */
413
+ metadata: ResponseMetadata;
414
+ success: false;
415
+ }
416
+ export type VisoftLookupPatientBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
388
417
  export interface VisoftLookupPatientBody {
389
418
  /**
390
419
  * The connection to run on. Optional when the organization has one Visoft
@@ -1,5 +1,5 @@
1
- import type { CredentialsRejectedFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata } from "../../models.js";
2
- import type { VisoftAgencyNotServedFailure, VisoftProfessional } from "../models.js";
1
+ import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata } from "../../models.js";
2
+ import type { VisoftAgencyNotServedFailure, VisoftCredentialsRejectedFailure, VisoftProfessional, VisoftProviderUnavailableFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -12,7 +12,7 @@ export interface VisoftListProfessionalsBadGatewayError {
12
12
  metadata: ResponseMetadata;
13
13
  success: false;
14
14
  }
15
- export type VisoftListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
15
+ export type VisoftListProfessionalsBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
16
16
  /**
17
17
  * A failed answer.
18
18
  */
@@ -25,7 +25,7 @@ export interface VisoftListProfessionalsUnprocessableContentError {
25
25
  metadata: ResponseMetadata;
26
26
  success: false;
27
27
  }
28
- export type VisoftListProfessionalsUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
28
+ export type VisoftListProfessionalsUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
29
29
  export interface VisoftProfessionalPage {
30
30
  /**
31
31
  * Items admitted by this resource contract within the verified organization.
@@ -1,5 +1,5 @@
1
- import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderUnavailableFailure, ResponseMetadata } from "../../models.js";
2
- import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService } from "../models.js";
1
+ import type { ConnectionNotFoundFailure, OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
2
+ import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -12,7 +12,7 @@ export interface VisoftGetServiceCatalogBadGatewayError {
12
12
  metadata: ResponseMetadata;
13
13
  success: false;
14
14
  }
15
- export type VisoftGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
15
+ export type VisoftGetServiceCatalogBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
16
16
  /**
17
17
  * A failed answer.
18
18
  */
@@ -38,7 +38,7 @@ export interface VisoftGetServiceCatalogUnprocessableContentError {
38
38
  metadata: ResponseMetadata;
39
39
  success: false;
40
40
  }
41
- export type VisoftGetServiceCatalogUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
41
+ export type VisoftGetServiceCatalogUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
42
42
  export interface VisoftServiceCatalog {
43
43
  /**
44
44
  * The cost centre the contract is listed under.
@@ -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, ListRequest, ListResponse, } from "./client.js";
5
- export type { VisoftContractServicePage, VisoftContractServicePageResponse, VisoftListServicesNotFoundError, VisoftListServicesNotFoundFailure, VisoftListServicesUnprocessableContentError, VisoftListServicesUnprocessableContentFailure, } from "./models.js";
5
+ export type { VisoftContractServicePage, VisoftContractServicePageResponse, VisoftListServicesBadGatewayError, VisoftListServicesBadGatewayFailure, VisoftListServicesNotFoundError, VisoftListServicesNotFoundFailure, VisoftListServicesUnprocessableContentError, VisoftListServicesUnprocessableContentFailure, } from "./models.js";
@@ -1,5 +1,5 @@
1
- import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, PageInfo, ResponseMetadata } from "../../models.js";
2
- import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService } from "../models.js";
1
+ import type { ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ResponseMetadata } from "../../models.js";
2
+ import type { VisoftAgencyNotServedFailure, VisoftContractNotFoundFailure, VisoftContractService, VisoftCredentialsRejectedFailure, VisoftProviderUnavailableFailure } from "../models.js";
3
3
  export interface VisoftContractServicePage {
4
4
  /**
5
5
  * Items admitted by this resource contract within the verified organization.
@@ -26,6 +26,19 @@ export interface VisoftContractServicePageResponse {
26
26
  metadata: ResponseMetadata;
27
27
  success: true;
28
28
  }
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface VisoftListServicesBadGatewayError {
33
+ data: null;
34
+ error: VisoftListServicesBadGatewayFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type VisoftListServicesBadGatewayFailure = OutcomeUnknownFailure | VisoftProviderUnavailableFailure;
29
42
  /**
30
43
  * A failed answer.
31
44
  */
@@ -51,4 +64,4 @@ export interface VisoftListServicesUnprocessableContentError {
51
64
  metadata: ResponseMetadata;
52
65
  success: false;
53
66
  }
54
- export type VisoftListServicesUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
67
+ export type VisoftListServicesUnprocessableContentFailure = VisoftCredentialsRejectedFailure | VisoftAgencyNotServedFailure;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.26.0",
3
+ "version": "5.27.0",
4
4
  "description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -57,8 +57,8 @@
57
57
  "packageManager": "bun@1.4.3",
58
58
  "arbol": {
59
59
  "openapi": {
60
- "release": "1.20261101.92027",
61
- "sha256": "e9be828ee9b2d19b0f340ec445d812a85a2a24ab2ccb9577e74bdfc058336af2"
60
+ "release": "1.20261102.183956",
61
+ "sha256": "42351c707ecd4270d4b1367bc2df45cd70c7c7e2a87b509dcf0f86fc066a82f4"
62
62
  }
63
63
  }
64
64
  }
@@ -1,51 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { OrsovisionAgencyPageResponse } 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 chain's locations
12
- *
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.
20
- */
21
- list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
22
- }
23
- export declare function createClient(options: ClientOptions): Client;
24
- export declare function bind(transport: Transport): Client;
25
- export interface ListRequest {
26
- /**
27
- * Opaque cursor returned by pageInfo; omit it to request the first page.
28
- */
29
- cursor?: string;
30
- /**
31
- * Direction to traverse the stable keyset ordering from the supplied cursor.
32
- */
33
- direction?: "forward" | "backward";
34
- /**
35
- * Maximum items returned in one page. Defaults to 25; larger reads require
36
- * another cursor.
37
- */
38
- limit?: number;
39
- /**
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.
43
- */
44
- connectionId?: string;
45
- /**
46
- * The channel the conversation happens on: voice, whatsapp or web (the
47
- * default).
48
- */
49
- channel?: "voice" | "web" | "whatsapp";
50
- }
51
- export type ListResponse = OrsovisionAgencyPageResponse;
@@ -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/orsovision/agencies",
15
- query: { cursor: "cursor", direction: "direction", limit: "limit", 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, ListRequest, ListResponse, } from "./client.js";
5
- export type { OrsovisionAgency, OrsovisionAgencyPage, OrsovisionAgencyPageResponse, OrsovisionListAgenciesBadGatewayError, OrsovisionListAgenciesBadGatewayFailure, OrsovisionListAgenciesConflictError, OrsovisionListAgenciesConflictFailure, OrsovisionListAgenciesNotFoundError, OrsovisionListAgenciesNotFoundFailure, OrsovisionListAgenciesServiceUnavailableError, OrsovisionListAgenciesServiceUnavailableFailure, OrsovisionListAgenciesUnprocessableContentError, OrsovisionListAgenciesUnprocessableContentFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,107 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, CredentialsRejectedFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, ToolRefusedFailure, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionToolNotAvailableFailure } from "../models.js";
3
- export interface OrsovisionAgency {
4
- /**
5
- * The location, as every later call names it: pass it exactly.
6
- */
7
- code: string;
8
- /**
9
- * Whether a call that names no location runs at this one.
10
- */
11
- default: boolean;
12
- /**
13
- * The location's name, to say to the person.
14
- */
15
- label: string;
16
- }
17
- export interface OrsovisionAgencyPage {
18
- /**
19
- * Items admitted by this resource contract within the verified organization.
20
- */
21
- data: OrsovisionAgency[];
22
- /**
23
- * Discriminator for a resource list response.
24
- */
25
- object: "list";
26
- /**
27
- * Opaque navigation cursors for this page’s stable keyset order.
28
- */
29
- pageInfo: PageInfo;
30
- }
31
- /**
32
- * A successful answer.
33
- */
34
- export interface OrsovisionAgencyPageResponse {
35
- data: OrsovisionAgencyPage;
36
- error: null;
37
- /**
38
- * What every answer carries besides its data or error.
39
- */
40
- metadata: ResponseMetadata;
41
- success: true;
42
- }
43
- /**
44
- * A failed answer.
45
- */
46
- export interface OrsovisionListAgenciesBadGatewayError {
47
- data: null;
48
- error: OrsovisionListAgenciesBadGatewayFailure;
49
- /**
50
- * What every answer carries besides its data or error.
51
- */
52
- metadata: ResponseMetadata;
53
- success: false;
54
- }
55
- export type OrsovisionListAgenciesBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure;
56
- /**
57
- * A failed answer.
58
- */
59
- export interface OrsovisionListAgenciesConflictError {
60
- data: null;
61
- error: OrsovisionListAgenciesConflictFailure;
62
- /**
63
- * What every answer carries besides its data or error.
64
- */
65
- metadata: ResponseMetadata;
66
- success: false;
67
- }
68
- export type OrsovisionListAgenciesConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
69
- /**
70
- * A failed answer.
71
- */
72
- export interface OrsovisionListAgenciesNotFoundError {
73
- data: null;
74
- error: OrsovisionListAgenciesNotFoundFailure;
75
- /**
76
- * What every answer carries besides its data or error.
77
- */
78
- metadata: ResponseMetadata;
79
- success: false;
80
- }
81
- export type OrsovisionListAgenciesNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
82
- /**
83
- * A failed answer.
84
- */
85
- export interface OrsovisionListAgenciesServiceUnavailableError {
86
- data: null;
87
- error: OrsovisionListAgenciesServiceUnavailableFailure;
88
- /**
89
- * What every answer carries besides its data or error.
90
- */
91
- metadata: ResponseMetadata;
92
- success: false;
93
- }
94
- export type OrsovisionListAgenciesServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
95
- /**
96
- * A failed answer.
97
- */
98
- export interface OrsovisionListAgenciesUnprocessableContentError {
99
- data: null;
100
- error: OrsovisionListAgenciesUnprocessableContentFailure;
101
- /**
102
- * What every answer carries besides its data or error.
103
- */
104
- metadata: ResponseMetadata;
105
- success: false;
106
- }
107
- export type OrsovisionListAgenciesUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -1,39 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ToolResultResponse } from "../../models.js";
3
- import { type OrsovisionCancelAppointmentBody, type OrsovisionCreateAppointmentBody } from "./models.js";
4
- export interface ClientOptions extends BaseClientOptions {
5
- /**
6
- * The URL the paths of the API are relative to.
7
- */
8
- baseUrl: string;
9
- }
10
- export interface Client {
11
- /**
12
- * Cancel an appointment
13
- *
14
- * Cancel one exact future appointment, only after the person explicitly
15
- * confirmed it, with the cancellation reference from a fresh patient lookup.
16
- * Never repeat a cancellation whose outcome is unknown. Orsovision's tool
17
- * pack sets this tool's rules, parameters and accepted values
18
- * (orsovision.tools.list answers them), and every call is checked against
19
- * them.
20
- */
21
- cancel(request: CancelRequest, options?: RequestOptions): Promise<CancelResponse>;
22
- /**
23
- * Book an appointment
24
- *
25
- * Book one slot orsovision.availability.lookup returned, only after the
26
- * person explicitly confirmed that exact appointment. Pass its reference
27
- * unchanged. Never repeat a booking whose outcome is unknown. Orsovision's
28
- * tool pack sets this tool's rules, parameters and accepted values
29
- * (orsovision.tools.list answers them), and every call is checked against
30
- * them.
31
- */
32
- create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
33
- }
34
- export declare function createClient(options: ClientOptions): Client;
35
- export declare function bind(transport: Transport): Client;
36
- export type CancelRequest = OrsovisionCancelAppointmentBody;
37
- export type CancelResponse = ToolResultResponse;
38
- export type CreateRequest = OrsovisionCreateAppointmentBody;
39
- export type CreateResponse = ToolResultResponse;
@@ -1,29 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { OrsovisionCancelAppointmentBodyCodec, OrsovisionCreateAppointmentBodyCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- cancel: (request, options) => transport.send(CancelOperation, request, options),
11
- create: (request, options) => transport.send(CreateOperation, request, options),
12
- };
13
- }
14
- const CancelOperation = {
15
- method: "POST",
16
- route: "/v1/orsovision/appointments/cancel",
17
- body: "flat",
18
- request: OrsovisionCancelAppointmentBodyCodec,
19
- response: null,
20
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
21
- };
22
- const CreateOperation = {
23
- method: "POST",
24
- route: "/v1/orsovision/appointments",
25
- body: "flat",
26
- request: OrsovisionCreateAppointmentBodyCodec,
27
- response: null,
28
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
29
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, CancelRequest, CancelResponse, CreateRequest, CreateResponse, } from "./client.js";
5
- export type { OrsovisionCancelAppointmentBody, OrsovisionCancelAppointmentConflictError, OrsovisionCancelAppointmentConflictFailure, OrsovisionCancelAppointmentNotFoundError, OrsovisionCancelAppointmentNotFoundFailure, OrsovisionCancelAppointmentServiceUnavailableError, OrsovisionCancelAppointmentServiceUnavailableFailure, OrsovisionCreateAppointmentBody, OrsovisionCreateAppointmentConflictError, OrsovisionCreateAppointmentConflictFailure, OrsovisionCreateAppointmentNotFoundError, OrsovisionCreateAppointmentNotFoundFailure, OrsovisionCreateAppointmentServiceUnavailableError, OrsovisionCreateAppointmentServiceUnavailableFailure, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";