@arbol-ai/sdk 1.20261017.200040 → 2.1.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 (144) hide show
  1. package/README.md +55 -5
  2. package/dist/account/connections/client.d.ts +25 -2
  3. package/dist/axxa/authorizations/client.d.ts +54 -0
  4. package/dist/axxa/authorizations/client.js +18 -0
  5. package/dist/axxa/authorizations/index.d.ts +4 -0
  6. package/dist/axxa/authorizations/index.js +4 -0
  7. package/dist/axxa/client.d.ts +19 -0
  8. package/dist/axxa/client.js +30 -0
  9. package/dist/axxa/connections/client.d.ts +104 -0
  10. package/dist/axxa/connections/client.js +42 -0
  11. package/dist/axxa/connections/index.d.ts +4 -0
  12. package/dist/axxa/connections/index.js +4 -0
  13. package/dist/axxa/eligibility/client.d.ts +44 -0
  14. package/dist/axxa/eligibility/client.js +18 -0
  15. package/dist/axxa/eligibility/index.d.ts +4 -0
  16. package/dist/axxa/eligibility/index.js +4 -0
  17. package/dist/axxa/index.d.ts +5 -0
  18. package/dist/axxa/index.js +4 -0
  19. package/dist/axxa/models.d.ts +168 -0
  20. package/dist/axxa/models.js +3 -0
  21. package/dist/axxa/provider/client.d.ts +32 -0
  22. package/dist/axxa/provider/client.js +18 -0
  23. package/dist/axxa/provider/index.d.ts +4 -0
  24. package/dist/axxa/provider/index.js +4 -0
  25. package/dist/client.d.ts +6 -0
  26. package/dist/client.js +15 -0
  27. package/dist/gmedic/agendaServices/client.d.ts +43 -0
  28. package/dist/gmedic/agendaServices/client.js +18 -0
  29. package/dist/gmedic/agendaServices/index.d.ts +5 -0
  30. package/dist/gmedic/agendaServices/index.js +4 -0
  31. package/dist/gmedic/agendaServices/models.d.ts +28 -0
  32. package/dist/gmedic/agendaServices/models.js +3 -0
  33. package/dist/gmedic/agendas/client.d.ts +45 -0
  34. package/dist/gmedic/agendas/client.js +18 -0
  35. package/dist/gmedic/agendas/index.d.ts +5 -0
  36. package/dist/gmedic/agendas/index.js +4 -0
  37. package/dist/gmedic/agendas/models.d.ts +32 -0
  38. package/dist/gmedic/agendas/models.js +3 -0
  39. package/dist/gmedic/appointments/client.d.ts +279 -0
  40. package/dist/gmedic/appointments/client.js +35 -0
  41. package/dist/gmedic/appointments/index.d.ts +5 -0
  42. package/dist/gmedic/appointments/index.js +4 -0
  43. package/dist/gmedic/appointments/models.d.ts +97 -0
  44. package/dist/gmedic/appointments/models.js +6 -0
  45. package/dist/gmedic/availability/client.d.ts +45 -0
  46. package/dist/gmedic/availability/client.js +18 -0
  47. package/dist/gmedic/availability/index.d.ts +5 -0
  48. package/dist/gmedic/availability/index.js +4 -0
  49. package/dist/gmedic/availability/models.d.ts +30 -0
  50. package/dist/gmedic/availability/models.js +3 -0
  51. package/dist/gmedic/availableDays/client.d.ts +44 -0
  52. package/dist/gmedic/availableDays/client.js +18 -0
  53. package/dist/gmedic/availableDays/index.d.ts +5 -0
  54. package/dist/gmedic/availableDays/index.js +4 -0
  55. package/dist/gmedic/availableDays/models.d.ts +15 -0
  56. package/dist/gmedic/availableDays/models.js +3 -0
  57. package/dist/gmedic/branchOffices/client.d.ts +43 -0
  58. package/dist/gmedic/branchOffices/client.js +18 -0
  59. package/dist/gmedic/branchOffices/index.d.ts +5 -0
  60. package/dist/gmedic/branchOffices/index.js +4 -0
  61. package/dist/gmedic/branchOffices/models.d.ts +51 -0
  62. package/dist/gmedic/branchOffices/models.js +3 -0
  63. package/dist/gmedic/client.d.ts +43 -0
  64. package/dist/gmedic/client.js +90 -0
  65. package/dist/gmedic/connections/client.d.ts +101 -0
  66. package/dist/gmedic/connections/client.js +42 -0
  67. package/dist/gmedic/connections/index.d.ts +4 -0
  68. package/dist/gmedic/connections/index.js +4 -0
  69. package/dist/gmedic/dictionaryEntries/client.d.ts +45 -0
  70. package/dist/gmedic/dictionaryEntries/client.js +18 -0
  71. package/dist/gmedic/dictionaryEntries/index.d.ts +5 -0
  72. package/dist/gmedic/dictionaryEntries/index.js +4 -0
  73. package/dist/gmedic/dictionaryEntries/models.d.ts +20 -0
  74. package/dist/gmedic/dictionaryEntries/models.js +3 -0
  75. package/dist/gmedic/healthPartners/client.d.ts +45 -0
  76. package/dist/gmedic/healthPartners/client.js +18 -0
  77. package/dist/gmedic/healthPartners/index.d.ts +5 -0
  78. package/dist/gmedic/healthPartners/index.js +4 -0
  79. package/dist/gmedic/healthPartners/models.d.ts +22 -0
  80. package/dist/gmedic/healthPartners/models.js +3 -0
  81. package/dist/gmedic/healthPromotionEntities/client.d.ts +45 -0
  82. package/dist/gmedic/healthPromotionEntities/client.js +18 -0
  83. package/dist/gmedic/healthPromotionEntities/index.d.ts +5 -0
  84. package/dist/gmedic/healthPromotionEntities/index.js +4 -0
  85. package/dist/gmedic/healthPromotionEntities/models.d.ts +19 -0
  86. package/dist/gmedic/healthPromotionEntities/models.js +3 -0
  87. package/dist/gmedic/index.d.ts +5 -0
  88. package/dist/gmedic/index.js +4 -0
  89. package/dist/gmedic/laboralRiskManagers/client.d.ts +45 -0
  90. package/dist/gmedic/laboralRiskManagers/client.js +18 -0
  91. package/dist/gmedic/laboralRiskManagers/index.d.ts +5 -0
  92. package/dist/gmedic/laboralRiskManagers/index.js +4 -0
  93. package/dist/gmedic/laboralRiskManagers/models.d.ts +19 -0
  94. package/dist/gmedic/laboralRiskManagers/models.js +3 -0
  95. package/dist/gmedic/models.d.ts +126 -0
  96. package/dist/gmedic/models.js +3 -0
  97. package/dist/gmedic/occupations/client.d.ts +45 -0
  98. package/dist/gmedic/occupations/client.js +18 -0
  99. package/dist/gmedic/occupations/index.d.ts +5 -0
  100. package/dist/gmedic/occupations/index.js +4 -0
  101. package/dist/gmedic/occupations/models.d.ts +20 -0
  102. package/dist/gmedic/occupations/models.js +3 -0
  103. package/dist/gmedic/patientNotes/client.d.ts +104 -0
  104. package/dist/gmedic/patientNotes/client.js +34 -0
  105. package/dist/gmedic/patientNotes/index.d.ts +5 -0
  106. package/dist/gmedic/patientNotes/index.js +4 -0
  107. package/dist/gmedic/patientNotes/models.d.ts +23 -0
  108. package/dist/gmedic/patientNotes/models.js +3 -0
  109. package/dist/gmedic/patients/client.d.ts +408 -0
  110. package/dist/gmedic/patients/client.js +34 -0
  111. package/dist/gmedic/patients/index.d.ts +5 -0
  112. package/dist/gmedic/patients/index.js +4 -0
  113. package/dist/gmedic/patients/models.d.ts +135 -0
  114. package/dist/gmedic/patients/models.js +3 -0
  115. package/dist/gmedic/services/client.d.ts +43 -0
  116. package/dist/gmedic/services/client.js +18 -0
  117. package/dist/gmedic/services/index.d.ts +5 -0
  118. package/dist/gmedic/services/index.js +4 -0
  119. package/dist/gmedic/services/models.d.ts +28 -0
  120. package/dist/gmedic/services/models.js +3 -0
  121. package/dist/gmedic/sessionPackages/client.d.ts +101 -0
  122. package/dist/gmedic/sessionPackages/client.js +26 -0
  123. package/dist/gmedic/sessionPackages/index.d.ts +5 -0
  124. package/dist/gmedic/sessionPackages/index.js +4 -0
  125. package/dist/gmedic/sessionPackages/models.d.ts +43 -0
  126. package/dist/gmedic/sessionPackages/models.js +3 -0
  127. package/dist/index.d.ts +1 -1
  128. package/dist/models.d.ts +22 -0
  129. package/dist/models.js +7 -1
  130. package/dist/nuevaEps/affiliations/client.d.ts +51 -0
  131. package/dist/nuevaEps/affiliations/client.js +18 -0
  132. package/dist/nuevaEps/affiliations/index.d.ts +4 -0
  133. package/dist/nuevaEps/affiliations/index.js +4 -0
  134. package/dist/nuevaEps/client.d.ts +15 -0
  135. package/dist/nuevaEps/client.js +20 -0
  136. package/dist/nuevaEps/connections/client.d.ts +111 -0
  137. package/dist/nuevaEps/connections/client.js +42 -0
  138. package/dist/nuevaEps/connections/index.d.ts +4 -0
  139. package/dist/nuevaEps/connections/index.js +4 -0
  140. package/dist/nuevaEps/index.d.ts +5 -0
  141. package/dist/nuevaEps/index.js +4 -0
  142. package/dist/nuevaEps/models.d.ts +154 -0
  143. package/dist/nuevaEps/models.js +3 -0
  144. package/package.json +10 -3
@@ -0,0 +1,43 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicBranchOfficesPage } 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 branch offices
13
+ *
14
+ * Use the organization gMedic account. Read-only request; provider failures
15
+ * are never empty results.
16
+ */
17
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface ListRequest {
22
+ /**
23
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
28
+ */
29
+ direction?: "forward" | "backward";
30
+ /**
31
+ * Maximum items returned in one page. Defaults to 25; larger reads require
32
+ * another cursor.
33
+ */
34
+ limit?: number;
35
+ id?: string;
36
+ connectionId?: string;
37
+ }
38
+ export interface ListResponse {
39
+ data: GmedicBranchOfficesPage;
40
+ error: null;
41
+ metadata: ResponseMetadata;
42
+ success: true;
43
+ }
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/gmedic/branch-offices",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", connectionId: "connectionId" },
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 },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { GmedicBranchOfficesPage } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,51 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicBranchOfficesPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ active?: boolean | null;
8
+ address?: string | null;
9
+ creationDate?: string | null;
10
+ documentNumber?: string | null;
11
+ documentType?: {
12
+ id: string;
13
+ label?: string | null;
14
+ name?: string | null;
15
+ value?: string | null;
16
+ } | null;
17
+ email?: string | null;
18
+ firstName?: string | null;
19
+ fullName?: string | null;
20
+ id: string;
21
+ key?: string | null;
22
+ lastName?: string | null;
23
+ legalName?: string | null;
24
+ location?: {
25
+ code?: string | null;
26
+ globalCode?: string | null;
27
+ id: string;
28
+ isoCode?: string | null;
29
+ name?: string | null;
30
+ phoneCode?: string | null;
31
+ } | null;
32
+ mobile?: string | null;
33
+ modificationDate?: string | null;
34
+ personType?: {
35
+ id: string;
36
+ label?: string | null;
37
+ name?: string | null;
38
+ value?: string | null;
39
+ } | null;
40
+ phone?: string | null;
41
+ type?: string | null;
42
+ }[];
43
+ /**
44
+ * Discriminator for a resource list response.
45
+ */
46
+ object: "list";
47
+ /**
48
+ * Opaque navigation cursors for this page’s stable keyset order.
49
+ */
50
+ pageInfo: PageInfo;
51
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,43 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as AgendaServicesClient } from "./agendaServices/client.js";
3
+ import { type Client as AgendasClient } from "./agendas/client.js";
4
+ import { type Client as AppointmentsClient } from "./appointments/client.js";
5
+ import { type Client as AvailabilityClient } from "./availability/client.js";
6
+ import { type Client as AvailableDaysClient } from "./availableDays/client.js";
7
+ import { type Client as BranchOfficesClient } from "./branchOffices/client.js";
8
+ import { type Client as ConnectionsClient } from "./connections/client.js";
9
+ import { type Client as DictionaryEntriesClient } from "./dictionaryEntries/client.js";
10
+ import { type Client as HealthPartnersClient } from "./healthPartners/client.js";
11
+ import { type Client as HealthPromotionEntitiesClient } from "./healthPromotionEntities/client.js";
12
+ import { type Client as LaboralRiskManagersClient } from "./laboralRiskManagers/client.js";
13
+ import { type Client as OccupationsClient } from "./occupations/client.js";
14
+ import { type Client as PatientNotesClient } from "./patientNotes/client.js";
15
+ import { type Client as PatientsClient } from "./patients/client.js";
16
+ import { type Client as ServicesClient } from "./services/client.js";
17
+ import { type Client as SessionPackagesClient } from "./sessionPackages/client.js";
18
+ export interface ClientOptions extends BaseClientOptions {
19
+ /**
20
+ * The URL the paths of the API are relative to.
21
+ */
22
+ baseUrl: string;
23
+ }
24
+ export interface Client {
25
+ readonly agendaServices: AgendaServicesClient;
26
+ readonly agendas: AgendasClient;
27
+ readonly appointments: AppointmentsClient;
28
+ readonly availability: AvailabilityClient;
29
+ readonly availableDays: AvailableDaysClient;
30
+ readonly branchOffices: BranchOfficesClient;
31
+ readonly connections: ConnectionsClient;
32
+ readonly dictionaryEntries: DictionaryEntriesClient;
33
+ readonly healthPartners: HealthPartnersClient;
34
+ readonly healthPromotionEntities: HealthPromotionEntitiesClient;
35
+ readonly laboralRiskManagers: LaboralRiskManagersClient;
36
+ readonly occupations: OccupationsClient;
37
+ readonly patientNotes: PatientNotesClient;
38
+ readonly patients: PatientsClient;
39
+ readonly services: ServicesClient;
40
+ readonly sessionPackages: SessionPackagesClient;
41
+ }
42
+ export declare function createClient(options: ClientOptions): Client;
43
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,90 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindAgendaServices, } from "./agendaServices/client.js";
5
+ import { bind as bindAgendas, } from "./agendas/client.js";
6
+ import { bind as bindAppointments, } from "./appointments/client.js";
7
+ import { bind as bindAvailability, } from "./availability/client.js";
8
+ import { bind as bindAvailableDays, } from "./availableDays/client.js";
9
+ import { bind as bindBranchOffices, } from "./branchOffices/client.js";
10
+ import { bind as bindConnections, } from "./connections/client.js";
11
+ import { bind as bindDictionaryEntries, } from "./dictionaryEntries/client.js";
12
+ import { bind as bindHealthPartners, } from "./healthPartners/client.js";
13
+ import { bind as bindHealthPromotionEntities, } from "./healthPromotionEntities/client.js";
14
+ import { bind as bindLaboralRiskManagers, } from "./laboralRiskManagers/client.js";
15
+ import { bind as bindOccupations, } from "./occupations/client.js";
16
+ import { bind as bindPatientNotes, } from "./patientNotes/client.js";
17
+ import { bind as bindPatients, } from "./patients/client.js";
18
+ import { bind as bindServices, } from "./services/client.js";
19
+ import { bind as bindSessionPackages, } from "./sessionPackages/client.js";
20
+ export function createClient(options) {
21
+ return bind(new Transport(options));
22
+ }
23
+ export function bind(transport) {
24
+ let agendaServicesClient;
25
+ let agendasClient;
26
+ let appointmentsClient;
27
+ let availabilityClient;
28
+ let availableDaysClient;
29
+ let branchOfficesClient;
30
+ let connectionsClient;
31
+ let dictionaryEntriesClient;
32
+ let healthPartnersClient;
33
+ let healthPromotionEntitiesClient;
34
+ let laboralRiskManagersClient;
35
+ let occupationsClient;
36
+ let patientNotesClient;
37
+ let patientsClient;
38
+ let servicesClient;
39
+ let sessionPackagesClient;
40
+ return {
41
+ get agendaServices() {
42
+ return (agendaServicesClient ??= bindAgendaServices(transport));
43
+ },
44
+ get agendas() {
45
+ return (agendasClient ??= bindAgendas(transport));
46
+ },
47
+ get appointments() {
48
+ return (appointmentsClient ??= bindAppointments(transport));
49
+ },
50
+ get availability() {
51
+ return (availabilityClient ??= bindAvailability(transport));
52
+ },
53
+ get availableDays() {
54
+ return (availableDaysClient ??= bindAvailableDays(transport));
55
+ },
56
+ get branchOffices() {
57
+ return (branchOfficesClient ??= bindBranchOffices(transport));
58
+ },
59
+ get connections() {
60
+ return (connectionsClient ??= bindConnections(transport));
61
+ },
62
+ get dictionaryEntries() {
63
+ return (dictionaryEntriesClient ??= bindDictionaryEntries(transport));
64
+ },
65
+ get healthPartners() {
66
+ return (healthPartnersClient ??= bindHealthPartners(transport));
67
+ },
68
+ get healthPromotionEntities() {
69
+ return (healthPromotionEntitiesClient ??= bindHealthPromotionEntities(transport));
70
+ },
71
+ get laboralRiskManagers() {
72
+ return (laboralRiskManagersClient ??= bindLaboralRiskManagers(transport));
73
+ },
74
+ get occupations() {
75
+ return (occupationsClient ??= bindOccupations(transport));
76
+ },
77
+ get patientNotes() {
78
+ return (patientNotesClient ??= bindPatientNotes(transport));
79
+ },
80
+ get patients() {
81
+ return (patientsClient ??= bindPatients(transport));
82
+ },
83
+ get services() {
84
+ return (servicesClient ??= bindServices(transport));
85
+ },
86
+ get sessionPackages() {
87
+ return (sessionPackagesClient ??= bindSessionPackages(transport));
88
+ },
89
+ };
90
+ }
@@ -0,0 +1,101 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type Connection, type ConnectionPage, type DeletedObject, type ResponseMetadata } 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
+ * Remove a provider connection
12
+ *
13
+ * Remove the provider-owned connection before Account retires its sealed
14
+ * credentials. Login cooldowns remain durable.
15
+ */
16
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
17
+ /**
18
+ * Get a provider connection
19
+ *
20
+ * One connection owned by the verified organization. Never a credential or a
21
+ * provider request.
22
+ */
23
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
24
+ /**
25
+ * List provider connections
26
+ *
27
+ * The organization’s Account connections, without reading credentials or
28
+ * contacting the provider.
29
+ */
30
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
31
+ /**
32
+ * Verify a provider connection
33
+ *
34
+ * Verify these credentials once before Account seals them. A rejected
35
+ * verification changes no active credential. The durable organization-wide
36
+ * budget prevents replacement connections from bypassing login protection.
37
+ */
38
+ verify(request: VerifyRequest, options?: RequestOptions): Promise<VerifyResponse>;
39
+ }
40
+ export declare function createClient(options: ClientOptions): Client;
41
+ export declare function bind(transport: Transport): Client;
42
+ export interface DeleteRequest {
43
+ id: string;
44
+ body: {
45
+ [key: string]: unknown;
46
+ };
47
+ }
48
+ export interface DeleteResponse {
49
+ data: DeletedObject;
50
+ error: null;
51
+ metadata: ResponseMetadata;
52
+ success: true;
53
+ }
54
+ export interface GetRequest {
55
+ id: string;
56
+ }
57
+ export interface GetResponse {
58
+ data: Connection;
59
+ error: null;
60
+ metadata: ResponseMetadata;
61
+ success: true;
62
+ }
63
+ export interface ListRequest {
64
+ /**
65
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
66
+ */
67
+ cursor?: string;
68
+ /**
69
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
70
+ */
71
+ direction?: "forward" | "backward";
72
+ /**
73
+ * Maximum items returned in one page. Defaults to 25; larger reads require
74
+ * another cursor.
75
+ */
76
+ limit?: number;
77
+ }
78
+ export interface ListResponse {
79
+ data: ConnectionPage;
80
+ error: null;
81
+ metadata: ResponseMetadata;
82
+ success: true;
83
+ }
84
+ export interface VerifyRequest {
85
+ connectionId: string;
86
+ apiToken: string;
87
+ name: string;
88
+ }
89
+ export interface VerifyResponse {
90
+ data: {
91
+ stateRef: string;
92
+ status: "active";
93
+ summary: string;
94
+ } | {
95
+ errorCode: string;
96
+ status: "rejected";
97
+ };
98
+ error: null;
99
+ metadata: ResponseMetadata;
100
+ success: true;
101
+ }
@@ -0,0 +1,42 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, object, } from "../../_/index.js";
4
+ import { ConnectionCodec, ConnectionPageCodec, } from "../../models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ delete: (request, options) => transport.send(DeleteOperation, request, options),
11
+ get: (request, options) => transport.send(GetOperation, request, options),
12
+ list: (request, options) => transport.send(ListOperation, request, options),
13
+ verify: (request, options) => transport.send(VerifyOperation, request, options),
14
+ };
15
+ }
16
+ const DeleteOperation = {
17
+ method: "DELETE",
18
+ route: "/v1/gmedic/connections/{id}",
19
+ body: "nested",
20
+ response: null,
21
+ 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 },
22
+ };
23
+ const GetOperation = {
24
+ method: "GET",
25
+ route: "/v1/gmedic/connections/{id}",
26
+ response: object([["data", null, () => ConnectionCodec]]),
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 ListOperation = {
30
+ method: "GET",
31
+ route: "/v1/gmedic/connections",
32
+ query: { cursor: "cursor", direction: "direction", limit: "limit" },
33
+ response: object([["data", null, () => ConnectionPageCodec]]),
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
+ };
36
+ const VerifyOperation = {
37
+ method: "POST",
38
+ route: "/v1/gmedic/connections/{connectionId}/verify",
39
+ body: "flat",
40
+ response: null,
41
+ 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 },
42
+ };
@@ -0,0 +1,4 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicDictionaryEntrysPage } 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 dictionary entrys
13
+ *
14
+ * Use the organization gMedic account. Read-only request; provider failures
15
+ * are never empty results.
16
+ */
17
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface ListRequest {
22
+ /**
23
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
28
+ */
29
+ direction?: "forward" | "backward";
30
+ /**
31
+ * Maximum items returned in one page. Defaults to 25; larger reads require
32
+ * another cursor.
33
+ */
34
+ limit?: number;
35
+ class?: string;
36
+ id?: string;
37
+ name?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicDictionaryEntrysPage;
42
+ error: null;
43
+ metadata: ResponseMetadata;
44
+ success: true;
45
+ }
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/gmedic/dictionary-entries",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", class: "class", id: "id", name: "name", connectionId: "connectionId" },
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 },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { GmedicDictionaryEntrysPage } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,20 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicDictionaryEntrysPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ id?: string;
8
+ label?: string;
9
+ name?: string;
10
+ value?: string;
11
+ }[];
12
+ /**
13
+ * Discriminator for a resource list response.
14
+ */
15
+ object: "list";
16
+ /**
17
+ * Opaque navigation cursors for this page’s stable keyset order.
18
+ */
19
+ pageInfo: PageInfo;
20
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,45 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicHealthPartnersPage } 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 health partners
13
+ *
14
+ * Use the organization gMedic account. Read-only request; provider failures
15
+ * are never empty results.
16
+ */
17
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface ListRequest {
22
+ /**
23
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
24
+ */
25
+ cursor?: string;
26
+ /**
27
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
28
+ */
29
+ direction?: "forward" | "backward";
30
+ /**
31
+ * Maximum items returned in one page. Defaults to 25; larger reads require
32
+ * another cursor.
33
+ */
34
+ limit?: number;
35
+ code?: string;
36
+ id?: string;
37
+ name?: string;
38
+ connectionId?: string;
39
+ }
40
+ export interface ListResponse {
41
+ data: GmedicHealthPartnersPage;
42
+ error: null;
43
+ metadata: ResponseMetadata;
44
+ success: true;
45
+ }
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/gmedic/health-partners",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", code: "code", id: "id", name: "name", connectionId: "connectionId" },
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 },
18
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
+ export type { GmedicHealthPartnersPage } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,22 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicHealthPartnersPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ active?: boolean | null;
8
+ code?: string | null;
9
+ companyId?: string | null;
10
+ id: string;
11
+ key?: string | null;
12
+ name?: string | null;
13
+ }[];
14
+ /**
15
+ * Discriminator for a resource list response.
16
+ */
17
+ object: "list";
18
+ /**
19
+ * Opaque navigation cursors for this page’s stable keyset order.
20
+ */
21
+ pageInfo: PageInfo;
22
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};