@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
|
@@ -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,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
|
+
}
|
|
@@ -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,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
|
+
]);
|