@clinia/context-engine-js 0.5.0-rc.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/CHANGELOG.md +57 -0
- package/LICENSE +201 -0
- package/README.md +154 -0
- package/dist/auth.d.ts +90 -0
- package/dist/context-engine-client.d.ts +14 -0
- package/dist/generated/context-engine.d.ts +1706 -0
- package/dist/generated/types.d.ts +26 -0
- package/dist/http-client.d.ts +40 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +164 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/index.d.ts +5 -0
- package/dist/resources/info.d.ts +24 -0
- package/dist/resources/ingest.d.ts +323 -0
- package/dist/resources/patients.d.ts +211 -0
- package/dist/resources/sessions.d.ts +316 -0
- package/dist/resources/vfs.d.ts +99 -0
- package/package.json +53 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import type { HttpClient } from "../http-client";
|
|
2
|
+
export declare class PatientsResource {
|
|
3
|
+
#private;
|
|
4
|
+
constructor(http: HttpClient);
|
|
5
|
+
listPatients(): Promise<import("openapi-fetch").FetchResponse<{
|
|
6
|
+
parameters: {
|
|
7
|
+
query?: never;
|
|
8
|
+
header?: never;
|
|
9
|
+
path?: never;
|
|
10
|
+
cookie?: never;
|
|
11
|
+
};
|
|
12
|
+
requestBody?: never;
|
|
13
|
+
responses: {
|
|
14
|
+
200: {
|
|
15
|
+
headers: {
|
|
16
|
+
[name: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": import("..").components["schemas"]["PatientList"];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, undefined, `${string}/${string}`>>;
|
|
24
|
+
getPatient(patientId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
25
|
+
parameters: {
|
|
26
|
+
query?: never;
|
|
27
|
+
header?: never;
|
|
28
|
+
path: {
|
|
29
|
+
patientId: string;
|
|
30
|
+
};
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
requestBody?: never;
|
|
34
|
+
responses: {
|
|
35
|
+
200: {
|
|
36
|
+
headers: {
|
|
37
|
+
[name: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
content: {
|
|
40
|
+
"application/json": import("..").components["schemas"]["PatientDetail"];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
404: {
|
|
44
|
+
headers: {
|
|
45
|
+
[name: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
content: {
|
|
48
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
params: {
|
|
54
|
+
path: {
|
|
55
|
+
patientId: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, `${string}/${string}`>>;
|
|
59
|
+
getResolution(patientId: string, params?: {
|
|
60
|
+
query?: {
|
|
61
|
+
page?: number;
|
|
62
|
+
perPage?: number;
|
|
63
|
+
};
|
|
64
|
+
}): Promise<import("openapi-fetch").FetchResponse<{
|
|
65
|
+
parameters: {
|
|
66
|
+
query?: {
|
|
67
|
+
page?: number | null;
|
|
68
|
+
perPage?: number;
|
|
69
|
+
};
|
|
70
|
+
header?: never;
|
|
71
|
+
path: {
|
|
72
|
+
patientId: string;
|
|
73
|
+
};
|
|
74
|
+
cookie?: never;
|
|
75
|
+
};
|
|
76
|
+
requestBody?: never;
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
content: {
|
|
83
|
+
"application/json": import("..").components["schemas"]["ResolutionReport"];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
404: {
|
|
87
|
+
headers: {
|
|
88
|
+
[name: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
content: {
|
|
91
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
params: {
|
|
97
|
+
query?: {
|
|
98
|
+
page?: number;
|
|
99
|
+
perPage?: number;
|
|
100
|
+
} | undefined;
|
|
101
|
+
path: {
|
|
102
|
+
patientId: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}, `${string}/${string}`>>;
|
|
106
|
+
getReconciliation(patientId: string, params?: {
|
|
107
|
+
query?: {
|
|
108
|
+
format?: "json" | "markdown";
|
|
109
|
+
};
|
|
110
|
+
}): Promise<import("openapi-fetch").FetchResponse<{
|
|
111
|
+
parameters: {
|
|
112
|
+
query?: {
|
|
113
|
+
format?: "json" | "markdown";
|
|
114
|
+
};
|
|
115
|
+
header?: never;
|
|
116
|
+
path: {
|
|
117
|
+
patientId: string;
|
|
118
|
+
};
|
|
119
|
+
cookie?: never;
|
|
120
|
+
};
|
|
121
|
+
requestBody?: never;
|
|
122
|
+
responses: {
|
|
123
|
+
200: {
|
|
124
|
+
headers: {
|
|
125
|
+
[name: string]: unknown;
|
|
126
|
+
};
|
|
127
|
+
content: {
|
|
128
|
+
"application/json": import("..").components["schemas"]["ReconciliationData"];
|
|
129
|
+
"text/plain": string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
404: {
|
|
133
|
+
headers: {
|
|
134
|
+
[name: string]: unknown;
|
|
135
|
+
};
|
|
136
|
+
content: {
|
|
137
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
params: {
|
|
143
|
+
query?: {
|
|
144
|
+
format?: "json" | "markdown";
|
|
145
|
+
} | undefined;
|
|
146
|
+
path: {
|
|
147
|
+
patientId: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}, `${string}/${string}`>>;
|
|
151
|
+
deletePatient(patientId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
152
|
+
parameters: {
|
|
153
|
+
query?: never;
|
|
154
|
+
header?: never;
|
|
155
|
+
path: {
|
|
156
|
+
patientId: string;
|
|
157
|
+
};
|
|
158
|
+
cookie?: never;
|
|
159
|
+
};
|
|
160
|
+
requestBody?: never;
|
|
161
|
+
responses: {
|
|
162
|
+
204: {
|
|
163
|
+
headers: {
|
|
164
|
+
[name: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
content?: never;
|
|
167
|
+
};
|
|
168
|
+
404: {
|
|
169
|
+
headers: {
|
|
170
|
+
[name: string]: unknown;
|
|
171
|
+
};
|
|
172
|
+
content: {
|
|
173
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
params: {
|
|
179
|
+
path: {
|
|
180
|
+
patientId: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
}, `${string}/${string}`>>;
|
|
184
|
+
upsertPatient(patientId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
185
|
+
parameters: {
|
|
186
|
+
query?: never;
|
|
187
|
+
header?: never;
|
|
188
|
+
path: {
|
|
189
|
+
patientId: string;
|
|
190
|
+
};
|
|
191
|
+
cookie?: never;
|
|
192
|
+
};
|
|
193
|
+
requestBody?: never;
|
|
194
|
+
responses: {
|
|
195
|
+
200: {
|
|
196
|
+
headers: {
|
|
197
|
+
[name: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
content: {
|
|
200
|
+
"application/json": import("..").components["schemas"]["Patient"];
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
params: {
|
|
206
|
+
path: {
|
|
207
|
+
patientId: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, `${string}/${string}`>>;
|
|
211
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import type { HttpClient } from "../http-client";
|
|
2
|
+
import type { AppendMessagesBody, IngestSessionBody } from "../generated/types";
|
|
3
|
+
export declare class SessionsResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
listSessionMemories(patientId: string, sessionId: string, params?: {
|
|
7
|
+
query?: {
|
|
8
|
+
page?: number;
|
|
9
|
+
perPage?: number;
|
|
10
|
+
sort?: "createdAt";
|
|
11
|
+
order?: "asc" | "desc";
|
|
12
|
+
};
|
|
13
|
+
}): Promise<import("openapi-fetch").FetchResponse<{
|
|
14
|
+
parameters: {
|
|
15
|
+
query?: {
|
|
16
|
+
page?: number | null;
|
|
17
|
+
perPage?: number;
|
|
18
|
+
sort?: "createdAt";
|
|
19
|
+
order?: "asc" | "desc";
|
|
20
|
+
};
|
|
21
|
+
header?: never;
|
|
22
|
+
path: {
|
|
23
|
+
patientId: string;
|
|
24
|
+
sessionId: string;
|
|
25
|
+
};
|
|
26
|
+
cookie?: never;
|
|
27
|
+
};
|
|
28
|
+
requestBody?: never;
|
|
29
|
+
responses: {
|
|
30
|
+
200: {
|
|
31
|
+
headers: {
|
|
32
|
+
[name: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
content: {
|
|
35
|
+
"application/json": import("..").components["schemas"]["SessionMemoryList"];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
404: {
|
|
39
|
+
headers: {
|
|
40
|
+
[name: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
content: {
|
|
43
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
params: {
|
|
49
|
+
query?: {
|
|
50
|
+
page?: number;
|
|
51
|
+
perPage?: number;
|
|
52
|
+
sort?: "createdAt";
|
|
53
|
+
order?: "asc" | "desc";
|
|
54
|
+
} | undefined;
|
|
55
|
+
path: {
|
|
56
|
+
patientId: string;
|
|
57
|
+
sessionId: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, `${string}/${string}`>>;
|
|
61
|
+
createSession(patientId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
62
|
+
parameters: {
|
|
63
|
+
query?: never;
|
|
64
|
+
header?: never;
|
|
65
|
+
path: {
|
|
66
|
+
patientId: string;
|
|
67
|
+
};
|
|
68
|
+
cookie?: never;
|
|
69
|
+
};
|
|
70
|
+
requestBody?: never;
|
|
71
|
+
responses: {
|
|
72
|
+
201: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
content: {
|
|
77
|
+
"application/json": import("..").components["schemas"]["Session"];
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
404: {
|
|
81
|
+
headers: {
|
|
82
|
+
[name: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
content: {
|
|
85
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
params: {
|
|
91
|
+
path: {
|
|
92
|
+
patientId: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}, `${string}/${string}`>>;
|
|
96
|
+
getSession(patientId: string, sessionId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
97
|
+
parameters: {
|
|
98
|
+
query?: never;
|
|
99
|
+
header?: never;
|
|
100
|
+
path: {
|
|
101
|
+
patientId: string;
|
|
102
|
+
sessionId: string;
|
|
103
|
+
};
|
|
104
|
+
cookie?: never;
|
|
105
|
+
};
|
|
106
|
+
requestBody?: never;
|
|
107
|
+
responses: {
|
|
108
|
+
200: {
|
|
109
|
+
headers: {
|
|
110
|
+
[name: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
content: {
|
|
113
|
+
"application/json": import("..").components["schemas"]["Session"];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
404: {
|
|
117
|
+
headers: {
|
|
118
|
+
[name: string]: unknown;
|
|
119
|
+
};
|
|
120
|
+
content: {
|
|
121
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
params: {
|
|
127
|
+
path: {
|
|
128
|
+
patientId: string;
|
|
129
|
+
sessionId: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}, `${string}/${string}`>>;
|
|
133
|
+
upsertSession(patientId: string, sessionId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
134
|
+
parameters: {
|
|
135
|
+
query?: never;
|
|
136
|
+
header?: never;
|
|
137
|
+
path: {
|
|
138
|
+
patientId: string;
|
|
139
|
+
sessionId: string;
|
|
140
|
+
};
|
|
141
|
+
cookie?: never;
|
|
142
|
+
};
|
|
143
|
+
requestBody?: never;
|
|
144
|
+
responses: {
|
|
145
|
+
200: {
|
|
146
|
+
headers: {
|
|
147
|
+
[name: string]: unknown;
|
|
148
|
+
};
|
|
149
|
+
content: {
|
|
150
|
+
"application/json": import("..").components["schemas"]["Session"];
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
201: {
|
|
154
|
+
headers: {
|
|
155
|
+
[name: string]: unknown;
|
|
156
|
+
};
|
|
157
|
+
content: {
|
|
158
|
+
"application/json": import("..").components["schemas"]["Session"];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
404: {
|
|
162
|
+
headers: {
|
|
163
|
+
[name: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
content: {
|
|
166
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}, {
|
|
171
|
+
params: {
|
|
172
|
+
path: {
|
|
173
|
+
patientId: string;
|
|
174
|
+
sessionId: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
}, `${string}/${string}`>>;
|
|
178
|
+
appendMessages(patientId: string, sessionId: string, body: AppendMessagesBody): Promise<import("openapi-fetch").FetchResponse<{
|
|
179
|
+
parameters: {
|
|
180
|
+
query?: never;
|
|
181
|
+
header?: never;
|
|
182
|
+
path: {
|
|
183
|
+
patientId: string;
|
|
184
|
+
sessionId: string;
|
|
185
|
+
};
|
|
186
|
+
cookie?: never;
|
|
187
|
+
};
|
|
188
|
+
requestBody: {
|
|
189
|
+
content: {
|
|
190
|
+
"application/json": import("..").components["schemas"]["AppendMessagesBody"];
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
responses: {
|
|
194
|
+
200: {
|
|
195
|
+
headers: {
|
|
196
|
+
[name: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
content: {
|
|
199
|
+
"application/json": {
|
|
200
|
+
ok: boolean;
|
|
201
|
+
messageCount: number;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
404: {
|
|
206
|
+
headers: {
|
|
207
|
+
[name: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
content: {
|
|
210
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
}, {
|
|
215
|
+
params: {
|
|
216
|
+
path: {
|
|
217
|
+
patientId: string;
|
|
218
|
+
sessionId: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
body: {
|
|
222
|
+
messages: {
|
|
223
|
+
role: "user" | "assistant";
|
|
224
|
+
content: string;
|
|
225
|
+
}[];
|
|
226
|
+
};
|
|
227
|
+
}, `${string}/${string}`>>;
|
|
228
|
+
generateMemories(patientId: string, sessionId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
229
|
+
parameters: {
|
|
230
|
+
query?: never;
|
|
231
|
+
header?: never;
|
|
232
|
+
path: {
|
|
233
|
+
patientId: string;
|
|
234
|
+
sessionId: string;
|
|
235
|
+
};
|
|
236
|
+
cookie?: never;
|
|
237
|
+
};
|
|
238
|
+
requestBody?: never;
|
|
239
|
+
responses: {
|
|
240
|
+
200: {
|
|
241
|
+
headers: {
|
|
242
|
+
[name: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
content: {
|
|
245
|
+
"application/json": {
|
|
246
|
+
ok: boolean;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
404: {
|
|
251
|
+
headers: {
|
|
252
|
+
[name: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
content: {
|
|
255
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
params: {
|
|
261
|
+
path: {
|
|
262
|
+
patientId: string;
|
|
263
|
+
sessionId: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}, `${string}/${string}`>>;
|
|
267
|
+
ingestSession(patientId: string, body: IngestSessionBody): Promise<import("openapi-fetch").FetchResponse<{
|
|
268
|
+
parameters: {
|
|
269
|
+
query?: never;
|
|
270
|
+
header?: never;
|
|
271
|
+
path: {
|
|
272
|
+
patientId: string;
|
|
273
|
+
};
|
|
274
|
+
cookie?: never;
|
|
275
|
+
};
|
|
276
|
+
requestBody: {
|
|
277
|
+
content: {
|
|
278
|
+
"application/json": import("..").components["schemas"]["IngestSessionBody"];
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
responses: {
|
|
282
|
+
200: {
|
|
283
|
+
headers: {
|
|
284
|
+
[name: string]: unknown;
|
|
285
|
+
};
|
|
286
|
+
content: {
|
|
287
|
+
"application/json": {
|
|
288
|
+
ok: boolean;
|
|
289
|
+
sessionId: string;
|
|
290
|
+
messageCount: number;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
404: {
|
|
295
|
+
headers: {
|
|
296
|
+
[name: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
content: {
|
|
299
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
}, {
|
|
304
|
+
params: {
|
|
305
|
+
path: {
|
|
306
|
+
patientId: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
body: {
|
|
310
|
+
messages: {
|
|
311
|
+
role: "user" | "assistant";
|
|
312
|
+
content: string;
|
|
313
|
+
}[];
|
|
314
|
+
};
|
|
315
|
+
}, `${string}/${string}`>>;
|
|
316
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { HttpClient } from "../http-client";
|
|
2
|
+
export declare class VFSResource {
|
|
3
|
+
#private;
|
|
4
|
+
constructor(http: HttpClient);
|
|
5
|
+
browseVfs(patientId: string, params?: {
|
|
6
|
+
query?: {
|
|
7
|
+
path?: string;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<import("openapi-fetch").FetchResponse<{
|
|
10
|
+
parameters: {
|
|
11
|
+
query?: {
|
|
12
|
+
path?: string;
|
|
13
|
+
};
|
|
14
|
+
header?: never;
|
|
15
|
+
path: {
|
|
16
|
+
patientId: string;
|
|
17
|
+
};
|
|
18
|
+
cookie?: never;
|
|
19
|
+
};
|
|
20
|
+
requestBody?: never;
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
headers: {
|
|
24
|
+
[name: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
content: {
|
|
27
|
+
"application/json": import("..").components["schemas"]["BrowseResult"];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
404: {
|
|
31
|
+
headers: {
|
|
32
|
+
[name: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
content: {
|
|
35
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
params: {
|
|
41
|
+
query?: {
|
|
42
|
+
path?: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
path: {
|
|
45
|
+
patientId: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, `${string}/${string}`>>;
|
|
49
|
+
readVfs(patientId: string, params?: {
|
|
50
|
+
query?: {
|
|
51
|
+
path?: string;
|
|
52
|
+
format?: "narrative" | "structured" | "compact";
|
|
53
|
+
token_budget?: number;
|
|
54
|
+
};
|
|
55
|
+
}): Promise<import("openapi-fetch").FetchResponse<{
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: {
|
|
58
|
+
path?: string;
|
|
59
|
+
format?: "narrative" | "structured" | "compact";
|
|
60
|
+
token_budget?: number;
|
|
61
|
+
};
|
|
62
|
+
header?: never;
|
|
63
|
+
path: {
|
|
64
|
+
patientId: string;
|
|
65
|
+
};
|
|
66
|
+
cookie?: never;
|
|
67
|
+
};
|
|
68
|
+
requestBody?: never;
|
|
69
|
+
responses: {
|
|
70
|
+
200: {
|
|
71
|
+
headers: {
|
|
72
|
+
[name: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
content: {
|
|
75
|
+
"application/json": import("..").components["schemas"]["ReadResponse"];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
404: {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
content: {
|
|
83
|
+
"application/json": import("..").components["schemas"]["ApiError"];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
params: {
|
|
89
|
+
query?: {
|
|
90
|
+
path?: string;
|
|
91
|
+
format?: "narrative" | "structured" | "compact";
|
|
92
|
+
token_budget?: number;
|
|
93
|
+
} | undefined;
|
|
94
|
+
path: {
|
|
95
|
+
patientId: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}, `${string}/${string}`>>;
|
|
99
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clinia/context-engine-js",
|
|
3
|
+
"version": "0.5.0-rc.0",
|
|
4
|
+
"description": "TypeScript client for the Clinia Context Engine",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"clinia",
|
|
7
|
+
"context-engine",
|
|
8
|
+
"healthcare",
|
|
9
|
+
"fhir",
|
|
10
|
+
"openapi",
|
|
11
|
+
"api-client"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://docs.clinia.com/docs/introduction",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"author": "Clinia Health Inc.",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"CHANGELOG.md"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"@clinia:registry": "https://registry.npmjs.org/",
|
|
30
|
+
"registry": "https://registry.npmjs.org/",
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=20"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"oauth4webapi": "^3.8.6",
|
|
38
|
+
"openapi-fetch": "^0.17.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^22.15.2",
|
|
42
|
+
"openapi-typescript": "^7.13.0",
|
|
43
|
+
"tsup": "^8.5.1",
|
|
44
|
+
"tsx": "^4.21.0",
|
|
45
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
46
|
+
"yaml": "^2.8.3"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"generate": "openapi-typescript ../../openapi/context-engine.yaml -o src/generated/context-engine.ts && tsx scripts/generate-resources.ts",
|
|
50
|
+
"build": "tsup && tsc6 -p tsconfig.build.json",
|
|
51
|
+
"typecheck": "tsc6 --noEmit"
|
|
52
|
+
}
|
|
53
|
+
}
|