@arbol-ai/sdk 5.2.0 → 5.3.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 (35) hide show
  1. package/dist/saludTotal/affiliations/client.d.ts +23 -0
  2. package/dist/saludTotal/affiliations/client.js +18 -0
  3. package/dist/saludTotal/affiliations/index.d.ts +5 -0
  4. package/dist/saludTotal/affiliations/index.js +4 -0
  5. package/dist/saludTotal/affiliations/models.d.ts +78 -0
  6. package/dist/saludTotal/affiliations/models.js +3 -0
  7. package/dist/saludTotal/client.d.ts +8 -0
  8. package/dist/saludTotal/client.js +20 -0
  9. package/dist/saludTotal/connections/client.js +3 -3
  10. package/dist/saludTotal/connections/index.d.ts +1 -1
  11. package/dist/saludTotal/connections/models.d.ts +158 -1
  12. package/dist/saludTotal/index.d.ts +1 -1
  13. package/dist/saludTotal/models.d.ts +231 -0
  14. package/dist/saludTotal/portalOperations/client.d.ts +53 -0
  15. package/dist/saludTotal/portalOperations/client.js +18 -0
  16. package/dist/saludTotal/portalOperations/index.d.ts +5 -0
  17. package/dist/saludTotal/portalOperations/index.js +4 -0
  18. package/dist/saludTotal/portalOperations/models.d.ts +89 -0
  19. package/dist/saludTotal/portalOperations/models.js +3 -0
  20. package/dist/saludTotal/portals/client.js +1 -1
  21. package/dist/saludTotal/portals/index.d.ts +1 -1
  22. package/dist/saludTotal/portals/models.d.ts +54 -1
  23. package/dist/saludTotal/sessions/client.d.ts +37 -0
  24. package/dist/saludTotal/sessions/client.js +27 -0
  25. package/dist/saludTotal/sessions/index.d.ts +5 -0
  26. package/dist/saludTotal/sessions/index.js +4 -0
  27. package/dist/saludTotal/sessions/models.d.ts +90 -0
  28. package/dist/saludTotal/sessions/models.js +9 -0
  29. package/dist/saludTotal/workflowPreviews/client.d.ts +36 -0
  30. package/dist/saludTotal/workflowPreviews/client.js +18 -0
  31. package/dist/saludTotal/workflowPreviews/index.d.ts +5 -0
  32. package/dist/saludTotal/workflowPreviews/index.js +4 -0
  33. package/dist/saludTotal/workflowPreviews/models.d.ts +69 -0
  34. package/dist/saludTotal/workflowPreviews/models.js +3 -0
  35. package/package.json +3 -3
@@ -0,0 +1,23 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalAffiliationLookupResponse, SaludTotalLookupAffiliationBody } 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 one member’s IPS affiliation
12
+ *
13
+ * Consult current affiliation for one exact CC document using an active
14
+ * tenant connection. Returns only the provider status for a unique match. No
15
+ * match and ambiguity are distinct from outages. This read does not authorize
16
+ * treatment.
17
+ */
18
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
19
+ }
20
+ export declare function createClient(options: ClientOptions): Client;
21
+ export declare function bind(transport: Transport): Client;
22
+ export type LookupRequest = SaludTotalLookupAffiliationBody;
23
+ export type LookupResponse = SaludTotalAffiliationLookupResponse;
@@ -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/salud-total/affiliations/lookup",
15
+ body: "flat",
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": 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, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { SaludTotalAffiliationLookup, SaludTotalAffiliationLookupResponse, SaludTotalLookupAffiliationBody, SaludTotalLookupAffiliationConflictError, SaludTotalLookupAffiliationConflictFailure, SaludTotalLookupAffiliationForbiddenError, SaludTotalLookupAffiliationForbiddenFailure, SaludTotalLookupAffiliationServiceUnavailableError, SaludTotalLookupAffiliationServiceUnavailableFailure, SaludTotalLookupAffiliationTooManyRequestsError, SaludTotalLookupAffiliationTooManyRequestsFailure, } 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,78 @@
1
+ import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ export interface SaludTotalAffiliationLookup {
4
+ providerStatus: string | null;
5
+ status: "matched" | "no_match" | "ambiguous";
6
+ }
7
+ /**
8
+ * A successful answer.
9
+ */
10
+ export interface SaludTotalAffiliationLookupResponse {
11
+ data: SaludTotalAffiliationLookup;
12
+ error: null;
13
+ /**
14
+ * What every answer carries besides its data or error.
15
+ */
16
+ metadata: ResponseMetadata;
17
+ success: true;
18
+ }
19
+ export interface SaludTotalLookupAffiliationBody {
20
+ connectionId: string;
21
+ /**
22
+ * Exact authorized member document. Send it only in the request body.
23
+ */
24
+ documentNumber: string;
25
+ documentType: "CC";
26
+ }
27
+ /**
28
+ * A failed answer.
29
+ */
30
+ export interface SaludTotalLookupAffiliationConflictError {
31
+ data: null;
32
+ error: SaludTotalLookupAffiliationConflictFailure;
33
+ /**
34
+ * What every answer carries besides its data or error.
35
+ */
36
+ metadata: ResponseMetadata;
37
+ success: false;
38
+ }
39
+ export type SaludTotalLookupAffiliationConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
40
+ /**
41
+ * A failed answer.
42
+ */
43
+ export interface SaludTotalLookupAffiliationForbiddenError {
44
+ data: null;
45
+ error: SaludTotalLookupAffiliationForbiddenFailure;
46
+ /**
47
+ * What every answer carries besides its data or error.
48
+ */
49
+ metadata: ResponseMetadata;
50
+ success: false;
51
+ }
52
+ export type SaludTotalLookupAffiliationForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
53
+ /**
54
+ * A failed answer.
55
+ */
56
+ export interface SaludTotalLookupAffiliationServiceUnavailableError {
57
+ data: null;
58
+ error: SaludTotalLookupAffiliationServiceUnavailableFailure;
59
+ /**
60
+ * What every answer carries besides its data or error.
61
+ */
62
+ metadata: ResponseMetadata;
63
+ success: false;
64
+ }
65
+ export type SaludTotalLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
66
+ /**
67
+ * A failed answer.
68
+ */
69
+ export interface SaludTotalLookupAffiliationTooManyRequestsError {
70
+ data: null;
71
+ error: SaludTotalLookupAffiliationTooManyRequestsFailure;
72
+ /**
73
+ * What every answer carries besides its data or error.
74
+ */
75
+ metadata: ResponseMetadata;
76
+ success: false;
77
+ }
78
+ export type SaludTotalLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -1,6 +1,10 @@
1
1
  import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as AffiliationsClient } from "./affiliations/client.js";
2
3
  import { type Client as ConnectionsClient } from "./connections/client.js";
4
+ import { type Client as PortalOperationsClient } from "./portalOperations/client.js";
3
5
  import { type Client as PortalsClient } from "./portals/client.js";
6
+ import { type Client as SessionsClient } from "./sessions/client.js";
7
+ import { type Client as WorkflowPreviewsClient } from "./workflowPreviews/client.js";
4
8
  export interface ClientOptions extends BaseClientOptions {
5
9
  /**
6
10
  * The URL the paths of the API are relative to.
@@ -8,8 +12,12 @@ export interface ClientOptions extends BaseClientOptions {
8
12
  baseUrl: string;
9
13
  }
10
14
  export interface Client {
15
+ readonly affiliations: AffiliationsClient;
11
16
  readonly connections: ConnectionsClient;
17
+ readonly portalOperations: PortalOperationsClient;
12
18
  readonly portals: PortalsClient;
19
+ readonly sessions: SessionsClient;
20
+ readonly workflowPreviews: WorkflowPreviewsClient;
13
21
  }
14
22
  export declare function createClient(options: ClientOptions): Client;
15
23
  export declare function bind(transport: Transport): Client;
@@ -1,20 +1,40 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { Transport } from "../_/index.js";
4
+ import { bind as bindAffiliations, } from "./affiliations/client.js";
4
5
  import { bind as bindConnections, } from "./connections/client.js";
6
+ import { bind as bindPortalOperations, } from "./portalOperations/client.js";
5
7
  import { bind as bindPortals, } from "./portals/client.js";
8
+ import { bind as bindSessions, } from "./sessions/client.js";
9
+ import { bind as bindWorkflowPreviews, } from "./workflowPreviews/client.js";
6
10
  export function createClient(options) {
7
11
  return bind(new Transport(options));
8
12
  }
9
13
  export function bind(transport) {
14
+ let affiliationsClient;
10
15
  let connectionsClient;
16
+ let portalOperationsClient;
11
17
  let portalsClient;
18
+ let sessionsClient;
19
+ let workflowPreviewsClient;
12
20
  return {
21
+ get affiliations() {
22
+ return (affiliationsClient ??= bindAffiliations(transport));
23
+ },
13
24
  get connections() {
14
25
  return (connectionsClient ??= bindConnections(transport));
15
26
  },
27
+ get portalOperations() {
28
+ return (portalOperationsClient ??= bindPortalOperations(transport));
29
+ },
16
30
  get portals() {
17
31
  return (portalsClient ??= bindPortals(transport));
18
32
  },
33
+ get sessions() {
34
+ return (sessionsClient ??= bindSessions(transport));
35
+ },
36
+ get workflowPreviews() {
37
+ return (workflowPreviewsClient ??= bindWorkflowPreviews(transport));
38
+ },
19
39
  };
20
40
  }
@@ -17,7 +17,7 @@ const DeleteOperation = {
17
17
  method: "DELETE",
18
18
  route: "/v1/salud-total/connections/{connectionId}",
19
19
  response: null,
20
- errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
21
21
  };
22
22
  const GetOperation = {
23
23
  method: "GET",
@@ -30,12 +30,12 @@ const ListOperation = {
30
30
  route: "/v1/salud-total/connections",
31
31
  query: { cursor: "cursor", direction: "direction", limit: "limit", tag: "tag" },
32
32
  response: SaludTotalVerifiedConnectionPageResponseCodec,
33
- errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
33
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
34
34
  };
35
35
  const VerifyOperation = {
36
36
  method: "POST",
37
37
  route: "/v1/salud-total/connections/{connectionId}/verify",
38
38
  body: "flat",
39
39
  response: null,
40
- errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
40
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
41
41
  };
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.js";
5
- export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifiedConnection, SaludTotalVerifiedConnectionPage, SaludTotalVerifiedConnectionPageResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } from "./models.js";
5
+ export type { SaludTotalDeleteConnectionConflictError, SaludTotalDeleteConnectionConflictFailure, SaludTotalDeleteConnectionForbiddenError, SaludTotalDeleteConnectionForbiddenFailure, SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalDeleteConnectionServiceUnavailableError, SaludTotalDeleteConnectionServiceUnavailableFailure, SaludTotalDeleteConnectionTooManyRequestsError, SaludTotalDeleteConnectionTooManyRequestsFailure, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalListConnectionsConflictError, SaludTotalListConnectionsConflictFailure, SaludTotalListConnectionsForbiddenError, SaludTotalListConnectionsForbiddenFailure, SaludTotalListConnectionsServiceUnavailableError, SaludTotalListConnectionsServiceUnavailableFailure, SaludTotalListConnectionsTooManyRequestsError, SaludTotalListConnectionsTooManyRequestsFailure, SaludTotalVerifiedConnection, SaludTotalVerifiedConnectionPage, SaludTotalVerifiedConnectionPageResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionConflictError, SaludTotalVerifyConnectionConflictFailure, SaludTotalVerifyConnectionForbiddenError, SaludTotalVerifyConnectionForbiddenFailure, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, SaludTotalVerifyConnectionServiceUnavailableError, SaludTotalVerifyConnectionServiceUnavailableFailure, SaludTotalVerifyConnectionTooManyRequestsError, SaludTotalVerifyConnectionTooManyRequestsFailure, } from "./models.js";
@@ -1,4 +1,31 @@
1
- import type { PageInfo, ResponseMetadata } from "../../models.js";
1
+ import type { ForbiddenFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalDeleteConnectionConflictError {
7
+ data: null;
8
+ error: SaludTotalDeleteConnectionConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalDeleteConnectionConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalDeleteConnectionForbiddenError {
20
+ data: null;
21
+ error: SaludTotalDeleteConnectionForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalDeleteConnectionForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
2
29
  export interface SaludTotalDeleteConnectionResult {
3
30
  deleted: true;
4
31
  id: string;
@@ -15,6 +42,32 @@ export interface SaludTotalDeleteConnectionResultResponse {
15
42
  metadata: ResponseMetadata;
16
43
  success: true;
17
44
  }
45
+ /**
46
+ * A failed answer.
47
+ */
48
+ export interface SaludTotalDeleteConnectionServiceUnavailableError {
49
+ data: null;
50
+ error: SaludTotalDeleteConnectionServiceUnavailableFailure;
51
+ /**
52
+ * What every answer carries besides its data or error.
53
+ */
54
+ metadata: ResponseMetadata;
55
+ success: false;
56
+ }
57
+ export type SaludTotalDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
58
+ /**
59
+ * A failed answer.
60
+ */
61
+ export interface SaludTotalDeleteConnectionTooManyRequestsError {
62
+ data: null;
63
+ error: SaludTotalDeleteConnectionTooManyRequestsFailure;
64
+ /**
65
+ * What every answer carries besides its data or error.
66
+ */
67
+ metadata: ResponseMetadata;
68
+ success: false;
69
+ }
70
+ export type SaludTotalDeleteConnectionTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
18
71
  export interface SaludTotalGetConnectionResult {
19
72
  tag: "postconsulta" | "facturacion";
20
73
  verifiedAt: Temporal.Instant;
@@ -31,6 +84,58 @@ export interface SaludTotalGetConnectionResultResponse {
31
84
  metadata: ResponseMetadata;
32
85
  success: true;
33
86
  }
87
+ /**
88
+ * A failed answer.
89
+ */
90
+ export interface SaludTotalListConnectionsConflictError {
91
+ data: null;
92
+ error: SaludTotalListConnectionsConflictFailure;
93
+ /**
94
+ * What every answer carries besides its data or error.
95
+ */
96
+ metadata: ResponseMetadata;
97
+ success: false;
98
+ }
99
+ export type SaludTotalListConnectionsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
100
+ /**
101
+ * A failed answer.
102
+ */
103
+ export interface SaludTotalListConnectionsForbiddenError {
104
+ data: null;
105
+ error: SaludTotalListConnectionsForbiddenFailure;
106
+ /**
107
+ * What every answer carries besides its data or error.
108
+ */
109
+ metadata: ResponseMetadata;
110
+ success: false;
111
+ }
112
+ export type SaludTotalListConnectionsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
113
+ /**
114
+ * A failed answer.
115
+ */
116
+ export interface SaludTotalListConnectionsServiceUnavailableError {
117
+ data: null;
118
+ error: SaludTotalListConnectionsServiceUnavailableFailure;
119
+ /**
120
+ * What every answer carries besides its data or error.
121
+ */
122
+ metadata: ResponseMetadata;
123
+ success: false;
124
+ }
125
+ export type SaludTotalListConnectionsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
126
+ /**
127
+ * A failed answer.
128
+ */
129
+ export interface SaludTotalListConnectionsTooManyRequestsError {
130
+ data: null;
131
+ error: SaludTotalListConnectionsTooManyRequestsFailure;
132
+ /**
133
+ * What every answer carries besides its data or error.
134
+ */
135
+ metadata: ResponseMetadata;
136
+ success: false;
137
+ }
138
+ export type SaludTotalListConnectionsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
34
139
  export interface SaludTotalVerifiedConnection {
35
140
  id: string;
36
141
  tag: "postconsulta" | "facturacion";
@@ -70,6 +175,32 @@ export interface SaludTotalVerifyConnectionBody {
70
175
  tag: "postconsulta" | "facturacion";
71
176
  username: string;
72
177
  }
178
+ /**
179
+ * A failed answer.
180
+ */
181
+ export interface SaludTotalVerifyConnectionConflictError {
182
+ data: null;
183
+ error: SaludTotalVerifyConnectionConflictFailure;
184
+ /**
185
+ * What every answer carries besides its data or error.
186
+ */
187
+ metadata: ResponseMetadata;
188
+ success: false;
189
+ }
190
+ export type SaludTotalVerifyConnectionConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
191
+ /**
192
+ * A failed answer.
193
+ */
194
+ export interface SaludTotalVerifyConnectionForbiddenError {
195
+ data: null;
196
+ error: SaludTotalVerifyConnectionForbiddenFailure;
197
+ /**
198
+ * What every answer carries besides its data or error.
199
+ */
200
+ metadata: ResponseMetadata;
201
+ success: false;
202
+ }
203
+ export type SaludTotalVerifyConnectionForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
73
204
  export type SaludTotalVerifyConnectionResult = {
74
205
  stateRef: string;
75
206
  status: "active";
@@ -89,6 +220,32 @@ export interface SaludTotalVerifyConnectionResultResponse {
89
220
  metadata: ResponseMetadata;
90
221
  success: true;
91
222
  }
223
+ /**
224
+ * A failed answer.
225
+ */
226
+ export interface SaludTotalVerifyConnectionServiceUnavailableError {
227
+ data: null;
228
+ error: SaludTotalVerifyConnectionServiceUnavailableFailure;
229
+ /**
230
+ * What every answer carries besides its data or error.
231
+ */
232
+ metadata: ResponseMetadata;
233
+ success: false;
234
+ }
235
+ export type SaludTotalVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
236
+ /**
237
+ * A failed answer.
238
+ */
239
+ export interface SaludTotalVerifyConnectionTooManyRequestsError {
240
+ data: null;
241
+ error: SaludTotalVerifyConnectionTooManyRequestsFailure;
242
+ /**
243
+ * What every answer carries besides its data or error.
244
+ */
245
+ metadata: ResponseMetadata;
246
+ success: false;
247
+ }
248
+ export type SaludTotalVerifyConnectionTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
92
249
  export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
93
250
  export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
94
251
  export declare const SaludTotalVerifiedConnectionCodec: import("../../_/codec.js").Codec;
@@ -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 { SaludTotalConnectionNotFoundError, SaludTotalConnectionNotFoundFailure, } from "./models.js";
5
+ export type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionNotFoundError, SaludTotalConnectionNotFoundFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, } from "./models.js";
@@ -1,4 +1,25 @@
1
1
  import type { Empty, ResponseMetadata } from "../models.js";
2
+ /**
3
+ * The connection directory or vault is unavailable.
4
+ */
5
+ export interface SaludTotalAccountUnavailableFailure {
6
+ /**
7
+ * The failure code, stable across releases.
8
+ */
9
+ code: "ACCOUNT_UNAVAILABLE";
10
+ /**
11
+ * No fields.
12
+ */
13
+ data: Empty;
14
+ /**
15
+ * What went wrong, for people; it never contains input values.
16
+ */
17
+ message: string;
18
+ /**
19
+ * Whether repeating the same request may succeed.
20
+ */
21
+ retryable: false;
22
+ }
2
23
  /**
3
24
  * A failed answer.
4
25
  */
@@ -35,3 +56,213 @@ export interface SaludTotalConnectionNotFoundFailure {
35
56
  */
36
57
  retryable: false;
37
58
  }
59
+ /**
60
+ * An active postconsultation connection in this organization is required.
61
+ */
62
+ export interface SaludTotalConnectionUnavailableFailure {
63
+ /**
64
+ * The failure code, stable across releases.
65
+ */
66
+ code: "CONNECTION_UNAVAILABLE";
67
+ /**
68
+ * No fields.
69
+ */
70
+ data: Empty;
71
+ /**
72
+ * What went wrong, for people; it never contains input values.
73
+ */
74
+ message: string;
75
+ /**
76
+ * Whether repeating the same request may succeed.
77
+ */
78
+ retryable: false;
79
+ }
80
+ /**
81
+ * The provider rejected the connection credentials.
82
+ */
83
+ export interface SaludTotalCredentialsRejectedFailure {
84
+ /**
85
+ * The failure code, stable across releases.
86
+ */
87
+ code: "CREDENTIALS_REJECTED";
88
+ /**
89
+ * No fields.
90
+ */
91
+ data: Empty;
92
+ /**
93
+ * What went wrong, for people; it never contains input values.
94
+ */
95
+ message: string;
96
+ /**
97
+ * Whether repeating the same request may succeed.
98
+ */
99
+ retryable: false;
100
+ }
101
+ /**
102
+ * The IPS operator must complete an interactive portal step.
103
+ */
104
+ export interface SaludTotalInteractiveVerificationRequiredFailure {
105
+ /**
106
+ * The failure code, stable across releases.
107
+ */
108
+ code: "INTERACTIVE_VERIFICATION_REQUIRED";
109
+ /**
110
+ * No fields.
111
+ */
112
+ data: Empty;
113
+ /**
114
+ * What went wrong, for people; it never contains input values.
115
+ */
116
+ message: string;
117
+ /**
118
+ * Whether repeating the same request may succeed.
119
+ */
120
+ retryable: false;
121
+ }
122
+ /**
123
+ * The provider returned a different IPS identity.
124
+ */
125
+ export interface SaludTotalIpsIdentityMismatchFailure {
126
+ /**
127
+ * The failure code, stable across releases.
128
+ */
129
+ code: "IPS_IDENTITY_MISMATCH";
130
+ /**
131
+ * No fields.
132
+ */
133
+ data: Empty;
134
+ /**
135
+ * What went wrong, for people; it never contains input values.
136
+ */
137
+ message: string;
138
+ /**
139
+ * Whether repeating the same request may succeed.
140
+ */
141
+ retryable: false;
142
+ }
143
+ /**
144
+ * The IPS login attempt limit has been reached. Wait before trying again.
145
+ */
146
+ export interface SaludTotalLoginCoolingDownFailure {
147
+ /**
148
+ * The failure code, stable across releases.
149
+ */
150
+ code: "LOGIN_COOLING_DOWN";
151
+ /**
152
+ * No fields.
153
+ */
154
+ data: Empty;
155
+ /**
156
+ * What went wrong, for people; it never contains input values.
157
+ */
158
+ message: string;
159
+ /**
160
+ * Whether repeating the same request may succeed.
161
+ */
162
+ retryable: false;
163
+ }
164
+ /**
165
+ * The account cannot access the required module.
166
+ */
167
+ export interface SaludTotalModuleForbiddenFailure {
168
+ /**
169
+ * The failure code, stable across releases.
170
+ */
171
+ code: "MODULE_FORBIDDEN";
172
+ /**
173
+ * No fields.
174
+ */
175
+ data: Empty;
176
+ /**
177
+ * What went wrong, for people; it never contains input values.
178
+ */
179
+ message: string;
180
+ /**
181
+ * Whether repeating the same request may succeed.
182
+ */
183
+ retryable: false;
184
+ }
185
+ /**
186
+ * The selected portal did not confirm access.
187
+ */
188
+ export interface SaludTotalPortalAccessUnverifiedFailure {
189
+ /**
190
+ * The failure code, stable across releases.
191
+ */
192
+ code: "PORTAL_ACCESS_UNVERIFIED";
193
+ /**
194
+ * No fields.
195
+ */
196
+ data: Empty;
197
+ /**
198
+ * What went wrong, for people; it never contains input values.
199
+ */
200
+ message: string;
201
+ /**
202
+ * Whether repeating the same request may succeed.
203
+ */
204
+ retryable: false;
205
+ }
206
+ /**
207
+ * The provider response is unavailable or unrecognized.
208
+ */
209
+ export interface SaludTotalProviderUnavailableFailure {
210
+ /**
211
+ * The failure code, stable across releases.
212
+ */
213
+ code: "PROVIDER_UNAVAILABLE";
214
+ /**
215
+ * No fields.
216
+ */
217
+ data: Empty;
218
+ /**
219
+ * What went wrong, for people; it never contains input values.
220
+ */
221
+ message: string;
222
+ /**
223
+ * Whether repeating the same request may succeed.
224
+ */
225
+ retryable: false;
226
+ }
227
+ /**
228
+ * The session changed while this read was in progress.
229
+ */
230
+ export interface SaludTotalSessionClosedFailure {
231
+ /**
232
+ * The failure code, stable across releases.
233
+ */
234
+ code: "SESSION_CLOSED";
235
+ /**
236
+ * No fields.
237
+ */
238
+ data: Empty;
239
+ /**
240
+ * What went wrong, for people; it never contains input values.
241
+ */
242
+ message: string;
243
+ /**
244
+ * Whether repeating the same request may succeed.
245
+ */
246
+ retryable: false;
247
+ }
248
+ /**
249
+ * The provider session expired.
250
+ */
251
+ export interface SaludTotalSessionExpiredFailure {
252
+ /**
253
+ * The failure code, stable across releases.
254
+ */
255
+ code: "SESSION_EXPIRED";
256
+ /**
257
+ * No fields.
258
+ */
259
+ data: Empty;
260
+ /**
261
+ * What went wrong, for people; it never contains input values.
262
+ */
263
+ message: string;
264
+ /**
265
+ * Whether repeating the same request may succeed.
266
+ */
267
+ retryable: false;
268
+ }
@@ -0,0 +1,53 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalPortalOperationPageResponse } 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
+ * Explore Salud Total portal operations
12
+ *
13
+ * Search the dated public client inventory by controller, path, HTTP method
14
+ * and evidence. Observed means verified through this module; client means a
15
+ * static reference. Entries are discovery metadata and confer no clinical or
16
+ * billing permission.
17
+ */
18
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
19
+ }
20
+ export declare function createClient(options: ClientOptions): Client;
21
+ export declare function bind(transport: Transport): Client;
22
+ export interface ListRequest {
23
+ /**
24
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
25
+ */
26
+ cursor?: string;
27
+ /**
28
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
29
+ */
30
+ direction?: "forward" | "backward";
31
+ /**
32
+ * Maximum items returned in one page. Defaults to 25; larger reads require
33
+ * another cursor.
34
+ */
35
+ limit?: number;
36
+ /**
37
+ * The client.
38
+ */
39
+ client?: "OficinaVirtual" | "OFVPerfilIPS";
40
+ /**
41
+ * The method.
42
+ */
43
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
44
+ /**
45
+ * The evidence.
46
+ */
47
+ evidence?: "client" | "observed";
48
+ /**
49
+ * The q.
50
+ */
51
+ q?: string;
52
+ }
53
+ export type ListResponse = SaludTotalPortalOperationPageResponse;
@@ -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/salud-total/portal-operations",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit", client: "client", method: "method", evidence: "evidence", q: "q" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": 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 { SaludTotalListPortalOperationsConflictError, SaludTotalListPortalOperationsConflictFailure, SaludTotalListPortalOperationsForbiddenError, SaludTotalListPortalOperationsForbiddenFailure, SaludTotalListPortalOperationsServiceUnavailableError, SaludTotalListPortalOperationsServiceUnavailableFailure, SaludTotalListPortalOperationsTooManyRequestsError, SaludTotalListPortalOperationsTooManyRequestsFailure, SaludTotalPortalOperation, SaludTotalPortalOperationPage, SaludTotalPortalOperationPageResponse, } 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,89 @@
1
+ import type { ForbiddenFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalListPortalOperationsConflictError {
7
+ data: null;
8
+ error: SaludTotalListPortalOperationsConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalListPortalOperationsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalListPortalOperationsForbiddenError {
20
+ data: null;
21
+ error: SaludTotalListPortalOperationsForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalListPortalOperationsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface SaludTotalListPortalOperationsServiceUnavailableError {
33
+ data: null;
34
+ error: SaludTotalListPortalOperationsServiceUnavailableFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type SaludTotalListPortalOperationsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface SaludTotalListPortalOperationsTooManyRequestsError {
46
+ data: null;
47
+ error: SaludTotalListPortalOperationsTooManyRequestsFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type SaludTotalListPortalOperationsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
55
+ export interface SaludTotalPortalOperation {
56
+ bodyFields: string[];
57
+ client: "OficinaVirtual" | "OFVPerfilIPS";
58
+ evidence: "client" | "observed";
59
+ id: string;
60
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
61
+ path: string;
62
+ queryFields: string[];
63
+ }
64
+ export interface SaludTotalPortalOperationPage {
65
+ /**
66
+ * Items admitted by this resource contract within the verified organization.
67
+ */
68
+ data: SaludTotalPortalOperation[];
69
+ /**
70
+ * Discriminator for a resource list response.
71
+ */
72
+ object: "list";
73
+ /**
74
+ * Opaque navigation cursors for this page’s stable keyset order.
75
+ */
76
+ pageInfo: PageInfo;
77
+ }
78
+ /**
79
+ * A successful answer.
80
+ */
81
+ export interface SaludTotalPortalOperationPageResponse {
82
+ data: SaludTotalPortalOperationPage;
83
+ error: null;
84
+ /**
85
+ * What every answer carries besides its data or error.
86
+ */
87
+ metadata: ResponseMetadata;
88
+ success: true;
89
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -14,5 +14,5 @@ const ListOperation = {
14
14
  route: "/v1/salud-total/portals",
15
15
  query: { cursor: "cursor", direction: "direction", limit: "limit" },
16
16
  response: null,
17
- errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": 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 { SaludTotalPortalPage, SaludTotalPortalPageResponse, } from "./models.js";
5
+ export type { SaludTotalListPortalsConflictError, SaludTotalListPortalsConflictFailure, SaludTotalListPortalsForbiddenError, SaludTotalListPortalsForbiddenFailure, SaludTotalListPortalsServiceUnavailableError, SaludTotalListPortalsServiceUnavailableFailure, SaludTotalListPortalsTooManyRequestsError, SaludTotalListPortalsTooManyRequestsFailure, SaludTotalPortalPage, SaludTotalPortalPageResponse, } from "./models.js";
@@ -1,4 +1,57 @@
1
- import type { PageInfo, ResponseMetadata } from "../../models.js";
1
+ import type { ForbiddenFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalListPortalsConflictError {
7
+ data: null;
8
+ error: SaludTotalListPortalsConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalListPortalsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalListPortalsForbiddenError {
20
+ data: null;
21
+ error: SaludTotalListPortalsForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalListPortalsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface SaludTotalListPortalsServiceUnavailableError {
33
+ data: null;
34
+ error: SaludTotalListPortalsServiceUnavailableFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type SaludTotalListPortalsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface SaludTotalListPortalsTooManyRequestsError {
46
+ data: null;
47
+ error: SaludTotalListPortalsTooManyRequestsFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type SaludTotalListPortalsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
2
55
  export interface SaludTotalPortalPage {
3
56
  /**
4
57
  * Items admitted by this resource contract within the verified organization.
@@ -0,0 +1,37 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type SaludTotalCloseConnectionSessionBody, type SaludTotalCloseConnectionSessionResultResponse, type SaludTotalGetConnectionSessionResultResponse } 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
+ * Delete sessions
12
+ *
13
+ * Discard the local IPS access token and any pending session acquisition for
14
+ * this connection. A subsequent authorized read may open a new session. This
15
+ * does not disable the Account connection.
16
+ */
17
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
18
+ /**
19
+ * List sessions
20
+ *
21
+ * Inspect the local IPS session lease. Closed is normal after expiry or
22
+ * Worker eviction. Never returns a provider token, member identifier or
23
+ * guarantee of authorization.
24
+ */
25
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
26
+ }
27
+ export declare function createClient(options: ClientOptions): Client;
28
+ export declare function bind(transport: Transport): Client;
29
+ export type DeleteRequest = SaludTotalCloseConnectionSessionBody;
30
+ export type DeleteResponse = SaludTotalCloseConnectionSessionResultResponse;
31
+ export interface GetRequest {
32
+ /**
33
+ * The connection id.
34
+ */
35
+ connectionId: string;
36
+ }
37
+ export type GetResponse = SaludTotalGetConnectionSessionResultResponse;
@@ -0,0 +1,27 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { SaludTotalGetConnectionSessionResultResponseCodec, } 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
+ };
13
+ }
14
+ const DeleteOperation = {
15
+ method: "DELETE",
16
+ route: "/v1/salud-total/sessions",
17
+ body: "flat",
18
+ response: null,
19
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
+ };
21
+ const GetOperation = {
22
+ method: "GET",
23
+ route: "/v1/salud-total/sessions",
24
+ query: { connectionId: "connectionId" },
25
+ response: SaludTotalGetConnectionSessionResultResponseCodec,
26
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
27
+ };
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, } from "./client.js";
5
+ export type { SaludTotalCloseConnectionSessionBody, SaludTotalCloseConnectionSessionConflictError, SaludTotalCloseConnectionSessionConflictFailure, SaludTotalCloseConnectionSessionForbiddenError, SaludTotalCloseConnectionSessionForbiddenFailure, SaludTotalCloseConnectionSessionResult, SaludTotalCloseConnectionSessionResultResponse, SaludTotalCloseConnectionSessionServiceUnavailableError, SaludTotalCloseConnectionSessionServiceUnavailableFailure, SaludTotalCloseConnectionSessionTooManyRequestsError, SaludTotalCloseConnectionSessionTooManyRequestsFailure, SaludTotalGetConnectionSessionResult, SaludTotalGetConnectionSessionResultResponse, } 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,90 @@
1
+ import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ export interface SaludTotalCloseConnectionSessionBody {
4
+ connectionId: string;
5
+ }
6
+ /**
7
+ * A failed answer.
8
+ */
9
+ export interface SaludTotalCloseConnectionSessionConflictError {
10
+ data: null;
11
+ error: SaludTotalCloseConnectionSessionConflictFailure;
12
+ /**
13
+ * What every answer carries besides its data or error.
14
+ */
15
+ metadata: ResponseMetadata;
16
+ success: false;
17
+ }
18
+ export type SaludTotalCloseConnectionSessionConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
19
+ /**
20
+ * A failed answer.
21
+ */
22
+ export interface SaludTotalCloseConnectionSessionForbiddenError {
23
+ data: null;
24
+ error: SaludTotalCloseConnectionSessionForbiddenFailure;
25
+ /**
26
+ * What every answer carries besides its data or error.
27
+ */
28
+ metadata: ResponseMetadata;
29
+ success: false;
30
+ }
31
+ export type SaludTotalCloseConnectionSessionForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
32
+ export interface SaludTotalCloseConnectionSessionResult {
33
+ closed: true;
34
+ }
35
+ /**
36
+ * A successful answer.
37
+ */
38
+ export interface SaludTotalCloseConnectionSessionResultResponse {
39
+ data: SaludTotalCloseConnectionSessionResult;
40
+ error: null;
41
+ /**
42
+ * What every answer carries besides its data or error.
43
+ */
44
+ metadata: ResponseMetadata;
45
+ success: true;
46
+ }
47
+ /**
48
+ * A failed answer.
49
+ */
50
+ export interface SaludTotalCloseConnectionSessionServiceUnavailableError {
51
+ data: null;
52
+ error: SaludTotalCloseConnectionSessionServiceUnavailableFailure;
53
+ /**
54
+ * What every answer carries besides its data or error.
55
+ */
56
+ metadata: ResponseMetadata;
57
+ success: false;
58
+ }
59
+ export type SaludTotalCloseConnectionSessionServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
60
+ /**
61
+ * A failed answer.
62
+ */
63
+ export interface SaludTotalCloseConnectionSessionTooManyRequestsError {
64
+ data: null;
65
+ error: SaludTotalCloseConnectionSessionTooManyRequestsFailure;
66
+ /**
67
+ * What every answer carries besides its data or error.
68
+ */
69
+ metadata: ResponseMetadata;
70
+ success: false;
71
+ }
72
+ export type SaludTotalCloseConnectionSessionTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
73
+ export interface SaludTotalGetConnectionSessionResult {
74
+ expiresAt: Temporal.Instant | null;
75
+ status: "open" | "opening" | "closed";
76
+ }
77
+ /**
78
+ * A successful answer.
79
+ */
80
+ export interface SaludTotalGetConnectionSessionResultResponse {
81
+ data: SaludTotalGetConnectionSessionResult;
82
+ error: null;
83
+ /**
84
+ * What every answer carries besides its data or error.
85
+ */
86
+ metadata: ResponseMetadata;
87
+ success: true;
88
+ }
89
+ export declare const SaludTotalGetConnectionSessionResultCodec: import("../../_/codec.js").Codec;
90
+ export declare const SaludTotalGetConnectionSessionResultResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,9 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object } from "../../_/index.js";
4
+ export const SaludTotalGetConnectionSessionResultCodec = object([
5
+ ["expiresAt", null, instant],
6
+ ]);
7
+ export const SaludTotalGetConnectionSessionResultResponseCodec = object([
8
+ ["data", null, () => SaludTotalGetConnectionSessionResultCodec],
9
+ ]);
@@ -0,0 +1,36 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalPreviewWorkflowResultResponse } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * List workflow previews
12
+ *
13
+ * Simulate an IPS workflow using only enums and local fixtures. One workflow
14
+ * parameter returns one line in Spanish. Optional scenarios include missing
15
+ * records, missing documents, ambiguous matches, permissions, expiry and
16
+ * uncertain responses. No connection or member is contacted.
17
+ */
18
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
19
+ }
20
+ export declare function createClient(options: ClientOptions): Client;
21
+ export declare function bind(transport: Transport): Client;
22
+ export interface GetRequest {
23
+ /**
24
+ * The workflow.
25
+ */
26
+ workflow: "afiliacion" | "autorizacion" | "radicacion" | "seguimiento" | "facturacion" | "glosas" | "direccionamiento" | "remisiones" | "programaciones" | "rips" | "mipres" | "diagnostico";
27
+ /**
28
+ * The scenario.
29
+ */
30
+ scenario?: "normal" | "sin_registro" | "ambiguo" | "sin_permiso" | "sesion_expirada" | "falta_soporte" | "respuesta_perdida";
31
+ /**
32
+ * The view.
33
+ */
34
+ view?: "brief" | "trace";
35
+ }
36
+ export type GetResponse = SaludTotalPreviewWorkflowResultResponse;
@@ -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
+ get: (request, options) => transport.send(GetOperation, request, options),
10
+ };
11
+ }
12
+ const GetOperation = {
13
+ method: "GET",
14
+ route: "/v1/salud-total/workflow-previews",
15
+ query: { workflow: "workflow", scenario: "scenario", view: "view" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, GetRequest, GetResponse, } from "./client.js";
5
+ export type { SaludTotalPreviewWorkflowConflictError, SaludTotalPreviewWorkflowConflictFailure, SaludTotalPreviewWorkflowForbiddenError, SaludTotalPreviewWorkflowForbiddenFailure, SaludTotalPreviewWorkflowResult, SaludTotalPreviewWorkflowResultResponse, SaludTotalPreviewWorkflowServiceUnavailableError, SaludTotalPreviewWorkflowServiceUnavailableFailure, SaludTotalPreviewWorkflowTooManyRequestsError, SaludTotalPreviewWorkflowTooManyRequestsFailure, } 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,69 @@
1
+ import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalPreviewWorkflowConflictError {
7
+ data: null;
8
+ error: SaludTotalPreviewWorkflowConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalPreviewWorkflowConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalPreviewWorkflowForbiddenError {
20
+ data: null;
21
+ error: SaludTotalPreviewWorkflowForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalPreviewWorkflowForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
29
+ export interface SaludTotalPreviewWorkflowResult {
30
+ text: string;
31
+ }
32
+ /**
33
+ * A successful answer.
34
+ */
35
+ export interface SaludTotalPreviewWorkflowResultResponse {
36
+ data: SaludTotalPreviewWorkflowResult;
37
+ error: null;
38
+ /**
39
+ * What every answer carries besides its data or error.
40
+ */
41
+ metadata: ResponseMetadata;
42
+ success: true;
43
+ }
44
+ /**
45
+ * A failed answer.
46
+ */
47
+ export interface SaludTotalPreviewWorkflowServiceUnavailableError {
48
+ data: null;
49
+ error: SaludTotalPreviewWorkflowServiceUnavailableFailure;
50
+ /**
51
+ * What every answer carries besides its data or error.
52
+ */
53
+ metadata: ResponseMetadata;
54
+ success: false;
55
+ }
56
+ export type SaludTotalPreviewWorkflowServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
57
+ /**
58
+ * A failed answer.
59
+ */
60
+ export interface SaludTotalPreviewWorkflowTooManyRequestsError {
61
+ data: null;
62
+ error: SaludTotalPreviewWorkflowTooManyRequestsFailure;
63
+ /**
64
+ * What every answer carries besides its data or error.
65
+ */
66
+ metadata: ResponseMetadata;
67
+ success: false;
68
+ }
69
+ export type SaludTotalPreviewWorkflowTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -56,8 +56,8 @@
56
56
  "packageManager": "bun@1.4.3",
57
57
  "arbol": {
58
58
  "openapi": {
59
- "release": "1.20261031.193902",
60
- "sha256": "c6c73dfad36cbb170b5cab1e319c23daa81f5b40b4f810f9fe11d12f43771b8e"
59
+ "release": "1.20261031.201907",
60
+ "sha256": "3e10fe901b456f400237bedddff41efe6837553d78c343eb5476d905172e19ba"
61
61
  }
62
62
  }
63
63
  }