@arbol-ai/sdk 5.2.0 → 5.4.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 (54) 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/authorizations/client.d.ts +22 -0
  8. package/dist/saludTotal/authorizations/client.js +20 -0
  9. package/dist/saludTotal/authorizations/index.d.ts +5 -0
  10. package/dist/saludTotal/authorizations/index.js +4 -0
  11. package/dist/saludTotal/authorizations/models.d.ts +54 -0
  12. package/dist/saludTotal/authorizations/models.js +3 -0
  13. package/dist/saludTotal/client.d.ts +14 -0
  14. package/dist/saludTotal/client.js +35 -0
  15. package/dist/saludTotal/connections/client.js +3 -3
  16. package/dist/saludTotal/connections/index.d.ts +1 -1
  17. package/dist/saludTotal/connections/models.d.ts +158 -1
  18. package/dist/saludTotal/filings/client.d.ts +23 -0
  19. package/dist/saludTotal/filings/client.js +20 -0
  20. package/dist/saludTotal/filings/index.d.ts +5 -0
  21. package/dist/saludTotal/filings/index.js +4 -0
  22. package/dist/saludTotal/filings/models.d.ts +54 -0
  23. package/dist/saludTotal/filings/models.js +3 -0
  24. package/dist/saludTotal/index.d.ts +1 -1
  25. package/dist/saludTotal/models.d.ts +285 -0
  26. package/dist/saludTotal/models.js +4 -1
  27. package/dist/saludTotal/portalOperations/client.d.ts +53 -0
  28. package/dist/saludTotal/portalOperations/client.js +18 -0
  29. package/dist/saludTotal/portalOperations/index.d.ts +5 -0
  30. package/dist/saludTotal/portalOperations/index.js +4 -0
  31. package/dist/saludTotal/portalOperations/models.d.ts +91 -0
  32. package/dist/saludTotal/portalOperations/models.js +3 -0
  33. package/dist/saludTotal/portals/client.js +1 -1
  34. package/dist/saludTotal/portals/index.d.ts +1 -1
  35. package/dist/saludTotal/portals/models.d.ts +54 -1
  36. package/dist/saludTotal/referenceOptions/client.d.ts +49 -0
  37. package/dist/saludTotal/referenceOptions/client.js +18 -0
  38. package/dist/saludTotal/referenceOptions/index.d.ts +5 -0
  39. package/dist/saludTotal/referenceOptions/index.js +4 -0
  40. package/dist/saludTotal/referenceOptions/models.d.ts +84 -0
  41. package/dist/saludTotal/referenceOptions/models.js +3 -0
  42. package/dist/saludTotal/sessions/client.d.ts +41 -0
  43. package/dist/saludTotal/sessions/client.js +27 -0
  44. package/dist/saludTotal/sessions/index.d.ts +5 -0
  45. package/dist/saludTotal/sessions/index.js +4 -0
  46. package/dist/saludTotal/sessions/models.d.ts +90 -0
  47. package/dist/saludTotal/sessions/models.js +9 -0
  48. package/dist/saludTotal/workflowPreviews/client.d.ts +36 -0
  49. package/dist/saludTotal/workflowPreviews/client.js +18 -0
  50. package/dist/saludTotal/workflowPreviews/index.d.ts +5 -0
  51. package/dist/saludTotal/workflowPreviews/index.js +4 -0
  52. package/dist/saludTotal/workflowPreviews/models.d.ts +69 -0
  53. package/dist/saludTotal/workflowPreviews/models.js +3 -0
  54. package/package.json +3 -3
@@ -0,0 +1,54 @@
1
+ import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, SaludTotalSiteUnavailableFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalLookupFilingsConflictError {
7
+ data: null;
8
+ error: SaludTotalLookupFilingsConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalLookupFilingsConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalLookupFilingsForbiddenError {
20
+ data: null;
21
+ error: SaludTotalLookupFilingsForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalLookupFilingsForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface SaludTotalLookupFilingsServiceUnavailableError {
33
+ data: null;
34
+ error: SaludTotalLookupFilingsServiceUnavailableFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type SaludTotalLookupFilingsServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface SaludTotalLookupFilingsTooManyRequestsError {
46
+ data: null;
47
+ error: SaludTotalLookupFilingsTooManyRequestsFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type SaludTotalLookupFilingsTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -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, SaludTotalRecordAvailability, SaludTotalRecordAvailabilityResponse, SaludTotalScopedDayLookup, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, SaludTotalSiteUnavailableFailure, } 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,267 @@ 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
+ export interface SaludTotalRecordAvailability {
228
+ recordCount: number | null;
229
+ scope: "institution" | "site";
230
+ status: "member_no_match" | "member_ambiguous" | "no_records" | "records_found";
231
+ }
232
+ /**
233
+ * A successful answer.
234
+ */
235
+ export interface SaludTotalRecordAvailabilityResponse {
236
+ data: SaludTotalRecordAvailability;
237
+ error: null;
238
+ /**
239
+ * What every answer carries besides its data or error.
240
+ */
241
+ metadata: ResponseMetadata;
242
+ success: true;
243
+ }
244
+ export interface SaludTotalScopedDayLookup {
245
+ branchId: number;
246
+ connectionId: string;
247
+ /**
248
+ * One local calendar day; the request never traverses an open-ended date
249
+ * range.
250
+ */
251
+ day: Temporal.PlainDate;
252
+ /**
253
+ * Exact authorized member document. Send it only in the request body.
254
+ */
255
+ documentNumber: string;
256
+ documentType: "CC";
257
+ siteId: number;
258
+ }
259
+ /**
260
+ * The session changed while this read was in progress.
261
+ */
262
+ export interface SaludTotalSessionClosedFailure {
263
+ /**
264
+ * The failure code, stable across releases.
265
+ */
266
+ code: "SESSION_CLOSED";
267
+ /**
268
+ * No fields.
269
+ */
270
+ data: Empty;
271
+ /**
272
+ * What went wrong, for people; it never contains input values.
273
+ */
274
+ message: string;
275
+ /**
276
+ * Whether repeating the same request may succeed.
277
+ */
278
+ retryable: false;
279
+ }
280
+ /**
281
+ * The provider session expired.
282
+ */
283
+ export interface SaludTotalSessionExpiredFailure {
284
+ /**
285
+ * The failure code, stable across releases.
286
+ */
287
+ code: "SESSION_EXPIRED";
288
+ /**
289
+ * No fields.
290
+ */
291
+ data: Empty;
292
+ /**
293
+ * What went wrong, for people; it never contains input values.
294
+ */
295
+ message: string;
296
+ /**
297
+ * Whether repeating the same request may succeed.
298
+ */
299
+ retryable: false;
300
+ }
301
+ /**
302
+ * This branch or site is not available to the selected IPS connection.
303
+ */
304
+ export interface SaludTotalSiteUnavailableFailure {
305
+ /**
306
+ * The failure code, stable across releases.
307
+ */
308
+ code: "SITE_UNAVAILABLE";
309
+ /**
310
+ * No fields.
311
+ */
312
+ data: Empty;
313
+ /**
314
+ * What went wrong, for people; it never contains input values.
315
+ */
316
+ message: string;
317
+ /**
318
+ * Whether repeating the same request may succeed.
319
+ */
320
+ retryable: false;
321
+ }
322
+ export declare const SaludTotalScopedDayLookupCodec: import("../_/codec.js").Codec;
@@ -1,3 +1,6 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- export {};
3
+ import { date, object } from "../_/index.js";
4
+ export const SaludTotalScopedDayLookupCodec = object([
5
+ ["day", null, date],
6
+ ]);
@@ -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,91 @@
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, SaludTotalSiteUnavailableFailure } 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 | SaludTotalSiteUnavailableFailure;
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
+ apiBases: string[];
57
+ bodyFields: string[];
58
+ client: "OficinaVirtual" | "OFVPerfilIPS";
59
+ evidence: "client" | "observed";
60
+ id: string;
61
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
62
+ observedBases: string[];
63
+ path: string;
64
+ queryFields: string[];
65
+ }
66
+ export interface SaludTotalPortalOperationPage {
67
+ /**
68
+ * Items admitted by this resource contract within the verified organization.
69
+ */
70
+ data: SaludTotalPortalOperation[];
71
+ /**
72
+ * Discriminator for a resource list response.
73
+ */
74
+ object: "list";
75
+ /**
76
+ * Opaque navigation cursors for this page’s stable keyset order.
77
+ */
78
+ pageInfo: PageInfo;
79
+ }
80
+ /**
81
+ * A successful answer.
82
+ */
83
+ export interface SaludTotalPortalOperationPageResponse {
84
+ data: SaludTotalPortalOperationPage;
85
+ error: null;
86
+ /**
87
+ * What every answer carries besides its data or error.
88
+ */
89
+ metadata: ResponseMetadata;
90
+ success: true;
91
+ }
@@ -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, SaludTotalSiteUnavailableFailure } 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 | SaludTotalSiteUnavailableFailure;
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,49 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalIpsReferencePageResponse } 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 reference options
12
+ *
13
+ * List live administrative choices for one active IPS connection. Query
14
+ * branches first, then sites with branchId. Catalogs include document types,
15
+ * affiliation states, attachment groups and institutional agreement
16
+ * references. Returns IDs and labels only.
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 connection id.
38
+ */
39
+ connectionId: string;
40
+ /**
41
+ * The catalog.
42
+ */
43
+ catalog: "branches" | "sites" | "document_types" | "affiliation_states" | "attachment_groups" | "agreements";
44
+ /**
45
+ * The branch id.
46
+ */
47
+ branchId?: number;
48
+ }
49
+ export type ListResponse = SaludTotalIpsReferencePageResponse;