@corti/sdk 1.0.0-alpha → 1.0.0-alpha.2
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/{serialization/types/AuthTokenRequest.js → api/errors/UnprocessableEntityError.js} +18 -9
- 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/AgentsValidationError.d.ts +8 -0
- package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.d.ts +4 -0
- package/dist/cjs/api/types/AgentsValidationErrorResponse.d.ts +4 -0
- package/dist/cjs/api/types/CodesFilter.d.ts +11 -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/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/{CortiAuth.d.ts → auth/CortiAuth.d.ts} +7 -7
- package/dist/cjs/custom/{CortiAuth.js → auth/CortiAuth.js} +9 -9
- package/dist/cjs/custom/{OAuthAuthCodeAuthProvider.d.ts → auth/OAuthAuthCodeAuthProvider.d.ts} +3 -3
- package/dist/cjs/custom/{OAuthAuthCodeAuthProvider.js → auth/OAuthAuthCodeAuthProvider.js} +3 -3
- package/dist/cjs/custom/{OAuthPkceAuthProvider.d.ts → auth/OAuthPkceAuthProvider.d.ts} +3 -3
- package/dist/cjs/custom/{OAuthPkceAuthProvider.js → auth/OAuthPkceAuthProvider.js} +3 -3
- package/dist/cjs/custom/{OAuthRopcAuthProvider.d.ts → auth/OAuthRopcAuthProvider.d.ts} +3 -3
- package/dist/cjs/custom/{OAuthRopcAuthProvider.js → auth/OAuthRopcAuthProvider.js} +3 -3
- package/dist/cjs/custom/fetcher.d.ts +3 -0
- package/dist/cjs/custom/fetcher.js +8 -0
- 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/{serialization/requests/AuthGetCodeFlowTokenRequest.js → stream/parseStreamResponseType.js} +14 -11
- 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/{serialization/resources/auth/client/requests/AuthGetCodeFlowTokenRequest.js → custom/transcribe/parseTranscribeResponseType.js} +14 -11
- 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/{StreamConfigMessageType.js → AgentsValidationErrorErrorsItem.js} +5 -2
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/{StreamEndMessageType.js → AgentsValidationErrorResponse.js} +8 -2
- package/dist/cjs/serialization/types/CodesFilter.d.ts +11 -0
- package/dist/cjs/serialization/types/{StreamEndedMessageType.js → CodesFilter.js} +6 -2
- 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/{AuthTokenRequestGrantType.js → CodesGeneralReadResponseAlternativesItem.js} +5 -2
- 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/AgentsValidationError.d.mts +8 -0
- package/dist/esm/api/types/AgentsValidationErrorErrorsItem.d.mts +4 -0
- package/dist/esm/api/types/AgentsValidationErrorResponse.d.mts +4 -0
- package/dist/esm/api/types/CodesFilter.d.mts +11 -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/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/{CortiAuth.d.mts → auth/CortiAuth.d.mts} +7 -7
- package/dist/esm/custom/{CortiAuth.mjs → auth/CortiAuth.mjs} +9 -9
- package/dist/esm/custom/{OAuthAuthCodeAuthProvider.d.mts → auth/OAuthAuthCodeAuthProvider.d.mts} +3 -3
- package/dist/esm/custom/{OAuthAuthCodeAuthProvider.mjs → auth/OAuthAuthCodeAuthProvider.mjs} +3 -3
- package/dist/esm/custom/{OAuthPkceAuthProvider.d.mts → auth/OAuthPkceAuthProvider.d.mts} +3 -3
- package/dist/esm/custom/{OAuthPkceAuthProvider.mjs → auth/OAuthPkceAuthProvider.mjs} +3 -3
- package/dist/esm/custom/{OAuthRopcAuthProvider.d.mts → auth/OAuthRopcAuthProvider.d.mts} +3 -3
- package/dist/esm/custom/{OAuthRopcAuthProvider.mjs → auth/OAuthRopcAuthProvider.mjs} +3 -3
- package/dist/esm/custom/fetcher.d.mts +3 -0
- package/dist/esm/custom/fetcher.mjs +4 -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 +9 -119
- package/dist/cjs/api/resources/agents/exports.d.ts +0 -2
- package/dist/cjs/api/resources/agents/exports.js +0 -21
- package/dist/cjs/api/resources/agents/types/AgentsMessageStreamResponse.d.ts +0 -10
- package/dist/cjs/api/resources/agents/types/AgentsMessageStreamResponse.js +0 -5
- package/dist/cjs/api/resources/auth/client/requests/AuthGetCodeFlowTokenRequest.d.ts +0 -22
- package/dist/cjs/api/resources/auth/client/requests/AuthGetCodeFlowTokenRequest.js +0 -5
- package/dist/cjs/api/resources/auth/client/requests/AuthGetTokenRequest.d.ts +0 -15
- package/dist/cjs/api/resources/auth/client/requests/AuthGetTokenRequest.js +0 -5
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/auth/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/auth/exports.d.ts +0 -2
- package/dist/cjs/api/resources/auth/exports.js +0 -21
- package/dist/cjs/api/resources/auth/types/AuthGetTokenRequestGrantType.d.ts +0 -6
- package/dist/cjs/api/resources/auth/types/AuthGetTokenRequestGrantType.js +0 -9
- package/dist/cjs/api/resources/auth/types/AuthTokenRequest.d.ts +0 -2
- package/dist/cjs/api/resources/auth/types/GetTokenResponse.d.ts +0 -10
- package/dist/cjs/api/resources/auth/types/GetTokenResponse.js +0 -5
- package/dist/cjs/api/resources/codes/exports.d.ts +0 -2
- package/dist/cjs/api/resources/codes/exports.js +0 -21
- package/dist/cjs/api/resources/documents/client/requests/DocumentsCreateRequest.d.ts +0 -20
- package/dist/cjs/api/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +0 -5
- package/dist/cjs/api/resources/documents/client/requests/DocumentsGetRequest.d.ts +0 -5
- package/dist/cjs/api/resources/documents/client/requests/DocumentsListRequest.d.ts +0 -5
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentCreate.d.ts +0 -31
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentCreate.js +0 -5
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentUpdate.d.ts +0 -13
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentUpdate.js +0 -5
- package/dist/cjs/api/resources/documents/exports.d.ts +0 -2
- package/dist/cjs/api/resources/documents/exports.js +0 -21
- package/dist/cjs/api/resources/documents/types/RequestDocumentCreateContextItem.d.ts +0 -10
- package/dist/cjs/api/resources/documents/types/RequestDocumentCreateContextItem.js +0 -5
- package/dist/cjs/api/resources/documents/types/RequestDocumentUpdateSectionsItem.d.ts +0 -9
- package/dist/cjs/api/resources/documents/types/RequestDocumentUpdateSectionsItem.js +0 -5
- package/dist/cjs/api/resources/documents/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/documents/types/index.js +0 -18
- package/dist/cjs/api/resources/facts/client/requests/FactsListRequest.d.ts +0 -5
- package/dist/cjs/api/resources/facts/client/requests/RequestFactUpdate.d.ts +0 -21
- package/dist/cjs/api/resources/facts/client/requests/RequestFactUpdate.js +0 -5
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsCreate.d.ts +0 -17
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsCreate.js +0 -5
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsUpdate.d.ts +0 -16
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsUpdate.js +0 -5
- package/dist/cjs/api/resources/facts/exports.d.ts +0 -2
- package/dist/cjs/api/resources/facts/exports.js +0 -21
- package/dist/cjs/api/resources/facts/types/RequestFactsCreateFactsItem.d.ts +0 -12
- package/dist/cjs/api/resources/facts/types/RequestFactsCreateFactsItem.js +0 -5
- package/dist/cjs/api/resources/facts/types/RequestFactsUpdateFactsItem.d.ts +0 -14
- package/dist/cjs/api/resources/facts/types/RequestFactsUpdateFactsItem.js +0 -5
- package/dist/cjs/api/resources/facts/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/facts/types/index.js +0 -18
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsDeleteRequest.d.ts +0 -5
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsGetRequest.d.ts +0 -5
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionCreate.d.ts +0 -22
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionCreate.js +0 -5
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionUpdate.d.ts +0 -16
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionUpdate.js +0 -5
- package/dist/cjs/api/resources/interactions/exports.d.ts +0 -2
- package/dist/cjs/api/resources/interactions/exports.js +0 -21
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestDirection.d.ts +0 -11
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestDirection.js +0 -10
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsDeleteRequest.d.ts +0 -5
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsGetRequest.d.ts +0 -5
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsGetRequest.js +0 -3
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.d.ts +0 -5
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.js +0 -3
- package/dist/cjs/api/resources/recordings/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/recordings/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/recordings/exports.d.ts +0 -2
- package/dist/cjs/api/resources/recordings/exports.js +0 -21
- package/dist/cjs/api/resources/stream/exports.d.ts +0 -2
- package/dist/cjs/api/resources/stream/exports.js +0 -21
- package/dist/cjs/api/resources/templates/client/requests/TemplatesSectionsListRequest.d.ts +0 -17
- package/dist/cjs/api/resources/templates/client/requests/TemplatesSectionsListRequest.js +0 -5
- package/dist/cjs/api/resources/templates/exports.d.ts +0 -2
- package/dist/cjs/api/resources/templates/exports.js +0 -21
- package/dist/cjs/api/resources/transcribe/exports.d.ts +0 -2
- package/dist/cjs/api/resources/transcribe/exports.js +0 -21
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptCreate.d.ts +0 -28
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptCreate.js +0 -5
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsDeleteRequest.d.ts +0 -5
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsGetRequest.d.ts +0 -5
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsGetRequest.js +0 -3
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsGetStatusRequest.d.ts +0 -5
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsGetStatusRequest.js +0 -3
- package/dist/cjs/api/resources/transcripts/exports.d.ts +0 -2
- package/dist/cjs/api/resources/transcripts/exports.js +0 -21
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateModelName.d.ts +0 -12
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateModelName.js +0 -11
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.ts +0 -10
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.js +0 -5
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.ts +0 -21
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.js +0 -20
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -12
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.js +0 -11
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.ts +0 -21
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.js +0 -20
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestDirection.d.ts +0 -11
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestDirection.js +0 -10
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestSort.d.ts +0 -11
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestSort.js +0 -10
- package/dist/cjs/api/resources/transcripts/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/transcripts/types/index.js +0 -17
- package/dist/cjs/api/types/AgentsMessageSendParams.d.ts +0 -10
- package/dist/cjs/api/types/AgentsMessageSendParams.js +0 -5
- package/dist/cjs/api/types/AgentsTaskArtifactUpdateEvent.d.ts +0 -19
- package/dist/cjs/api/types/AgentsTaskArtifactUpdateEvent.js +0 -5
- package/dist/cjs/api/types/AgentsTaskStatusUpdateEvent.d.ts +0 -17
- package/dist/cjs/api/types/AgentsTaskStatusUpdateEvent.js +0 -5
- package/dist/cjs/api/types/AuthTokenRequest.d.ts +0 -14
- package/dist/cjs/api/types/AuthTokenRequest.js +0 -3
- package/dist/cjs/api/types/AuthTokenRequestGrantType.d.ts +0 -5
- package/dist/cjs/api/types/AuthTokenRequestGrantType.js +0 -8
- package/dist/cjs/api/types/CommonTranscript.d.ts +0 -17
- package/dist/cjs/api/types/CommonTranscript.js +0 -5
- package/dist/cjs/api/types/DocumentContextData.d.ts +0 -14
- package/dist/cjs/api/types/DocumentContextData.js +0 -5
- package/dist/cjs/api/types/DocumentTemplate.d.ts +0 -14
- package/dist/cjs/api/types/DocumentTemplate.js +0 -5
- package/dist/cjs/api/types/DocumentsContextData.d.ts +0 -14
- package/dist/cjs/api/types/DocumentsContextData.js +0 -5
- package/dist/cjs/api/types/DocumentsContextTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/DocumentsContextTypeEnum.js +0 -11
- package/dist/cjs/api/types/DocumentsCreateRequestBody.d.ts +0 -8
- package/dist/cjs/api/types/DocumentsCreateRequestBody.js +0 -3
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -16
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateId.js +0 -5
- package/dist/cjs/api/types/DocumentsTemplateWithSectionIds.d.ts +0 -12
- package/dist/cjs/api/types/DocumentsTemplateWithSectionIds.js +0 -5
- package/dist/cjs/api/types/Encounter.d.ts +0 -16
- package/dist/cjs/api/types/Encounter.js +0 -5
- package/dist/cjs/api/types/EncounterPeriod.d.ts +0 -9
- package/dist/cjs/api/types/EncounterPeriod.js +0 -5
- package/dist/cjs/api/types/EncounterStatus.d.ts +0 -12
- package/dist/cjs/api/types/EncounterStatus.js +0 -14
- package/dist/cjs/api/types/EncounterType.d.ts +0 -11
- package/dist/cjs/api/types/EncounterType.js +0 -13
- package/dist/cjs/api/types/EncounterUpdate.d.ts +0 -16
- package/dist/cjs/api/types/EncounterUpdate.js +0 -5
- package/dist/cjs/api/types/FactContext.d.ts +0 -12
- package/dist/cjs/api/types/FactContext.js +0 -5
- package/dist/cjs/api/types/GenderEnum.d.ts +0 -10
- package/dist/cjs/api/types/GenderEnum.js +0 -12
- package/dist/cjs/api/types/ParticipantRoleEnum.d.ts +0 -9
- package/dist/cjs/api/types/ParticipantRoleEnum.js +0 -11
- package/dist/cjs/api/types/Patient.d.ts +0 -16
- package/dist/cjs/api/types/Patient.js +0 -5
- package/dist/cjs/api/types/PatientUpdate.d.ts +0 -16
- package/dist/cjs/api/types/PatientUpdate.js +0 -5
- package/dist/cjs/api/types/ResponseAllTemplateSections.d.ts +0 -8
- package/dist/cjs/api/types/ResponseAllTemplateSections.js +0 -5
- package/dist/cjs/api/types/ResponseAllTemplates.d.ts +0 -8
- package/dist/cjs/api/types/ResponseAllTemplates.js +0 -5
- package/dist/cjs/api/types/ResponseAllTemplatesDataItem.d.ts +0 -20
- package/dist/cjs/api/types/ResponseAllTemplatesDataItem.js +0 -5
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.ts +0 -10
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.js +0 -5
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTranslationsItem.d.ts +0 -11
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTranslationsItem.js +0 -5
- package/dist/cjs/api/types/ResponseDocumentList.d.ts +0 -7
- package/dist/cjs/api/types/ResponseDocumentList.js +0 -5
- package/dist/cjs/api/types/ResponseDocumentRead.d.ts +0 -22
- package/dist/cjs/api/types/ResponseDocumentRead.js +0 -5
- package/dist/cjs/api/types/ResponseDocumentReadSectionsItem.d.ts +0 -17
- package/dist/cjs/api/types/ResponseDocumentReadSectionsItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactGroupsFiltered.d.ts +0 -7
- package/dist/cjs/api/types/ResponseFactGroupsFiltered.js +0 -5
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItem.d.ts +0 -9
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.ts +0 -8
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactUpdate.d.ts +0 -22
- package/dist/cjs/api/types/ResponseFactUpdate.js +0 -5
- package/dist/cjs/api/types/ResponseFactsCreate.d.ts +0 -8
- package/dist/cjs/api/types/ResponseFactsCreate.js +0 -5
- package/dist/cjs/api/types/ResponseFactsCreateFactsItem.d.ts +0 -20
- package/dist/cjs/api/types/ResponseFactsCreateFactsItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactsList.d.ts +0 -8
- package/dist/cjs/api/types/ResponseFactsList.js +0 -5
- package/dist/cjs/api/types/ResponseFactsListFactsItem.d.ts +0 -23
- package/dist/cjs/api/types/ResponseFactsListFactsItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactsListFactsItemEvidenceItem.d.ts +0 -11
- package/dist/cjs/api/types/ResponseFactsListFactsItemEvidenceItem.js +0 -5
- package/dist/cjs/api/types/ResponseFactsUpdate.d.ts +0 -8
- package/dist/cjs/api/types/ResponseFactsUpdate.js +0 -5
- package/dist/cjs/api/types/ResponseFactsUpdateFactsItem.d.ts +0 -22
- package/dist/cjs/api/types/ResponseFactsUpdateFactsItem.js +0 -5
- package/dist/cjs/api/types/ResponseInteraction.d.ts +0 -24
- package/dist/cjs/api/types/ResponseInteraction.js +0 -5
- package/dist/cjs/api/types/ResponseInteractionCreate.d.ts +0 -10
- package/dist/cjs/api/types/ResponseInteractionCreate.js +0 -5
- package/dist/cjs/api/types/ResponseInteractions.d.ts +0 -7
- package/dist/cjs/api/types/ResponseInteractions.js +0 -5
- package/dist/cjs/api/types/ResponseMetadataCreate.d.ts +0 -7
- package/dist/cjs/api/types/ResponseMetadataCreate.js +0 -5
- package/dist/cjs/api/types/ResponseMetadataCreateParticipantsRolesItem.d.ts +0 -10
- package/dist/cjs/api/types/ResponseMetadataCreateParticipantsRolesItem.js +0 -5
- package/dist/cjs/api/types/ResponseRecordingCreate.d.ts +0 -8
- package/dist/cjs/api/types/ResponseRecordingCreate.js +0 -5
- package/dist/cjs/api/types/ResponseRecordingList.d.ts +0 -8
- package/dist/cjs/api/types/ResponseRecordingList.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptCreate.d.ts +0 -13
- package/dist/cjs/api/types/ResponseTranscriptCreate.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptCreateTranscriptsItem.d.ts +0 -17
- package/dist/cjs/api/types/ResponseTranscriptCreateTranscriptsItem.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptListAll.d.ts +0 -7
- package/dist/cjs/api/types/ResponseTranscriptListAll.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptListAllTranscriptsItem.d.ts +0 -9
- package/dist/cjs/api/types/ResponseTranscriptListAllTranscriptsItem.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptListFull.d.ts +0 -10
- package/dist/cjs/api/types/ResponseTranscriptListFull.js +0 -5
- package/dist/cjs/api/types/ResponseTranscriptListFullTranscriptsItem.d.ts +0 -17
- package/dist/cjs/api/types/ResponseTranscriptListFullTranscriptsItem.js +0 -5
- package/dist/cjs/api/types/Section.d.ts +0 -22
- package/dist/cjs/api/types/Section.js +0 -5
- package/dist/cjs/api/types/SectionTranslationsItem.d.ts +0 -11
- package/dist/cjs/api/types/SectionTranslationsItem.js +0 -5
- package/dist/cjs/api/types/SortingDirectionEnum.d.ts +0 -8
- package/dist/cjs/api/types/SortingDirectionEnum.js +0 -10
- package/dist/cjs/api/types/StreamConfigData.d.ts +0 -8
- package/dist/cjs/api/types/StreamConfigData.js +0 -5
- package/dist/cjs/api/types/StreamConfigMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamConfigMessageType.js +0 -7
- package/dist/cjs/api/types/StreamConfigModeOutputLocale.d.ts +0 -21
- package/dist/cjs/api/types/StreamConfigModeOutputLocale.js +0 -20
- package/dist/cjs/api/types/StreamConfigTranscriptionPrimaryLanguage.d.ts +0 -21
- package/dist/cjs/api/types/StreamConfigTranscriptionPrimaryLanguage.js +0 -20
- package/dist/cjs/api/types/StreamConfigurationMessage.d.ts +0 -8
- package/dist/cjs/api/types/StreamConfigurationMessage.js +0 -5
- package/dist/cjs/api/types/StreamEndMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamEndMessageType.js +0 -7
- package/dist/cjs/api/types/StreamEndedMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamEndedMessageType.js +0 -7
- package/dist/cjs/api/types/StreamErrorMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamErrorMessageType.js +0 -7
- package/dist/cjs/api/types/StreamFactsMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamFactsMessageType.js +0 -7
- package/dist/cjs/api/types/StreamFlushMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamFlushMessageType.js +0 -7
- package/dist/cjs/api/types/StreamFlushedMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamFlushedMessageType.js +0 -7
- package/dist/cjs/api/types/StreamParticipantRole.d.ts +0 -12
- package/dist/cjs/api/types/StreamParticipantRole.js +0 -11
- package/dist/cjs/api/types/StreamTranscriptMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamTranscriptMessageType.js +0 -7
- package/dist/cjs/api/types/StreamUsageMessageType.d.ts +0 -4
- package/dist/cjs/api/types/StreamUsageMessageType.js +0 -7
- package/dist/cjs/api/types/TemplateFiltered.d.ts +0 -20
- package/dist/cjs/api/types/TemplateFiltered.js +0 -5
- package/dist/cjs/api/types/TemplateFilteredTemplateSectionsItem.d.ts +0 -10
- package/dist/cjs/api/types/TemplateFilteredTemplateSectionsItem.js +0 -5
- package/dist/cjs/api/types/TemplateFilteredTranslationsItem.d.ts +0 -11
- package/dist/cjs/api/types/TemplateFilteredTranslationsItem.js +0 -5
- package/dist/cjs/api/types/TranscribeCommandMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeCommandMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeCommandVariableType.d.ts +0 -5
- package/dist/cjs/api/types/TranscribeCommandVariableType.js +0 -8
- package/dist/cjs/api/types/TranscribeConfigMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeConfigMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeConfigurationMessage.d.ts +0 -8
- package/dist/cjs/api/types/TranscribeConfigurationMessage.js +0 -5
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfiguration.d.ts +0 -16
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfiguration.js +0 -5
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.ts +0 -21
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.js +0 -20
- package/dist/cjs/api/types/TranscribeEndMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeEndMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeEndedMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeEndedMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeErrorMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeErrorMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeFlushMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeFlushMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeFlushedMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeFlushedMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeTranscriptMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeTranscriptMessageType.js +0 -7
- package/dist/cjs/api/types/TranscribeUsageMessageType.d.ts +0 -4
- package/dist/cjs/api/types/TranscribeUsageMessageType.js +0 -7
- package/dist/cjs/api/types/Transcript.d.ts +0 -17
- package/dist/cjs/api/types/Transcript.js +0 -5
- package/dist/cjs/api/types/UsageInfo.d.ts +0 -6
- package/dist/cjs/api/types/UsageInfo.js +0 -5
- package/dist/cjs/api/types/V2DocumentContextTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/V2DocumentContextTypeEnum.js +0 -11
- package/dist/cjs/api/types/V2SourceEnum.d.ts +0 -9
- package/dist/cjs/api/types/V2SourceEnum.js +0 -11
- package/dist/cjs/api/types/WritingStyle.d.ts +0 -7
- package/dist/cjs/api/types/WritingStyle.js +0 -5
- package/dist/cjs/auth/BearerAuthProvider.d.ts +0 -20
- package/dist/cjs/auth/BearerAuthProvider.js +0 -79
- package/dist/cjs/auth/OAuthRopcAuthProvider.d.ts +0 -33
- package/dist/cjs/auth/OAuthRopcAuthProvider.js +0 -130
- package/dist/cjs/core/auth/BearerProvider.d.ts +0 -8
- package/dist/cjs/core/auth/BearerProvider.js +0 -57
- package/dist/cjs/core/auth/OAuthTokenProvider.d.ts +0 -25
- package/dist/cjs/core/auth/OAuthTokenProvider.js +0 -86
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/cjs/core/pagination/CustomPager.d.ts +0 -67
- package/dist/cjs/core/pagination/CustomPager.js +0 -194
- package/dist/cjs/core/pagination/Pageable.d.ts +0 -14
- package/dist/cjs/core/pagination/Pageable.js +0 -10
- package/dist/cjs/core/stream/Stream.d.ts +0 -46
- package/dist/cjs/core/stream/Stream.js +0 -169
- package/dist/cjs/core/stream/index.d.ts +0 -1
- package/dist/cjs/core/stream/index.js +0 -5
- package/dist/cjs/custom/BearerProvider.d.ts +0 -13
- package/dist/cjs/custom/BearerProvider.js +0 -60
- package/dist/cjs/custom/CortiOAuthAuthProvider.d.ts +0 -7
- package/dist/cjs/custom/CortiOAuthAuthProvider.js +0 -15
- package/dist/cjs/custom/CortiWebSocketClient.d.ts +0 -14
- package/dist/cjs/custom/CortiWebSocketClient.js +0 -64
- package/dist/cjs/custom/CustomStream.d.ts +0 -8
- package/dist/cjs/custom/CustomStream.js +0 -62
- package/dist/cjs/custom/CustomStreamSocket.d.ts +0 -15
- package/dist/cjs/custom/CustomStreamSocket.js +0 -70
- package/dist/cjs/custom/CustomTranscribe.d.ts +0 -6
- package/dist/cjs/custom/CustomTranscribe.js +0 -62
- package/dist/cjs/custom/CustomTranscribeSocket.d.ts +0 -15
- package/dist/cjs/custom/CustomTranscribeSocket.js +0 -70
- package/dist/cjs/custom/ExtendedAuthClient.d.ts +0 -32
- package/dist/cjs/custom/ExtendedAuthClient.js +0 -163
- package/dist/cjs/custom/ExtendedClient.d.ts +0 -57
- package/dist/cjs/custom/ExtendedClient.js +0 -90
- package/dist/cjs/custom/RefreshBearerProvider.d.ts +0 -33
- package/dist/cjs/custom/RefreshBearerProvider.js +0 -112
- package/dist/cjs/custom/api/resources/auth/client/ExtendedClient.d.ts +0 -32
- package/dist/cjs/custom/api/resources/auth/client/ExtendedClient.js +0 -162
- package/dist/cjs/custom/createAuthProvider.d.ts +0 -6
- package/dist/cjs/custom/createAuthProvider.js +0 -53
- package/dist/cjs/custom/environments.d.ts +0 -10
- package/dist/cjs/custom/environments.js +0 -12
- package/dist/cjs/custom/index.d.ts +0 -1
- package/dist/cjs/custom/index.js +0 -5
- package/dist/cjs/custom/requests/AuthGetCodeFlowTokenRequest.d.ts +0 -19
- package/dist/cjs/custom/requests/AuthGetCodeFlowTokenRequest.js +0 -2
- package/dist/cjs/custom/requests/index.d.ts +0 -1
- package/dist/cjs/custom/requests/index.js +0 -2
- package/dist/cjs/custom/serialization/index.d.ts +0 -1
- package/dist/cjs/custom/serialization/index.js +0 -17
- package/dist/cjs/custom/serialization/requests/AuthGetCodeFlowTokenRequest.d.ts +0 -15
- package/dist/cjs/custom/serialization/requests/index.d.ts +0 -1
- package/dist/cjs/custom/serialization/requests/index.js +0 -5
- package/dist/cjs/custom/utils/getEnvironmentFromString.d.ts +0 -5
- package/dist/cjs/custom/utils/getEnvironmentFromString.js +0 -13
- package/dist/cjs/custom/utils/localStorage.d.ts +0 -4
- package/dist/cjs/custom/utils/localStorage.js +0 -40
- package/dist/cjs/custom/utils/pkce.d.ts +0 -2
- package/dist/cjs/custom/utils/pkce.js +0 -29
- package/dist/cjs/custom/utils/tokenRequest.d.ts +0 -12
- package/dist/cjs/custom/utils/tokenRequest.js +0 -79
- package/dist/cjs/serialization/resources/agents/types/AgentsMessageStreamResponse.d.ts +0 -19
- package/dist/cjs/serialization/resources/agents/types/AgentsMessageStreamResponse.js +0 -50
- package/dist/cjs/serialization/resources/auth/client/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/auth/client/index.js +0 -17
- package/dist/cjs/serialization/resources/auth/client/requests/AuthGetCodeFlowTokenRequest.d.ts +0 -15
- package/dist/cjs/serialization/resources/auth/client/requests/AuthGetTokenRequest.d.ts +0 -13
- package/dist/cjs/serialization/resources/auth/client/requests/AuthGetTokenRequest.js +0 -44
- package/dist/cjs/serialization/resources/auth/client/requests/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/auth/client/requests/index.js +0 -5
- package/dist/cjs/serialization/resources/auth/types/AuthGetTokenRequestGrantType.d.ts +0 -7
- package/dist/cjs/serialization/resources/auth/types/AuthGetTokenRequestGrantType.js +0 -39
- package/dist/cjs/serialization/resources/auth/types/AuthTokenRequest.d.ts +0 -12
- package/dist/cjs/serialization/resources/auth/types/AuthTokenRequest.js +0 -50
- package/dist/cjs/serialization/resources/auth/types/GetTokenResponse.d.ts +0 -16
- package/dist/cjs/serialization/resources/auth/types/GetTokenResponse.js +0 -47
- package/dist/cjs/serialization/resources/documents/client/requests/RequestDocumentCreate.d.ts +0 -19
- package/dist/cjs/serialization/resources/documents/client/requests/RequestDocumentCreate.js +0 -50
- package/dist/cjs/serialization/resources/documents/client/requests/RequestDocumentUpdate.d.ts +0 -14
- package/dist/cjs/serialization/resources/documents/client/requests/RequestDocumentUpdate.js +0 -45
- package/dist/cjs/serialization/resources/documents/types/RequestDocumentCreateContextItem.d.ts +0 -15
- package/dist/cjs/serialization/resources/documents/types/RequestDocumentCreateContextItem.js +0 -46
- package/dist/cjs/serialization/resources/documents/types/RequestDocumentUpdateSectionsItem.d.ts +0 -15
- package/dist/cjs/serialization/resources/documents/types/RequestDocumentUpdateSectionsItem.js +0 -46
- package/dist/cjs/serialization/resources/documents/types/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/documents/types/index.js +0 -18
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactUpdate.d.ts +0 -16
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactUpdate.js +0 -47
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactsCreate.d.ts +0 -13
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactsCreate.js +0 -44
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactsUpdate.d.ts +0 -13
- package/dist/cjs/serialization/resources/facts/client/requests/RequestFactsUpdate.js +0 -44
- package/dist/cjs/serialization/resources/facts/types/RequestFactsCreateFactsItem.d.ts +0 -15
- package/dist/cjs/serialization/resources/facts/types/RequestFactsCreateFactsItem.js +0 -46
- package/dist/cjs/serialization/resources/facts/types/RequestFactsUpdateFactsItem.d.ts +0 -16
- package/dist/cjs/serialization/resources/facts/types/RequestFactsUpdateFactsItem.js +0 -47
- package/dist/cjs/serialization/resources/facts/types/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/facts/types/index.js +0 -18
- package/dist/cjs/serialization/resources/interactions/client/requests/RequestInteractionCreate.d.ts +0 -17
- package/dist/cjs/serialization/resources/interactions/client/requests/RequestInteractionCreate.js +0 -48
- package/dist/cjs/serialization/resources/interactions/client/requests/RequestInteractionUpdate.d.ts +0 -17
- package/dist/cjs/serialization/resources/interactions/client/requests/RequestInteractionUpdate.js +0 -48
- package/dist/cjs/serialization/resources/interactions/types/InteractionsListRequestDirection.d.ts +0 -10
- package/dist/cjs/serialization/resources/interactions/types/InteractionsListRequestDirection.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptCreate.d.ts +0 -22
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptCreate.js +0 -53
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreateModelName.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreateModelName.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.ts +0 -14
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.js +0 -45
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsListRequestSort.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsListRequestSort.js +0 -41
- package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/transcripts/types/index.js +0 -17
- package/dist/cjs/serialization/types/AgentsMessageSendParams.d.ts +0 -16
- package/dist/cjs/serialization/types/AgentsMessageSendParams.js +0 -47
- package/dist/cjs/serialization/types/AgentsTaskArtifactUpdateEvent.d.ts +0 -19
- package/dist/cjs/serialization/types/AgentsTaskArtifactUpdateEvent.js +0 -50
- package/dist/cjs/serialization/types/AgentsTaskStatusUpdateEvent.d.ts +0 -18
- package/dist/cjs/serialization/types/AgentsTaskStatusUpdateEvent.js +0 -49
- package/dist/cjs/serialization/types/AuthTokenRequest.d.ts +0 -13
- package/dist/cjs/serialization/types/AuthTokenRequestGrantType.d.ts +0 -7
- package/dist/cjs/serialization/types/CommonTranscript.d.ts +0 -17
- package/dist/cjs/serialization/types/CommonTranscript.js +0 -48
- package/dist/cjs/serialization/types/DocumentContextData.d.ts +0 -12
- package/dist/cjs/serialization/types/DocumentContextData.js +0 -47
- package/dist/cjs/serialization/types/DocumentTemplate.d.ts +0 -16
- package/dist/cjs/serialization/types/DocumentTemplate.js +0 -47
- package/dist/cjs/serialization/types/DocumentsContextData.d.ts +0 -12
- package/dist/cjs/serialization/types/DocumentsContextData.js +0 -47
- package/dist/cjs/serialization/types/DocumentsContextTypeEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/DocumentsContextTypeEnum.js +0 -41
- package/dist/cjs/serialization/types/DocumentsCreateRequestBody.d.ts +0 -9
- package/dist/cjs/serialization/types/DocumentsCreateRequestBody.js +0 -44
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -18
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.js +0 -49
- package/dist/cjs/serialization/types/DocumentsTemplateWithSectionIds.d.ts +0 -15
- package/dist/cjs/serialization/types/DocumentsTemplateWithSectionIds.js +0 -46
- package/dist/cjs/serialization/types/Encounter.d.ts +0 -19
- package/dist/cjs/serialization/types/Encounter.js +0 -50
- package/dist/cjs/serialization/types/EncounterPeriod.d.ts +0 -13
- package/dist/cjs/serialization/types/EncounterPeriod.js +0 -44
- package/dist/cjs/serialization/types/EncounterStatus.d.ts +0 -10
- package/dist/cjs/serialization/types/EncounterStatus.js +0 -41
- package/dist/cjs/serialization/types/EncounterType.d.ts +0 -10
- package/dist/cjs/serialization/types/EncounterType.js +0 -41
- package/dist/cjs/serialization/types/EncounterUpdate.d.ts +0 -19
- package/dist/cjs/serialization/types/EncounterUpdate.js +0 -50
- package/dist/cjs/serialization/types/FactContext.d.ts +0 -15
- package/dist/cjs/serialization/types/FactContext.js +0 -46
- package/dist/cjs/serialization/types/GenderEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/GenderEnum.js +0 -41
- package/dist/cjs/serialization/types/ParticipantRoleEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/ParticipantRoleEnum.js +0 -41
- package/dist/cjs/serialization/types/Patient.d.ts +0 -17
- package/dist/cjs/serialization/types/Patient.js +0 -48
- package/dist/cjs/serialization/types/PatientUpdate.d.ts +0 -17
- package/dist/cjs/serialization/types/PatientUpdate.js +0 -48
- package/dist/cjs/serialization/types/ResponseAllTemplateSections.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseAllTemplateSections.js +0 -44
- package/dist/cjs/serialization/types/ResponseAllTemplates.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseAllTemplates.js +0 -44
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItem.d.ts +0 -20
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItem.js +0 -51
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItemTemplateSectionsItem.js +0 -45
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItemTranslationsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseAllTemplatesDataItemTranslationsItem.js +0 -45
- package/dist/cjs/serialization/types/ResponseDocumentList.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseDocumentList.js +0 -44
- package/dist/cjs/serialization/types/ResponseDocumentRead.d.ts +0 -23
- package/dist/cjs/serialization/types/ResponseDocumentRead.js +0 -54
- package/dist/cjs/serialization/types/ResponseDocumentReadSectionsItem.d.ts +0 -17
- package/dist/cjs/serialization/types/ResponseDocumentReadSectionsItem.js +0 -48
- package/dist/cjs/serialization/types/ResponseFactGroupsFiltered.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseFactGroupsFiltered.js +0 -44
- package/dist/cjs/serialization/types/ResponseFactGroupsFilteredDataItem.d.ts +0 -16
- package/dist/cjs/serialization/types/ResponseFactGroupsFilteredDataItem.js +0 -47
- package/dist/cjs/serialization/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseFactGroupsFilteredDataItemTranslationsItem.js +0 -45
- package/dist/cjs/serialization/types/ResponseFactUpdate.d.ts +0 -21
- package/dist/cjs/serialization/types/ResponseFactUpdate.js +0 -52
- package/dist/cjs/serialization/types/ResponseFactsCreate.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseFactsCreate.js +0 -44
- package/dist/cjs/serialization/types/ResponseFactsCreateFactsItem.d.ts +0 -20
- package/dist/cjs/serialization/types/ResponseFactsCreateFactsItem.js +0 -51
- package/dist/cjs/serialization/types/ResponseFactsList.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseFactsList.js +0 -44
- package/dist/cjs/serialization/types/ResponseFactsListFactsItem.d.ts +0 -23
- package/dist/cjs/serialization/types/ResponseFactsListFactsItem.js +0 -54
- package/dist/cjs/serialization/types/ResponseFactsListFactsItemEvidenceItem.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseFactsListFactsItemEvidenceItem.js +0 -45
- package/dist/cjs/serialization/types/ResponseFactsUpdate.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseFactsUpdate.js +0 -44
- package/dist/cjs/serialization/types/ResponseFactsUpdateFactsItem.d.ts +0 -21
- package/dist/cjs/serialization/types/ResponseFactsUpdateFactsItem.js +0 -52
- package/dist/cjs/serialization/types/ResponseInteraction.d.ts +0 -23
- package/dist/cjs/serialization/types/ResponseInteraction.js +0 -54
- package/dist/cjs/serialization/types/ResponseInteractionCreate.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseInteractionCreate.js +0 -45
- package/dist/cjs/serialization/types/ResponseInteractions.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseInteractions.js +0 -44
- package/dist/cjs/serialization/types/ResponseMetadataCreate.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseMetadataCreate.js +0 -44
- package/dist/cjs/serialization/types/ResponseMetadataCreateParticipantsRolesItem.d.ts +0 -14
- package/dist/cjs/serialization/types/ResponseMetadataCreateParticipantsRolesItem.js +0 -45
- package/dist/cjs/serialization/types/ResponseRecordingCreate.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseRecordingCreate.js +0 -44
- package/dist/cjs/serialization/types/ResponseRecordingList.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseRecordingList.js +0 -44
- package/dist/cjs/serialization/types/ResponseTranscriptCreate.d.ts +0 -19
- package/dist/cjs/serialization/types/ResponseTranscriptCreate.js +0 -50
- package/dist/cjs/serialization/types/ResponseTranscriptListAll.d.ts +0 -13
- package/dist/cjs/serialization/types/ResponseTranscriptListAll.js +0 -44
- package/dist/cjs/serialization/types/ResponseTranscriptListAllTranscriptsItem.d.ts +0 -16
- package/dist/cjs/serialization/types/ResponseTranscriptListAllTranscriptsItem.js +0 -47
- package/dist/cjs/serialization/types/ResponseTranscriptListFull.d.ts +0 -15
- package/dist/cjs/serialization/types/ResponseTranscriptListFull.js +0 -46
- package/dist/cjs/serialization/types/ResponseTranscriptListFullTranscriptsItem.d.ts +0 -17
- package/dist/cjs/serialization/types/ResponseTranscriptListFullTranscriptsItem.js +0 -48
- package/dist/cjs/serialization/types/Section.d.ts +0 -21
- package/dist/cjs/serialization/types/Section.js +0 -52
- package/dist/cjs/serialization/types/SectionTranslationsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/SectionTranslationsItem.js +0 -45
- package/dist/cjs/serialization/types/SortingDirectionEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/SortingDirectionEnum.js +0 -41
- package/dist/cjs/serialization/types/StreamConfigData.d.ts +0 -15
- package/dist/cjs/serialization/types/StreamConfigData.js +0 -46
- package/dist/cjs/serialization/types/StreamConfigMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamConfigModeOutputLocale.d.ts +0 -10
- package/dist/cjs/serialization/types/StreamConfigModeOutputLocale.js +0 -41
- package/dist/cjs/serialization/types/StreamConfigTranscriptionPrimaryLanguage.d.ts +0 -10
- package/dist/cjs/serialization/types/StreamConfigTranscriptionPrimaryLanguage.js +0 -41
- package/dist/cjs/serialization/types/StreamConfigurationMessage.d.ts +0 -14
- package/dist/cjs/serialization/types/StreamConfigurationMessage.js +0 -45
- package/dist/cjs/serialization/types/StreamEndMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamEndedMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamErrorMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamErrorMessageType.js +0 -39
- package/dist/cjs/serialization/types/StreamFactsMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamFactsMessageType.js +0 -39
- package/dist/cjs/serialization/types/StreamFlushMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamFlushMessageType.js +0 -39
- package/dist/cjs/serialization/types/StreamFlushedMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamFlushedMessageType.js +0 -39
- package/dist/cjs/serialization/types/StreamParticipantRole.d.ts +0 -10
- package/dist/cjs/serialization/types/StreamParticipantRole.js +0 -41
- package/dist/cjs/serialization/types/StreamTranscriptMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamTranscriptMessageType.js +0 -39
- package/dist/cjs/serialization/types/StreamUsageMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/StreamUsageMessageType.js +0 -39
- package/dist/cjs/serialization/types/TemplateFiltered.d.ts +0 -20
- package/dist/cjs/serialization/types/TemplateFiltered.js +0 -51
- package/dist/cjs/serialization/types/TemplateFilteredTemplateSectionsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/TemplateFilteredTemplateSectionsItem.js +0 -45
- package/dist/cjs/serialization/types/TemplateFilteredTranslationsItem.d.ts +0 -14
- package/dist/cjs/serialization/types/TemplateFilteredTranslationsItem.js +0 -45
- package/dist/cjs/serialization/types/TranscribeCommandMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeCommandMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeCommandVariableType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeCommandVariableType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeConfigMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeConfigMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeConfigurationMessage.d.ts +0 -14
- package/dist/cjs/serialization/types/TranscribeConfigurationMessage.js +0 -45
- package/dist/cjs/serialization/types/TranscribeConfigurationMessageConfiguration.d.ts +0 -18
- package/dist/cjs/serialization/types/TranscribeConfigurationMessageConfiguration.js +0 -49
- package/dist/cjs/serialization/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.ts +0 -10
- package/dist/cjs/serialization/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.js +0 -41
- package/dist/cjs/serialization/types/TranscribeEndMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeEndMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeEndedMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeEndedMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeErrorMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeErrorMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeFlushMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeFlushMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeFlushedMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeFlushedMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeTranscriptMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeTranscriptMessageType.js +0 -39
- package/dist/cjs/serialization/types/TranscribeUsageMessageType.d.ts +0 -7
- package/dist/cjs/serialization/types/TranscribeUsageMessageType.js +0 -39
- package/dist/cjs/serialization/types/Transcript.d.ts +0 -17
- package/dist/cjs/serialization/types/Transcript.js +0 -48
- package/dist/cjs/serialization/types/UsageInfo.d.ts +0 -12
- package/dist/cjs/serialization/types/UsageInfo.js +0 -43
- package/dist/cjs/serialization/types/V2DocumentContextTypeEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/V2DocumentContextTypeEnum.js +0 -41
- package/dist/cjs/serialization/types/V2SourceEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/V2SourceEnum.js +0 -41
- package/dist/cjs/serialization/types/WritingStyle.d.ts +0 -12
- package/dist/cjs/serialization/types/WritingStyle.js +0 -43
- package/dist/esm/api/resources/agents/exports.d.mts +0 -2
- package/dist/esm/api/resources/agents/exports.mjs +0 -3
- package/dist/esm/api/resources/agents/types/AgentsMessageStreamResponse.d.mts +0 -10
- package/dist/esm/api/resources/agents/types/AgentsMessageStreamResponse.mjs +0 -4
- package/dist/esm/api/resources/auth/client/requests/AuthGetTokenRequest.d.mts +0 -15
- package/dist/esm/api/resources/auth/client/requests/AuthGetTokenRequest.mjs +0 -4
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/auth/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/auth/exports.d.mts +0 -2
- package/dist/esm/api/resources/auth/exports.mjs +0 -3
- package/dist/esm/api/resources/auth/types/AuthGetTokenRequestGrantType.d.mts +0 -6
- package/dist/esm/api/resources/auth/types/AuthGetTokenRequestGrantType.mjs +0 -6
- package/dist/esm/api/resources/auth/types/AuthTokenRequest.d.mts +0 -2
- package/dist/esm/api/resources/auth/types/GetTokenResponse.d.mts +0 -10
- package/dist/esm/api/resources/auth/types/GetTokenResponse.mjs +0 -4
- package/dist/esm/api/resources/codes/exports.d.mts +0 -2
- package/dist/esm/api/resources/codes/exports.mjs +0 -3
- package/dist/esm/api/resources/documents/client/requests/DocumentsCreateRequest.d.mts +0 -20
- package/dist/esm/api/resources/documents/client/requests/DocumentsDeleteRequest.d.mts +0 -5
- package/dist/esm/api/resources/documents/client/requests/DocumentsGetRequest.d.mts +0 -5
- package/dist/esm/api/resources/documents/client/requests/DocumentsListRequest.d.mts +0 -5
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentCreate.d.mts +0 -31
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentCreate.mjs +0 -4
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentUpdate.d.mts +0 -13
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentUpdate.mjs +0 -4
- package/dist/esm/api/resources/documents/exports.d.mts +0 -2
- package/dist/esm/api/resources/documents/exports.mjs +0 -3
- package/dist/esm/api/resources/documents/types/RequestDocumentCreateContextItem.d.mts +0 -10
- package/dist/esm/api/resources/documents/types/RequestDocumentCreateContextItem.mjs +0 -4
- package/dist/esm/api/resources/documents/types/RequestDocumentUpdateSectionsItem.d.mts +0 -9
- package/dist/esm/api/resources/documents/types/RequestDocumentUpdateSectionsItem.mjs +0 -4
- package/dist/esm/api/resources/documents/types/index.d.mts +0 -2
- package/dist/esm/api/resources/documents/types/index.mjs +0 -2
- package/dist/esm/api/resources/facts/client/requests/FactsListRequest.d.mts +0 -5
- package/dist/esm/api/resources/facts/client/requests/RequestFactUpdate.d.mts +0 -21
- package/dist/esm/api/resources/facts/client/requests/RequestFactUpdate.mjs +0 -4
- package/dist/esm/api/resources/facts/client/requests/RequestFactsCreate.d.mts +0 -17
- package/dist/esm/api/resources/facts/client/requests/RequestFactsCreate.mjs +0 -4
- package/dist/esm/api/resources/facts/client/requests/RequestFactsUpdate.d.mts +0 -16
- package/dist/esm/api/resources/facts/client/requests/RequestFactsUpdate.mjs +0 -4
- package/dist/esm/api/resources/facts/exports.d.mts +0 -2
- package/dist/esm/api/resources/facts/exports.mjs +0 -3
- package/dist/esm/api/resources/facts/types/RequestFactsCreateFactsItem.d.mts +0 -12
- package/dist/esm/api/resources/facts/types/RequestFactsCreateFactsItem.mjs +0 -4
- package/dist/esm/api/resources/facts/types/RequestFactsUpdateFactsItem.d.mts +0 -14
- package/dist/esm/api/resources/facts/types/RequestFactsUpdateFactsItem.mjs +0 -4
- package/dist/esm/api/resources/facts/types/index.d.mts +0 -2
- package/dist/esm/api/resources/facts/types/index.mjs +0 -2
- package/dist/esm/api/resources/interactions/client/requests/InteractionsDeleteRequest.d.mts +0 -5
- package/dist/esm/api/resources/interactions/client/requests/InteractionsDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/interactions/client/requests/InteractionsGetRequest.d.mts +0 -5
- package/dist/esm/api/resources/interactions/client/requests/InteractionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionCreate.d.mts +0 -22
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionCreate.mjs +0 -4
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionUpdate.d.mts +0 -16
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionUpdate.mjs +0 -4
- package/dist/esm/api/resources/interactions/exports.d.mts +0 -2
- package/dist/esm/api/resources/interactions/exports.mjs +0 -3
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestDirection.d.mts +0 -11
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestDirection.mjs +0 -7
- package/dist/esm/api/resources/recordings/client/requests/RecordingsDeleteRequest.d.mts +0 -5
- package/dist/esm/api/resources/recordings/client/requests/RecordingsDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/recordings/client/requests/RecordingsGetRequest.d.mts +0 -5
- package/dist/esm/api/resources/recordings/client/requests/RecordingsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.d.mts +0 -5
- package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.mjs +0 -2
- package/dist/esm/api/resources/recordings/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/recordings/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/recordings/exports.d.mts +0 -2
- package/dist/esm/api/resources/recordings/exports.mjs +0 -3
- package/dist/esm/api/resources/stream/exports.d.mts +0 -2
- package/dist/esm/api/resources/stream/exports.mjs +0 -3
- package/dist/esm/api/resources/templates/client/requests/TemplatesSectionsListRequest.d.mts +0 -17
- package/dist/esm/api/resources/templates/client/requests/TemplatesSectionsListRequest.mjs +0 -4
- package/dist/esm/api/resources/templates/exports.d.mts +0 -2
- package/dist/esm/api/resources/templates/exports.mjs +0 -3
- package/dist/esm/api/resources/transcribe/exports.d.mts +0 -2
- package/dist/esm/api/resources/transcribe/exports.mjs +0 -3
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptCreate.d.mts +0 -28
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptCreate.mjs +0 -4
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsDeleteRequest.d.mts +0 -5
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsGetRequest.d.mts +0 -5
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsGetStatusRequest.d.mts +0 -5
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsGetStatusRequest.mjs +0 -2
- package/dist/esm/api/resources/transcripts/exports.d.mts +0 -2
- package/dist/esm/api/resources/transcripts/exports.mjs +0 -3
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateModelName.d.mts +0 -12
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateModelName.mjs +0 -8
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.mts +0 -10
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.mjs +0 -4
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.mts +0 -21
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.mjs +0 -17
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -12
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -8
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.mts +0 -21
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.mjs +0 -17
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestDirection.d.mts +0 -11
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestDirection.mjs +0 -7
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestSort.d.mts +0 -11
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestSort.mjs +0 -7
- package/dist/esm/api/resources/transcripts/types/index.d.mts +0 -1
- package/dist/esm/api/resources/transcripts/types/index.mjs +0 -1
- package/dist/esm/api/types/AgentsMessageSendParams.d.mts +0 -10
- package/dist/esm/api/types/AgentsMessageSendParams.mjs +0 -4
- package/dist/esm/api/types/AgentsTaskArtifactUpdateEvent.d.mts +0 -19
- package/dist/esm/api/types/AgentsTaskArtifactUpdateEvent.mjs +0 -4
- package/dist/esm/api/types/AgentsTaskStatusUpdateEvent.d.mts +0 -17
- package/dist/esm/api/types/AgentsTaskStatusUpdateEvent.mjs +0 -4
- package/dist/esm/api/types/AuthTokenRequest.d.mts +0 -14
- package/dist/esm/api/types/AuthTokenRequest.mjs +0 -2
- package/dist/esm/api/types/AuthTokenRequestGrantType.d.mts +0 -5
- package/dist/esm/api/types/AuthTokenRequestGrantType.mjs +0 -5
- package/dist/esm/api/types/CommonTranscript.d.mts +0 -17
- package/dist/esm/api/types/CommonTranscript.mjs +0 -4
- package/dist/esm/api/types/DocumentContextData.d.mts +0 -14
- package/dist/esm/api/types/DocumentContextData.mjs +0 -4
- package/dist/esm/api/types/DocumentTemplate.d.mts +0 -14
- package/dist/esm/api/types/DocumentTemplate.mjs +0 -4
- package/dist/esm/api/types/DocumentsContextData.d.mts +0 -14
- package/dist/esm/api/types/DocumentsContextData.mjs +0 -4
- package/dist/esm/api/types/DocumentsContextTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/DocumentsContextTypeEnum.mjs +0 -8
- package/dist/esm/api/types/DocumentsCreateRequestBody.d.mts +0 -8
- package/dist/esm/api/types/DocumentsCreateRequestBody.mjs +0 -2
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -16
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateId.mjs +0 -4
- package/dist/esm/api/types/DocumentsTemplateWithSectionIds.d.mts +0 -12
- package/dist/esm/api/types/DocumentsTemplateWithSectionIds.mjs +0 -4
- package/dist/esm/api/types/Encounter.d.mts +0 -16
- package/dist/esm/api/types/Encounter.mjs +0 -4
- package/dist/esm/api/types/EncounterPeriod.d.mts +0 -9
- package/dist/esm/api/types/EncounterPeriod.mjs +0 -4
- package/dist/esm/api/types/EncounterStatus.d.mts +0 -12
- package/dist/esm/api/types/EncounterStatus.mjs +0 -11
- package/dist/esm/api/types/EncounterType.d.mts +0 -11
- package/dist/esm/api/types/EncounterType.mjs +0 -10
- package/dist/esm/api/types/EncounterUpdate.d.mts +0 -16
- package/dist/esm/api/types/EncounterUpdate.mjs +0 -4
- package/dist/esm/api/types/FactContext.d.mts +0 -12
- package/dist/esm/api/types/FactContext.mjs +0 -4
- package/dist/esm/api/types/GenderEnum.d.mts +0 -10
- package/dist/esm/api/types/GenderEnum.mjs +0 -9
- package/dist/esm/api/types/ParticipantRoleEnum.d.mts +0 -9
- package/dist/esm/api/types/ParticipantRoleEnum.mjs +0 -8
- package/dist/esm/api/types/Patient.d.mts +0 -16
- package/dist/esm/api/types/Patient.mjs +0 -4
- package/dist/esm/api/types/PatientUpdate.d.mts +0 -16
- package/dist/esm/api/types/PatientUpdate.mjs +0 -4
- package/dist/esm/api/types/ResponseAllTemplateSections.d.mts +0 -8
- package/dist/esm/api/types/ResponseAllTemplateSections.mjs +0 -4
- package/dist/esm/api/types/ResponseAllTemplates.d.mts +0 -8
- package/dist/esm/api/types/ResponseAllTemplates.mjs +0 -4
- package/dist/esm/api/types/ResponseAllTemplatesDataItem.d.mts +0 -20
- package/dist/esm/api/types/ResponseAllTemplatesDataItem.mjs +0 -4
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.mts +0 -10
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTranslationsItem.d.mts +0 -11
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTranslationsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseDocumentList.d.mts +0 -7
- package/dist/esm/api/types/ResponseDocumentList.mjs +0 -4
- package/dist/esm/api/types/ResponseDocumentRead.d.mts +0 -22
- package/dist/esm/api/types/ResponseDocumentRead.mjs +0 -4
- package/dist/esm/api/types/ResponseDocumentReadSectionsItem.d.mts +0 -17
- package/dist/esm/api/types/ResponseDocumentReadSectionsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactGroupsFiltered.d.mts +0 -7
- package/dist/esm/api/types/ResponseFactGroupsFiltered.mjs +0 -4
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItem.d.mts +0 -9
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.mts +0 -8
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactUpdate.d.mts +0 -22
- package/dist/esm/api/types/ResponseFactUpdate.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsCreate.d.mts +0 -8
- package/dist/esm/api/types/ResponseFactsCreate.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsCreateFactsItem.d.mts +0 -20
- package/dist/esm/api/types/ResponseFactsCreateFactsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsList.d.mts +0 -8
- package/dist/esm/api/types/ResponseFactsList.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsListFactsItem.d.mts +0 -23
- package/dist/esm/api/types/ResponseFactsListFactsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsListFactsItemEvidenceItem.d.mts +0 -11
- package/dist/esm/api/types/ResponseFactsListFactsItemEvidenceItem.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsUpdate.d.mts +0 -8
- package/dist/esm/api/types/ResponseFactsUpdate.mjs +0 -4
- package/dist/esm/api/types/ResponseFactsUpdateFactsItem.d.mts +0 -22
- package/dist/esm/api/types/ResponseFactsUpdateFactsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseInteraction.d.mts +0 -24
- package/dist/esm/api/types/ResponseInteraction.mjs +0 -4
- package/dist/esm/api/types/ResponseInteractionCreate.d.mts +0 -10
- package/dist/esm/api/types/ResponseInteractionCreate.mjs +0 -4
- package/dist/esm/api/types/ResponseInteractions.d.mts +0 -7
- package/dist/esm/api/types/ResponseInteractions.mjs +0 -4
- package/dist/esm/api/types/ResponseMetadataCreate.d.mts +0 -7
- package/dist/esm/api/types/ResponseMetadataCreate.mjs +0 -4
- package/dist/esm/api/types/ResponseMetadataCreateParticipantsRolesItem.d.mts +0 -10
- package/dist/esm/api/types/ResponseMetadataCreateParticipantsRolesItem.mjs +0 -4
- package/dist/esm/api/types/ResponseRecordingCreate.d.mts +0 -8
- package/dist/esm/api/types/ResponseRecordingCreate.mjs +0 -4
- package/dist/esm/api/types/ResponseRecordingList.d.mts +0 -8
- package/dist/esm/api/types/ResponseRecordingList.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptCreate.d.mts +0 -13
- package/dist/esm/api/types/ResponseTranscriptCreate.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptCreateTranscriptsItem.d.mts +0 -17
- package/dist/esm/api/types/ResponseTranscriptCreateTranscriptsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptListAll.d.mts +0 -7
- package/dist/esm/api/types/ResponseTranscriptListAll.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptListAllTranscriptsItem.d.mts +0 -9
- package/dist/esm/api/types/ResponseTranscriptListAllTranscriptsItem.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptListFull.d.mts +0 -10
- package/dist/esm/api/types/ResponseTranscriptListFull.mjs +0 -4
- package/dist/esm/api/types/ResponseTranscriptListFullTranscriptsItem.d.mts +0 -17
- package/dist/esm/api/types/ResponseTranscriptListFullTranscriptsItem.mjs +0 -4
- package/dist/esm/api/types/Section.d.mts +0 -22
- package/dist/esm/api/types/Section.mjs +0 -4
- package/dist/esm/api/types/SectionTranslationsItem.d.mts +0 -11
- package/dist/esm/api/types/SectionTranslationsItem.mjs +0 -4
- package/dist/esm/api/types/SortingDirectionEnum.d.mts +0 -8
- package/dist/esm/api/types/SortingDirectionEnum.mjs +0 -7
- package/dist/esm/api/types/StreamConfigData.d.mts +0 -8
- package/dist/esm/api/types/StreamConfigData.mjs +0 -4
- package/dist/esm/api/types/StreamConfigMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamConfigMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamConfigModeOutputLocale.d.mts +0 -21
- package/dist/esm/api/types/StreamConfigModeOutputLocale.mjs +0 -17
- package/dist/esm/api/types/StreamConfigTranscriptionPrimaryLanguage.d.mts +0 -21
- package/dist/esm/api/types/StreamConfigTranscriptionPrimaryLanguage.mjs +0 -17
- package/dist/esm/api/types/StreamConfigurationMessage.d.mts +0 -8
- package/dist/esm/api/types/StreamConfigurationMessage.mjs +0 -4
- package/dist/esm/api/types/StreamEndMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamEndMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamEndedMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamEndedMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamErrorMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamErrorMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamFactsMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamFactsMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamFlushMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamFlushMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamFlushedMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamFlushedMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamParticipantRole.d.mts +0 -12
- package/dist/esm/api/types/StreamParticipantRole.mjs +0 -8
- package/dist/esm/api/types/StreamTranscriptMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamTranscriptMessageType.mjs +0 -4
- package/dist/esm/api/types/StreamUsageMessageType.d.mts +0 -4
- package/dist/esm/api/types/StreamUsageMessageType.mjs +0 -4
- package/dist/esm/api/types/TemplateFiltered.d.mts +0 -20
- package/dist/esm/api/types/TemplateFiltered.mjs +0 -4
- package/dist/esm/api/types/TemplateFilteredTemplateSectionsItem.d.mts +0 -10
- package/dist/esm/api/types/TemplateFilteredTemplateSectionsItem.mjs +0 -4
- package/dist/esm/api/types/TemplateFilteredTranslationsItem.d.mts +0 -11
- package/dist/esm/api/types/TemplateFilteredTranslationsItem.mjs +0 -4
- package/dist/esm/api/types/TranscribeCommandMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeCommandMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeCommandVariableType.d.mts +0 -5
- package/dist/esm/api/types/TranscribeCommandVariableType.mjs +0 -5
- package/dist/esm/api/types/TranscribeConfigMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeConfigMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeConfigurationMessage.d.mts +0 -8
- package/dist/esm/api/types/TranscribeConfigurationMessage.mjs +0 -4
- package/dist/esm/api/types/TranscribeConfigurationMessageConfiguration.d.mts +0 -16
- package/dist/esm/api/types/TranscribeConfigurationMessageConfiguration.mjs +0 -4
- package/dist/esm/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.mts +0 -21
- package/dist/esm/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.mjs +0 -17
- package/dist/esm/api/types/TranscribeEndMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeEndMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeEndedMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeEndedMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeErrorMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeErrorMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeFlushMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeFlushMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeFlushedMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeFlushedMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeTranscriptMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeTranscriptMessageType.mjs +0 -4
- package/dist/esm/api/types/TranscribeUsageMessageType.d.mts +0 -4
- package/dist/esm/api/types/TranscribeUsageMessageType.mjs +0 -4
- package/dist/esm/api/types/Transcript.d.mts +0 -17
- package/dist/esm/api/types/Transcript.mjs +0 -4
- package/dist/esm/api/types/UsageInfo.d.mts +0 -6
- package/dist/esm/api/types/UsageInfo.mjs +0 -4
- package/dist/esm/api/types/V2DocumentContextTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/V2DocumentContextTypeEnum.mjs +0 -8
- package/dist/esm/api/types/V2SourceEnum.d.mts +0 -9
- package/dist/esm/api/types/V2SourceEnum.mjs +0 -8
- package/dist/esm/api/types/WritingStyle.d.mts +0 -7
- package/dist/esm/api/types/WritingStyle.mjs +0 -4
- package/dist/esm/auth/BearerAuthProvider.d.mts +0 -20
- package/dist/esm/auth/BearerAuthProvider.mjs +0 -42
- package/dist/esm/auth/OAuthRopcAuthProvider.d.mts +0 -33
- package/dist/esm/auth/OAuthRopcAuthProvider.mjs +0 -93
- package/dist/esm/core/auth/OAuthTokenProvider.d.mts +0 -25
- package/dist/esm/core/auth/OAuthTokenProvider.mjs +0 -49
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.mts +0 -30
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.mjs +0 -243
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.mts +0 -21
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.mjs +0 -122
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.mts +0 -31
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.mjs +0 -225
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.d.mts +0 -18
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.mjs +0 -23
- package/dist/esm/core/pagination/CustomPager.d.mts +0 -67
- package/dist/esm/core/pagination/CustomPager.mjs +0 -189
- package/dist/esm/core/pagination/Pageable.d.mts +0 -14
- package/dist/esm/core/pagination/Pageable.mjs +0 -6
- package/dist/esm/core/stream/Stream.d.mts +0 -46
- package/dist/esm/core/stream/Stream.mjs +0 -164
- package/dist/esm/core/stream/index.d.mts +0 -1
- package/dist/esm/core/stream/index.mjs +0 -1
- package/dist/esm/custom/BearerProvider.d.mts +0 -13
- package/dist/esm/custom/BearerProvider.mjs +0 -23
- package/dist/esm/custom/CortiOAuthAuthProvider.d.mts +0 -7
- package/dist/esm/custom/CortiOAuthAuthProvider.mjs +0 -11
- package/dist/esm/custom/CortiWebSocketClient.d.mts +0 -14
- package/dist/esm/custom/CortiWebSocketClient.mjs +0 -27
- package/dist/esm/custom/CustomStream.d.mts +0 -8
- package/dist/esm/custom/CustomStream.mjs +0 -25
- package/dist/esm/custom/CustomStreamSocket.d.mts +0 -15
- package/dist/esm/custom/CustomStreamSocket.mjs +0 -33
- package/dist/esm/custom/CustomTranscribe.d.mts +0 -6
- package/dist/esm/custom/CustomTranscribe.mjs +0 -25
- package/dist/esm/custom/CustomTranscribeSocket.d.mts +0 -15
- package/dist/esm/custom/CustomTranscribeSocket.mjs +0 -33
- package/dist/esm/custom/RefreshBearerProvider.d.mts +0 -33
- package/dist/esm/custom/RefreshBearerProvider.mjs +0 -75
- package/dist/esm/custom/createAuthProvider.d.mts +0 -6
- package/dist/esm/custom/createAuthProvider.mjs +0 -18
- package/dist/esm/custom/environments.d.mts +0 -10
- package/dist/esm/custom/environments.mjs +0 -9
- package/dist/esm/custom/index.d.mts +0 -1
- package/dist/esm/custom/index.mjs +0 -1
- package/dist/esm/custom/utils/getEnvironmentFromString.d.mts +0 -5
- package/dist/esm/custom/utils/getEnvironmentFromString.mjs +0 -10
- package/dist/esm/custom/utils/localStorage.d.mts +0 -4
- package/dist/esm/custom/utils/localStorage.mjs +0 -34
- package/dist/esm/custom/utils/pkce.d.mts +0 -2
- package/dist/esm/custom/utils/pkce.mjs +0 -24
- package/dist/esm/custom/utils/tokenRequest.d.mts +0 -12
- package/dist/esm/custom/utils/tokenRequest.mjs +0 -42
- package/dist/esm/serialization/resources/agents/types/AgentsMessageStreamResponse.d.mts +0 -19
- package/dist/esm/serialization/resources/agents/types/AgentsMessageStreamResponse.mjs +0 -14
- package/dist/esm/serialization/resources/auth/client/index.d.mts +0 -1
- package/dist/esm/serialization/resources/auth/client/index.mjs +0 -1
- package/dist/esm/serialization/resources/auth/client/requests/AuthGetTokenRequest.d.mts +0 -13
- package/dist/esm/serialization/resources/auth/client/requests/AuthGetTokenRequest.mjs +0 -8
- package/dist/esm/serialization/resources/auth/client/requests/index.d.mts +0 -1
- package/dist/esm/serialization/resources/auth/client/requests/index.mjs +0 -1
- package/dist/esm/serialization/resources/auth/types/AuthGetTokenRequestGrantType.d.mts +0 -7
- package/dist/esm/serialization/resources/auth/types/AuthGetTokenRequestGrantType.mjs +0 -3
- package/dist/esm/serialization/resources/auth/types/AuthTokenRequest.d.mts +0 -12
- package/dist/esm/serialization/resources/auth/types/AuthTokenRequest.mjs +0 -14
- package/dist/esm/serialization/resources/auth/types/GetTokenResponse.d.mts +0 -16
- package/dist/esm/serialization/resources/auth/types/GetTokenResponse.mjs +0 -11
- package/dist/esm/serialization/resources/documents/client/requests/RequestDocumentCreate.d.mts +0 -19
- package/dist/esm/serialization/resources/documents/client/requests/RequestDocumentCreate.mjs +0 -14
- package/dist/esm/serialization/resources/documents/client/requests/RequestDocumentUpdate.d.mts +0 -14
- package/dist/esm/serialization/resources/documents/client/requests/RequestDocumentUpdate.mjs +0 -9
- package/dist/esm/serialization/resources/documents/types/RequestDocumentCreateContextItem.d.mts +0 -15
- package/dist/esm/serialization/resources/documents/types/RequestDocumentCreateContextItem.mjs +0 -10
- package/dist/esm/serialization/resources/documents/types/RequestDocumentUpdateSectionsItem.d.mts +0 -15
- package/dist/esm/serialization/resources/documents/types/RequestDocumentUpdateSectionsItem.mjs +0 -10
- package/dist/esm/serialization/resources/documents/types/index.d.mts +0 -2
- package/dist/esm/serialization/resources/documents/types/index.mjs +0 -2
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactUpdate.d.mts +0 -16
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactUpdate.mjs +0 -11
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactsCreate.d.mts +0 -13
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactsCreate.mjs +0 -8
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactsUpdate.d.mts +0 -13
- package/dist/esm/serialization/resources/facts/client/requests/RequestFactsUpdate.mjs +0 -8
- package/dist/esm/serialization/resources/facts/types/RequestFactsCreateFactsItem.d.mts +0 -15
- package/dist/esm/serialization/resources/facts/types/RequestFactsCreateFactsItem.mjs +0 -10
- package/dist/esm/serialization/resources/facts/types/RequestFactsUpdateFactsItem.d.mts +0 -16
- package/dist/esm/serialization/resources/facts/types/RequestFactsUpdateFactsItem.mjs +0 -11
- package/dist/esm/serialization/resources/facts/types/index.d.mts +0 -2
- package/dist/esm/serialization/resources/facts/types/index.mjs +0 -2
- package/dist/esm/serialization/resources/interactions/client/requests/RequestInteractionCreate.d.mts +0 -17
- package/dist/esm/serialization/resources/interactions/client/requests/RequestInteractionCreate.mjs +0 -12
- package/dist/esm/serialization/resources/interactions/client/requests/RequestInteractionUpdate.d.mts +0 -17
- package/dist/esm/serialization/resources/interactions/client/requests/RequestInteractionUpdate.mjs +0 -12
- package/dist/esm/serialization/resources/interactions/types/InteractionsListRequestDirection.d.mts +0 -10
- package/dist/esm/serialization/resources/interactions/types/InteractionsListRequestDirection.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptCreate.d.mts +0 -22
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptCreate.mjs +0 -17
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreateModelName.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreateModelName.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.mts +0 -14
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.mjs +0 -9
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsListRequestSort.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsListRequestSort.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/transcripts/types/index.mjs +0 -1
- package/dist/esm/serialization/types/AgentsMessageSendParams.d.mts +0 -16
- package/dist/esm/serialization/types/AgentsMessageSendParams.mjs +0 -11
- package/dist/esm/serialization/types/AgentsTaskArtifactUpdateEvent.d.mts +0 -19
- package/dist/esm/serialization/types/AgentsTaskArtifactUpdateEvent.mjs +0 -14
- package/dist/esm/serialization/types/AgentsTaskStatusUpdateEvent.d.mts +0 -18
- package/dist/esm/serialization/types/AgentsTaskStatusUpdateEvent.mjs +0 -13
- package/dist/esm/serialization/types/AuthTokenRequest.d.mts +0 -13
- package/dist/esm/serialization/types/AuthTokenRequest.mjs +0 -9
- package/dist/esm/serialization/types/AuthTokenRequestGrantType.d.mts +0 -7
- package/dist/esm/serialization/types/AuthTokenRequestGrantType.mjs +0 -3
- package/dist/esm/serialization/types/CommonTranscript.d.mts +0 -17
- package/dist/esm/serialization/types/CommonTranscript.mjs +0 -12
- package/dist/esm/serialization/types/DocumentContextData.d.mts +0 -12
- package/dist/esm/serialization/types/DocumentContextData.mjs +0 -11
- package/dist/esm/serialization/types/DocumentTemplate.d.mts +0 -16
- package/dist/esm/serialization/types/DocumentTemplate.mjs +0 -11
- package/dist/esm/serialization/types/DocumentsContextData.d.mts +0 -12
- package/dist/esm/serialization/types/DocumentsContextData.mjs +0 -11
- package/dist/esm/serialization/types/DocumentsContextTypeEnum.d.mts +0 -10
- package/dist/esm/serialization/types/DocumentsContextTypeEnum.mjs +0 -5
- package/dist/esm/serialization/types/DocumentsCreateRequestBody.d.mts +0 -9
- package/dist/esm/serialization/types/DocumentsCreateRequestBody.mjs +0 -8
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -18
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.mjs +0 -13
- package/dist/esm/serialization/types/DocumentsTemplateWithSectionIds.d.mts +0 -15
- package/dist/esm/serialization/types/DocumentsTemplateWithSectionIds.mjs +0 -10
- package/dist/esm/serialization/types/Encounter.d.mts +0 -19
- package/dist/esm/serialization/types/Encounter.mjs +0 -14
- package/dist/esm/serialization/types/EncounterPeriod.d.mts +0 -13
- package/dist/esm/serialization/types/EncounterPeriod.mjs +0 -8
- package/dist/esm/serialization/types/EncounterStatus.d.mts +0 -10
- package/dist/esm/serialization/types/EncounterStatus.mjs +0 -5
- package/dist/esm/serialization/types/EncounterType.d.mts +0 -10
- package/dist/esm/serialization/types/EncounterType.mjs +0 -5
- package/dist/esm/serialization/types/EncounterUpdate.d.mts +0 -19
- package/dist/esm/serialization/types/EncounterUpdate.mjs +0 -14
- package/dist/esm/serialization/types/FactContext.d.mts +0 -15
- package/dist/esm/serialization/types/FactContext.mjs +0 -10
- package/dist/esm/serialization/types/GenderEnum.d.mts +0 -10
- package/dist/esm/serialization/types/GenderEnum.mjs +0 -5
- package/dist/esm/serialization/types/ParticipantRoleEnum.d.mts +0 -10
- package/dist/esm/serialization/types/ParticipantRoleEnum.mjs +0 -5
- package/dist/esm/serialization/types/Patient.d.mts +0 -17
- package/dist/esm/serialization/types/Patient.mjs +0 -12
- package/dist/esm/serialization/types/PatientUpdate.d.mts +0 -17
- package/dist/esm/serialization/types/PatientUpdate.mjs +0 -12
- package/dist/esm/serialization/types/ResponseAllTemplateSections.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseAllTemplateSections.mjs +0 -8
- package/dist/esm/serialization/types/ResponseAllTemplates.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseAllTemplates.mjs +0 -8
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItem.d.mts +0 -20
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItem.mjs +0 -15
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItemTemplateSectionsItem.mjs +0 -9
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItemTranslationsItem.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseAllTemplatesDataItemTranslationsItem.mjs +0 -9
- package/dist/esm/serialization/types/ResponseDocumentList.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseDocumentList.mjs +0 -8
- package/dist/esm/serialization/types/ResponseDocumentRead.d.mts +0 -23
- package/dist/esm/serialization/types/ResponseDocumentRead.mjs +0 -18
- package/dist/esm/serialization/types/ResponseDocumentReadSectionsItem.d.mts +0 -17
- package/dist/esm/serialization/types/ResponseDocumentReadSectionsItem.mjs +0 -12
- package/dist/esm/serialization/types/ResponseFactGroupsFiltered.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseFactGroupsFiltered.mjs +0 -8
- package/dist/esm/serialization/types/ResponseFactGroupsFilteredDataItem.d.mts +0 -16
- package/dist/esm/serialization/types/ResponseFactGroupsFilteredDataItem.mjs +0 -11
- package/dist/esm/serialization/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseFactGroupsFilteredDataItemTranslationsItem.mjs +0 -9
- package/dist/esm/serialization/types/ResponseFactUpdate.d.mts +0 -21
- package/dist/esm/serialization/types/ResponseFactUpdate.mjs +0 -16
- package/dist/esm/serialization/types/ResponseFactsCreate.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseFactsCreate.mjs +0 -8
- package/dist/esm/serialization/types/ResponseFactsCreateFactsItem.d.mts +0 -20
- package/dist/esm/serialization/types/ResponseFactsCreateFactsItem.mjs +0 -15
- package/dist/esm/serialization/types/ResponseFactsList.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseFactsList.mjs +0 -8
- package/dist/esm/serialization/types/ResponseFactsListFactsItem.d.mts +0 -23
- package/dist/esm/serialization/types/ResponseFactsListFactsItem.mjs +0 -18
- package/dist/esm/serialization/types/ResponseFactsListFactsItemEvidenceItem.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseFactsListFactsItemEvidenceItem.mjs +0 -9
- package/dist/esm/serialization/types/ResponseFactsUpdate.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseFactsUpdate.mjs +0 -8
- package/dist/esm/serialization/types/ResponseFactsUpdateFactsItem.d.mts +0 -21
- package/dist/esm/serialization/types/ResponseFactsUpdateFactsItem.mjs +0 -16
- package/dist/esm/serialization/types/ResponseInteraction.d.mts +0 -23
- package/dist/esm/serialization/types/ResponseInteraction.mjs +0 -18
- package/dist/esm/serialization/types/ResponseInteractionCreate.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseInteractionCreate.mjs +0 -9
- package/dist/esm/serialization/types/ResponseInteractions.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseInteractions.mjs +0 -8
- package/dist/esm/serialization/types/ResponseMetadataCreate.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseMetadataCreate.mjs +0 -8
- package/dist/esm/serialization/types/ResponseMetadataCreateParticipantsRolesItem.d.mts +0 -14
- package/dist/esm/serialization/types/ResponseMetadataCreateParticipantsRolesItem.mjs +0 -9
- package/dist/esm/serialization/types/ResponseRecordingCreate.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseRecordingCreate.mjs +0 -8
- package/dist/esm/serialization/types/ResponseRecordingList.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseRecordingList.mjs +0 -8
- package/dist/esm/serialization/types/ResponseTranscriptCreate.d.mts +0 -19
- package/dist/esm/serialization/types/ResponseTranscriptCreate.mjs +0 -14
- package/dist/esm/serialization/types/ResponseTranscriptListAll.d.mts +0 -13
- package/dist/esm/serialization/types/ResponseTranscriptListAll.mjs +0 -8
- package/dist/esm/serialization/types/ResponseTranscriptListAllTranscriptsItem.d.mts +0 -16
- package/dist/esm/serialization/types/ResponseTranscriptListAllTranscriptsItem.mjs +0 -11
- package/dist/esm/serialization/types/ResponseTranscriptListFull.d.mts +0 -15
- package/dist/esm/serialization/types/ResponseTranscriptListFull.mjs +0 -10
- package/dist/esm/serialization/types/ResponseTranscriptListFullTranscriptsItem.d.mts +0 -17
- package/dist/esm/serialization/types/ResponseTranscriptListFullTranscriptsItem.mjs +0 -12
- package/dist/esm/serialization/types/Section.d.mts +0 -21
- package/dist/esm/serialization/types/Section.mjs +0 -16
- package/dist/esm/serialization/types/SectionTranslationsItem.d.mts +0 -14
- package/dist/esm/serialization/types/SectionTranslationsItem.mjs +0 -9
- package/dist/esm/serialization/types/SortingDirectionEnum.d.mts +0 -10
- package/dist/esm/serialization/types/SortingDirectionEnum.mjs +0 -5
- package/dist/esm/serialization/types/StreamConfigData.d.mts +0 -15
- package/dist/esm/serialization/types/StreamConfigData.mjs +0 -10
- package/dist/esm/serialization/types/StreamConfigMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamConfigMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamConfigModeOutputLocale.d.mts +0 -10
- package/dist/esm/serialization/types/StreamConfigModeOutputLocale.mjs +0 -5
- package/dist/esm/serialization/types/StreamConfigTranscriptionPrimaryLanguage.d.mts +0 -10
- package/dist/esm/serialization/types/StreamConfigTranscriptionPrimaryLanguage.mjs +0 -5
- package/dist/esm/serialization/types/StreamConfigurationMessage.d.mts +0 -14
- package/dist/esm/serialization/types/StreamConfigurationMessage.mjs +0 -9
- package/dist/esm/serialization/types/StreamEndMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamEndMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamEndedMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamEndedMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamErrorMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamErrorMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamFactsMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamFactsMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamFlushMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamFlushMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamFlushedMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamFlushedMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamParticipantRole.d.mts +0 -10
- package/dist/esm/serialization/types/StreamParticipantRole.mjs +0 -5
- package/dist/esm/serialization/types/StreamTranscriptMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamTranscriptMessageType.mjs +0 -3
- package/dist/esm/serialization/types/StreamUsageMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/StreamUsageMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TemplateFiltered.d.mts +0 -20
- package/dist/esm/serialization/types/TemplateFiltered.mjs +0 -15
- package/dist/esm/serialization/types/TemplateFilteredTemplateSectionsItem.d.mts +0 -14
- package/dist/esm/serialization/types/TemplateFilteredTemplateSectionsItem.mjs +0 -9
- package/dist/esm/serialization/types/TemplateFilteredTranslationsItem.d.mts +0 -14
- package/dist/esm/serialization/types/TemplateFilteredTranslationsItem.mjs +0 -9
- package/dist/esm/serialization/types/TranscribeCommandMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeCommandMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeCommandVariableType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeCommandVariableType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeConfigMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeConfigMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeConfigurationMessage.d.mts +0 -14
- package/dist/esm/serialization/types/TranscribeConfigurationMessage.mjs +0 -9
- package/dist/esm/serialization/types/TranscribeConfigurationMessageConfiguration.d.mts +0 -18
- package/dist/esm/serialization/types/TranscribeConfigurationMessageConfiguration.mjs +0 -13
- package/dist/esm/serialization/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.mts +0 -10
- package/dist/esm/serialization/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.mjs +0 -5
- package/dist/esm/serialization/types/TranscribeEndMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeEndMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeEndedMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeEndedMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeErrorMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeErrorMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeFlushMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeFlushMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeFlushedMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeFlushedMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeTranscriptMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeTranscriptMessageType.mjs +0 -3
- package/dist/esm/serialization/types/TranscribeUsageMessageType.d.mts +0 -7
- package/dist/esm/serialization/types/TranscribeUsageMessageType.mjs +0 -3
- package/dist/esm/serialization/types/Transcript.d.mts +0 -17
- package/dist/esm/serialization/types/Transcript.mjs +0 -12
- package/dist/esm/serialization/types/UsageInfo.d.mts +0 -12
- package/dist/esm/serialization/types/UsageInfo.mjs +0 -7
- package/dist/esm/serialization/types/V2DocumentContextTypeEnum.d.mts +0 -10
- package/dist/esm/serialization/types/V2DocumentContextTypeEnum.mjs +0 -5
- package/dist/esm/serialization/types/V2SourceEnum.d.mts +0 -10
- package/dist/esm/serialization/types/V2SourceEnum.mjs +0 -5
- package/dist/esm/serialization/types/WritingStyle.d.mts +0 -12
- package/dist/esm/serialization/types/WritingStyle.mjs +0 -7
- package/reference.md +0 -2748
- /package/dist/cjs/api/{resources/auth/types/AuthTokenRequest.js → types/AgentsErrorResponse.js} +0 -0
- /package/dist/cjs/api/{resources/documents/client/requests/DocumentsCreateRequest.js → types/AgentsValidationError.js} +0 -0
- /package/dist/cjs/api/{resources/documents/client/requests/DocumentsDeleteRequest.js → types/AgentsValidationErrorErrorsItem.js} +0 -0
- /package/dist/cjs/api/{resources/documents/client/requests/DocumentsGetRequest.js → types/AgentsValidationErrorResponse.js} +0 -0
- /package/dist/cjs/api/{resources/documents/client/requests/DocumentsListRequest.js → types/CodesFilter.js} +0 -0
- /package/dist/cjs/api/{resources/facts/client/requests/FactsListRequest.js → types/CodesGeneralReadResponseAlternativesItem.js} +0 -0
- /package/dist/esm/api/{resources/auth/types/AuthTokenRequest.mjs → types/AgentsErrorResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/documents/client/requests/DocumentsCreateRequest.mjs → types/AgentsValidationError.mjs} +0 -0
- /package/dist/esm/api/{resources/documents/client/requests/DocumentsDeleteRequest.mjs → types/AgentsValidationErrorErrorsItem.mjs} +0 -0
- /package/dist/esm/api/{resources/documents/client/requests/DocumentsGetRequest.mjs → types/AgentsValidationErrorResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/documents/client/requests/DocumentsListRequest.mjs → types/CodesFilter.mjs} +0 -0
- /package/dist/esm/api/{resources/facts/client/requests/FactsListRequest.mjs → types/CodesGeneralReadResponseAlternativesItem.mjs} +0 -0
package/dist/cjs/custom/{OAuthAuthCodeAuthProvider.d.ts → auth/OAuthAuthCodeAuthProvider.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OAuthAuthProvider } from "
|
|
2
|
-
import type { BaseClientOptions } from "
|
|
3
|
-
import * as core from "
|
|
1
|
+
import type { OAuthAuthProvider } from "../../auth/OAuthAuthProvider.js";
|
|
2
|
+
import type { BaseClientOptions } from "../../BaseClient.js";
|
|
3
|
+
import * as core from "../../core/index.js";
|
|
4
4
|
export declare class OAuthAuthCodeAuthProvider implements core.AuthProvider {
|
|
5
5
|
private readonly options;
|
|
6
6
|
private readonly authClient;
|
|
@@ -43,10 +43,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.OAuthAuthCodeAuthProvider = void 0;
|
|
46
|
-
const core = __importStar(require("
|
|
47
|
-
const errors = __importStar(require("
|
|
46
|
+
const core = __importStar(require("../../core/index.js"));
|
|
47
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
48
48
|
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
|
-
const oauthAuthHelpers_js_1 = require("
|
|
49
|
+
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
50
50
|
class OAuthAuthCodeAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OAuthAuthProvider } from "
|
|
2
|
-
import type { BaseClientOptions } from "
|
|
3
|
-
import * as core from "
|
|
1
|
+
import type { OAuthAuthProvider } from "../../auth/OAuthAuthProvider.js";
|
|
2
|
+
import type { BaseClientOptions } from "../../BaseClient.js";
|
|
3
|
+
import * as core from "../../core/index.js";
|
|
4
4
|
export declare class OAuthPkceAuthProvider implements core.AuthProvider {
|
|
5
5
|
private readonly options;
|
|
6
6
|
private readonly authClient;
|
|
@@ -43,10 +43,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.OAuthPkceAuthProvider = void 0;
|
|
46
|
-
const core = __importStar(require("
|
|
47
|
-
const errors = __importStar(require("
|
|
46
|
+
const core = __importStar(require("../../core/index.js"));
|
|
47
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
48
48
|
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
|
-
const oauthAuthHelpers_js_1 = require("
|
|
49
|
+
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
50
50
|
class OAuthPkceAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OAuthAuthProvider } from "
|
|
2
|
-
import type { BaseClientOptions } from "
|
|
3
|
-
import * as core from "
|
|
1
|
+
import type { OAuthAuthProvider } from "../../auth/OAuthAuthProvider.js";
|
|
2
|
+
import type { BaseClientOptions } from "../../BaseClient.js";
|
|
3
|
+
import * as core from "../../core/index.js";
|
|
4
4
|
export declare class OAuthRopcAuthProvider implements core.AuthProvider {
|
|
5
5
|
private readonly options;
|
|
6
6
|
private readonly authClient;
|
|
@@ -43,10 +43,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.OAuthRopcAuthProvider = void 0;
|
|
46
|
-
const core = __importStar(require("
|
|
47
|
-
const errors = __importStar(require("
|
|
46
|
+
const core = __importStar(require("../../core/index.js"));
|
|
47
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
48
48
|
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
|
-
const oauthAuthHelpers_js_1 = require("
|
|
49
|
+
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
50
50
|
class OAuthRopcAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetcher = void 0;
|
|
4
|
+
const Fetcher_js_1 = require("../core/fetcher/Fetcher.js");
|
|
5
|
+
const withCredentialsConfig_js_1 = require("./utils/withCredentialsConfig.js");
|
|
6
|
+
/** Patch: withCredentials - wrap fetcherImpl to inject global default when not passed per-request */
|
|
7
|
+
const fetcher = (args) => { var _a; return (0, Fetcher_js_1.fetcherImpl)(Object.assign(Object.assign({}, args), { withCredentials: (_a = args.withCredentials) !== null && _a !== void 0 ? _a : (0, withCredentialsConfig_js_1.getDefaultWithCredentials)() })); };
|
|
8
|
+
exports.fetcher = fetcher;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import type { BaseClientOptions } from "../../BaseClient.js";
|
|
3
|
+
import * as core from "../../core/index.js";
|
|
4
|
+
import { CLIENT_ID_PARAM, CLIENT_SECRET_PARAM, CODE_PARAM, CODE_VERIFIER_PARAM, PASSWORD_PARAM, REDIRECT_URI_PARAM, USERNAME_PARAM } from "../utils/oauthAuthHelpers.js";
|
|
5
|
+
/** Patch: Re-export for consumers; implementation shared with OAuthRopcAuthProvider, OAuthAuthCodeAuthProvider and OAuthPkceAuthProvider. */
|
|
6
|
+
export { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, CLIENT_SECRET_PARAM, CLIENT_SECRET_REQUIRED_ERROR_MESSAGE, CODE_PARAM, CODE_VERIFIER_PARAM, getExpiresAt, PASSWORD_PARAM, PASSWORD_REQUIRED_ERROR_MESSAGE, REDIRECT_URI_PARAM, USERNAME_PARAM, USERNAME_REQUIRED_ERROR_MESSAGE, } from "../utils/oauthAuthHelpers.js";
|
|
7
|
+
declare const TOKEN_PARAM: "token";
|
|
8
|
+
export declare class OAuthAuthProvider implements core.AuthProvider {
|
|
9
|
+
private readonly options;
|
|
10
|
+
/**
|
|
11
|
+
* Patch: Use CortiAuth (real token endpoint) instead of AuthClient (fake-token).
|
|
12
|
+
*/
|
|
13
|
+
private readonly authClient;
|
|
14
|
+
private accessToken;
|
|
15
|
+
private expiresAt;
|
|
16
|
+
private refreshPromise;
|
|
17
|
+
private storedRefreshToken;
|
|
18
|
+
private refreshExpiresAt;
|
|
19
|
+
constructor(options: OAuthAuthProvider.Options & OAuthAuthProvider.ClientCredentials);
|
|
20
|
+
static canCreate(options?: Partial<OAuthAuthProvider.ClientCredentials & BaseClientOptions>): boolean;
|
|
21
|
+
private clientIdSupplier;
|
|
22
|
+
private clientSecretSupplier;
|
|
23
|
+
getAuthRequest({ endpointMetadata, }?: {
|
|
24
|
+
endpointMetadata?: core.EndpointMetadata;
|
|
25
|
+
}): Promise<core.AuthRequest>;
|
|
26
|
+
private getToken;
|
|
27
|
+
private refresh;
|
|
28
|
+
}
|
|
29
|
+
export declare class OAuthTokenOverrideAuthProvider implements core.AuthProvider {
|
|
30
|
+
private readonly authClient;
|
|
31
|
+
private readonly _tokenSupplier;
|
|
32
|
+
private readonly _clientIdSupplier;
|
|
33
|
+
private readonly _refreshAccessToken;
|
|
34
|
+
private accessToken;
|
|
35
|
+
private expiresAt;
|
|
36
|
+
private storedRefreshToken;
|
|
37
|
+
private refreshExpiresAt;
|
|
38
|
+
private _seedPromise;
|
|
39
|
+
constructor(options: OAuthAuthProvider.TokenOverride & BaseClientOptions);
|
|
40
|
+
static canCreate(options?: Partial<OAuthAuthProvider.TokenOverride & BaseClientOptions>): options is OAuthAuthProvider.TokenOverride & BaseClientOptions;
|
|
41
|
+
getAuthRequest({ endpointMetadata, }?: {
|
|
42
|
+
endpointMetadata?: core.EndpointMetadata;
|
|
43
|
+
}): Promise<core.AuthRequest>;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace OAuthAuthProvider {
|
|
46
|
+
const AUTH_SCHEME: "OAuth";
|
|
47
|
+
/** Patch: Message extended to mention ROPC (clientId, username, password). */
|
|
48
|
+
const AUTH_CONFIG_ERROR_MESSAGE: string;
|
|
49
|
+
type ClientCredentials = {
|
|
50
|
+
[CLIENT_ID_PARAM]: core.Supplier<string>;
|
|
51
|
+
[CLIENT_SECRET_PARAM]: core.Supplier<string>;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Patch: tokenType and expiresIn made optional — the provider only strictly needs accessToken.
|
|
55
|
+
* Mirrors AuthTokenResponse but relaxes the two required fields so custom refresh functions
|
|
56
|
+
* don't need to return fields the provider doesn't use.
|
|
57
|
+
*/
|
|
58
|
+
type ExpectedTokenResponse = Omit<Corti.AuthTokenResponse, "tokenType" | "expiresIn"> & {
|
|
59
|
+
tokenType?: string;
|
|
60
|
+
expiresIn?: number;
|
|
61
|
+
};
|
|
62
|
+
/** Patch: Custom refresh function — sync or async, receives the last known refresh token. */
|
|
63
|
+
type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<OAuthAuthProvider.ExpectedTokenResponse> | OAuthAuthProvider.ExpectedTokenResponse;
|
|
64
|
+
type TokenOverride = {
|
|
65
|
+
[TOKEN_PARAM]?: core.Supplier<string>;
|
|
66
|
+
/** Patch: Custom callback called to obtain/renew the access token. Takes priority over built-in clientId+refreshToken path. */
|
|
67
|
+
refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
|
|
68
|
+
expiresIn?: number;
|
|
69
|
+
refreshToken?: string;
|
|
70
|
+
refreshExpiresIn?: number;
|
|
71
|
+
clientId?: core.Supplier<string>;
|
|
72
|
+
/** Patch: Pre-seeded token response from resolveClientOptions — avoids a second refreshAccessToken call on first API request. */
|
|
73
|
+
initialTokenResponse?: Promise<OAuthAuthProvider.ExpectedTokenResponse>;
|
|
74
|
+
};
|
|
75
|
+
/** Patch: ROPC grant credentials (clientId + username + password) */
|
|
76
|
+
type RopcCredentials = {
|
|
77
|
+
[CLIENT_ID_PARAM]: core.Supplier<string>;
|
|
78
|
+
[USERNAME_PARAM]: core.Supplier<string>;
|
|
79
|
+
[PASSWORD_PARAM]: core.Supplier<string>;
|
|
80
|
+
};
|
|
81
|
+
/** Patch: Authorization code credentials (clientId + clientSecret + code + redirectUri) */
|
|
82
|
+
type AuthCodeCredentials = {
|
|
83
|
+
[CLIENT_ID_PARAM]: core.Supplier<string>;
|
|
84
|
+
[CLIENT_SECRET_PARAM]: core.Supplier<string>;
|
|
85
|
+
[CODE_PARAM]: core.Supplier<string>;
|
|
86
|
+
[REDIRECT_URI_PARAM]: core.Supplier<string>;
|
|
87
|
+
};
|
|
88
|
+
/** Patch: PKCE credentials (clientId + code + redirectUri; no clientSecret) */
|
|
89
|
+
type PkceCredentials = {
|
|
90
|
+
[CLIENT_ID_PARAM]: core.Supplier<string>;
|
|
91
|
+
[CODE_PARAM]: core.Supplier<string>;
|
|
92
|
+
[REDIRECT_URI_PARAM]: core.Supplier<string>;
|
|
93
|
+
[CODE_VERIFIER_PARAM]?: core.Supplier<string>;
|
|
94
|
+
};
|
|
95
|
+
/** Patch: Include RopcCredentials, AuthCodeCredentials and PkceCredentials so CortiClient can use those auth flows. */
|
|
96
|
+
type AuthOptions = ClientCredentials | TokenOverride | RopcCredentials | AuthCodeCredentials | PkceCredentials;
|
|
97
|
+
type Options = BaseClientOptions & AuthOptions;
|
|
98
|
+
function createInstance(options: Options): core.AuthProvider;
|
|
99
|
+
}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.OAuthTokenOverrideAuthProvider = exports.OAuthAuthProvider = exports.USERNAME_REQUIRED_ERROR_MESSAGE = exports.USERNAME_PARAM = exports.REDIRECT_URI_PARAM = exports.PASSWORD_REQUIRED_ERROR_MESSAGE = exports.PASSWORD_PARAM = exports.getExpiresAt = exports.CODE_VERIFIER_PARAM = exports.CODE_PARAM = exports.CLIENT_SECRET_REQUIRED_ERROR_MESSAGE = exports.CLIENT_SECRET_PARAM = exports.CLIENT_ID_REQUIRED_ERROR_MESSAGE = exports.CLIENT_ID_PARAM = exports.BUFFER_IN_MINUTES = void 0;
|
|
46
|
+
const core = __importStar(require("../../core/index.js"));
|
|
47
|
+
const CortiAuth_js_1 = require("../auth/CortiAuth.js");
|
|
48
|
+
const OAuthAuthCodeAuthProvider_js_1 = require("../auth/OAuthAuthCodeAuthProvider.js");
|
|
49
|
+
const OAuthPkceAuthProvider_js_1 = require("../auth/OAuthPkceAuthProvider.js");
|
|
50
|
+
const OAuthRopcAuthProvider_js_1 = require("../auth/OAuthRopcAuthProvider.js");
|
|
51
|
+
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
52
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
53
|
+
/** Patch: Re-export for consumers; implementation shared with OAuthRopcAuthProvider, OAuthAuthCodeAuthProvider and OAuthPkceAuthProvider. */
|
|
54
|
+
var oauthAuthHelpers_js_2 = require("../utils/oauthAuthHelpers.js");
|
|
55
|
+
Object.defineProperty(exports, "BUFFER_IN_MINUTES", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.BUFFER_IN_MINUTES; } });
|
|
56
|
+
Object.defineProperty(exports, "CLIENT_ID_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CLIENT_ID_PARAM; } });
|
|
57
|
+
Object.defineProperty(exports, "CLIENT_ID_REQUIRED_ERROR_MESSAGE", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CLIENT_ID_REQUIRED_ERROR_MESSAGE; } });
|
|
58
|
+
Object.defineProperty(exports, "CLIENT_SECRET_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CLIENT_SECRET_PARAM; } });
|
|
59
|
+
Object.defineProperty(exports, "CLIENT_SECRET_REQUIRED_ERROR_MESSAGE", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CLIENT_SECRET_REQUIRED_ERROR_MESSAGE; } });
|
|
60
|
+
Object.defineProperty(exports, "CODE_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CODE_PARAM; } });
|
|
61
|
+
Object.defineProperty(exports, "CODE_VERIFIER_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.CODE_VERIFIER_PARAM; } });
|
|
62
|
+
Object.defineProperty(exports, "getExpiresAt", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.getExpiresAt; } });
|
|
63
|
+
Object.defineProperty(exports, "PASSWORD_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.PASSWORD_PARAM; } });
|
|
64
|
+
Object.defineProperty(exports, "PASSWORD_REQUIRED_ERROR_MESSAGE", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.PASSWORD_REQUIRED_ERROR_MESSAGE; } });
|
|
65
|
+
Object.defineProperty(exports, "REDIRECT_URI_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.REDIRECT_URI_PARAM; } });
|
|
66
|
+
Object.defineProperty(exports, "USERNAME_PARAM", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.USERNAME_PARAM; } });
|
|
67
|
+
Object.defineProperty(exports, "USERNAME_REQUIRED_ERROR_MESSAGE", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.USERNAME_REQUIRED_ERROR_MESSAGE; } });
|
|
68
|
+
const TOKEN_PARAM = "token";
|
|
69
|
+
const TOKEN_PARAM_REQUIRED_ERROR_MESSAGE = `${TOKEN_PARAM} is required. Please provide it in options.`;
|
|
70
|
+
class OAuthAuthProvider {
|
|
71
|
+
constructor(options) {
|
|
72
|
+
this.options = options;
|
|
73
|
+
/**
|
|
74
|
+
* Patch: Use CortiAuth (real token endpoint) instead of AuthClient (fake-token).
|
|
75
|
+
*/
|
|
76
|
+
this.authClient = new CortiAuth_js_1.CortiAuth(options);
|
|
77
|
+
this.expiresAt = new Date();
|
|
78
|
+
}
|
|
79
|
+
static canCreate(options) {
|
|
80
|
+
return (options === null || options === void 0 ? void 0 : options[oauthAuthHelpers_js_1.CLIENT_ID_PARAM]) != null && (options === null || options === void 0 ? void 0 : options[oauthAuthHelpers_js_1.CLIENT_SECRET_PARAM]) != null;
|
|
81
|
+
}
|
|
82
|
+
clientIdSupplier() {
|
|
83
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
84
|
+
const supplier = this.options[oauthAuthHelpers_js_1.CLIENT_ID_PARAM];
|
|
85
|
+
if (supplier == null) {
|
|
86
|
+
throw new errors.CortiError({
|
|
87
|
+
message: oauthAuthHelpers_js_1.CLIENT_ID_REQUIRED_ERROR_MESSAGE,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return core.EndpointSupplier.get(supplier, { endpointMetadata });
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
clientSecretSupplier() {
|
|
94
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
95
|
+
const supplier = this.options[oauthAuthHelpers_js_1.CLIENT_SECRET_PARAM];
|
|
96
|
+
if (supplier == null) {
|
|
97
|
+
throw new errors.CortiError({
|
|
98
|
+
message: oauthAuthHelpers_js_1.CLIENT_SECRET_REQUIRED_ERROR_MESSAGE,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return core.EndpointSupplier.get(supplier, { endpointMetadata });
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
getAuthRequest() {
|
|
105
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
106
|
+
const token = yield this.getToken({ endpointMetadata });
|
|
107
|
+
return {
|
|
108
|
+
headers: {
|
|
109
|
+
Authorization: `Bearer ${token}`,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
getToken() {
|
|
115
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata } = {}) {
|
|
116
|
+
if (this.accessToken && this.expiresAt > new Date()) {
|
|
117
|
+
return this.accessToken;
|
|
118
|
+
}
|
|
119
|
+
// If a refresh is already in progress, return the existing promise
|
|
120
|
+
if (this.refreshPromise != null) {
|
|
121
|
+
return this.refreshPromise;
|
|
122
|
+
}
|
|
123
|
+
return this.refresh({ endpointMetadata });
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
refresh() {
|
|
127
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata } = {}) {
|
|
128
|
+
this.refreshPromise = (() => __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
try {
|
|
130
|
+
const clientId = yield this.clientIdSupplier({ endpointMetadata });
|
|
131
|
+
const clientSecret = yield this.clientSecretSupplier({ endpointMetadata });
|
|
132
|
+
const tokenResponse = clientId && this.storedRefreshToken && this.refreshExpiresAt && this.refreshExpiresAt > new Date()
|
|
133
|
+
? yield this.authClient.refreshToken({
|
|
134
|
+
clientId,
|
|
135
|
+
refreshToken: this.storedRefreshToken,
|
|
136
|
+
})
|
|
137
|
+
: yield this.authClient.getToken({ clientId, clientSecret });
|
|
138
|
+
this.accessToken = tokenResponse.accessToken;
|
|
139
|
+
this.expiresAt = (0, oauthAuthHelpers_js_1.getExpiresAt)(tokenResponse.expiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES);
|
|
140
|
+
if (tokenResponse.refreshToken) {
|
|
141
|
+
this.storedRefreshToken = tokenResponse.refreshToken;
|
|
142
|
+
this.refreshExpiresAt = tokenResponse.refreshExpiresIn
|
|
143
|
+
? (0, oauthAuthHelpers_js_1.getExpiresAt)(tokenResponse.refreshExpiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES)
|
|
144
|
+
: undefined;
|
|
145
|
+
}
|
|
146
|
+
return this.accessToken;
|
|
147
|
+
}
|
|
148
|
+
finally {
|
|
149
|
+
this.refreshPromise = undefined;
|
|
150
|
+
}
|
|
151
|
+
}))();
|
|
152
|
+
return this.refreshPromise;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.OAuthAuthProvider = OAuthAuthProvider;
|
|
157
|
+
class OAuthTokenOverrideAuthProvider {
|
|
158
|
+
constructor(options) {
|
|
159
|
+
this._tokenSupplier = options[TOKEN_PARAM];
|
|
160
|
+
this._clientIdSupplier = options.clientId;
|
|
161
|
+
// Patch: store custom refresh callback
|
|
162
|
+
this._refreshAccessToken = options.refreshAccessToken;
|
|
163
|
+
this.expiresAt = options.expiresIn ? (0, oauthAuthHelpers_js_1.getExpiresAt)(options.expiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES) : undefined;
|
|
164
|
+
this.storedRefreshToken = options.refreshToken;
|
|
165
|
+
this.refreshExpiresAt = options.refreshExpiresIn
|
|
166
|
+
? (0, oauthAuthHelpers_js_1.getExpiresAt)(options.refreshExpiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES)
|
|
167
|
+
: undefined;
|
|
168
|
+
if (options.clientId && options.refreshToken) {
|
|
169
|
+
this.authClient = new CortiAuth_js_1.CortiAuth(options);
|
|
170
|
+
}
|
|
171
|
+
// Patch: pre-seed token from discovery promise so getAuthRequest doesn't call refreshAccessToken again
|
|
172
|
+
if (options.initialTokenResponse) {
|
|
173
|
+
this._seedPromise = options.initialTokenResponse
|
|
174
|
+
.then((resp) => {
|
|
175
|
+
this.accessToken = resp.accessToken;
|
|
176
|
+
this.expiresAt = resp.expiresIn ? (0, oauthAuthHelpers_js_1.getExpiresAt)(resp.expiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES) : undefined;
|
|
177
|
+
if (resp.refreshToken) {
|
|
178
|
+
this.storedRefreshToken = resp.refreshToken;
|
|
179
|
+
this.refreshExpiresAt = resp.refreshExpiresIn
|
|
180
|
+
? (0, oauthAuthHelpers_js_1.getExpiresAt)(resp.refreshExpiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES)
|
|
181
|
+
: undefined;
|
|
182
|
+
}
|
|
183
|
+
})
|
|
184
|
+
.finally(() => {
|
|
185
|
+
this._seedPromise = undefined;
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
static canCreate(options) {
|
|
190
|
+
// Patch: either token or refreshAccessToken is sufficient
|
|
191
|
+
return (options === null || options === void 0 ? void 0 : options[TOKEN_PARAM]) != null || (options === null || options === void 0 ? void 0 : options.refreshAccessToken) != null;
|
|
192
|
+
}
|
|
193
|
+
getAuthRequest() {
|
|
194
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
195
|
+
// Patch: await seed promise so the initial token from resolveClientOptions is set before checking expiry
|
|
196
|
+
if (this._seedPromise) {
|
|
197
|
+
yield this._seedPromise;
|
|
198
|
+
}
|
|
199
|
+
const isExpiredOrAbsent = !this.accessToken || (this.expiresAt != null && this.expiresAt <= new Date());
|
|
200
|
+
// Patch: custom refreshAccessToken takes priority — call it when token is absent or expired
|
|
201
|
+
if (this._refreshAccessToken && isExpiredOrAbsent) {
|
|
202
|
+
const result = yield this._refreshAccessToken(this.storedRefreshToken);
|
|
203
|
+
this.accessToken = result.accessToken;
|
|
204
|
+
this.expiresAt = result.expiresIn ? (0, oauthAuthHelpers_js_1.getExpiresAt)(result.expiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES) : undefined;
|
|
205
|
+
if (result.refreshToken) {
|
|
206
|
+
this.storedRefreshToken = result.refreshToken;
|
|
207
|
+
this.refreshExpiresAt = result.refreshExpiresIn
|
|
208
|
+
? (0, oauthAuthHelpers_js_1.getExpiresAt)(result.refreshExpiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES)
|
|
209
|
+
: undefined;
|
|
210
|
+
}
|
|
211
|
+
return { headers: { Authorization: `Bearer ${this.accessToken}` } };
|
|
212
|
+
}
|
|
213
|
+
// Built-in: if access token is expired and we have a valid SDK refresh token, use it
|
|
214
|
+
if (this.expiresAt != null &&
|
|
215
|
+
this.expiresAt <= new Date() &&
|
|
216
|
+
this._clientIdSupplier &&
|
|
217
|
+
this.storedRefreshToken &&
|
|
218
|
+
this.refreshExpiresAt &&
|
|
219
|
+
this.refreshExpiresAt > new Date() &&
|
|
220
|
+
this.authClient) {
|
|
221
|
+
const clientId = yield core.EndpointSupplier.get(this._clientIdSupplier, { endpointMetadata });
|
|
222
|
+
const tokenResponse = yield this.authClient.refreshToken({
|
|
223
|
+
clientId,
|
|
224
|
+
refreshToken: this.storedRefreshToken,
|
|
225
|
+
});
|
|
226
|
+
this.accessToken = tokenResponse.accessToken;
|
|
227
|
+
this.expiresAt = (0, oauthAuthHelpers_js_1.getExpiresAt)(tokenResponse.expiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES);
|
|
228
|
+
if (tokenResponse.refreshToken) {
|
|
229
|
+
this.storedRefreshToken = tokenResponse.refreshToken;
|
|
230
|
+
this.refreshExpiresAt = tokenResponse.refreshExpiresIn
|
|
231
|
+
? (0, oauthAuthHelpers_js_1.getExpiresAt)(tokenResponse.refreshExpiresIn, oauthAuthHelpers_js_1.BUFFER_IN_MINUTES)
|
|
232
|
+
: undefined;
|
|
233
|
+
}
|
|
234
|
+
return { headers: { Authorization: `Bearer ${this.accessToken}` } };
|
|
235
|
+
}
|
|
236
|
+
// Token not yet acquired — resolve from supplier (static token / initial value)
|
|
237
|
+
if (!this.accessToken) {
|
|
238
|
+
if (this._tokenSupplier == null) {
|
|
239
|
+
throw new errors.CortiError({ message: TOKEN_PARAM_REQUIRED_ERROR_MESSAGE });
|
|
240
|
+
}
|
|
241
|
+
this.accessToken = yield core.EndpointSupplier.get(this._tokenSupplier, { endpointMetadata });
|
|
242
|
+
}
|
|
243
|
+
if (!this.accessToken) {
|
|
244
|
+
throw new errors.CortiError({ message: TOKEN_PARAM_REQUIRED_ERROR_MESSAGE });
|
|
245
|
+
}
|
|
246
|
+
return { headers: { Authorization: `Bearer ${this.accessToken}` } };
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
exports.OAuthTokenOverrideAuthProvider = OAuthTokenOverrideAuthProvider;
|
|
251
|
+
(function (OAuthAuthProvider) {
|
|
252
|
+
OAuthAuthProvider.AUTH_SCHEME = "OAuth";
|
|
253
|
+
/** Patch: Message extended to mention ROPC (clientId, username, password). */
|
|
254
|
+
OAuthAuthProvider.AUTH_CONFIG_ERROR_MESSAGE = `Insufficient options to create OAuthAuthProvider. Please provide '${oauthAuthHelpers_js_1.CLIENT_ID_PARAM}' and '${oauthAuthHelpers_js_1.CLIENT_SECRET_PARAM}', or ${TOKEN_PARAM}, or ROPC (${oauthAuthHelpers_js_1.CLIENT_ID_PARAM}, username, password).`;
|
|
255
|
+
function createInstance(options) {
|
|
256
|
+
if (OAuthTokenOverrideAuthProvider.canCreate(options)) {
|
|
257
|
+
return new OAuthTokenOverrideAuthProvider(options);
|
|
258
|
+
}
|
|
259
|
+
/** Patch: ROPC provider before client credentials so ROPC auth is used when username+password provided. */
|
|
260
|
+
if (OAuthRopcAuthProvider_js_1.OAuthRopcAuthProvider.canCreate(options)) {
|
|
261
|
+
return new OAuthRopcAuthProvider_js_1.OAuthRopcAuthProvider(options);
|
|
262
|
+
}
|
|
263
|
+
/** Patch: PKCE provider before auth code — both have clientId+code+redirectUri, but PKCE has no clientSecret. */
|
|
264
|
+
if (OAuthPkceAuthProvider_js_1.OAuthPkceAuthProvider.canCreate(options)) {
|
|
265
|
+
return new OAuthPkceAuthProvider_js_1.OAuthPkceAuthProvider(options);
|
|
266
|
+
}
|
|
267
|
+
/** Patch: Auth code provider before client credentials — both have clientId+clientSecret, code+redirectUri distinguishes auth code. */
|
|
268
|
+
if (OAuthAuthCodeAuthProvider_js_1.OAuthAuthCodeAuthProvider.canCreate(options)) {
|
|
269
|
+
return new OAuthAuthCodeAuthProvider_js_1.OAuthAuthCodeAuthProvider(options);
|
|
270
|
+
}
|
|
271
|
+
if (OAuthAuthProvider.canCreate(options)) {
|
|
272
|
+
return new OAuthAuthProvider(options);
|
|
273
|
+
}
|
|
274
|
+
/** Patch: No credentials provided — proxy/passthrough mode; requests are sent without an Authorization header. */
|
|
275
|
+
const partialOptions = options;
|
|
276
|
+
const hasNoCredentials = partialOptions[oauthAuthHelpers_js_1.CLIENT_ID_PARAM] == null &&
|
|
277
|
+
partialOptions[oauthAuthHelpers_js_1.CLIENT_SECRET_PARAM] == null &&
|
|
278
|
+
partialOptions[TOKEN_PARAM] == null &&
|
|
279
|
+
partialOptions.refreshAccessToken == null &&
|
|
280
|
+
partialOptions[oauthAuthHelpers_js_1.USERNAME_PARAM] == null;
|
|
281
|
+
if (hasNoCredentials) {
|
|
282
|
+
return new core.NoOpAuthProvider();
|
|
283
|
+
}
|
|
284
|
+
throw new errors.CortiError({
|
|
285
|
+
message: OAuthAuthProvider.AUTH_CONFIG_ERROR_MESSAGE,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
OAuthAuthProvider.createInstance = createInstance;
|
|
289
|
+
})(OAuthAuthProvider || (exports.OAuthAuthProvider = OAuthAuthProvider = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { APIResponse } from "../../../core/fetcher/APIResponse.js";
|
|
2
|
+
export type { BinaryResponse } from "../../../core/fetcher/BinaryResponse.js";
|
|
3
|
+
export type { EndpointMetadata } from "../../../core/fetcher/EndpointMetadata.js";
|
|
4
|
+
export { EndpointSupplier } from "../../../core/fetcher/EndpointSupplier.js";
|
|
5
|
+
export type { Fetcher, FetchFunction } from "../../../core/fetcher/Fetcher.js";
|
|
6
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
+
export { fetcher } from "../../fetcher.js";
|
|
8
|
+
export { getHeader } from "../../../core/fetcher/getHeader.js";
|
|
9
|
+
export { HttpResponsePromise } from "../../../core/fetcher/HttpResponsePromise.js";
|
|
10
|
+
export type { RawResponse, WithRawResponse } from "../../../core/fetcher/RawResponse.js";
|
|
11
|
+
export { abortRawResponse, toRawResponse, unknownRawResponse } from "../../../core/fetcher/RawResponse.js";
|
|
12
|
+
export { Supplier } from "../../../core/fetcher/Supplier.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = exports.EndpointSupplier = void 0;
|
|
4
|
+
var EndpointSupplier_js_1 = require("../../../core/fetcher/EndpointSupplier.js");
|
|
5
|
+
Object.defineProperty(exports, "EndpointSupplier", { enumerable: true, get: function () { return EndpointSupplier_js_1.EndpointSupplier; } });
|
|
6
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
+
var fetcher_js_1 = require("../../fetcher.js");
|
|
8
|
+
Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return fetcher_js_1.fetcher; } });
|
|
9
|
+
var getHeader_js_1 = require("../../../core/fetcher/getHeader.js");
|
|
10
|
+
Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_js_1.getHeader; } });
|
|
11
|
+
var HttpResponsePromise_js_1 = require("../../../core/fetcher/HttpResponsePromise.js");
|
|
12
|
+
Object.defineProperty(exports, "HttpResponsePromise", { enumerable: true, get: function () { return HttpResponsePromise_js_1.HttpResponsePromise; } });
|
|
13
|
+
var RawResponse_js_1 = require("../../../core/fetcher/RawResponse.js");
|
|
14
|
+
Object.defineProperty(exports, "abortRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.abortRawResponse; } });
|
|
15
|
+
Object.defineProperty(exports, "toRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.toRawResponse; } });
|
|
16
|
+
Object.defineProperty(exports, "unknownRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.unknownRawResponse; } });
|
|
17
|
+
var Supplier_js_1 = require("../../../core/fetcher/Supplier.js");
|
|
18
|
+
Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_js_1.Supplier; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * as Corti from "../../api/index.js";
|
|
2
|
+
export type { BaseClientOptions, BaseRequestOptions } from "../../BaseClient.js";
|
|
3
|
+
export { CortiEnvironment, type CortiEnvironmentUrls } from "../../environments.js";
|
|
4
|
+
export { CortiError, CortiTimeoutError } from "../../errors/index.js";
|
|
5
|
+
export * from "../../exports.js";
|
|
6
|
+
export * as serialization from "../../serialization/index.js";
|
|
7
|
+
export { CortiAuth } from "../auth/CortiAuth.js";
|
|
8
|
+
export { CortiClient } from "../CortiClient.js";
|
|
9
|
+
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.js";
|
|
10
|
+
export { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
11
|
+
export { type CortiInternalEnvironment, type Environment } from "../utils/environment.js";
|
|
12
|
+
export { CortiSDKError, CortiSDKErrorCodes } from "../CortiSDKError.js";
|
|
13
|
+
export { ParseError } from "../../core/schemas/builders/schema-utils/ParseError.js";
|
|
14
|
+
export { JsonError } from "../../core/schemas/builders/schema-utils/JsonError.js";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.JsonError = exports.ParseError = exports.CortiSDKErrorCodes = exports.CortiSDKError = exports.CortiWebSocketProxyClient = exports.CortiClient = exports.CortiAuth = exports.serialization = exports.CortiTimeoutError = exports.CortiError = exports.CortiEnvironment = exports.Corti = void 0;
|
|
40
|
+
exports.Corti = __importStar(require("../../api/index.js"));
|
|
41
|
+
var environments_js_1 = require("../../environments.js");
|
|
42
|
+
Object.defineProperty(exports, "CortiEnvironment", { enumerable: true, get: function () { return environments_js_1.CortiEnvironment; } });
|
|
43
|
+
var index_js_1 = require("../../errors/index.js");
|
|
44
|
+
Object.defineProperty(exports, "CortiError", { enumerable: true, get: function () { return index_js_1.CortiError; } });
|
|
45
|
+
Object.defineProperty(exports, "CortiTimeoutError", { enumerable: true, get: function () { return index_js_1.CortiTimeoutError; } });
|
|
46
|
+
__exportStar(require("../../exports.js"), exports);
|
|
47
|
+
exports.serialization = __importStar(require("../../serialization/index.js"));
|
|
48
|
+
// Custom additions / replacements
|
|
49
|
+
var CortiAuth_js_1 = require("../auth/CortiAuth.js");
|
|
50
|
+
Object.defineProperty(exports, "CortiAuth", { enumerable: true, get: function () { return CortiAuth_js_1.CortiAuth; } });
|
|
51
|
+
var CortiClient_js_1 = require("../CortiClient.js");
|
|
52
|
+
Object.defineProperty(exports, "CortiClient", { enumerable: true, get: function () { return CortiClient_js_1.CortiClient; } });
|
|
53
|
+
var CortiWebSocketProxyClient_js_1 = require("../CortiWebSocketProxyClient.js");
|
|
54
|
+
Object.defineProperty(exports, "CortiWebSocketProxyClient", { enumerable: true, get: function () { return CortiWebSocketProxyClient_js_1.CortiWebSocketProxyClient; } });
|
|
55
|
+
var CortiSDKError_js_1 = require("../CortiSDKError.js");
|
|
56
|
+
Object.defineProperty(exports, "CortiSDKError", { enumerable: true, get: function () { return CortiSDKError_js_1.CortiSDKError; } });
|
|
57
|
+
Object.defineProperty(exports, "CortiSDKErrorCodes", { enumerable: true, get: function () { return CortiSDKError_js_1.CortiSDKErrorCodes; } });
|
|
58
|
+
var ParseError_js_1 = require("../../core/schemas/builders/schema-utils/ParseError.js");
|
|
59
|
+
Object.defineProperty(exports, "ParseError", { enumerable: true, get: function () { return ParseError_js_1.ParseError; } });
|
|
60
|
+
var JsonError_js_1 = require("../../core/schemas/builders/schema-utils/JsonError.js");
|
|
61
|
+
Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_js_1.JsonError; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Corti from "../../api/index.js";
|
|
2
|
+
import type { CustomStreamSocket } from "../stream/CustomStreamSocket.js";
|
|
3
|
+
import type { ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
4
|
+
/**
|
|
5
|
+
* Lightweight proxy stream client — no CortiClient or auth needed.
|
|
6
|
+
* Pass a proxy URL (and optionally protocols/queryParameters) directly in connect().
|
|
7
|
+
*/
|
|
8
|
+
export declare class CustomProxyStream {
|
|
9
|
+
private readonly _stream;
|
|
10
|
+
connect(args: {
|
|
11
|
+
proxy: ProxyOptions;
|
|
12
|
+
configuration?: Corti.StreamConfig;
|
|
13
|
+
awaitConfiguration?: boolean;
|
|
14
|
+
debug?: boolean;
|
|
15
|
+
reconnectAttempts?: number;
|
|
16
|
+
}): Promise<CustomStreamSocket>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomProxyStream = void 0;
|
|
4
|
+
const environments_js_1 = require("../../environments.js");
|
|
5
|
+
const CustomStream_js_1 = require("../stream/CustomStream.js");
|
|
6
|
+
/**
|
|
7
|
+
* Lightweight proxy stream client — no CortiClient or auth needed.
|
|
8
|
+
* Pass a proxy URL (and optionally protocols/queryParameters) directly in connect().
|
|
9
|
+
*/
|
|
10
|
+
class CustomProxyStream {
|
|
11
|
+
constructor() {
|
|
12
|
+
this._stream = new CustomStream_js_1.CustomStream({ environment: environments_js_1.CortiEnvironment.Eu, tenantName: "" });
|
|
13
|
+
}
|
|
14
|
+
connect(args) {
|
|
15
|
+
return this._stream.connect(Object.assign(Object.assign({}, args), { id: "" }));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.CustomProxyStream = CustomProxyStream;
|