phenoml 0.0.3 → 0.0.6
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 +27 -0
- package/dist/cjs/{api/resources/agent/client/requests/AgentUpdateRequest.js → BaseClient.js} +1 -3
- package/dist/cjs/Client.d.ts +13 -25
- package/dist/cjs/Client.js +23 -10
- package/dist/cjs/api/index.d.ts +1 -0
- package/dist/cjs/api/index.js +1 -0
- package/dist/cjs/api/resources/agent/client/Client.d.ts +20 -30
- package/dist/cjs/api/resources/agent/client/Client.js +48 -36
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -6
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +1 -3
- package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +4 -4
- package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +1 -3
- package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +4 -4
- package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +1 -3
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +0 -3
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -3
- package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +0 -3
- package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +0 -3
- package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +28 -26
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +0 -3
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +1 -3
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +0 -3
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +1 -3
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +1 -3
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +28 -0
- package/dist/cjs/api/resources/agent/{client/requests → types}/AgentCreateRequest.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +1 -4
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentListResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/AgentResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +14 -7
- package/dist/cjs/api/resources/agent/types/AgentTemplate.js +1 -3
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +1 -3
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +1 -3
- package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/JsonPatch.js +1 -3
- package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +3 -7
- package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +2 -3
- package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/PromptTemplate.js +1 -3
- package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/SuccessResponse.js +1 -3
- package/dist/cjs/api/resources/agent/types/index.d.ts +1 -4
- package/dist/cjs/api/resources/agent/types/index.js +1 -4
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +3 -14
- package/dist/cjs/api/resources/authtoken/client/Client.js +2 -4
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +1 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +1 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +1 -3
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -3
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +1 -3
- package/dist/cjs/api/resources/cohort/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/cohort/client/Client.js +10 -8
- package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +1 -3
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/types/CohortResponse.js +1 -3
- package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +0 -3
- package/dist/cjs/api/resources/cohort/types/SearchConcept.js +1 -3
- package/dist/cjs/api/resources/construe/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/construe/client/Client.js +16 -14
- package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -3
- package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +1 -3
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +0 -3
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +1 -3
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +2 -7
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +2 -3
- package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +0 -3
- package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -3
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +0 -3
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -3
- package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +0 -3
- package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +1 -3
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +1 -3
- package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +1 -3
- package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +1 -4
- package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +1 -3
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +1 -3
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +1 -3
- package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +1 -3
- package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +1 -3
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +294 -0
- package/dist/cjs/api/resources/fhir/client/Client.js +693 -0
- package/dist/cjs/api/resources/fhir/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/client/index.js +17 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +25 -0
- package/dist/cjs/api/resources/{agent/types/AgentFhirConfig.js → fhir/client/requests/FhirCreateRequest.js} +1 -3
- package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +10 -0
- package/dist/cjs/api/resources/{agent/types/AgentProvider.js → fhir/client/requests/FhirDeleteRequest.js} +1 -3
- package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +44 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.js +3 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +66 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.js +3 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +23 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.js +3 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +27 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +3 -0
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/fhir/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +50 -0
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +50 -0
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +50 -0
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +50 -0
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +4 -0
- package/dist/cjs/api/resources/fhir/errors/index.js +20 -0
- package/dist/cjs/api/resources/fhir/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhir/index.js +19 -0
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +11 -0
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +3 -0
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +54 -0
- package/dist/cjs/api/resources/fhir/types/FhirBundle.js +23 -0
- package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +22 -0
- package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +16 -0
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +24 -0
- package/dist/cjs/api/resources/fhir/types/FhirResource.js +3 -0
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +3 -0
- package/dist/cjs/api/resources/fhir/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/types/index.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +141 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +594 -0
- package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/client/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +17 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +27 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +10 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +10 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +50 -0
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +50 -0
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +50 -0
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +50 -0
- package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/index.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhirProvider/index.js +19 -0
- package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +9 -0
- package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +12 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +19 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +4 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +6 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +6 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +6 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +6 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +22 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +16 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +17 -0
- package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +12 -0
- package/dist/cjs/api/resources/fhirProvider/types/Provider.js +15 -0
- package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +16 -0
- package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +15 -0
- package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +3 -0
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/fhirProvider/types/index.js +29 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +19 -17
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +2 -7
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +2 -3
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +4 -11
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +3 -3
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +1 -3
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +0 -3
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +1 -3
- package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -26
- package/dist/cjs/api/resources/tools/client/Client.js +17 -15
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +3 -20
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +1 -13
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +4 -21
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +2 -9
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +2 -19
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +1 -13
- package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +0 -3
- package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -3
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +1 -3
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +0 -3
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -3
- package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +0 -3
- package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +0 -3
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +19 -17
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +1 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +5 -25
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +19 -17
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +1 -3
- package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/CohortResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/McpServerResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +1 -3
- package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +0 -3
- package/dist/cjs/api/resources/tools/types/SearchConcept.js +1 -3
- package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/index.js +0 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +43 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +222 -0
- package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/client/index.js +2 -0
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +50 -0
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +50 -0
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +50 -0
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +50 -0
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/index.js +21 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +4 -0
- package/dist/cjs/api/resources/workflows/index.js +20 -0
- package/dist/cjs/api/resources/workflows/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/workflows/resources/index.js +43 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +268 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.js +2 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +18 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.js +37 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +265 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.js +2 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.js +17 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +145 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.js +569 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/index.js +17 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +40 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +15 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +40 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/index.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/index.js +18 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.ts +4 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.ts +7 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +19 -0
- package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +13 -0
- package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +8 -0
- package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.js +3 -0
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +13 -0
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.js +3 -0
- package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +12 -0
- package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.js +3 -0
- package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +11 -0
- package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +7 -0
- package/dist/cjs/api/resources/workflows/types/StepOperation.js +3 -0
- package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +8 -0
- package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.js +3 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +6 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowConfig.js +3 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +19 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.js +3 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowGraph.js +3 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +28 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +28 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowStep.js +14 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +25 -0
- package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.js +14 -0
- package/dist/cjs/api/resources/workflows/types/index.d.ts +14 -0
- package/dist/cjs/api/resources/workflows/types/index.js +30 -0
- package/dist/cjs/api/types/CohortResponse.d.ts +1 -0
- package/dist/cjs/api/types/CohortResponse.js +3 -0
- package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +1 -0
- package/dist/cjs/api/types/Lang2FhirAndCreateResponse.js +3 -0
- package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +1 -0
- package/dist/cjs/api/types/Lang2FhirAndSearchResponse.js +3 -0
- package/dist/cjs/api/types/McpServerResponse.d.ts +1 -0
- package/dist/cjs/api/types/McpServerResponse.js +3 -0
- package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +1 -0
- package/dist/cjs/api/types/McpServerToolCallResponse.js +3 -0
- package/dist/cjs/api/types/McpServerToolResponse.d.ts +1 -0
- package/dist/cjs/api/types/McpServerToolResponse.js +3 -0
- package/dist/cjs/api/types/SearchConcept.d.ts +1 -0
- package/dist/cjs/api/types/SearchConcept.js +3 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +23 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
- package/dist/cjs/core/auth/BasicAuth.js +2 -1
- package/dist/cjs/core/auth/index.d.ts +2 -2
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
- package/dist/cjs/core/fetcher/Fetcher.js +3 -2
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/phenomlError.d.ts +0 -3
- package/dist/cjs/errors/phenomlError.js +1 -3
- package/dist/cjs/errors/phenomlTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/phenomlTimeoutError.js +1 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +27 -0
- package/dist/esm/BaseClient.mjs +3 -0
- package/dist/esm/Client.d.mts +13 -25
- package/dist/esm/Client.mjs +20 -6
- package/dist/esm/WrapperClient.mjs +1 -0
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/resources/agent/client/Client.d.mts +20 -30
- package/dist/esm/api/resources/agent/client/Client.mjs +48 -36
- package/dist/esm/api/resources/agent/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -6
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +1 -3
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +4 -4
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +2 -4
- package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +4 -4
- package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +1 -3
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/agent/client/requests/index.mjs +3 -1
- package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +0 -3
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +2 -3
- package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +0 -3
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +2 -3
- package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +0 -3
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +2 -3
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +28 -26
- package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +0 -3
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +1 -3
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +0 -3
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +1 -3
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +2 -1
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +1 -3
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +2 -4
- package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +1 -3
- package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +28 -0
- package/dist/esm/api/resources/agent/types/AgentCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +1 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +1 -4
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +1 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +2 -4
- package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +2 -4
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +2 -4
- package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/AgentResponse.mjs +2 -4
- package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +14 -7
- package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +1 -3
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +1 -3
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +1 -3
- package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/JsonPatch.mjs +2 -4
- package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +3 -7
- package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +2 -3
- package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +1 -3
- package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +1 -3
- package/dist/esm/api/resources/agent/types/index.d.mts +1 -4
- package/dist/esm/api/resources/agent/types/index.mjs +1 -4
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +3 -14
- package/dist/esm/api/resources/authtoken/client/Client.mjs +4 -4
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +1 -3
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +1 -3
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -3
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +1 -3
- package/dist/esm/api/resources/cohort/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/cohort/client/Client.mjs +10 -8
- package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
- package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +0 -3
- package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +1 -3
- package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +0 -3
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +2 -3
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +0 -3
- package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +2 -4
- package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +0 -3
- package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +1 -3
- package/dist/esm/api/resources/construe/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/construe/client/Client.mjs +16 -14
- package/dist/esm/api/resources/construe/client/index.mjs +1 -0
- package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -3
- package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +1 -3
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +0 -3
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +2 -4
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +2 -7
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +2 -3
- package/dist/esm/api/resources/construe/client/requests/index.mjs +3 -1
- package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +0 -3
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +2 -3
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +0 -3
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +2 -3
- package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +0 -3
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +2 -3
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +1 -3
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +1 -3
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +2 -4
- package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +1 -4
- package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +1 -3
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +1 -3
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +1 -3
- package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +1 -3
- package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +1 -3
- package/dist/esm/api/resources/fhir/client/Client.d.mts +294 -0
- package/dist/esm/api/resources/fhir/client/Client.mjs +656 -0
- package/dist/esm/api/resources/fhir/client/index.d.mts +2 -0
- package/dist/esm/api/resources/fhir/client/index.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +25 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +10 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +44 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +66 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +23 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +27 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/fhir/client/requests/index.mjs +6 -0
- package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +14 -0
- package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +14 -0
- package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +14 -0
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +14 -0
- package/dist/esm/api/resources/fhir/errors/index.d.mts +4 -0
- package/dist/esm/api/resources/fhir/errors/index.mjs +4 -0
- package/dist/esm/api/resources/fhir/index.d.mts +3 -0
- package/dist/esm/api/resources/fhir/index.mjs +3 -0
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +11 -0
- package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +2 -0
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +54 -0
- package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +20 -0
- package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +22 -0
- package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +13 -0
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +24 -0
- package/dist/esm/api/resources/fhir/types/FhirResource.mjs +2 -0
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +2 -0
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +2 -0
- package/dist/esm/api/resources/fhir/types/index.d.mts +5 -0
- package/dist/esm/api/resources/fhir/types/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +141 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +557 -0
- package/dist/esm/api/resources/fhirProvider/client/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/client/index.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +17 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +27 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +10 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +10 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +14 -0
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +14 -0
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +14 -0
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +14 -0
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +14 -0
- package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/index.d.mts +3 -0
- package/dist/esm/api/resources/fhirProvider/index.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +9 -0
- package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +9 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +19 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +6 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +6 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +6 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +6 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +22 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +16 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +17 -0
- package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +12 -0
- package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +12 -0
- package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +16 -0
- package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +15 -0
- package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +13 -0
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +13 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +19 -17
- package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +2 -7
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +4 -11
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +3 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +1 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +1 -3
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +4 -1
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +1 -3
- package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +1 -3
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +0 -3
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/client/Client.d.mts +6 -26
- package/dist/esm/api/resources/tools/client/Client.mjs +17 -15
- package/dist/esm/api/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +3 -20
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +2 -12
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +4 -21
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +2 -9
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +2 -19
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +2 -12
- package/dist/esm/api/resources/tools/client/requests/index.mjs +3 -1
- package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +0 -3
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +2 -3
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -3
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +2 -3
- package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +0 -3
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +2 -3
- package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +0 -3
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +2 -3
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +0 -3
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +2 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +19 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +5 -25
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +19 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/CohortResponse.mjs +2 -4
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +1 -3
- package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +0 -3
- package/dist/esm/api/resources/tools/types/SearchConcept.mjs +1 -3
- package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +43 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +185 -0
- package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +14 -0
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +14 -0
- package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +14 -0
- package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +14 -0
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +14 -0
- package/dist/esm/api/resources/workflows/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/index.mjs +5 -0
- package/dist/esm/api/resources/workflows/index.d.mts +4 -0
- package/dist/esm/api/resources/workflows/index.mjs +4 -0
- package/dist/esm/api/resources/workflows/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/workflows/resources/index.mjs +4 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +231 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +2 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +228 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +145 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/Client.mjs +532 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/index.d.mts +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/index.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +40 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +15 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +40 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.mts +10 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.mts +10 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.mjs +5 -0
- package/dist/esm/api/resources/workflows/resources/workflows/index.d.mts +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/index.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.mts +7 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.mts +9 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +3 -0
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +3 -0
- package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +13 -0
- package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +8 -0
- package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +13 -0
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +10 -0
- package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +12 -0
- package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +11 -0
- package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +7 -0
- package/dist/esm/api/resources/workflows/types/StepOperation.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +8 -0
- package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +6 -0
- package/dist/esm/api/resources/workflows/types/WorkflowConfig.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +19 -0
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +5 -0
- package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +28 -0
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +28 -0
- package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +12 -0
- package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +25 -0
- package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.mjs +11 -0
- package/dist/esm/api/resources/workflows/types/index.d.mts +14 -0
- package/dist/esm/api/resources/workflows/types/index.mjs +14 -0
- package/dist/esm/api/types/CohortResponse.d.mts +1 -0
- package/dist/esm/api/types/CohortResponse.mjs +2 -0
- package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +1 -0
- package/dist/esm/api/types/Lang2FhirAndCreateResponse.mjs +2 -0
- package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +1 -0
- package/dist/esm/api/types/Lang2FhirAndSearchResponse.mjs +2 -0
- package/dist/esm/api/types/McpServerResponse.d.mts +1 -0
- package/dist/esm/api/types/McpServerResponse.mjs +2 -0
- package/dist/esm/api/types/McpServerToolCallResponse.d.mts +1 -0
- package/dist/esm/api/types/McpServerToolCallResponse.mjs +2 -0
- package/dist/esm/api/types/McpServerToolResponse.d.mts +1 -0
- package/dist/esm/api/types/McpServerToolResponse.mjs +2 -0
- package/dist/esm/api/types/SearchConcept.d.mts +1 -0
- package/dist/esm/api/types/SearchConcept.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
- package/dist/esm/core/auth/BasicAuth.mjs +2 -1
- package/dist/esm/core/auth/index.d.mts +2 -2
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +3 -2
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/phenomlError.d.mts +0 -3
- package/dist/esm/errors/phenomlError.mjs +2 -3
- package/dist/esm/errors/phenomlTimeoutError.d.mts +0 -3
- package/dist/esm/errors/phenomlTimeoutError.mjs +1 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -3
- package/reference.md +2183 -146
- package/LICENSE +0 -21
- package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +0 -29
- package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +0 -25
- package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +0 -12
- package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +0 -11
- package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +0 -12
- package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +0 -5
- package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +0 -13
- package/dist/cjs/api/resources/agent/types/ProviderType.js +0 -12
- package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +0 -12
- package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +0 -5
- package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +0 -29
- package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +0 -4
- package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +0 -25
- package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +0 -4
- package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +0 -12
- package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +0 -4
- package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +0 -11
- package/dist/esm/api/resources/agent/types/AgentProvider.mjs +0 -4
- package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +0 -12
- package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +0 -4
- package/dist/esm/api/resources/agent/types/ProviderType.d.mts +0 -13
- package/dist/esm/api/resources/agent/types/ProviderType.mjs +0 -9
- package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +0 -12
- package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +0 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as environments from "./environments.js";
|
|
2
|
+
import * as core from "./core/index.js";
|
|
3
|
+
export interface BaseClientOptions {
|
|
4
|
+
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
5
|
+
/** Specify a custom URL to connect the client to. */
|
|
6
|
+
baseUrl?: core.Supplier<string>;
|
|
7
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
8
|
+
/** Additional headers to include in requests. */
|
|
9
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
|
+
/** The default maximum time to wait for a response in seconds. */
|
|
11
|
+
timeoutInSeconds?: number;
|
|
12
|
+
/** The default number of times to retry the request. Defaults to 2. */
|
|
13
|
+
maxRetries?: number;
|
|
14
|
+
fetcher?: core.FetchFunction;
|
|
15
|
+
}
|
|
16
|
+
export interface BaseRequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
+
}
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "./environments.js";
|
|
5
|
-
import * as core from "./core/index.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
6
2
|
import { Agent } from "./api/resources/agent/client/Client.js";
|
|
7
3
|
import { Authtoken } from "./api/resources/authtoken/client/Client.js";
|
|
8
4
|
import { Cohort } from "./api/resources/cohort/client/Client.js";
|
|
9
5
|
import { Construe } from "./api/resources/construe/client/Client.js";
|
|
6
|
+
import { Fhir } from "./api/resources/fhir/client/Client.js";
|
|
7
|
+
import { FhirProvider } from "./api/resources/fhirProvider/client/Client.js";
|
|
10
8
|
import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.js";
|
|
11
9
|
import { Tools } from "./api/resources/tools/client/Client.js";
|
|
10
|
+
import { Workflows } from "./api/resources/workflows/client/Client.js";
|
|
12
11
|
export declare namespace phenomlClient {
|
|
13
|
-
interface Options {
|
|
14
|
-
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
15
|
-
/** Specify a custom URL to connect the client to. */
|
|
16
|
-
baseUrl?: core.Supplier<string>;
|
|
17
|
-
token: core.Supplier<core.BearerToken>;
|
|
18
|
-
/** Additional headers to include in requests. */
|
|
19
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
20
|
-
fetcher?: core.FetchFunction;
|
|
12
|
+
interface Options extends BaseClientOptions {
|
|
21
13
|
}
|
|
22
|
-
interface RequestOptions {
|
|
23
|
-
/** The maximum time to wait for a response in seconds. */
|
|
24
|
-
timeoutInSeconds?: number;
|
|
25
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
26
|
-
maxRetries?: number;
|
|
27
|
-
/** A hook to abort the request. */
|
|
28
|
-
abortSignal?: AbortSignal;
|
|
29
|
-
/** Additional query string parameters to include in the request. */
|
|
30
|
-
queryParams?: Record<string, unknown>;
|
|
31
|
-
/** Additional headers to include in the request. */
|
|
32
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
33
15
|
}
|
|
34
16
|
}
|
|
35
17
|
export declare class phenomlClient {
|
|
@@ -38,13 +20,19 @@ export declare class phenomlClient {
|
|
|
38
20
|
protected _authtoken: Authtoken | undefined;
|
|
39
21
|
protected _cohort: Cohort | undefined;
|
|
40
22
|
protected _construe: Construe | undefined;
|
|
23
|
+
protected _fhir: Fhir | undefined;
|
|
24
|
+
protected _fhirProvider: FhirProvider | undefined;
|
|
41
25
|
protected _lang2Fhir: Lang2Fhir | undefined;
|
|
42
26
|
protected _tools: Tools | undefined;
|
|
43
|
-
|
|
27
|
+
protected _workflows: Workflows | undefined;
|
|
28
|
+
constructor(_options?: phenomlClient.Options);
|
|
44
29
|
get agent(): Agent;
|
|
45
30
|
get authtoken(): Authtoken;
|
|
46
31
|
get cohort(): Cohort;
|
|
47
32
|
get construe(): Construe;
|
|
33
|
+
get fhir(): Fhir;
|
|
34
|
+
get fhirProvider(): FhirProvider;
|
|
48
35
|
get lang2Fhir(): Lang2Fhir;
|
|
49
36
|
get tools(): Tools;
|
|
37
|
+
get workflows(): Workflows;
|
|
50
38
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -43,15 +41,18 @@ const Client_js_1 = require("./api/resources/agent/client/Client.js");
|
|
|
43
41
|
const Client_js_2 = require("./api/resources/authtoken/client/Client.js");
|
|
44
42
|
const Client_js_3 = require("./api/resources/cohort/client/Client.js");
|
|
45
43
|
const Client_js_4 = require("./api/resources/construe/client/Client.js");
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
44
|
+
const Client_js_5 = require("./api/resources/fhir/client/Client.js");
|
|
45
|
+
const Client_js_6 = require("./api/resources/fhirProvider/client/Client.js");
|
|
46
|
+
const Client_js_7 = require("./api/resources/lang2Fhir/client/Client.js");
|
|
47
|
+
const Client_js_8 = require("./api/resources/tools/client/Client.js");
|
|
48
|
+
const Client_js_9 = require("./api/resources/workflows/client/Client.js");
|
|
48
49
|
class phenomlClient {
|
|
49
|
-
constructor(_options) {
|
|
50
|
+
constructor(_options = {}) {
|
|
50
51
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
51
52
|
"X-Fern-Language": "JavaScript",
|
|
52
53
|
"X-Fern-SDK-Name": "phenoml",
|
|
53
|
-
"X-Fern-SDK-Version": "0.0.
|
|
54
|
-
"User-Agent": "phenoml/0.0.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.6",
|
|
55
|
+
"User-Agent": "phenoml/0.0.6",
|
|
55
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
56
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
57
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -72,13 +73,25 @@ class phenomlClient {
|
|
|
72
73
|
var _a;
|
|
73
74
|
return ((_a = this._construe) !== null && _a !== void 0 ? _a : (this._construe = new Client_js_4.Construe(this._options)));
|
|
74
75
|
}
|
|
76
|
+
get fhir() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this._fhir) !== null && _a !== void 0 ? _a : (this._fhir = new Client_js_5.Fhir(this._options)));
|
|
79
|
+
}
|
|
80
|
+
get fhirProvider() {
|
|
81
|
+
var _a;
|
|
82
|
+
return ((_a = this._fhirProvider) !== null && _a !== void 0 ? _a : (this._fhirProvider = new Client_js_6.FhirProvider(this._options)));
|
|
83
|
+
}
|
|
75
84
|
get lang2Fhir() {
|
|
76
85
|
var _a;
|
|
77
|
-
return ((_a = this._lang2Fhir) !== null && _a !== void 0 ? _a : (this._lang2Fhir = new
|
|
86
|
+
return ((_a = this._lang2Fhir) !== null && _a !== void 0 ? _a : (this._lang2Fhir = new Client_js_7.Lang2Fhir(this._options)));
|
|
78
87
|
}
|
|
79
88
|
get tools() {
|
|
80
89
|
var _a;
|
|
81
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
90
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_8.Tools(this._options)));
|
|
91
|
+
}
|
|
92
|
+
get workflows() {
|
|
93
|
+
var _a;
|
|
94
|
+
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_9.Workflows(this._options)));
|
|
82
95
|
}
|
|
83
96
|
}
|
|
84
97
|
exports.phenomlClient = phenomlClient;
|
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -1,37 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
5
2
|
import * as core from "../../../../core/index.js";
|
|
6
3
|
import * as phenoml from "../../../index.js";
|
|
7
4
|
import { Prompts } from "../resources/prompts/client/Client.js";
|
|
8
5
|
export declare namespace Agent {
|
|
9
|
-
interface Options {
|
|
10
|
-
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
11
|
-
/** Specify a custom URL to connect the client to. */
|
|
12
|
-
baseUrl?: core.Supplier<string>;
|
|
13
|
-
token: core.Supplier<core.BearerToken>;
|
|
14
|
-
/** Additional headers to include in requests. */
|
|
15
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
-
fetcher?: core.FetchFunction;
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
17
7
|
}
|
|
18
|
-
interface RequestOptions {
|
|
19
|
-
/** The maximum time to wait for a response in seconds. */
|
|
20
|
-
timeoutInSeconds?: number;
|
|
21
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
-
maxRetries?: number;
|
|
23
|
-
/** A hook to abort the request. */
|
|
24
|
-
abortSignal?: AbortSignal;
|
|
25
|
-
/** Additional query string parameters to include in the request. */
|
|
26
|
-
queryParams?: Record<string, unknown>;
|
|
27
|
-
/** Additional headers to include in the request. */
|
|
28
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
29
9
|
}
|
|
30
10
|
}
|
|
31
11
|
export declare class Agent {
|
|
32
12
|
protected readonly _options: Agent.Options;
|
|
33
13
|
protected _prompts: Prompts | undefined;
|
|
34
|
-
constructor(_options
|
|
14
|
+
constructor(_options?: Agent.Options);
|
|
35
15
|
get prompts(): Prompts;
|
|
36
16
|
/**
|
|
37
17
|
* Creates a new PhenoAgent with specified configuration
|
|
@@ -64,7 +44,10 @@ export declare class Agent {
|
|
|
64
44
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
65
45
|
*
|
|
66
46
|
* @example
|
|
67
|
-
* await client.agent.list(
|
|
47
|
+
* await client.agent.list({
|
|
48
|
+
* is_active: true,
|
|
49
|
+
* tags: "tags"
|
|
50
|
+
* })
|
|
68
51
|
*/
|
|
69
52
|
list(request?: phenoml.agent.AgentListRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentListResponse>;
|
|
70
53
|
private __list;
|
|
@@ -88,7 +71,7 @@ export declare class Agent {
|
|
|
88
71
|
* Updates an existing agent's configuration
|
|
89
72
|
*
|
|
90
73
|
* @param {string} id - Agent ID
|
|
91
|
-
* @param {phenoml.agent.
|
|
74
|
+
* @param {phenoml.agent.AgentCreateRequest} request
|
|
92
75
|
* @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
76
|
*
|
|
94
77
|
* @throws {@link phenoml.agent.BadRequestError}
|
|
@@ -98,9 +81,13 @@ export declare class Agent {
|
|
|
98
81
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
99
82
|
*
|
|
100
83
|
* @example
|
|
101
|
-
* await client.agent.update("id"
|
|
84
|
+
* await client.agent.update("id", {
|
|
85
|
+
* name: "name",
|
|
86
|
+
* prompts: ["prompt_123", "prompt_456"],
|
|
87
|
+
* is_active: true
|
|
88
|
+
* })
|
|
102
89
|
*/
|
|
103
|
-
update(id: string, request
|
|
90
|
+
update(id: string, request: phenoml.agent.AgentCreateRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
|
|
104
91
|
private __update;
|
|
105
92
|
/**
|
|
106
93
|
* Deletes an existing agent
|
|
@@ -178,10 +165,13 @@ export declare class Agent {
|
|
|
178
165
|
*
|
|
179
166
|
* @example
|
|
180
167
|
* await client.agent.getChatMessages({
|
|
181
|
-
* chat_session_id: "chat_session_id"
|
|
168
|
+
* chat_session_id: "chat_session_id",
|
|
169
|
+
* num_messages: 1,
|
|
170
|
+
* role: "role",
|
|
171
|
+
* order: "asc"
|
|
182
172
|
* })
|
|
183
173
|
*/
|
|
184
174
|
getChatMessages(request: phenoml.agent.AgentGetChatMessagesRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentGetChatMessagesResponse>;
|
|
185
175
|
private __getChatMessages;
|
|
186
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
176
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
187
177
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -53,7 +51,7 @@ const headers_js_1 = require("../../../../core/headers.js");
|
|
|
53
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
52
|
const Client_js_1 = require("../resources/prompts/client/Client.js");
|
|
55
53
|
class Agent {
|
|
56
|
-
constructor(_options) {
|
|
54
|
+
constructor(_options = {}) {
|
|
57
55
|
this._options = _options;
|
|
58
56
|
}
|
|
59
57
|
get prompts() {
|
|
@@ -83,7 +81,7 @@ class Agent {
|
|
|
83
81
|
}
|
|
84
82
|
__create(request, requestOptions) {
|
|
85
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
var _a, _b, _c, _d;
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
87
85
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
86
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
87
|
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, "agent/create"),
|
|
@@ -93,8 +91,8 @@ class Agent {
|
|
|
93
91
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
94
92
|
requestType: "json",
|
|
95
93
|
body: request,
|
|
96
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
97
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
95
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
98
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
97
|
});
|
|
100
98
|
if (_response.ok) {
|
|
@@ -146,14 +144,17 @@ class Agent {
|
|
|
146
144
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
147
145
|
*
|
|
148
146
|
* @example
|
|
149
|
-
* await client.agent.list(
|
|
147
|
+
* await client.agent.list({
|
|
148
|
+
* is_active: true,
|
|
149
|
+
* tags: "tags"
|
|
150
|
+
* })
|
|
150
151
|
*/
|
|
151
152
|
list(request = {}, requestOptions) {
|
|
152
153
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
153
154
|
}
|
|
154
155
|
__list() {
|
|
155
156
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
156
|
-
var _a, _b, _c, _d;
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
157
158
|
const { is_active: isActive, tags } = request;
|
|
158
159
|
const _queryParams = {};
|
|
159
160
|
if (isActive != null) {
|
|
@@ -168,8 +169,8 @@ class Agent {
|
|
|
168
169
|
method: "GET",
|
|
169
170
|
headers: _headers,
|
|
170
171
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
171
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
172
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
173
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
173
174
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
174
175
|
});
|
|
175
176
|
if (_response.ok) {
|
|
@@ -227,15 +228,15 @@ class Agent {
|
|
|
227
228
|
}
|
|
228
229
|
__get(id, requestOptions) {
|
|
229
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
-
var _a, _b, _c, _d;
|
|
231
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
231
232
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
232
233
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
233
234
|
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, `agent/${encodeURIComponent(id)}`),
|
|
234
235
|
method: "GET",
|
|
235
236
|
headers: _headers,
|
|
236
237
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
237
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
238
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
238
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
239
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
239
240
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
240
241
|
});
|
|
241
242
|
if (_response.ok) {
|
|
@@ -280,7 +281,7 @@ class Agent {
|
|
|
280
281
|
* Updates an existing agent's configuration
|
|
281
282
|
*
|
|
282
283
|
* @param {string} id - Agent ID
|
|
283
|
-
* @param {phenoml.agent.
|
|
284
|
+
* @param {phenoml.agent.AgentCreateRequest} request
|
|
284
285
|
* @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
286
|
*
|
|
286
287
|
* @throws {@link phenoml.agent.BadRequestError}
|
|
@@ -290,14 +291,18 @@ class Agent {
|
|
|
290
291
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
291
292
|
*
|
|
292
293
|
* @example
|
|
293
|
-
* await client.agent.update("id"
|
|
294
|
+
* await client.agent.update("id", {
|
|
295
|
+
* name: "name",
|
|
296
|
+
* prompts: ["prompt_123", "prompt_456"],
|
|
297
|
+
* is_active: true
|
|
298
|
+
* })
|
|
294
299
|
*/
|
|
295
|
-
update(id, request
|
|
300
|
+
update(id, request, requestOptions) {
|
|
296
301
|
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
297
302
|
}
|
|
298
|
-
__update(
|
|
299
|
-
return __awaiter(this,
|
|
300
|
-
var _a, _b, _c, _d;
|
|
303
|
+
__update(id, request, requestOptions) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
301
306
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
302
307
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
303
308
|
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, `agent/${encodeURIComponent(id)}`),
|
|
@@ -307,8 +312,8 @@ class Agent {
|
|
|
307
312
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
308
313
|
requestType: "json",
|
|
309
314
|
body: request,
|
|
310
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
311
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
315
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
316
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
312
317
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
313
318
|
});
|
|
314
319
|
if (_response.ok) {
|
|
@@ -370,15 +375,15 @@ class Agent {
|
|
|
370
375
|
}
|
|
371
376
|
__delete(id, requestOptions) {
|
|
372
377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
-
var _a, _b, _c, _d;
|
|
378
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
374
379
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
375
380
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
376
381
|
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, `agent/${encodeURIComponent(id)}`),
|
|
377
382
|
method: "DELETE",
|
|
378
383
|
headers: _headers,
|
|
379
384
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
380
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
381
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
385
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
386
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
382
387
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
383
388
|
});
|
|
384
389
|
if (_response.ok) {
|
|
@@ -451,7 +456,7 @@ class Agent {
|
|
|
451
456
|
}
|
|
452
457
|
__patch(id, request, requestOptions) {
|
|
453
458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
-
var _a, _b, _c, _d;
|
|
459
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
455
460
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
456
461
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
457
462
|
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, `agent/${encodeURIComponent(id)}`),
|
|
@@ -461,8 +466,8 @@ class Agent {
|
|
|
461
466
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
462
467
|
requestType: "json",
|
|
463
468
|
body: request,
|
|
464
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
465
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
469
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
470
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
466
471
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
467
472
|
});
|
|
468
473
|
if (_response.ok) {
|
|
@@ -527,7 +532,7 @@ class Agent {
|
|
|
527
532
|
}
|
|
528
533
|
__chat(request, requestOptions) {
|
|
529
534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
530
|
-
var _a, _b, _c, _d;
|
|
535
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
531
536
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
532
537
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
533
538
|
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, "agent/chat"),
|
|
@@ -537,8 +542,8 @@ class Agent {
|
|
|
537
542
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
538
543
|
requestType: "json",
|
|
539
544
|
body: request,
|
|
540
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
541
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
545
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
546
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
542
547
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
543
548
|
});
|
|
544
549
|
if (_response.ok) {
|
|
@@ -591,7 +596,10 @@ class Agent {
|
|
|
591
596
|
*
|
|
592
597
|
* @example
|
|
593
598
|
* await client.agent.getChatMessages({
|
|
594
|
-
* chat_session_id: "chat_session_id"
|
|
599
|
+
* chat_session_id: "chat_session_id",
|
|
600
|
+
* num_messages: 1,
|
|
601
|
+
* role: "role",
|
|
602
|
+
* order: "asc"
|
|
595
603
|
* })
|
|
596
604
|
*/
|
|
597
605
|
getChatMessages(request, requestOptions) {
|
|
@@ -599,7 +607,7 @@ class Agent {
|
|
|
599
607
|
}
|
|
600
608
|
__getChatMessages(request, requestOptions) {
|
|
601
609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
-
var _a, _b, _c, _d;
|
|
610
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
603
611
|
const { chat_session_id: chatSessionId, num_messages: numMessages, role, order } = request;
|
|
604
612
|
const _queryParams = {};
|
|
605
613
|
_queryParams["chat_session_id"] = chatSessionId;
|
|
@@ -618,8 +626,8 @@ class Agent {
|
|
|
618
626
|
method: "GET",
|
|
619
627
|
headers: _headers,
|
|
620
628
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
621
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
622
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
629
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
630
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
623
631
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
624
632
|
});
|
|
625
633
|
if (_response.ok) {
|
|
@@ -663,7 +671,11 @@ class Agent {
|
|
|
663
671
|
}
|
|
664
672
|
_getAuthorizationHeader() {
|
|
665
673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
-
|
|
674
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
675
|
+
if (bearer != null) {
|
|
676
|
+
return `Bearer ${bearer}`;
|
|
677
|
+
}
|
|
678
|
+
return undefined;
|
|
667
679
|
});
|
|
668
680
|
}
|
|
669
681
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as phenoml from "../../../../index.js";
|
|
5
1
|
/**
|
|
6
2
|
* @example
|
|
7
3
|
* {
|
|
@@ -18,6 +14,4 @@ export interface AgentChatRequest {
|
|
|
18
14
|
session_id?: string;
|
|
19
15
|
/** The ID of the agent to chat with */
|
|
20
16
|
agent_id: string;
|
|
21
|
-
/** Optional user-specific FHIR configuration overrides */
|
|
22
|
-
meta?: phenoml.agent.ChatFhirClientConfig;
|
|
23
17
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as phenoml from "../../../../index.js";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {
|
|
8
|
-
* chat_session_id: "chat_session_id"
|
|
5
|
+
* chat_session_id: "chat_session_id",
|
|
6
|
+
* num_messages: 1,
|
|
7
|
+
* role: "role",
|
|
8
|
+
* order: "asc"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface AgentGetChatMessagesRequest {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { type AgentCreateRequest } from "./AgentCreateRequest.js";
|
|
2
1
|
export { type AgentListRequest } from "./AgentListRequest.js";
|
|
3
|
-
export { type AgentUpdateRequest } from "./AgentUpdateRequest.js";
|
|
4
2
|
export { type AgentChatRequest } from "./AgentChatRequest.js";
|
|
5
3
|
export { type AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.js";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|