phenoml 14.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/agent/client/Client.js +2 -2
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.ts → GetChatMessagesRequest.d.ts} +3 -3
- package/dist/{esm/api/resources/agent/client/requests/AgentListRequest.d.mts → cjs/api/resources/agent/client/requests/ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.d.ts → DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.js → GetChatMessagesRequestOrder.js} +2 -2
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestRole.js → GetChatMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.d.ts → GetChatMessagesResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/{AgentListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +5 -5
- package/dist/cjs/api/resources/agent/types/index.js +5 -5
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/authtoken/client/Client.js +109 -4
- package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/client/index.js +15 -0
- package/dist/cjs/api/resources/authtoken/exports.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/exports.js +0 -1
- package/dist/cjs/api/resources/authtoken/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/index.js +0 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +35 -35
- package/dist/cjs/api/resources/construe/client/Client.js +43 -43
- package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.d.ts → DeleteCodeSystemRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.mts → cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.mts → cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.ts → GetCodeSystemRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.ts → ListCodesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.ts → SearchSemanticRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.mts → cjs/api/resources/construe/client/requests/SearchTextRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +7 -7
- package/dist/{esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts → cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/construe/types/index.js +1 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/fhir/client/Client.js +6 -6
- package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.d.ts → CreateRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts → cjs/api/resources/fhir/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.ts → ExecuteBundleRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.d.ts → PatchRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.d.ts → SearchRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.d.ts → UpsertRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.ts → PatchRequestBodyItem.d.ts} +3 -3
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.js → PatchRequestBodyItem.js} +5 -5
- package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/types/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/types/index.js +2 -2
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +1 -4
- package/dist/{esm/api/resources/agent/types/AgentDeleteResponse.d.mts → cjs/api/resources/fhirProvider/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.ts → RemoveAuthConfigResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.js +2 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +4 -4
- package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.ts → UploadProfileResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
- package/dist/cjs/api/resources/summary/client/Client.d.ts +3 -88
- package/dist/cjs/api/resources/summary/client/Client.js +4 -309
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/summary/exports.d.ts +1 -0
- package/dist/cjs/api/resources/summary/exports.js +1 -0
- package/dist/cjs/api/resources/summary/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/index.js +1 -0
- package/dist/cjs/api/resources/summary/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{authtoken → summary}/resources/index.js +4 -3
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +101 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +366 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.js +2 -2
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.ts +1 -0
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.js +1 -0
- package/dist/cjs/api/resources/{workflows/types/WorkflowsDeleteResponse.d.ts → summary/resources/templates/types/TemplatesDeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.d.ts → resources/templates/types/TemplatesGetResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.d.ts → resources/templates/types/TemplatesListResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.ts → resources/templates/types/TemplatesUpdateResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +20 -0
- package/dist/cjs/api/resources/summary/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/index.js +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +0 -21
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +0 -68
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +0 -15
- 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 +7 -6
- package/dist/cjs/api/resources/workflows/client/Client.js +8 -14
- package/dist/{esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts → cjs/api/resources/workflows/client/requests/GetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/{WorkflowsGetRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +54 -0
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/errors/index.js +1 -0
- package/dist/{esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts → cjs/api/resources/workflows/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/index.js +3 -3
- package/dist/cjs/auth/OAuthAuthProvider.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/agent/client/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.mts → GetChatMessagesRequest.d.mts} +3 -3
- package/dist/{cjs/api/resources/agent/client/requests/AgentListRequest.d.ts → esm/api/resources/agent/client/requests/ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/agent/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.mjs → GetChatMessagesRequestOrder.mjs} +1 -1
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestRole.mjs → GetChatMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.d.mts → GetChatMessagesResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/{AgentListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/index.d.mts +5 -5
- package/dist/esm/api/resources/agent/types/index.mjs +5 -5
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/authtoken/client/Client.mjs +76 -4
- package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/client/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/exports.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/exports.mjs +0 -1
- package/dist/esm/api/resources/authtoken/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/index.mjs +0 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +35 -35
- package/dist/esm/api/resources/construe/client/Client.mjs +43 -43
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.d.mts → DeleteCodeSystemRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts → esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.ts → esm/api/resources/construe/client/requests/GetCodeRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.mts → GetCodeSystemRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.mts → ListCodesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.mts → SearchSemanticRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.ts → esm/api/resources/construe/client/requests/SearchTextRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +7 -7
- package/dist/{cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts → esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts} +1 -1
- package/dist/esm/api/resources/construe/types/index.d.mts +1 -1
- package/dist/esm/api/resources/construe/types/index.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/fhir/client/Client.mjs +6 -6
- package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.d.mts → CreateRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts → esm/api/resources/fhir/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.mts → ExecuteBundleRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts} +2 -2
- package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.d.mts → SearchRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.d.mts → UpsertRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.mts → PatchRequestBodyItem.d.mts} +3 -3
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.mjs → PatchRequestBodyItem.mjs} +4 -4
- package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +2 -0
- package/dist/esm/api/resources/fhir/types/index.d.mts +2 -2
- package/dist/esm/api/resources/fhir/types/index.mjs +2 -2
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +1 -4
- package/dist/esm/api/resources/fhirProvider/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.mts → RemoveAuthConfigResponse.d.mts} +1 -1
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +2 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +4 -4
- package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.mts → UploadProfileResponse.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
- package/dist/esm/api/resources/summary/client/Client.d.mts +3 -88
- package/dist/esm/api/resources/summary/client/Client.mjs +4 -309
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/summary/exports.d.mts +1 -0
- package/dist/esm/api/resources/summary/exports.mjs +1 -0
- package/dist/esm/api/resources/summary/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/summary/resources/index.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +101 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +329 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.d.mts +2 -0
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.mjs +1 -1
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.mts +1 -0
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.d.mts → resources/templates/types/TemplatesListResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.mts → resources/templates/types/TemplatesUpdateResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -0
- package/dist/esm/api/resources/summary/types/index.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/index.mjs +0 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +0 -21
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +0 -68
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -1
- 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 +7 -6
- package/dist/esm/api/resources/workflows/client/Client.mjs +8 -14
- package/dist/{cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts → esm/api/resources/workflows/client/requests/GetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/{WorkflowsListRequest.d.mts → ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +17 -0
- package/dist/esm/api/resources/workflows/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/errors/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/workflows/types/{WorkflowsGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/{WorkflowsUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/index.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/index.mjs +3 -3
- package/dist/esm/auth/OAuthAuthProvider.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +11397 -0
- package/package.json +14 -12
- package/reference.md +140 -214
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -121
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +0 -2
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -10
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +0 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -84
- package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -2
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +0 -5
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -12
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -10
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- /package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.js → GetChatMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/agent/client/requests/{AgentListRequest.js → ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.js → GetChatMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentListResponse.js → ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.js +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.js +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.js → DeleteCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.js → ExportCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.js → GetCodeRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.js → GetCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.js → ListCodesRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.js → SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.js → SearchTextRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.js → UploadCodeSystemResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.js → CreateRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.js → DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.js → ExecuteBundleRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.js → PatchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.js → SearchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.js → UpsertRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/types/{FhirSearchResponse.js → SearchResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.js → RemoveAuthConfigResponse.js} +0 -0
- /package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.js → UploadProfileResponse.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryDeleteTemplateResponse.js → resources/templates/types/TemplatesDeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.js → resources/templates/types/TemplatesGetResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.js → resources/templates/types/TemplatesListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.js → resources/templates/types/TemplatesUpdateResponse.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js → workflows/client/requests/GetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/types/McpServerToolCallResponse.js → workflows/client/requests/ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsGetRequest.js → types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsListRequest.js → types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/types/{WorkflowsDeleteResponse.js → UpdateResponse.js} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.mjs → GetChatMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentListRequest.mjs → ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.mjs → GetChatMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentListResponse.mjs → ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.mjs +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.mjs → DeleteCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.mjs → ExportCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.mjs → GetCodeRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.mjs → GetCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.mjs → ListCodesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.mjs → SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.mjs → SearchTextRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.mjs → UploadCodeSystemResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.mjs → CreateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirDeleteRequest.mjs → DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.mjs → ExecuteBundleRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.mjs → PatchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.mjs → SearchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.mjs → UpsertRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/types/{FhirSearchResponse.mjs → SearchResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.mjs → RemoveAuthConfigResponse.mjs} +0 -0
- /package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.mjs → UploadProfileResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryDeleteTemplateResponse.mjs → resources/templates/types/TemplatesDeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryGetTemplateResponse.mjs → resources/templates/types/TemplatesGetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.mjs → resources/templates/types/TemplatesListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.mjs → resources/templates/types/TemplatesUpdateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs → workflows/client/requests/GetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/McpServerToolCallResponse.mjs → workflows/client/requests/ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsGetRequest.mjs → types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsListRequest.mjs → types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/types/{WorkflowsDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phenoml",
|
|
46
|
-
"X-Fern-SDK-Version": "
|
|
47
|
-
"User-Agent": "phenoml/
|
|
46
|
+
"X-Fern-SDK-Version": "16.0.0",
|
|
47
|
+
"User-Agent": "phenoml/16.0.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -38,7 +38,7 @@ export declare class AgentClient {
|
|
|
38
38
|
/**
|
|
39
39
|
* Retrieves a list of PhenoAgents belonging to the authenticated user
|
|
40
40
|
*
|
|
41
|
-
* @param {phenoml.agent.
|
|
41
|
+
* @param {phenoml.agent.ListRequest} request
|
|
42
42
|
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
@@ -50,7 +50,7 @@ export declare class AgentClient {
|
|
|
50
50
|
* tags: "tags"
|
|
51
51
|
* })
|
|
52
52
|
*/
|
|
53
|
-
list(request?: phenoml.agent.
|
|
53
|
+
list(request?: phenoml.agent.ListRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.ListResponse>;
|
|
54
54
|
private __list;
|
|
55
55
|
/**
|
|
56
56
|
* Retrieves a specific agent by its ID
|
|
@@ -106,7 +106,7 @@ export declare class AgentClient {
|
|
|
106
106
|
* @example
|
|
107
107
|
* await client.agent.delete("id")
|
|
108
108
|
*/
|
|
109
|
-
delete(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.
|
|
109
|
+
delete(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.DeleteResponse>;
|
|
110
110
|
private __delete;
|
|
111
111
|
/**
|
|
112
112
|
* Patches an existing agent's configuration
|
|
@@ -176,7 +176,7 @@ export declare class AgentClient {
|
|
|
176
176
|
/**
|
|
177
177
|
* Retrieves a list of chat messages for a given chat session
|
|
178
178
|
*
|
|
179
|
-
* @param {phenoml.agent.
|
|
179
|
+
* @param {phenoml.agent.GetChatMessagesRequest} request
|
|
180
180
|
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
181
|
*
|
|
182
182
|
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
@@ -191,6 +191,6 @@ export declare class AgentClient {
|
|
|
191
191
|
* order: "asc"
|
|
192
192
|
* })
|
|
193
193
|
*/
|
|
194
|
-
getChatMessages(request: phenoml.agent.
|
|
194
|
+
getChatMessages(request: phenoml.agent.GetChatMessagesRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.GetChatMessagesResponse>;
|
|
195
195
|
private __getChatMessages;
|
|
196
196
|
}
|
|
@@ -140,7 +140,7 @@ class AgentClient {
|
|
|
140
140
|
/**
|
|
141
141
|
* Retrieves a list of PhenoAgents belonging to the authenticated user
|
|
142
142
|
*
|
|
143
|
-
* @param {phenoml.agent.
|
|
143
|
+
* @param {phenoml.agent.ListRequest} request
|
|
144
144
|
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
145
|
*
|
|
146
146
|
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
@@ -606,7 +606,7 @@ class AgentClient {
|
|
|
606
606
|
/**
|
|
607
607
|
* Retrieves a list of chat messages for a given chat session
|
|
608
608
|
*
|
|
609
|
-
* @param {phenoml.agent.
|
|
609
|
+
* @param {phenoml.agent.GetChatMessagesRequest} request
|
|
610
610
|
* @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
611
611
|
*
|
|
612
612
|
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
@@ -37,6 +37,6 @@ export interface AgentChatRequest {
|
|
|
37
37
|
session_id?: string;
|
|
38
38
|
/** The ID of the agent to chat with */
|
|
39
39
|
agent_id: string;
|
|
40
|
-
/** Enable enhanced reasoning capabilities
|
|
40
|
+
/** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
|
|
41
41
|
enhanced_reasoning?: boolean;
|
|
42
42
|
}
|
|
@@ -27,6 +27,6 @@ export interface AgentStreamChatRequest {
|
|
|
27
27
|
session_id?: string;
|
|
28
28
|
/** The ID of the agent to chat with */
|
|
29
29
|
agent_id: string;
|
|
30
|
-
/** Enable enhanced reasoning capabilities
|
|
30
|
+
/** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
|
|
31
31
|
enhanced_reasoning?: boolean;
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@ import type * as phenoml from "../../../../index.js";
|
|
|
8
8
|
* order: "asc"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface GetChatMessagesRequest {
|
|
12
12
|
/** Chat session ID */
|
|
13
13
|
chat_session_id: string;
|
|
14
14
|
/** Number of messages to return */
|
|
@@ -23,7 +23,7 @@ export interface AgentGetChatMessagesRequest {
|
|
|
23
23
|
* - `model` - Function/tool call requests from the model
|
|
24
24
|
* - `function` - Function/tool call results
|
|
25
25
|
*/
|
|
26
|
-
role?: phenoml.agent.
|
|
26
|
+
role?: phenoml.agent.GetChatMessagesRequestRole;
|
|
27
27
|
/** Order of messages */
|
|
28
|
-
order?: phenoml.agent.
|
|
28
|
+
order?: phenoml.agent.GetChatMessagesRequestOrder;
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { AgentChatRequest } from "./AgentChatRequest.js";
|
|
2
|
-
export type { AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.js";
|
|
3
|
-
export type { AgentListRequest } from "./AgentListRequest.js";
|
|
4
2
|
export type { AgentStreamChatRequest } from "./AgentStreamChatRequest.js";
|
|
3
|
+
export type { GetChatMessagesRequest } from "./GetChatMessagesRequest.js";
|
|
4
|
+
export type { ListRequest } from "./ListRequest.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
4
|
+
exports.GetChatMessagesRequestOrder = void 0;
|
|
5
|
+
exports.GetChatMessagesRequestOrder = {
|
|
6
6
|
Asc: "asc",
|
|
7
7
|
Desc: "desc",
|
|
8
8
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GetChatMessagesRequestRole: {
|
|
2
|
+
readonly User: "user";
|
|
3
|
+
readonly Assistant: "assistant";
|
|
4
|
+
readonly Model: "model";
|
|
5
|
+
readonly Function: "function";
|
|
6
|
+
};
|
|
7
|
+
export type GetChatMessagesRequestRole = (typeof GetChatMessagesRequestRole)[keyof typeof GetChatMessagesRequestRole];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
4
|
+
exports.GetChatMessagesRequestRole = void 0;
|
|
5
|
+
exports.GetChatMessagesRequestRole = {
|
|
6
6
|
User: "user",
|
|
7
7
|
Assistant: "assistant",
|
|
8
8
|
Model: "model",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.js";
|
|
2
|
-
export interface
|
|
2
|
+
export interface GetChatMessagesResponse {
|
|
3
3
|
messages?: phenoml.agent.ChatMessageTemplate[] | undefined;
|
|
4
4
|
total?: number | undefined;
|
|
5
5
|
session_id?: string | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export * from "./AgentChatResponse.js";
|
|
2
2
|
export * from "./AgentChatStreamEvent.js";
|
|
3
3
|
export * from "./AgentCreateRequest.js";
|
|
4
|
-
export * from "./AgentDeleteResponse.js";
|
|
5
|
-
export * from "./AgentGetChatMessagesRequestOrder.js";
|
|
6
|
-
export * from "./AgentGetChatMessagesRequestRole.js";
|
|
7
|
-
export * from "./AgentGetChatMessagesResponse.js";
|
|
8
|
-
export * from "./AgentListResponse.js";
|
|
9
4
|
export * from "./AgentPromptsResponse.js";
|
|
10
5
|
export * from "./AgentResponse.js";
|
|
11
6
|
export * from "./AgentTemplate.js";
|
|
12
7
|
export * from "./ChatMessageTemplate.js";
|
|
13
8
|
export * from "./ChatSessionTemplate.js";
|
|
9
|
+
export * from "./DeleteResponse.js";
|
|
10
|
+
export * from "./GetChatMessagesRequestOrder.js";
|
|
11
|
+
export * from "./GetChatMessagesRequestRole.js";
|
|
12
|
+
export * from "./GetChatMessagesResponse.js";
|
|
14
13
|
export * from "./JsonPatch.js";
|
|
15
14
|
export * from "./JsonPatchOperation.js";
|
|
15
|
+
export * from "./ListResponse.js";
|
|
16
16
|
export * from "./PromptTemplate.js";
|
|
17
17
|
export * from "./SuccessResponse.js";
|
|
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AgentChatResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./AgentChatStreamEvent.js"), exports);
|
|
19
19
|
__exportStar(require("./AgentCreateRequest.js"), exports);
|
|
20
|
-
__exportStar(require("./AgentDeleteResponse.js"), exports);
|
|
21
|
-
__exportStar(require("./AgentGetChatMessagesRequestOrder.js"), exports);
|
|
22
|
-
__exportStar(require("./AgentGetChatMessagesRequestRole.js"), exports);
|
|
23
|
-
__exportStar(require("./AgentGetChatMessagesResponse.js"), exports);
|
|
24
|
-
__exportStar(require("./AgentListResponse.js"), exports);
|
|
25
20
|
__exportStar(require("./AgentPromptsResponse.js"), exports);
|
|
26
21
|
__exportStar(require("./AgentResponse.js"), exports);
|
|
27
22
|
__exportStar(require("./AgentTemplate.js"), exports);
|
|
28
23
|
__exportStar(require("./ChatMessageTemplate.js"), exports);
|
|
29
24
|
__exportStar(require("./ChatSessionTemplate.js"), exports);
|
|
25
|
+
__exportStar(require("./DeleteResponse.js"), exports);
|
|
26
|
+
__exportStar(require("./GetChatMessagesRequestOrder.js"), exports);
|
|
27
|
+
__exportStar(require("./GetChatMessagesRequestRole.js"), exports);
|
|
28
|
+
__exportStar(require("./GetChatMessagesResponse.js"), exports);
|
|
30
29
|
__exportStar(require("./JsonPatch.js"), exports);
|
|
31
30
|
__exportStar(require("./JsonPatchOperation.js"), exports);
|
|
31
|
+
__exportStar(require("./ListResponse.js"), exports);
|
|
32
32
|
__exportStar(require("./PromptTemplate.js"), exports);
|
|
33
33
|
__exportStar(require("./SuccessResponse.js"), exports);
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as phenoml from "../../../index.js";
|
|
4
5
|
export declare namespace AuthtokenClient {
|
|
5
6
|
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
6
9
|
}
|
|
7
10
|
export declare class AuthtokenClient {
|
|
8
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AuthtokenClient.Options>;
|
|
9
|
-
protected _auth: AuthClient | undefined;
|
|
10
12
|
constructor(options?: AuthtokenClient.Options);
|
|
11
|
-
|
|
13
|
+
/**
|
|
14
|
+
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
|
|
15
|
+
* Accepts client_id and client_secret in the request body (JSON or
|
|
16
|
+
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
|
|
17
|
+
* returns an access token with expiration information.
|
|
18
|
+
*
|
|
19
|
+
* @param {phenoml.authtoken.ClientCredentialsRequest} request
|
|
20
|
+
* @param {AuthtokenClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link phenoml.authtoken.BadRequestError}
|
|
23
|
+
* @throws {@link phenoml.authtoken.UnauthorizedError}
|
|
24
|
+
* @throws {@link phenoml.authtoken.InternalServerError}
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* await client.authtoken.getToken({
|
|
28
|
+
* client_id: "your_client_id",
|
|
29
|
+
* client_secret: "your_client_secret"
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
getToken(request?: phenoml.authtoken.ClientCredentialsRequest, requestOptions?: AuthtokenClient.RequestOptions): core.HttpResponsePromise<phenoml.authtoken.TokenResponse>;
|
|
33
|
+
private __getToken;
|
|
12
34
|
}
|
|
@@ -1,16 +1,121 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
3
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
46
|
exports.AuthtokenClient = void 0;
|
|
5
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
6
|
-
const
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const phenoml = __importStar(require("../../../index.js"));
|
|
7
54
|
class AuthtokenClient {
|
|
8
55
|
constructor(options = {}) {
|
|
9
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
10
57
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
58
|
+
/**
|
|
59
|
+
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
|
|
60
|
+
* Accepts client_id and client_secret in the request body (JSON or
|
|
61
|
+
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
|
|
62
|
+
* returns an access token with expiration information.
|
|
63
|
+
*
|
|
64
|
+
* @param {phenoml.authtoken.ClientCredentialsRequest} request
|
|
65
|
+
* @param {AuthtokenClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link phenoml.authtoken.BadRequestError}
|
|
68
|
+
* @throws {@link phenoml.authtoken.UnauthorizedError}
|
|
69
|
+
* @throws {@link phenoml.authtoken.InternalServerError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.authtoken.getToken({
|
|
73
|
+
* client_id: "your_client_id",
|
|
74
|
+
* client_secret: "your_client_secret"
|
|
75
|
+
* })
|
|
76
|
+
*/
|
|
77
|
+
getToken(request = {}, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__getToken(request, requestOptions));
|
|
79
|
+
}
|
|
80
|
+
__getToken() {
|
|
81
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
85
|
+
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, "v2/auth/token"),
|
|
86
|
+
method: "POST",
|
|
87
|
+
headers: _headers,
|
|
88
|
+
contentType: "application/json",
|
|
89
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
90
|
+
requestType: "json",
|
|
91
|
+
body: request,
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
96
|
+
logging: this._options.logging,
|
|
97
|
+
});
|
|
98
|
+
if (_response.ok) {
|
|
99
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
100
|
+
}
|
|
101
|
+
if (_response.error.reason === "status-code") {
|
|
102
|
+
switch (_response.error.statusCode) {
|
|
103
|
+
case 400:
|
|
104
|
+
throw new phenoml.authtoken.BadRequestError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 401:
|
|
106
|
+
throw new phenoml.authtoken.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 500:
|
|
108
|
+
throw new phenoml.authtoken.InternalServerError(_response.error.body, _response.rawResponse);
|
|
109
|
+
default:
|
|
110
|
+
throw new errors.phenomlError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/auth/token");
|
|
118
|
+
});
|
|
14
119
|
}
|
|
15
120
|
}
|
|
16
121
|
exports.AuthtokenClient = AuthtokenClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -19,4 +19,3 @@ exports.AuthtokenClient = void 0;
|
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
20
|
Object.defineProperty(exports, "AuthtokenClient", { enumerable: true, get: function () { return Client_js_1.AuthtokenClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
22
|
-
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
18
|
__exportStar(require("./errors/index.js"), exports);
|
|
19
|
-
__exportStar(require("./resources/index.js"), exports);
|
|
20
19
|
__exportStar(require("./types/index.js"), exports);
|