@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
@@ -0,0 +1,74 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OrsovisionContractServicePageResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * List a contract's services
12
+ *
13
+ * The services of one of the chain's agreements (code) at one of its
14
+ * locations, in ascending code order; with q, only those whose code or name
15
+ * contains it. Catalog items that cannot be booked are not appointment
16
+ * availability. A refusal is TOOL_REFUSED: data.reason says why,
17
+ * data.guidance what to do next and data.details what it offers instead; it
18
+ * is never an outage. Orsovision's tool pack sets this tool's rules,
19
+ * parameters and accepted values (orsovision.tools.list answers them), and
20
+ * every call is checked against them.
21
+ */
22
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
23
+ }
24
+ export declare function createClient(options: ClientOptions): Client;
25
+ export declare function bind(transport: Transport): Client;
26
+ export interface ListRequest {
27
+ /**
28
+ * Código de contrato devuelto por list_contracts para la misma sede.
29
+ */
30
+ code: string;
31
+ /**
32
+ * El mismo código de sede usado en list_contracts.
33
+ */
34
+ agency: string;
35
+ /**
36
+ * Texto opcional del servicio: optometria, tamizaje, montura, lentes o el
37
+ * nombre del procedimiento.
38
+ */
39
+ q?: string;
40
+ /**
41
+ * true solo si la persona afirma que un servicio falta o acaba de
42
+ * habilitarse; relee el catálogo en vez del caché de 6 h.
43
+ */
44
+ refresh?: boolean;
45
+ /**
46
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
47
+ */
48
+ cursor?: string;
49
+ /**
50
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
51
+ */
52
+ direction?: "forward" | "backward";
53
+ /**
54
+ * Maximum items returned in one page. Defaults to 25; larger reads require
55
+ * another cursor.
56
+ */
57
+ limit?: number;
58
+ /**
59
+ * The Visoft connection to run on, as Account lists it (con_…). Optional when
60
+ * the organization has one; required when it has several. Another
61
+ * organization's connection is CONNECTION_NOT_FOUND.
62
+ */
63
+ connectionId?: string;
64
+ /**
65
+ * The channel the conversation happens on: voice, whatsapp or web (the
66
+ * default).
67
+ */
68
+ channel?: "voice" | "web" | "whatsapp";
69
+ /**
70
+ * Deprecated: use `q`. Answered until 2027-01-28.
71
+ */
72
+ search?: string;
73
+ }
74
+ export type ListResponse = OrsovisionContractServicePageResponse;
@@ -0,0 +1,18 @@
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/services",
15
+ query: { code: "code", agency: "agency", q: "q", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel", search: "search" },
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
+ };
@@ -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 { OrsovisionContractService, OrsovisionContractServicePage, OrsovisionContractServicePageResponse, OrsovisionListServicesBadGatewayError, OrsovisionListServicesConflictError, OrsovisionListServicesConflictFailure, OrsovisionListServicesNotFoundError, OrsovisionListServicesNotFoundFailure, OrsovisionListServicesServiceUnavailableError, OrsovisionListServicesServiceUnavailableFailure, OrsovisionListServicesUnprocessableContentError, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,105 @@
1
+ import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ListServicesBadGatewayFailure, ListServicesUnprocessableContentFailure, PageInfo, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
3
+ export interface OrsovisionContractService {
4
+ /**
5
+ * The service, as orsovision.availability.lookup takes it.
6
+ */
7
+ code: string;
8
+ /**
9
+ * The service's name in the clinic's catalog.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract's price, when the catalog states one.
14
+ */
15
+ price: number | null;
16
+ }
17
+ export interface OrsovisionContractServicePage {
18
+ /**
19
+ * Items admitted by this resource contract within the verified organization.
20
+ */
21
+ data: OrsovisionContractService[];
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 OrsovisionContractServicePageResponse {
35
+ data: OrsovisionContractServicePage;
36
+ error: null;
37
+ /**
38
+ * What every answer carries besides its data or error.
39
+ */
40
+ metadata: OrsovisionResponseMetadata;
41
+ success: true;
42
+ }
43
+ /**
44
+ * A failed answer.
45
+ */
46
+ export interface OrsovisionListServicesBadGatewayError {
47
+ data: null;
48
+ error: ListServicesBadGatewayFailure;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: OrsovisionResponseMetadata;
53
+ success: false;
54
+ }
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface OrsovisionListServicesConflictError {
59
+ data: null;
60
+ error: OrsovisionListServicesConflictFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: OrsovisionResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type OrsovisionListServicesConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface OrsovisionListServicesNotFoundError {
72
+ data: null;
73
+ error: OrsovisionListServicesNotFoundFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: OrsovisionResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type OrsovisionListServicesNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface OrsovisionListServicesServiceUnavailableError {
85
+ data: null;
86
+ error: OrsovisionListServicesServiceUnavailableFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: OrsovisionResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type OrsovisionListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
94
+ /**
95
+ * A failed answer.
96
+ */
97
+ export interface OrsovisionListServicesUnprocessableContentError {
98
+ data: null;
99
+ error: ListServicesUnprocessableContentFailure;
100
+ /**
101
+ * What every answer carries besides its data or error.
102
+ */
103
+ metadata: OrsovisionResponseMetadata;
104
+ success: false;
105
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,44 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { OrsovisionClinicToolPageResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * List the clinic's tools
12
+ *
13
+ * Every tool Orsovision's agents may call, in ascending name order, with the
14
+ * clinic's exact parameters and instructions, each naming the operation that
15
+ * runs it; a list's tool declares the page fields too. The clinic itself, its
16
+ * timezone and the version of these definitions are orsovision.clinic.get's.
17
+ * Contains no patient data and performs no clinical login.
18
+ */
19
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
20
+ }
21
+ export declare function createClient(options: ClientOptions): Client;
22
+ export declare function bind(transport: Transport): Client;
23
+ export interface ListRequest {
24
+ /**
25
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
26
+ */
27
+ cursor?: string;
28
+ /**
29
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
30
+ */
31
+ direction?: "forward" | "backward";
32
+ /**
33
+ * Maximum items returned in one page. Defaults to 25; larger reads require
34
+ * another cursor.
35
+ */
36
+ limit?: number;
37
+ /**
38
+ * The Visoft connection to run on, as Account lists it (con_…). Optional when
39
+ * the organization has one; required when it has several. Another
40
+ * organization's connection is CONNECTION_NOT_FOUND.
41
+ */
42
+ connectionId?: string;
43
+ }
44
+ export type ListResponse = OrsovisionClinicToolPageResponse;
@@ -11,8 +11,8 @@ export function bind(transport) {
11
11
  }
12
12
  const ListOperation = {
13
13
  method: "GET",
14
- route: "/v1/raiz/roles",
15
- query: { cursor: "cursor", direction: "direction", limit: "limit" },
14
+ route: "/v1/orsovision/tools",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId" },
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 { OrsovisionClinicTool, OrsovisionClinicToolPage, OrsovisionClinicToolPageResponse, OrsovisionListToolsBadGatewayError, OrsovisionListToolsConflictError, OrsovisionListToolsConflictFailure, OrsovisionListToolsNotFoundError, OrsovisionListToolsNotFoundFailure, OrsovisionListToolsServiceUnavailableError, OrsovisionListToolsServiceUnavailableFailure, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,101 @@
1
+ import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ListToolsBadGatewayFailure, PageInfo, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
3
+ export interface OrsovisionClinicTool {
4
+ /**
5
+ * The clinic's instructions for this tool.
6
+ */
7
+ description: string;
8
+ displayName: string;
9
+ /**
10
+ * JSON Schema of the clinic's exact parameters for this tool.
11
+ */
12
+ inputSchema: {
13
+ [key: string]: unknown;
14
+ };
15
+ mutates: boolean;
16
+ /**
17
+ * The tool's name, as the clinic's instructions name it.
18
+ */
19
+ name: string;
20
+ /**
21
+ * The operation that runs this tool, such as orsovision.patients.lookup.
22
+ */
23
+ operation: string | null;
24
+ }
25
+ export interface OrsovisionClinicToolPage {
26
+ /**
27
+ * Items admitted by this resource contract within the verified organization.
28
+ */
29
+ data: OrsovisionClinicTool[];
30
+ /**
31
+ * Discriminator for a resource list response.
32
+ */
33
+ object: "list";
34
+ /**
35
+ * Opaque navigation cursors for this page’s stable keyset order.
36
+ */
37
+ pageInfo: PageInfo;
38
+ }
39
+ /**
40
+ * A successful answer.
41
+ */
42
+ export interface OrsovisionClinicToolPageResponse {
43
+ data: OrsovisionClinicToolPage;
44
+ error: null;
45
+ /**
46
+ * What every answer carries besides its data or error.
47
+ */
48
+ metadata: OrsovisionResponseMetadata;
49
+ success: true;
50
+ }
51
+ /**
52
+ * A failed answer.
53
+ */
54
+ export interface OrsovisionListToolsBadGatewayError {
55
+ data: null;
56
+ error: ListToolsBadGatewayFailure;
57
+ /**
58
+ * What every answer carries besides its data or error.
59
+ */
60
+ metadata: OrsovisionResponseMetadata;
61
+ success: false;
62
+ }
63
+ /**
64
+ * A failed answer.
65
+ */
66
+ export interface OrsovisionListToolsConflictError {
67
+ data: null;
68
+ error: OrsovisionListToolsConflictFailure;
69
+ /**
70
+ * What every answer carries besides its data or error.
71
+ */
72
+ metadata: OrsovisionResponseMetadata;
73
+ success: false;
74
+ }
75
+ export type OrsovisionListToolsConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
76
+ /**
77
+ * A failed answer.
78
+ */
79
+ export interface OrsovisionListToolsNotFoundError {
80
+ data: null;
81
+ error: OrsovisionListToolsNotFoundFailure;
82
+ /**
83
+ * What every answer carries besides its data or error.
84
+ */
85
+ metadata: OrsovisionResponseMetadata;
86
+ success: false;
87
+ }
88
+ export type OrsovisionListToolsNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
89
+ /**
90
+ * A failed answer.
91
+ */
92
+ export interface OrsovisionListToolsServiceUnavailableError {
93
+ data: null;
94
+ error: OrsovisionListToolsServiceUnavailableFailure;
95
+ /**
96
+ * What every answer carries besides its data or error.
97
+ */
98
+ metadata: OrsovisionResponseMetadata;
99
+ success: false;
100
+ }
101
+ export type OrsovisionListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -11,11 +11,9 @@ import { type Client as EvalCasesClient } from "./evalCases/client.js";
11
11
  import { type Client as EvalRunsClient } from "./evalRuns/client.js";
12
12
  import { type Client as FactsClient } from "./facts/client.js";
13
13
  import { type Client as KnowledgeClient } from "./knowledge/client.js";
14
- import { type Client as MembersClient } from "./members/client.js";
15
14
  import { type Client as OrganizationClient } from "./organization/client.js";
16
15
  import { type Client as ProfilesClient } from "./profiles/client.js";
17
16
  import { type Client as ReportsClient } from "./reports/client.js";
18
- import { type Client as RolesClient } from "./roles/client.js";
19
17
  import { type Client as SuppressionsClient } from "./suppressions/client.js";
20
18
  import { type Client as TasksClient } from "./tasks/client.js";
21
19
  import { type Client as TemplatesClient } from "./templates/client.js";
@@ -39,11 +37,9 @@ export interface Client {
39
37
  readonly evalRuns: EvalRunsClient;
40
38
  readonly facts: FactsClient;
41
39
  readonly knowledge: KnowledgeClient;
42
- readonly members: MembersClient;
43
40
  readonly organization: OrganizationClient;
44
41
  readonly profiles: ProfilesClient;
45
42
  readonly reports: ReportsClient;
46
- readonly roles: RolesClient;
47
43
  readonly suppressions: SuppressionsClient;
48
44
  readonly tasks: TasksClient;
49
45
  readonly templates: TemplatesClient;
@@ -13,11 +13,9 @@ import { bind as bindEvalCases, } from "./evalCases/client.js";
13
13
  import { bind as bindEvalRuns, } from "./evalRuns/client.js";
14
14
  import { bind as bindFacts, } from "./facts/client.js";
15
15
  import { bind as bindKnowledge, } from "./knowledge/client.js";
16
- import { bind as bindMembers, } from "./members/client.js";
17
16
  import { bind as bindOrganization, } from "./organization/client.js";
18
17
  import { bind as bindProfiles, } from "./profiles/client.js";
19
18
  import { bind as bindReports, } from "./reports/client.js";
20
- import { bind as bindRoles, } from "./roles/client.js";
21
19
  import { bind as bindSuppressions, } from "./suppressions/client.js";
22
20
  import { bind as bindTasks, } from "./tasks/client.js";
23
21
  import { bind as bindTemplates, } from "./templates/client.js";
@@ -38,11 +36,9 @@ export function bind(transport) {
38
36
  let evalRunsClient;
39
37
  let factsClient;
40
38
  let knowledgeClient;
41
- let membersClient;
42
39
  let organizationClient;
43
40
  let profilesClient;
44
41
  let reportsClient;
45
- let rolesClient;
46
42
  let suppressionsClient;
47
43
  let tasksClient;
48
44
  let templatesClient;
@@ -84,9 +80,6 @@ export function bind(transport) {
84
80
  get knowledge() {
85
81
  return (knowledgeClient ??= bindKnowledge(transport));
86
82
  },
87
- get members() {
88
- return (membersClient ??= bindMembers(transport));
89
- },
90
83
  get organization() {
91
84
  return (organizationClient ??= bindOrganization(transport));
92
85
  },
@@ -96,9 +89,6 @@ export function bind(transport) {
96
89
  get reports() {
97
90
  return (reportsClient ??= bindReports(transport));
98
91
  },
99
- get roles() {
100
- return (rolesClient ??= bindRoles(transport));
101
- },
102
92
  get suppressions() {
103
93
  return (suppressionsClient ??= bindSuppressions(transport));
104
94
  },
@@ -9,16 +9,6 @@ export interface ClientOptions extends BaseClientOptions {
9
9
  baseUrl: string;
10
10
  }
11
11
  export interface Client {
12
- /**
13
- * Update the organization
14
- *
15
- * Change the organization's name, default language, time zone or settings.
16
- * Settings merge: an omitted setting stays and `null` returns it to its
17
- * default; `notifications.recipients` is replaced as a whole. Fails with
18
- * TIME_ZONE_UNKNOWN when the time zone is not a valid IANA zone (for example
19
- * `America/Bogota`).
20
- */
21
- configure(request?: ConfigureRequest, options?: RequestOptions): Promise<ConfigureResponse>;
22
12
  /**
23
13
  * Get the organization
24
14
  *
@@ -31,7 +21,7 @@ export interface Client {
31
21
  * organization's separate permission to use it. With `expand=applications`,
32
22
  * also which Arbol applications (Agenda, Ámbar, Account) you can open in it.
33
23
  */
34
- current(request?: CurrentRequest, options?: RequestOptions): Promise<CurrentResponse>;
24
+ get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
35
25
  /**
36
26
  * Send the daily report now
37
27
  *
@@ -44,10 +34,47 @@ export interface Client {
44
34
  * way.
45
35
  */
46
36
  sendDailyReport(request: SendDailyReportRequest, options?: RequestOptions): Promise<SendDailyReportResponse>;
37
+ /**
38
+ * Update the organization
39
+ *
40
+ * Change the organization's name, default language, time zone or settings.
41
+ * Settings merge: an omitted setting stays and `null` returns it to its
42
+ * default; `notifications.recipients` is replaced as a whole. Fails with
43
+ * TIME_ZONE_UNKNOWN when the time zone is not a valid IANA zone (for example
44
+ * `America/Bogota`).
45
+ */
46
+ update(request?: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
47
47
  }
48
48
  export declare function createClient(options: ClientOptions): Client;
49
49
  export declare function bind(transport: Transport): Client;
50
- export interface ConfigureRequest {
50
+ export interface GetRequest {
51
+ /**
52
+ * Related data to include, comma-separated: `applications`.
53
+ */
54
+ expand?: string;
55
+ }
56
+ export interface GetResponse {
57
+ data: RaizOrganization;
58
+ error: null;
59
+ metadata: ResponseMetadata;
60
+ success: true;
61
+ }
62
+ export interface SendDailyReportRequest {
63
+ body: {
64
+ [key: string]: unknown;
65
+ };
66
+ }
67
+ export interface SendDailyReportResponse {
68
+ data: {
69
+ recipients: number;
70
+ requestedAt: Temporal.Instant;
71
+ until: Temporal.Instant;
72
+ };
73
+ error: null;
74
+ metadata: ResponseMetadata;
75
+ success: true;
76
+ }
77
+ export interface UpdateRequest {
51
78
  /**
52
79
  * BCP 47 language tag.
53
80
  */
@@ -83,36 +110,9 @@ export interface ConfigureRequest {
83
110
  */
84
111
  timeZone?: string;
85
112
  }
86
- export interface ConfigureResponse {
87
- data: RaizOrganization;
88
- error: null;
89
- metadata: ResponseMetadata;
90
- success: true;
91
- }
92
- export interface CurrentRequest {
93
- /**
94
- * Related data to include, comma-separated: `applications`.
95
- */
96
- expand?: string;
97
- }
98
- export interface CurrentResponse {
113
+ export interface UpdateResponse {
99
114
  data: RaizOrganization;
100
115
  error: null;
101
116
  metadata: ResponseMetadata;
102
117
  success: true;
103
118
  }
104
- export interface SendDailyReportRequest {
105
- body: {
106
- [key: string]: unknown;
107
- };
108
- }
109
- export interface SendDailyReportResponse {
110
- data: {
111
- recipients: number;
112
- requestedAt: Temporal.Instant;
113
- until: Temporal.Instant;
114
- };
115
- error: null;
116
- metadata: ResponseMetadata;
117
- success: true;
118
- }
@@ -7,19 +7,12 @@ export function createClient(options) {
7
7
  }
8
8
  export function bind(transport) {
9
9
  return {
10
- configure: (request, options) => transport.send(ConfigureOperation, request, options),
11
- current: (request, options) => transport.send(CurrentOperation, request, options),
10
+ get: (request, options) => transport.send(GetOperation, request, options),
12
11
  sendDailyReport: (request, options) => transport.send(SendDailyReportOperation, request, options),
12
+ update: (request, options) => transport.send(UpdateOperation, request, options),
13
13
  };
14
14
  }
15
- const ConfigureOperation = {
16
- method: "PATCH",
17
- route: "/v1/raiz/organization/update",
18
- body: "flat",
19
- response: object([["data", null, () => RaizOrganizationCodec]]),
20
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
21
- };
22
- const CurrentOperation = {
15
+ const GetOperation = {
23
16
  method: "GET",
24
17
  route: "/v1/raiz/organization",
25
18
  query: { expand: "expand" },
@@ -33,3 +26,10 @@ const SendDailyReportOperation = {
33
26
  response: object([["data", null, object([["requestedAt", null, instant], ["until", null, instant]])]]),
34
27
  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 },
35
28
  };
29
+ const UpdateOperation = {
30
+ method: "PATCH",
31
+ route: "/v1/raiz/organization/update",
32
+ body: "flat",
33
+ response: object([["data", null, () => RaizOrganizationCodec]]),
34
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
35
+ };
@@ -1,5 +1,5 @@
1
1
  export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, ConfigureRequest, ConfigureResponse, CurrentRequest, CurrentResponse, SendDailyReportRequest, SendDailyReportResponse, } from "./client.js";
4
+ export type { Client, ClientOptions, GetRequest, GetResponse, SendDailyReportRequest, SendDailyReportResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
5
  export type { OrganizationId, RaizOrganization, } from "./models.js";
@@ -32,11 +32,11 @@ export interface Client {
32
32
  * these are historical receipts, not the provider's current appointment
33
33
  * status.
34
34
  */
35
- current(request: CurrentRequest, options?: RequestOptions): Promise<CurrentResponse>;
35
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
36
36
  }
37
37
  export declare function createClient(options: ClientOptions): Client;
38
38
  export declare function bind(transport: Transport): Client;
39
- export interface CurrentRequest {
39
+ export interface GetRequest {
40
40
  /**
41
41
  * Agent id.
42
42
  */
@@ -81,7 +81,7 @@ export interface CurrentRequest {
81
81
  */
82
82
  to?: Temporal.PlainDate;
83
83
  }
84
- export interface CurrentResponse {
84
+ export interface GetResponse {
85
85
  data: RaizReport;
86
86
  error: null;
87
87
  metadata: ResponseMetadata;
@@ -7,10 +7,10 @@ export function createClient(options) {
7
7
  }
8
8
  export function bind(transport) {
9
9
  return {
10
- current: (request, options) => transport.send(CurrentOperation, request, options),
10
+ get: (request, options) => transport.send(GetOperation, request, options),
11
11
  };
12
12
  }
13
- const CurrentOperation = {
13
+ const GetOperation = {
14
14
  method: "GET",
15
15
  route: "/v1/raiz/reports",
16
16
  query: { agentId: "agentId", campaignId: "campaignId", channelType: "channelType", definitionId: "definitionId", from: "from", name: "name", to: "to" },
@@ -1,5 +1,5 @@
1
1
  export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, CurrentRequest, CurrentResponse, } from "./client.js";
4
+ export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
5
5
  export type { RaizReport } from "./models.js";