@arbol-ai/sdk 5.1.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.
- package/dist/saludTotal/affiliations/client.d.ts +23 -0
- package/dist/saludTotal/affiliations/client.js +18 -0
- package/dist/saludTotal/affiliations/index.d.ts +5 -0
- package/dist/saludTotal/affiliations/index.js +4 -0
- package/dist/saludTotal/affiliations/models.d.ts +78 -0
- package/dist/saludTotal/affiliations/models.js +3 -0
- package/dist/saludTotal/client.d.ts +8 -0
- package/dist/saludTotal/client.js +20 -0
- package/dist/saludTotal/connections/client.d.ts +29 -1
- package/dist/saludTotal/connections/client.js +11 -3
- package/dist/saludTotal/connections/index.d.ts +2 -2
- package/dist/saludTotal/connections/models.d.ts +192 -1
- package/dist/saludTotal/connections/models.js +10 -1
- package/dist/saludTotal/index.d.ts +1 -1
- package/dist/saludTotal/models.d.ts +231 -0
- package/dist/saludTotal/portalOperations/client.d.ts +53 -0
- package/dist/saludTotal/portalOperations/client.js +18 -0
- package/dist/saludTotal/portalOperations/index.d.ts +5 -0
- package/dist/saludTotal/portalOperations/index.js +4 -0
- package/dist/saludTotal/portalOperations/models.d.ts +89 -0
- package/dist/saludTotal/portalOperations/models.js +3 -0
- package/dist/saludTotal/portals/client.js +1 -1
- package/dist/saludTotal/portals/index.d.ts +1 -1
- package/dist/saludTotal/portals/models.d.ts +54 -1
- package/dist/saludTotal/sessions/client.d.ts +37 -0
- package/dist/saludTotal/sessions/client.js +27 -0
- package/dist/saludTotal/sessions/index.d.ts +5 -0
- package/dist/saludTotal/sessions/index.js +4 -0
- package/dist/saludTotal/sessions/models.d.ts +90 -0
- package/dist/saludTotal/sessions/models.js +9 -0
- package/dist/saludTotal/workflowPreviews/client.d.ts +36 -0
- package/dist/saludTotal/workflowPreviews/client.js +18 -0
- package/dist/saludTotal/workflowPreviews/index.d.ts +5 -0
- package/dist/saludTotal/workflowPreviews/index.js +4 -0
- package/dist/saludTotal/workflowPreviews/models.d.ts +69 -0
- package/dist/saludTotal/workflowPreviews/models.js +3 -0
- 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,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;
|
|
@@ -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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type SaludTotalDeleteConnectionResultResponse, type SaludTotalGetConnectionResultResponse, type SaludTotalVerifyConnectionBody, type SaludTotalVerifyConnectionResultResponse } from "./models.js";
|
|
2
|
+
import { type SaludTotalDeleteConnectionResultResponse, type SaludTotalGetConnectionResultResponse, type SaludTotalVerifiedConnectionPageResponse, type SaludTotalVerifyConnectionBody, type SaludTotalVerifyConnectionResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -20,6 +20,14 @@ export interface Client {
|
|
|
20
20
|
* verification.
|
|
21
21
|
*/
|
|
22
22
|
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* List verified IPS connections
|
|
25
|
+
*
|
|
26
|
+
* Find IPS connections verified for this organization. Filter by workflow
|
|
27
|
+
* tag. verifiedAt records a past portal login and does not indicate whether
|
|
28
|
+
* Account has enabled a connection for agents.
|
|
29
|
+
*/
|
|
30
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
23
31
|
/**
|
|
24
32
|
* Verify an IPS connection
|
|
25
33
|
*
|
|
@@ -44,6 +52,26 @@ export interface GetRequest {
|
|
|
44
52
|
connectionId: string;
|
|
45
53
|
}
|
|
46
54
|
export type GetResponse = SaludTotalGetConnectionResultResponse;
|
|
55
|
+
export interface ListRequest {
|
|
56
|
+
/**
|
|
57
|
+
* The cursor.
|
|
58
|
+
*/
|
|
59
|
+
cursor?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
62
|
+
*/
|
|
63
|
+
direction?: "forward" | "backward";
|
|
64
|
+
/**
|
|
65
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
66
|
+
* another cursor.
|
|
67
|
+
*/
|
|
68
|
+
limit?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The tag.
|
|
71
|
+
*/
|
|
72
|
+
tag?: "postconsulta" | "facturacion";
|
|
73
|
+
}
|
|
74
|
+
export type ListResponse = SaludTotalVerifiedConnectionPageResponse;
|
|
47
75
|
export type VerifyRequest = {
|
|
48
76
|
/**
|
|
49
77
|
* The connection id.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import { SaludTotalGetConnectionResultResponseCodec, } from "./models.js";
|
|
4
|
+
import { SaludTotalGetConnectionResultResponseCodec, SaludTotalVerifiedConnectionPageResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -9,6 +9,7 @@ export function bind(transport) {
|
|
|
9
9
|
return {
|
|
10
10
|
delete: (request, options) => transport.send(DeleteOperation, request, options),
|
|
11
11
|
get: (request, options) => transport.send(GetOperation, request, options),
|
|
12
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
12
13
|
verify: (request, options) => transport.send(VerifyOperation, request, options),
|
|
13
14
|
};
|
|
14
15
|
}
|
|
@@ -16,7 +17,7 @@ const DeleteOperation = {
|
|
|
16
17
|
method: "DELETE",
|
|
17
18
|
route: "/v1/salud-total/connections/{connectionId}",
|
|
18
19
|
response: null,
|
|
19
|
-
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 },
|
|
20
21
|
};
|
|
21
22
|
const GetOperation = {
|
|
22
23
|
method: "GET",
|
|
@@ -24,10 +25,17 @@ const GetOperation = {
|
|
|
24
25
|
response: SaludTotalGetConnectionResultResponseCodec,
|
|
25
26
|
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
26
27
|
};
|
|
28
|
+
const ListOperation = {
|
|
29
|
+
method: "GET",
|
|
30
|
+
route: "/v1/salud-total/connections",
|
|
31
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", tag: "tag" },
|
|
32
|
+
response: SaludTotalVerifiedConnectionPageResponseCodec,
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
|
+
};
|
|
27
35
|
const VerifyOperation = {
|
|
28
36
|
method: "POST",
|
|
29
37
|
route: "/v1/salud-total/connections/{connectionId}/verify",
|
|
30
38
|
body: "flat",
|
|
31
39
|
response: null,
|
|
32
|
-
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 },
|
|
33
41
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ApiError } from "../../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } from "./models.js";
|
|
4
|
+
export type { Client, ClientOptions, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, VerifyRequest, VerifyResponse, } from "./client.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 { 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,89 @@ 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;
|
|
139
|
+
export interface SaludTotalVerifiedConnection {
|
|
140
|
+
id: string;
|
|
141
|
+
tag: "postconsulta" | "facturacion";
|
|
142
|
+
verifiedAt: Temporal.Instant;
|
|
143
|
+
}
|
|
144
|
+
export interface SaludTotalVerifiedConnectionPage {
|
|
145
|
+
/**
|
|
146
|
+
* Items admitted by this resource contract within the verified organization.
|
|
147
|
+
*/
|
|
148
|
+
data: SaludTotalVerifiedConnection[];
|
|
149
|
+
/**
|
|
150
|
+
* Discriminator for a resource list response.
|
|
151
|
+
*/
|
|
152
|
+
object: "list";
|
|
153
|
+
/**
|
|
154
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
155
|
+
*/
|
|
156
|
+
pageInfo: PageInfo;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A successful answer.
|
|
160
|
+
*/
|
|
161
|
+
export interface SaludTotalVerifiedConnectionPageResponse {
|
|
162
|
+
data: SaludTotalVerifiedConnectionPage;
|
|
163
|
+
error: null;
|
|
164
|
+
/**
|
|
165
|
+
* What every answer carries besides its data or error.
|
|
166
|
+
*/
|
|
167
|
+
metadata: ResponseMetadata;
|
|
168
|
+
success: true;
|
|
169
|
+
}
|
|
34
170
|
export interface SaludTotalVerifyConnectionBody {
|
|
35
171
|
documentType: "CC";
|
|
36
172
|
name: string;
|
|
@@ -39,6 +175,32 @@ export interface SaludTotalVerifyConnectionBody {
|
|
|
39
175
|
tag: "postconsulta" | "facturacion";
|
|
40
176
|
username: string;
|
|
41
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;
|
|
42
204
|
export type SaludTotalVerifyConnectionResult = {
|
|
43
205
|
stateRef: string;
|
|
44
206
|
status: "active";
|
|
@@ -58,5 +220,34 @@ export interface SaludTotalVerifyConnectionResultResponse {
|
|
|
58
220
|
metadata: ResponseMetadata;
|
|
59
221
|
success: true;
|
|
60
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;
|
|
61
249
|
export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
|
|
62
250
|
export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
|
|
251
|
+
export declare const SaludTotalVerifiedConnectionCodec: import("../../_/codec.js").Codec;
|
|
252
|
+
export declare const SaludTotalVerifiedConnectionPageCodec: import("../../_/codec.js").Codec;
|
|
253
|
+
export declare const SaludTotalVerifiedConnectionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { instant, object } from "../../_/index.js";
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
4
|
export const SaludTotalGetConnectionResultCodec = object([
|
|
5
5
|
["verifiedAt", null, instant],
|
|
6
6
|
]);
|
|
7
7
|
export const SaludTotalGetConnectionResultResponseCodec = object([
|
|
8
8
|
["data", null, () => SaludTotalGetConnectionResultCodec],
|
|
9
9
|
]);
|
|
10
|
+
export const SaludTotalVerifiedConnectionCodec = object([
|
|
11
|
+
["verifiedAt", null, instant],
|
|
12
|
+
]);
|
|
13
|
+
export const SaludTotalVerifiedConnectionPageCodec = object([
|
|
14
|
+
["data", null, array(() => SaludTotalVerifiedConnectionCodec)],
|
|
15
|
+
]);
|
|
16
|
+
export const SaludTotalVerifiedConnectionPageResponseCodec = object([
|
|
17
|
+
["data", null, () => SaludTotalVerifiedConnectionPageCodec],
|
|
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, } 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";
|