phenoml 9.2.0 → 10.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.d.ts +13 -4
- package/dist/cjs/BaseClient.js +59 -0
- package/dist/cjs/Client.d.ts +34 -34
- package/dist/cjs/Client.js +13 -54
- package/dist/cjs/api/resources/agent/client/Client.d.ts +26 -27
- package/dist/cjs/api/resources/agent/client/Client.js +56 -185
- package/dist/cjs/api/resources/agent/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/agent/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/agent/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/agent/exports.d.ts +3 -0
- package/dist/cjs/api/resources/agent/exports.js +22 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +20 -21
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +35 -129
- package/dist/cjs/api/resources/agent/resources/prompts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/exports.js +21 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +2 -2
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +3 -3
- package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +4 -4
- package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.d.ts +8 -8
- package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +2 -2
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +3 -3
- package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +3 -3
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +3 -3
- package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +8 -8
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +10 -10
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +9 -9
- package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +2 -2
- package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +6 -6
- package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +2 -2
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/authtoken/client/Client.js +7 -6
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/authtoken/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/authtoken/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/authtoken/errors/index.js +1 -0
- package/dist/cjs/api/resources/authtoken/exports.d.ts +3 -0
- package/dist/cjs/api/resources/authtoken/exports.js +22 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +28 -30
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +76 -43
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.js +3 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.js +21 -0
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +3 -3
- package/dist/cjs/api/resources/authtoken/types/OAuthError.d.ts +19 -0
- package/dist/cjs/api/resources/authtoken/types/OAuthError.js +14 -0
- package/dist/cjs/api/resources/authtoken/types/TokenResponse.d.ts +8 -0
- package/dist/cjs/api/resources/authtoken/types/TokenResponse.js +3 -0
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +3 -3
- package/dist/cjs/api/resources/authtoken/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/types/index.js +2 -0
- package/dist/cjs/api/resources/cohort/client/Client.d.ts +8 -9
- package/dist/cjs/api/resources/cohort/client/Client.js +11 -27
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/cohort/exports.d.ts +2 -0
- package/dist/cjs/api/resources/cohort/exports.js +21 -0
- package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +3 -3
- package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +4 -4
- package/dist/cjs/api/resources/construe/client/Client.d.ts +28 -29
- package/dist/cjs/api/resources/construe/client/Client.js +78 -239
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/construe/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/construe/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/ConflictError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +5 -1
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/construe/exports.d.ts +2 -0
- package/dist/cjs/api/resources/construe/exports.js +21 -0
- package/dist/cjs/api/resources/construe/types/CodeResponse.d.ts +1 -1
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +3 -3
- package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +8 -8
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +2 -2
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +3 -3
- package/dist/cjs/api/resources/construe/types/GetCodeResponse.d.ts +1 -1
- package/dist/cjs/api/resources/construe/types/ListCodesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +18 -19
- package/dist/cjs/api/resources/fhir/client/Client.js +46 -134
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/BadGatewayError.js +5 -1
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/fhir/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/exports.js +21 -0
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +8 -8
- package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +5 -5
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +20 -21
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +35 -129
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/fhirProvider/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/exports.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/types/ClientSecretAuth.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +12 -12
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +3 -3
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +3 -3
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +3 -3
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.ts +4 -4
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +8 -8
- package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +4 -4
- package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +6 -6
- package/dist/cjs/api/resources/fhirProvider/types/JwtAuth.d.ts +3 -3
- package/dist/cjs/api/resources/fhirProvider/types/OnBehalfOfAuth.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountMetadata.d.ts +4 -4
- package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +5 -5
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +18 -19
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +31 -112
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/resources/lang2Fhir/exports.d.ts +2 -0
- package/dist/cjs/api/resources/lang2Fhir/exports.js +21 -0
- package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +15 -15
- package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +4 -4
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/client/Client.d.ts +18 -19
- package/dist/cjs/api/resources/summary/client/Client.js +31 -112
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/summary/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/summary/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/summary/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/summary/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/summary/exports.d.ts +2 -0
- package/dist/cjs/api/resources/summary/exports.js +21 -0
- package/dist/cjs/api/resources/summary/types/CreateSummaryResponse.d.ts +4 -4
- package/dist/cjs/api/resources/summary/types/CreateSummaryTemplateResponse.d.ts +4 -4
- package/dist/cjs/api/resources/summary/types/ErrorResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/types/FhirBundle.d.ts +1 -1
- package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/types/SummaryGetTemplateResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/types/SummaryListTemplatesResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +9 -9
- package/dist/cjs/api/resources/summary/types/SummaryUpdateTemplateResponse.d.ts +3 -3
- package/dist/cjs/api/resources/tools/client/Client.d.ts +17 -18
- package/dist/cjs/api/resources/tools/client/Client.js +32 -91
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/tools/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +5 -1
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/tools/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/tools/exports.d.ts +3 -0
- package/dist/cjs/api/resources/tools/exports.js +22 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +17 -18
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +24 -79
- package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +3 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/exports.js +22 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +14 -15
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +23 -78
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.js +21 -0
- package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +5 -5
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateMultiResponse.d.ts +10 -10
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +4 -4
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +5 -5
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +7 -7
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +4 -4
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +9 -9
- package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +4 -4
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +18 -19
- package/dist/cjs/api/resources/workflows/client/Client.js +43 -128
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/workflows/exports.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/exports.js +21 -0
- package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +5 -5
- package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +4 -4
- package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +4 -4
- package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +5 -5
- package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +4 -4
- package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +4 -4
- package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +8 -8
- package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +9 -9
- package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +8 -8
- package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +5 -5
- package/dist/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.d.ts +4 -4
- package/dist/cjs/auth/OAuthAuthProvider.d.ts +45 -0
- package/dist/cjs/auth/OAuthAuthProvider.js +190 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -1
- package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
- package/dist/cjs/core/auth/BearerToken.js +7 -6
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +1 -0
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
- package/dist/cjs/core/fetcher/Fetcher.js +10 -3
- package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/fetcher/signals.d.ts +1 -1
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/runtime/runtime.js +17 -15
- package/dist/cjs/core/stream/Stream.d.ts +9 -0
- package/dist/cjs/core/stream/Stream.js +100 -5
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/errors/phenomlError.js +5 -1
- package/dist/cjs/errors/phenomlTimeoutError.js +5 -1
- package/dist/cjs/index.d.ts +4 -2
- package/dist/cjs/index.js +9 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +13 -4
- package/dist/esm/BaseClient.mjs +24 -1
- package/dist/esm/Client.d.mts +34 -34
- package/dist/esm/Client.mjs +23 -31
- package/dist/esm/api/resources/agent/client/Client.d.mts +26 -27
- package/dist/esm/api/resources/agent/client/Client.mjs +55 -184
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/agent/exports.d.mts +3 -0
- package/dist/esm/api/resources/agent/exports.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +20 -21
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +34 -128
- package/dist/esm/api/resources/agent/resources/prompts/exports.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/exports.mjs +3 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +2 -2
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +3 -3
- package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +4 -4
- package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.d.mts +8 -8
- package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +4 -4
- package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +2 -2
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +3 -3
- package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +3 -3
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +3 -3
- package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +3 -3
- package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +8 -8
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +10 -10
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +9 -9
- package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +2 -2
- package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +6 -6
- package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +2 -2
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/authtoken/client/Client.mjs +6 -5
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/authtoken/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/authtoken/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/authtoken/errors/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/exports.d.mts +3 -0
- package/dist/esm/api/resources/authtoken/exports.mjs +4 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +28 -30
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +74 -41
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.mts +12 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.mjs +2 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/resources/auth/exports.mjs +3 -0
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +3 -3
- package/dist/esm/api/resources/authtoken/types/OAuthError.d.mts +19 -0
- package/dist/esm/api/resources/authtoken/types/OAuthError.mjs +11 -0
- package/dist/esm/api/resources/authtoken/types/TokenResponse.d.mts +8 -0
- package/dist/esm/api/resources/authtoken/types/TokenResponse.mjs +2 -0
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +3 -3
- package/dist/esm/api/resources/authtoken/types/index.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/types/index.mjs +2 -0
- package/dist/esm/api/resources/cohort/client/Client.d.mts +8 -9
- package/dist/esm/api/resources/cohort/client/Client.mjs +10 -26
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/cohort/exports.d.mts +2 -0
- package/dist/esm/api/resources/cohort/exports.mjs +3 -0
- package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +3 -3
- package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +4 -4
- package/dist/esm/api/resources/construe/client/Client.d.mts +28 -29
- package/dist/esm/api/resources/construe/client/Client.mjs +77 -238
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +5 -1
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/construe/exports.d.mts +2 -0
- package/dist/esm/api/resources/construe/exports.mjs +3 -0
- package/dist/esm/api/resources/construe/types/CodeResponse.d.mts +1 -1
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +3 -3
- package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +8 -8
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +2 -2
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +3 -3
- package/dist/esm/api/resources/construe/types/GetCodeResponse.d.mts +1 -1
- package/dist/esm/api/resources/construe/types/ListCodesResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +18 -19
- package/dist/esm/api/resources/fhir/client/Client.mjs +44 -132
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/BadGatewayError.mjs +5 -1
- package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/fhir/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhir/exports.mjs +3 -0
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +2 -2
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +8 -8
- package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +2 -2
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +5 -5
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +20 -21
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +34 -128
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/fhirProvider/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/exports.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/ClientSecretAuth.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +12 -12
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +3 -3
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +3 -3
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +3 -3
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.mts +4 -4
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +8 -8
- package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +4 -4
- package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +6 -6
- package/dist/esm/api/resources/fhirProvider/types/JwtAuth.d.mts +3 -3
- package/dist/esm/api/resources/fhirProvider/types/OnBehalfOfAuth.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/types/ServiceAccountMetadata.d.mts +4 -4
- package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +5 -5
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +18 -19
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +30 -111
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/resources/lang2Fhir/exports.d.mts +2 -0
- package/dist/esm/api/resources/lang2Fhir/exports.mjs +3 -0
- package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +15 -15
- package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +4 -4
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/client/Client.d.mts +18 -19
- package/dist/esm/api/resources/summary/client/Client.mjs +30 -111
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/summary/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/summary/exports.d.mts +2 -0
- package/dist/esm/api/resources/summary/exports.mjs +3 -0
- package/dist/esm/api/resources/summary/types/CreateSummaryResponse.d.mts +4 -4
- package/dist/esm/api/resources/summary/types/CreateSummaryTemplateResponse.d.mts +4 -4
- package/dist/esm/api/resources/summary/types/ErrorResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/types/FhirBundle.d.mts +1 -1
- package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/types/SummaryListTemplatesResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +9 -9
- package/dist/esm/api/resources/summary/types/SummaryUpdateTemplateResponse.d.mts +3 -3
- package/dist/esm/api/resources/tools/client/Client.d.mts +17 -18
- package/dist/esm/api/resources/tools/client/Client.mjs +31 -90
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +5 -1
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/tools/exports.d.mts +3 -0
- package/dist/esm/api/resources/tools/exports.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +17 -18
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +24 -79
- package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +3 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/exports.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +14 -15
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +22 -77
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +5 -5
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateMultiResponse.d.mts +10 -10
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +4 -4
- package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +5 -5
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +7 -7
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +4 -4
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +9 -9
- package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +4 -4
- package/dist/esm/api/resources/workflows/client/Client.d.mts +18 -19
- package/dist/esm/api/resources/workflows/client/Client.mjs +42 -127
- package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/workflows/exports.d.mts +2 -0
- package/dist/esm/api/resources/workflows/exports.mjs +3 -0
- package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +5 -5
- package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +4 -4
- package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +4 -4
- package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +5 -5
- package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +4 -4
- package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +4 -4
- package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +2 -2
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +8 -8
- package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +9 -9
- package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +8 -8
- package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +5 -5
- package/dist/esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts +2 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.d.mts +4 -4
- package/dist/esm/auth/OAuthAuthProvider.d.mts +45 -0
- package/dist/esm/auth/OAuthAuthProvider.mjs +152 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -1
- package/dist/esm/core/auth/BearerToken.d.mts +3 -1
- package/dist/esm/core/auth/BearerToken.mjs +7 -6
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +1 -0
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +10 -3
- package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/fetcher/signals.d.mts +1 -1
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/runtime/runtime.mjs +17 -15
- package/dist/esm/core/stream/Stream.d.mts +9 -0
- package/dist/esm/core/stream/Stream.mjs +100 -5
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/errors/phenomlError.mjs +5 -1
- package/dist/esm/errors/phenomlTimeoutError.mjs +5 -1
- package/dist/esm/index.d.mts +4 -2
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +162 -5
- package/reference.md +141 -74
- package/dist/cjs/WrapperClient.d.ts +0 -21
- package/dist/cjs/WrapperClient.js +0 -111
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/WrapperClient.d.mts +0 -21
- package/dist/esm/WrapperClient.mjs +0 -75
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -19,20 +19,22 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import {
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
23
24
|
import * as core from "../../../../core/index.mjs";
|
|
24
25
|
import * as environments from "../../../../environments.mjs";
|
|
26
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
25
27
|
import * as errors from "../../../../errors/index.mjs";
|
|
26
28
|
import * as phenoml from "../../../index.mjs";
|
|
27
|
-
export class
|
|
28
|
-
constructor(
|
|
29
|
-
this._options =
|
|
29
|
+
export class WorkflowsClient {
|
|
30
|
+
constructor(options = {}) {
|
|
31
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Retrieves all workflow definitions for the authenticated user
|
|
33
35
|
*
|
|
34
36
|
* @param {phenoml.workflows.WorkflowsListRequest} request
|
|
35
|
-
* @param {
|
|
37
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
38
|
*
|
|
37
39
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
38
40
|
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
@@ -50,11 +52,11 @@ export class Workflows {
|
|
|
50
52
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
51
53
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
52
54
|
const { verbose } = request;
|
|
53
|
-
const _queryParams = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
55
|
+
const _queryParams = {
|
|
56
|
+
verbose,
|
|
57
|
+
};
|
|
58
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
59
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
60
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
59
61
|
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, "workflows"),
|
|
60
62
|
method: "GET",
|
|
@@ -88,28 +90,14 @@ export class Workflows {
|
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
|
|
92
|
-
case "non-json":
|
|
93
|
-
throw new errors.phenomlError({
|
|
94
|
-
statusCode: _response.error.statusCode,
|
|
95
|
-
body: _response.error.rawBody,
|
|
96
|
-
rawResponse: _response.rawResponse,
|
|
97
|
-
});
|
|
98
|
-
case "timeout":
|
|
99
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /workflows.");
|
|
100
|
-
case "unknown":
|
|
101
|
-
throw new errors.phenomlError({
|
|
102
|
-
message: _response.error.errorMessage,
|
|
103
|
-
rawResponse: _response.rawResponse,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
93
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/workflows");
|
|
106
94
|
});
|
|
107
95
|
}
|
|
108
96
|
/**
|
|
109
97
|
* Creates a new workflow definition with graph generation from workflow instructions
|
|
110
98
|
*
|
|
111
99
|
* @param {phenoml.workflows.CreateWorkflowRequest} request
|
|
112
|
-
* @param {
|
|
100
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
101
|
*
|
|
114
102
|
* @throws {@link phenoml.workflows.BadRequestError}
|
|
115
103
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
@@ -136,11 +124,11 @@ export class Workflows {
|
|
|
136
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
125
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
138
126
|
const { verbose } = request, _body = __rest(request, ["verbose"]);
|
|
139
|
-
const _queryParams = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
127
|
+
const _queryParams = {
|
|
128
|
+
verbose,
|
|
129
|
+
};
|
|
130
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
131
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
144
132
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
145
133
|
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, "workflows"),
|
|
146
134
|
method: "POST",
|
|
@@ -179,21 +167,7 @@ export class Workflows {
|
|
|
179
167
|
});
|
|
180
168
|
}
|
|
181
169
|
}
|
|
182
|
-
|
|
183
|
-
case "non-json":
|
|
184
|
-
throw new errors.phenomlError({
|
|
185
|
-
statusCode: _response.error.statusCode,
|
|
186
|
-
body: _response.error.rawBody,
|
|
187
|
-
rawResponse: _response.rawResponse,
|
|
188
|
-
});
|
|
189
|
-
case "timeout":
|
|
190
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /workflows.");
|
|
191
|
-
case "unknown":
|
|
192
|
-
throw new errors.phenomlError({
|
|
193
|
-
message: _response.error.errorMessage,
|
|
194
|
-
rawResponse: _response.rawResponse,
|
|
195
|
-
});
|
|
196
|
-
}
|
|
170
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/workflows");
|
|
197
171
|
});
|
|
198
172
|
}
|
|
199
173
|
/**
|
|
@@ -201,7 +175,7 @@ export class Workflows {
|
|
|
201
175
|
*
|
|
202
176
|
* @param {string} id - ID of the workflow to retrieve
|
|
203
177
|
* @param {phenoml.workflows.WorkflowsGetRequest} request
|
|
204
|
-
* @param {
|
|
178
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
179
|
*
|
|
206
180
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
207
181
|
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
@@ -220,11 +194,11 @@ export class Workflows {
|
|
|
220
194
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
221
195
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
222
196
|
const { verbose } = request;
|
|
223
|
-
const _queryParams = {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
197
|
+
const _queryParams = {
|
|
198
|
+
verbose,
|
|
199
|
+
};
|
|
200
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
201
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
202
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
203
|
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, `workflows/${core.url.encodePathParam(id)}`),
|
|
230
204
|
method: "GET",
|
|
@@ -260,21 +234,7 @@ export class Workflows {
|
|
|
260
234
|
});
|
|
261
235
|
}
|
|
262
236
|
}
|
|
263
|
-
|
|
264
|
-
case "non-json":
|
|
265
|
-
throw new errors.phenomlError({
|
|
266
|
-
statusCode: _response.error.statusCode,
|
|
267
|
-
body: _response.error.rawBody,
|
|
268
|
-
rawResponse: _response.rawResponse,
|
|
269
|
-
});
|
|
270
|
-
case "timeout":
|
|
271
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /workflows/{id}.");
|
|
272
|
-
case "unknown":
|
|
273
|
-
throw new errors.phenomlError({
|
|
274
|
-
message: _response.error.errorMessage,
|
|
275
|
-
rawResponse: _response.rawResponse,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
237
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/workflows/{id}");
|
|
278
238
|
});
|
|
279
239
|
}
|
|
280
240
|
/**
|
|
@@ -282,7 +242,7 @@ export class Workflows {
|
|
|
282
242
|
*
|
|
283
243
|
* @param {string} id - ID of the workflow to update
|
|
284
244
|
* @param {phenoml.workflows.UpdateWorkflowRequest} request
|
|
285
|
-
* @param {
|
|
245
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
286
246
|
*
|
|
287
247
|
* @throws {@link phenoml.workflows.BadRequestError}
|
|
288
248
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
@@ -310,11 +270,11 @@ export class Workflows {
|
|
|
310
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
271
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
312
272
|
const { verbose } = request, _body = __rest(request, ["verbose"]);
|
|
313
|
-
const _queryParams = {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
273
|
+
const _queryParams = {
|
|
274
|
+
verbose,
|
|
275
|
+
};
|
|
276
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
277
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
318
278
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
319
279
|
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, `workflows/${core.url.encodePathParam(id)}`),
|
|
320
280
|
method: "PUT",
|
|
@@ -355,28 +315,14 @@ export class Workflows {
|
|
|
355
315
|
});
|
|
356
316
|
}
|
|
357
317
|
}
|
|
358
|
-
|
|
359
|
-
case "non-json":
|
|
360
|
-
throw new errors.phenomlError({
|
|
361
|
-
statusCode: _response.error.statusCode,
|
|
362
|
-
body: _response.error.rawBody,
|
|
363
|
-
rawResponse: _response.rawResponse,
|
|
364
|
-
});
|
|
365
|
-
case "timeout":
|
|
366
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /workflows/{id}.");
|
|
367
|
-
case "unknown":
|
|
368
|
-
throw new errors.phenomlError({
|
|
369
|
-
message: _response.error.errorMessage,
|
|
370
|
-
rawResponse: _response.rawResponse,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
318
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/workflows/{id}");
|
|
373
319
|
});
|
|
374
320
|
}
|
|
375
321
|
/**
|
|
376
322
|
* Deletes a workflow definition by its ID
|
|
377
323
|
*
|
|
378
324
|
* @param {string} id - ID of the workflow to delete
|
|
379
|
-
* @param {
|
|
325
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
326
|
*
|
|
381
327
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
382
328
|
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
@@ -392,7 +338,8 @@ export class Workflows {
|
|
|
392
338
|
__delete(id, requestOptions) {
|
|
393
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
394
340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
395
|
-
const
|
|
341
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
342
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
396
343
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
397
344
|
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, `workflows/${core.url.encodePathParam(id)}`),
|
|
398
345
|
method: "DELETE",
|
|
@@ -428,21 +375,7 @@ export class Workflows {
|
|
|
428
375
|
});
|
|
429
376
|
}
|
|
430
377
|
}
|
|
431
|
-
|
|
432
|
-
case "non-json":
|
|
433
|
-
throw new errors.phenomlError({
|
|
434
|
-
statusCode: _response.error.statusCode,
|
|
435
|
-
body: _response.error.rawBody,
|
|
436
|
-
rawResponse: _response.rawResponse,
|
|
437
|
-
});
|
|
438
|
-
case "timeout":
|
|
439
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /workflows/{id}.");
|
|
440
|
-
case "unknown":
|
|
441
|
-
throw new errors.phenomlError({
|
|
442
|
-
message: _response.error.errorMessage,
|
|
443
|
-
rawResponse: _response.rawResponse,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
378
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/workflows/{id}");
|
|
446
379
|
});
|
|
447
380
|
}
|
|
448
381
|
/**
|
|
@@ -450,7 +383,7 @@ export class Workflows {
|
|
|
450
383
|
*
|
|
451
384
|
* @param {string} id - ID of the workflow to execute
|
|
452
385
|
* @param {phenoml.workflows.ExecuteWorkflowRequest} request
|
|
453
|
-
* @param {
|
|
386
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
454
387
|
*
|
|
455
388
|
* @throws {@link phenoml.workflows.BadRequestError}
|
|
456
389
|
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
@@ -474,7 +407,8 @@ export class Workflows {
|
|
|
474
407
|
__execute(id, request, requestOptions) {
|
|
475
408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
476
409
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
477
|
-
const
|
|
410
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
411
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
478
412
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
479
413
|
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, `workflows/${core.url.encodePathParam(id)}/execute`),
|
|
480
414
|
method: "POST",
|
|
@@ -515,26 +449,7 @@ export class Workflows {
|
|
|
515
449
|
});
|
|
516
450
|
}
|
|
517
451
|
}
|
|
518
|
-
|
|
519
|
-
case "non-json":
|
|
520
|
-
throw new errors.phenomlError({
|
|
521
|
-
statusCode: _response.error.statusCode,
|
|
522
|
-
body: _response.error.rawBody,
|
|
523
|
-
rawResponse: _response.rawResponse,
|
|
524
|
-
});
|
|
525
|
-
case "timeout":
|
|
526
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /workflows/{id}/execute.");
|
|
527
|
-
case "unknown":
|
|
528
|
-
throw new errors.phenomlError({
|
|
529
|
-
message: _response.error.errorMessage,
|
|
530
|
-
rawResponse: _response.rawResponse,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
_getAuthorizationHeader() {
|
|
536
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
537
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
452
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/workflows/{id}/execute");
|
|
538
453
|
});
|
|
539
454
|
}
|
|
540
455
|
}
|
|
@@ -8,6 +8,10 @@ export class BadRequestError extends errors.phenomlError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class ForbiddenError extends errors.phenomlError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class InternalServerError extends errors.phenomlError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class NotFoundError extends errors.phenomlError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class UnauthorizedError extends errors.phenomlError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
2
|
export interface CreateWorkflowResponse {
|
|
3
3
|
/** Whether the workflow was created successfully */
|
|
4
|
-
success?: boolean;
|
|
4
|
+
success?: boolean | undefined;
|
|
5
5
|
/** Status message */
|
|
6
|
-
message?: string;
|
|
6
|
+
message?: string | undefined;
|
|
7
7
|
/** ID of the created workflow */
|
|
8
|
-
workflow_id?: string;
|
|
8
|
+
workflow_id?: string | undefined;
|
|
9
9
|
/** Simplified workflow response with only essential step information */
|
|
10
|
-
workflow?: phenoml.workflows.WorkflowResponse;
|
|
10
|
+
workflow?: phenoml.workflows.WorkflowResponse | undefined;
|
|
11
11
|
/** Only included when verbose=true - contains full implementation details including operation definitions and placeholders */
|
|
12
|
-
workflow_details?: phenoml.workflows.WorkflowDefinition;
|
|
12
|
+
workflow_details?: phenoml.workflows.WorkflowDefinition | undefined;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface DecisionNodeDefinition {
|
|
2
2
|
/** Simple equality expression for decision logic */
|
|
3
|
-
expression?: string;
|
|
3
|
+
expression?: string | undefined;
|
|
4
4
|
/** Maps decision outcomes to next step IDs */
|
|
5
|
-
paths?: Record<string, string
|
|
5
|
+
paths?: Record<string, string> | undefined;
|
|
6
6
|
/** Maps placeholder tokens to their input data paths for decision evaluation */
|
|
7
|
-
runtime_placeholders?: Record<string, string
|
|
7
|
+
runtime_placeholders?: Record<string, string> | undefined;
|
|
8
8
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface ExecuteWorkflowResponse {
|
|
2
2
|
/** Whether the workflow execution was successful */
|
|
3
|
-
success?: boolean;
|
|
3
|
+
success?: boolean | undefined;
|
|
4
4
|
/** Status message with execution details */
|
|
5
|
-
message?: string;
|
|
6
|
-
results?: ExecuteWorkflowResponse.Results;
|
|
5
|
+
message?: string | undefined;
|
|
6
|
+
results?: ExecuteWorkflowResponse.Results | undefined;
|
|
7
7
|
}
|
|
8
8
|
export declare namespace ExecuteWorkflowResponse {
|
|
9
9
|
interface Results {
|
|
10
10
|
/** Results for each executed workflow step, keyed by step ID */
|
|
11
|
-
steps?: Record<string, unknown
|
|
11
|
+
steps?: Record<string, unknown> | undefined;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface Lang2FhirCreateDefinition {
|
|
2
2
|
/** Original natural language description */
|
|
3
|
-
original_description?: string;
|
|
3
|
+
original_description?: string | undefined;
|
|
4
4
|
/** FHIR resource type to create */
|
|
5
|
-
resource_type?: string;
|
|
5
|
+
resource_type?: string | undefined;
|
|
6
6
|
/** Prepared FHIR resource template */
|
|
7
|
-
resource_template?: Record<string, unknown
|
|
7
|
+
resource_template?: Record<string, unknown> | undefined;
|
|
8
8
|
/** Maps placeholder tokens to their input data paths */
|
|
9
|
-
runtime_placeholders?: Record<string, string
|
|
9
|
+
runtime_placeholders?: Record<string, string> | undefined;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export interface Lang2FhirSearchDefinition {
|
|
2
2
|
/** Original natural language query */
|
|
3
|
-
original_query?: string;
|
|
3
|
+
original_query?: string | undefined;
|
|
4
4
|
/** FHIR resource type to search */
|
|
5
|
-
resource_type?: string;
|
|
5
|
+
resource_type?: string | undefined;
|
|
6
6
|
/** Prepared FHIR search parameters */
|
|
7
|
-
search_parameters?: Record<string, unknown
|
|
7
|
+
search_parameters?: Record<string, unknown> | undefined;
|
|
8
8
|
/** Fields needed from search results */
|
|
9
|
-
required_fields?: string[];
|
|
9
|
+
required_fields?: string[] | undefined;
|
|
10
10
|
/** Maps placeholder tokens to their input data paths */
|
|
11
|
-
runtime_placeholders?: Record<string, string
|
|
11
|
+
runtime_placeholders?: Record<string, string> | undefined;
|
|
12
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
2
|
export interface ListWorkflowsResponse {
|
|
3
3
|
/** Whether the workflow list was retrieved successfully */
|
|
4
|
-
success?: boolean;
|
|
4
|
+
success?: boolean | undefined;
|
|
5
5
|
/** Status message */
|
|
6
|
-
message?: string;
|
|
6
|
+
message?: string | undefined;
|
|
7
7
|
/** Array of simplified workflow responses for the authenticated user */
|
|
8
|
-
workflows?: phenoml.workflows.WorkflowResponse[];
|
|
8
|
+
workflows?: phenoml.workflows.WorkflowResponse[] | undefined;
|
|
9
9
|
/** Only included when verbose=true - contains full implementation details for all workflows */
|
|
10
|
-
workflow_details?: phenoml.workflows.WorkflowDefinition[];
|
|
10
|
+
workflow_details?: phenoml.workflows.WorkflowDefinition[] | undefined;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
2
|
export interface StepOperation {
|
|
3
|
-
search_definition?: phenoml.workflows.Lang2FhirSearchDefinition;
|
|
4
|
-
create_definition?: phenoml.workflows.Lang2FhirCreateDefinition;
|
|
5
|
-
workflow_definition?: phenoml.workflows.SubWorkflowDefinition;
|
|
6
|
-
decision_definition?: phenoml.workflows.DecisionNodeDefinition;
|
|
3
|
+
search_definition?: phenoml.workflows.Lang2FhirSearchDefinition | undefined;
|
|
4
|
+
create_definition?: phenoml.workflows.Lang2FhirCreateDefinition | undefined;
|
|
5
|
+
workflow_definition?: phenoml.workflows.SubWorkflowDefinition | undefined;
|
|
6
|
+
decision_definition?: phenoml.workflows.DecisionNodeDefinition | undefined;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface SubWorkflowDefinition {
|
|
2
2
|
/** ID of the workflow to execute as a sub-workflow */
|
|
3
|
-
workflow_id?: string;
|
|
3
|
+
workflow_id?: string | undefined;
|
|
4
4
|
/** Input data to pass to the sub-workflow */
|
|
5
|
-
input?: Record<string, unknown
|
|
5
|
+
input?: Record<string, unknown> | undefined;
|
|
6
6
|
/** Maps placeholder tokens to their input data paths for sub-workflow */
|
|
7
|
-
runtime_placeholders?: Record<string, string
|
|
7
|
+
runtime_placeholders?: Record<string, string> | undefined;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface WorkflowConfig {
|
|
2
2
|
/** FHIR provider IDs for executing workflow steps */
|
|
3
|
-
fhir_provider_ids?: string[];
|
|
3
|
+
fhir_provider_ids?: string[] | undefined;
|
|
4
4
|
/** Whether to use dynamic lang2fhir generation instead of pre-populated templates */
|
|
5
|
-
dynamic_generation?: boolean;
|
|
5
|
+
dynamic_generation?: boolean | undefined;
|
|
6
6
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
2
|
export interface WorkflowDefinition {
|
|
3
3
|
/** Unique identifier for the workflow */
|
|
4
|
-
id?: string;
|
|
4
|
+
id?: string | undefined;
|
|
5
5
|
/** Human-readable name for the workflow */
|
|
6
|
-
name?: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
/** Natural language instructions that define the workflow logic */
|
|
8
|
-
workflow_instructions?: string;
|
|
8
|
+
workflow_instructions?: string | undefined;
|
|
9
9
|
/** Sample data used for workflow graph generation */
|
|
10
|
-
sample_data?: Record<string, unknown
|
|
11
|
-
config?: phenoml.workflows.WorkflowConfig;
|
|
12
|
-
graph?: phenoml.workflows.WorkflowGraph;
|
|
10
|
+
sample_data?: Record<string, unknown> | undefined;
|
|
11
|
+
config?: phenoml.workflows.WorkflowConfig | undefined;
|
|
12
|
+
graph?: phenoml.workflows.WorkflowGraph | undefined;
|
|
13
13
|
/** Timestamp when the workflow was created */
|
|
14
|
-
created_at?: string;
|
|
14
|
+
created_at?: string | undefined;
|
|
15
15
|
/** Timestamp when the workflow was last updated */
|
|
16
|
-
updated_at?: string;
|
|
16
|
+
updated_at?: string | undefined;
|
|
17
17
|
}
|
|
@@ -4,23 +4,23 @@ import type * as phenoml from "../../../index.mjs";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface WorkflowResponse {
|
|
6
6
|
/** Unique identifier for the workflow */
|
|
7
|
-
id?: string;
|
|
7
|
+
id?: string | undefined;
|
|
8
8
|
/** Human-readable name for the workflow */
|
|
9
|
-
name?: string;
|
|
9
|
+
name?: string | undefined;
|
|
10
10
|
/** Natural language instructions that define the workflow logic */
|
|
11
|
-
workflow_instructions?: string;
|
|
11
|
+
workflow_instructions?: string | undefined;
|
|
12
12
|
/** Sample data used for workflow graph generation */
|
|
13
|
-
sample_data?: Record<string, unknown
|
|
14
|
-
config?: phenoml.workflows.WorkflowConfig;
|
|
15
|
-
graph?: WorkflowResponse.Graph;
|
|
13
|
+
sample_data?: Record<string, unknown> | undefined;
|
|
14
|
+
config?: phenoml.workflows.WorkflowConfig | undefined;
|
|
15
|
+
graph?: WorkflowResponse.Graph | undefined;
|
|
16
16
|
/** Timestamp when the workflow was created */
|
|
17
|
-
created_at?: string;
|
|
17
|
+
created_at?: string | undefined;
|
|
18
18
|
/** Timestamp when the workflow was last updated */
|
|
19
|
-
updated_at?: string;
|
|
19
|
+
updated_at?: string | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace WorkflowResponse {
|
|
22
22
|
interface Graph {
|
|
23
23
|
/** Simplified list of workflow steps without operation details */
|
|
24
|
-
steps?: phenoml.workflows.WorkflowStepSummary[];
|
|
24
|
+
steps?: phenoml.workflows.WorkflowStepSummary[] | undefined;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
2
|
export interface WorkflowStep {
|
|
3
3
|
/** Unique identifier for the step */
|
|
4
|
-
id?: string;
|
|
4
|
+
id?: string | undefined;
|
|
5
5
|
/** Human-readable name for the step */
|
|
6
|
-
name?: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
/** Detailed description of what the step does */
|
|
8
|
-
description?: string;
|
|
8
|
+
description?: string | undefined;
|
|
9
9
|
/** Type of operation this step performs */
|
|
10
|
-
type?: WorkflowStep.Type;
|
|
11
|
-
operation?: phenoml.workflows.StepOperation;
|
|
10
|
+
type?: WorkflowStep.Type | undefined;
|
|
11
|
+
operation?: phenoml.workflows.StepOperation | undefined;
|
|
12
12
|
/** Selected FHIR provider ID for this step */
|
|
13
|
-
provider_id?: string;
|
|
13
|
+
provider_id?: string | undefined;
|
|
14
14
|
/** IDs of steps this step depends on */
|
|
15
|
-
dependencies?: string[];
|
|
15
|
+
dependencies?: string[] | undefined;
|
|
16
16
|
/** Whether to use dynamic lang2fhir generation for this step */
|
|
17
|
-
dynamic_generation?: boolean;
|
|
17
|
+
dynamic_generation?: boolean | undefined;
|
|
18
18
|
}
|
|
19
19
|
export declare namespace WorkflowStep {
|
|
20
20
|
/** Type of operation this step performs */
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowStepSummary {
|
|
5
5
|
/** Unique identifier for the step */
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | undefined;
|
|
7
7
|
/** Human-readable name for the step */
|
|
8
|
-
name?: string;
|
|
8
|
+
name?: string | undefined;
|
|
9
9
|
/** Detailed description of what the step does */
|
|
10
|
-
description?: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
11
|
/** Type of operation this step performs */
|
|
12
|
-
type?: WorkflowStepSummary.Type;
|
|
12
|
+
type?: WorkflowStepSummary.Type | undefined;
|
|
13
13
|
/** Selected FHIR provider ID for this step */
|
|
14
|
-
provider_id?: string;
|
|
14
|
+
provider_id?: string | undefined;
|
|
15
15
|
}
|
|
16
16
|
export declare namespace WorkflowStepSummary {
|
|
17
17
|
/** Type of operation this step performs */
|