phenoml 16.0.0 → 17.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -59
- package/dist/cjs/api/resources/agent/client/Client.js +7 -232
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/errors/index.js +1 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
- package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
- package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/index.js +4 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/index.js +0 -3
- package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
- package/dist/cjs/api/resources/construe/client/Client.js +8 -838
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
- package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
- package/dist/cjs/api/resources/construe/exports.js +1 -0
- package/dist/cjs/api/resources/construe/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/index.js +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
- package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
- package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
- package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
- package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/index.js +44 -0
- package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/construe/types/index.js +0 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
- package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
- package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
- package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
- package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
- package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
- package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhir/index.js +0 -1
- package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/fhir/types/index.js +0 -4
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
- package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
- package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
- package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
- package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
- package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/tools/client/Client.js +8 -12
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
- package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/index.js +1 -1
- package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
- package/dist/cjs/api/resources/tools/resources/index.js +4 -3
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
- package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
- package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
- package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
- package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
- package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/index.mjs +0 -3
- package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
- package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/construe/exports.d.mts +1 -0
- package/dist/esm/api/resources/construe/exports.mjs +1 -0
- package/dist/esm/api/resources/construe/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
- package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
- package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
- package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
- package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
- package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
- package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
- package/dist/esm/api/resources/construe/types/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
- package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
- package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
- package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
- package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
- package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
- package/dist/esm/api/resources/fhir/index.d.mts +0 -1
- package/dist/esm/api/resources/fhir/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
- package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
- package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
- package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
- package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
- package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
- package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
- package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
- package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +353 -660
- package/package.json +57 -13
- package/reference.md +235 -211
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
- package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
- package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
- package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
- package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
- /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./DeleteResponse.mjs";
|
|
2
|
+
export * from "./GetResponse.mjs";
|
|
3
|
+
export * from "./ListResponse.mjs";
|
|
4
|
+
export * from "./UpdateResponse.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./DeleteResponse.mjs";
|
|
2
|
+
export * from "./GetResponse.mjs";
|
|
3
|
+
export * from "./ListResponse.mjs";
|
|
4
|
+
export * from "./UpdateResponse.mjs";
|
|
@@ -2,7 +2,8 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as phenoml from "../../../index.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { McpServersClient } from "../resources/mcpServers/client/Client.mjs";
|
|
6
|
+
import { McpToolsClient } from "../resources/mcpTools/client/Client.mjs";
|
|
6
7
|
export declare namespace ToolsClient {
|
|
7
8
|
type Options = BaseClientOptions;
|
|
8
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -10,9 +11,11 @@ export declare namespace ToolsClient {
|
|
|
10
11
|
}
|
|
11
12
|
export declare class ToolsClient {
|
|
12
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<ToolsClient.Options>;
|
|
13
|
-
protected
|
|
14
|
+
protected _mcpServers: McpServersClient | undefined;
|
|
15
|
+
protected _mcpTools: McpToolsClient | undefined;
|
|
14
16
|
constructor(options?: ToolsClient.Options);
|
|
15
|
-
get
|
|
17
|
+
get mcpServers(): McpServersClient;
|
|
18
|
+
get mcpTools(): McpToolsClient;
|
|
16
19
|
/**
|
|
17
20
|
* Converts natural language to FHIR resource and optionally stores it in a FHIR server
|
|
18
21
|
*
|
|
@@ -22,7 +25,6 @@ export declare class ToolsClient {
|
|
|
22
25
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
23
26
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
24
27
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
25
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
26
28
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
27
29
|
*
|
|
28
30
|
* @example
|
|
@@ -49,7 +51,6 @@ export declare class ToolsClient {
|
|
|
49
51
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
50
52
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
51
53
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
52
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
53
54
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
54
55
|
*
|
|
55
56
|
* @example
|
|
@@ -72,7 +73,6 @@ export declare class ToolsClient {
|
|
|
72
73
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
73
74
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
74
75
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
75
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
76
76
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
@@ -26,14 +26,19 @@ import * as environments from "../../../../environments.mjs";
|
|
|
26
26
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
27
|
import * as errors from "../../../../errors/index.mjs";
|
|
28
28
|
import * as phenoml from "../../../index.mjs";
|
|
29
|
-
import {
|
|
29
|
+
import { McpServersClient } from "../resources/mcpServers/client/Client.mjs";
|
|
30
|
+
import { McpToolsClient } from "../resources/mcpTools/client/Client.mjs";
|
|
30
31
|
export class ToolsClient {
|
|
31
32
|
constructor(options = {}) {
|
|
32
33
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
33
34
|
}
|
|
34
|
-
get
|
|
35
|
+
get mcpServers() {
|
|
35
36
|
var _a;
|
|
36
|
-
return ((_a = this.
|
|
37
|
+
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new McpServersClient(this._options)));
|
|
38
|
+
}
|
|
39
|
+
get mcpTools() {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = this._mcpTools) !== null && _a !== void 0 ? _a : (this._mcpTools = new McpToolsClient(this._options)));
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Converts natural language to FHIR resource and optionally stores it in a FHIR server
|
|
@@ -44,7 +49,6 @@ export class ToolsClient {
|
|
|
44
49
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
45
50
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
46
51
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
47
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
48
52
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
49
53
|
*
|
|
50
54
|
* @example
|
|
@@ -96,8 +100,6 @@ export class ToolsClient {
|
|
|
96
100
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
97
101
|
case 403:
|
|
98
102
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
99
|
-
case 424:
|
|
100
|
-
throw new phenoml.tools.FailedDependencyError(_response.error.body, _response.rawResponse);
|
|
101
103
|
case 500:
|
|
102
104
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
103
105
|
default:
|
|
@@ -124,7 +126,6 @@ export class ToolsClient {
|
|
|
124
126
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
125
127
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
126
128
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
127
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
128
129
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
129
130
|
*
|
|
130
131
|
* @example
|
|
@@ -176,8 +177,6 @@ export class ToolsClient {
|
|
|
176
177
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
177
178
|
case 403:
|
|
178
179
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
179
|
-
case 424:
|
|
180
|
-
throw new phenoml.tools.FailedDependencyError(_response.error.body, _response.rawResponse);
|
|
181
180
|
case 500:
|
|
182
181
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
183
182
|
default:
|
|
@@ -200,7 +199,6 @@ export class ToolsClient {
|
|
|
200
199
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
201
200
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
202
201
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
203
|
-
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
204
202
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
205
203
|
*
|
|
206
204
|
* @example
|
|
@@ -252,8 +250,6 @@ export class ToolsClient {
|
|
|
252
250
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
253
251
|
case 403:
|
|
254
252
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
255
|
-
case 424:
|
|
256
|
-
throw new phenoml.tools.FailedDependencyError(_response.error.body, _response.rawResponse);
|
|
257
253
|
case 500:
|
|
258
254
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
259
255
|
default:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.mjs";
|
|
2
2
|
import * as errors from "../../../../errors/index.mjs";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NotFoundError extends errors.phenomlError {
|
|
4
4
|
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
5
5
|
}
|
package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as errors from "../../../../errors/index.mjs";
|
|
3
|
-
export class
|
|
3
|
+
export class NotFoundError extends errors.phenomlError {
|
|
4
4
|
constructor(body, rawResponse) {
|
|
5
5
|
super({
|
|
6
|
-
message: "
|
|
7
|
-
statusCode:
|
|
6
|
+
message: "NotFoundError",
|
|
7
|
+
statusCode: 404,
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as
|
|
1
|
+
export * from "./mcpServers/client/requests/index.mjs";
|
|
2
|
+
export * as mcpServers from "./mcpServers/index.mjs";
|
|
3
|
+
export * as mcpTools from "./mcpTools/index.mjs";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as
|
|
1
|
+
export * from "./mcpServers/client/requests/index.mjs";
|
|
2
|
+
export * as mcpServers from "./mcpServers/index.mjs";
|
|
3
|
+
export * as mcpTools from "./mcpTools/index.mjs";
|
|
@@ -2,22 +2,22 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as phenoml from "../../../../../index.mjs";
|
|
5
|
-
|
|
6
|
-
export declare namespace McpServerClient {
|
|
5
|
+
export declare namespace McpServersClient {
|
|
7
6
|
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Register and manage MCP servers exposed as agent tools.
|
|
12
|
+
*/
|
|
13
|
+
export declare class McpServersClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<McpServersClient.Options>;
|
|
15
|
+
constructor(options?: McpServersClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Creates a new MCP server
|
|
18
18
|
*
|
|
19
19
|
* @param {phenoml.tools.McpServerCreateRequest} request
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
23
23
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -25,55 +25,57 @@ export declare class McpServerClient {
|
|
|
25
25
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.tools.
|
|
28
|
+
* await client.tools.mcpServers.create({
|
|
29
29
|
* name: "My MCP Server",
|
|
30
30
|
* mcp_server_url: "https://mcp.example.com"
|
|
31
31
|
* })
|
|
32
32
|
*/
|
|
33
|
-
create(request: phenoml.tools.McpServerCreateRequest, requestOptions?:
|
|
33
|
+
create(request: phenoml.tools.McpServerCreateRequest, requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
34
34
|
private __create;
|
|
35
35
|
/**
|
|
36
36
|
* Lists all MCP servers for a specific user
|
|
37
37
|
*
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
41
41
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
42
42
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.tools.
|
|
45
|
+
* await client.tools.mcpServers.list()
|
|
46
46
|
*/
|
|
47
|
-
list(requestOptions?:
|
|
47
|
+
list(requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
48
48
|
private __list;
|
|
49
49
|
/**
|
|
50
50
|
* Gets a MCP server by ID
|
|
51
51
|
*
|
|
52
52
|
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
56
56
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
57
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
57
58
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
58
59
|
*
|
|
59
60
|
* @example
|
|
60
|
-
* await client.tools.
|
|
61
|
+
* await client.tools.mcpServers.get("mcp_server_id")
|
|
61
62
|
*/
|
|
62
|
-
get(mcp_server_id: string, requestOptions?:
|
|
63
|
+
get(mcp_server_id: string, requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
63
64
|
private __get;
|
|
64
65
|
/**
|
|
65
66
|
* Deletes a MCP server by ID
|
|
66
67
|
*
|
|
67
68
|
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
68
|
-
* @param {
|
|
69
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
70
|
*
|
|
70
71
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
71
72
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
73
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
72
74
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
73
75
|
*
|
|
74
76
|
* @example
|
|
75
|
-
* await client.tools.
|
|
77
|
+
* await client.tools.mcpServers.delete("mcp_server_id")
|
|
76
78
|
*/
|
|
77
|
-
delete(mcp_server_id: string, requestOptions?:
|
|
79
|
+
delete(mcp_server_id: string, requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
78
80
|
private __delete;
|
|
79
81
|
}
|
|
@@ -15,20 +15,18 @@ import * as environments from "../../../../../../environments.mjs";
|
|
|
15
15
|
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
16
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
17
|
import * as phenoml from "../../../../../index.mjs";
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Register and manage MCP servers exposed as agent tools.
|
|
20
|
+
*/
|
|
21
|
+
export class McpServersClient {
|
|
20
22
|
constructor(options = {}) {
|
|
21
23
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
24
|
}
|
|
23
|
-
get tools() {
|
|
24
|
-
var _a;
|
|
25
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new ToolsClient(this._options)));
|
|
26
|
-
}
|
|
27
25
|
/**
|
|
28
26
|
* Creates a new MCP server
|
|
29
27
|
*
|
|
30
28
|
* @param {phenoml.tools.McpServerCreateRequest} request
|
|
31
|
-
* @param {
|
|
29
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
30
|
*
|
|
33
31
|
* @throws {@link phenoml.tools.BadRequestError}
|
|
34
32
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -36,7 +34,7 @@ export class McpServerClient {
|
|
|
36
34
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
37
35
|
*
|
|
38
36
|
* @example
|
|
39
|
-
* await client.tools.
|
|
37
|
+
* await client.tools.mcpServers.create({
|
|
40
38
|
* name: "My MCP Server",
|
|
41
39
|
* mcp_server_url: "https://mcp.example.com"
|
|
42
40
|
* })
|
|
@@ -90,14 +88,14 @@ export class McpServerClient {
|
|
|
90
88
|
/**
|
|
91
89
|
* Lists all MCP servers for a specific user
|
|
92
90
|
*
|
|
93
|
-
* @param {
|
|
91
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
92
|
*
|
|
95
93
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
96
94
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
97
95
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
98
96
|
*
|
|
99
97
|
* @example
|
|
100
|
-
* await client.tools.
|
|
98
|
+
* await client.tools.mcpServers.list()
|
|
101
99
|
*/
|
|
102
100
|
list(requestOptions) {
|
|
103
101
|
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
@@ -144,14 +142,15 @@ export class McpServerClient {
|
|
|
144
142
|
* Gets a MCP server by ID
|
|
145
143
|
*
|
|
146
144
|
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
147
|
-
* @param {
|
|
145
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
146
|
*
|
|
149
147
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
150
148
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
149
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
151
150
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
152
151
|
*
|
|
153
152
|
* @example
|
|
154
|
-
* await client.tools.
|
|
153
|
+
* await client.tools.mcpServers.get("mcp_server_id")
|
|
155
154
|
*/
|
|
156
155
|
get(mcp_server_id, requestOptions) {
|
|
157
156
|
return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_id, requestOptions));
|
|
@@ -181,6 +180,8 @@ export class McpServerClient {
|
|
|
181
180
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
182
181
|
case 403:
|
|
183
182
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 404:
|
|
184
|
+
throw new phenoml.tools.NotFoundError(_response.error.body, _response.rawResponse);
|
|
184
185
|
case 500:
|
|
185
186
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
186
187
|
default:
|
|
@@ -198,14 +199,15 @@ export class McpServerClient {
|
|
|
198
199
|
* Deletes a MCP server by ID
|
|
199
200
|
*
|
|
200
201
|
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
201
|
-
* @param {
|
|
202
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
202
203
|
*
|
|
203
204
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
204
205
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
206
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
205
207
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
206
208
|
*
|
|
207
209
|
* @example
|
|
208
|
-
* await client.tools.
|
|
210
|
+
* await client.tools.mcpServers.delete("mcp_server_id")
|
|
209
211
|
*/
|
|
210
212
|
delete(mcp_server_id, requestOptions) {
|
|
211
213
|
return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_id, requestOptions));
|
|
@@ -235,6 +237,8 @@ export class McpServerClient {
|
|
|
235
237
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
236
238
|
case 403:
|
|
237
239
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
240
|
+
case 404:
|
|
241
|
+
throw new phenoml.tools.NotFoundError(_response.error.body, _response.rawResponse);
|
|
238
242
|
case 500:
|
|
239
243
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
240
244
|
default:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "
|
|
3
|
-
import * as core from "
|
|
4
|
-
import * as phenoml from "
|
|
5
|
-
export declare namespace
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as phenoml from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace McpToolsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<
|
|
12
|
-
constructor(options?:
|
|
10
|
+
export declare class McpToolsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<McpToolsClient.Options>;
|
|
12
|
+
constructor(options?: McpToolsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Lists all MCP server tools for a specific MCP server
|
|
15
15
|
*
|
|
16
16
|
* @param {string} mcp_server_id - ID of the MCP server to list tools for
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
20
20
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
21
21
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.tools.
|
|
24
|
+
* await client.tools.mcpTools.list("mcp_server_id")
|
|
25
25
|
*/
|
|
26
|
-
list(mcp_server_id: string, requestOptions?:
|
|
26
|
+
list(mcp_server_id: string, requestOptions?: McpToolsClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Gets a MCP server tool by ID
|
|
30
30
|
*
|
|
31
31
|
* @param {string} mcp_server_tool_id - ID of the MCP server tool to retrieve
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
33
|
*
|
|
34
34
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
35
35
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
36
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
36
37
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
37
38
|
*
|
|
38
39
|
* @example
|
|
39
|
-
* await client.tools.
|
|
40
|
+
* await client.tools.mcpTools.get("mcp_server_tool_id")
|
|
40
41
|
*/
|
|
41
|
-
get(mcp_server_tool_id: string, requestOptions?:
|
|
42
|
+
get(mcp_server_tool_id: string, requestOptions?: McpToolsClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
42
43
|
private __get;
|
|
43
44
|
/**
|
|
44
45
|
* Deletes a MCP server tool by ID
|
|
45
46
|
*
|
|
46
47
|
* @param {string} mcp_server_tool_id - ID of the MCP server tool to delete
|
|
47
|
-
* @param {
|
|
48
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
49
|
*
|
|
49
50
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
50
51
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
52
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
51
53
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
52
54
|
*
|
|
53
55
|
* @example
|
|
54
|
-
* await client.tools.
|
|
56
|
+
* await client.tools.mcpTools.delete("mcp_server_tool_id")
|
|
55
57
|
*/
|
|
56
|
-
delete(mcp_server_tool_id: string, requestOptions?:
|
|
58
|
+
delete(mcp_server_tool_id: string, requestOptions?: McpToolsClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolResponse>;
|
|
57
59
|
private __delete;
|
|
58
60
|
}
|
|
@@ -8,14 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import { normalizeClientOptionsWithAuth
|
|
12
|
-
import { mergeHeaders } from "
|
|
13
|
-
import * as core from "
|
|
14
|
-
import * as environments from "
|
|
15
|
-
import { handleNonStatusCodeError } from "
|
|
16
|
-
import * as errors from "
|
|
17
|
-
import * as phenoml from "
|
|
18
|
-
export class
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
|
+
import * as phenoml from "../../../../../index.mjs";
|
|
18
|
+
export class McpToolsClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
@@ -23,14 +23,14 @@ export class ToolsClient {
|
|
|
23
23
|
* Lists all MCP server tools for a specific MCP server
|
|
24
24
|
*
|
|
25
25
|
* @param {string} mcp_server_id - ID of the MCP server to list tools for
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
29
29
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
30
30
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.tools.
|
|
33
|
+
* await client.tools.mcpTools.list("mcp_server_id")
|
|
34
34
|
*/
|
|
35
35
|
list(mcp_server_id, requestOptions) {
|
|
36
36
|
return core.HttpResponsePromise.fromPromise(this.__list(mcp_server_id, requestOptions));
|
|
@@ -77,14 +77,15 @@ export class ToolsClient {
|
|
|
77
77
|
* Gets a MCP server tool by ID
|
|
78
78
|
*
|
|
79
79
|
* @param {string} mcp_server_tool_id - ID of the MCP server tool to retrieve
|
|
80
|
-
* @param {
|
|
80
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
83
83
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
84
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
84
85
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
|
-
* await client.tools.
|
|
88
|
+
* await client.tools.mcpTools.get("mcp_server_tool_id")
|
|
88
89
|
*/
|
|
89
90
|
get(mcp_server_tool_id, requestOptions) {
|
|
90
91
|
return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_tool_id, requestOptions));
|
|
@@ -114,6 +115,8 @@ export class ToolsClient {
|
|
|
114
115
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
115
116
|
case 403:
|
|
116
117
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 404:
|
|
119
|
+
throw new phenoml.tools.NotFoundError(_response.error.body, _response.rawResponse);
|
|
117
120
|
case 500:
|
|
118
121
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
119
122
|
default:
|
|
@@ -131,14 +134,15 @@ export class ToolsClient {
|
|
|
131
134
|
* Deletes a MCP server tool by ID
|
|
132
135
|
*
|
|
133
136
|
* @param {string} mcp_server_tool_id - ID of the MCP server tool to delete
|
|
134
|
-
* @param {
|
|
137
|
+
* @param {McpToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
138
|
*
|
|
136
139
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
137
140
|
* @throws {@link phenoml.tools.ForbiddenError}
|
|
141
|
+
* @throws {@link phenoml.tools.NotFoundError}
|
|
138
142
|
* @throws {@link phenoml.tools.InternalServerError}
|
|
139
143
|
*
|
|
140
144
|
* @example
|
|
141
|
-
* await client.tools.
|
|
145
|
+
* await client.tools.mcpTools.delete("mcp_server_tool_id")
|
|
142
146
|
*/
|
|
143
147
|
delete(mcp_server_tool_id, requestOptions) {
|
|
144
148
|
return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_tool_id, requestOptions));
|
|
@@ -168,6 +172,8 @@ export class ToolsClient {
|
|
|
168
172
|
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
169
173
|
case 403:
|
|
170
174
|
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
175
|
+
case 404:
|
|
176
|
+
throw new phenoml.tools.NotFoundError(_response.error.body, _response.rawResponse);
|
|
171
177
|
case 500:
|
|
172
178
|
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
173
179
|
default:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|