@arbol-ai/sdk 2.11.0 → 2.13.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.
|
@@ -10,8 +10,12 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* Look up member affiliation
|
|
12
12
|
*
|
|
13
|
-
* Read affiliation and
|
|
14
|
-
*
|
|
13
|
+
* Read member affiliation and primary-provider warnings. Default: structured
|
|
14
|
+
* JSON. Set agentMode=true for concise Spanish text; fields selects top-level
|
|
15
|
+
* output properties. Request member explicitly for additional personal data
|
|
16
|
+
* and timings for measured durations. A provider failure is never an absent
|
|
17
|
+
* member; active affiliation never authorizes a procedure or confirms a
|
|
18
|
+
* clinic contract. No clinical writes are performed.
|
|
15
19
|
*/
|
|
16
20
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
17
21
|
}
|
|
@@ -13,6 +13,12 @@ export interface NuevaEpsLookupAffiliationBadGatewayError {
|
|
|
13
13
|
}
|
|
14
14
|
export type NuevaEpsLookupAffiliationBadGatewayFailure = NuevaEpsOutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
15
15
|
export interface NuevaEpsLookupAffiliationBody {
|
|
16
|
+
/**
|
|
17
|
+
* True: concise Spanish text in data.text (HTTP) and MCP text content. False
|
|
18
|
+
* or omitted: structured JSON. Presentation never changes tenant, coverage or
|
|
19
|
+
* provider admission.
|
|
20
|
+
*/
|
|
21
|
+
agentMode?: boolean;
|
|
16
22
|
connectionId?: string;
|
|
17
23
|
/**
|
|
18
24
|
* Member document number as a string; preserve leading zeros. Never an
|
|
@@ -24,6 +30,19 @@ export interface NuevaEpsLookupAffiliationBody {
|
|
|
24
30
|
* their original meaning.
|
|
25
31
|
*/
|
|
26
32
|
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
33
|
+
/**
|
|
34
|
+
* Return only these top-level fields. member opts into additional personal
|
|
35
|
+
* data; timings opts into measured durations. Omit for the standard
|
|
36
|
+
* affiliation record. Agent text always retains affiliation and
|
|
37
|
+
* primary-provider warnings.
|
|
38
|
+
*/
|
|
39
|
+
fields?: ("documentType" | "documentNumber" | "affiliated" | "callerIsPrimaryProvider" | "state" | "kind" | "category" | "primaryProvider" | "messages" | "member" | "timings")[];
|
|
40
|
+
/**
|
|
41
|
+
* Include measured operation durations; equivalent to requesting timings in
|
|
42
|
+
* fields. Durations overlap as documented and are observations, not latency
|
|
43
|
+
* guarantees.
|
|
44
|
+
*/
|
|
45
|
+
includeTimings?: boolean;
|
|
27
46
|
}
|
|
28
47
|
/**
|
|
29
48
|
* A failed answer.
|
|
@@ -51,51 +70,42 @@ export interface NuevaEpsLookupAffiliationForbiddenError {
|
|
|
51
70
|
success: false;
|
|
52
71
|
}
|
|
53
72
|
export type NuevaEpsLookupAffiliationForbiddenFailure = NuevaEpsForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* never false.
|
|
58
|
-
*/
|
|
59
|
-
affiliated: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the portal identifies the authenticated provider as the assigned
|
|
62
|
-
* primary provider. This is not a medical authorization.
|
|
63
|
-
*/
|
|
64
|
-
callerIsPrimaryProvider: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Original affiliate category reported by Nueva EPS; preserve the provider
|
|
67
|
-
* value.
|
|
68
|
-
*/
|
|
73
|
+
export type NuevaEpsLookupAffiliationResult = {
|
|
74
|
+
affiliated?: boolean;
|
|
75
|
+
callerIsPrimaryProvider?: boolean;
|
|
69
76
|
category?: string;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* organization selector.
|
|
73
|
-
*/
|
|
74
|
-
documentNumber: string;
|
|
75
|
-
/**
|
|
76
|
-
* Document type code accepted by Nueva EPS; provider-specific codes retain
|
|
77
|
-
* their original meaning.
|
|
78
|
-
*/
|
|
79
|
-
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
80
|
-
/**
|
|
81
|
-
* Original affiliate type reported by Nueva EPS; preserve the provider value.
|
|
82
|
-
*/
|
|
77
|
+
documentNumber?: string;
|
|
78
|
+
documentType?: "AS" | "CC" | "CD" | "CE" | "CN" | "ME" | "NT" | "NU" | "PC" | "PE" | "PS" | "PT" | "RC" | "SC" | "TI";
|
|
83
79
|
kind?: string;
|
|
84
|
-
|
|
80
|
+
member?: {
|
|
81
|
+
address: string | null;
|
|
82
|
+
age: number | null;
|
|
83
|
+
birthDate: string | null;
|
|
84
|
+
city: string | null;
|
|
85
|
+
contributedWeeks: number | null;
|
|
86
|
+
queriedAt: string | null;
|
|
87
|
+
sex: string | null;
|
|
88
|
+
stateProvince: string | null;
|
|
89
|
+
telephone: string | null;
|
|
90
|
+
};
|
|
91
|
+
messages?: {
|
|
85
92
|
level: "error" | "info";
|
|
86
93
|
text: string;
|
|
87
94
|
}[];
|
|
88
|
-
/**
|
|
89
|
-
* Name of the assigned primary provider, when present; not an Arbol provider
|
|
90
|
-
* identifier.
|
|
91
|
-
*/
|
|
92
95
|
primaryProvider?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Original affiliation status reported by Nueva EPS, for example ACTIVO; not
|
|
95
|
-
* connection status.
|
|
96
|
-
*/
|
|
97
96
|
state?: string;
|
|
98
|
-
|
|
97
|
+
timings?: {
|
|
98
|
+
accountMs: number;
|
|
99
|
+
connectionMs: number;
|
|
100
|
+
lookupMs: number | null;
|
|
101
|
+
mappingMs: number;
|
|
102
|
+
sessionMs: number | null;
|
|
103
|
+
sessionReused: boolean | null;
|
|
104
|
+
totalMs: number;
|
|
105
|
+
};
|
|
106
|
+
} | {
|
|
107
|
+
text: string;
|
|
108
|
+
};
|
|
99
109
|
/**
|
|
100
110
|
* A successful answer.
|
|
101
111
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.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",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"packageManager": "bun@1.4.3",
|
|
51
51
|
"arbol": {
|
|
52
52
|
"openapi": {
|
|
53
|
-
"release": "1.20261028.
|
|
54
|
-
"sha256": "
|
|
53
|
+
"release": "1.20261028.150906",
|
|
54
|
+
"sha256": "3d0ebf02604003a5c7ecc8ee62b01bf6f3370dbeff24255b54b67189168ed1f8"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|