@corti/sdk 1.0.0-alpha → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -44
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/agents/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/agents/client/Client.js +42 -0
- package/dist/cjs/api/resources/codes/client/Client.d.ts +15 -3
- package/dist/cjs/api/resources/codes/client/Client.js +16 -10
- package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +16 -4
- package/dist/cjs/api/resources/documents/client/Client.js +5 -35
- package/dist/cjs/api/resources/interactions/client/Client.js +5 -35
- package/dist/cjs/api/resources/recordings/client/Client.js +4 -28
- package/dist/cjs/api/resources/stream/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/stream/client/Client.js +4 -2
- package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/transcribe/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/transcribe/client/Client.js +4 -2
- package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +4 -28
- package/dist/cjs/api/types/AgentsErrorResponse.d.ts +12 -0
- package/dist/cjs/api/types/AgentsErrorResponse.js +3 -0
- package/dist/cjs/api/types/AgentsValidationError.d.ts +8 -0
- package/dist/cjs/api/types/AgentsValidationError.js +3 -0
- package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.d.ts +4 -0
- package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.js +3 -0
- package/dist/cjs/api/types/AgentsValidationErrorResponse.d.ts +4 -0
- package/dist/cjs/api/types/AgentsValidationErrorResponse.js +3 -0
- package/dist/cjs/api/types/CodesFilter.d.ts +11 -0
- package/dist/cjs/api/types/CodesFilter.js +3 -0
- package/dist/cjs/api/types/CodesGeneralReadResponse.d.ts +2 -0
- package/dist/cjs/api/types/CodesGeneralReadResponseAlternativesItem.d.ts +9 -0
- package/dist/cjs/api/types/CodesGeneralReadResponseAlternativesItem.js +3 -0
- package/dist/cjs/api/types/CodesGeneralReadResponseEvidencesItem.d.ts +6 -2
- package/dist/cjs/api/types/CodesGeneralResponse.d.ts +2 -2
- package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +2 -1
- package/dist/cjs/api/types/CommonCodingSystemEnum.js +2 -1
- package/dist/cjs/api/types/StreamConfigMessage.d.ts +1 -1
- package/dist/cjs/api/types/StreamEndMessage.d.ts +1 -2
- package/dist/cjs/api/types/StreamEndedMessage.d.ts +1 -2
- package/dist/cjs/api/types/StreamErrorMessage.d.ts +1 -1
- package/dist/cjs/api/types/StreamFactsMessage.d.ts +1 -1
- package/dist/cjs/api/types/StreamFlushMessage.d.ts +1 -2
- package/dist/cjs/api/types/StreamFlushedMessage.d.ts +1 -2
- package/dist/cjs/api/types/StreamTranscriptMessage.d.ts +1 -1
- package/dist/cjs/api/types/StreamUsageMessage.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeCommandMessage.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeCommandVariable.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeConfigMessage.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeEndMessage.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeEndedMessage.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeErrorMessage.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeFlushMessage.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeFlushedMessage.d.ts +1 -2
- package/dist/cjs/api/types/TranscribeFormattingDates.d.ts +4 -4
- package/dist/cjs/api/types/TranscribeFormattingDates.js +4 -4
- package/dist/cjs/api/types/TranscribeFormattingNumbers.d.ts +2 -2
- package/dist/cjs/api/types/TranscribeFormattingNumbers.js +2 -2
- package/dist/cjs/api/types/TranscribeFormattingNumericRanges.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeFormattingNumericRanges.js +1 -1
- package/dist/cjs/api/types/TranscribeFormattingOrdinals.d.ts +1 -0
- package/dist/cjs/api/types/TranscribeFormattingOrdinals.js +1 -0
- package/dist/cjs/api/types/TranscribeFormattingTimes.d.ts +3 -2
- package/dist/cjs/api/types/TranscribeFormattingTimes.js +3 -2
- package/dist/cjs/api/types/TranscribeTranscriptMessage.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeUsageMessage.d.ts +1 -2
- package/dist/cjs/api/types/index.d.ts +6 -19
- package/dist/cjs/api/types/index.js +6 -19
- package/dist/cjs/auth/OAuthAuthProvider.d.ts +1 -99
- package/dist/cjs/auth/OAuthAuthProvider.js +4 -276
- package/dist/cjs/core/fetcher/index.d.ts +2 -11
- package/dist/cjs/core/fetcher/index.js +16 -15
- package/dist/cjs/custom/CortiClient.d.ts +15 -4
- package/dist/cjs/custom/CortiClient.js +8 -5
- package/dist/cjs/custom/CortiWebSocketProxyClient.d.ts +10 -40
- package/dist/cjs/custom/CortiWebSocketProxyClient.js +12 -74
- package/dist/cjs/custom/OAuthAuthProvider.d.ts +99 -0
- package/dist/cjs/custom/OAuthAuthProvider.js +290 -0
- package/dist/cjs/custom/auth/CortiAuth.d.ts +129 -0
- package/dist/cjs/custom/auth/CortiAuth.js +195 -0
- package/dist/cjs/custom/auth/OAuthAuthCodeAuthProvider.d.ts +23 -0
- package/dist/cjs/custom/auth/OAuthAuthCodeAuthProvider.js +164 -0
- package/dist/cjs/custom/auth/OAuthPkceAuthProvider.d.ts +23 -0
- package/dist/cjs/custom/auth/OAuthPkceAuthProvider.js +164 -0
- package/dist/cjs/custom/auth/OAuthRopcAuthProvider.d.ts +22 -0
- package/dist/cjs/custom/auth/OAuthRopcAuthProvider.js +137 -0
- package/dist/cjs/custom/fetcher.d.ts +3 -0
- package/dist/cjs/custom/fetcher.js +8 -0
- package/dist/cjs/custom/index.d.ts +10 -0
- package/dist/cjs/custom/index.js +55 -1
- package/dist/cjs/custom/overrides/OAuthAuthProvider.d.ts +99 -0
- package/dist/cjs/custom/overrides/OAuthAuthProvider.js +289 -0
- package/dist/cjs/custom/overrides/fetcher/index.d.ts +12 -0
- package/dist/cjs/custom/overrides/fetcher/index.js +18 -0
- package/dist/cjs/custom/overrides/index.d.ts +14 -0
- package/dist/cjs/custom/overrides/index.js +61 -0
- package/dist/cjs/custom/proxy/CustomProxyStream.d.ts +17 -0
- package/dist/cjs/custom/proxy/CustomProxyStream.js +18 -0
- package/dist/cjs/custom/proxy/CustomProxyTranscribe.d.ts +17 -0
- package/dist/cjs/custom/proxy/CustomProxyTranscribe.js +21 -0
- package/dist/cjs/custom/stream/CustomStream.d.ts +39 -0
- package/dist/cjs/custom/stream/CustomStream.js +183 -0
- package/dist/cjs/custom/stream/CustomStreamSocket.d.ts +7 -0
- package/dist/cjs/custom/stream/CustomStreamSocket.js +17 -0
- package/dist/cjs/custom/stream/parseStreamResponseType.d.ts +2 -0
- package/dist/cjs/custom/stream/parseStreamResponseType.js +49 -0
- package/dist/cjs/custom/transcribe/CustomTranscribe.d.ts +38 -0
- package/dist/cjs/custom/transcribe/CustomTranscribe.js +181 -0
- package/dist/cjs/custom/transcribe/CustomTranscribeSocket.d.ts +7 -0
- package/dist/cjs/custom/transcribe/CustomTranscribeSocket.js +17 -0
- package/dist/cjs/custom/transcribe/parseTranscribeResponseType.d.ts +2 -0
- package/dist/cjs/custom/transcribe/parseTranscribeResponseType.js +49 -0
- package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.d.ts +30 -0
- package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.js +102 -0
- package/dist/cjs/custom/utils/index.d.ts +3 -0
- package/dist/cjs/custom/utils/index.js +10 -0
- package/dist/cjs/custom/utils/localStorageHelpers.js +11 -9
- package/dist/cjs/custom/utils/withCredentialsConfig.d.ts +2 -0
- package/dist/cjs/custom/utils/withCredentialsConfig.js +15 -0
- package/dist/cjs/index.d.ts +1 -16
- package/dist/cjs/index.js +1 -47
- package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +2 -1
- package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.js +2 -1
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +2 -2
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +1 -1
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +2 -2
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +1 -1
- package/dist/cjs/serialization/types/AgentsErrorResponse.d.ts +13 -0
- package/dist/cjs/serialization/types/AgentsErrorResponse.js +46 -0
- package/dist/cjs/serialization/types/AgentsValidationError.d.ts +14 -0
- package/dist/cjs/serialization/types/AgentsValidationError.js +46 -0
- package/dist/cjs/serialization/types/AgentsValidationErrorErrorsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/AgentsValidationErrorErrorsItem.js +42 -0
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.js +45 -0
- package/dist/cjs/serialization/types/CodesFilter.d.ts +11 -0
- package/dist/cjs/serialization/types/CodesFilter.js +43 -0
- package/dist/cjs/serialization/types/CodesGeneralReadResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/CodesGeneralReadResponse.js +2 -0
- package/dist/cjs/serialization/types/CodesGeneralReadResponseAlternativesItem.d.ts +10 -0
- package/dist/cjs/serialization/types/CodesGeneralReadResponseAlternativesItem.js +42 -0
- package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.d.ts +4 -2
- package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.js +4 -2
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +1 -1
- package/dist/cjs/serialization/types/StreamConfigMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamConfigMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamEndMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamEndMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamEndedMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamEndedMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamErrorMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamErrorMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamFactsMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamFactsMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamFlushMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamFlushMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamFlushedMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamFlushedMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamTranscriptMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamTranscriptMessage.js +1 -2
- package/dist/cjs/serialization/types/StreamUsageMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/StreamUsageMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeCommandMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeCommandMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariable.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariable.js +1 -2
- package/dist/cjs/serialization/types/TranscribeConfigMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeConfigMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeEndMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeEndMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeEndedMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeEndedMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeErrorMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeErrorMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeFlushMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeFlushMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeFlushedMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeFlushedMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeFormattingDates.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingDates.js +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingNumbers.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingNumbers.js +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingNumericRanges.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingNumericRanges.js +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingOrdinals.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingOrdinals.js +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingTimes.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeFormattingTimes.js +1 -1
- package/dist/cjs/serialization/types/TranscribeTranscriptMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeTranscriptMessage.js +1 -2
- package/dist/cjs/serialization/types/TranscribeUsageMessage.d.ts +1 -2
- package/dist/cjs/serialization/types/TranscribeUsageMessage.js +1 -2
- package/dist/cjs/serialization/types/index.d.ts +6 -19
- package/dist/cjs/serialization/types/index.js +6 -19
- 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/errors/ForbiddenError.d.mts +1 -2
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agents/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +42 -0
- package/dist/esm/api/resources/codes/client/Client.d.mts +15 -3
- package/dist/esm/api/resources/codes/client/Client.mjs +16 -10
- package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +16 -4
- package/dist/esm/api/resources/documents/client/Client.mjs +5 -35
- package/dist/esm/api/resources/interactions/client/Client.mjs +5 -35
- package/dist/esm/api/resources/recordings/client/Client.mjs +4 -28
- package/dist/esm/api/resources/stream/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/stream/client/Client.mjs +5 -3
- package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/transcribe/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/transcribe/client/Client.mjs +5 -3
- package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +4 -28
- package/dist/esm/api/types/AgentsErrorResponse.d.mts +12 -0
- package/dist/esm/api/types/AgentsErrorResponse.mjs +2 -0
- package/dist/esm/api/types/AgentsValidationError.d.mts +8 -0
- package/dist/esm/api/types/AgentsValidationError.mjs +2 -0
- package/dist/esm/api/types/AgentsValidationErrorErrorsItem.d.mts +4 -0
- package/dist/esm/api/types/AgentsValidationErrorErrorsItem.mjs +2 -0
- package/dist/esm/api/types/AgentsValidationErrorResponse.d.mts +4 -0
- package/dist/esm/api/types/AgentsValidationErrorResponse.mjs +2 -0
- package/dist/esm/api/types/CodesFilter.d.mts +11 -0
- package/dist/esm/api/types/CodesFilter.mjs +2 -0
- package/dist/esm/api/types/CodesGeneralReadResponse.d.mts +2 -0
- package/dist/esm/api/types/CodesGeneralReadResponseAlternativesItem.d.mts +9 -0
- package/dist/esm/api/types/CodesGeneralReadResponseAlternativesItem.mjs +2 -0
- package/dist/esm/api/types/CodesGeneralReadResponseEvidencesItem.d.mts +6 -2
- package/dist/esm/api/types/CodesGeneralResponse.d.mts +2 -2
- package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +2 -1
- package/dist/esm/api/types/CommonCodingSystemEnum.mjs +2 -1
- package/dist/esm/api/types/StreamConfigMessage.d.mts +1 -1
- package/dist/esm/api/types/StreamEndMessage.d.mts +1 -2
- package/dist/esm/api/types/StreamEndedMessage.d.mts +1 -2
- package/dist/esm/api/types/StreamErrorMessage.d.mts +1 -1
- package/dist/esm/api/types/StreamFactsMessage.d.mts +1 -1
- package/dist/esm/api/types/StreamFlushMessage.d.mts +1 -2
- package/dist/esm/api/types/StreamFlushedMessage.d.mts +1 -2
- package/dist/esm/api/types/StreamTranscriptMessage.d.mts +1 -1
- package/dist/esm/api/types/StreamUsageMessage.d.mts +1 -2
- package/dist/esm/api/types/TranscribeCommandMessage.d.mts +1 -1
- package/dist/esm/api/types/TranscribeCommandVariable.d.mts +1 -2
- package/dist/esm/api/types/TranscribeConfigMessage.d.mts +1 -1
- package/dist/esm/api/types/TranscribeEndMessage.d.mts +1 -2
- package/dist/esm/api/types/TranscribeEndedMessage.d.mts +1 -2
- package/dist/esm/api/types/TranscribeErrorMessage.d.mts +1 -1
- package/dist/esm/api/types/TranscribeFlushMessage.d.mts +1 -2
- package/dist/esm/api/types/TranscribeFlushedMessage.d.mts +1 -2
- package/dist/esm/api/types/TranscribeFormattingDates.d.mts +4 -4
- package/dist/esm/api/types/TranscribeFormattingDates.mjs +4 -4
- package/dist/esm/api/types/TranscribeFormattingNumbers.d.mts +2 -2
- package/dist/esm/api/types/TranscribeFormattingNumbers.mjs +2 -2
- package/dist/esm/api/types/TranscribeFormattingNumericRanges.d.mts +1 -1
- package/dist/esm/api/types/TranscribeFormattingNumericRanges.mjs +1 -1
- package/dist/esm/api/types/TranscribeFormattingOrdinals.d.mts +1 -0
- package/dist/esm/api/types/TranscribeFormattingOrdinals.mjs +1 -0
- package/dist/esm/api/types/TranscribeFormattingTimes.d.mts +3 -2
- package/dist/esm/api/types/TranscribeFormattingTimes.mjs +3 -2
- package/dist/esm/api/types/TranscribeTranscriptMessage.d.mts +1 -1
- package/dist/esm/api/types/TranscribeUsageMessage.d.mts +1 -2
- package/dist/esm/api/types/index.d.mts +6 -19
- package/dist/esm/api/types/index.mjs +6 -19
- package/dist/esm/auth/OAuthAuthProvider.d.mts +1 -99
- package/dist/esm/auth/OAuthAuthProvider.mjs +2 -239
- package/dist/esm/core/fetcher/index.d.mts +2 -11
- package/dist/esm/core/fetcher/index.mjs +2 -6
- package/dist/esm/custom/CortiClient.d.mts +15 -4
- package/dist/esm/custom/CortiClient.mjs +8 -5
- package/dist/esm/custom/CortiWebSocketProxyClient.d.mts +10 -40
- package/dist/esm/custom/CortiWebSocketProxyClient.mjs +10 -39
- package/dist/esm/custom/OAuthAuthProvider.d.mts +99 -0
- package/dist/esm/custom/OAuthAuthProvider.mjs +239 -0
- package/dist/esm/custom/auth/CortiAuth.d.mts +129 -0
- package/dist/esm/custom/auth/CortiAuth.mjs +158 -0
- package/dist/esm/custom/auth/OAuthAuthCodeAuthProvider.d.mts +23 -0
- package/dist/esm/custom/auth/OAuthAuthCodeAuthProvider.mjs +127 -0
- package/dist/esm/custom/auth/OAuthPkceAuthProvider.d.mts +23 -0
- package/dist/esm/custom/auth/OAuthPkceAuthProvider.mjs +127 -0
- package/dist/esm/custom/auth/OAuthRopcAuthProvider.d.mts +22 -0
- package/dist/esm/custom/auth/OAuthRopcAuthProvider.mjs +100 -0
- package/dist/esm/custom/fetcher.d.mts +3 -0
- package/dist/esm/custom/fetcher.mjs +4 -0
- package/dist/esm/custom/index.d.mts +10 -0
- package/dist/esm/custom/index.mjs +10 -0
- package/dist/esm/custom/overrides/OAuthAuthProvider.d.mts +99 -0
- package/dist/esm/custom/overrides/OAuthAuthProvider.mjs +238 -0
- package/dist/esm/custom/overrides/fetcher/index.d.mts +12 -0
- package/dist/esm/custom/overrides/fetcher/index.mjs +7 -0
- package/dist/esm/custom/overrides/index.d.mts +14 -0
- package/dist/esm/custom/overrides/index.mjs +14 -0
- package/dist/esm/custom/proxy/CustomProxyStream.d.mts +17 -0
- package/dist/esm/custom/proxy/CustomProxyStream.mjs +15 -0
- package/dist/esm/custom/proxy/CustomProxyTranscribe.d.mts +17 -0
- package/dist/esm/custom/proxy/CustomProxyTranscribe.mjs +18 -0
- package/dist/esm/custom/stream/CustomStream.d.mts +39 -0
- package/dist/esm/custom/stream/CustomStream.mjs +146 -0
- package/dist/esm/custom/stream/CustomStreamSocket.d.mts +7 -0
- package/dist/esm/custom/stream/CustomStreamSocket.mjs +13 -0
- package/dist/esm/custom/stream/parseStreamResponseType.d.mts +2 -0
- package/dist/esm/custom/stream/parseStreamResponseType.mjs +13 -0
- package/dist/esm/custom/transcribe/CustomTranscribe.d.mts +38 -0
- package/dist/esm/custom/transcribe/CustomTranscribe.mjs +144 -0
- package/dist/esm/custom/transcribe/CustomTranscribeSocket.d.mts +7 -0
- package/dist/esm/custom/transcribe/CustomTranscribeSocket.mjs +13 -0
- package/dist/esm/custom/transcribe/parseTranscribeResponseType.d.mts +2 -0
- package/dist/esm/custom/transcribe/parseTranscribeResponseType.mjs +13 -0
- package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.d.mts +30 -0
- package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.mjs +65 -0
- package/dist/esm/custom/utils/index.d.mts +3 -0
- package/dist/esm/custom/utils/index.mjs +3 -0
- package/dist/esm/custom/utils/localStorageHelpers.mjs +11 -9
- package/dist/esm/custom/utils/withCredentialsConfig.d.mts +2 -0
- package/dist/esm/custom/utils/withCredentialsConfig.mjs +11 -0
- package/dist/esm/index.d.mts +1 -16
- package/dist/esm/index.mjs +1 -15
- package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +2 -1
- package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +2 -1
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +2 -2
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +1 -1
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +2 -2
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +1 -1
- package/dist/esm/serialization/types/AgentsErrorResponse.d.mts +13 -0
- package/dist/esm/serialization/types/AgentsErrorResponse.mjs +10 -0
- package/dist/esm/serialization/types/AgentsValidationError.d.mts +14 -0
- package/dist/esm/serialization/types/AgentsValidationError.mjs +10 -0
- package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.d.mts +10 -0
- package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.mjs +6 -0
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.d.mts +10 -0
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.mjs +9 -0
- package/dist/esm/serialization/types/CodesFilter.d.mts +11 -0
- package/dist/esm/serialization/types/CodesFilter.mjs +7 -0
- package/dist/esm/serialization/types/CodesGeneralReadResponse.d.mts +2 -0
- package/dist/esm/serialization/types/CodesGeneralReadResponse.mjs +2 -0
- package/dist/esm/serialization/types/CodesGeneralReadResponseAlternativesItem.d.mts +10 -0
- package/dist/esm/serialization/types/CodesGeneralReadResponseAlternativesItem.mjs +6 -0
- package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.d.mts +4 -2
- package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.mjs +4 -2
- package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +1 -1
- package/dist/esm/serialization/types/StreamConfigMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamConfigMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamEndMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamEndMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamEndedMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamEndedMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamErrorMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamErrorMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamFactsMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamFactsMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamFlushMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamFlushMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamFlushedMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamFlushedMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamTranscriptMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamTranscriptMessage.mjs +1 -2
- package/dist/esm/serialization/types/StreamUsageMessage.d.mts +1 -2
- package/dist/esm/serialization/types/StreamUsageMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeCommandMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeCommandMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeCommandVariable.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeCommandVariable.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeConfigMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeConfigMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeEndMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeEndMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeEndedMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeEndedMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeErrorMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeErrorMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeFlushMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeFlushMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeFlushedMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeFlushedMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeFormattingDates.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingDates.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingNumbers.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingNumbers.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingNumericRanges.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingNumericRanges.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingOrdinals.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingOrdinals.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingTimes.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeFormattingTimes.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeTranscriptMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeTranscriptMessage.mjs +1 -2
- package/dist/esm/serialization/types/TranscribeUsageMessage.d.mts +1 -2
- package/dist/esm/serialization/types/TranscribeUsageMessage.mjs +1 -2
- package/dist/esm/serialization/types/index.d.mts +6 -19
- package/dist/esm/serialization/types/index.mjs +6 -19
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +10 -120
- package/reference.md +0 -2748
|
@@ -32,6 +32,7 @@ export declare class AgentsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link Corti.BadRequestError}
|
|
34
34
|
* @throws {@link Corti.UnauthorizedError}
|
|
35
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* await client.agents.create({
|
|
@@ -81,6 +82,7 @@ export declare class AgentsClient {
|
|
|
81
82
|
* @throws {@link Corti.BadRequestError}
|
|
82
83
|
* @throws {@link Corti.UnauthorizedError}
|
|
83
84
|
* @throws {@link Corti.NotFoundError}
|
|
85
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
84
86
|
*
|
|
85
87
|
* @example
|
|
86
88
|
* await client.agents.update("12345678-90ab-cdef-gh12-34567890abc")
|
|
@@ -111,7 +113,9 @@ export declare class AgentsClient {
|
|
|
111
113
|
*
|
|
112
114
|
* @throws {@link Corti.BadRequestError}
|
|
113
115
|
* @throws {@link Corti.UnauthorizedError}
|
|
116
|
+
* @throws {@link Corti.ForbiddenError}
|
|
114
117
|
* @throws {@link Corti.NotFoundError}
|
|
118
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
115
119
|
*
|
|
116
120
|
* @example
|
|
117
121
|
* await client.agents.messageSend("12345678-90ab-cdef-gh12-34567890abc", {
|
|
@@ -138,6 +142,7 @@ export declare class AgentsClient {
|
|
|
138
142
|
*
|
|
139
143
|
* @throws {@link Corti.BadRequestError}
|
|
140
144
|
* @throws {@link Corti.UnauthorizedError}
|
|
145
|
+
* @throws {@link Corti.ForbiddenError}
|
|
141
146
|
* @throws {@link Corti.NotFoundError}
|
|
142
147
|
*
|
|
143
148
|
* @example
|
|
@@ -170,6 +175,7 @@ export declare class AgentsClient {
|
|
|
170
175
|
*
|
|
171
176
|
* @throws {@link Corti.BadRequestError}
|
|
172
177
|
* @throws {@link Corti.UnauthorizedError}
|
|
178
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
173
179
|
*
|
|
174
180
|
* @example
|
|
175
181
|
* await client.agents.getRegistryExperts({
|
|
@@ -104,6 +104,7 @@ export class AgentsClient {
|
|
|
104
104
|
*
|
|
105
105
|
* @throws {@link Corti.BadRequestError}
|
|
106
106
|
* @throws {@link Corti.UnauthorizedError}
|
|
107
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
107
108
|
*
|
|
108
109
|
* @example
|
|
109
110
|
* await client.agents.create({
|
|
@@ -158,6 +159,14 @@ export class AgentsClient {
|
|
|
158
159
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
159
160
|
case 401:
|
|
160
161
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
162
|
+
case 422:
|
|
163
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
164
|
+
unrecognizedObjectKeys: "passthrough",
|
|
165
|
+
allowUnrecognizedUnionMembers: true,
|
|
166
|
+
allowUnrecognizedEnumValues: true,
|
|
167
|
+
skipValidation: true,
|
|
168
|
+
breadcrumbsPrefix: ["response"],
|
|
169
|
+
}), _response.rawResponse);
|
|
161
170
|
default:
|
|
162
171
|
throw new errors.CortiError({
|
|
163
172
|
statusCode: _response.error.statusCode,
|
|
@@ -296,6 +305,7 @@ export class AgentsClient {
|
|
|
296
305
|
* @throws {@link Corti.BadRequestError}
|
|
297
306
|
* @throws {@link Corti.UnauthorizedError}
|
|
298
307
|
* @throws {@link Corti.NotFoundError}
|
|
308
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
299
309
|
*
|
|
300
310
|
* @example
|
|
301
311
|
* await client.agents.update("12345678-90ab-cdef-gh12-34567890abc")
|
|
@@ -345,6 +355,14 @@ export class AgentsClient {
|
|
|
345
355
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
346
356
|
case 404:
|
|
347
357
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
358
|
+
case 422:
|
|
359
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
360
|
+
unrecognizedObjectKeys: "passthrough",
|
|
361
|
+
allowUnrecognizedUnionMembers: true,
|
|
362
|
+
allowUnrecognizedEnumValues: true,
|
|
363
|
+
skipValidation: true,
|
|
364
|
+
breadcrumbsPrefix: ["response"],
|
|
365
|
+
}), _response.rawResponse);
|
|
348
366
|
default:
|
|
349
367
|
throw new errors.CortiError({
|
|
350
368
|
statusCode: _response.error.statusCode,
|
|
@@ -428,7 +446,9 @@ export class AgentsClient {
|
|
|
428
446
|
*
|
|
429
447
|
* @throws {@link Corti.BadRequestError}
|
|
430
448
|
* @throws {@link Corti.UnauthorizedError}
|
|
449
|
+
* @throws {@link Corti.ForbiddenError}
|
|
431
450
|
* @throws {@link Corti.NotFoundError}
|
|
451
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
432
452
|
*
|
|
433
453
|
* @example
|
|
434
454
|
* await client.agents.messageSend("12345678-90ab-cdef-gh12-34567890abc", {
|
|
@@ -486,8 +506,18 @@ export class AgentsClient {
|
|
|
486
506
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
487
507
|
case 401:
|
|
488
508
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
509
|
+
case 403:
|
|
510
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
489
511
|
case 404:
|
|
490
512
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
513
|
+
case 422:
|
|
514
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
515
|
+
unrecognizedObjectKeys: "passthrough",
|
|
516
|
+
allowUnrecognizedUnionMembers: true,
|
|
517
|
+
allowUnrecognizedEnumValues: true,
|
|
518
|
+
skipValidation: true,
|
|
519
|
+
breadcrumbsPrefix: ["response"],
|
|
520
|
+
}), _response.rawResponse);
|
|
491
521
|
default:
|
|
492
522
|
throw new errors.CortiError({
|
|
493
523
|
statusCode: _response.error.statusCode,
|
|
@@ -509,6 +539,7 @@ export class AgentsClient {
|
|
|
509
539
|
*
|
|
510
540
|
* @throws {@link Corti.BadRequestError}
|
|
511
541
|
* @throws {@link Corti.UnauthorizedError}
|
|
542
|
+
* @throws {@link Corti.ForbiddenError}
|
|
512
543
|
* @throws {@link Corti.NotFoundError}
|
|
513
544
|
*
|
|
514
545
|
* @example
|
|
@@ -555,6 +586,8 @@ export class AgentsClient {
|
|
|
555
586
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
556
587
|
case 401:
|
|
557
588
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
589
|
+
case 403:
|
|
590
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
558
591
|
case 404:
|
|
559
592
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
560
593
|
default:
|
|
@@ -646,6 +679,7 @@ export class AgentsClient {
|
|
|
646
679
|
*
|
|
647
680
|
* @throws {@link Corti.BadRequestError}
|
|
648
681
|
* @throws {@link Corti.UnauthorizedError}
|
|
682
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
649
683
|
*
|
|
650
684
|
* @example
|
|
651
685
|
* await client.agents.getRegistryExperts({
|
|
@@ -695,6 +729,14 @@ export class AgentsClient {
|
|
|
695
729
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
696
730
|
case 401:
|
|
697
731
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
732
|
+
case 422:
|
|
733
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
734
|
+
unrecognizedObjectKeys: "passthrough",
|
|
735
|
+
allowUnrecognizedUnionMembers: true,
|
|
736
|
+
allowUnrecognizedEnumValues: true,
|
|
737
|
+
skipValidation: true,
|
|
738
|
+
breadcrumbsPrefix: ["response"],
|
|
739
|
+
}), _response.rawResponse);
|
|
698
740
|
default:
|
|
699
741
|
throw new errors.CortiError({
|
|
700
742
|
statusCode: _response.error.statusCode,
|
|
@@ -11,7 +11,7 @@ export declare class CodesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
|
|
12
12
|
constructor(options: CodesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request
|
|
14
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
15
15
|
*
|
|
16
16
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
17
17
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -24,12 +24,24 @@ export declare class CodesClient {
|
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* await client.codes.predict({
|
|
27
|
-
* system: ["icd10cm", "cpt"],
|
|
27
|
+
* system: ["icd10cm-outpatient", "cpt"],
|
|
28
28
|
* context: [{
|
|
29
29
|
* type: "text",
|
|
30
30
|
* text: "Short arm splint applied in ED for pain control."
|
|
31
|
+
* }]
|
|
32
|
+
* })
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.codes.predict({
|
|
36
|
+
* system: ["icd10cm-outpatient"],
|
|
37
|
+
* context: [{
|
|
38
|
+
* type: "text",
|
|
39
|
+
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
31
40
|
* }],
|
|
32
|
-
*
|
|
41
|
+
* filter: {
|
|
42
|
+
* include: ["E11"],
|
|
43
|
+
* exclude: ["exclude"]
|
|
44
|
+
* }
|
|
33
45
|
* })
|
|
34
46
|
*/
|
|
35
47
|
predict(request: Corti.CodesGeneralPredictRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<Corti.CodesGeneralResponse>;
|
|
@@ -20,7 +20,7 @@ export class CodesClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request
|
|
23
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
26
26
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,12 +33,24 @@ export class CodesClient {
|
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* await client.codes.predict({
|
|
36
|
-
* system: ["icd10cm", "cpt"],
|
|
36
|
+
* system: ["icd10cm-outpatient", "cpt"],
|
|
37
37
|
* context: [{
|
|
38
38
|
* type: "text",
|
|
39
39
|
* text: "Short arm splint applied in ED for pain control."
|
|
40
|
+
* }]
|
|
41
|
+
* })
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.codes.predict({
|
|
45
|
+
* system: ["icd10cm-outpatient"],
|
|
46
|
+
* context: [{
|
|
47
|
+
* type: "text",
|
|
48
|
+
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
40
49
|
* }],
|
|
41
|
-
*
|
|
50
|
+
* filter: {
|
|
51
|
+
* include: ["E11"],
|
|
52
|
+
* exclude: ["exclude"]
|
|
53
|
+
* }
|
|
42
54
|
* })
|
|
43
55
|
*/
|
|
44
56
|
predict(request, requestOptions) {
|
|
@@ -83,13 +95,7 @@ export class CodesClient {
|
|
|
83
95
|
case 400:
|
|
84
96
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
85
97
|
case 403:
|
|
86
|
-
throw new Corti.ForbiddenError(
|
|
87
|
-
unrecognizedObjectKeys: "passthrough",
|
|
88
|
-
allowUnrecognizedUnionMembers: true,
|
|
89
|
-
allowUnrecognizedEnumValues: true,
|
|
90
|
-
skipValidation: true,
|
|
91
|
-
breadcrumbsPrefix: ["response"],
|
|
92
|
-
}), _response.rawResponse);
|
|
98
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
93
99
|
case 500:
|
|
94
100
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
95
101
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2,12 +2,24 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* system: ["icd10cm", "cpt"],
|
|
5
|
+
* system: ["icd10cm-outpatient", "cpt"],
|
|
6
6
|
* context: [{
|
|
7
7
|
* type: "text",
|
|
8
8
|
* text: "Short arm splint applied in ED for pain control."
|
|
9
|
+
* }]
|
|
10
|
+
* }
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* {
|
|
14
|
+
* system: ["icd10cm-outpatient"],
|
|
15
|
+
* context: [{
|
|
16
|
+
* type: "text",
|
|
17
|
+
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
9
18
|
* }],
|
|
10
|
-
*
|
|
19
|
+
* filter: {
|
|
20
|
+
* include: ["E11"],
|
|
21
|
+
* exclude: ["exclude"]
|
|
22
|
+
* }
|
|
11
23
|
* }
|
|
12
24
|
*/
|
|
13
25
|
export interface CodesGeneralPredictRequest {
|
|
@@ -15,6 +27,6 @@ export interface CodesGeneralPredictRequest {
|
|
|
15
27
|
system: Corti.CommonCodingSystemEnum[];
|
|
16
28
|
/** Select either `text` or `documentId` as input context to the model for code prediction. Evidence indices in the response map to this array. */
|
|
17
29
|
context: Corti.CommonAiContext[];
|
|
18
|
-
/**
|
|
19
|
-
|
|
30
|
+
/** Optional filter to restrict predicted codes. */
|
|
31
|
+
filter?: Corti.CodesFilter;
|
|
20
32
|
}
|
|
@@ -69,13 +69,7 @@ export class DocumentsClient {
|
|
|
69
69
|
case 400:
|
|
70
70
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
71
71
|
case 403:
|
|
72
|
-
throw new Corti.ForbiddenError(
|
|
73
|
-
unrecognizedObjectKeys: "passthrough",
|
|
74
|
-
allowUnrecognizedUnionMembers: true,
|
|
75
|
-
allowUnrecognizedEnumValues: true,
|
|
76
|
-
skipValidation: true,
|
|
77
|
-
breadcrumbsPrefix: ["response"],
|
|
78
|
-
}), _response.rawResponse);
|
|
72
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
79
73
|
case 500:
|
|
80
74
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
81
75
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -169,13 +163,7 @@ export class DocumentsClient {
|
|
|
169
163
|
case 400:
|
|
170
164
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
171
165
|
case 403:
|
|
172
|
-
throw new Corti.ForbiddenError(
|
|
173
|
-
unrecognizedObjectKeys: "passthrough",
|
|
174
|
-
allowUnrecognizedUnionMembers: true,
|
|
175
|
-
allowUnrecognizedEnumValues: true,
|
|
176
|
-
skipValidation: true,
|
|
177
|
-
breadcrumbsPrefix: ["response"],
|
|
178
|
-
}), _response.rawResponse);
|
|
166
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
179
167
|
case 500:
|
|
180
168
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
181
169
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -254,13 +242,7 @@ export class DocumentsClient {
|
|
|
254
242
|
case 400:
|
|
255
243
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
256
244
|
case 403:
|
|
257
|
-
throw new Corti.ForbiddenError(
|
|
258
|
-
unrecognizedObjectKeys: "passthrough",
|
|
259
|
-
allowUnrecognizedUnionMembers: true,
|
|
260
|
-
allowUnrecognizedEnumValues: true,
|
|
261
|
-
skipValidation: true,
|
|
262
|
-
breadcrumbsPrefix: ["response"],
|
|
263
|
-
}), _response.rawResponse);
|
|
245
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
264
246
|
case 500:
|
|
265
247
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
266
248
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -326,13 +308,7 @@ export class DocumentsClient {
|
|
|
326
308
|
if (_response.error.reason === "status-code") {
|
|
327
309
|
switch (_response.error.statusCode) {
|
|
328
310
|
case 403:
|
|
329
|
-
throw new Corti.ForbiddenError(
|
|
330
|
-
unrecognizedObjectKeys: "passthrough",
|
|
331
|
-
allowUnrecognizedUnionMembers: true,
|
|
332
|
-
allowUnrecognizedEnumValues: true,
|
|
333
|
-
skipValidation: true,
|
|
334
|
-
breadcrumbsPrefix: ["response"],
|
|
335
|
-
}), _response.rawResponse);
|
|
311
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
336
312
|
case 404:
|
|
337
313
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
338
314
|
case 500:
|
|
@@ -418,13 +394,7 @@ export class DocumentsClient {
|
|
|
418
394
|
case 400:
|
|
419
395
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
420
396
|
case 403:
|
|
421
|
-
throw new Corti.ForbiddenError(
|
|
422
|
-
unrecognizedObjectKeys: "passthrough",
|
|
423
|
-
allowUnrecognizedUnionMembers: true,
|
|
424
|
-
allowUnrecognizedEnumValues: true,
|
|
425
|
-
skipValidation: true,
|
|
426
|
-
breadcrumbsPrefix: ["response"],
|
|
427
|
-
}), _response.rawResponse);
|
|
397
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
428
398
|
case 500:
|
|
429
399
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
430
400
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -92,13 +92,7 @@ export class InteractionsClient {
|
|
|
92
92
|
if (_response.error.reason === "status-code") {
|
|
93
93
|
switch (_response.error.statusCode) {
|
|
94
94
|
case 403:
|
|
95
|
-
throw new Corti.ForbiddenError(
|
|
96
|
-
unrecognizedObjectKeys: "passthrough",
|
|
97
|
-
allowUnrecognizedUnionMembers: true,
|
|
98
|
-
allowUnrecognizedEnumValues: true,
|
|
99
|
-
skipValidation: true,
|
|
100
|
-
breadcrumbsPrefix: ["response"],
|
|
101
|
-
}), _response.rawResponse);
|
|
95
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
102
96
|
case 504:
|
|
103
97
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
104
98
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -193,13 +187,7 @@ export class InteractionsClient {
|
|
|
193
187
|
case 400:
|
|
194
188
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
195
189
|
case 403:
|
|
196
|
-
throw new Corti.ForbiddenError(
|
|
197
|
-
unrecognizedObjectKeys: "passthrough",
|
|
198
|
-
allowUnrecognizedUnionMembers: true,
|
|
199
|
-
allowUnrecognizedEnumValues: true,
|
|
200
|
-
skipValidation: true,
|
|
201
|
-
breadcrumbsPrefix: ["response"],
|
|
202
|
-
}), _response.rawResponse);
|
|
190
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
203
191
|
case 500:
|
|
204
192
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
205
193
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -273,13 +261,7 @@ export class InteractionsClient {
|
|
|
273
261
|
if (_response.error.reason === "status-code") {
|
|
274
262
|
switch (_response.error.statusCode) {
|
|
275
263
|
case 403:
|
|
276
|
-
throw new Corti.ForbiddenError(
|
|
277
|
-
unrecognizedObjectKeys: "passthrough",
|
|
278
|
-
allowUnrecognizedUnionMembers: true,
|
|
279
|
-
allowUnrecognizedEnumValues: true,
|
|
280
|
-
skipValidation: true,
|
|
281
|
-
breadcrumbsPrefix: ["response"],
|
|
282
|
-
}), _response.rawResponse);
|
|
264
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
283
265
|
case 504:
|
|
284
266
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
285
267
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -336,13 +318,7 @@ export class InteractionsClient {
|
|
|
336
318
|
if (_response.error.reason === "status-code") {
|
|
337
319
|
switch (_response.error.statusCode) {
|
|
338
320
|
case 403:
|
|
339
|
-
throw new Corti.ForbiddenError(
|
|
340
|
-
unrecognizedObjectKeys: "passthrough",
|
|
341
|
-
allowUnrecognizedUnionMembers: true,
|
|
342
|
-
allowUnrecognizedEnumValues: true,
|
|
343
|
-
skipValidation: true,
|
|
344
|
-
breadcrumbsPrefix: ["response"],
|
|
345
|
-
}), _response.rawResponse);
|
|
321
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
346
322
|
case 504:
|
|
347
323
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
348
324
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -415,13 +391,7 @@ export class InteractionsClient {
|
|
|
415
391
|
if (_response.error.reason === "status-code") {
|
|
416
392
|
switch (_response.error.statusCode) {
|
|
417
393
|
case 403:
|
|
418
|
-
throw new Corti.ForbiddenError(
|
|
419
|
-
unrecognizedObjectKeys: "passthrough",
|
|
420
|
-
allowUnrecognizedUnionMembers: true,
|
|
421
|
-
allowUnrecognizedEnumValues: true,
|
|
422
|
-
skipValidation: true,
|
|
423
|
-
breadcrumbsPrefix: ["response"],
|
|
424
|
-
}), _response.rawResponse);
|
|
394
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
425
395
|
case 504:
|
|
426
396
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
427
397
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -69,13 +69,7 @@ export class RecordingsClient {
|
|
|
69
69
|
case 400:
|
|
70
70
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
71
71
|
case 403:
|
|
72
|
-
throw new Corti.ForbiddenError(
|
|
73
|
-
unrecognizedObjectKeys: "passthrough",
|
|
74
|
-
allowUnrecognizedUnionMembers: true,
|
|
75
|
-
allowUnrecognizedEnumValues: true,
|
|
76
|
-
skipValidation: true,
|
|
77
|
-
breadcrumbsPrefix: ["response"],
|
|
78
|
-
}), _response.rawResponse);
|
|
72
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
79
73
|
case 500:
|
|
80
74
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
81
75
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -156,13 +150,7 @@ export class RecordingsClient {
|
|
|
156
150
|
case 400:
|
|
157
151
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
158
152
|
case 403:
|
|
159
|
-
throw new Corti.ForbiddenError(
|
|
160
|
-
unrecognizedObjectKeys: "passthrough",
|
|
161
|
-
allowUnrecognizedUnionMembers: true,
|
|
162
|
-
allowUnrecognizedEnumValues: true,
|
|
163
|
-
skipValidation: true,
|
|
164
|
-
breadcrumbsPrefix: ["response"],
|
|
165
|
-
}), _response.rawResponse);
|
|
153
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
166
154
|
case 500:
|
|
167
155
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
168
156
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -227,13 +215,7 @@ export class RecordingsClient {
|
|
|
227
215
|
case 400:
|
|
228
216
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
229
217
|
case 403:
|
|
230
|
-
throw new Corti.ForbiddenError(
|
|
231
|
-
unrecognizedObjectKeys: "passthrough",
|
|
232
|
-
allowUnrecognizedUnionMembers: true,
|
|
233
|
-
allowUnrecognizedEnumValues: true,
|
|
234
|
-
skipValidation: true,
|
|
235
|
-
breadcrumbsPrefix: ["response"],
|
|
236
|
-
}), _response.rawResponse);
|
|
218
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
237
219
|
case 404:
|
|
238
220
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
239
221
|
case 500:
|
|
@@ -303,13 +285,7 @@ export class RecordingsClient {
|
|
|
303
285
|
if (_response.error.reason === "status-code") {
|
|
304
286
|
switch (_response.error.statusCode) {
|
|
305
287
|
case 403:
|
|
306
|
-
throw new Corti.ForbiddenError(
|
|
307
|
-
unrecognizedObjectKeys: "passthrough",
|
|
308
|
-
allowUnrecognizedUnionMembers: true,
|
|
309
|
-
allowUnrecognizedEnumValues: true,
|
|
310
|
-
skipValidation: true,
|
|
311
|
-
breadcrumbsPrefix: ["response"],
|
|
312
|
-
}), _response.rawResponse);
|
|
288
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
313
289
|
case 404:
|
|
314
290
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
315
291
|
case 500:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { StreamSocket } from "./Socket.mjs";
|
|
4
4
|
export declare namespace StreamClient {
|
|
5
5
|
type Options = BaseClientOptions;
|
|
@@ -22,7 +22,7 @@ export declare namespace StreamClient {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare class StreamClient {
|
|
25
|
-
protected readonly _options:
|
|
25
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<StreamClient.Options>;
|
|
26
26
|
constructor(options: StreamClient.Options);
|
|
27
27
|
connect(args: StreamClient.ConnectArgs): Promise<StreamSocket>;
|
|
28
28
|
}
|
|
@@ -8,12 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
12
13
|
import * as core from "../../../../core/index.mjs";
|
|
13
14
|
import { StreamSocket } from "./Socket.mjs";
|
|
14
15
|
export class StreamClient {
|
|
15
16
|
constructor(options) {
|
|
16
|
-
this._options =
|
|
17
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
17
18
|
}
|
|
18
19
|
connect(args) {
|
|
19
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -23,7 +24,8 @@ export class StreamClient {
|
|
|
23
24
|
"tenant-name": tenantName,
|
|
24
25
|
token,
|
|
25
26
|
};
|
|
26
|
-
const
|
|
27
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
28
|
+
const _headers = mergeHeaders(_authRequest.headers, headers);
|
|
27
29
|
const socket = new core.ReconnectingWebSocket({
|
|
28
30
|
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).wss, `/interactions/${core.url.encodePathParam(id)}/streams`),
|
|
29
31
|
protocols: [],
|
|
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.
|
|
7
|
+
type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { TranscribeSocket } from "./Socket.mjs";
|
|
4
4
|
export declare namespace TranscribeClient {
|
|
5
5
|
type Options = BaseClientOptions;
|
|
@@ -21,7 +21,7 @@ export declare namespace TranscribeClient {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
export declare class TranscribeClient {
|
|
24
|
-
protected readonly _options:
|
|
24
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TranscribeClient.Options>;
|
|
25
25
|
constructor(options: TranscribeClient.Options);
|
|
26
26
|
connect(args: TranscribeClient.ConnectArgs): Promise<TranscribeSocket>;
|
|
27
27
|
}
|
|
@@ -8,12 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
12
13
|
import * as core from "../../../../core/index.mjs";
|
|
13
14
|
import { TranscribeSocket } from "./Socket.mjs";
|
|
14
15
|
export class TranscribeClient {
|
|
15
16
|
constructor(options) {
|
|
16
|
-
this._options =
|
|
17
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
17
18
|
}
|
|
18
19
|
connect(args) {
|
|
19
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -23,7 +24,8 @@ export class TranscribeClient {
|
|
|
23
24
|
"tenant-name": tenantName,
|
|
24
25
|
token,
|
|
25
26
|
};
|
|
26
|
-
const
|
|
27
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
28
|
+
const _headers = mergeHeaders(_authRequest.headers, headers);
|
|
27
29
|
const socket = new core.ReconnectingWebSocket({
|
|
28
30
|
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).wss, "/transcribe"),
|
|
29
31
|
protocols: [],
|
|
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.
|
|
7
|
+
type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|