@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,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/somos/contracts",
15
- query: { eps: "eps", regimen: "regimen", refresh: "refresh", 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 { SomosContract, SomosContractPage, SomosContractPageResponse, SomosListContractsBadGatewayError, SomosListContractsBadGatewayFailure, SomosListContractsConflictError, SomosListContractsConflictFailure, SomosListContractsNotFoundError, SomosListContractsNotFoundFailure, SomosListContractsServiceUnavailableError, SomosListContractsServiceUnavailableFailure, } 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,96 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
3
- export interface SomosContract {
4
- /**
5
- * The contract, as somos.services.list and somos.availability.lookup take it.
6
- */
7
- code: string;
8
- /**
9
- * The only specialties this contract schedules, when the clinic splits a
10
- * payer into several contracts: another specialty is in a sibling contract of
11
- * the same payer.
12
- */
13
- covers?: string[];
14
- /**
15
- * The contract's name: the payer or plan, to say to the person.
16
- */
17
- name: string;
18
- }
19
- export interface SomosContractPage {
20
- /**
21
- * Items admitted by this resource contract within the verified organization.
22
- */
23
- data: SomosContract[];
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
- }
33
- /**
34
- * A successful answer.
35
- */
36
- export interface SomosContractPageResponse {
37
- data: SomosContractPage;
38
- error: null;
39
- /**
40
- * What every answer carries besides its data or error.
41
- */
42
- metadata: ResponseMetadata;
43
- success: true;
44
- }
45
- /**
46
- * A failed answer.
47
- */
48
- export interface SomosListContractsBadGatewayError {
49
- data: null;
50
- error: SomosListContractsBadGatewayFailure;
51
- /**
52
- * What every answer carries besides its data or error.
53
- */
54
- metadata: ResponseMetadata;
55
- success: false;
56
- }
57
- export type SomosListContractsBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
58
- /**
59
- * A failed answer.
60
- */
61
- export interface SomosListContractsConflictError {
62
- data: null;
63
- error: SomosListContractsConflictFailure;
64
- /**
65
- * What every answer carries besides its data or error.
66
- */
67
- metadata: ResponseMetadata;
68
- success: false;
69
- }
70
- export type SomosListContractsConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
71
- /**
72
- * A failed answer.
73
- */
74
- export interface SomosListContractsNotFoundError {
75
- data: null;
76
- error: SomosListContractsNotFoundFailure;
77
- /**
78
- * What every answer carries besides its data or error.
79
- */
80
- metadata: ResponseMetadata;
81
- success: false;
82
- }
83
- export type SomosListContractsNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
84
- /**
85
- * A failed answer.
86
- */
87
- export interface SomosListContractsServiceUnavailableError {
88
- data: null;
89
- error: SomosListContractsServiceUnavailableFailure;
90
- /**
91
- * What every answer carries besides its data or error.
92
- */
93
- metadata: ResponseMetadata;
94
- success: false;
95
- }
96
- export type SomosListContractsServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -1,67 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { SomosTherapyGroupPageResponse } 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 therapy groups
12
- *
13
- * The current therapy groups of a specialty, each with how it matched the
14
- * name the person said: exact is their group; suggested and all are options
15
- * the person recognizes theirs among, never one an Agent picks. The age
16
- * validates a group and never chooses it. Never invent a group or an age
17
- * range. A refusal is TOOL_REFUSED: data.reason says why, data.guidance what
18
- * to do next and data.details what it offers instead; it is never an outage.
19
- * Somos Salud's tool pack sets this tool's rules, parameters and accepted
20
- * values (somos.tools.list answers them), and every call is checked against
21
- * 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
- * Fonoaudiología/fono o terapia ocupacional/to; el servidor normaliza el
30
- * nombre clínico al código interno.
31
- */
32
- specialty: string;
33
- /**
34
- * Nombre del grupo tal como lo dijo la persona; el servidor lo empareja con
35
- * los grupos vigentes. Usa solo un nombre de grupo realmente asignado.
36
- * Lenguaje, terapia o grupo son términos genéricos y devuelven
37
- * GROUP_ASSIGNMENT_REQUIRED, sin catálogo. Una aproximación reconocible
38
- * devuelve hasta tres sugerencias para confirmar; un texto sin coincidencias
39
- * requiere aclarar la asignación.
40
- */
41
- name: string;
42
- /**
43
- * Opaque cursor returned by pageInfo; omit it to request the first page.
44
- */
45
- cursor?: string;
46
- /**
47
- * Direction to traverse the stable keyset ordering from the supplied cursor.
48
- */
49
- direction?: "forward" | "backward";
50
- /**
51
- * Maximum items returned in one page. Defaults to 25; larger reads require
52
- * another cursor.
53
- */
54
- limit?: number;
55
- /**
56
- * The Visoft connection to run on, as Account lists it (con_…). Optional when
57
- * the organization has one; required when it has several. Another
58
- * organization's connection is CONNECTION_NOT_FOUND.
59
- */
60
- connectionId?: string;
61
- /**
62
- * The channel the conversation happens on: voice, whatsapp or web (the
63
- * default).
64
- */
65
- channel?: "voice" | "web" | "whatsapp";
66
- }
67
- export type ListResponse = SomosTherapyGroupPageResponse;
@@ -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/somos/groups",
15
- query: { specialty: "specialty", name: "name", 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 { SomosListGroupsBadGatewayError, SomosListGroupsBadGatewayFailure, SomosListGroupsConflictError, SomosListGroupsConflictFailure, SomosListGroupsNotFoundError, SomosListGroupsNotFoundFailure, SomosListGroupsServiceUnavailableError, SomosListGroupsServiceUnavailableFailure, SomosListGroupsUnprocessableContentError, SomosListGroupsUnprocessableContentFailure, SomosTherapyGroup, SomosTherapyGroupPage, SomosTherapyGroupPageResponse, } 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,117 +0,0 @@
1
- import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, CredentialsRejectedFailure, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, ResponseMetadata, ToolRefusedFailure, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface SomosListGroupsBadGatewayError {
7
- data: null;
8
- error: SomosListGroupsBadGatewayFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type SomosListGroupsBadGatewayFailure = OutcomeUnknownFailure | SomosProviderRequestRefusedFailure | ProviderUnavailableFailure;
16
- /**
17
- * A failed answer.
18
- */
19
- export interface SomosListGroupsConflictError {
20
- data: null;
21
- error: SomosListGroupsConflictFailure;
22
- /**
23
- * What every answer carries besides its data or error.
24
- */
25
- metadata: ResponseMetadata;
26
- success: false;
27
- }
28
- export type SomosListGroupsConflictFailure = ConnectionNotConfiguredFailure | SomosClinicNotServedFailure;
29
- /**
30
- * A failed answer.
31
- */
32
- export interface SomosListGroupsNotFoundError {
33
- data: null;
34
- error: SomosListGroupsNotFoundFailure;
35
- /**
36
- * What every answer carries besides its data or error.
37
- */
38
- metadata: ResponseMetadata;
39
- success: false;
40
- }
41
- export type SomosListGroupsNotFoundFailure = ConnectionNotFoundFailure | SomosToolNotAvailableFailure;
42
- /**
43
- * A failed answer.
44
- */
45
- export interface SomosListGroupsServiceUnavailableError {
46
- data: null;
47
- error: SomosListGroupsServiceUnavailableFailure;
48
- /**
49
- * What every answer carries besides its data or error.
50
- */
51
- metadata: ResponseMetadata;
52
- success: false;
53
- }
54
- export type SomosListGroupsServiceUnavailableFailure = UpstreamUnavailableFailure | SomosSomosNotConfiguredFailure;
55
- /**
56
- * A failed answer.
57
- */
58
- export interface SomosListGroupsUnprocessableContentError {
59
- data: null;
60
- error: SomosListGroupsUnprocessableContentFailure;
61
- /**
62
- * What every answer carries besides its data or error.
63
- */
64
- metadata: ResponseMetadata;
65
- success: false;
66
- }
67
- export type SomosListGroupsUnprocessableContentFailure = CredentialsRejectedFailure | ToolRefusedFailure;
68
- export interface SomosTherapyGroup {
69
- /**
70
- * The ages the group admits: it validates a choice, never makes one.
71
- */
72
- ageRange: string;
73
- /**
74
- * The group, as somos.availability.lookup takes it.
75
- */
76
- id: string;
77
- /**
78
- * The group's name, to read to the person.
79
- */
80
- label: string;
81
- /**
82
- * exact: the group the person named. suggested: the closest to the name, and
83
- * all: every group, when nothing matched; the person recognizes theirs, an
84
- * Agent never picks one.
85
- */
86
- match: "exact" | "suggested" | "all";
87
- /**
88
- * When the group meets.
89
- */
90
- schedule: string;
91
- }
92
- export interface SomosTherapyGroupPage {
93
- /**
94
- * Items admitted by this resource contract within the verified organization.
95
- */
96
- data: SomosTherapyGroup[];
97
- /**
98
- * Discriminator for a resource list response.
99
- */
100
- object: "list";
101
- /**
102
- * Opaque navigation cursors for this page’s stable keyset order.
103
- */
104
- pageInfo: PageInfo;
105
- }
106
- /**
107
- * A successful answer.
108
- */
109
- export interface SomosTherapyGroupPageResponse {
110
- data: SomosTherapyGroupPage;
111
- error: null;
112
- /**
113
- * What every answer carries besides its data or error.
114
- */
115
- metadata: ResponseMetadata;
116
- success: true;
117
- }
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -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, } from "./client.js";
5
- export type { SomosClinicNotServedFailure, SomosProviderRequestRefusedFailure, SomosSomosNotConfiguredFailure, SomosToolNotAvailableFailure, } 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,88 +0,0 @@
1
- import type { Empty } from "../models.js";
2
- /**
3
- * The connection signs in to another clinic's SIIPS: this backend serves Somos
4
- * Salud's alone.
5
- */
6
- export interface SomosClinicNotServedFailure {
7
- /**
8
- * The failure code, stable across releases.
9
- */
10
- code: "CLINIC_NOT_SERVED";
11
- /**
12
- * No fields.
13
- */
14
- data: Empty;
15
- /**
16
- * What went wrong, for people; it never contains input values.
17
- */
18
- message: string;
19
- /**
20
- * Whether repeating the same request may succeed.
21
- */
22
- retryable: false;
23
- }
24
- /**
25
- * The connected service rejected the backend request before changing any
26
- * record. An administrator must review the integration.
27
- */
28
- export interface SomosProviderRequestRefusedFailure {
29
- /**
30
- * The failure code, stable across releases.
31
- */
32
- code: "PROVIDER_REQUEST_REFUSED";
33
- /**
34
- * No fields.
35
- */
36
- data: Empty;
37
- /**
38
- * What went wrong, for people; it never contains input values.
39
- */
40
- message: string;
41
- /**
42
- * Whether repeating the same request may succeed.
43
- */
44
- retryable: false;
45
- }
46
- /**
47
- * This backend is not configured to sign its references.
48
- */
49
- export interface SomosSomosNotConfiguredFailure {
50
- /**
51
- * The failure code, stable across releases.
52
- */
53
- code: "SOMOS_NOT_CONFIGURED";
54
- /**
55
- * No fields.
56
- */
57
- data: Empty;
58
- /**
59
- * What went wrong, for people; it never contains input values.
60
- */
61
- message: string;
62
- /**
63
- * Whether repeating the same request may succeed.
64
- */
65
- retryable: false;
66
- }
67
- /**
68
- * This tool is unavailable for the clinic; use only the tools somos.tools.list
69
- * answers.
70
- */
71
- export interface SomosToolNotAvailableFailure {
72
- /**
73
- * The failure code, stable across releases.
74
- */
75
- code: "TOOL_NOT_AVAILABLE";
76
- /**
77
- * No fields.
78
- */
79
- data: Empty;
80
- /**
81
- * What went wrong, for people; it never contains input values.
82
- */
83
- message: string;
84
- /**
85
- * Whether repeating the same request may succeed.
86
- */
87
- retryable: false;
88
- }
@@ -1,3 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export {};
@@ -1,51 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { ToolResultResponse } from "../../models.js";
3
- import type { SomosCorrectPatientBody, SomosCreatePatientBody, SomosLookupPatientBody } 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
- * Correct a patient's details
13
- *
14
- * Update only the patient fields the person explicitly corrected and
15
- * confirmed; omit unchanged fields. Never repeat an update whose outcome is
16
- * unknown. Somos Salud's tool pack sets this tool's rules, parameters and
17
- * accepted values (somos.tools.list answers them), and every call is checked
18
- * against them.
19
- */
20
- correct(request: CorrectRequest, options?: RequestOptions): Promise<CorrectResponse>;
21
- /**
22
- * Register a patient
23
- *
24
- * Register a patient only after a lookup confirmed it is not found and the
25
- * person explicitly confirmed the required details. Never repeat a
26
- * registration whose outcome is unknown. Somos Salud's tool pack sets this
27
- * tool's rules, parameters and accepted values (somos.tools.list answers
28
- * them), and every call is checked against them.
29
- */
30
- create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
31
- /**
32
- * Look up a patient
33
- *
34
- * The patient's profile, recent and upcoming appointments (each upcoming one
35
- * with its cancellation reference), by exact document number, after the
36
- * clinic's identity and consent checks. found:false is an expected answer:
37
- * confirm the document and offer to register the patient. Reuse what the
38
- * patient already confirmed and avoid unrelated patient data. Somos Salud's
39
- * tool pack sets this tool's rules, parameters and accepted values
40
- * (somos.tools.list answers them), and every call is checked against them.
41
- */
42
- lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
43
- }
44
- export declare function createClient(options: ClientOptions): Client;
45
- export declare function bind(transport: Transport): Client;
46
- export type CorrectRequest = SomosCorrectPatientBody;
47
- export type CorrectResponse = ToolResultResponse;
48
- export type CreateRequest = SomosCreatePatientBody;
49
- export type CreateResponse = ToolResultResponse;
50
- export type LookupRequest = SomosLookupPatientBody;
51
- export type LookupResponse = ToolResultResponse;
@@ -1,34 +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
- correct: (request, options) => transport.send(CorrectOperation, request, options),
10
- create: (request, options) => transport.send(CreateOperation, request, options),
11
- lookup: (request, options) => transport.send(LookupOperation, request, options),
12
- };
13
- }
14
- const CorrectOperation = {
15
- method: "POST",
16
- route: "/v1/somos/patients/correct",
17
- body: "flat",
18
- response: null,
19
- 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 },
20
- };
21
- const CreateOperation = {
22
- method: "POST",
23
- route: "/v1/somos/patients",
24
- body: "flat",
25
- response: null,
26
- 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 },
27
- };
28
- const LookupOperation = {
29
- method: "POST",
30
- route: "/v1/somos/patients/lookup",
31
- body: "flat",
32
- response: null,
33
- 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 },
34
- };
@@ -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, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { SomosCorrectPatientBadGatewayError, SomosCorrectPatientBadGatewayFailure, SomosCorrectPatientBody, SomosCorrectPatientConflictError, SomosCorrectPatientConflictFailure, SomosCorrectPatientNotFoundError, SomosCorrectPatientNotFoundFailure, SomosCorrectPatientServiceUnavailableError, SomosCorrectPatientServiceUnavailableFailure, SomosCreatePatientBadGatewayError, SomosCreatePatientBadGatewayFailure, SomosCreatePatientBody, SomosCreatePatientConflictError, SomosCreatePatientConflictFailure, SomosCreatePatientNotFoundError, SomosCreatePatientNotFoundFailure, SomosCreatePatientServiceUnavailableError, SomosCreatePatientServiceUnavailableFailure, SomosLookupPatientBadGatewayError, SomosLookupPatientBadGatewayFailure, SomosLookupPatientBody, SomosLookupPatientConflictError, SomosLookupPatientConflictFailure, SomosLookupPatientNotFoundError, SomosLookupPatientNotFoundFailure, SomosLookupPatientServiceUnavailableError, SomosLookupPatientServiceUnavailableFailure, } 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";