phenoml 6.3.0 → 6.3.1
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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +2 -0
- package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/construe/client/Client.js +6 -6
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +49 -49
- package/dist/cjs/api/resources/fhir/client/Client.js +69 -69
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +25 -25
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +10 -10
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +20 -20
- package/dist/cjs/core/fetcher/Fetcher.js +13 -7
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +2 -0
- package/dist/esm/api/resources/construe/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/construe/client/Client.mjs +6 -6
- package/dist/esm/api/resources/fhir/client/Client.d.mts +49 -49
- package/dist/esm/api/resources/fhir/client/Client.mjs +69 -69
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +25 -25
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +20 -20
- package/dist/esm/core/fetcher/Fetcher.mjs +13 -7
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +41 -41
|
@@ -211,7 +211,7 @@ class FhirProvider {
|
|
|
211
211
|
* Sandbox providers return FhirProviderSandboxInfo.
|
|
212
212
|
* On shared instances, only sandbox providers can be accessed.
|
|
213
213
|
*
|
|
214
|
-
* @param {string}
|
|
214
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to retrieve
|
|
215
215
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
216
|
*
|
|
217
217
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -221,15 +221,15 @@ class FhirProvider {
|
|
|
221
221
|
* @example
|
|
222
222
|
* await client.fhirProvider.get("fhir_provider_id")
|
|
223
223
|
*/
|
|
224
|
-
get(
|
|
225
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
224
|
+
get(fhir_provider_id, requestOptions) {
|
|
225
|
+
return core.HttpResponsePromise.fromPromise(this.__get(fhir_provider_id, requestOptions));
|
|
226
226
|
}
|
|
227
|
-
__get(
|
|
227
|
+
__get(fhir_provider_id, requestOptions) {
|
|
228
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
229
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
230
230
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
231
231
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
232
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
232
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
233
233
|
method: "GET",
|
|
234
234
|
headers: _headers,
|
|
235
235
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -283,7 +283,7 @@ class FhirProvider {
|
|
|
283
283
|
*
|
|
284
284
|
* Note: Sandbox providers cannot be deleted.
|
|
285
285
|
*
|
|
286
|
-
* @param {string}
|
|
286
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to delete
|
|
287
287
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
288
288
|
*
|
|
289
289
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -294,15 +294,15 @@ class FhirProvider {
|
|
|
294
294
|
* @example
|
|
295
295
|
* await client.fhirProvider.delete("fhir_provider_id")
|
|
296
296
|
*/
|
|
297
|
-
delete(
|
|
298
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
297
|
+
delete(fhir_provider_id, requestOptions) {
|
|
298
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(fhir_provider_id, requestOptions));
|
|
299
299
|
}
|
|
300
|
-
__delete(
|
|
300
|
+
__delete(fhir_provider_id, requestOptions) {
|
|
301
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
302
302
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
303
303
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
304
304
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
305
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
305
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
306
306
|
method: "DELETE",
|
|
307
307
|
headers: _headers,
|
|
308
308
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -359,7 +359,7 @@ class FhirProvider {
|
|
|
359
359
|
*
|
|
360
360
|
* Note: Sandbox providers cannot be modified.
|
|
361
361
|
*
|
|
362
|
-
* @param {string}
|
|
362
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to add auth config to
|
|
363
363
|
* @param {phenoml.fhirProvider.FhirProviderAddAuthConfigRequest} request
|
|
364
364
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
365
|
*
|
|
@@ -374,15 +374,15 @@ class FhirProvider {
|
|
|
374
374
|
* auth_method: "client_secret"
|
|
375
375
|
* })
|
|
376
376
|
*/
|
|
377
|
-
addAuthConfig(
|
|
378
|
-
return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(
|
|
377
|
+
addAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
378
|
+
return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(fhir_provider_id, request, requestOptions));
|
|
379
379
|
}
|
|
380
|
-
__addAuthConfig(
|
|
380
|
+
__addAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
381
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
382
382
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
383
383
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
384
384
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
385
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
385
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/add-auth-config`),
|
|
386
386
|
method: "PATCH",
|
|
387
387
|
headers: _headers,
|
|
388
388
|
contentType: "application/json",
|
|
@@ -447,7 +447,7 @@ class FhirProvider {
|
|
|
447
447
|
*
|
|
448
448
|
* Note: Sandbox providers cannot be modified.
|
|
449
449
|
*
|
|
450
|
-
* @param {string}
|
|
450
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
451
451
|
* @param {phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest} request
|
|
452
452
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
453
453
|
*
|
|
@@ -462,15 +462,15 @@ class FhirProvider {
|
|
|
462
462
|
* auth_config_id: "auth-config-123"
|
|
463
463
|
* })
|
|
464
464
|
*/
|
|
465
|
-
setActiveAuthConfig(
|
|
466
|
-
return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(
|
|
465
|
+
setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
466
|
+
return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(fhir_provider_id, request, requestOptions));
|
|
467
467
|
}
|
|
468
|
-
__setActiveAuthConfig(
|
|
468
|
+
__setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
469
469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
470
470
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
471
471
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
472
472
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
473
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
473
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/set-active-auth-config`),
|
|
474
474
|
method: "PATCH",
|
|
475
475
|
headers: _headers,
|
|
476
476
|
contentType: "application/json",
|
|
@@ -532,7 +532,7 @@ class FhirProvider {
|
|
|
532
532
|
*
|
|
533
533
|
* Note: Sandbox providers cannot be modified.
|
|
534
534
|
*
|
|
535
|
-
* @param {string}
|
|
535
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
536
536
|
* @param {phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest} request
|
|
537
537
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
538
538
|
*
|
|
@@ -547,15 +547,15 @@ class FhirProvider {
|
|
|
547
547
|
* auth_config_id: "auth-config-123"
|
|
548
548
|
* })
|
|
549
549
|
*/
|
|
550
|
-
removeAuthConfig(
|
|
551
|
-
return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(
|
|
550
|
+
removeAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
551
|
+
return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(fhir_provider_id, request, requestOptions));
|
|
552
552
|
}
|
|
553
|
-
__removeAuthConfig(
|
|
553
|
+
__removeAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
554
554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
555
555
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
556
556
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
557
557
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
558
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
558
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/remove-auth-config`),
|
|
559
559
|
method: "PATCH",
|
|
560
560
|
headers: _headers,
|
|
561
561
|
contentType: "application/json",
|
|
@@ -49,7 +49,7 @@ export declare class McpServer {
|
|
|
49
49
|
/**
|
|
50
50
|
* Gets a MCP server by ID
|
|
51
51
|
*
|
|
52
|
-
* @param {string}
|
|
52
|
+
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
53
53
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -59,12 +59,12 @@ export declare class McpServer {
|
|
|
59
59
|
* @example
|
|
60
60
|
* await client.tools.mcpServer.get("mcp_server_id")
|
|
61
61
|
*/
|
|
62
|
-
get(
|
|
62
|
+
get(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
63
63
|
private __get;
|
|
64
64
|
/**
|
|
65
65
|
* Deletes a MCP server by ID
|
|
66
66
|
*
|
|
67
|
-
* @param {string}
|
|
67
|
+
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
68
68
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -74,7 +74,7 @@ export declare class McpServer {
|
|
|
74
74
|
* @example
|
|
75
75
|
* await client.tools.mcpServer.delete("mcp_server_id")
|
|
76
76
|
*/
|
|
77
|
-
delete(
|
|
77
|
+
delete(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
78
78
|
private __delete;
|
|
79
79
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
80
80
|
}
|
|
@@ -203,7 +203,7 @@ class McpServer {
|
|
|
203
203
|
/**
|
|
204
204
|
* Gets a MCP server by ID
|
|
205
205
|
*
|
|
206
|
-
* @param {string}
|
|
206
|
+
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
207
207
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
208
|
*
|
|
209
209
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -213,15 +213,15 @@ class McpServer {
|
|
|
213
213
|
* @example
|
|
214
214
|
* await client.tools.mcpServer.get("mcp_server_id")
|
|
215
215
|
*/
|
|
216
|
-
get(
|
|
217
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
216
|
+
get(mcp_server_id, requestOptions) {
|
|
217
|
+
return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_id, requestOptions));
|
|
218
218
|
}
|
|
219
|
-
__get(
|
|
219
|
+
__get(mcp_server_id, requestOptions) {
|
|
220
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
221
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
222
222
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
223
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
224
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(
|
|
224
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
225
225
|
method: "GET",
|
|
226
226
|
headers: _headers,
|
|
227
227
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -270,7 +270,7 @@ class McpServer {
|
|
|
270
270
|
/**
|
|
271
271
|
* Deletes a MCP server by ID
|
|
272
272
|
*
|
|
273
|
-
* @param {string}
|
|
273
|
+
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
274
274
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
275
|
*
|
|
276
276
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -280,15 +280,15 @@ class McpServer {
|
|
|
280
280
|
* @example
|
|
281
281
|
* await client.tools.mcpServer.delete("mcp_server_id")
|
|
282
282
|
*/
|
|
283
|
-
delete(
|
|
284
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
283
|
+
delete(mcp_server_id, requestOptions) {
|
|
284
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_id, requestOptions));
|
|
285
285
|
}
|
|
286
|
-
__delete(
|
|
286
|
+
__delete(mcp_server_id, requestOptions) {
|
|
287
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
288
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
289
289
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
290
290
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
291
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(
|
|
291
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
292
292
|
method: "DELETE",
|
|
293
293
|
headers: _headers,
|
|
294
294
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -13,7 +13,7 @@ export declare class Tools {
|
|
|
13
13
|
/**
|
|
14
14
|
* Lists all MCP server tools for a specific MCP server
|
|
15
15
|
*
|
|
16
|
-
* @param {string}
|
|
16
|
+
* @param {string} mcp_server_id - ID of the MCP server to list tools for
|
|
17
17
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -23,12 +23,12 @@ export declare class Tools {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.tools.mcpServer.tools.list("mcp_server_id")
|
|
25
25
|
*/
|
|
26
|
-
list(
|
|
26
|
+
list(mcp_server_id: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Gets a MCP server tool by ID
|
|
30
30
|
*
|
|
31
|
-
* @param {string}
|
|
31
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to retrieve
|
|
32
32
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
33
|
*
|
|
34
34
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -38,12 +38,12 @@ export declare class Tools {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.tools.mcpServer.tools.get("mcp_server_tool_id")
|
|
40
40
|
*/
|
|
41
|
-
get(
|
|
41
|
+
get(mcp_server_tool_id: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
42
42
|
private __get;
|
|
43
43
|
/**
|
|
44
44
|
* Deletes a MCP server tool by ID
|
|
45
45
|
*
|
|
46
|
-
* @param {string}
|
|
46
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to delete
|
|
47
47
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -53,12 +53,12 @@ export declare class Tools {
|
|
|
53
53
|
* @example
|
|
54
54
|
* await client.tools.mcpServer.tools.delete("mcp_server_tool_id")
|
|
55
55
|
*/
|
|
56
|
-
delete(
|
|
56
|
+
delete(mcp_server_tool_id: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
57
57
|
private __delete;
|
|
58
58
|
/**
|
|
59
59
|
* Calls a MCP server tool
|
|
60
60
|
*
|
|
61
|
-
* @param {string}
|
|
61
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to call
|
|
62
62
|
* @param {phenoml.tools.mcpServer.McpServerToolCallRequest} request
|
|
63
63
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
@@ -74,7 +74,7 @@ export declare class Tools {
|
|
|
74
74
|
* }
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
call(
|
|
77
|
+
call(mcp_server_tool_id: string, request: phenoml.tools.mcpServer.McpServerToolCallRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolCallResponse>;
|
|
78
78
|
private __call;
|
|
79
79
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
80
80
|
}
|
|
@@ -56,7 +56,7 @@ class Tools {
|
|
|
56
56
|
/**
|
|
57
57
|
* Lists all MCP server tools for a specific MCP server
|
|
58
58
|
*
|
|
59
|
-
* @param {string}
|
|
59
|
+
* @param {string} mcp_server_id - ID of the MCP server to list tools for
|
|
60
60
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -66,15 +66,15 @@ class Tools {
|
|
|
66
66
|
* @example
|
|
67
67
|
* await client.tools.mcpServer.tools.list("mcp_server_id")
|
|
68
68
|
*/
|
|
69
|
-
list(
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__list(
|
|
69
|
+
list(mcp_server_id, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__list(mcp_server_id, requestOptions));
|
|
71
71
|
}
|
|
72
|
-
__list(
|
|
72
|
+
__list(mcp_server_id, requestOptions) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
75
75
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
76
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(
|
|
77
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}/list`),
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: _headers,
|
|
80
80
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -123,7 +123,7 @@ class Tools {
|
|
|
123
123
|
/**
|
|
124
124
|
* Gets a MCP server tool by ID
|
|
125
125
|
*
|
|
126
|
-
* @param {string}
|
|
126
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to retrieve
|
|
127
127
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -133,15 +133,15 @@ class Tools {
|
|
|
133
133
|
* @example
|
|
134
134
|
* await client.tools.mcpServer.tools.get("mcp_server_tool_id")
|
|
135
135
|
*/
|
|
136
|
-
get(
|
|
137
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
136
|
+
get(mcp_server_tool_id, requestOptions) {
|
|
137
|
+
return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_tool_id, requestOptions));
|
|
138
138
|
}
|
|
139
|
-
__get(
|
|
139
|
+
__get(mcp_server_tool_id, requestOptions) {
|
|
140
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
141
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
142
142
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
143
143
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
144
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(
|
|
144
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(mcp_server_tool_id)}`),
|
|
145
145
|
method: "GET",
|
|
146
146
|
headers: _headers,
|
|
147
147
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -190,7 +190,7 @@ class Tools {
|
|
|
190
190
|
/**
|
|
191
191
|
* Deletes a MCP server tool by ID
|
|
192
192
|
*
|
|
193
|
-
* @param {string}
|
|
193
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to delete
|
|
194
194
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
195
|
*
|
|
196
196
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -200,15 +200,15 @@ class Tools {
|
|
|
200
200
|
* @example
|
|
201
201
|
* await client.tools.mcpServer.tools.delete("mcp_server_tool_id")
|
|
202
202
|
*/
|
|
203
|
-
delete(
|
|
204
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
203
|
+
delete(mcp_server_tool_id, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_tool_id, requestOptions));
|
|
205
205
|
}
|
|
206
|
-
__delete(
|
|
206
|
+
__delete(mcp_server_tool_id, requestOptions) {
|
|
207
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
208
208
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
209
209
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
210
210
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
211
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(
|
|
211
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(mcp_server_tool_id)}`),
|
|
212
212
|
method: "DELETE",
|
|
213
213
|
headers: _headers,
|
|
214
214
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -257,7 +257,7 @@ class Tools {
|
|
|
257
257
|
/**
|
|
258
258
|
* Calls a MCP server tool
|
|
259
259
|
*
|
|
260
|
-
* @param {string}
|
|
260
|
+
* @param {string} mcp_server_tool_id - ID of the MCP server tool to call
|
|
261
261
|
* @param {phenoml.tools.mcpServer.McpServerToolCallRequest} request
|
|
262
262
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
263
|
*
|
|
@@ -273,15 +273,15 @@ class Tools {
|
|
|
273
273
|
* }
|
|
274
274
|
* })
|
|
275
275
|
*/
|
|
276
|
-
call(
|
|
277
|
-
return core.HttpResponsePromise.fromPromise(this.__call(
|
|
276
|
+
call(mcp_server_tool_id, request, requestOptions) {
|
|
277
|
+
return core.HttpResponsePromise.fromPromise(this.__call(mcp_server_tool_id, request, requestOptions));
|
|
278
278
|
}
|
|
279
|
-
__call(
|
|
279
|
+
__call(mcp_server_tool_id, request, requestOptions) {
|
|
280
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
281
281
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
282
282
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
283
283
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
284
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(
|
|
284
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/tool/${core.url.encodePathParam(mcp_server_tool_id)}/call`),
|
|
285
285
|
method: "POST",
|
|
286
286
|
headers: _headers,
|
|
287
287
|
contentType: "application/json",
|
|
@@ -19,6 +19,7 @@ const getErrorResponseBody_js_1 = require("./getErrorResponseBody.js");
|
|
|
19
19
|
const getFetchFn_js_1 = require("./getFetchFn.js");
|
|
20
20
|
const getRequestBody_js_1 = require("./getRequestBody.js");
|
|
21
21
|
const getResponseBody_js_1 = require("./getResponseBody.js");
|
|
22
|
+
const Headers_js_1 = require("./Headers.js");
|
|
22
23
|
const makeRequest_js_1 = require("./makeRequest.js");
|
|
23
24
|
const RawResponse_js_1 = require("./RawResponse.js");
|
|
24
25
|
const requestWithRetries_js_1 = require("./requestWithRetries.js");
|
|
@@ -42,7 +43,7 @@ const SENSITIVE_HEADERS = new Set([
|
|
|
42
43
|
]);
|
|
43
44
|
function redactHeaders(headers) {
|
|
44
45
|
const filtered = {};
|
|
45
|
-
for (const [key, value] of Object.entries(headers)) {
|
|
46
|
+
for (const [key, value] of headers instanceof Headers_js_1.Headers ? headers.entries() : Object.entries(headers)) {
|
|
46
47
|
if (SENSITIVE_HEADERS.has(key.toLowerCase())) {
|
|
47
48
|
filtered[key] = "[REDACTED]";
|
|
48
49
|
}
|
|
@@ -154,9 +155,14 @@ function redactUrl(url) {
|
|
|
154
155
|
function getHeaders(args) {
|
|
155
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
157
|
var _a;
|
|
157
|
-
const newHeaders =
|
|
158
|
+
const newHeaders = new Headers_js_1.Headers();
|
|
159
|
+
newHeaders.set("Accept", args.responseType === "json" || args.responseType == null
|
|
160
|
+
? "application/json"
|
|
161
|
+
: args.responseType === "text"
|
|
162
|
+
? "text/plain"
|
|
163
|
+
: "*/*");
|
|
158
164
|
if (args.body !== undefined && args.contentType != null) {
|
|
159
|
-
newHeaders
|
|
165
|
+
newHeaders.set("Content-Type", args.contentType);
|
|
160
166
|
}
|
|
161
167
|
if (args.headers == null) {
|
|
162
168
|
return newHeaders;
|
|
@@ -164,13 +170,13 @@ function getHeaders(args) {
|
|
|
164
170
|
for (const [key, value] of Object.entries(args.headers)) {
|
|
165
171
|
const result = yield EndpointSupplier_js_1.EndpointSupplier.get(value, { endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {} });
|
|
166
172
|
if (typeof result === "string") {
|
|
167
|
-
newHeaders
|
|
173
|
+
newHeaders.set(key, result);
|
|
168
174
|
continue;
|
|
169
175
|
}
|
|
170
176
|
if (result == null) {
|
|
171
177
|
continue;
|
|
172
178
|
}
|
|
173
|
-
newHeaders
|
|
179
|
+
newHeaders.set(key, `${result}`);
|
|
174
180
|
}
|
|
175
181
|
return newHeaders;
|
|
176
182
|
});
|
|
@@ -206,7 +212,7 @@ function fetcherImpl(args) {
|
|
|
206
212
|
method: args.method,
|
|
207
213
|
url: redactUrl(url),
|
|
208
214
|
statusCode: response.status,
|
|
209
|
-
responseHeaders: redactHeaders(
|
|
215
|
+
responseHeaders: redactHeaders(response.headers),
|
|
210
216
|
};
|
|
211
217
|
logger.debug("HTTP request succeeded", metadata);
|
|
212
218
|
}
|
|
@@ -223,7 +229,7 @@ function fetcherImpl(args) {
|
|
|
223
229
|
method: args.method,
|
|
224
230
|
url: redactUrl(url),
|
|
225
231
|
statusCode: response.status,
|
|
226
|
-
responseHeaders: redactHeaders(
|
|
232
|
+
responseHeaders: redactHeaders(response.headers),
|
|
227
233
|
};
|
|
228
234
|
logger.error("HTTP request failed with error status", metadata);
|
|
229
235
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half") => Promise<Response>;
|
|
1
|
+
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half") => Promise<Response>;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.3.
|
|
1
|
+
export declare const SDK_VERSION = "6.3.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -16,8 +16,8 @@ export class phenomlClient {
|
|
|
16
16
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
|
|
17
17
|
"X-Fern-Language": "JavaScript",
|
|
18
18
|
"X-Fern-SDK-Name": "phenoml",
|
|
19
|
-
"X-Fern-SDK-Version": "6.3.
|
|
20
|
-
"User-Agent": "phenoml/
|
|
19
|
+
"X-Fern-SDK-Version": "6.3.1",
|
|
20
|
+
"User-Agent": "phenoml/6.3.1",
|
|
21
21
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
22
22
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
23
23
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -26,4 +26,6 @@ export interface AgentChatRequest {
|
|
|
26
26
|
session_id?: string;
|
|
27
27
|
/** The ID of the agent to chat with */
|
|
28
28
|
agent_id: string;
|
|
29
|
+
/** Enable enhanced reasoning capabilities, will increase latency but will also improve response quality and reliability. */
|
|
30
|
+
enhanced_reasoning?: boolean;
|
|
29
31
|
}
|
|
@@ -163,7 +163,7 @@ export declare class Construe {
|
|
|
163
163
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
164
164
|
*
|
|
165
165
|
* @param {string} codesystem - Code system name
|
|
166
|
-
* @param {string}
|
|
166
|
+
* @param {string} codeID - The code identifier
|
|
167
167
|
* @param {phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest} request
|
|
168
168
|
* @param {Construe.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
169
|
*
|
|
@@ -177,7 +177,7 @@ export declare class Construe {
|
|
|
177
177
|
* version: "version"
|
|
178
178
|
* })
|
|
179
179
|
*/
|
|
180
|
-
getASpecificCode(codesystem: string,
|
|
180
|
+
getASpecificCode(codesystem: string, codeID: string, request?: phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest, requestOptions?: Construe.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
|
|
181
181
|
private __getASpecificCode;
|
|
182
182
|
/**
|
|
183
183
|
* Performs semantic similarity search using vector embeddings.
|
|
@@ -607,7 +607,7 @@ export class Construe {
|
|
|
607
607
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
608
608
|
*
|
|
609
609
|
* @param {string} codesystem - Code system name
|
|
610
|
-
* @param {string}
|
|
610
|
+
* @param {string} codeID - The code identifier
|
|
611
611
|
* @param {phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest} request
|
|
612
612
|
* @param {Construe.RequestOptions} requestOptions - Request-specific configuration.
|
|
613
613
|
*
|
|
@@ -621,11 +621,11 @@ export class Construe {
|
|
|
621
621
|
* version: "version"
|
|
622
622
|
* })
|
|
623
623
|
*/
|
|
624
|
-
getASpecificCode(codesystem,
|
|
625
|
-
return core.HttpResponsePromise.fromPromise(this.__getASpecificCode(codesystem,
|
|
624
|
+
getASpecificCode(codesystem, codeID, request = {}, requestOptions) {
|
|
625
|
+
return core.HttpResponsePromise.fromPromise(this.__getASpecificCode(codesystem, codeID, request, requestOptions));
|
|
626
626
|
}
|
|
627
|
-
__getASpecificCode(codesystem_1,
|
|
628
|
-
return __awaiter(this, arguments, void 0, function* (codesystem,
|
|
627
|
+
__getASpecificCode(codesystem_1, codeID_1) {
|
|
628
|
+
return __awaiter(this, arguments, void 0, function* (codesystem, codeID, request = {}, requestOptions) {
|
|
629
629
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
630
630
|
const { version } = request;
|
|
631
631
|
const _queryParams = {};
|
|
@@ -634,7 +634,7 @@ export class Construe {
|
|
|
634
634
|
}
|
|
635
635
|
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
636
636
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
637
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `construe/codes/${core.url.encodePathParam(codesystem)}/${core.url.encodePathParam(
|
|
637
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `construe/codes/${core.url.encodePathParam(codesystem)}/${core.url.encodePathParam(codeID)}`),
|
|
638
638
|
method: "GET",
|
|
639
639
|
headers: _headers,
|
|
640
640
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|