@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,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,101 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { ResponseMetadata } from "../../models.js";
3
+ import type { GmedicSessionPackagesPage } 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
+ * Create session package
13
+ *
14
+ * Use the organization gMedic account. No automatic write retries; reconcile
15
+ * an unknown outcome before repeating.
16
+ */
17
+ create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
18
+ /**
19
+ * List session packages
20
+ *
21
+ * Use the organization gMedic account. Read-only request; provider failures
22
+ * are never empty results.
23
+ */
24
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
25
+ }
26
+ export declare function createClient(options: ClientOptions): Client;
27
+ export declare function bind(transport: Transport): Client;
28
+ export interface 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: ResponseMetadata;
75
+ success: true;
76
+ }
77
+ export interface ListRequest {
78
+ /**
79
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
80
+ */
81
+ cursor?: string;
82
+ /**
83
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
84
+ */
85
+ direction?: "forward" | "backward";
86
+ /**
87
+ * Maximum items returned in one page. Defaults to 25; larger reads require
88
+ * another cursor.
89
+ */
90
+ limit?: number;
91
+ authorization?: string;
92
+ id?: string;
93
+ patientId?: string;
94
+ connectionId?: string;
95
+ }
96
+ export interface ListResponse {
97
+ data: GmedicSessionPackagesPage;
98
+ error: null;
99
+ metadata: ResponseMetadata;
100
+ success: true;
101
+ }
@@ -0,0 +1,26 @@
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
+ create: (request, options) => transport.send(CreateOperation, request, options),
10
+ list: (request, options) => transport.send(ListOperation, request, options),
11
+ };
12
+ }
13
+ const CreateOperation = {
14
+ method: "POST",
15
+ route: "/v1/gmedic/sessions",
16
+ body: "flat",
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 },
19
+ };
20
+ const ListOperation = {
21
+ method: "GET",
22
+ route: "/v1/gmedic/sessions",
23
+ query: { cursor: "cursor", direction: "direction", limit: "limit", authorization: "authorization", id: "id", patientId: "patientId", connectionId: "connectionId" },
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 },
26
+ };
@@ -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, CreateRequest, CreateResponse, ListRequest, ListResponse, } from "./client.js";
5
+ export type { GmedicSessionPackagesPage } 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,43 @@
1
+ import type { PageInfo } from "../../models.js";
2
+ export interface GmedicSessionPackagesPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ active?: boolean | null;
8
+ availableSessions?: number | null;
9
+ billingService?: string | null;
10
+ billingServiceId?: string | null;
11
+ creationDate?: string | null;
12
+ currentSessions?: number | null;
13
+ documentId?: string | null;
14
+ expirationDate?: string | null;
15
+ healthPartner?: string | null;
16
+ id: string;
17
+ invoice?: string | null;
18
+ invoiceId?: string | null;
19
+ issueDate?: string | null;
20
+ key?: string | null;
21
+ maxSessions?: number | null;
22
+ modificationDate?: string | null;
23
+ number?: string | null;
24
+ patientDocumentNumber?: string | null;
25
+ patientDocumentType?: {
26
+ id: string;
27
+ label?: string | null;
28
+ name?: string | null;
29
+ value?: string | null;
30
+ } | null;
31
+ patientFirstName?: string | null;
32
+ patientId?: string | null;
33
+ patientLastName?: string | null;
34
+ }[];
35
+ /**
36
+ * Discriminator for a resource list response.
37
+ */
38
+ object: "list";
39
+ /**
40
+ * Opaque navigation cursors for this page’s stable keyset order.
41
+ */
42
+ pageInfo: PageInfo;
43
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
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 { DeletedObject, Failure, PageInfo, ResponseMetadata, ValidationIssue, } from "./models.js";
5
+ export type { Connection, ConnectionPage, DeletedObject, Failure, PageInfo, ResponseMetadata, ValidationIssue, } from "./models.js";
package/dist/models.d.ts CHANGED
@@ -1,3 +1,23 @@
1
+ export interface Connection {
2
+ id: string;
3
+ name: string;
4
+ status: "active" | "disabled" | "failed" | "not_configured";
5
+ verifiedAt: Temporal.Instant | null;
6
+ }
7
+ export interface ConnectionPage {
8
+ /**
9
+ * Items admitted by this resource contract within the verified organization.
10
+ */
11
+ data: Connection[];
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
+ }
1
21
  export interface DeletedObject {
2
22
  deleted: true;
3
23
  /**
@@ -56,3 +76,5 @@ export interface ValidationIssue {
56
76
  */
57
77
  path: string;
58
78
  }
79
+ export declare const ConnectionCodec: import("./_/codec.js").Codec;
80
+ export declare const ConnectionPageCodec: import("./_/codec.js").Codec;
package/dist/models.js CHANGED
@@ -1,3 +1,9 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- export {};
3
+ import { array, instant, object } from "./_/index.js";
4
+ export const ConnectionCodec = object([
5
+ ["verifiedAt", null, instant],
6
+ ]);
7
+ export const ConnectionPageCodec = object([
8
+ ["data", null, array(() => ConnectionCodec)],
9
+ ]);
@@ -0,0 +1,51 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import 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
+ * Look up member affiliation
12
+ *
13
+ * Read affiliation and the provider capitation warning. A provider failure is
14
+ * never an absent member. No clinical writes are performed.
15
+ */
16
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
17
+ }
18
+ export declare function createClient(options: ClientOptions): Client;
19
+ export declare function bind(transport: Transport): Client;
20
+ export interface LookupRequest {
21
+ connectionId?: string;
22
+ /**
23
+ * Member document number as a string; preserve leading zeros. Never an
24
+ * organization selector.
25
+ */
26
+ documentNumber: string;
27
+ /**
28
+ * Document type code accepted by Nueva EPS; provider-specific codes retain
29
+ * their original meaning.
30
+ */
31
+ documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
32
+ }
33
+ export interface LookupResponse {
34
+ data: {
35
+ affiliated: boolean;
36
+ callerIsPrimaryProvider: boolean;
37
+ category?: string;
38
+ documentNumber: string;
39
+ documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
40
+ kind?: string;
41
+ messages: {
42
+ level: "error" | "info";
43
+ text: string;
44
+ }[];
45
+ primaryProvider?: string;
46
+ state?: string;
47
+ };
48
+ error: null;
49
+ metadata: ResponseMetadata;
50
+ success: true;
51
+ }
@@ -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
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
10
+ };
11
+ }
12
+ const LookupOperation = {
13
+ method: "POST",
14
+ route: "/v1/nueva-eps/affiliations/lookup",
15
+ body: "flat",
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
18
+ };
@@ -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, LookupRequest, LookupResponse, } 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,15 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as AffiliationsClient } from "./affiliations/client.js";
3
+ import { type Client as ConnectionsClient } from "./connections/client.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
+ readonly affiliations: AffiliationsClient;
12
+ readonly connections: ConnectionsClient;
13
+ }
14
+ export declare function createClient(options: ClientOptions): Client;
15
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,20 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindAffiliations, } from "./affiliations/client.js";
5
+ import { bind as bindConnections, } from "./connections/client.js";
6
+ export function createClient(options) {
7
+ return bind(new Transport(options));
8
+ }
9
+ export function bind(transport) {
10
+ let affiliationsClient;
11
+ let connectionsClient;
12
+ return {
13
+ get affiliations() {
14
+ return (affiliationsClient ??= bindAffiliations(transport));
15
+ },
16
+ get connections() {
17
+ return (connectionsClient ??= bindConnections(transport));
18
+ },
19
+ };
20
+ }
@@ -0,0 +1,111 @@
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
+ /**
87
+ * Document type code accepted by Nueva EPS; provider-specific codes retain
88
+ * their original meaning.
89
+ */
90
+ documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
91
+ name: string;
92
+ password: string;
93
+ /**
94
+ * Provider portal login identifier; separate from the member document being
95
+ * queried.
96
+ */
97
+ username: string;
98
+ }
99
+ export interface VerifyResponse {
100
+ data: {
101
+ stateRef: string;
102
+ status: "active";
103
+ summary: string;
104
+ } | {
105
+ errorCode: string;
106
+ status: "rejected";
107
+ };
108
+ error: null;
109
+ metadata: ResponseMetadata;
110
+ success: true;
111
+ }
@@ -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/nueva-eps/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, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
22
+ };
23
+ const GetOperation = {
24
+ method: "GET",
25
+ route: "/v1/nueva-eps/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, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
28
+ };
29
+ const ListOperation = {
30
+ method: "GET",
31
+ route: "/v1/nueva-eps/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, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
35
+ };
36
+ const VerifyOperation = {
37
+ method: "POST",
38
+ route: "/v1/nueva-eps/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, "429": true, "500": true, "501": 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,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, } from "./client.js";
5
+ export type { NuevaEpsFailureResponse } 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";