@arbol-ai/sdk 4.0.0 → 5.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 (230) hide show
  1. package/README.md +15 -3
  2. package/dist/agenda/appointments/client.d.ts +165 -52
  3. package/dist/agenda/appointments/client.js +19 -11
  4. package/dist/agenda/appointments/index.d.ts +1 -1
  5. package/dist/agenda/availability/client.d.ts +11 -72
  6. package/dist/agenda/availability/client.js +5 -14
  7. package/dist/agenda/availability/index.d.ts +1 -1
  8. package/dist/agenda/bookingLocations/client.d.ts +51 -0
  9. package/dist/agenda/bookingLocations/client.js +19 -0
  10. package/dist/agenda/bookingLocations/index.d.ts +4 -0
  11. package/dist/agenda/bookingLocations/index.js +4 -0
  12. package/dist/agenda/bookingOfferings/client.d.ts +82 -0
  13. package/dist/agenda/bookingOfferings/client.js +18 -0
  14. package/dist/agenda/bookingOfferings/index.d.ts +5 -0
  15. package/dist/agenda/bookingOfferings/index.js +4 -0
  16. package/dist/agenda/bookingOfferings/models.d.ts +92 -0
  17. package/dist/agenda/bookingOfferings/models.js +3 -0
  18. package/dist/agenda/bookingRequirements/client.d.ts +118 -0
  19. package/dist/agenda/bookingRequirements/client.js +18 -0
  20. package/dist/agenda/bookingRequirements/index.d.ts +4 -0
  21. package/dist/agenda/bookingRequirements/index.js +4 -0
  22. package/dist/agenda/bookingSlots/client.d.ts +78 -0
  23. package/dist/agenda/bookingSlots/client.js +19 -0
  24. package/dist/agenda/bookingSlots/index.d.ts +4 -0
  25. package/dist/agenda/bookingSlots/index.js +4 -0
  26. package/dist/agenda/bookings/client.d.ts +44 -375
  27. package/dist/agenda/bookings/client.js +10 -52
  28. package/dist/agenda/bookings/index.d.ts +2 -2
  29. package/dist/agenda/bookings/models.d.ts +0 -92
  30. package/dist/agenda/client.d.ts +14 -0
  31. package/dist/agenda/client.js +35 -0
  32. package/dist/agenda/firstAvailability/client.d.ts +74 -0
  33. package/dist/agenda/firstAvailability/client.js +19 -0
  34. package/dist/agenda/firstAvailability/index.d.ts +5 -0
  35. package/dist/agenda/firstAvailability/index.js +4 -0
  36. package/dist/agenda/firstAvailability/models.d.ts +31 -0
  37. package/dist/agenda/firstAvailability/models.js +7 -0
  38. package/dist/agenda/index.d.ts +1 -1
  39. package/dist/agenda/models.d.ts +19 -94
  40. package/dist/agenda/models.js +0 -3
  41. package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
  42. package/dist/agenda/nearestBookingSlots/client.js +19 -0
  43. package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
  44. package/dist/agenda/nearestBookingSlots/index.js +4 -0
  45. package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
  46. package/dist/agenda/nearestBookingSlots/models.js +7 -0
  47. package/dist/agenda/offerings/client.d.ts +2 -2
  48. package/dist/agenda/offerings/client.js +1 -1
  49. package/dist/agenda/resourceSchedules/client.d.ts +75 -0
  50. package/dist/agenda/resourceSchedules/client.js +19 -0
  51. package/dist/agenda/resourceSchedules/index.d.ts +4 -0
  52. package/dist/agenda/resourceSchedules/index.js +4 -0
  53. package/dist/agenda/resources/client.d.ts +2 -2
  54. package/dist/agenda/resources/client.js +1 -1
  55. package/dist/agenda/scheduleRules/client.d.ts +125 -85
  56. package/dist/agenda/scheduleRules/client.js +17 -16
  57. package/dist/agenda/scheduleRules/index.d.ts +2 -1
  58. package/dist/agenda/scheduleRules/models.d.ts +33 -0
  59. package/dist/agenda/scheduleRules/models.js +6 -0
  60. package/dist/agenda/services/client.d.ts +2 -2
  61. package/dist/agenda/services/client.js +1 -1
  62. package/dist/agenda/waitlist/client.d.ts +40 -29
  63. package/dist/agenda/waitlist/client.js +4 -4
  64. package/dist/agenda/waitlist/index.d.ts +1 -1
  65. package/dist/agenda/waitlist/models.d.ts +17 -0
  66. package/dist/agenda/waitlist/models.js +4 -1
  67. package/dist/axxa/authorizations/client.d.ts +3 -35
  68. package/dist/axxa/authorizations/client.js +1 -1
  69. package/dist/axxa/authorizations/index.d.ts +1 -0
  70. package/dist/axxa/authorizations/models.d.ts +112 -0
  71. package/dist/axxa/authorizations/models.js +3 -0
  72. package/dist/axxa/connections/client.d.ts +19 -45
  73. package/dist/axxa/connections/client.js +10 -11
  74. package/dist/axxa/connections/index.d.ts +1 -0
  75. package/dist/axxa/connections/models.d.ts +269 -0
  76. package/dist/axxa/connections/models.js +3 -0
  77. package/dist/axxa/eligibility/client.d.ts +3 -25
  78. package/dist/axxa/eligibility/client.js +1 -1
  79. package/dist/axxa/eligibility/index.d.ts +1 -0
  80. package/dist/axxa/eligibility/models.d.ts +102 -0
  81. package/dist/axxa/eligibility/models.js +3 -0
  82. package/dist/axxa/index.d.ts +1 -1
  83. package/dist/axxa/models.d.ts +243 -168
  84. package/dist/axxa/provider/client.d.ts +5 -11
  85. package/dist/axxa/provider/client.js +1 -1
  86. package/dist/axxa/provider/index.d.ts +1 -0
  87. package/dist/axxa/provider/models.d.ts +87 -0
  88. package/dist/axxa/provider/models.js +3 -0
  89. package/dist/gmedic/agendaServices/client.d.ts +13 -9
  90. package/dist/gmedic/agendaServices/client.js +2 -2
  91. package/dist/gmedic/agendaServices/index.d.ts +1 -1
  92. package/dist/gmedic/agendaServices/models.d.ts +53 -1
  93. package/dist/gmedic/agendas/client.d.ts +16 -9
  94. package/dist/gmedic/agendas/client.js +2 -2
  95. package/dist/gmedic/agendas/index.d.ts +1 -1
  96. package/dist/gmedic/agendas/models.d.ts +53 -1
  97. package/dist/gmedic/appointments/client.d.ts +34 -241
  98. package/dist/gmedic/appointments/client.js +12 -10
  99. package/dist/gmedic/appointments/index.d.ts +1 -1
  100. package/dist/gmedic/appointments/models.d.ts +518 -1
  101. package/dist/gmedic/appointments/models.js +28 -2
  102. package/dist/gmedic/availability/client.d.ts +24 -10
  103. package/dist/gmedic/availability/client.js +4 -3
  104. package/dist/gmedic/availability/index.d.ts +1 -1
  105. package/dist/gmedic/availability/models.d.ts +57 -1
  106. package/dist/gmedic/availability/models.js +7 -1
  107. package/dist/gmedic/availableDays/client.d.ts +11 -8
  108. package/dist/gmedic/availableDays/client.js +1 -1
  109. package/dist/gmedic/availableDays/index.d.ts +1 -1
  110. package/dist/gmedic/availableDays/models.d.ts +53 -1
  111. package/dist/gmedic/branchOffices/client.d.ts +13 -9
  112. package/dist/gmedic/branchOffices/client.js +2 -2
  113. package/dist/gmedic/branchOffices/index.d.ts +1 -1
  114. package/dist/gmedic/branchOffices/models.d.ts +58 -1
  115. package/dist/gmedic/connections/client.d.ts +19 -42
  116. package/dist/gmedic/connections/client.js +10 -11
  117. package/dist/gmedic/connections/index.d.ts +1 -0
  118. package/dist/gmedic/connections/models.d.ts +162 -0
  119. package/dist/gmedic/connections/models.js +3 -0
  120. package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
  121. package/dist/gmedic/dictionaryEntries/client.js +2 -2
  122. package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
  123. package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
  124. package/dist/gmedic/healthPartners/client.d.ts +19 -9
  125. package/dist/gmedic/healthPartners/client.js +2 -2
  126. package/dist/gmedic/healthPartners/index.d.ts +1 -1
  127. package/dist/gmedic/healthPartners/models.d.ts +53 -1
  128. package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
  129. package/dist/gmedic/healthPromotionEntities/client.js +2 -2
  130. package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
  131. package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
  132. package/dist/gmedic/index.d.ts +1 -1
  133. package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
  134. package/dist/gmedic/laboralRiskManagers/client.js +2 -2
  135. package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
  136. package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
  137. package/dist/gmedic/models.d.ts +194 -133
  138. package/dist/gmedic/occupations/client.d.ts +19 -9
  139. package/dist/gmedic/occupations/client.js +2 -2
  140. package/dist/gmedic/occupations/index.d.ts +1 -1
  141. package/dist/gmedic/occupations/models.d.ts +53 -1
  142. package/dist/gmedic/patientNotes/client.d.ts +25 -55
  143. package/dist/gmedic/patientNotes/client.js +5 -5
  144. package/dist/gmedic/patientNotes/index.d.ts +1 -1
  145. package/dist/gmedic/patientNotes/models.d.ts +232 -1
  146. package/dist/gmedic/patients/client.d.ts +40 -359
  147. package/dist/gmedic/patients/client.js +13 -5
  148. package/dist/gmedic/patients/index.d.ts +2 -2
  149. package/dist/gmedic/patients/models.d.ts +795 -1
  150. package/dist/gmedic/services/client.d.ts +22 -16
  151. package/dist/gmedic/services/client.js +2 -2
  152. package/dist/gmedic/services/index.d.ts +1 -1
  153. package/dist/gmedic/services/models.d.ts +53 -3
  154. package/dist/gmedic/sessionPackages/client.d.ts +21 -58
  155. package/dist/gmedic/sessionPackages/client.js +5 -5
  156. package/dist/gmedic/sessionPackages/index.d.ts +1 -1
  157. package/dist/gmedic/sessionPackages/models.d.ts +183 -1
  158. package/dist/index.d.ts +1 -1
  159. package/dist/models.d.ts +61 -0
  160. package/dist/models.js +6 -0
  161. package/dist/nuevaEps/affiliations/client.js +1 -1
  162. package/dist/nuevaEps/affiliations/models.d.ts +3 -1
  163. package/dist/nuevaEps/connections/client.d.ts +9 -9
  164. package/dist/nuevaEps/connections/client.js +9 -9
  165. package/dist/nuevaEps/connections/index.d.ts +1 -1
  166. package/dist/nuevaEps/connections/models.d.ts +1 -47
  167. package/dist/nuevaEps/connections/models.js +1 -8
  168. package/dist/sura/affiliations/client.d.ts +3 -35
  169. package/dist/sura/affiliations/client.js +6 -6
  170. package/dist/sura/affiliations/index.d.ts +1 -0
  171. package/dist/sura/affiliations/models.d.ts +71 -0
  172. package/dist/sura/affiliations/models.js +8 -0
  173. package/dist/sura/appointments/client.d.ts +27 -327
  174. package/dist/sura/appointments/client.js +15 -21
  175. package/dist/sura/appointments/index.d.ts +2 -1
  176. package/dist/sura/appointments/models.d.ts +310 -0
  177. package/dist/sura/appointments/models.js +22 -0
  178. package/dist/sura/authorizations/client.d.ts +3 -43
  179. package/dist/sura/authorizations/client.js +6 -6
  180. package/dist/sura/authorizations/index.d.ts +1 -0
  181. package/dist/sura/authorizations/models.d.ts +79 -0
  182. package/dist/sura/authorizations/models.js +8 -0
  183. package/dist/sura/availability/client.d.ts +4 -68
  184. package/dist/sura/availability/client.js +9 -9
  185. package/dist/sura/availability/index.d.ts +2 -1
  186. package/dist/sura/availability/models.d.ts +103 -0
  187. package/dist/sura/availability/models.js +8 -0
  188. package/dist/sura/bookingOptions/client.d.ts +35 -0
  189. package/dist/sura/bookingOptions/client.js +19 -0
  190. package/dist/sura/bookingOptions/index.d.ts +5 -0
  191. package/dist/sura/bookingOptions/index.js +4 -0
  192. package/dist/sura/bookingOptions/models.d.ts +143 -0
  193. package/dist/sura/bookingOptions/models.js +8 -0
  194. package/dist/sura/client.d.ts +2 -0
  195. package/dist/sura/client.js +5 -0
  196. package/dist/sura/connections/client.d.ts +20 -98
  197. package/dist/sura/connections/client.js +10 -10
  198. package/dist/sura/connections/index.d.ts +1 -1
  199. package/dist/sura/connections/models.d.ts +102 -1
  200. package/dist/sura/connections/models.js +6 -0
  201. package/dist/sura/copays/client.d.ts +4 -40
  202. package/dist/sura/copays/client.js +9 -9
  203. package/dist/sura/copays/index.d.ts +2 -1
  204. package/dist/sura/copays/models.d.ts +75 -0
  205. package/dist/sura/copays/models.js +8 -0
  206. package/dist/sura/index.d.ts +1 -1
  207. package/dist/sura/models.d.ts +204 -148
  208. package/dist/sura/models.js +20 -1
  209. package/dist/sura/operations/client.d.ts +2 -7
  210. package/dist/sura/operations/client.js +4 -4
  211. package/dist/sura/operations/index.d.ts +1 -0
  212. package/dist/sura/operations/models.d.ts +43 -0
  213. package/dist/sura/operations/models.js +8 -0
  214. package/dist/sura/patients/client.d.ts +3 -40
  215. package/dist/sura/patients/client.js +6 -6
  216. package/dist/sura/patients/index.d.ts +1 -0
  217. package/dist/sura/patients/models.d.ts +76 -0
  218. package/dist/sura/patients/models.js +8 -0
  219. package/dist/sura/professionals/client.d.ts +7 -9
  220. package/dist/sura/professionals/client.js +3 -4
  221. package/dist/sura/professionals/index.d.ts +1 -1
  222. package/dist/sura/professionals/models.d.ts +40 -1
  223. package/dist/sura/services/client.d.ts +7 -8
  224. package/dist/sura/services/client.js +3 -4
  225. package/dist/sura/services/index.d.ts +1 -0
  226. package/dist/sura/services/models.d.ts +40 -0
  227. package/dist/sura/services/models.js +3 -0
  228. package/dist/visoft/index.d.ts +1 -1
  229. package/dist/visoft/models.d.ts +1 -16
  230. package/package.json +3 -3
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { GmedicResponseMetadata } from "../models.js";
3
- import type { GmedicAgentServicesText, GmedicServicesPage } from "./models.js";
2
+ import type { GmedicServicesPageResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -11,15 +10,20 @@ export interface Client {
11
10
  /**
12
11
  * List services
13
12
  *
14
- * For voice/AI agents set agentMode=true: concise Spanish text, up to 10
15
- * matches and a complete catalog cache of at most 60 seconds. Use q
13
+ * For voice/AI agents set agentMode=true: up to 10 matches, each with
14
+ * summary, a concise Spanish line with its exact id and code to read to the
15
+ * caller, from a complete catalog cache of at most 60 seconds. Use q
16
16
  * (name/code, accent-insensitive), active and kind filters; use a short
17
17
  * distinctive term and limit 5 for a caller question. Filtered searches
18
18
  * inspect all provider pages before returning matching entries. Incomplete
19
- * scans fail explicitly. Without filters, returns one catalog page: follow
20
- * pageInfo.nextCursor while hasNextPage is true before concluding an entry is
21
- * absent. A generic procedure or missing price does not establish the
22
- * requested service or tariff.
19
+ * scans fail explicitly. Without filters, returns one catalog page. In every
20
+ * mode, follow pageInfo.nextCursor while hasNextPage is true before
21
+ * concluding an entry is absent. An empty completed search means no matching
22
+ * catalog entry, not that the clinic cannot perform the procedure. A generic
23
+ * procedure or missing price does not establish the requested service or
24
+ * tariff, and an active entry does not confirm that the clinic offers it or
25
+ * its requirements, coverage or appointments: verify them with information
26
+ * from the clinic.
23
27
  */
24
28
  list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
29
  }
@@ -40,7 +44,7 @@ export interface ListRequest {
40
44
  */
41
45
  limit?: number;
42
46
  /**
43
- * Set true for voice/AI agents: compact Spanish text, at most 10 matches,
47
+ * Set true for voice/AI agents: at most 10 matches, each with summary, from a
44
48
  * complete catalog search and a tenant-isolated catalog cache of at most 60
45
49
  * seconds.
46
50
  */
@@ -52,7 +56,7 @@ export interface ListRequest {
52
56
  /**
53
57
  * Exact catalog id. Use q for a service name or code.
54
58
  */
55
- id?: string;
59
+ serviceId?: string;
56
60
  /**
57
61
  * Search name, code and description across the catalog, ignoring accents and
58
62
  * case. Use a distinctive word such as lavado. An empty completed search
@@ -68,11 +72,13 @@ export interface ListRequest {
68
72
  * Filter services or products. Use SERVICE for clinical service information.
69
73
  */
70
74
  kind?: "SERVICE" | "PRODUCT";
75
+ /**
76
+ * The connection id.
77
+ */
71
78
  connectionId?: string;
79
+ /**
80
+ * Deprecated: use `serviceId`. Answered until 2027-01-28.
81
+ */
82
+ id?: string;
72
83
  }
73
- export interface ListResponse {
74
- data: GmedicServicesPage | GmedicAgentServicesText;
75
- error: null;
76
- metadata: GmedicResponseMetadata;
77
- success: true;
78
- }
84
+ export type ListResponse = GmedicServicesPageResponse;
@@ -12,7 +12,7 @@ export function bind(transport) {
12
12
  const ListOperation = {
13
13
  method: "GET",
14
14
  route: "/v1/gmedic/services",
15
- query: { cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode", refresh: "refresh", id: "id", q: "q", active: "active", kind: "kind", connectionId: "connectionId" },
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", agentMode: "agentMode", refresh: "refresh", serviceId: "serviceId", q: "q", active: "active", kind: "kind", connectionId: "connectionId", id: "id" },
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
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { GmedicAgentServicesText, GmedicServicesPage, } from "./models.js";
5
+ export type { GmedicListServicesBadGatewayError, GmedicListServicesBadGatewayFailure, GmedicListServicesNotFoundError, GmedicListServicesNotFoundFailure, GmedicListServicesServiceUnavailableError, GmedicListServicesServiceUnavailableFailure, GmedicServicesPage, GmedicServicesPageResponse, } from "./models.js";
@@ -1,7 +1,44 @@
1
- import type { PageInfo } from "../../models.js";
2
- export interface GmedicAgentServicesText {
3
- text: string;
1
+ import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface GmedicListServicesBadGatewayError {
7
+ data: null;
8
+ error: GmedicListServicesBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type GmedicListServicesBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface GmedicListServicesNotFoundError {
20
+ data: null;
21
+ error: GmedicListServicesNotFoundFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
4
27
  }
28
+ export type GmedicListServicesNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface GmedicListServicesServiceUnavailableError {
33
+ data: null;
34
+ error: GmedicListServicesServiceUnavailableFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type GmedicListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
5
42
  export interface GmedicServicesPage {
6
43
  /**
7
44
  * Items admitted by this resource contract within the verified organization.
@@ -13,6 +50,7 @@ export interface GmedicServicesPage {
13
50
  id: string;
14
51
  key?: string | null;
15
52
  name?: string | null;
53
+ summary?: string;
16
54
  type?: {
17
55
  id: string;
18
56
  label?: string | null;
@@ -29,3 +67,15 @@ export interface GmedicServicesPage {
29
67
  */
30
68
  pageInfo: PageInfo;
31
69
  }
70
+ /**
71
+ * A successful answer.
72
+ */
73
+ export interface GmedicServicesPageResponse {
74
+ data: GmedicServicesPage;
75
+ error: null;
76
+ /**
77
+ * What every answer carries besides its data or error.
78
+ */
79
+ metadata: ResponseMetadata;
80
+ success: true;
81
+ }
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { GmedicResponseMetadata } from "../models.js";
3
- import type { GmedicSessionPackagesPage } from "./models.js";
2
+ import type { GmedicCreateSessionPackageBody, GmedicCreateSessionPackageResultResponse, GmedicSessionPackagesPageResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -25,55 +24,8 @@ export interface Client {
25
24
  }
26
25
  export declare function createClient(options: ClientOptions): Client;
27
26
  export declare function bind(transport: Transport): Client;
28
- export interface CreateRequest {
29
- connectionId?: string;
30
- data: {
31
- active?: boolean;
32
- authorizationNumber: string;
33
- billingServiceId?: string;
34
- defaultSessionsByAtention?: number;
35
- expirationDate: string;
36
- externalInvoice?: string;
37
- invoiceId?: string;
38
- issueDate: string;
39
- maxSessions: number;
40
- patientId?: string;
41
- };
42
- }
43
- export interface CreateResponse {
44
- data: {
45
- active?: boolean | null;
46
- availableSessions?: number | null;
47
- billingService?: string | null;
48
- billingServiceId?: string | null;
49
- creationDate?: string | null;
50
- currentSessions?: number | null;
51
- documentId?: string | null;
52
- expirationDate?: string | null;
53
- healthPartner?: string | null;
54
- id: string;
55
- invoice?: string | null;
56
- invoiceId?: string | null;
57
- issueDate?: string | null;
58
- key?: string | null;
59
- maxSessions?: number | null;
60
- modificationDate?: string | null;
61
- number?: string | null;
62
- patientDocumentNumber?: string | null;
63
- patientDocumentType?: {
64
- id: string;
65
- label?: string | null;
66
- name?: string | null;
67
- value?: string | null;
68
- } | null;
69
- patientFirstName?: string | null;
70
- patientId?: string | null;
71
- patientLastName?: string | null;
72
- };
73
- error: null;
74
- metadata: GmedicResponseMetadata;
75
- success: true;
76
- }
27
+ export type CreateRequest = GmedicCreateSessionPackageBody;
28
+ export type CreateResponse = GmedicCreateSessionPackageResultResponse;
77
29
  export interface ListRequest {
78
30
  /**
79
31
  * Opaque cursor returned by pageInfo; omit it to request the first page.
@@ -88,14 +40,25 @@ export interface ListRequest {
88
40
  * another cursor.
89
41
  */
90
42
  limit?: number;
43
+ /**
44
+ * The authorization.
45
+ */
91
46
  authorization?: string;
92
- id?: string;
47
+ /**
48
+ * The session package id.
49
+ */
50
+ sessionPackageId?: string;
51
+ /**
52
+ * The patient id.
53
+ */
93
54
  patientId?: string;
55
+ /**
56
+ * The connection id.
57
+ */
94
58
  connectionId?: string;
59
+ /**
60
+ * Deprecated: use `sessionPackageId`. Answered until 2027-01-28.
61
+ */
62
+ id?: string;
95
63
  }
96
- export interface ListResponse {
97
- data: GmedicSessionPackagesPage;
98
- error: null;
99
- metadata: GmedicResponseMetadata;
100
- success: true;
101
- }
64
+ export type ListResponse = GmedicSessionPackagesPageResponse;
@@ -12,15 +12,15 @@ export function bind(transport) {
12
12
  }
13
13
  const CreateOperation = {
14
14
  method: "POST",
15
- route: "/v1/gmedic/sessions",
15
+ route: "/v1/gmedic/session-packages",
16
16
  body: "flat",
17
17
  response: null,
18
- 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 },
18
+ 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 },
19
19
  };
20
20
  const ListOperation = {
21
21
  method: "GET",
22
- route: "/v1/gmedic/sessions",
23
- query: { cursor: "cursor", direction: "direction", limit: "limit", authorization: "authorization", id: "id", patientId: "patientId", connectionId: "connectionId" },
22
+ route: "/v1/gmedic/session-packages",
23
+ query: { cursor: "cursor", direction: "direction", limit: "limit", authorization: "authorization", sessionPackageId: "sessionPackageId", patientId: "patientId", connectionId: "connectionId", id: "id" },
24
24
  response: null,
25
- 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 },
25
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
26
26
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, CreateRequest, CreateResponse, ListRequest, ListResponse, } from "./client.js";
5
- export type { GmedicSessionPackagesPage } from "./models.js";
5
+ export type { GmedicCreateSessionPackageBadGatewayError, GmedicCreateSessionPackageBadGatewayFailure, GmedicCreateSessionPackageBody, GmedicCreateSessionPackageNotFoundError, GmedicCreateSessionPackageNotFoundFailure, GmedicCreateSessionPackageResult, GmedicCreateSessionPackageResultResponse, GmedicCreateSessionPackageServiceUnavailableError, GmedicCreateSessionPackageServiceUnavailableFailure, GmedicListSessionPackagesBadGatewayError, GmedicListSessionPackagesBadGatewayFailure, GmedicListSessionPackagesNotFoundError, GmedicListSessionPackagesNotFoundFailure, GmedicListSessionPackagesServiceUnavailableError, GmedicListSessionPackagesServiceUnavailableFailure, GmedicSessionPackageNotFoundFailure, GmedicSessionPackagesPage, GmedicSessionPackagesPageResponse, } from "./models.js";
@@ -1,4 +1,172 @@
1
- import type { PageInfo } from "../../models.js";
1
+ import type { Empty, OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface GmedicCreateSessionPackageBadGatewayError {
7
+ data: null;
8
+ error: GmedicCreateSessionPackageBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type GmedicCreateSessionPackageBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
16
+ export interface GmedicCreateSessionPackageBody {
17
+ connectionId?: string;
18
+ data: {
19
+ active?: boolean;
20
+ authorizationNumber: string;
21
+ billingServiceId?: string;
22
+ defaultSessionsByAtention?: number;
23
+ expirationDate: string;
24
+ externalInvoice?: string;
25
+ invoiceId?: string;
26
+ issueDate: string;
27
+ maxSessions: number;
28
+ patientId?: string;
29
+ };
30
+ }
31
+ /**
32
+ * A failed answer.
33
+ */
34
+ export interface GmedicCreateSessionPackageNotFoundError {
35
+ data: null;
36
+ error: GmedicCreateSessionPackageNotFoundFailure;
37
+ /**
38
+ * What every answer carries besides its data or error.
39
+ */
40
+ metadata: ResponseMetadata;
41
+ success: false;
42
+ }
43
+ export type GmedicCreateSessionPackageNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure;
44
+ export interface GmedicCreateSessionPackageResult {
45
+ active?: boolean | null;
46
+ availableSessions?: number | null;
47
+ billingService?: string | null;
48
+ billingServiceId?: string | null;
49
+ createdAt?: string | null;
50
+ /**
51
+ * Deprecated: use `createdAt`. Answered until 2027-01-28.
52
+ *
53
+ * @deprecated
54
+ */
55
+ creationDate?: string | null;
56
+ currentSessions?: number | null;
57
+ documentId?: string | null;
58
+ expirationDate?: string | null;
59
+ healthPartner?: string | null;
60
+ id: string;
61
+ invoice?: string | null;
62
+ invoiceId?: string | null;
63
+ issueDate?: string | null;
64
+ key?: string | null;
65
+ maxSessions?: number | null;
66
+ /**
67
+ * Deprecated: use `updatedAt`. Answered until 2027-01-28.
68
+ *
69
+ * @deprecated
70
+ */
71
+ modificationDate?: string | null;
72
+ number?: string | null;
73
+ patientDocumentNumber?: string | null;
74
+ patientDocumentType?: {
75
+ id: string;
76
+ label?: string | null;
77
+ name?: string | null;
78
+ value?: string | null;
79
+ } | null;
80
+ patientFirstName?: string | null;
81
+ patientId?: string | null;
82
+ patientLastName?: string | null;
83
+ updatedAt?: string | null;
84
+ }
85
+ /**
86
+ * A successful answer.
87
+ */
88
+ export interface GmedicCreateSessionPackageResultResponse {
89
+ data: GmedicCreateSessionPackageResult;
90
+ error: null;
91
+ /**
92
+ * What every answer carries besides its data or error.
93
+ */
94
+ metadata: ResponseMetadata;
95
+ success: true;
96
+ }
97
+ /**
98
+ * A failed answer.
99
+ */
100
+ export interface GmedicCreateSessionPackageServiceUnavailableError {
101
+ data: null;
102
+ error: GmedicCreateSessionPackageServiceUnavailableFailure;
103
+ /**
104
+ * What every answer carries besides its data or error.
105
+ */
106
+ metadata: ResponseMetadata;
107
+ success: false;
108
+ }
109
+ export type GmedicCreateSessionPackageServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
110
+ /**
111
+ * A failed answer.
112
+ */
113
+ export interface GmedicListSessionPackagesBadGatewayError {
114
+ data: null;
115
+ error: GmedicListSessionPackagesBadGatewayFailure;
116
+ /**
117
+ * What every answer carries besides its data or error.
118
+ */
119
+ metadata: ResponseMetadata;
120
+ success: false;
121
+ }
122
+ export type GmedicListSessionPackagesBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
123
+ /**
124
+ * A failed answer.
125
+ */
126
+ export interface GmedicListSessionPackagesNotFoundError {
127
+ data: null;
128
+ error: GmedicListSessionPackagesNotFoundFailure;
129
+ /**
130
+ * What every answer carries besides its data or error.
131
+ */
132
+ metadata: ResponseMetadata;
133
+ success: false;
134
+ }
135
+ export type GmedicListSessionPackagesNotFoundFailure = GmedicConnectionNotFoundFailure | GmedicRecordNotFoundFailure | GmedicSessionPackageNotFoundFailure;
136
+ /**
137
+ * A failed answer.
138
+ */
139
+ export interface GmedicListSessionPackagesServiceUnavailableError {
140
+ data: null;
141
+ error: GmedicListSessionPackagesServiceUnavailableFailure;
142
+ /**
143
+ * What every answer carries besides its data or error.
144
+ */
145
+ metadata: ResponseMetadata;
146
+ success: false;
147
+ }
148
+ export type GmedicListSessionPackagesServiceUnavailableFailure = UpstreamUnavailableFailure | GmedicCatalogSearchIncompleteFailure | GmedicProviderUnavailableFailure;
149
+ /**
150
+ * gMedic has no session package with this id.
151
+ */
152
+ export interface GmedicSessionPackageNotFoundFailure {
153
+ /**
154
+ * The failure code, stable across releases.
155
+ */
156
+ code: "SESSION_PACKAGE_NOT_FOUND";
157
+ /**
158
+ * No fields.
159
+ */
160
+ data: Empty;
161
+ /**
162
+ * What went wrong, for people; it never contains input values.
163
+ */
164
+ message: string;
165
+ /**
166
+ * Whether repeating the same request may succeed.
167
+ */
168
+ retryable: false;
169
+ }
2
170
  export interface GmedicSessionPackagesPage {
3
171
  /**
4
172
  * Items admitted by this resource contract within the verified organization.
@@ -8,6 +176,7 @@ export interface GmedicSessionPackagesPage {
8
176
  availableSessions?: number | null;
9
177
  billingService?: string | null;
10
178
  billingServiceId?: string | null;
179
+ createdAt?: string | null;
11
180
  creationDate?: string | null;
12
181
  currentSessions?: number | null;
13
182
  documentId?: string | null;
@@ -31,6 +200,7 @@ export interface GmedicSessionPackagesPage {
31
200
  patientFirstName?: string | null;
32
201
  patientId?: string | null;
33
202
  patientLastName?: string | null;
203
+ updatedAt?: string | null;
34
204
  }[];
35
205
  /**
36
206
  * Discriminator for a resource list response.
@@ -41,3 +211,15 @@ export interface GmedicSessionPackagesPage {
41
211
  */
42
212
  pageInfo: PageInfo;
43
213
  }
214
+ /**
215
+ * A successful answer.
216
+ */
217
+ export interface GmedicSessionPackagesPageResponse {
218
+ data: GmedicSessionPackagesPage;
219
+ error: null;
220
+ /**
221
+ * What every answer carries besides its data or error.
222
+ */
223
+ metadata: ResponseMetadata;
224
+ success: true;
225
+ }
package/dist/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export { ApiError } from "./_/index.js";
2
2
  export type { RequestOptions } from "./_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, } from "./client.js";
5
- export type { AvailabilityBookingInput, CancelAppointmentBadGatewayError, CancelAppointmentBadGatewayFailure, Connection, ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ConnectionPage, CreateAppointmentBadGatewayError, CreateAppointmentBadGatewayFailure, CredentialsRejectedError, CredentialsRejectedFailure, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, ListAvailabilityUnprocessableContentError, ListAvailabilityUnprocessableContentFailure, ListContractsBadGatewayError, ListContractsBadGatewayFailure, ListContractsUnprocessableContentError, ListContractsUnprocessableContentFailure, ListServicesBadGatewayError, ListServicesBadGatewayFailure, ListServicesUnprocessableContentError, ListServicesUnprocessableContentFailure, LookupPatientBadGatewayError, LookupPatientBadGatewayFailure, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, ToolRefusedFailure, ToolRefusedFailureData, ToolResult, ToolResultResponse, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, } from "./models.js";
5
+ export type { AvailabilityBookingInput, CancelAppointmentBadGatewayError, CancelAppointmentBadGatewayFailure, Connection, ConnectionNotConfiguredFailure, ConnectionNotFoundError, ConnectionNotFoundFailure, ConnectionPage, ConnectionPageResponse, ConnectionResponse, CreateAppointmentBadGatewayError, CreateAppointmentBadGatewayFailure, CredentialsRejectedError, CredentialsRejectedFailure, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, ListAvailabilityUnprocessableContentError, ListAvailabilityUnprocessableContentFailure, ListContractsBadGatewayError, ListContractsBadGatewayFailure, ListContractsUnprocessableContentError, ListContractsUnprocessableContentFailure, ListServicesBadGatewayError, ListServicesBadGatewayFailure, ListServicesUnprocessableContentError, ListServicesUnprocessableContentFailure, LookupPatientBadGatewayError, LookupPatientBadGatewayFailure, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, ProviderUnavailableFailure, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, ToolRefusedFailure, ToolRefusedFailureData, ToolResult, ToolResultResponse, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, VerifyConnectionResult, VerifyConnectionResultResponse, } from "./models.js";
package/dist/models.d.ts CHANGED
@@ -71,6 +71,21 @@ export interface ConnectionNotConfiguredFailure {
71
71
  */
72
72
  retryable: false;
73
73
  }
74
+ /**
75
+ * A failed answer.
76
+ */
77
+ export interface ConnectionNotFoundError {
78
+ data: null;
79
+ /**
80
+ * The organization has no such connection.
81
+ */
82
+ error: ConnectionNotFoundFailure;
83
+ /**
84
+ * What every answer carries besides its data or error.
85
+ */
86
+ metadata: ResponseMetadata;
87
+ success: false;
88
+ }
74
89
  /**
75
90
  * The organization has no such connection.
76
91
  */
@@ -106,6 +121,30 @@ export interface ConnectionPage {
106
121
  */
107
122
  pageInfo: PageInfo;
108
123
  }
124
+ /**
125
+ * A successful answer.
126
+ */
127
+ export interface ConnectionPageResponse {
128
+ data: ConnectionPage;
129
+ error: null;
130
+ /**
131
+ * What every answer carries besides its data or error.
132
+ */
133
+ metadata: ResponseMetadata;
134
+ success: true;
135
+ }
136
+ /**
137
+ * A successful answer.
138
+ */
139
+ export interface ConnectionResponse {
140
+ data: Connection;
141
+ error: null;
142
+ /**
143
+ * What every answer carries besides its data or error.
144
+ */
145
+ metadata: ResponseMetadata;
146
+ success: true;
147
+ }
109
148
  /**
110
149
  * A failed answer.
111
150
  */
@@ -759,6 +798,28 @@ export interface ValidationIssue {
759
798
  */
760
799
  path: string;
761
800
  }
801
+ export type VerifyConnectionResult = {
802
+ stateRef: string;
803
+ status: "active";
804
+ summary: string;
805
+ } | {
806
+ errorCode: string;
807
+ status: "rejected";
808
+ };
809
+ /**
810
+ * A successful answer.
811
+ */
812
+ export interface VerifyConnectionResultResponse {
813
+ data: VerifyConnectionResult;
814
+ error: null;
815
+ /**
816
+ * What every answer carries besides its data or error.
817
+ */
818
+ metadata: ResponseMetadata;
819
+ success: true;
820
+ }
762
821
  export declare const AvailabilityBookingInputCodec: import("./_/codec.js").Codec;
763
822
  export declare const ConnectionCodec: import("./_/codec.js").Codec;
764
823
  export declare const ConnectionPageCodec: import("./_/codec.js").Codec;
824
+ export declare const ConnectionPageResponseCodec: import("./_/codec.js").Codec;
825
+ export declare const ConnectionResponseCodec: import("./_/codec.js").Codec;
package/dist/models.js CHANGED
@@ -11,3 +11,9 @@ export const ConnectionCodec = object([
11
11
  export const ConnectionPageCodec = object([
12
12
  ["data", null, array(() => ConnectionCodec)],
13
13
  ]);
14
+ export const ConnectionPageResponseCodec = object([
15
+ ["data", null, () => ConnectionPageCodec],
16
+ ]);
17
+ export const ConnectionResponseCodec = object([
18
+ ["data", null, () => ConnectionCodec],
19
+ ]);
@@ -14,5 +14,5 @@ const LookupOperation = {
14
14
  route: "/v1/nueva-eps/affiliations/lookup",
15
15
  body: "flat",
16
16
  response: null,
17
- errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
18
18
  };
@@ -37,7 +37,7 @@ export interface NuevaEpsLookupAffiliationBody {
37
37
  * affiliation record. Agent text always retains affiliation and
38
38
  * primary-provider warnings.
39
39
  */
40
- fields?: ("documentType" | "documentNumber" | "affiliated" | "callerIsPrimaryProvider" | "state" | "kind" | "category" | "primaryProvider" | "messages" | "member" | "timings")[];
40
+ fields?: ("documentType" | "documentNumber" | "affiliated" | "callerIsPrimaryProvider" | "status" | "state" | "kind" | "category" | "primaryProvider" | "messages" | "member" | "timings")[];
41
41
  /**
42
42
  * Include measured operation durations; equivalent to requesting timings in
43
43
  * fields. Durations overlap as documented and are observations, not latency
@@ -84,6 +84,7 @@ export type NuevaEpsLookupAffiliationResult = {
84
84
  birthDate: string | null;
85
85
  city: string | null;
86
86
  contributedWeeks: number | null;
87
+ phone: string | null;
87
88
  queriedAt: string | null;
88
89
  sex: string | null;
89
90
  stateProvince: string | null;
@@ -95,6 +96,7 @@ export type NuevaEpsLookupAffiliationResult = {
95
96
  }[];
96
97
  primaryProvider?: string;
97
98
  state?: string;
99
+ status?: string;
98
100
  timings?: {
99
101
  accountMs: number;
100
102
  connectionMs: number;