@arbol-ai/sdk 5.32.0 → 5.34.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 (75) hide show
  1. package/dist/account/permissions/models.d.ts +1 -1
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.js +5 -0
  4. package/dist/comfachoco/affiliations/client.d.ts +24 -0
  5. package/dist/comfachoco/affiliations/client.js +19 -0
  6. package/dist/comfachoco/affiliations/index.d.ts +5 -0
  7. package/dist/comfachoco/affiliations/index.js +4 -0
  8. package/dist/comfachoco/affiliations/models.d.ts +97 -0
  9. package/dist/comfachoco/affiliations/models.js +13 -0
  10. package/dist/comfachoco/client.d.ts +15 -0
  11. package/dist/comfachoco/client.js +20 -0
  12. package/dist/comfachoco/connections/client.d.ts +55 -0
  13. package/dist/comfachoco/connections/client.js +33 -0
  14. package/dist/comfachoco/connections/index.d.ts +5 -0
  15. package/dist/comfachoco/connections/index.js +4 -0
  16. package/dist/comfachoco/connections/models.d.ts +204 -0
  17. package/dist/comfachoco/connections/models.js +9 -0
  18. package/dist/comfachoco/index.d.ts +5 -0
  19. package/dist/comfachoco/index.js +4 -0
  20. package/dist/comfachoco/models.d.ts +220 -0
  21. package/dist/comfachoco/models.js +3 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/models.d.ts +12 -0
  24. package/dist/models.js +3 -0
  25. package/dist/nuevaEps/affiliations/models.d.ts +2 -2
  26. package/dist/nuevaEps/client.d.ts +6 -0
  27. package/dist/nuevaEps/client.js +15 -0
  28. package/dist/nuevaEps/connections/models.d.ts +6 -5
  29. package/dist/nuevaEps/index.d.ts +1 -1
  30. package/dist/nuevaEps/ingestionErrorReports/client.d.ts +33 -0
  31. package/dist/nuevaEps/ingestionErrorReports/client.js +19 -0
  32. package/dist/nuevaEps/ingestionErrorReports/index.d.ts +5 -0
  33. package/dist/nuevaEps/ingestionErrorReports/index.js +4 -0
  34. package/dist/nuevaEps/ingestionErrorReports/models.d.ts +87 -0
  35. package/dist/nuevaEps/ingestionErrorReports/models.js +10 -0
  36. package/dist/nuevaEps/ingestions/client.d.ts +68 -0
  37. package/dist/nuevaEps/ingestions/client.js +26 -0
  38. package/dist/nuevaEps/ingestions/index.d.ts +5 -0
  39. package/dist/nuevaEps/ingestions/index.js +4 -0
  40. package/dist/nuevaEps/ingestions/models.d.ts +182 -0
  41. package/dist/nuevaEps/ingestions/models.js +3 -0
  42. package/dist/nuevaEps/models.d.ts +65 -0
  43. package/dist/nuevaEps/precursoras/client.d.ts +27 -0
  44. package/dist/nuevaEps/precursoras/client.js +18 -0
  45. package/dist/nuevaEps/precursoras/index.d.ts +5 -0
  46. package/dist/nuevaEps/precursoras/index.js +4 -0
  47. package/dist/nuevaEps/precursoras/models.d.ts +94 -0
  48. package/dist/nuevaEps/precursoras/models.js +3 -0
  49. package/dist/raiz/channels/models.d.ts +10 -10
  50. package/dist/raiz/channels/models.js +1 -1
  51. package/dist/raiz/conversations/client.d.ts +24 -9
  52. package/dist/raiz/conversations/index.d.ts +1 -1
  53. package/dist/raiz/conversations/models.d.ts +3 -14
  54. package/dist/raiz/conversations/models.js +2 -4
  55. package/dist/raiz/index.d.ts +1 -1
  56. package/dist/raiz/knowledge/client.d.ts +4 -3
  57. package/dist/raiz/models.d.ts +8 -2
  58. package/dist/raiz/reports/client.d.ts +35 -20
  59. package/dist/raiz/reports/client.js +1 -1
  60. package/dist/raiz/reports/models.d.ts +21 -0
  61. package/dist/raiz/reports/models.js +1 -1
  62. package/dist/sura/client.d.ts +2 -0
  63. package/dist/sura/client.js +5 -0
  64. package/dist/sura/index.d.ts +1 -1
  65. package/dist/sura/models.d.ts +45 -0
  66. package/dist/sura/models.js +10 -1
  67. package/dist/sura/operations/models.d.ts +2 -2
  68. package/dist/sura/operations/models.js +2 -2
  69. package/dist/sura/schedules/client.d.ts +29 -0
  70. package/dist/sura/schedules/client.js +20 -0
  71. package/dist/sura/schedules/index.d.ts +5 -0
  72. package/dist/sura/schedules/index.js +4 -0
  73. package/dist/sura/schedules/models.d.ts +79 -0
  74. package/dist/sura/schedules/models.js +11 -0
  75. package/package.json +5 -4
@@ -0,0 +1,220 @@
1
+ import type { Empty, ResponseMetadata } from "../models.js";
2
+ /**
3
+ * A failed answer.
4
+ */
5
+ export interface ComfachocoConnectionNotFoundError {
6
+ data: null;
7
+ /**
8
+ * The connection does not exist.
9
+ */
10
+ error: ComfachocoConnectionNotFoundFailure;
11
+ /**
12
+ * What every answer carries besides its data or error.
13
+ */
14
+ metadata: ResponseMetadata;
15
+ success: false;
16
+ }
17
+ /**
18
+ * The connection does not exist.
19
+ */
20
+ export interface ComfachocoConnectionNotFoundFailure {
21
+ /**
22
+ * The failure code, stable across releases.
23
+ */
24
+ code: "CONNECTION_NOT_FOUND";
25
+ /**
26
+ * No fields.
27
+ */
28
+ data: Empty;
29
+ /**
30
+ * What went wrong, for people; it never contains input values.
31
+ */
32
+ message: string;
33
+ /**
34
+ * Whether repeating the same request may succeed.
35
+ */
36
+ retryable: false;
37
+ }
38
+ /**
39
+ * A failed answer.
40
+ */
41
+ export interface ComfachocoConnectionRequiredError {
42
+ data: null;
43
+ /**
44
+ * Select an active connection.
45
+ */
46
+ error: ComfachocoConnectionRequiredFailure;
47
+ /**
48
+ * What every answer carries besides its data or error.
49
+ */
50
+ metadata: ResponseMetadata;
51
+ success: false;
52
+ }
53
+ /**
54
+ * Select an active connection.
55
+ */
56
+ export interface ComfachocoConnectionRequiredFailure {
57
+ /**
58
+ * The failure code, stable across releases.
59
+ */
60
+ code: "CONNECTION_REQUIRED";
61
+ /**
62
+ * No fields.
63
+ */
64
+ data: Empty;
65
+ /**
66
+ * What went wrong, for people; it never contains input values.
67
+ */
68
+ message: string;
69
+ /**
70
+ * Whether repeating the same request may succeed.
71
+ */
72
+ retryable: false;
73
+ }
74
+ /**
75
+ * The provider refused the credentials.
76
+ */
77
+ export interface ComfachocoCredentialsRejectedFailure {
78
+ /**
79
+ * The failure code, stable across releases.
80
+ */
81
+ code: "CREDENTIALS_REJECTED";
82
+ /**
83
+ * No fields.
84
+ */
85
+ data: Empty;
86
+ /**
87
+ * What went wrong, for people; it never contains input values.
88
+ */
89
+ message: string;
90
+ /**
91
+ * Whether repeating the same request may succeed.
92
+ */
93
+ retryable: false;
94
+ }
95
+ /**
96
+ * Provider sign-in is cooling down.
97
+ */
98
+ export interface ComfachocoLoginCoolingDownFailure {
99
+ /**
100
+ * The failure code, stable across releases.
101
+ */
102
+ code: "LOGIN_COOLING_DOWN";
103
+ /**
104
+ * No fields.
105
+ */
106
+ data: Empty;
107
+ /**
108
+ * What went wrong, for people; it never contains input values.
109
+ */
110
+ message: string;
111
+ /**
112
+ * Whether repeating the same request may succeed.
113
+ */
114
+ retryable: true;
115
+ }
116
+ /**
117
+ * The provider record did not match the requested document.
118
+ */
119
+ export interface ComfachocoMemberIdentityMismatchFailure {
120
+ /**
121
+ * The failure code, stable across releases.
122
+ */
123
+ code: "MEMBER_IDENTITY_MISMATCH";
124
+ /**
125
+ * No fields.
126
+ */
127
+ data: Empty;
128
+ /**
129
+ * What went wrong, for people; it never contains input values.
130
+ */
131
+ message: string;
132
+ /**
133
+ * Whether repeating the same request may succeed.
134
+ */
135
+ retryable: false;
136
+ }
137
+ /**
138
+ * The provider account is inactive. Reactivate it before verification.
139
+ */
140
+ export interface ComfachocoProviderAccountInactiveFailure {
141
+ /**
142
+ * The failure code, stable across releases.
143
+ */
144
+ code: "PROVIDER_ACCOUNT_INACTIVE";
145
+ /**
146
+ * No fields.
147
+ */
148
+ data: Empty;
149
+ /**
150
+ * What went wrong, for people; it never contains input values.
151
+ */
152
+ message: string;
153
+ /**
154
+ * Whether repeating the same request may succeed.
155
+ */
156
+ retryable: false;
157
+ }
158
+ /**
159
+ * The provider returned an unrecognized response.
160
+ */
161
+ export interface ComfachocoProviderProtocolChangedFailure {
162
+ /**
163
+ * The failure code, stable across releases.
164
+ */
165
+ code: "PROVIDER_PROTOCOL_CHANGED";
166
+ /**
167
+ * No fields.
168
+ */
169
+ data: Empty;
170
+ /**
171
+ * What went wrong, for people; it never contains input values.
172
+ */
173
+ message: string;
174
+ /**
175
+ * Whether repeating the same request may succeed.
176
+ */
177
+ retryable: false;
178
+ }
179
+ /**
180
+ * The provider session expired.
181
+ */
182
+ export interface ComfachocoProviderSessionExpiredFailure {
183
+ /**
184
+ * The failure code, stable across releases.
185
+ */
186
+ code: "PROVIDER_SESSION_EXPIRED";
187
+ /**
188
+ * No fields.
189
+ */
190
+ data: Empty;
191
+ /**
192
+ * What went wrong, for people; it never contains input values.
193
+ */
194
+ message: string;
195
+ /**
196
+ * Whether repeating the same request may succeed.
197
+ */
198
+ retryable: true;
199
+ }
200
+ /**
201
+ * The provider could not complete the request.
202
+ */
203
+ export interface ComfachocoProviderUnavailableFailure {
204
+ /**
205
+ * The failure code, stable across releases.
206
+ */
207
+ code: "PROVIDER_UNAVAILABLE";
208
+ /**
209
+ * No fields.
210
+ */
211
+ data: Empty;
212
+ /**
213
+ * What went wrong, for people; it never contains input values.
214
+ */
215
+ message: string;
216
+ /**
217
+ * Whether repeating the same request may succeed.
218
+ */
219
+ retryable: true;
220
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
package/dist/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export { ApiError } from "./_/index.js";
2
2
  export type { RequestOptions } from "./_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, } from "./client.js";
5
- export type { Connection, ConnectionNotFoundError, ConnectionNotFoundFailure, ConnectionPage, ConnectionPageResponse, ConnectionResponse, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, VerifyConnectionResult, VerifyConnectionResultResponse, } from "./models.js";
5
+ export type { Connection, ConnectionNotFoundError, ConnectionNotFoundFailure, ConnectionPage, ConnectionPageResponse, ConnectionResponse, DeletedObject, DeletedObjectResponse, Empty, Failure, ForbiddenError, ForbiddenFailure, HttpsUrl, InternalError, InternalFailure, InvalidInputError, InvalidInputFailure, InvalidInputFailureData, OutcomeUnknownError, OutcomeUnknownFailure, PageInfo, RateLimitedError, RateLimitedFailure, RequestTooLargeError, RequestTooLargeFailure, ResponseMetadata, SignedUrl, UnauthorizedError, UnauthorizedFailure, UnsupportedMediaTypeError, UnsupportedMediaTypeFailure, UpstreamTimeoutError, UpstreamTimeoutFailure, UpstreamUnavailableError, UpstreamUnavailableFailure, ValidationIssue, VerifyConnectionResult, VerifyConnectionResultResponse, } from "./models.js";
package/dist/models.d.ts CHANGED
@@ -159,6 +159,7 @@ export interface ForbiddenFailure {
159
159
  */
160
160
  retryable: false;
161
161
  }
162
+ export type HttpsUrl = string;
162
163
  /**
163
164
  * A failed answer.
164
165
  */
@@ -366,6 +367,16 @@ export interface ResponseMetadata {
366
367
  */
367
368
  requestId: string;
368
369
  }
370
+ export interface SignedUrl {
371
+ /**
372
+ * When the URL stops working.
373
+ */
374
+ expiresAt: Temporal.Instant;
375
+ /**
376
+ * The signed URL. Anyone holding it has access until it expires.
377
+ */
378
+ url: HttpsUrl;
379
+ }
369
380
  /**
370
381
  * A failed answer.
371
382
  */
@@ -541,3 +552,4 @@ export declare const ConnectionCodec: import("./_/codec.js").Codec;
541
552
  export declare const ConnectionPageCodec: import("./_/codec.js").Codec;
542
553
  export declare const ConnectionPageResponseCodec: import("./_/codec.js").Codec;
543
554
  export declare const ConnectionResponseCodec: import("./_/codec.js").Codec;
555
+ export declare const SignedUrlCodec: import("./_/codec.js").Codec;
package/dist/models.js CHANGED
@@ -13,3 +13,6 @@ export const ConnectionPageResponseCodec = object([
13
13
  export const ConnectionResponseCodec = object([
14
14
  ["data", null, () => ConnectionCodec],
15
15
  ]);
16
+ export const SignedUrlCodec = object([
17
+ ["expiresAt", null, instant],
18
+ ]);
@@ -1,5 +1,5 @@
1
1
  import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
2
+ import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -57,7 +57,7 @@ export interface NuevaEpsLookupAffiliationConflictError {
57
57
  metadata: ResponseMetadata;
58
58
  success: false;
59
59
  }
60
- export type NuevaEpsLookupAffiliationConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
60
+ export type NuevaEpsLookupAffiliationConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
61
61
  /**
62
62
  * A failed answer.
63
63
  */
@@ -1,6 +1,9 @@
1
1
  import { type BaseClientOptions, Transport } from "../_/index.js";
2
2
  import { type Client as AffiliationsClient } from "./affiliations/client.js";
3
3
  import { type Client as ConnectionsClient } from "./connections/client.js";
4
+ import { type Client as IngestionErrorReportsClient } from "./ingestionErrorReports/client.js";
5
+ import { type Client as IngestionsClient } from "./ingestions/client.js";
6
+ import { type Client as PrecursorasClient } from "./precursoras/client.js";
4
7
  export interface ClientOptions extends BaseClientOptions {
5
8
  /**
6
9
  * The URL the paths of the API are relative to.
@@ -10,6 +13,9 @@ export interface ClientOptions extends BaseClientOptions {
10
13
  export interface Client {
11
14
  readonly affiliations: AffiliationsClient;
12
15
  readonly connections: ConnectionsClient;
16
+ readonly ingestionErrorReports: IngestionErrorReportsClient;
17
+ readonly ingestions: IngestionsClient;
18
+ readonly precursoras: PrecursorasClient;
13
19
  }
14
20
  export declare function createClient(options: ClientOptions): Client;
15
21
  export declare function bind(transport: Transport): Client;
@@ -3,12 +3,18 @@
3
3
  import { Transport } from "../_/index.js";
4
4
  import { bind as bindAffiliations, } from "./affiliations/client.js";
5
5
  import { bind as bindConnections, } from "./connections/client.js";
6
+ import { bind as bindIngestionErrorReports, } from "./ingestionErrorReports/client.js";
7
+ import { bind as bindIngestions, } from "./ingestions/client.js";
8
+ import { bind as bindPrecursoras, } from "./precursoras/client.js";
6
9
  export function createClient(options) {
7
10
  return bind(new Transport(options));
8
11
  }
9
12
  export function bind(transport) {
10
13
  let affiliationsClient;
11
14
  let connectionsClient;
15
+ let ingestionErrorReportsClient;
16
+ let ingestionsClient;
17
+ let precursorasClient;
12
18
  return {
13
19
  get affiliations() {
14
20
  return (affiliationsClient ??= bindAffiliations(transport));
@@ -16,5 +22,14 @@ export function bind(transport) {
16
22
  get connections() {
17
23
  return (connectionsClient ??= bindConnections(transport));
18
24
  },
25
+ get ingestionErrorReports() {
26
+ return (ingestionErrorReportsClient ??= bindIngestionErrorReports(transport));
27
+ },
28
+ get ingestions() {
29
+ return (ingestionsClient ??= bindIngestions(transport));
30
+ },
31
+ get precursoras() {
32
+ return (precursorasClient ??= bindPrecursoras(transport));
33
+ },
19
34
  };
20
35
  }
@@ -1,5 +1,5 @@
1
1
  import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
2
+ import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
3
3
  /**
4
4
  * A failed answer.
5
5
  */
@@ -25,7 +25,7 @@ export interface NuevaEpsDeleteConnectionConflictError {
25
25
  metadata: ResponseMetadata;
26
26
  success: false;
27
27
  }
28
- export type NuevaEpsDeleteConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
28
+ export type NuevaEpsDeleteConnectionConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
29
29
  /**
30
30
  * A failed answer.
31
31
  */
@@ -90,7 +90,7 @@ export interface NuevaEpsGetConnectionConflictError {
90
90
  metadata: ResponseMetadata;
91
91
  success: false;
92
92
  }
93
- export type NuevaEpsGetConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
93
+ export type NuevaEpsGetConnectionConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
94
94
  /**
95
95
  * A failed answer.
96
96
  */
@@ -155,7 +155,7 @@ export interface NuevaEpsListConnectionsConflictError {
155
155
  metadata: ResponseMetadata;
156
156
  success: false;
157
157
  }
158
- export type NuevaEpsListConnectionsConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
158
+ export type NuevaEpsListConnectionsConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
159
159
  /**
160
160
  * A failed answer.
161
161
  */
@@ -216,6 +216,7 @@ export interface NuevaEpsVerifyConnectionBody {
216
216
  documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
217
217
  name: string;
218
218
  password: string;
219
+ portal?: "affiliations" | "precursoras";
219
220
  /**
220
221
  * Provider portal login identifier; separate from the member document being
221
222
  * queried.
@@ -234,7 +235,7 @@ export interface NuevaEpsVerifyConnectionConflictError {
234
235
  metadata: ResponseMetadata;
235
236
  success: false;
236
237
  }
237
- export type NuevaEpsVerifyConnectionConflictFailure = NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
238
+ export type NuevaEpsVerifyConnectionConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
238
239
  /**
239
240
  * A failed answer.
240
241
  */
@@ -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 { NuevaEpsAuthorizationsUnavailableError, NuevaEpsAuthorizationsUnavailableFailure, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, } from "./models.js";
5
+ export type { NuevaEpsAuthorizationsUnavailableError, NuevaEpsAuthorizationsUnavailableFailure, NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUuid, } from "./models.js";
@@ -0,0 +1,33 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { NuevaEpsUuid } from "../models.js";
3
+ import { type NuevaEpsIngestionErrorReportResponse } from "./models.js";
4
+ export interface ClientOptions extends BaseClientOptions {
5
+ /**
6
+ * The URL the paths of the API are relative to.
7
+ */
8
+ baseUrl: string;
9
+ }
10
+ export interface Client {
11
+ /**
12
+ * Download a Precursoras error report
13
+ *
14
+ * Get a private XLSX validation report with a download link valid for 15
15
+ * minutes. The report id is its upload id. May contain patient information.
16
+ * Files expire from storage after 24 hours. Provider failures are returned
17
+ * explicitly.
18
+ */
19
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
20
+ }
21
+ export declare function createClient(options: ClientOptions): Client;
22
+ export declare function bind(transport: Transport): Client;
23
+ export interface GetRequest {
24
+ /**
25
+ * The ingestion error report id.
26
+ */
27
+ ingestionErrorReportId: NuevaEpsUuid;
28
+ /**
29
+ * The connection id.
30
+ */
31
+ connectionId?: string;
32
+ }
33
+ export type GetResponse = NuevaEpsIngestionErrorReportResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { NuevaEpsIngestionErrorReportResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ get: (request, options) => transport.send(GetOperation, request, options),
11
+ };
12
+ }
13
+ const GetOperation = {
14
+ method: "GET",
15
+ route: "/v1/nueva-eps/ingestion-error-reports/{ingestionErrorReportId}",
16
+ query: { connectionId: "connectionId" },
17
+ response: NuevaEpsIngestionErrorReportResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
19
+ };
@@ -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 { NuevaEpsGetIngestionErrorReportBadGatewayError, NuevaEpsGetIngestionErrorReportBadGatewayFailure, NuevaEpsGetIngestionErrorReportConflictError, NuevaEpsGetIngestionErrorReportConflictFailure, NuevaEpsGetIngestionErrorReportForbiddenError, NuevaEpsGetIngestionErrorReportForbiddenFailure, NuevaEpsGetIngestionErrorReportServiceUnavailableError, NuevaEpsGetIngestionErrorReportServiceUnavailableFailure, NuevaEpsGetIngestionErrorReportTooManyRequestsError, NuevaEpsGetIngestionErrorReportTooManyRequestsFailure, NuevaEpsIngestionErrorReport, NuevaEpsIngestionErrorReportResponse, } 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,87 @@
1
+ import { type ForbiddenFailure, type OutcomeUnknownFailure, type RateLimitedFailure, type ResponseMetadata, type SignedUrl, type UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUuid } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface NuevaEpsGetIngestionErrorReportBadGatewayError {
7
+ data: null;
8
+ error: NuevaEpsGetIngestionErrorReportBadGatewayFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type NuevaEpsGetIngestionErrorReportBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface NuevaEpsGetIngestionErrorReportConflictError {
20
+ data: null;
21
+ error: NuevaEpsGetIngestionErrorReportConflictFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type NuevaEpsGetIngestionErrorReportConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface NuevaEpsGetIngestionErrorReportForbiddenError {
33
+ data: null;
34
+ error: NuevaEpsGetIngestionErrorReportForbiddenFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type NuevaEpsGetIngestionErrorReportForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface NuevaEpsGetIngestionErrorReportServiceUnavailableError {
46
+ data: null;
47
+ error: NuevaEpsGetIngestionErrorReportServiceUnavailableFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type NuevaEpsGetIngestionErrorReportServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface NuevaEpsGetIngestionErrorReportTooManyRequestsError {
59
+ data: null;
60
+ error: NuevaEpsGetIngestionErrorReportTooManyRequestsFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: ResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type NuevaEpsGetIngestionErrorReportTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
68
+ export interface NuevaEpsIngestionErrorReport {
69
+ byteLength: number;
70
+ contentType: string;
71
+ download: SignedUrl;
72
+ id: NuevaEpsUuid;
73
+ }
74
+ /**
75
+ * A successful answer.
76
+ */
77
+ export interface NuevaEpsIngestionErrorReportResponse {
78
+ data: NuevaEpsIngestionErrorReport;
79
+ error: null;
80
+ /**
81
+ * What every answer carries besides its data or error.
82
+ */
83
+ metadata: ResponseMetadata;
84
+ success: true;
85
+ }
86
+ export declare const NuevaEpsIngestionErrorReportCodec: import("../../_/codec.js").Codec;
87
+ export declare const NuevaEpsIngestionErrorReportResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,10 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { object } from "../../_/index.js";
4
+ import { SignedUrlCodec, } from "../../models.js";
5
+ export const NuevaEpsIngestionErrorReportCodec = object([
6
+ ["download", null, () => SignedUrlCodec],
7
+ ]);
8
+ export const NuevaEpsIngestionErrorReportResponseCodec = object([
9
+ ["data", null, () => NuevaEpsIngestionErrorReportCodec],
10
+ ]);
@@ -0,0 +1,68 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { NuevaEpsUuid } from "../models.js";
3
+ import type { NuevaEpsIngestionPageResponse, NuevaEpsIngestionResponse } from "./models.js";
4
+ export interface ClientOptions extends BaseClientOptions {
5
+ /**
6
+ * The URL the paths of the API are relative to.
7
+ */
8
+ baseUrl: string;
9
+ }
10
+ export interface Client {
11
+ /**
12
+ * Get a Precursoras upload
13
+ *
14
+ * Read one upload’s processing status and row counts after verifying it
15
+ * belongs to this authenticated account’s providers and structures.
16
+ */
17
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
18
+ /**
19
+ * List Precursoras uploads
20
+ *
21
+ * Read upload processing summaries for a provider and structure from this
22
+ * account’s catalog. Cursors use the provider’s live page boundaries;
23
+ * concurrent uploads may shift them. No patient rows, file paths or clinical
24
+ * writes.
25
+ */
26
+ list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
27
+ }
28
+ export declare function createClient(options: ClientOptions): Client;
29
+ export declare function bind(transport: Transport): Client;
30
+ export interface GetRequest {
31
+ /**
32
+ * The ingestion id.
33
+ */
34
+ ingestionId: NuevaEpsUuid;
35
+ /**
36
+ * The connection id.
37
+ */
38
+ connectionId?: string;
39
+ }
40
+ export type GetResponse = NuevaEpsIngestionResponse;
41
+ export interface ListRequest {
42
+ /**
43
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
44
+ */
45
+ cursor?: string;
46
+ /**
47
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
48
+ */
49
+ direction?: "forward" | "backward";
50
+ /**
51
+ * Maximum items returned in one page. Defaults to 25; larger reads require
52
+ * another cursor.
53
+ */
54
+ limit?: number;
55
+ /**
56
+ * The provider id.
57
+ */
58
+ providerId: number;
59
+ /**
60
+ * The structure id.
61
+ */
62
+ structureId: number;
63
+ /**
64
+ * The connection id.
65
+ */
66
+ connectionId?: string;
67
+ }
68
+ export type ListResponse = NuevaEpsIngestionPageResponse;
@@ -0,0 +1,26 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ get: (request, options) => transport.send(GetOperation, request, options),
10
+ list: (request, options) => transport.send(ListOperation, request, options),
11
+ };
12
+ }
13
+ const GetOperation = {
14
+ method: "GET",
15
+ route: "/v1/nueva-eps/ingestions/{ingestionId}",
16
+ query: { connectionId: "connectionId" },
17
+ response: null,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
19
+ };
20
+ const ListOperation = {
21
+ method: "GET",
22
+ route: "/v1/nueva-eps/ingestions",
23
+ query: { cursor: "cursor", direction: "direction", limit: "limit", providerId: "providerId", structureId: "structureId", connectionId: "connectionId" },
24
+ response: null,
25
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": true, "502": true, "503": true, "504": true },
26
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, GetRequest, GetResponse, ListRequest, ListResponse, } from "./client.js";
5
+ export type { NuevaEpsGetIngestionBadGatewayError, NuevaEpsGetIngestionBadGatewayFailure, NuevaEpsGetIngestionConflictError, NuevaEpsGetIngestionConflictFailure, NuevaEpsGetIngestionForbiddenError, NuevaEpsGetIngestionForbiddenFailure, NuevaEpsGetIngestionServiceUnavailableError, NuevaEpsGetIngestionServiceUnavailableFailure, NuevaEpsGetIngestionTooManyRequestsError, NuevaEpsGetIngestionTooManyRequestsFailure, NuevaEpsIngestion, NuevaEpsIngestionPage, NuevaEpsIngestionPageResponse, NuevaEpsIngestionResponse, NuevaEpsListIngestionsBadGatewayError, NuevaEpsListIngestionsBadGatewayFailure, NuevaEpsListIngestionsConflictError, NuevaEpsListIngestionsConflictFailure, NuevaEpsListIngestionsForbiddenError, NuevaEpsListIngestionsForbiddenFailure, NuevaEpsListIngestionsServiceUnavailableError, NuevaEpsListIngestionsServiceUnavailableFailure, NuevaEpsListIngestionsTooManyRequestsError, NuevaEpsListIngestionsTooManyRequestsFailure, } from "./models.js";