@arbol-ai/sdk 4.0.0 → 5.0.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/README.md +15 -3
- package/dist/agenda/appointments/client.d.ts +165 -52
- package/dist/agenda/appointments/client.js +19 -11
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/availability/client.d.ts +11 -72
- package/dist/agenda/availability/client.js +5 -14
- package/dist/agenda/availability/index.d.ts +1 -1
- package/dist/agenda/bookingLocations/client.d.ts +51 -0
- package/dist/agenda/bookingLocations/client.js +19 -0
- package/dist/agenda/bookingLocations/index.d.ts +4 -0
- package/dist/agenda/bookingLocations/index.js +4 -0
- package/dist/agenda/bookingOfferings/client.d.ts +82 -0
- package/dist/agenda/bookingOfferings/client.js +18 -0
- package/dist/agenda/bookingOfferings/index.d.ts +5 -0
- package/dist/agenda/bookingOfferings/index.js +4 -0
- package/dist/agenda/bookingOfferings/models.d.ts +92 -0
- package/dist/agenda/bookingOfferings/models.js +3 -0
- package/dist/agenda/bookingRequirements/client.d.ts +118 -0
- package/dist/agenda/bookingRequirements/client.js +18 -0
- package/dist/agenda/bookingRequirements/index.d.ts +4 -0
- package/dist/agenda/bookingRequirements/index.js +4 -0
- package/dist/agenda/bookingSlots/client.d.ts +78 -0
- package/dist/agenda/bookingSlots/client.js +19 -0
- package/dist/agenda/bookingSlots/index.d.ts +4 -0
- package/dist/agenda/bookingSlots/index.js +4 -0
- package/dist/agenda/bookings/client.d.ts +44 -375
- package/dist/agenda/bookings/client.js +10 -52
- package/dist/agenda/bookings/index.d.ts +2 -2
- package/dist/agenda/bookings/models.d.ts +0 -92
- package/dist/agenda/client.d.ts +14 -0
- package/dist/agenda/client.js +35 -0
- package/dist/agenda/firstAvailability/client.d.ts +74 -0
- package/dist/agenda/firstAvailability/client.js +19 -0
- package/dist/agenda/firstAvailability/index.d.ts +5 -0
- package/dist/agenda/firstAvailability/index.js +4 -0
- package/dist/agenda/firstAvailability/models.d.ts +31 -0
- package/dist/agenda/firstAvailability/models.js +7 -0
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/models.d.ts +19 -94
- package/dist/agenda/models.js +0 -3
- package/dist/agenda/nearestBookingSlots/client.d.ts +93 -0
- package/dist/agenda/nearestBookingSlots/client.js +19 -0
- package/dist/agenda/nearestBookingSlots/index.d.ts +5 -0
- package/dist/agenda/nearestBookingSlots/index.js +4 -0
- package/dist/agenda/nearestBookingSlots/models.d.ts +38 -0
- package/dist/agenda/nearestBookingSlots/models.js +7 -0
- package/dist/agenda/offerings/client.d.ts +2 -2
- package/dist/agenda/offerings/client.js +1 -1
- package/dist/agenda/resourceSchedules/client.d.ts +75 -0
- package/dist/agenda/resourceSchedules/client.js +19 -0
- package/dist/agenda/resourceSchedules/index.d.ts +4 -0
- package/dist/agenda/resourceSchedules/index.js +4 -0
- package/dist/agenda/resources/client.d.ts +2 -2
- package/dist/agenda/resources/client.js +1 -1
- package/dist/agenda/scheduleRules/client.d.ts +125 -85
- package/dist/agenda/scheduleRules/client.js +17 -16
- package/dist/agenda/scheduleRules/index.d.ts +2 -1
- package/dist/agenda/scheduleRules/models.d.ts +33 -0
- package/dist/agenda/scheduleRules/models.js +6 -0
- package/dist/agenda/services/client.d.ts +2 -2
- package/dist/agenda/services/client.js +1 -1
- package/dist/agenda/waitlist/client.d.ts +40 -29
- package/dist/agenda/waitlist/client.js +4 -4
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +17 -0
- package/dist/agenda/waitlist/models.js +4 -1
- package/dist/axxa/authorizations/client.d.ts +3 -35
- package/dist/axxa/authorizations/client.js +1 -1
- package/dist/axxa/authorizations/index.d.ts +1 -0
- package/dist/axxa/authorizations/models.d.ts +112 -0
- package/dist/axxa/authorizations/models.js +3 -0
- package/dist/axxa/connections/client.d.ts +19 -45
- package/dist/axxa/connections/client.js +10 -11
- package/dist/axxa/connections/index.d.ts +1 -0
- package/dist/axxa/connections/models.d.ts +269 -0
- package/dist/axxa/connections/models.js +3 -0
- package/dist/axxa/eligibility/client.d.ts +3 -25
- package/dist/axxa/eligibility/client.js +1 -1
- package/dist/axxa/eligibility/index.d.ts +1 -0
- package/dist/axxa/eligibility/models.d.ts +102 -0
- package/dist/axxa/eligibility/models.js +3 -0
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +243 -168
- package/dist/axxa/provider/client.d.ts +5 -11
- package/dist/axxa/provider/client.js +1 -1
- package/dist/axxa/provider/index.d.ts +1 -0
- package/dist/axxa/provider/models.d.ts +87 -0
- package/dist/axxa/provider/models.js +3 -0
- package/dist/gmedic/agendaServices/client.d.ts +13 -9
- package/dist/gmedic/agendaServices/client.js +2 -2
- package/dist/gmedic/agendaServices/index.d.ts +1 -1
- package/dist/gmedic/agendaServices/models.d.ts +53 -1
- package/dist/gmedic/agendas/client.d.ts +16 -9
- package/dist/gmedic/agendas/client.js +2 -2
- package/dist/gmedic/agendas/index.d.ts +1 -1
- package/dist/gmedic/agendas/models.d.ts +53 -1
- package/dist/gmedic/appointments/client.d.ts +34 -241
- package/dist/gmedic/appointments/client.js +12 -10
- package/dist/gmedic/appointments/index.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +518 -1
- package/dist/gmedic/appointments/models.js +28 -2
- package/dist/gmedic/availability/client.d.ts +24 -10
- package/dist/gmedic/availability/client.js +4 -3
- package/dist/gmedic/availability/index.d.ts +1 -1
- package/dist/gmedic/availability/models.d.ts +57 -1
- package/dist/gmedic/availability/models.js +7 -1
- package/dist/gmedic/availableDays/client.d.ts +11 -8
- package/dist/gmedic/availableDays/client.js +1 -1
- package/dist/gmedic/availableDays/index.d.ts +1 -1
- package/dist/gmedic/availableDays/models.d.ts +53 -1
- package/dist/gmedic/branchOffices/client.d.ts +13 -9
- package/dist/gmedic/branchOffices/client.js +2 -2
- package/dist/gmedic/branchOffices/index.d.ts +1 -1
- package/dist/gmedic/branchOffices/models.d.ts +58 -1
- package/dist/gmedic/connections/client.d.ts +19 -42
- package/dist/gmedic/connections/client.js +10 -11
- package/dist/gmedic/connections/index.d.ts +1 -0
- package/dist/gmedic/connections/models.d.ts +162 -0
- package/dist/gmedic/connections/models.js +3 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +20 -10
- package/dist/gmedic/dictionaryEntries/client.js +2 -2
- package/dist/gmedic/dictionaryEntries/index.d.ts +1 -1
- package/dist/gmedic/dictionaryEntries/models.d.ts +53 -1
- package/dist/gmedic/healthPartners/client.d.ts +19 -9
- package/dist/gmedic/healthPartners/client.js +2 -2
- package/dist/gmedic/healthPartners/index.d.ts +1 -1
- package/dist/gmedic/healthPartners/models.d.ts +53 -1
- package/dist/gmedic/healthPromotionEntities/client.d.ts +20 -10
- package/dist/gmedic/healthPromotionEntities/client.js +2 -2
- package/dist/gmedic/healthPromotionEntities/index.d.ts +1 -1
- package/dist/gmedic/healthPromotionEntities/models.d.ts +53 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +20 -10
- package/dist/gmedic/laboralRiskManagers/client.js +2 -2
- package/dist/gmedic/laboralRiskManagers/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/models.d.ts +53 -1
- package/dist/gmedic/models.d.ts +194 -133
- package/dist/gmedic/occupations/client.d.ts +19 -9
- package/dist/gmedic/occupations/client.js +2 -2
- package/dist/gmedic/occupations/index.d.ts +1 -1
- package/dist/gmedic/occupations/models.d.ts +53 -1
- package/dist/gmedic/patientNotes/client.d.ts +25 -55
- package/dist/gmedic/patientNotes/client.js +5 -5
- package/dist/gmedic/patientNotes/index.d.ts +1 -1
- package/dist/gmedic/patientNotes/models.d.ts +232 -1
- package/dist/gmedic/patients/client.d.ts +40 -359
- package/dist/gmedic/patients/client.js +13 -5
- package/dist/gmedic/patients/index.d.ts +2 -2
- package/dist/gmedic/patients/models.d.ts +795 -1
- package/dist/gmedic/services/client.d.ts +22 -16
- package/dist/gmedic/services/client.js +2 -2
- package/dist/gmedic/services/index.d.ts +1 -1
- package/dist/gmedic/services/models.d.ts +53 -3
- package/dist/gmedic/sessionPackages/client.d.ts +21 -58
- package/dist/gmedic/sessionPackages/client.js +5 -5
- package/dist/gmedic/sessionPackages/index.d.ts +1 -1
- package/dist/gmedic/sessionPackages/models.d.ts +183 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +61 -0
- package/dist/models.js +6 -0
- package/dist/nuevaEps/affiliations/client.js +1 -1
- package/dist/nuevaEps/affiliations/models.d.ts +3 -1
- package/dist/nuevaEps/connections/client.d.ts +9 -9
- package/dist/nuevaEps/connections/client.js +9 -9
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +1 -47
- package/dist/nuevaEps/connections/models.js +1 -8
- package/dist/sura/affiliations/client.d.ts +3 -35
- package/dist/sura/affiliations/client.js +6 -6
- package/dist/sura/affiliations/index.d.ts +1 -0
- package/dist/sura/affiliations/models.d.ts +71 -0
- package/dist/sura/affiliations/models.js +8 -0
- package/dist/sura/appointments/client.d.ts +27 -327
- package/dist/sura/appointments/client.js +15 -21
- package/dist/sura/appointments/index.d.ts +2 -1
- package/dist/sura/appointments/models.d.ts +310 -0
- package/dist/sura/appointments/models.js +22 -0
- package/dist/sura/authorizations/client.d.ts +3 -43
- package/dist/sura/authorizations/client.js +6 -6
- package/dist/sura/authorizations/index.d.ts +1 -0
- package/dist/sura/authorizations/models.d.ts +79 -0
- package/dist/sura/authorizations/models.js +8 -0
- package/dist/sura/availability/client.d.ts +4 -68
- package/dist/sura/availability/client.js +9 -9
- package/dist/sura/availability/index.d.ts +2 -1
- package/dist/sura/availability/models.d.ts +103 -0
- package/dist/sura/availability/models.js +8 -0
- package/dist/sura/bookingOptions/client.d.ts +35 -0
- package/dist/sura/bookingOptions/client.js +19 -0
- package/dist/sura/bookingOptions/index.d.ts +5 -0
- package/dist/sura/bookingOptions/index.js +4 -0
- package/dist/sura/bookingOptions/models.d.ts +143 -0
- package/dist/sura/bookingOptions/models.js +8 -0
- package/dist/sura/client.d.ts +2 -0
- package/dist/sura/client.js +5 -0
- package/dist/sura/connections/client.d.ts +20 -98
- package/dist/sura/connections/client.js +10 -10
- package/dist/sura/connections/index.d.ts +1 -1
- package/dist/sura/connections/models.d.ts +102 -1
- package/dist/sura/connections/models.js +6 -0
- package/dist/sura/copays/client.d.ts +4 -40
- package/dist/sura/copays/client.js +9 -9
- package/dist/sura/copays/index.d.ts +2 -1
- package/dist/sura/copays/models.d.ts +75 -0
- package/dist/sura/copays/models.js +8 -0
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +204 -148
- package/dist/sura/models.js +20 -1
- package/dist/sura/operations/client.d.ts +2 -7
- package/dist/sura/operations/client.js +4 -4
- package/dist/sura/operations/index.d.ts +1 -0
- package/dist/sura/operations/models.d.ts +43 -0
- package/dist/sura/operations/models.js +8 -0
- package/dist/sura/patients/client.d.ts +3 -40
- package/dist/sura/patients/client.js +6 -6
- package/dist/sura/patients/index.d.ts +1 -0
- package/dist/sura/patients/models.d.ts +76 -0
- package/dist/sura/patients/models.js +8 -0
- package/dist/sura/professionals/client.d.ts +7 -9
- package/dist/sura/professionals/client.js +3 -4
- package/dist/sura/professionals/index.d.ts +1 -1
- package/dist/sura/professionals/models.d.ts +40 -1
- package/dist/sura/services/client.d.ts +7 -8
- package/dist/sura/services/client.js +3 -4
- package/dist/sura/services/index.d.ts +1 -0
- package/dist/sura/services/models.d.ts +40 -0
- package/dist/sura/services/models.js +3 -0
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +1 -16
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
2
|
export interface SuraConnection {
|
|
3
3
|
/**
|
|
4
4
|
* Why a failed connection failed: CREDENTIALS_REJECTED (SURA refused a stored
|
|
@@ -78,6 +78,42 @@ export interface SuraConnectionPage {
|
|
|
78
78
|
*/
|
|
79
79
|
pageInfo: PageInfo;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* A successful answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface SuraConnectionPageResponse {
|
|
85
|
+
data: SuraConnectionPage;
|
|
86
|
+
error: null;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: ResponseMetadata;
|
|
91
|
+
success: true;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A successful answer.
|
|
95
|
+
*/
|
|
96
|
+
export interface SuraConnectionResponse {
|
|
97
|
+
/**
|
|
98
|
+
* One of the organization's SURA connections. Never a credential.
|
|
99
|
+
*/
|
|
100
|
+
data: SuraConnection;
|
|
101
|
+
error: null;
|
|
102
|
+
/**
|
|
103
|
+
* What every answer carries besides its data or error.
|
|
104
|
+
*/
|
|
105
|
+
metadata: ResponseMetadata;
|
|
106
|
+
success: true;
|
|
107
|
+
}
|
|
108
|
+
export interface SuraDeleteConnectionBody {
|
|
109
|
+
/**
|
|
110
|
+
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
111
|
+
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
112
|
+
* This changes presentation only, never authorization, consent or
|
|
113
|
+
* idempotency.
|
|
114
|
+
*/
|
|
115
|
+
agentMode?: boolean;
|
|
116
|
+
}
|
|
81
117
|
export interface SuraInstitution {
|
|
82
118
|
/**
|
|
83
119
|
* The institution (IPS) id the portal uses.
|
|
@@ -102,5 +138,70 @@ export interface SuraLoginVerification {
|
|
|
102
138
|
*/
|
|
103
139
|
visitorId?: string;
|
|
104
140
|
}
|
|
141
|
+
export interface SuraVerifyConnectionBody {
|
|
142
|
+
/**
|
|
143
|
+
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
144
|
+
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
145
|
+
* This changes presentation only, never authorization, consent or
|
|
146
|
+
* idempotency.
|
|
147
|
+
*/
|
|
148
|
+
agentMode?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Agenda only: the institution (IPS) the connection schedules in, which every
|
|
151
|
+
* login must see. Without it, the connection keeps its own, or takes the one
|
|
152
|
+
* its first login sees when it sees one.
|
|
153
|
+
*/
|
|
154
|
+
institutionId?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The SURA users to prove: one real login each, in turn. A connection holds
|
|
157
|
+
* one to five distinct users; users it already holds and that are not sent
|
|
158
|
+
* stay as they are. The same user cannot appear in two of the organization's
|
|
159
|
+
* connections.
|
|
160
|
+
*/
|
|
161
|
+
logins: {
|
|
162
|
+
password: string;
|
|
163
|
+
totpSecret: string;
|
|
164
|
+
username: string;
|
|
165
|
+
}[];
|
|
166
|
+
/**
|
|
167
|
+
* The name the organization gives the connection.
|
|
168
|
+
*/
|
|
169
|
+
name: string;
|
|
170
|
+
/**
|
|
171
|
+
* Which portal its logins log in to; by default the connection's own, or
|
|
172
|
+
* agenda.
|
|
173
|
+
*/
|
|
174
|
+
portal?: "agenda" | "saludweb";
|
|
175
|
+
}
|
|
176
|
+
export type SuraVerifyConnectionResult = {
|
|
177
|
+
institution: SuraInstitution | null;
|
|
178
|
+
logins: SuraLoginVerification[];
|
|
179
|
+
stateRef: string;
|
|
180
|
+
status: "active";
|
|
181
|
+
summary: string;
|
|
182
|
+
username: string;
|
|
183
|
+
} | {
|
|
184
|
+
institutions: SuraInstitution[];
|
|
185
|
+
logins: SuraLoginVerification[];
|
|
186
|
+
status: "institution_required";
|
|
187
|
+
} | {
|
|
188
|
+
errorCode: "CREDENTIALS_REJECTED" | "PROVIDER_SESSION_CONFLICT" | "PROVIDER_UNAVAILABLE";
|
|
189
|
+
logins: SuraLoginVerification[];
|
|
190
|
+
status: "rejected";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A successful answer.
|
|
194
|
+
*/
|
|
195
|
+
export interface SuraVerifyConnectionResultResponse {
|
|
196
|
+
data: SuraVerifyConnectionResult;
|
|
197
|
+
error: null;
|
|
198
|
+
/**
|
|
199
|
+
* What every answer carries besides its data or error.
|
|
200
|
+
*/
|
|
201
|
+
metadata: ResponseMetadata;
|
|
202
|
+
success: true;
|
|
203
|
+
}
|
|
105
204
|
export declare const SuraConnectionCodec: import("../../_/codec.js").Codec;
|
|
106
205
|
export declare const SuraConnectionPageCodec: import("../../_/codec.js").Codec;
|
|
206
|
+
export declare const SuraConnectionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
207
|
+
export declare const SuraConnectionResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -10,3 +10,9 @@ export const SuraConnectionCodec = object([
|
|
|
10
10
|
export const SuraConnectionPageCodec = object([
|
|
11
11
|
["data", null, array(() => SuraConnectionCodec)],
|
|
12
12
|
]);
|
|
13
|
+
export const SuraConnectionPageResponseCodec = object([
|
|
14
|
+
["data", null, () => SuraConnectionPageCodec],
|
|
15
|
+
]);
|
|
16
|
+
export const SuraConnectionResponseCodec = object([
|
|
17
|
+
["data", null, () => SuraConnectionCodec],
|
|
18
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type SuraLookupCopayHistoryBody, type SuraLookupCopayHistoryResultResponse } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -15,45 +15,9 @@ export interface Client {
|
|
|
15
15
|
* voucher quote. No history does not imply exemption. Incomplete or unknown
|
|
16
16
|
* provider responses fail closed. Never updates accumulated copays.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
19
|
}
|
|
20
20
|
export declare function createClient(options: ClientOptions): Client;
|
|
21
21
|
export declare function bind(transport: Transport): Client;
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
* Exact patient document number.
|
|
25
|
-
*/
|
|
26
|
-
documentNumber: string;
|
|
27
|
-
/**
|
|
28
|
-
* Document type. Defaults to CC.
|
|
29
|
-
*/
|
|
30
|
-
documentType?: "CC" | null;
|
|
31
|
-
/**
|
|
32
|
-
* Explicit four-digit year for copay history, from 2000 to 2099.
|
|
33
|
-
*/
|
|
34
|
-
year: string;
|
|
35
|
-
/**
|
|
36
|
-
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
37
|
-
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
38
|
-
* This changes presentation only, never authorization, consent or
|
|
39
|
-
* idempotency.
|
|
40
|
-
*/
|
|
41
|
-
agentMode?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Which of the organization's SURA connections to run on, by its id. Optional
|
|
44
|
-
* while the organization has one; required when it has several.
|
|
45
|
-
*/
|
|
46
|
-
connectionId?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The channel the caller is waiting on, which sets how long it waits before
|
|
49
|
-
* an answer comes back pending, and puts a phone call's reads ahead of
|
|
50
|
-
* others. Defaults to web.
|
|
51
|
-
*/
|
|
52
|
-
channel?: "voice" | "whatsapp" | "web";
|
|
53
|
-
}
|
|
54
|
-
export interface ListResponse {
|
|
55
|
-
data: SuraPendingResult | SuraRefusal | SuraCopayHistory | SuraNoCopayHistory;
|
|
56
|
-
error: null;
|
|
57
|
-
metadata: SuraResponseMetadata;
|
|
58
|
-
success: true;
|
|
59
|
-
}
|
|
22
|
+
export type LookupRequest = SuraLookupCopayHistoryBody;
|
|
23
|
+
export type LookupResponse = SuraLookupCopayHistoryResultResponse;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SuraLookupCopayHistoryResultResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
8
8
|
export function bind(transport) {
|
|
9
9
|
return {
|
|
10
|
-
|
|
10
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
method: "
|
|
15
|
-
route: "/v1/sura/copays",
|
|
16
|
-
|
|
17
|
-
response:
|
|
18
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
13
|
+
const LookupOperation = {
|
|
14
|
+
method: "POST",
|
|
15
|
+
route: "/v1/sura/copays/lookup",
|
|
16
|
+
body: "flat",
|
|
17
|
+
response: SuraLookupCopayHistoryResultResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
19
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ApiError } from "../../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions,
|
|
4
|
+
export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { SuraLookupCopayHistoryBadGatewayError, SuraLookupCopayHistoryBadGatewayFailure, SuraLookupCopayHistoryBody, SuraLookupCopayHistoryConflictError, SuraLookupCopayHistoryConflictFailure, SuraLookupCopayHistoryResult, SuraLookupCopayHistoryResultResponse, } from "./models.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import { type SuraConnectionNotConfiguredFailure, type SuraCopayHistory, type SuraNoCopayHistory, type SuraPendingResult, type SuraPortalCredentialsRejectedFailure, type SuraPortalSessionConflictFailure, type SuraPortalUnavailableFailure, type SuraRefusal } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SuraLookupCopayHistoryBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SuraLookupCopayHistoryBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SuraLookupCopayHistoryBadGatewayFailure = OutcomeUnknownFailure | SuraPortalCredentialsRejectedFailure | SuraPortalUnavailableFailure;
|
|
16
|
+
export interface SuraLookupCopayHistoryBody {
|
|
17
|
+
/**
|
|
18
|
+
* Set agentMode=true when calling this tool for an AI agent. The answer is
|
|
19
|
+
* concise Spanish text instead of JSON. Omit it for structured machine data.
|
|
20
|
+
* This changes presentation only, never authorization, consent or
|
|
21
|
+
* idempotency.
|
|
22
|
+
*/
|
|
23
|
+
agentMode?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The channel the caller is waiting on, which sets how long it waits before
|
|
26
|
+
* an answer comes back pending, and puts a phone call's reads ahead of
|
|
27
|
+
* others. Defaults to web.
|
|
28
|
+
*/
|
|
29
|
+
channel?: "voice" | "whatsapp" | "web";
|
|
30
|
+
/**
|
|
31
|
+
* Which of the organization's SURA connections to run on, by its id. Optional
|
|
32
|
+
* while the organization has one; required when it has several.
|
|
33
|
+
*/
|
|
34
|
+
connectionId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Exact patient document number.
|
|
37
|
+
*/
|
|
38
|
+
documentNumber: string;
|
|
39
|
+
/**
|
|
40
|
+
* Document type. Defaults to CC.
|
|
41
|
+
*/
|
|
42
|
+
documentType?: "CC" | null;
|
|
43
|
+
/**
|
|
44
|
+
* Explicit four-digit year for copay history, from 2000 to 2099.
|
|
45
|
+
*/
|
|
46
|
+
year: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A failed answer.
|
|
50
|
+
*/
|
|
51
|
+
export interface SuraLookupCopayHistoryConflictError {
|
|
52
|
+
data: null;
|
|
53
|
+
error: SuraLookupCopayHistoryConflictFailure;
|
|
54
|
+
/**
|
|
55
|
+
* What every answer carries besides its data or error.
|
|
56
|
+
*/
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
|
+
success: false;
|
|
59
|
+
}
|
|
60
|
+
export type SuraLookupCopayHistoryConflictFailure = SuraPortalSessionConflictFailure | SuraConnectionNotConfiguredFailure;
|
|
61
|
+
export type SuraLookupCopayHistoryResult = SuraPendingResult | SuraRefusal | SuraCopayHistory | SuraNoCopayHistory;
|
|
62
|
+
/**
|
|
63
|
+
* A successful answer.
|
|
64
|
+
*/
|
|
65
|
+
export interface SuraLookupCopayHistoryResultResponse {
|
|
66
|
+
data: SuraLookupCopayHistoryResult;
|
|
67
|
+
error: null;
|
|
68
|
+
/**
|
|
69
|
+
* What every answer carries besides its data or error.
|
|
70
|
+
*/
|
|
71
|
+
metadata: ResponseMetadata;
|
|
72
|
+
success: true;
|
|
73
|
+
}
|
|
74
|
+
export declare const SuraLookupCopayHistoryResultCodec: import("../../_/codec.js").Codec;
|
|
75
|
+
export declare const SuraLookupCopayHistoryResultResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { object, union } from "../../_/index.js";
|
|
4
|
+
import { SuraCopayHistoryCodec, SuraNoCopayHistoryCodec, SuraPendingResultCodec, SuraRefusalCodec, } from "../models.js";
|
|
5
|
+
export const SuraLookupCopayHistoryResultCodec = union([() => SuraPendingResultCodec, () => SuraRefusalCodec, () => SuraCopayHistoryCodec, () => SuraNoCopayHistoryCodec]);
|
|
6
|
+
export const SuraLookupCopayHistoryResultResponseCodec = object([
|
|
7
|
+
["data", null, () => SuraLookupCopayHistoryResultCodec],
|
|
8
|
+
]);
|
package/dist/sura/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 { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraCopayEntry, SuraCopayHistory,
|
|
5
|
+
export type { SuraAffiliation, SuraAppointment, SuraAppointmentPage, SuraAuthorization, SuraAvailability, SuraAvailabilityPatient, SuraAvailableDay, SuraBookedAppointment, SuraCancelledAppointment, SuraConnectionNotConfiguredFailure, SuraCopayEntry, SuraCopayHistory, SuraNoContract, SuraNoCopayHistory, SuraOpening, SuraPatient, SuraPatientFound, SuraPatientNotFound, SuraPendingResult, SuraPortalCredentialsRejectedFailure, SuraPortalSessionConflictFailure, SuraPortalUnavailableFailure, SuraPreparationAvailable, SuraPreparationExistingAppointment, SuraPreparationNoSlots, SuraPreparationPatientNotFound, SuraRefusal, SuraSearchedDay, SuraService, SuraServicePage, SuraToolRefusedError, SuraToolRefusedFailure, SuraToolRefusedFailureData, } from "./models.js";
|