@arbol-ai/sdk 2.19.0 → 3.0.1

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 (233) 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/agents/client.js +3 -4
  56. package/dist/raiz/agents/models.d.ts +1 -0
  57. package/dist/raiz/bulletins/client.d.ts +4 -1
  58. package/dist/raiz/bulletins/client.js +5 -6
  59. package/dist/raiz/campaigns/client.d.ts +6 -5
  60. package/dist/raiz/campaigns/client.js +4 -4
  61. package/dist/raiz/channels/client.d.ts +19 -5
  62. package/dist/raiz/channels/client.js +9 -9
  63. package/dist/raiz/client.d.ts +0 -4
  64. package/dist/raiz/client.js +0 -10
  65. package/dist/raiz/contacts/client.js +4 -4
  66. package/dist/raiz/conversations/client.d.ts +7 -4
  67. package/dist/raiz/conversations/client.js +6 -6
  68. package/dist/raiz/definitions/client.d.ts +4 -4
  69. package/dist/raiz/definitions/client.js +3 -4
  70. package/dist/raiz/evalCases/client.d.ts +13 -12
  71. package/dist/raiz/evalCases/client.js +2 -2
  72. package/dist/raiz/evalRuns/client.d.ts +7 -4
  73. package/dist/raiz/evalRuns/client.js +2 -3
  74. package/dist/raiz/evalRuns/models.d.ts +7 -1
  75. package/dist/raiz/facts/client.js +2 -2
  76. package/dist/raiz/knowledge/client.d.ts +17 -11
  77. package/dist/raiz/knowledge/client.js +4 -4
  78. package/dist/raiz/models.d.ts +0 -42
  79. package/dist/raiz/organization/client.d.ts +38 -42
  80. package/dist/raiz/organization/client.js +11 -12
  81. package/dist/raiz/organization/index.d.ts +1 -1
  82. package/dist/raiz/organization/models.d.ts +0 -10
  83. package/dist/raiz/profiles/client.d.ts +4 -4
  84. package/dist/raiz/profiles/client.js +3 -4
  85. package/dist/raiz/reports/client.d.ts +3 -3
  86. package/dist/raiz/reports/client.js +2 -2
  87. package/dist/raiz/reports/index.d.ts +1 -1
  88. package/dist/raiz/suppressions/client.js +1 -1
  89. package/dist/raiz/tasks/client.d.ts +6 -0
  90. package/dist/raiz/tasks/client.js +5 -6
  91. package/dist/raiz/templates/client.d.ts +2 -1
  92. package/dist/raiz/templates/client.js +1 -1
  93. package/dist/somos/appointments/client.d.ts +40 -0
  94. package/dist/somos/appointments/client.js +29 -0
  95. package/dist/somos/appointments/index.d.ts +5 -0
  96. package/dist/somos/appointments/index.js +4 -0
  97. package/dist/somos/appointments/models.d.ts +301 -0
  98. package/dist/somos/appointments/models.js +9 -0
  99. package/dist/somos/availability/client.d.ts +33 -0
  100. package/dist/somos/availability/client.js +19 -0
  101. package/dist/somos/availability/index.d.ts +5 -0
  102. package/dist/somos/availability/index.js +4 -0
  103. package/dist/somos/availability/models.d.ts +340 -0
  104. package/dist/somos/availability/models.js +15 -0
  105. package/dist/somos/client.d.ts +29 -0
  106. package/dist/somos/client.js +55 -0
  107. package/dist/somos/clinic/client.d.ts +33 -0
  108. package/dist/somos/clinic/client.js +18 -0
  109. package/dist/somos/clinic/index.d.ts +5 -0
  110. package/dist/somos/clinic/index.js +4 -0
  111. package/dist/somos/clinic/models.d.ts +89 -0
  112. package/dist/somos/clinic/models.js +3 -0
  113. package/dist/somos/contracts/client.d.ts +74 -0
  114. package/dist/somos/contracts/client.js +18 -0
  115. package/dist/somos/contracts/index.d.ts +5 -0
  116. package/dist/somos/contracts/index.js +4 -0
  117. package/dist/somos/contracts/models.d.ts +107 -0
  118. package/dist/somos/contracts/models.js +3 -0
  119. package/dist/somos/groups/client.d.ts +67 -0
  120. package/dist/{visoft → somos}/groups/client.js +2 -2
  121. package/dist/somos/groups/index.d.ts +5 -0
  122. package/dist/somos/groups/index.js +4 -0
  123. package/dist/somos/groups/models.d.ts +117 -0
  124. package/dist/somos/groups/models.js +3 -0
  125. package/dist/somos/index.d.ts +5 -0
  126. package/dist/somos/index.js +4 -0
  127. package/dist/somos/models.d.ts +227 -0
  128. package/dist/somos/models.js +3 -0
  129. package/dist/somos/patients/client.d.ts +51 -0
  130. package/dist/somos/patients/client.js +34 -0
  131. package/dist/somos/patients/index.d.ts +5 -0
  132. package/dist/somos/patients/index.js +4 -0
  133. package/dist/somos/patients/models.d.ts +327 -0
  134. package/dist/somos/patients/models.js +3 -0
  135. package/dist/somos/services/client.d.ts +117 -0
  136. package/dist/somos/services/client.js +26 -0
  137. package/dist/somos/services/index.d.ts +5 -0
  138. package/dist/somos/services/index.js +4 -0
  139. package/dist/somos/services/models.d.ts +272 -0
  140. package/dist/somos/services/models.js +3 -0
  141. package/dist/somos/specialtyRules/client.d.ts +44 -0
  142. package/dist/somos/specialtyRules/client.js +18 -0
  143. package/dist/somos/specialtyRules/index.d.ts +5 -0
  144. package/dist/somos/specialtyRules/index.js +4 -0
  145. package/dist/somos/specialtyRules/models.d.ts +54 -0
  146. package/dist/somos/specialtyRules/models.js +3 -0
  147. package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
  148. package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
  149. package/dist/somos/tools/index.d.ts +5 -0
  150. package/dist/somos/tools/index.js +4 -0
  151. package/dist/somos/tools/models.d.ts +101 -0
  152. package/dist/somos/tools/models.js +3 -0
  153. package/dist/visoft/appointments/client.d.ts +20 -194
  154. package/dist/visoft/appointments/client.js +5 -4
  155. package/dist/visoft/appointments/index.d.ts +1 -0
  156. package/dist/visoft/appointments/models.d.ts +391 -0
  157. package/dist/visoft/appointments/models.js +15 -0
  158. package/dist/visoft/availability/client.d.ts +10 -164
  159. package/dist/visoft/availability/client.js +9 -9
  160. package/dist/visoft/availability/index.d.ts +2 -2
  161. package/dist/visoft/availability/models.d.ts +154 -64
  162. package/dist/visoft/availability/models.js +10 -8
  163. package/dist/visoft/client.d.ts +6 -8
  164. package/dist/visoft/client.js +15 -20
  165. package/dist/visoft/clinic/client.d.ts +30 -0
  166. package/dist/visoft/clinic/client.js +18 -0
  167. package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
  168. package/dist/visoft/clinic/index.js +4 -0
  169. package/dist/visoft/clinic/models.d.ts +13 -0
  170. package/dist/visoft/clinic/models.js +3 -0
  171. package/dist/visoft/clinics/client.d.ts +2 -31
  172. package/dist/visoft/clinics/client.js +1 -8
  173. package/dist/visoft/clinics/index.d.ts +2 -2
  174. package/dist/visoft/clinics/models.d.ts +13 -24
  175. package/dist/visoft/connections/client.d.ts +17 -74
  176. package/dist/visoft/connections/client.js +10 -11
  177. package/dist/visoft/connections/index.d.ts +1 -1
  178. package/dist/visoft/connections/models.d.ts +93 -1
  179. package/dist/visoft/connections/models.js +6 -0
  180. package/dist/visoft/contracts/client.d.ts +14 -49
  181. package/dist/visoft/contracts/client.js +2 -2
  182. package/dist/visoft/contracts/index.d.ts +1 -1
  183. package/dist/visoft/contracts/models.d.ts +43 -7
  184. package/dist/visoft/index.d.ts +1 -1
  185. package/dist/visoft/models.d.ts +311 -139
  186. package/dist/visoft/patients/client.d.ts +24 -264
  187. package/dist/visoft/patients/client.js +7 -6
  188. package/dist/visoft/patients/index.d.ts +1 -0
  189. package/dist/visoft/patients/models.d.ts +737 -0
  190. package/dist/visoft/patients/models.js +15 -0
  191. package/dist/visoft/professionals/client.d.ts +56 -0
  192. package/dist/visoft/professionals/client.js +18 -0
  193. package/dist/visoft/professionals/index.d.ts +5 -0
  194. package/dist/visoft/professionals/index.js +4 -0
  195. package/dist/visoft/professionals/models.d.ts +54 -0
  196. package/dist/visoft/professionals/models.js +3 -0
  197. package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
  198. package/dist/visoft/serviceCatalogs/client.js +18 -0
  199. package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
  200. package/dist/visoft/serviceCatalogs/index.js +4 -0
  201. package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
  202. package/dist/visoft/serviceCatalogs/models.js +3 -0
  203. package/dist/visoft/services/client.d.ts +25 -61
  204. package/dist/visoft/services/client.js +2 -2
  205. package/dist/visoft/services/index.d.ts +1 -1
  206. package/dist/visoft/services/models.d.ts +52 -15
  207. package/package.json +9 -3
  208. package/dist/raiz/members/client.d.ts +0 -102
  209. package/dist/raiz/members/client.js +0 -35
  210. package/dist/raiz/members/index.d.ts +0 -5
  211. package/dist/raiz/members/models.d.ts +0 -48
  212. package/dist/raiz/members/models.js +0 -10
  213. package/dist/raiz/roles/index.d.ts +0 -5
  214. package/dist/raiz/roles/models.d.ts +0 -32
  215. package/dist/visoft/agencies/client.d.ts +0 -58
  216. package/dist/visoft/agencies/index.d.ts +0 -5
  217. package/dist/visoft/agencies/models.d.ts +0 -29
  218. package/dist/visoft/groups/client.d.ts +0 -69
  219. package/dist/visoft/groups/index.d.ts +0 -5
  220. package/dist/visoft/groups/models.d.ts +0 -39
  221. package/dist/visoft/specialtyRules/client.d.ts +0 -50
  222. package/dist/visoft/tools/index.d.ts +0 -5
  223. package/dist/visoft/tools/models.d.ts +0 -37
  224. /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
  225. /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
  226. /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
  227. /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
  228. /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
  229. /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
  230. /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
  231. /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
  232. /package/dist/{visoft/tools → orsovision}/models.js +0 -0
  233. /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
@@ -1,35 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, object, } from "../../_/index.js";
4
- import { RaizMemberCodec, RaizMemberPageCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- create: (request, options) => transport.send(CreateOperation, request, options),
11
- list: (request, options) => transport.send(ListOperation, request, options),
12
- update: (request, options) => transport.send(UpdateOperation, request, options),
13
- };
14
- }
15
- const CreateOperation = {
16
- method: "POST",
17
- route: "/v1/raiz/members/create",
18
- body: "flat",
19
- response: object([["data", null, () => RaizMemberCodec]]),
20
- 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 },
21
- };
22
- const ListOperation = {
23
- method: "GET",
24
- route: "/v1/raiz/members",
25
- query: { cursor: "cursor", direction: "direction", limit: "limit", status: "status" },
26
- response: object([["data", null, () => RaizMemberPageCodec]]),
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 },
28
- };
29
- const UpdateOperation = {
30
- method: "PATCH",
31
- route: "/v1/raiz/members/update",
32
- body: "flat",
33
- response: object([["data", null, () => RaizMemberCodec]]),
34
- 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
- };
@@ -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, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
5
- export type { RaizMember, RaizMemberPage, } from "./models.js";
@@ -1,48 +0,0 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface RaizMember {
3
- /**
4
- * Whether you may change or remove this member: never yourself, an owner or
5
- * Arbol staff, nor someone whose roles grant permissions you do not hold.
6
- */
7
- editable: boolean;
8
- email: string | null;
9
- expiresAt: Temporal.Instant | null;
10
- /**
11
- * A member's id, or a pending invitation's id (`uinv_…`). Opaque: pass it
12
- * back as given.
13
- */
14
- id: string;
15
- invitedAt: Temporal.Instant | null;
16
- name: string | null;
17
- picture: string | null;
18
- /**
19
- * The member's roles granting access to Raíz.
20
- */
21
- roles: string[];
22
- /**
23
- * Whether this member is you (the person whose token made the request). Your
24
- * own access is changed by someone else.
25
- */
26
- self: boolean;
27
- /**
28
- * `active`: a member with a role granting Raíz access. `invited`: an
29
- * invitation not yet accepted.
30
- */
31
- status: "active" | "invited";
32
- }
33
- export interface RaizMemberPage {
34
- /**
35
- * Items admitted by this resource contract within the verified organization.
36
- */
37
- data: RaizMember[];
38
- /**
39
- * Discriminator for a resource list response.
40
- */
41
- object: "list";
42
- /**
43
- * Opaque navigation cursors for this page’s stable keyset order.
44
- */
45
- pageInfo: PageInfo;
46
- }
47
- export declare const RaizMemberCodec: import("../../_/codec.js").Codec;
48
- export declare const RaizMemberPageCodec: import("../../_/codec.js").Codec;
@@ -1,10 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, instant, object } from "../../_/index.js";
4
- export const RaizMemberCodec = object([
5
- ["expiresAt", null, instant],
6
- ["invitedAt", null, instant],
7
- ]);
8
- export const RaizMemberPageCodec = object([
9
- ["data", null, array(() => RaizMemberCodec)],
10
- ]);
@@ -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 { RaizRole, RaizRolePage, } from "./models.js";
@@ -1,32 +0,0 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface RaizRole {
3
- /**
4
- * Whether you may give or take this role: false for the owner and Arbol staff
5
- * roles, which Arbol manages, and for a role granting permissions you do not
6
- * hold.
7
- */
8
- assignable: boolean;
9
- description: string | null;
10
- /**
11
- * A Raíz role or a protected existing Arbol role granting access to this API.
12
- */
13
- name: string;
14
- /**
15
- * The `raiz:<resource>:read|write` scopes the role grants.
16
- */
17
- permissions: string[];
18
- }
19
- export interface RaizRolePage {
20
- /**
21
- * Items admitted by this resource contract within the verified organization.
22
- */
23
- data: RaizRole[];
24
- /**
25
- * Discriminator for a resource list response.
26
- */
27
- object: "list";
28
- /**
29
- * Opaque navigation cursors for this page’s stable keyset order.
30
- */
31
- pageInfo: PageInfo;
32
- }
@@ -1,58 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
3
- import type { VisoftAgencyPage } 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
- * List the clinic's locations
13
- *
14
- * The clinic's locations, when it schedules by location, in ascending code
15
- * order; default marks the one a call that names no location runs at. Pass
16
- * the returned codes exactly in later calls: codes, contracts and agendas are
17
- * not portable between locations. A refusal is TOOL_REFUSED: data.reason says
18
- * why, data.guidance what to do next and data.details what it offers instead;
19
- * it is never an outage. The connection's clinic sets this tool's rules,
20
- * parameters and accepted values: visoft.tools.list answers them for the
21
- * connection, and every call is checked against them.
22
- */
23
- list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
24
- }
25
- export declare function createClient(options: ClientOptions): Client;
26
- export declare function bind(transport: Transport): Client;
27
- export interface ListRequest {
28
- /**
29
- * Opaque cursor returned by pageInfo; omit it to request the first page.
30
- */
31
- cursor?: string;
32
- /**
33
- * Direction to traverse the stable keyset ordering from the supplied cursor.
34
- */
35
- direction?: "forward" | "backward";
36
- /**
37
- * Maximum items returned in one page. Defaults to 25; larger reads require
38
- * another cursor.
39
- */
40
- limit?: number;
41
- /**
42
- * The connection to run on. Optional when the organization has one Visoft
43
- * connection; required when it has several. Another organization's connection
44
- * is NOT_FOUND.
45
- */
46
- connectionId?: string;
47
- /**
48
- * The channel the conversation happens on: voice, whatsapp or web (the
49
- * default).
50
- */
51
- channel?: "voice" | "web" | "whatsapp";
52
- }
53
- export interface ListResponse {
54
- data: VisoftAgencyPage;
55
- error: null;
56
- metadata: ResponseMetadata;
57
- success: true;
58
- }
@@ -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 { VisoftAgency, VisoftAgencyPage, } from "./models.js";
@@ -1,29 +0,0 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface VisoftAgency {
3
- /**
4
- * The location, as every later call names it: pass it exactly.
5
- */
6
- code: string;
7
- /**
8
- * Whether a call that names no location runs at this one.
9
- */
10
- default: boolean;
11
- /**
12
- * The location's name, to say to the person.
13
- */
14
- label: string;
15
- }
16
- export interface VisoftAgencyPage {
17
- /**
18
- * Items admitted by this resource contract within the verified organization.
19
- */
20
- data: VisoftAgency[];
21
- /**
22
- * Discriminator for a resource list response.
23
- */
24
- object: "list";
25
- /**
26
- * Opaque navigation cursors for this page’s stable keyset order.
27
- */
28
- pageInfo: PageInfo;
29
- }
@@ -1,69 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
3
- import type { VisoftTherapyGroupPage } 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
- * List therapy groups
13
- *
14
- * The current therapy groups of a specialty, when the clinic runs them, each
15
- * with how it matched the name the person said: exact is their group;
16
- * suggested and all are options the person recognizes theirs among, never one
17
- * an Agent picks. The age validates a group and never chooses it. Never
18
- * invent a group or an age range. A refusal is TOOL_REFUSED: data.reason says
19
- * why, data.guidance what to do next and data.details what it offers instead;
20
- * it is never an outage. The connection's clinic sets this tool's rules,
21
- * parameters and accepted values: visoft.tools.list answers them for the
22
- * connection, and every call is checked against them.
23
- */
24
- list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
- }
26
- export declare function createClient(options: ClientOptions): Client;
27
- export declare function bind(transport: Transport): Client;
28
- export interface ListRequest {
29
- /**
30
- * As the connection's clinic defines it: visoft.tools.list answers its
31
- * meaning, accepted values and whether it is required.
32
- */
33
- specialty: string;
34
- /**
35
- * As the connection's clinic defines it: visoft.tools.list answers its
36
- * meaning, accepted values and whether it is required.
37
- */
38
- name: string;
39
- /**
40
- * Opaque cursor returned by pageInfo; omit it to request the first page.
41
- */
42
- cursor?: string;
43
- /**
44
- * Direction to traverse the stable keyset ordering from the supplied cursor.
45
- */
46
- direction?: "forward" | "backward";
47
- /**
48
- * Maximum items returned in one page. Defaults to 25; larger reads require
49
- * another cursor.
50
- */
51
- limit?: number;
52
- /**
53
- * The connection to run on. Optional when the organization has one Visoft
54
- * connection; required when it has several. Another organization's connection
55
- * is NOT_FOUND.
56
- */
57
- connectionId?: string;
58
- /**
59
- * The channel the conversation happens on: voice, whatsapp or web (the
60
- * default).
61
- */
62
- channel?: "voice" | "web" | "whatsapp";
63
- }
64
- export interface ListResponse {
65
- data: VisoftTherapyGroupPage;
66
- error: null;
67
- metadata: ResponseMetadata;
68
- success: true;
69
- }
@@ -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 { VisoftTherapyGroup, VisoftTherapyGroupPage, } from "./models.js";
@@ -1,39 +0,0 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface VisoftTherapyGroup {
3
- /**
4
- * The ages the group admits: it validates a choice, never makes one.
5
- */
6
- ageRange: string;
7
- /**
8
- * The group, as visoft.availability.list takes it.
9
- */
10
- id: string;
11
- /**
12
- * The group's name, to read to the person.
13
- */
14
- label: string;
15
- /**
16
- * exact: the group the person named. suggested: the closest to the name, and
17
- * all: every group, when nothing matched; the person recognizes theirs, an
18
- * Agent never picks one.
19
- */
20
- match: "exact" | "suggested" | "all";
21
- /**
22
- * When the group meets.
23
- */
24
- schedule: string;
25
- }
26
- export interface VisoftTherapyGroupPage {
27
- /**
28
- * Items admitted by this resource contract within the verified organization.
29
- */
30
- data: VisoftTherapyGroup[];
31
- /**
32
- * Discriminator for a resource list response.
33
- */
34
- object: "list";
35
- /**
36
- * Opaque navigation cursors for this page’s stable keyset order.
37
- */
38
- pageInfo: PageInfo;
39
- }
@@ -1,50 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ResponseMetadata } from "../../models.js";
3
- import type { VisoftToolResult } 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
- * Get a specialty's rules
13
- *
14
- * A specialty's prerequisites and scheduling rules, when the clinic publishes
15
- * them. The connection's clinic sets this tool's rules, parameters and
16
- * accepted values: visoft.tools.list answers them for the connection, and
17
- * every call is checked against them.
18
- */
19
- get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
20
- }
21
- export declare function createClient(options: ClientOptions): Client;
22
- export declare function bind(transport: Transport): Client;
23
- export interface GetRequest {
24
- /**
25
- * As the connection's clinic defines it: visoft.tools.list answers its
26
- * meaning, accepted values and whether it is required.
27
- */
28
- name: string;
29
- /**
30
- * The connection to run on. Optional when the organization has one Visoft
31
- * connection; required when it has several. Another organization's connection
32
- * is NOT_FOUND.
33
- */
34
- connectionId?: string;
35
- /**
36
- * The channel the conversation happens on: voice, whatsapp or web (the
37
- * default).
38
- */
39
- channel?: "voice" | "web" | "whatsapp";
40
- }
41
- export interface GetResponse {
42
- /**
43
- * The tool's clinical answer. ok:false is a conversational refusal the Agent
44
- * reads (error, errorCode, ai_hint), not a failure.
45
- */
46
- data: VisoftToolResult;
47
- error: null;
48
- metadata: ResponseMetadata;
49
- success: true;
50
- }
@@ -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 { VisoftClinicTool, VisoftClinicToolPage, } from "./models.js";
@@ -1,37 +0,0 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface VisoftClinicTool {
3
- /**
4
- * The clinic's instructions for this tool.
5
- */
6
- description: string;
7
- displayName: string;
8
- /**
9
- * JSON Schema of the clinic's exact parameters for this tool.
10
- */
11
- inputSchema: {
12
- [key: string]: unknown;
13
- };
14
- mutates: boolean;
15
- /**
16
- * The tool's name, as the clinic's instructions name it.
17
- */
18
- name: string;
19
- /**
20
- * The operation that runs this tool, such as visoft.patients.lookup.
21
- */
22
- operation: string | null;
23
- }
24
- export interface VisoftClinicToolPage {
25
- /**
26
- * Items admitted by this resource contract within the verified organization.
27
- */
28
- data: VisoftClinicTool[];
29
- /**
30
- * Discriminator for a resource list response.
31
- */
32
- object: "list";
33
- /**
34
- * Opaque navigation cursors for this page’s stable keyset order.
35
- */
36
- pageInfo: PageInfo;
37
- }
File without changes