@arbol-ai/sdk 5.66.0 → 5.67.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/account/permissions/models.d.ts +1 -1
- package/dist/famisanar/affiliations/client.d.ts +5 -4
- package/dist/famisanar/affiliations/index.d.ts +1 -1
- package/dist/famisanar/affiliations/models.d.ts +19 -191
- package/dist/famisanar/client.d.ts +2 -0
- package/dist/famisanar/client.js +5 -0
- package/dist/famisanar/connections/client.d.ts +28 -0
- package/dist/famisanar/connections/client.js +18 -0
- package/dist/famisanar/connections/index.d.ts +5 -0
- package/dist/famisanar/connections/index.js +4 -0
- package/dist/famisanar/connections/models.d.ts +85 -0
- package/dist/famisanar/connections/models.js +9 -0
- package/dist/famisanar/index.d.ts +1 -0
- package/dist/famisanar/models.d.ts +205 -0
- package/dist/famisanar/models.js +3 -0
- package/package.json +3 -3
|
@@ -22,7 +22,7 @@ export interface AccountPermission {
|
|
|
22
22
|
/**
|
|
23
23
|
* The product or integration the permission belongs to.
|
|
24
24
|
*/
|
|
25
|
-
group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "pijaos-salud" | "sanitas" | "gmedic" | "account";
|
|
25
|
+
group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "pijaos-salud" | "famisanar" | "sanitas" | "gmedic" | "account";
|
|
26
26
|
value: string;
|
|
27
27
|
}
|
|
28
28
|
export interface AccountPermissionPage {
|
|
@@ -10,10 +10,11 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* Look up affiliation
|
|
12
12
|
*
|
|
13
|
-
* Look up one document using
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* Look up one document using the organization’s active IPS connection. Omit
|
|
14
|
+
* connectionId when exactly one is active. The document type defaults to CC
|
|
15
|
+
* and may be supplied explicitly. Observations retain their original
|
|
16
|
+
* checkedAt for at most seven days. Set maxAgeDays to zero to refresh. The
|
|
17
|
+
* provider combines missing and invalid records into one outcome.
|
|
17
18
|
*/
|
|
18
19
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
20
|
}
|
|
@@ -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, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type {
|
|
5
|
+
export type { FamisanarLookupAffiliationBadGatewayError, FamisanarLookupAffiliationBadGatewayFailure, FamisanarLookupAffiliationBody, FamisanarLookupAffiliationConflictError, FamisanarLookupAffiliationConflictFailure, FamisanarLookupAffiliationForbiddenError, FamisanarLookupAffiliationForbiddenFailure, FamisanarLookupAffiliationResult, FamisanarLookupAffiliationResultResponse, FamisanarLookupAffiliationServiceUnavailableError, FamisanarLookupAffiliationServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,122 +1,49 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
* Account could not verify this connection.
|
|
4
|
-
*/
|
|
5
|
-
export interface FamisanarAccountUnavailableFailure {
|
|
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
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The provider returned no confirmed observation.
|
|
25
|
-
*/
|
|
26
|
-
export interface FamisanarAffiliationUnresolvedFailure {
|
|
27
|
-
/**
|
|
28
|
-
* The failure code, stable across releases.
|
|
29
|
-
*/
|
|
30
|
-
code: "AFFILIATION_UNRESOLVED";
|
|
31
|
-
/**
|
|
32
|
-
* No fields.
|
|
33
|
-
*/
|
|
34
|
-
data: Empty;
|
|
35
|
-
/**
|
|
36
|
-
* What went wrong, for people; it never contains input values.
|
|
37
|
-
*/
|
|
38
|
-
message: string;
|
|
39
|
-
/**
|
|
40
|
-
* Whether repeating the same request may succeed.
|
|
41
|
-
*/
|
|
42
|
-
retryable: false;
|
|
43
|
-
}
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, ResponseMetadata, SessionExpiredFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { FamisanarAccountUnavailableFailure, FamisanarAffiliationUnresolvedFailure, FamisanarConnectionRequiredFailure, FamisanarCredentialsRejectedFailure, FamisanarProviderAccessDeniedFailure, FamisanarProviderNotConfiguredFailure, FamisanarProviderUnavailableFailure, FamisanarSelectionRequiredFailure } from "../models.js";
|
|
44
3
|
/**
|
|
45
4
|
* A failed answer.
|
|
46
5
|
*/
|
|
47
|
-
export interface
|
|
6
|
+
export interface FamisanarLookupAffiliationBadGatewayError {
|
|
48
7
|
data: null;
|
|
49
|
-
|
|
50
|
-
* No active Famisanar connection is available.
|
|
51
|
-
*/
|
|
52
|
-
error: FamisanarConnectionUnavailableFailure;
|
|
8
|
+
error: FamisanarLookupAffiliationBadGatewayFailure;
|
|
53
9
|
/**
|
|
54
10
|
* What every answer carries besides its data or error.
|
|
55
11
|
*/
|
|
56
12
|
metadata: ResponseMetadata;
|
|
57
13
|
success: false;
|
|
58
14
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
export interface FamisanarConnectionUnavailableFailure {
|
|
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 these credentials.
|
|
82
|
-
*/
|
|
83
|
-
export interface FamisanarCredentialsRejectedFailure {
|
|
84
|
-
/**
|
|
85
|
-
* The failure code, stable across releases.
|
|
86
|
-
*/
|
|
87
|
-
code: "CREDENTIALS_REJECTED";
|
|
15
|
+
export type FamisanarLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | FamisanarAffiliationUnresolvedFailure;
|
|
16
|
+
export interface FamisanarLookupAffiliationBody {
|
|
88
17
|
/**
|
|
89
|
-
*
|
|
18
|
+
* Omit when the organization has exactly one active Famisanar connection.
|
|
19
|
+
* Required to choose among multiple active connections.
|
|
90
20
|
*/
|
|
91
|
-
|
|
21
|
+
connectionId?: string;
|
|
22
|
+
documentNumber: string;
|
|
92
23
|
/**
|
|
93
|
-
*
|
|
24
|
+
* Identity document type. Defaults to CC; send another supported type
|
|
25
|
+
* explicitly.
|
|
94
26
|
*/
|
|
95
|
-
|
|
27
|
+
documentType?: "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
96
28
|
/**
|
|
97
|
-
*
|
|
29
|
+
* Maximum age in days of an observation from this IPS connection. Zero
|
|
30
|
+
* contacts the provider and refreshes the saved result.
|
|
98
31
|
*/
|
|
99
|
-
|
|
32
|
+
maxAgeDays?: number;
|
|
100
33
|
}
|
|
101
34
|
/**
|
|
102
35
|
* A failed answer.
|
|
103
36
|
*/
|
|
104
|
-
export interface
|
|
37
|
+
export interface FamisanarLookupAffiliationConflictError {
|
|
105
38
|
data: null;
|
|
106
|
-
error:
|
|
39
|
+
error: FamisanarLookupAffiliationConflictFailure;
|
|
107
40
|
/**
|
|
108
41
|
* What every answer carries besides its data or error.
|
|
109
42
|
*/
|
|
110
43
|
metadata: ResponseMetadata;
|
|
111
44
|
success: false;
|
|
112
45
|
}
|
|
113
|
-
export type
|
|
114
|
-
export interface FamisanarLookupAffiliationBody {
|
|
115
|
-
connectionId: string;
|
|
116
|
-
documentNumber: string;
|
|
117
|
-
documentType?: "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
118
|
-
maxAgeDays?: number;
|
|
119
|
-
}
|
|
46
|
+
export type FamisanarLookupAffiliationConflictFailure = FamisanarConnectionRequiredFailure | FamisanarSelectionRequiredFailure;
|
|
120
47
|
/**
|
|
121
48
|
* A failed answer.
|
|
122
49
|
*/
|
|
@@ -165,104 +92,5 @@ export interface FamisanarLookupAffiliationServiceUnavailableError {
|
|
|
165
92
|
success: false;
|
|
166
93
|
}
|
|
167
94
|
export type FamisanarLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | FamisanarAccountUnavailableFailure | FamisanarProviderNotConfiguredFailure | FamisanarProviderUnavailableFailure | SessionExpiredFailure;
|
|
168
|
-
/**
|
|
169
|
-
* The provider declined this request.
|
|
170
|
-
*/
|
|
171
|
-
export interface FamisanarProviderAccessDeniedFailure {
|
|
172
|
-
/**
|
|
173
|
-
* The failure code, stable across releases.
|
|
174
|
-
*/
|
|
175
|
-
code: "PROVIDER_ACCESS_DENIED";
|
|
176
|
-
/**
|
|
177
|
-
* No fields.
|
|
178
|
-
*/
|
|
179
|
-
data: Empty;
|
|
180
|
-
/**
|
|
181
|
-
* What went wrong, for people; it never contains input values.
|
|
182
|
-
*/
|
|
183
|
-
message: string;
|
|
184
|
-
/**
|
|
185
|
-
* Whether repeating the same request may succeed.
|
|
186
|
-
*/
|
|
187
|
-
retryable: false;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* The authorized source has not been connected.
|
|
191
|
-
*/
|
|
192
|
-
export interface FamisanarProviderNotConfiguredFailure {
|
|
193
|
-
/**
|
|
194
|
-
* The failure code, stable across releases.
|
|
195
|
-
*/
|
|
196
|
-
code: "PROVIDER_NOT_CONFIGURED";
|
|
197
|
-
/**
|
|
198
|
-
* No fields.
|
|
199
|
-
*/
|
|
200
|
-
data: Empty;
|
|
201
|
-
/**
|
|
202
|
-
* What went wrong, for people; it never contains input values.
|
|
203
|
-
*/
|
|
204
|
-
message: string;
|
|
205
|
-
/**
|
|
206
|
-
* Whether repeating the same request may succeed.
|
|
207
|
-
*/
|
|
208
|
-
retryable: false;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* The provider is unavailable.
|
|
212
|
-
*/
|
|
213
|
-
export interface FamisanarProviderUnavailableFailure {
|
|
214
|
-
/**
|
|
215
|
-
* The failure code, stable across releases.
|
|
216
|
-
*/
|
|
217
|
-
code: "PROVIDER_UNAVAILABLE";
|
|
218
|
-
/**
|
|
219
|
-
* No fields.
|
|
220
|
-
*/
|
|
221
|
-
data: Empty;
|
|
222
|
-
/**
|
|
223
|
-
* What went wrong, for people; it never contains input values.
|
|
224
|
-
*/
|
|
225
|
-
message: string;
|
|
226
|
-
/**
|
|
227
|
-
* Whether repeating the same request may succeed.
|
|
228
|
-
*/
|
|
229
|
-
retryable: false;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* A failed answer.
|
|
233
|
-
*/
|
|
234
|
-
export interface FamisanarSelectionRequiredError {
|
|
235
|
-
data: null;
|
|
236
|
-
/**
|
|
237
|
-
* Choose an unambiguous IPS and active branch for this account.
|
|
238
|
-
*/
|
|
239
|
-
error: FamisanarSelectionRequiredFailure;
|
|
240
|
-
/**
|
|
241
|
-
* What every answer carries besides its data or error.
|
|
242
|
-
*/
|
|
243
|
-
metadata: ResponseMetadata;
|
|
244
|
-
success: false;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Choose an unambiguous IPS and active branch for this account.
|
|
248
|
-
*/
|
|
249
|
-
export interface FamisanarSelectionRequiredFailure {
|
|
250
|
-
/**
|
|
251
|
-
* The failure code, stable across releases.
|
|
252
|
-
*/
|
|
253
|
-
code: "SELECTION_REQUIRED";
|
|
254
|
-
/**
|
|
255
|
-
* No fields.
|
|
256
|
-
*/
|
|
257
|
-
data: Empty;
|
|
258
|
-
/**
|
|
259
|
-
* What went wrong, for people; it never contains input values.
|
|
260
|
-
*/
|
|
261
|
-
message: string;
|
|
262
|
-
/**
|
|
263
|
-
* Whether repeating the same request may succeed.
|
|
264
|
-
*/
|
|
265
|
-
retryable: false;
|
|
266
|
-
}
|
|
267
95
|
export declare const FamisanarLookupAffiliationResultCodec: import("../../_/codec.js").Codec;
|
|
268
96
|
export declare const FamisanarLookupAffiliationResultResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
2
|
import { type Client as AffiliationsClient } from "./affiliations/client.js";
|
|
3
|
+
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
3
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
5
|
/**
|
|
5
6
|
* The URL the paths of the API are relative to.
|
|
@@ -8,6 +9,7 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
8
9
|
}
|
|
9
10
|
export interface Client {
|
|
10
11
|
readonly affiliations: AffiliationsClient;
|
|
12
|
+
readonly connections: ConnectionsClient;
|
|
11
13
|
}
|
|
12
14
|
export declare function createClient(options: ClientOptions): Client;
|
|
13
15
|
export declare function bind(transport: Transport): Client;
|
package/dist/famisanar/client.js
CHANGED
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport } from "../_/index.js";
|
|
4
4
|
import { bind as bindAffiliations, } from "./affiliations/client.js";
|
|
5
|
+
import { bind as bindConnections, } from "./connections/client.js";
|
|
5
6
|
export function createClient(options) {
|
|
6
7
|
return bind(new Transport(options));
|
|
7
8
|
}
|
|
8
9
|
export function bind(transport) {
|
|
9
10
|
let affiliationsClient;
|
|
11
|
+
let connectionsClient;
|
|
10
12
|
return {
|
|
11
13
|
get affiliations() {
|
|
12
14
|
return (affiliationsClient ??= bindAffiliations(transport));
|
|
13
15
|
},
|
|
16
|
+
get connections() {
|
|
17
|
+
return (connectionsClient ??= bindConnections(transport));
|
|
18
|
+
},
|
|
14
19
|
};
|
|
15
20
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type FamisanarGetConnectionResultResponse } 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
|
+
* Get a Famisanar connection
|
|
12
|
+
*
|
|
13
|
+
* Read session availability and observed expiry without signing in. An
|
|
14
|
+
* undisclosed provider deadline is null. Credentials, cookies and session
|
|
15
|
+
* handles are never returned. Expired sessions reconnect automatically on the
|
|
16
|
+
* next uncached affiliation lookup.
|
|
17
|
+
*/
|
|
18
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export interface GetRequest {
|
|
23
|
+
/**
|
|
24
|
+
* The IPS connection saved in Account. This is not a provider session ID.
|
|
25
|
+
*/
|
|
26
|
+
connectionId: string;
|
|
27
|
+
}
|
|
28
|
+
export type GetResponse = FamisanarGetConnectionResultResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { FamisanarGetConnectionResultResponseCodec, } 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/famisanar/connections/{connectionId}",
|
|
16
|
+
response: FamisanarGetConnectionResultResponseCodec,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { FamisanarGetConnectionBadGatewayError, FamisanarGetConnectionBadGatewayFailure, FamisanarGetConnectionConflictError, FamisanarGetConnectionConflictFailure, FamisanarGetConnectionForbiddenError, FamisanarGetConnectionForbiddenFailure, FamisanarGetConnectionResult, FamisanarGetConnectionResultResponse, FamisanarGetConnectionServiceUnavailableError, FamisanarGetConnectionServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, ResponseMetadata, SessionExpiredFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { FamisanarAccountUnavailableFailure, FamisanarAffiliationUnresolvedFailure, FamisanarConnectionRequiredFailure, FamisanarCredentialsRejectedFailure, FamisanarProviderAccessDeniedFailure, FamisanarProviderNotConfiguredFailure, FamisanarProviderUnavailableFailure, FamisanarSelectionRequiredFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface FamisanarGetConnectionBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: FamisanarGetConnectionBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type FamisanarGetConnectionBadGatewayFailure = OutcomeUnknownFailure | FamisanarAffiliationUnresolvedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface FamisanarGetConnectionConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: FamisanarGetConnectionConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type FamisanarGetConnectionConflictFailure = FamisanarConnectionRequiredFailure | FamisanarSelectionRequiredFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface FamisanarGetConnectionForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: FamisanarGetConnectionForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type FamisanarGetConnectionForbiddenFailure = ForbiddenFailure | FamisanarProviderAccessDeniedFailure | FamisanarCredentialsRejectedFailure;
|
|
42
|
+
export interface FamisanarGetConnectionResult {
|
|
43
|
+
/**
|
|
44
|
+
* The IPS connection saved in Account. This is not a provider session ID.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
session: {
|
|
48
|
+
createdAt: Temporal.Instant | null;
|
|
49
|
+
expiresAt: Temporal.Instant | null;
|
|
50
|
+
expirySource: "cookie" | "unknown";
|
|
51
|
+
idleExpiresAt: Temporal.Instant | null;
|
|
52
|
+
lastExpiredAt: Temporal.Instant | null;
|
|
53
|
+
lastVerifiedAt: Temporal.Instant | null;
|
|
54
|
+
persistentSessionCookieCount: number;
|
|
55
|
+
sessionCookieCount: number;
|
|
56
|
+
status: "active" | "expired" | "not_started";
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A successful answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface FamisanarGetConnectionResultResponse {
|
|
63
|
+
data: FamisanarGetConnectionResult;
|
|
64
|
+
error: null;
|
|
65
|
+
/**
|
|
66
|
+
* What every answer carries besides its data or error.
|
|
67
|
+
*/
|
|
68
|
+
metadata: ResponseMetadata;
|
|
69
|
+
success: true;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A failed answer.
|
|
73
|
+
*/
|
|
74
|
+
export interface FamisanarGetConnectionServiceUnavailableError {
|
|
75
|
+
data: null;
|
|
76
|
+
error: FamisanarGetConnectionServiceUnavailableFailure;
|
|
77
|
+
/**
|
|
78
|
+
* What every answer carries besides its data or error.
|
|
79
|
+
*/
|
|
80
|
+
metadata: ResponseMetadata;
|
|
81
|
+
success: false;
|
|
82
|
+
}
|
|
83
|
+
export type FamisanarGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | FamisanarAccountUnavailableFailure | FamisanarProviderNotConfiguredFailure | FamisanarProviderUnavailableFailure | SessionExpiredFailure;
|
|
84
|
+
export declare const FamisanarGetConnectionResultCodec: import("../../_/codec.js").Codec;
|
|
85
|
+
export declare const FamisanarGetConnectionResultResponseCodec: 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 FamisanarGetConnectionResultCodec = object([
|
|
5
|
+
["session", null, object([["createdAt", null, instant], ["expiresAt", null, instant], ["idleExpiresAt", null, instant], ["lastExpiredAt", null, instant], ["lastVerifiedAt", null, instant]])],
|
|
6
|
+
]);
|
|
7
|
+
export const FamisanarGetConnectionResultResponseCodec = object([
|
|
8
|
+
["data", null, () => FamisanarGetConnectionResultCodec],
|
|
9
|
+
]);
|
|
@@ -2,3 +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 { FamisanarAccountUnavailableFailure, FamisanarAffiliationUnresolvedFailure, FamisanarConnectionRequiredFailure, FamisanarConnectionUnavailableError, FamisanarConnectionUnavailableFailure, FamisanarCredentialsRejectedFailure, FamisanarProviderAccessDeniedFailure, FamisanarProviderNotConfiguredFailure, FamisanarProviderUnavailableFailure, FamisanarSelectionRequiredFailure, } from "./models.js";
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* Account could not verify this connection.
|
|
4
|
+
*/
|
|
5
|
+
export interface FamisanarAccountUnavailableFailure {
|
|
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
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The provider returned no confirmed observation.
|
|
25
|
+
*/
|
|
26
|
+
export interface FamisanarAffiliationUnresolvedFailure {
|
|
27
|
+
/**
|
|
28
|
+
* The failure code, stable across releases.
|
|
29
|
+
*/
|
|
30
|
+
code: "AFFILIATION_UNRESOLVED";
|
|
31
|
+
/**
|
|
32
|
+
* No fields.
|
|
33
|
+
*/
|
|
34
|
+
data: Empty;
|
|
35
|
+
/**
|
|
36
|
+
* What went wrong, for people; it never contains input values.
|
|
37
|
+
*/
|
|
38
|
+
message: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether repeating the same request may succeed.
|
|
41
|
+
*/
|
|
42
|
+
retryable: false;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* More than one active Famisanar connection is available. Supply connectionId.
|
|
46
|
+
*/
|
|
47
|
+
export interface FamisanarConnectionRequiredFailure {
|
|
48
|
+
/**
|
|
49
|
+
* The failure code, stable across releases.
|
|
50
|
+
*/
|
|
51
|
+
code: "CONNECTION_REQUIRED";
|
|
52
|
+
/**
|
|
53
|
+
* No fields.
|
|
54
|
+
*/
|
|
55
|
+
data: Empty;
|
|
56
|
+
/**
|
|
57
|
+
* What went wrong, for people; it never contains input values.
|
|
58
|
+
*/
|
|
59
|
+
message: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether repeating the same request may succeed.
|
|
62
|
+
*/
|
|
63
|
+
retryable: false;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A failed answer.
|
|
67
|
+
*/
|
|
68
|
+
export interface FamisanarConnectionUnavailableError {
|
|
69
|
+
data: null;
|
|
70
|
+
/**
|
|
71
|
+
* No active Famisanar connection is available.
|
|
72
|
+
*/
|
|
73
|
+
error: FamisanarConnectionUnavailableFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* No active Famisanar connection is available.
|
|
82
|
+
*/
|
|
83
|
+
export interface FamisanarConnectionUnavailableFailure {
|
|
84
|
+
/**
|
|
85
|
+
* The failure code, stable across releases.
|
|
86
|
+
*/
|
|
87
|
+
code: "CONNECTION_UNAVAILABLE";
|
|
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 provider rejected these credentials.
|
|
103
|
+
*/
|
|
104
|
+
export interface FamisanarCredentialsRejectedFailure {
|
|
105
|
+
/**
|
|
106
|
+
* The failure code, stable across releases.
|
|
107
|
+
*/
|
|
108
|
+
code: "CREDENTIALS_REJECTED";
|
|
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 declined this request.
|
|
124
|
+
*/
|
|
125
|
+
export interface FamisanarProviderAccessDeniedFailure {
|
|
126
|
+
/**
|
|
127
|
+
* The failure code, stable across releases.
|
|
128
|
+
*/
|
|
129
|
+
code: "PROVIDER_ACCESS_DENIED";
|
|
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 authorized source has not been connected.
|
|
145
|
+
*/
|
|
146
|
+
export interface FamisanarProviderNotConfiguredFailure {
|
|
147
|
+
/**
|
|
148
|
+
* The failure code, stable across releases.
|
|
149
|
+
*/
|
|
150
|
+
code: "PROVIDER_NOT_CONFIGURED";
|
|
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 provider is unavailable.
|
|
166
|
+
*/
|
|
167
|
+
export interface FamisanarProviderUnavailableFailure {
|
|
168
|
+
/**
|
|
169
|
+
* The failure code, stable across releases.
|
|
170
|
+
*/
|
|
171
|
+
code: "PROVIDER_UNAVAILABLE";
|
|
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
|
+
* Choose an unambiguous IPS and active branch for this account.
|
|
187
|
+
*/
|
|
188
|
+
export interface FamisanarSelectionRequiredFailure {
|
|
189
|
+
/**
|
|
190
|
+
* The failure code, stable across releases.
|
|
191
|
+
*/
|
|
192
|
+
code: "SELECTION_REQUIRED";
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.67.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.20261119.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261119.71101",
|
|
62
|
+
"sha256": "7f40d49d168fd96ef5631b2f23a56d9b31bea5084ae7959d0cec9828fdf2f019"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|