@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
|
@@ -2,12 +2,24 @@ import type * as Corti from "../../../../index.js";
|
|
|
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
|
}
|
|
@@ -105,13 +105,7 @@ class DocumentsClient {
|
|
|
105
105
|
case 400:
|
|
106
106
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
107
107
|
case 403:
|
|
108
|
-
throw new Corti.ForbiddenError(
|
|
109
|
-
unrecognizedObjectKeys: "passthrough",
|
|
110
|
-
allowUnrecognizedUnionMembers: true,
|
|
111
|
-
allowUnrecognizedEnumValues: true,
|
|
112
|
-
skipValidation: true,
|
|
113
|
-
breadcrumbsPrefix: ["response"],
|
|
114
|
-
}), _response.rawResponse);
|
|
108
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
115
109
|
case 500:
|
|
116
110
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
117
111
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -205,13 +199,7 @@ class DocumentsClient {
|
|
|
205
199
|
case 400:
|
|
206
200
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
207
201
|
case 403:
|
|
208
|
-
throw new Corti.ForbiddenError(
|
|
209
|
-
unrecognizedObjectKeys: "passthrough",
|
|
210
|
-
allowUnrecognizedUnionMembers: true,
|
|
211
|
-
allowUnrecognizedEnumValues: true,
|
|
212
|
-
skipValidation: true,
|
|
213
|
-
breadcrumbsPrefix: ["response"],
|
|
214
|
-
}), _response.rawResponse);
|
|
202
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
215
203
|
case 500:
|
|
216
204
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
217
205
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -290,13 +278,7 @@ class DocumentsClient {
|
|
|
290
278
|
case 400:
|
|
291
279
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
292
280
|
case 403:
|
|
293
|
-
throw new Corti.ForbiddenError(
|
|
294
|
-
unrecognizedObjectKeys: "passthrough",
|
|
295
|
-
allowUnrecognizedUnionMembers: true,
|
|
296
|
-
allowUnrecognizedEnumValues: true,
|
|
297
|
-
skipValidation: true,
|
|
298
|
-
breadcrumbsPrefix: ["response"],
|
|
299
|
-
}), _response.rawResponse);
|
|
281
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
300
282
|
case 500:
|
|
301
283
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
302
284
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -362,13 +344,7 @@ class DocumentsClient {
|
|
|
362
344
|
if (_response.error.reason === "status-code") {
|
|
363
345
|
switch (_response.error.statusCode) {
|
|
364
346
|
case 403:
|
|
365
|
-
throw new Corti.ForbiddenError(
|
|
366
|
-
unrecognizedObjectKeys: "passthrough",
|
|
367
|
-
allowUnrecognizedUnionMembers: true,
|
|
368
|
-
allowUnrecognizedEnumValues: true,
|
|
369
|
-
skipValidation: true,
|
|
370
|
-
breadcrumbsPrefix: ["response"],
|
|
371
|
-
}), _response.rawResponse);
|
|
347
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
372
348
|
case 404:
|
|
373
349
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
374
350
|
case 500:
|
|
@@ -454,13 +430,7 @@ class DocumentsClient {
|
|
|
454
430
|
case 400:
|
|
455
431
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
456
432
|
case 403:
|
|
457
|
-
throw new Corti.ForbiddenError(
|
|
458
|
-
unrecognizedObjectKeys: "passthrough",
|
|
459
|
-
allowUnrecognizedUnionMembers: true,
|
|
460
|
-
allowUnrecognizedEnumValues: true,
|
|
461
|
-
skipValidation: true,
|
|
462
|
-
breadcrumbsPrefix: ["response"],
|
|
463
|
-
}), _response.rawResponse);
|
|
433
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
464
434
|
case 500:
|
|
465
435
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
466
436
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -128,13 +128,7 @@ class InteractionsClient {
|
|
|
128
128
|
if (_response.error.reason === "status-code") {
|
|
129
129
|
switch (_response.error.statusCode) {
|
|
130
130
|
case 403:
|
|
131
|
-
throw new Corti.ForbiddenError(
|
|
132
|
-
unrecognizedObjectKeys: "passthrough",
|
|
133
|
-
allowUnrecognizedUnionMembers: true,
|
|
134
|
-
allowUnrecognizedEnumValues: true,
|
|
135
|
-
skipValidation: true,
|
|
136
|
-
breadcrumbsPrefix: ["response"],
|
|
137
|
-
}), _response.rawResponse);
|
|
131
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
138
132
|
case 504:
|
|
139
133
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
140
134
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -229,13 +223,7 @@ class InteractionsClient {
|
|
|
229
223
|
case 400:
|
|
230
224
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
231
225
|
case 403:
|
|
232
|
-
throw new Corti.ForbiddenError(
|
|
233
|
-
unrecognizedObjectKeys: "passthrough",
|
|
234
|
-
allowUnrecognizedUnionMembers: true,
|
|
235
|
-
allowUnrecognizedEnumValues: true,
|
|
236
|
-
skipValidation: true,
|
|
237
|
-
breadcrumbsPrefix: ["response"],
|
|
238
|
-
}), _response.rawResponse);
|
|
226
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
239
227
|
case 500:
|
|
240
228
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
241
229
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -309,13 +297,7 @@ class InteractionsClient {
|
|
|
309
297
|
if (_response.error.reason === "status-code") {
|
|
310
298
|
switch (_response.error.statusCode) {
|
|
311
299
|
case 403:
|
|
312
|
-
throw new Corti.ForbiddenError(
|
|
313
|
-
unrecognizedObjectKeys: "passthrough",
|
|
314
|
-
allowUnrecognizedUnionMembers: true,
|
|
315
|
-
allowUnrecognizedEnumValues: true,
|
|
316
|
-
skipValidation: true,
|
|
317
|
-
breadcrumbsPrefix: ["response"],
|
|
318
|
-
}), _response.rawResponse);
|
|
300
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
319
301
|
case 504:
|
|
320
302
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
321
303
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -372,13 +354,7 @@ class InteractionsClient {
|
|
|
372
354
|
if (_response.error.reason === "status-code") {
|
|
373
355
|
switch (_response.error.statusCode) {
|
|
374
356
|
case 403:
|
|
375
|
-
throw new Corti.ForbiddenError(
|
|
376
|
-
unrecognizedObjectKeys: "passthrough",
|
|
377
|
-
allowUnrecognizedUnionMembers: true,
|
|
378
|
-
allowUnrecognizedEnumValues: true,
|
|
379
|
-
skipValidation: true,
|
|
380
|
-
breadcrumbsPrefix: ["response"],
|
|
381
|
-
}), _response.rawResponse);
|
|
357
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
382
358
|
case 504:
|
|
383
359
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
384
360
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -451,13 +427,7 @@ class InteractionsClient {
|
|
|
451
427
|
if (_response.error.reason === "status-code") {
|
|
452
428
|
switch (_response.error.statusCode) {
|
|
453
429
|
case 403:
|
|
454
|
-
throw new Corti.ForbiddenError(
|
|
455
|
-
unrecognizedObjectKeys: "passthrough",
|
|
456
|
-
allowUnrecognizedUnionMembers: true,
|
|
457
|
-
allowUnrecognizedEnumValues: true,
|
|
458
|
-
skipValidation: true,
|
|
459
|
-
breadcrumbsPrefix: ["response"],
|
|
460
|
-
}), _response.rawResponse);
|
|
430
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
461
431
|
case 504:
|
|
462
432
|
throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
463
433
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -105,13 +105,7 @@ class RecordingsClient {
|
|
|
105
105
|
case 400:
|
|
106
106
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
107
107
|
case 403:
|
|
108
|
-
throw new Corti.ForbiddenError(
|
|
109
|
-
unrecognizedObjectKeys: "passthrough",
|
|
110
|
-
allowUnrecognizedUnionMembers: true,
|
|
111
|
-
allowUnrecognizedEnumValues: true,
|
|
112
|
-
skipValidation: true,
|
|
113
|
-
breadcrumbsPrefix: ["response"],
|
|
114
|
-
}), _response.rawResponse);
|
|
108
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
115
109
|
case 500:
|
|
116
110
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
117
111
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -192,13 +186,7 @@ class RecordingsClient {
|
|
|
192
186
|
case 400:
|
|
193
187
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
194
188
|
case 403:
|
|
195
|
-
throw new Corti.ForbiddenError(
|
|
196
|
-
unrecognizedObjectKeys: "passthrough",
|
|
197
|
-
allowUnrecognizedUnionMembers: true,
|
|
198
|
-
allowUnrecognizedEnumValues: true,
|
|
199
|
-
skipValidation: true,
|
|
200
|
-
breadcrumbsPrefix: ["response"],
|
|
201
|
-
}), _response.rawResponse);
|
|
189
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
202
190
|
case 500:
|
|
203
191
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
204
192
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -263,13 +251,7 @@ class RecordingsClient {
|
|
|
263
251
|
case 400:
|
|
264
252
|
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
265
253
|
case 403:
|
|
266
|
-
throw new Corti.ForbiddenError(
|
|
267
|
-
unrecognizedObjectKeys: "passthrough",
|
|
268
|
-
allowUnrecognizedUnionMembers: true,
|
|
269
|
-
allowUnrecognizedEnumValues: true,
|
|
270
|
-
skipValidation: true,
|
|
271
|
-
breadcrumbsPrefix: ["response"],
|
|
272
|
-
}), _response.rawResponse);
|
|
254
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
273
255
|
case 404:
|
|
274
256
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
275
257
|
case 500:
|
|
@@ -339,13 +321,7 @@ class RecordingsClient {
|
|
|
339
321
|
if (_response.error.reason === "status-code") {
|
|
340
322
|
switch (_response.error.statusCode) {
|
|
341
323
|
case 403:
|
|
342
|
-
throw new Corti.ForbiddenError(
|
|
343
|
-
unrecognizedObjectKeys: "passthrough",
|
|
344
|
-
allowUnrecognizedUnionMembers: true,
|
|
345
|
-
allowUnrecognizedEnumValues: true,
|
|
346
|
-
skipValidation: true,
|
|
347
|
-
breadcrumbsPrefix: ["response"],
|
|
348
|
-
}), _response.rawResponse);
|
|
324
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
349
325
|
case 404:
|
|
350
326
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
351
327
|
case 500:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import { StreamSocket } from "./Socket.js";
|
|
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
|
}
|
|
@@ -45,11 +45,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.StreamClient = void 0;
|
|
47
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
50
|
const Socket_js_1 = require("./Socket.js");
|
|
50
51
|
class StreamClient {
|
|
51
52
|
constructor(options) {
|
|
52
|
-
this._options = (0, BaseClient_js_1.
|
|
53
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
53
54
|
}
|
|
54
55
|
connect(args) {
|
|
55
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,7 +60,8 @@ class StreamClient {
|
|
|
59
60
|
"tenant-name": tenantName,
|
|
60
61
|
token,
|
|
61
62
|
};
|
|
62
|
-
const
|
|
63
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
64
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, headers);
|
|
63
65
|
const socket = new core.ReconnectingWebSocket({
|
|
64
66
|
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`),
|
|
65
67
|
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.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import { TranscribeSocket } from "./Socket.js";
|
|
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
|
}
|
|
@@ -45,11 +45,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.TranscribeClient = void 0;
|
|
47
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
50
|
const Socket_js_1 = require("./Socket.js");
|
|
50
51
|
class TranscribeClient {
|
|
51
52
|
constructor(options) {
|
|
52
|
-
this._options = (0, BaseClient_js_1.
|
|
53
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
53
54
|
}
|
|
54
55
|
connect(args) {
|
|
55
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,7 +60,8 @@ class TranscribeClient {
|
|
|
59
60
|
"tenant-name": tenantName,
|
|
60
61
|
token,
|
|
61
62
|
};
|
|
62
|
-
const
|
|
63
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
64
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, headers);
|
|
63
65
|
const socket = new core.ReconnectingWebSocket({
|
|
64
66
|
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"),
|
|
65
67
|
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;
|
|
@@ -113,13 +113,7 @@ class TranscriptsClient {
|
|
|
113
113
|
case 401:
|
|
114
114
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
115
115
|
case 403:
|
|
116
|
-
throw new Corti.ForbiddenError(
|
|
117
|
-
unrecognizedObjectKeys: "passthrough",
|
|
118
|
-
allowUnrecognizedUnionMembers: true,
|
|
119
|
-
allowUnrecognizedEnumValues: true,
|
|
120
|
-
skipValidation: true,
|
|
121
|
-
breadcrumbsPrefix: ["response"],
|
|
122
|
-
}), _response.rawResponse);
|
|
116
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
123
117
|
case 500:
|
|
124
118
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
125
119
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -210,13 +204,7 @@ class TranscriptsClient {
|
|
|
210
204
|
case 401:
|
|
211
205
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
212
206
|
case 403:
|
|
213
|
-
throw new Corti.ForbiddenError(
|
|
214
|
-
unrecognizedObjectKeys: "passthrough",
|
|
215
|
-
allowUnrecognizedUnionMembers: true,
|
|
216
|
-
allowUnrecognizedEnumValues: true,
|
|
217
|
-
skipValidation: true,
|
|
218
|
-
breadcrumbsPrefix: ["response"],
|
|
219
|
-
}), _response.rawResponse);
|
|
207
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
220
208
|
case 500:
|
|
221
209
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
222
210
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -298,13 +286,7 @@ class TranscriptsClient {
|
|
|
298
286
|
case 401:
|
|
299
287
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
300
288
|
case 403:
|
|
301
|
-
throw new Corti.ForbiddenError(
|
|
302
|
-
unrecognizedObjectKeys: "passthrough",
|
|
303
|
-
allowUnrecognizedUnionMembers: true,
|
|
304
|
-
allowUnrecognizedEnumValues: true,
|
|
305
|
-
skipValidation: true,
|
|
306
|
-
breadcrumbsPrefix: ["response"],
|
|
307
|
-
}), _response.rawResponse);
|
|
289
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
308
290
|
case 500:
|
|
309
291
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
310
292
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -377,13 +359,7 @@ class TranscriptsClient {
|
|
|
377
359
|
case 401:
|
|
378
360
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
379
361
|
case 403:
|
|
380
|
-
throw new Corti.ForbiddenError(
|
|
381
|
-
unrecognizedObjectKeys: "passthrough",
|
|
382
|
-
allowUnrecognizedUnionMembers: true,
|
|
383
|
-
allowUnrecognizedEnumValues: true,
|
|
384
|
-
skipValidation: true,
|
|
385
|
-
breadcrumbsPrefix: ["response"],
|
|
386
|
-
}), _response.rawResponse);
|
|
362
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
387
363
|
case 500:
|
|
388
364
|
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
389
365
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
export interface AgentsErrorResponse {
|
|
3
|
+
/** A machine-readable error code that identifies the type of error. */
|
|
4
|
+
code: string;
|
|
5
|
+
/** A human-readable description of the error, providing more context about what went wrong. */
|
|
6
|
+
description: string;
|
|
7
|
+
/** A human-readable message describing how to fix the issue. */
|
|
8
|
+
howToFix?: string;
|
|
9
|
+
/** An optional object containing additional details about the error. */
|
|
10
|
+
details?: Record<string, unknown>;
|
|
11
|
+
cause?: Corti.AgentsErrorResponse;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Optional filter to restrict the set of codes the model can predict.
|
|
3
|
+
*/
|
|
4
|
+
export interface CodesFilter {
|
|
5
|
+
/** Codes or categories to include. When empty, the full set of codes for the requested systems is used. */
|
|
6
|
+
include?: string[];
|
|
7
|
+
/** Codes or categories to subtract from the include set. */
|
|
8
|
+
exclude?: string[];
|
|
9
|
+
/** When true (default), category codes are expanded to their leaf codes. */
|
|
10
|
+
expand?: boolean;
|
|
11
|
+
}
|
|
@@ -11,4 +11,6 @@ export interface CodesGeneralReadResponse {
|
|
|
11
11
|
display: string;
|
|
12
12
|
/** The evidence for the prediction */
|
|
13
13
|
evidences?: Corti.CodesGeneralReadResponseEvidencesItem[];
|
|
14
|
+
/** Codes the model also considered for this prediction. */
|
|
15
|
+
alternatives?: Corti.CodesGeneralReadResponseAlternativesItem[];
|
|
14
16
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface CodesGeneralReadResponseEvidencesItem {
|
|
2
2
|
/** Index from the context input array */
|
|
3
|
-
contextIndex
|
|
3
|
+
contextIndex: number;
|
|
4
4
|
/** Part of input text */
|
|
5
|
-
text
|
|
5
|
+
text: string;
|
|
6
|
+
/** 0-based start character offset of the evidence span (inclusive) */
|
|
7
|
+
start: number;
|
|
8
|
+
/** 0-based end character offset of the evidence span (exclusive) */
|
|
9
|
+
end: number;
|
|
6
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface CodesGeneralResponse {
|
|
3
|
-
/**
|
|
3
|
+
/** Codes predicted by the model. */
|
|
4
4
|
codes: Corti.CodesGeneralReadResponse[];
|
|
5
|
-
/**
|
|
5
|
+
/** Lower-confidence codes the model considered potentially relevant but excluded from the predicted set. */
|
|
6
6
|
candidates: Corti.CodesGeneralReadResponse[];
|
|
7
7
|
usageInfo?: Corti.CommonUsageInfo;
|
|
8
8
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CommonCodingSystemEnum = void 0;
|
|
5
5
|
exports.CommonCodingSystemEnum = {
|
|
6
|
-
|
|
6
|
+
Icd10CmInpatient: "icd10cm-inpatient",
|
|
7
|
+
Icd10CmOutpatient: "icd10cm-outpatient",
|
|
7
8
|
Icd10Pcs: "icd10pcs",
|
|
8
9
|
Cpt: "cpt",
|
|
9
10
|
};
|