@corti/sdk 0.0.0-alpha.10
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/LICENSE +21 -0
- package/README.md +231 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +9 -0
- package/dist/cjs/api/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/errors/GatewayTimeoutError.d.ts +9 -0
- package/dist/cjs/api/errors/GatewayTimeoutError.js +52 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +9 -0
- package/dist/cjs/api/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +6 -0
- package/dist/cjs/api/errors/index.js +22 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/auth/client/Client.js +129 -0
- package/dist/cjs/api/resources/auth/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/auth/client/index.js +17 -0
- package/dist/cjs/api/resources/auth/client/requests/AuthGetTokenRequest.d.ts +14 -0
- package/dist/cjs/api/resources/auth/client/requests/AuthGetTokenRequest.js +5 -0
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/auth/index.d.ts +2 -0
- package/dist/cjs/api/resources/auth/index.js +18 -0
- package/dist/cjs/api/resources/auth/types/GetTokenResponse.d.ts +10 -0
- package/dist/cjs/api/resources/auth/types/GetTokenResponse.js +5 -0
- package/dist/cjs/api/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/types/index.js +17 -0
- package/dist/cjs/api/resources/documents/client/Client.d.ts +127 -0
- package/dist/cjs/api/resources/documents/client/Client.js +440 -0
- package/dist/cjs/api/resources/documents/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/client/index.js +17 -0
- package/dist/cjs/api/resources/documents/client/requests/DocumentsGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/documents/client/requests/DocumentsGetRequest.js +5 -0
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentCreate.d.ts +31 -0
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentCreate.js +5 -0
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentUpdate.d.ts +13 -0
- package/dist/cjs/api/resources/documents/client/requests/RequestDocumentUpdate.js +5 -0
- package/dist/cjs/api/resources/documents/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/documents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/documents/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/index.js +18 -0
- package/dist/cjs/api/resources/documents/types/RequestDocumentCreateContextItem.d.ts +10 -0
- package/dist/cjs/api/resources/documents/types/RequestDocumentCreateContextItem.js +5 -0
- package/dist/cjs/api/resources/documents/types/RequestDocumentUpdateSectionsItem.d.ts +9 -0
- package/dist/cjs/api/resources/documents/types/RequestDocumentUpdateSectionsItem.js +5 -0
- package/dist/cjs/api/resources/documents/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/types/index.js +18 -0
- package/dist/cjs/api/resources/facts/client/Client.d.ts +113 -0
- package/dist/cjs/api/resources/facts/client/Client.js +393 -0
- package/dist/cjs/api/resources/facts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/facts/client/index.js +17 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactUpdate.d.ts +21 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactUpdate.js +5 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsCreate.d.ts +17 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsCreate.js +5 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsUpdate.d.ts +16 -0
- package/dist/cjs/api/resources/facts/client/requests/RequestFactsUpdate.js +5 -0
- package/dist/cjs/api/resources/facts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/facts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/facts/index.d.ts +2 -0
- package/dist/cjs/api/resources/facts/index.js +18 -0
- package/dist/cjs/api/resources/facts/types/RequestFactsCreateFactsItem.d.ts +12 -0
- package/dist/cjs/api/resources/facts/types/RequestFactsCreateFactsItem.js +5 -0
- package/dist/cjs/api/resources/facts/types/RequestFactsUpdateFactsItem.d.ts +14 -0
- package/dist/cjs/api/resources/facts/types/RequestFactsUpdateFactsItem.js +5 -0
- package/dist/cjs/api/resources/facts/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/facts/types/index.js +18 -0
- package/dist/cjs/api/resources/index.d.ts +20 -0
- package/dist/cjs/api/resources/index.js +59 -0
- package/dist/cjs/api/resources/interactions/client/Client.d.ts +113 -0
- package/dist/cjs/api/resources/interactions/client/Client.js +442 -0
- package/dist/cjs/api/resources/interactions/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/interactions/client/index.js +17 -0
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsListRequest.d.ts +34 -0
- package/dist/cjs/api/resources/interactions/client/requests/InteractionsListRequest.js +5 -0
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionCreate.d.ts +22 -0
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionCreate.js +5 -0
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionUpdate.d.ts +16 -0
- package/dist/cjs/api/resources/interactions/client/requests/RequestInteractionUpdate.js +5 -0
- package/dist/cjs/api/resources/interactions/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/interactions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/interactions/index.d.ts +2 -0
- package/dist/cjs/api/resources/interactions/index.js +18 -0
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestDirection.d.ts +11 -0
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestDirection.js +10 -0
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestSort.d.ts +12 -0
- package/dist/cjs/api/resources/interactions/types/InteractionsListRequestSort.js +11 -0
- package/dist/cjs/api/resources/interactions/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/interactions/types/index.js +18 -0
- package/dist/cjs/api/resources/recordings/client/Client.d.ts +94 -0
- package/dist/cjs/api/resources/recordings/client/Client.js +347 -0
- package/dist/cjs/api/resources/recordings/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/recordings/client/index.js +2 -0
- package/dist/cjs/api/resources/recordings/index.d.ts +1 -0
- package/dist/cjs/api/resources/recordings/index.js +17 -0
- package/dist/cjs/api/resources/stream/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/stream/client/Client.js +82 -0
- package/dist/cjs/api/resources/stream/client/Socket.d.ts +54 -0
- package/dist/cjs/api/resources/stream/client/Socket.js +160 -0
- package/dist/cjs/api/resources/stream/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/stream/client/index.js +17 -0
- package/dist/cjs/api/resources/stream/index.d.ts +1 -0
- package/dist/cjs/api/resources/stream/index.js +17 -0
- package/dist/cjs/api/resources/templates/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/templates/client/Client.js +281 -0
- package/dist/cjs/api/resources/templates/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/templates/client/index.js +17 -0
- package/dist/cjs/api/resources/templates/client/requests/TemplatesListRequest.d.ts +21 -0
- package/dist/cjs/api/resources/templates/client/requests/TemplatesListRequest.js +5 -0
- package/dist/cjs/api/resources/templates/client/requests/TemplatesSectionsListRequest.d.ts +17 -0
- package/dist/cjs/api/resources/templates/client/requests/TemplatesSectionsListRequest.js +5 -0
- package/dist/cjs/api/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/templates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/templates/index.d.ts +1 -0
- package/dist/cjs/api/resources/templates/index.js +17 -0
- package/dist/cjs/api/resources/transcribe/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/transcribe/client/Client.js +82 -0
- package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +54 -0
- package/dist/cjs/api/resources/transcribe/client/Socket.js +160 -0
- package/dist/cjs/api/resources/transcribe/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/transcribe/client/index.js +17 -0
- package/dist/cjs/api/resources/transcribe/index.d.ts +1 -0
- package/dist/cjs/api/resources/transcribe/index.js +17 -0
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +110 -0
- package/dist/cjs/api/resources/transcripts/client/Client.js +402 -0
- package/dist/cjs/api/resources/transcripts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/transcripts/client/index.js +17 -0
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptCreate.d.ts +28 -0
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptCreate.js +5 -0
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsListRequest.d.ts +30 -0
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsListRequest.js +5 -0
- package/dist/cjs/api/resources/transcripts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/transcripts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/transcripts/index.d.ts +2 -0
- package/dist/cjs/api/resources/transcripts/index.js +18 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateModelName.d.ts +12 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateModelName.js +11 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.ts +10 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.js +5 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.ts +21 -0
- package/dist/cjs/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.js +20 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestDirection.d.ts +11 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestDirection.js +10 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestSort.d.ts +11 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsListRequestSort.js +10 -0
- package/dist/cjs/api/resources/transcripts/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/transcripts/types/index.js +21 -0
- package/dist/cjs/api/types/DocumentContextData.d.ts +14 -0
- package/dist/cjs/api/types/DocumentContextData.js +5 -0
- package/dist/cjs/api/types/DocumentTemplate.d.ts +14 -0
- package/dist/cjs/api/types/DocumentTemplate.js +5 -0
- package/dist/cjs/api/types/Encounter.d.ts +16 -0
- package/dist/cjs/api/types/Encounter.js +5 -0
- package/dist/cjs/api/types/EncounterPeriod.d.ts +9 -0
- package/dist/cjs/api/types/EncounterPeriod.js +5 -0
- package/dist/cjs/api/types/EncounterStatus.d.ts +12 -0
- package/dist/cjs/api/types/EncounterStatus.js +14 -0
- package/dist/cjs/api/types/EncounterType.d.ts +11 -0
- package/dist/cjs/api/types/EncounterType.js +13 -0
- package/dist/cjs/api/types/EncounterUpdate.d.ts +16 -0
- package/dist/cjs/api/types/EncounterUpdate.js +5 -0
- package/dist/cjs/api/types/ErrorResponse.d.ts +11 -0
- package/dist/cjs/api/types/ErrorResponse.js +5 -0
- package/dist/cjs/api/types/FactContext.d.ts +12 -0
- package/dist/cjs/api/types/FactContext.js +5 -0
- package/dist/cjs/api/types/GenderEnum.d.ts +10 -0
- package/dist/cjs/api/types/GenderEnum.js +12 -0
- package/dist/cjs/api/types/ParticipantRoleEnum.d.ts +9 -0
- package/dist/cjs/api/types/ParticipantRoleEnum.js +11 -0
- package/dist/cjs/api/types/Patient.d.ts +16 -0
- package/dist/cjs/api/types/Patient.js +5 -0
- package/dist/cjs/api/types/PatientUpdate.d.ts +16 -0
- package/dist/cjs/api/types/PatientUpdate.js +5 -0
- package/dist/cjs/api/types/ResponseAllTemplateSections.d.ts +8 -0
- package/dist/cjs/api/types/ResponseAllTemplateSections.js +5 -0
- package/dist/cjs/api/types/ResponseAllTemplates.d.ts +8 -0
- package/dist/cjs/api/types/ResponseAllTemplates.js +5 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItem.d.ts +20 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItem.js +5 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.ts +10 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.js +5 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTranslationsItem.d.ts +11 -0
- package/dist/cjs/api/types/ResponseAllTemplatesDataItemTranslationsItem.js +5 -0
- package/dist/cjs/api/types/ResponseDocumentList.d.ts +7 -0
- package/dist/cjs/api/types/ResponseDocumentList.js +5 -0
- package/dist/cjs/api/types/ResponseDocumentRead.d.ts +22 -0
- package/dist/cjs/api/types/ResponseDocumentRead.js +5 -0
- package/dist/cjs/api/types/ResponseDocumentReadSectionsItem.d.ts +17 -0
- package/dist/cjs/api/types/ResponseDocumentReadSectionsItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactGroupsFiltered.d.ts +7 -0
- package/dist/cjs/api/types/ResponseFactGroupsFiltered.js +5 -0
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItem.d.ts +9 -0
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.ts +8 -0
- package/dist/cjs/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactUpdate.d.ts +22 -0
- package/dist/cjs/api/types/ResponseFactUpdate.js +5 -0
- package/dist/cjs/api/types/ResponseFactsCreate.d.ts +8 -0
- package/dist/cjs/api/types/ResponseFactsCreate.js +5 -0
- package/dist/cjs/api/types/ResponseFactsCreateFactsItem.d.ts +20 -0
- package/dist/cjs/api/types/ResponseFactsCreateFactsItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactsList.d.ts +8 -0
- package/dist/cjs/api/types/ResponseFactsList.js +5 -0
- package/dist/cjs/api/types/ResponseFactsListFactsItem.d.ts +23 -0
- package/dist/cjs/api/types/ResponseFactsListFactsItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactsListFactsItemEvidenceItem.d.ts +11 -0
- package/dist/cjs/api/types/ResponseFactsListFactsItemEvidenceItem.js +5 -0
- package/dist/cjs/api/types/ResponseFactsUpdate.d.ts +8 -0
- package/dist/cjs/api/types/ResponseFactsUpdate.js +5 -0
- package/dist/cjs/api/types/ResponseFactsUpdateFactsItem.d.ts +22 -0
- package/dist/cjs/api/types/ResponseFactsUpdateFactsItem.js +5 -0
- package/dist/cjs/api/types/ResponseInteraction.d.ts +24 -0
- package/dist/cjs/api/types/ResponseInteraction.js +5 -0
- package/dist/cjs/api/types/ResponseInteractionCreate.d.ts +10 -0
- package/dist/cjs/api/types/ResponseInteractionCreate.js +5 -0
- package/dist/cjs/api/types/ResponseInteractions.d.ts +7 -0
- package/dist/cjs/api/types/ResponseInteractions.js +5 -0
- package/dist/cjs/api/types/ResponseMetadataCreate.d.ts +7 -0
- package/dist/cjs/api/types/ResponseMetadataCreate.js +5 -0
- package/dist/cjs/api/types/ResponseMetadataCreateParticipantsRolesItem.d.ts +10 -0
- package/dist/cjs/api/types/ResponseMetadataCreateParticipantsRolesItem.js +5 -0
- package/dist/cjs/api/types/ResponseRecordingCreate.d.ts +8 -0
- package/dist/cjs/api/types/ResponseRecordingCreate.js +5 -0
- package/dist/cjs/api/types/ResponseRecordingList.d.ts +8 -0
- package/dist/cjs/api/types/ResponseRecordingList.js +5 -0
- package/dist/cjs/api/types/ResponseTranscriptCreate.d.ts +13 -0
- package/dist/cjs/api/types/ResponseTranscriptCreate.js +5 -0
- package/dist/cjs/api/types/ResponseTranscriptCreateTranscriptsItem.d.ts +17 -0
- package/dist/cjs/api/types/ResponseTranscriptCreateTranscriptsItem.js +5 -0
- package/dist/cjs/api/types/ResponseTranscriptListAll.d.ts +7 -0
- package/dist/cjs/api/types/ResponseTranscriptListAll.js +5 -0
- package/dist/cjs/api/types/ResponseTranscriptListAllTranscriptsItem.d.ts +9 -0
- package/dist/cjs/api/types/ResponseTranscriptListAllTranscriptsItem.js +5 -0
- package/dist/cjs/api/types/Section.d.ts +22 -0
- package/dist/cjs/api/types/Section.js +5 -0
- package/dist/cjs/api/types/SectionTranslationsItem.d.ts +11 -0
- package/dist/cjs/api/types/SectionTranslationsItem.js +5 -0
- package/dist/cjs/api/types/StreamConfigData.d.ts +8 -0
- package/dist/cjs/api/types/StreamConfigData.js +5 -0
- package/dist/cjs/api/types/StreamConfigMode.d.ts +10 -0
- package/dist/cjs/api/types/StreamConfigMode.js +5 -0
- package/dist/cjs/api/types/StreamConfigModeOutputLocale.d.ts +21 -0
- package/dist/cjs/api/types/StreamConfigModeOutputLocale.js +20 -0
- package/dist/cjs/api/types/StreamConfigModeType.d.ts +11 -0
- package/dist/cjs/api/types/StreamConfigModeType.js +10 -0
- package/dist/cjs/api/types/StreamConfigStatusMessage.d.ts +12 -0
- package/dist/cjs/api/types/StreamConfigStatusMessage.js +5 -0
- package/dist/cjs/api/types/StreamConfigStatusMessageType.d.ts +15 -0
- package/dist/cjs/api/types/StreamConfigStatusMessageType.js +14 -0
- package/dist/cjs/api/types/StreamConfigTranscription.d.ts +14 -0
- package/dist/cjs/api/types/StreamConfigTranscription.js +5 -0
- package/dist/cjs/api/types/StreamConfigTranscriptionPrimaryLanguage.d.ts +21 -0
- package/dist/cjs/api/types/StreamConfigTranscriptionPrimaryLanguage.js +20 -0
- package/dist/cjs/api/types/StreamConfigurationMessage.d.ts +8 -0
- package/dist/cjs/api/types/StreamConfigurationMessage.js +5 -0
- package/dist/cjs/api/types/StreamEndMessage.d.ts +6 -0
- package/dist/cjs/api/types/StreamEndMessage.js +5 -0
- package/dist/cjs/api/types/StreamEndedMessage.d.ts +6 -0
- package/dist/cjs/api/types/StreamEndedMessage.js +5 -0
- package/dist/cjs/api/types/StreamErrorDetail.d.ts +15 -0
- package/dist/cjs/api/types/StreamErrorDetail.js +5 -0
- package/dist/cjs/api/types/StreamErrorMessage.d.ts +8 -0
- package/dist/cjs/api/types/StreamErrorMessage.js +5 -0
- package/dist/cjs/api/types/StreamFact.d.ts +21 -0
- package/dist/cjs/api/types/StreamFact.js +5 -0
- package/dist/cjs/api/types/StreamFactsMessage.d.ts +8 -0
- package/dist/cjs/api/types/StreamFactsMessage.js +5 -0
- package/dist/cjs/api/types/StreamParticipant.d.ts +10 -0
- package/dist/cjs/api/types/StreamParticipant.js +5 -0
- package/dist/cjs/api/types/StreamParticipantRole.d.ts +12 -0
- package/dist/cjs/api/types/StreamParticipantRole.js +11 -0
- package/dist/cjs/api/types/StreamTranscript.d.ts +16 -0
- package/dist/cjs/api/types/StreamTranscript.js +5 -0
- package/dist/cjs/api/types/StreamTranscriptMessage.d.ts +8 -0
- package/dist/cjs/api/types/StreamTranscriptMessage.js +5 -0
- package/dist/cjs/api/types/StreamTranscriptTime.d.ts +9 -0
- package/dist/cjs/api/types/StreamTranscriptTime.js +5 -0
- package/dist/cjs/api/types/StreamUsageMessage.d.ts +8 -0
- package/dist/cjs/api/types/StreamUsageMessage.js +5 -0
- package/dist/cjs/api/types/TemplateFiltered.d.ts +20 -0
- package/dist/cjs/api/types/TemplateFiltered.js +5 -0
- package/dist/cjs/api/types/TemplateFilteredTemplateSectionsItem.d.ts +10 -0
- package/dist/cjs/api/types/TemplateFilteredTemplateSectionsItem.js +5 -0
- package/dist/cjs/api/types/TemplateFilteredTranslationsItem.d.ts +11 -0
- package/dist/cjs/api/types/TemplateFilteredTranslationsItem.js +5 -0
- package/dist/cjs/api/types/TranscribeCommand.d.ts +12 -0
- package/dist/cjs/api/types/TranscribeCommand.js +5 -0
- package/dist/cjs/api/types/TranscribeCommandData.d.ts +15 -0
- package/dist/cjs/api/types/TranscribeCommandData.js +5 -0
- package/dist/cjs/api/types/TranscribeCommandMessage.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeCommandMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeCommandVariable.d.ts +11 -0
- package/dist/cjs/api/types/TranscribeCommandVariable.js +5 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessage.d.ts +12 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessageType.d.ts +12 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessageType.js +11 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessage.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfiguration.d.ts +16 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfiguration.js +5 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.ts +21 -0
- package/dist/cjs/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.js +20 -0
- package/dist/cjs/api/types/TranscribeEndMessage.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeEndMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeEndedMessage.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeEndedMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeErrorMessage.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeErrorMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +15 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.js +5 -0
- package/dist/cjs/api/types/TranscribeTranscriptData.d.ts +15 -0
- package/dist/cjs/api/types/TranscribeTranscriptData.js +5 -0
- package/dist/cjs/api/types/TranscribeTranscriptMessage.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeTranscriptMessage.js +5 -0
- package/dist/cjs/api/types/TranscribeUsageMessage.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeUsageMessage.js +5 -0
- package/dist/cjs/api/types/Transcript.d.ts +17 -0
- package/dist/cjs/api/types/Transcript.js +5 -0
- package/dist/cjs/api/types/UsageInfo.d.ts +6 -0
- package/dist/cjs/api/types/UsageInfo.js +5 -0
- package/dist/cjs/api/types/Uuid.d.ts +4 -0
- package/dist/cjs/api/types/Uuid.js +5 -0
- package/dist/cjs/api/types/V2DocumentContextTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/V2DocumentContextTypeEnum.js +11 -0
- package/dist/cjs/api/types/V2SourceEnum.d.ts +9 -0
- package/dist/cjs/api/types/V2SourceEnum.js +11 -0
- package/dist/cjs/api/types/WritingStyle.d.ts +7 -0
- package/dist/cjs/api/types/WritingStyle.js +5 -0
- package/dist/cjs/api/types/index.d.ts +91 -0
- package/dist/cjs/api/types/index.js +107 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +26 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
- package/dist/cjs/core/auth/BearerToken.js +15 -0
- package/dist/cjs/core/auth/OAuthTokenProvider.d.ts +25 -0
- package/dist/cjs/core/auth/OAuthTokenProvider.js +86 -0
- package/dist/cjs/core/auth/index.d.ts +3 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +17 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +14 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +12 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +68 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +54 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +6 -0
- package/dist/cjs/core/index.js +22 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/pagination/Page.d.ts +32 -0
- package/dist/cjs/core/pagination/Page.js +100 -0
- package/dist/cjs/core/pagination/Pageable.d.ts +14 -0
- package/dist/cjs/core/pagination/Pageable.js +10 -0
- package/dist/cjs/core/pagination/index.d.ts +2 -0
- package/dist/cjs/core/pagination/index.js +7 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/utils/index.d.ts +1 -0
- package/dist/cjs/core/utils/index.js +5 -0
- package/dist/cjs/core/utils/setObjectProperty.d.ts +11 -0
- package/dist/cjs/core/utils/setObjectProperty.js +42 -0
- package/dist/cjs/core/websocket/events.d.ts +36 -0
- package/dist/cjs/core/websocket/events.js +27 -0
- package/dist/cjs/core/websocket/index.d.ts +1 -0
- package/dist/cjs/core/websocket/index.js +17 -0
- package/dist/cjs/core/websocket/ws.d.ts +137 -0
- package/dist/cjs/core/websocket/ws.js +452 -0
- package/dist/cjs/custom/CortiAuth.d.ts +57 -0
- package/dist/cjs/custom/CortiAuth.js +185 -0
- package/dist/cjs/custom/CortiClient.d.ts +113 -0
- package/dist/cjs/custom/CortiClient.js +148 -0
- package/dist/cjs/custom/CustomStream.d.ts +15 -0
- package/dist/cjs/custom/CustomStream.js +82 -0
- package/dist/cjs/custom/CustomStreamSocket.d.ts +11 -0
- package/dist/cjs/custom/CustomStreamSocket.js +62 -0
- package/dist/cjs/custom/CustomTranscribe.d.ts +15 -0
- package/dist/cjs/custom/CustomTranscribe.js +82 -0
- package/dist/cjs/custom/CustomTranscribeSocket.d.ts +11 -0
- package/dist/cjs/custom/CustomTranscribeSocket.js +62 -0
- package/dist/cjs/custom/RefreshBearerProvider.d.ts +23 -0
- package/dist/cjs/custom/RefreshBearerProvider.js +85 -0
- package/dist/cjs/environments.d.ts +26 -0
- package/dist/cjs/environments.js +23 -0
- package/dist/cjs/errors/CortiError.d.ts +15 -0
- package/dist/cjs/errors/CortiError.js +30 -0
- package/dist/cjs/errors/CortiTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/CortiTimeoutError.js +13 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +14 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +9 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/errors/GatewayTimeoutError.d.mts +9 -0
- package/dist/esm/api/errors/GatewayTimeoutError.mjs +15 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
- package/dist/esm/api/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +6 -0
- package/dist/esm/api/errors/index.mjs +6 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/auth/client/Client.mjs +89 -0
- package/dist/esm/api/resources/auth/client/index.d.mts +2 -0
- package/dist/esm/api/resources/auth/client/index.mjs +1 -0
- package/dist/esm/api/resources/auth/client/requests/AuthGetTokenRequest.d.mts +14 -0
- package/dist/esm/api/resources/auth/client/requests/AuthGetTokenRequest.mjs +4 -0
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/auth/index.d.mts +2 -0
- package/dist/esm/api/resources/auth/index.mjs +2 -0
- package/dist/esm/api/resources/auth/types/GetTokenResponse.d.mts +10 -0
- package/dist/esm/api/resources/auth/types/GetTokenResponse.mjs +4 -0
- package/dist/esm/api/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/types/index.mjs +1 -0
- package/dist/esm/api/resources/documents/client/Client.d.mts +127 -0
- package/dist/esm/api/resources/documents/client/Client.mjs +400 -0
- package/dist/esm/api/resources/documents/client/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/client/index.mjs +1 -0
- package/dist/esm/api/resources/documents/client/requests/DocumentsGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/documents/client/requests/DocumentsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentCreate.d.mts +31 -0
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentCreate.mjs +4 -0
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentUpdate.d.mts +13 -0
- package/dist/esm/api/resources/documents/client/requests/RequestDocumentUpdate.mjs +4 -0
- package/dist/esm/api/resources/documents/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/documents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/documents/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/index.mjs +2 -0
- package/dist/esm/api/resources/documents/types/RequestDocumentCreateContextItem.d.mts +10 -0
- package/dist/esm/api/resources/documents/types/RequestDocumentCreateContextItem.mjs +4 -0
- package/dist/esm/api/resources/documents/types/RequestDocumentUpdateSectionsItem.d.mts +9 -0
- package/dist/esm/api/resources/documents/types/RequestDocumentUpdateSectionsItem.mjs +4 -0
- package/dist/esm/api/resources/documents/types/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/types/index.mjs +2 -0
- package/dist/esm/api/resources/facts/client/Client.d.mts +113 -0
- package/dist/esm/api/resources/facts/client/Client.mjs +353 -0
- package/dist/esm/api/resources/facts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/facts/client/index.mjs +1 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactUpdate.d.mts +21 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactUpdate.mjs +4 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactsCreate.d.mts +17 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactsCreate.mjs +4 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactsUpdate.d.mts +16 -0
- package/dist/esm/api/resources/facts/client/requests/RequestFactsUpdate.mjs +4 -0
- package/dist/esm/api/resources/facts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/facts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/facts/index.d.mts +2 -0
- package/dist/esm/api/resources/facts/index.mjs +2 -0
- package/dist/esm/api/resources/facts/types/RequestFactsCreateFactsItem.d.mts +12 -0
- package/dist/esm/api/resources/facts/types/RequestFactsCreateFactsItem.mjs +4 -0
- package/dist/esm/api/resources/facts/types/RequestFactsUpdateFactsItem.d.mts +14 -0
- package/dist/esm/api/resources/facts/types/RequestFactsUpdateFactsItem.mjs +4 -0
- package/dist/esm/api/resources/facts/types/index.d.mts +2 -0
- package/dist/esm/api/resources/facts/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +20 -0
- package/dist/esm/api/resources/index.mjs +20 -0
- package/dist/esm/api/resources/interactions/client/Client.d.mts +113 -0
- package/dist/esm/api/resources/interactions/client/Client.mjs +402 -0
- package/dist/esm/api/resources/interactions/client/index.d.mts +2 -0
- package/dist/esm/api/resources/interactions/client/index.mjs +1 -0
- package/dist/esm/api/resources/interactions/client/requests/InteractionsListRequest.d.mts +34 -0
- package/dist/esm/api/resources/interactions/client/requests/InteractionsListRequest.mjs +4 -0
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionCreate.d.mts +22 -0
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionCreate.mjs +4 -0
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionUpdate.d.mts +16 -0
- package/dist/esm/api/resources/interactions/client/requests/RequestInteractionUpdate.mjs +4 -0
- package/dist/esm/api/resources/interactions/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/interactions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/interactions/index.d.mts +2 -0
- package/dist/esm/api/resources/interactions/index.mjs +2 -0
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestDirection.d.mts +11 -0
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestDirection.mjs +7 -0
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestSort.d.mts +12 -0
- package/dist/esm/api/resources/interactions/types/InteractionsListRequestSort.mjs +8 -0
- package/dist/esm/api/resources/interactions/types/index.d.mts +2 -0
- package/dist/esm/api/resources/interactions/types/index.mjs +2 -0
- package/dist/esm/api/resources/recordings/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/recordings/client/Client.mjs +307 -0
- package/dist/esm/api/resources/recordings/client/index.d.mts +1 -0
- package/dist/esm/api/resources/recordings/client/index.mjs +1 -0
- package/dist/esm/api/resources/recordings/index.d.mts +1 -0
- package/dist/esm/api/resources/recordings/index.mjs +1 -0
- package/dist/esm/api/resources/stream/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/stream/client/Client.mjs +45 -0
- package/dist/esm/api/resources/stream/client/Socket.d.mts +54 -0
- package/dist/esm/api/resources/stream/client/Socket.mjs +123 -0
- package/dist/esm/api/resources/stream/client/index.d.mts +1 -0
- package/dist/esm/api/resources/stream/client/index.mjs +1 -0
- package/dist/esm/api/resources/stream/index.d.mts +1 -0
- package/dist/esm/api/resources/stream/index.mjs +1 -0
- package/dist/esm/api/resources/templates/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/templates/client/Client.mjs +241 -0
- package/dist/esm/api/resources/templates/client/index.d.mts +2 -0
- package/dist/esm/api/resources/templates/client/index.mjs +1 -0
- package/dist/esm/api/resources/templates/client/requests/TemplatesListRequest.d.mts +21 -0
- package/dist/esm/api/resources/templates/client/requests/TemplatesListRequest.mjs +4 -0
- package/dist/esm/api/resources/templates/client/requests/TemplatesSectionsListRequest.d.mts +17 -0
- package/dist/esm/api/resources/templates/client/requests/TemplatesSectionsListRequest.mjs +4 -0
- package/dist/esm/api/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/templates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/templates/index.d.mts +1 -0
- package/dist/esm/api/resources/templates/index.mjs +1 -0
- package/dist/esm/api/resources/transcribe/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/transcribe/client/Client.mjs +45 -0
- package/dist/esm/api/resources/transcribe/client/Socket.d.mts +54 -0
- package/dist/esm/api/resources/transcribe/client/Socket.mjs +123 -0
- package/dist/esm/api/resources/transcribe/client/index.d.mts +1 -0
- package/dist/esm/api/resources/transcribe/client/index.mjs +1 -0
- package/dist/esm/api/resources/transcribe/index.d.mts +1 -0
- package/dist/esm/api/resources/transcribe/index.mjs +1 -0
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +110 -0
- package/dist/esm/api/resources/transcripts/client/Client.mjs +362 -0
- package/dist/esm/api/resources/transcripts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/transcripts/client/index.mjs +1 -0
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptCreate.d.mts +28 -0
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptCreate.mjs +4 -0
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsListRequest.d.mts +30 -0
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsListRequest.mjs +4 -0
- package/dist/esm/api/resources/transcripts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/transcripts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/transcripts/index.d.mts +2 -0
- package/dist/esm/api/resources/transcripts/index.mjs +2 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateModelName.d.mts +12 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateModelName.mjs +8 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.d.mts +10 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreateParticipantsItem.mjs +4 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.d.mts +21 -0
- package/dist/esm/api/resources/transcripts/types/RequestTranscriptCreatePrimaryLanguage.mjs +17 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestDirection.d.mts +11 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestDirection.mjs +7 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestSort.d.mts +11 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsListRequestSort.mjs +7 -0
- package/dist/esm/api/resources/transcripts/types/index.d.mts +5 -0
- package/dist/esm/api/resources/transcripts/types/index.mjs +5 -0
- package/dist/esm/api/types/DocumentContextData.d.mts +14 -0
- package/dist/esm/api/types/DocumentContextData.mjs +4 -0
- package/dist/esm/api/types/DocumentTemplate.d.mts +14 -0
- package/dist/esm/api/types/DocumentTemplate.mjs +4 -0
- package/dist/esm/api/types/Encounter.d.mts +16 -0
- package/dist/esm/api/types/Encounter.mjs +4 -0
- package/dist/esm/api/types/EncounterPeriod.d.mts +9 -0
- package/dist/esm/api/types/EncounterPeriod.mjs +4 -0
- package/dist/esm/api/types/EncounterStatus.d.mts +12 -0
- package/dist/esm/api/types/EncounterStatus.mjs +11 -0
- package/dist/esm/api/types/EncounterType.d.mts +11 -0
- package/dist/esm/api/types/EncounterType.mjs +10 -0
- package/dist/esm/api/types/EncounterUpdate.d.mts +16 -0
- package/dist/esm/api/types/EncounterUpdate.mjs +4 -0
- package/dist/esm/api/types/ErrorResponse.d.mts +11 -0
- package/dist/esm/api/types/ErrorResponse.mjs +4 -0
- package/dist/esm/api/types/FactContext.d.mts +12 -0
- package/dist/esm/api/types/FactContext.mjs +4 -0
- package/dist/esm/api/types/GenderEnum.d.mts +10 -0
- package/dist/esm/api/types/GenderEnum.mjs +9 -0
- package/dist/esm/api/types/ParticipantRoleEnum.d.mts +9 -0
- package/dist/esm/api/types/ParticipantRoleEnum.mjs +8 -0
- package/dist/esm/api/types/Patient.d.mts +16 -0
- package/dist/esm/api/types/Patient.mjs +4 -0
- package/dist/esm/api/types/PatientUpdate.d.mts +16 -0
- package/dist/esm/api/types/PatientUpdate.mjs +4 -0
- package/dist/esm/api/types/ResponseAllTemplateSections.d.mts +8 -0
- package/dist/esm/api/types/ResponseAllTemplateSections.mjs +4 -0
- package/dist/esm/api/types/ResponseAllTemplates.d.mts +8 -0
- package/dist/esm/api/types/ResponseAllTemplates.mjs +4 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItem.d.mts +20 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItem.mjs +4 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.d.mts +10 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTemplateSectionsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTranslationsItem.d.mts +11 -0
- package/dist/esm/api/types/ResponseAllTemplatesDataItemTranslationsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseDocumentList.d.mts +7 -0
- package/dist/esm/api/types/ResponseDocumentList.mjs +4 -0
- package/dist/esm/api/types/ResponseDocumentRead.d.mts +22 -0
- package/dist/esm/api/types/ResponseDocumentRead.mjs +4 -0
- package/dist/esm/api/types/ResponseDocumentReadSectionsItem.d.mts +17 -0
- package/dist/esm/api/types/ResponseDocumentReadSectionsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactGroupsFiltered.d.mts +7 -0
- package/dist/esm/api/types/ResponseFactGroupsFiltered.mjs +4 -0
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItem.d.mts +9 -0
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.d.mts +8 -0
- package/dist/esm/api/types/ResponseFactGroupsFilteredDataItemTranslationsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactUpdate.d.mts +22 -0
- package/dist/esm/api/types/ResponseFactUpdate.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsCreate.d.mts +8 -0
- package/dist/esm/api/types/ResponseFactsCreate.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsCreateFactsItem.d.mts +20 -0
- package/dist/esm/api/types/ResponseFactsCreateFactsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsList.d.mts +8 -0
- package/dist/esm/api/types/ResponseFactsList.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsListFactsItem.d.mts +23 -0
- package/dist/esm/api/types/ResponseFactsListFactsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsListFactsItemEvidenceItem.d.mts +11 -0
- package/dist/esm/api/types/ResponseFactsListFactsItemEvidenceItem.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsUpdate.d.mts +8 -0
- package/dist/esm/api/types/ResponseFactsUpdate.mjs +4 -0
- package/dist/esm/api/types/ResponseFactsUpdateFactsItem.d.mts +22 -0
- package/dist/esm/api/types/ResponseFactsUpdateFactsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseInteraction.d.mts +24 -0
- package/dist/esm/api/types/ResponseInteraction.mjs +4 -0
- package/dist/esm/api/types/ResponseInteractionCreate.d.mts +10 -0
- package/dist/esm/api/types/ResponseInteractionCreate.mjs +4 -0
- package/dist/esm/api/types/ResponseInteractions.d.mts +7 -0
- package/dist/esm/api/types/ResponseInteractions.mjs +4 -0
- package/dist/esm/api/types/ResponseMetadataCreate.d.mts +7 -0
- package/dist/esm/api/types/ResponseMetadataCreate.mjs +4 -0
- package/dist/esm/api/types/ResponseMetadataCreateParticipantsRolesItem.d.mts +10 -0
- package/dist/esm/api/types/ResponseMetadataCreateParticipantsRolesItem.mjs +4 -0
- package/dist/esm/api/types/ResponseRecordingCreate.d.mts +8 -0
- package/dist/esm/api/types/ResponseRecordingCreate.mjs +4 -0
- package/dist/esm/api/types/ResponseRecordingList.d.mts +8 -0
- package/dist/esm/api/types/ResponseRecordingList.mjs +4 -0
- package/dist/esm/api/types/ResponseTranscriptCreate.d.mts +13 -0
- package/dist/esm/api/types/ResponseTranscriptCreate.mjs +4 -0
- package/dist/esm/api/types/ResponseTranscriptCreateTranscriptsItem.d.mts +17 -0
- package/dist/esm/api/types/ResponseTranscriptCreateTranscriptsItem.mjs +4 -0
- package/dist/esm/api/types/ResponseTranscriptListAll.d.mts +7 -0
- package/dist/esm/api/types/ResponseTranscriptListAll.mjs +4 -0
- package/dist/esm/api/types/ResponseTranscriptListAllTranscriptsItem.d.mts +9 -0
- package/dist/esm/api/types/ResponseTranscriptListAllTranscriptsItem.mjs +4 -0
- package/dist/esm/api/types/Section.d.mts +22 -0
- package/dist/esm/api/types/Section.mjs +4 -0
- package/dist/esm/api/types/SectionTranslationsItem.d.mts +11 -0
- package/dist/esm/api/types/SectionTranslationsItem.mjs +4 -0
- package/dist/esm/api/types/StreamConfigData.d.mts +8 -0
- package/dist/esm/api/types/StreamConfigData.mjs +4 -0
- package/dist/esm/api/types/StreamConfigMode.d.mts +10 -0
- package/dist/esm/api/types/StreamConfigMode.mjs +4 -0
- package/dist/esm/api/types/StreamConfigModeOutputLocale.d.mts +21 -0
- package/dist/esm/api/types/StreamConfigModeOutputLocale.mjs +17 -0
- package/dist/esm/api/types/StreamConfigModeType.d.mts +11 -0
- package/dist/esm/api/types/StreamConfigModeType.mjs +7 -0
- package/dist/esm/api/types/StreamConfigStatusMessage.d.mts +12 -0
- package/dist/esm/api/types/StreamConfigStatusMessage.mjs +4 -0
- package/dist/esm/api/types/StreamConfigStatusMessageType.d.mts +15 -0
- package/dist/esm/api/types/StreamConfigStatusMessageType.mjs +11 -0
- package/dist/esm/api/types/StreamConfigTranscription.d.mts +14 -0
- package/dist/esm/api/types/StreamConfigTranscription.mjs +4 -0
- package/dist/esm/api/types/StreamConfigTranscriptionPrimaryLanguage.d.mts +21 -0
- package/dist/esm/api/types/StreamConfigTranscriptionPrimaryLanguage.mjs +17 -0
- package/dist/esm/api/types/StreamConfigurationMessage.d.mts +8 -0
- package/dist/esm/api/types/StreamConfigurationMessage.mjs +4 -0
- package/dist/esm/api/types/StreamEndMessage.d.mts +6 -0
- package/dist/esm/api/types/StreamEndMessage.mjs +4 -0
- package/dist/esm/api/types/StreamEndedMessage.d.mts +6 -0
- package/dist/esm/api/types/StreamEndedMessage.mjs +4 -0
- package/dist/esm/api/types/StreamErrorDetail.d.mts +15 -0
- package/dist/esm/api/types/StreamErrorDetail.mjs +4 -0
- package/dist/esm/api/types/StreamErrorMessage.d.mts +8 -0
- package/dist/esm/api/types/StreamErrorMessage.mjs +4 -0
- package/dist/esm/api/types/StreamFact.d.mts +21 -0
- package/dist/esm/api/types/StreamFact.mjs +4 -0
- package/dist/esm/api/types/StreamFactsMessage.d.mts +8 -0
- package/dist/esm/api/types/StreamFactsMessage.mjs +4 -0
- package/dist/esm/api/types/StreamParticipant.d.mts +10 -0
- package/dist/esm/api/types/StreamParticipant.mjs +4 -0
- package/dist/esm/api/types/StreamParticipantRole.d.mts +12 -0
- package/dist/esm/api/types/StreamParticipantRole.mjs +8 -0
- package/dist/esm/api/types/StreamTranscript.d.mts +16 -0
- package/dist/esm/api/types/StreamTranscript.mjs +4 -0
- package/dist/esm/api/types/StreamTranscriptMessage.d.mts +8 -0
- package/dist/esm/api/types/StreamTranscriptMessage.mjs +4 -0
- package/dist/esm/api/types/StreamTranscriptTime.d.mts +9 -0
- package/dist/esm/api/types/StreamTranscriptTime.mjs +4 -0
- package/dist/esm/api/types/StreamUsageMessage.d.mts +8 -0
- package/dist/esm/api/types/StreamUsageMessage.mjs +4 -0
- package/dist/esm/api/types/TemplateFiltered.d.mts +20 -0
- package/dist/esm/api/types/TemplateFiltered.mjs +4 -0
- package/dist/esm/api/types/TemplateFilteredTemplateSectionsItem.d.mts +10 -0
- package/dist/esm/api/types/TemplateFilteredTemplateSectionsItem.mjs +4 -0
- package/dist/esm/api/types/TemplateFilteredTranslationsItem.d.mts +11 -0
- package/dist/esm/api/types/TemplateFilteredTranslationsItem.mjs +4 -0
- package/dist/esm/api/types/TranscribeCommand.d.mts +12 -0
- package/dist/esm/api/types/TranscribeCommand.mjs +4 -0
- package/dist/esm/api/types/TranscribeCommandData.d.mts +15 -0
- package/dist/esm/api/types/TranscribeCommandData.mjs +4 -0
- package/dist/esm/api/types/TranscribeCommandMessage.d.mts +8 -0
- package/dist/esm/api/types/TranscribeCommandMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeCommandVariable.d.mts +11 -0
- package/dist/esm/api/types/TranscribeCommandVariable.mjs +4 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessage.d.mts +12 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessageType.d.mts +12 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessageType.mjs +8 -0
- package/dist/esm/api/types/TranscribeConfigurationMessage.d.mts +8 -0
- package/dist/esm/api/types/TranscribeConfigurationMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeConfigurationMessageConfiguration.d.mts +16 -0
- package/dist/esm/api/types/TranscribeConfigurationMessageConfiguration.mjs +4 -0
- package/dist/esm/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.d.mts +21 -0
- package/dist/esm/api/types/TranscribeConfigurationMessageConfigurationPrimaryLanguage.mjs +17 -0
- package/dist/esm/api/types/TranscribeEndMessage.d.mts +6 -0
- package/dist/esm/api/types/TranscribeEndMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeEndedMessage.d.mts +6 -0
- package/dist/esm/api/types/TranscribeEndedMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeErrorMessage.d.mts +8 -0
- package/dist/esm/api/types/TranscribeErrorMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +15 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.mjs +4 -0
- package/dist/esm/api/types/TranscribeTranscriptData.d.mts +15 -0
- package/dist/esm/api/types/TranscribeTranscriptData.mjs +4 -0
- package/dist/esm/api/types/TranscribeTranscriptMessage.d.mts +8 -0
- package/dist/esm/api/types/TranscribeTranscriptMessage.mjs +4 -0
- package/dist/esm/api/types/TranscribeUsageMessage.d.mts +8 -0
- package/dist/esm/api/types/TranscribeUsageMessage.mjs +4 -0
- package/dist/esm/api/types/Transcript.d.mts +17 -0
- package/dist/esm/api/types/Transcript.mjs +4 -0
- package/dist/esm/api/types/UsageInfo.d.mts +6 -0
- package/dist/esm/api/types/UsageInfo.mjs +4 -0
- package/dist/esm/api/types/Uuid.d.mts +4 -0
- package/dist/esm/api/types/Uuid.mjs +4 -0
- package/dist/esm/api/types/V2DocumentContextTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/V2DocumentContextTypeEnum.mjs +8 -0
- package/dist/esm/api/types/V2SourceEnum.d.mts +9 -0
- package/dist/esm/api/types/V2SourceEnum.mjs +8 -0
- package/dist/esm/api/types/WritingStyle.d.mts +7 -0
- package/dist/esm/api/types/WritingStyle.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +91 -0
- package/dist/esm/api/types/index.mjs +91 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +23 -0
- package/dist/esm/core/auth/BearerToken.d.mts +5 -0
- package/dist/esm/core/auth/BearerToken.mjs +12 -0
- package/dist/esm/core/auth/OAuthTokenProvider.d.mts +25 -0
- package/dist/esm/core/auth/OAuthTokenProvider.mjs +49 -0
- package/dist/esm/core/auth/index.d.mts +3 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +17 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +11 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +6 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +4 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +32 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +51 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +6 -0
- package/dist/esm/core/index.mjs +6 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/pagination/Page.d.mts +32 -0
- package/dist/esm/core/pagination/Page.mjs +96 -0
- package/dist/esm/core/pagination/Pageable.d.mts +14 -0
- package/dist/esm/core/pagination/Pageable.mjs +6 -0
- package/dist/esm/core/pagination/index.d.mts +2 -0
- package/dist/esm/core/pagination/index.mjs +2 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/utils/index.d.mts +1 -0
- package/dist/esm/core/utils/index.mjs +1 -0
- package/dist/esm/core/utils/setObjectProperty.d.mts +11 -0
- package/dist/esm/core/utils/setObjectProperty.mjs +39 -0
- package/dist/esm/core/websocket/events.d.mts +36 -0
- package/dist/esm/core/websocket/events.mjs +21 -0
- package/dist/esm/core/websocket/index.d.mts +1 -0
- package/dist/esm/core/websocket/index.mjs +1 -0
- package/dist/esm/core/websocket/ws.d.mts +137 -0
- package/dist/esm/core/websocket/ws.mjs +415 -0
- package/dist/esm/custom/CortiAuth.d.mts +57 -0
- package/dist/esm/custom/CortiAuth.mjs +145 -0
- package/dist/esm/custom/CortiClient.d.mts +113 -0
- package/dist/esm/custom/CortiClient.mjs +111 -0
- package/dist/esm/custom/CustomStream.d.mts +15 -0
- package/dist/esm/custom/CustomStream.mjs +45 -0
- package/dist/esm/custom/CustomStreamSocket.d.mts +11 -0
- package/dist/esm/custom/CustomStreamSocket.mjs +25 -0
- package/dist/esm/custom/CustomTranscribe.d.mts +15 -0
- package/dist/esm/custom/CustomTranscribe.mjs +45 -0
- package/dist/esm/custom/CustomTranscribeSocket.d.mts +11 -0
- package/dist/esm/custom/CustomTranscribeSocket.mjs +25 -0
- package/dist/esm/custom/RefreshBearerProvider.d.mts +23 -0
- package/dist/esm/custom/RefreshBearerProvider.mjs +48 -0
- package/dist/esm/environments.d.mts +26 -0
- package/dist/esm/environments.mjs +20 -0
- package/dist/esm/errors/CortiError.d.mts +15 -0
- package/dist/esm/errors/CortiError.mjs +26 -0
- package/dist/esm/errors/CortiTimeoutError.d.mts +6 -0
- package/dist/esm/errors/CortiTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +14 -0
- package/dist/esm/index.mjs +15 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +71 -0
- package/reference.md +1726 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Transcripts = void 0;
|
|
52
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
53
|
+
const Corti = __importStar(require("../../../index.js"));
|
|
54
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
57
|
+
class Transcripts {
|
|
58
|
+
constructor(_options) {
|
|
59
|
+
this._options = _options;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves a list of transcripts for a given interaction.
|
|
63
|
+
*
|
|
64
|
+
* @param {Corti.Uuid} id - The unique identifier of the interaction for which transcripts should be retrieved. Must be a valid UUID.
|
|
65
|
+
* @param {Corti.TranscriptsListRequest} request
|
|
66
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Corti.BadRequestError}
|
|
69
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
70
|
+
* @throws {@link Corti.ForbiddenError}
|
|
71
|
+
* @throws {@link Corti.InternalServerError}
|
|
72
|
+
* @throws {@link Corti.GatewayTimeoutError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.transcripts.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
|
|
76
|
+
*/
|
|
77
|
+
list(id_1) {
|
|
78
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
79
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const { sort, direction, pageSize, index, full } = request;
|
|
82
|
+
const _queryParams = {};
|
|
83
|
+
if (sort != null) {
|
|
84
|
+
_queryParams["sort"] = sort;
|
|
85
|
+
}
|
|
86
|
+
if (direction != null) {
|
|
87
|
+
_queryParams["direction"] = direction;
|
|
88
|
+
}
|
|
89
|
+
if (pageSize != null) {
|
|
90
|
+
_queryParams["pageSize"] = pageSize.toString();
|
|
91
|
+
}
|
|
92
|
+
if (index != null) {
|
|
93
|
+
_queryParams["index"] = index.toString();
|
|
94
|
+
}
|
|
95
|
+
if (full != null) {
|
|
96
|
+
_queryParams["full"] = full.toString();
|
|
97
|
+
}
|
|
98
|
+
const _response = yield core.fetcher({
|
|
99
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).base, `interactions/${encodeURIComponent(id)}/transcripts/`),
|
|
100
|
+
method: "GET",
|
|
101
|
+
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
102
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
103
|
+
"Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
|
|
104
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
105
|
+
queryParameters: _queryParams,
|
|
106
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
107
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
108
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
109
|
+
});
|
|
110
|
+
if (_response.ok) {
|
|
111
|
+
return {
|
|
112
|
+
data: _response.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
switch (_response.error.statusCode) {
|
|
118
|
+
case 400:
|
|
119
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 401:
|
|
121
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 403:
|
|
123
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 500:
|
|
125
|
+
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 504:
|
|
127
|
+
throw new Corti.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.CortiError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
switch (_response.error.reason) {
|
|
137
|
+
case "non-json":
|
|
138
|
+
throw new errors.CortiError({
|
|
139
|
+
statusCode: _response.error.statusCode,
|
|
140
|
+
body: _response.error.rawBody,
|
|
141
|
+
rawResponse: _response.rawResponse,
|
|
142
|
+
});
|
|
143
|
+
case "timeout":
|
|
144
|
+
throw new errors.CortiTimeoutError("Timeout exceeded when calling GET /interactions/{id}/transcripts/.");
|
|
145
|
+
case "unknown":
|
|
146
|
+
throw new errors.CortiError({
|
|
147
|
+
message: _response.error.errorMessage,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}));
|
|
152
|
+
let _offset = (request === null || request === void 0 ? void 0 : request.index) != null ? request === null || request === void 0 ? void 0 : request.index : 1;
|
|
153
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
154
|
+
return new core.Pageable({
|
|
155
|
+
response: dataWithRawResponse.data,
|
|
156
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
157
|
+
hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.transcripts) !== null && _a !== void 0 ? _a : []).length > 0; },
|
|
158
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.transcripts) !== null && _a !== void 0 ? _a : []; },
|
|
159
|
+
loadPage: (_response) => {
|
|
160
|
+
_offset += 1;
|
|
161
|
+
return list(core.setObjectProperty(request, "index", _offset));
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Creates a new transcript for an interaction.
|
|
168
|
+
*
|
|
169
|
+
* @param {Corti.Uuid} id - The unique identifier of the interaction for which the transcript is created. Must be a valid UUID.
|
|
170
|
+
* @param {Corti.TranscriptCreate} request
|
|
171
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
|
+
*
|
|
173
|
+
* @throws {@link Corti.BadRequestError}
|
|
174
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
175
|
+
* @throws {@link Corti.ForbiddenError}
|
|
176
|
+
* @throws {@link Corti.InternalServerError}
|
|
177
|
+
* @throws {@link Corti.GatewayTimeoutError}
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* await client.transcripts.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
|
|
181
|
+
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
182
|
+
* primaryLanguage: "en",
|
|
183
|
+
* modelName: "premier"
|
|
184
|
+
* })
|
|
185
|
+
*/
|
|
186
|
+
create(id, request, requestOptions) {
|
|
187
|
+
return core.HttpResponsePromise.fromPromise(this.__create(id, request, requestOptions));
|
|
188
|
+
}
|
|
189
|
+
__create(id, request, requestOptions) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
var _a, _b;
|
|
192
|
+
const _response = yield core.fetcher({
|
|
193
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).base, `interactions/${encodeURIComponent(id)}/transcripts/`),
|
|
194
|
+
method: "POST",
|
|
195
|
+
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
196
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
197
|
+
"Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
|
|
198
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
199
|
+
contentType: "application/json",
|
|
200
|
+
requestType: "json",
|
|
201
|
+
body: request,
|
|
202
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
203
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
204
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
205
|
+
});
|
|
206
|
+
if (_response.ok) {
|
|
207
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
208
|
+
}
|
|
209
|
+
if (_response.error.reason === "status-code") {
|
|
210
|
+
switch (_response.error.statusCode) {
|
|
211
|
+
case 400:
|
|
212
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
213
|
+
case 401:
|
|
214
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
215
|
+
case 403:
|
|
216
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
217
|
+
case 500:
|
|
218
|
+
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
219
|
+
case 504:
|
|
220
|
+
throw new Corti.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
221
|
+
default:
|
|
222
|
+
throw new errors.CortiError({
|
|
223
|
+
statusCode: _response.error.statusCode,
|
|
224
|
+
body: _response.error.body,
|
|
225
|
+
rawResponse: _response.rawResponse,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
switch (_response.error.reason) {
|
|
230
|
+
case "non-json":
|
|
231
|
+
throw new errors.CortiError({
|
|
232
|
+
statusCode: _response.error.statusCode,
|
|
233
|
+
body: _response.error.rawBody,
|
|
234
|
+
rawResponse: _response.rawResponse,
|
|
235
|
+
});
|
|
236
|
+
case "timeout":
|
|
237
|
+
throw new errors.CortiTimeoutError("Timeout exceeded when calling POST /interactions/{id}/transcripts/.");
|
|
238
|
+
case "unknown":
|
|
239
|
+
throw new errors.CortiError({
|
|
240
|
+
message: _response.error.errorMessage,
|
|
241
|
+
rawResponse: _response.rawResponse,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Retrieves the transcript for a specific interaction.
|
|
248
|
+
*
|
|
249
|
+
* @param {Corti.Uuid} id - The unique identifier of the interaction containing the transcript. Must be a valid UUID.
|
|
250
|
+
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript to retrieve. Must be a valid UUID.
|
|
251
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
252
|
+
*
|
|
253
|
+
* @throws {@link Corti.BadRequestError}
|
|
254
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
255
|
+
* @throws {@link Corti.ForbiddenError}
|
|
256
|
+
* @throws {@link Corti.InternalServerError}
|
|
257
|
+
* @throws {@link Corti.GatewayTimeoutError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.transcripts.get("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
|
|
261
|
+
*/
|
|
262
|
+
get(id, transcriptId, requestOptions) {
|
|
263
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, transcriptId, requestOptions));
|
|
264
|
+
}
|
|
265
|
+
__get(id, transcriptId, requestOptions) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
var _a, _b;
|
|
268
|
+
const _response = yield core.fetcher({
|
|
269
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).base, `interactions/${encodeURIComponent(id)}/transcripts/${encodeURIComponent(transcriptId)}`),
|
|
270
|
+
method: "GET",
|
|
271
|
+
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
272
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
273
|
+
"Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
|
|
274
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
275
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
276
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
277
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
278
|
+
});
|
|
279
|
+
if (_response.ok) {
|
|
280
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
281
|
+
}
|
|
282
|
+
if (_response.error.reason === "status-code") {
|
|
283
|
+
switch (_response.error.statusCode) {
|
|
284
|
+
case 400:
|
|
285
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
286
|
+
case 401:
|
|
287
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
288
|
+
case 403:
|
|
289
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
290
|
+
case 500:
|
|
291
|
+
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
292
|
+
case 504:
|
|
293
|
+
throw new Corti.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
294
|
+
default:
|
|
295
|
+
throw new errors.CortiError({
|
|
296
|
+
statusCode: _response.error.statusCode,
|
|
297
|
+
body: _response.error.body,
|
|
298
|
+
rawResponse: _response.rawResponse,
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
switch (_response.error.reason) {
|
|
303
|
+
case "non-json":
|
|
304
|
+
throw new errors.CortiError({
|
|
305
|
+
statusCode: _response.error.statusCode,
|
|
306
|
+
body: _response.error.rawBody,
|
|
307
|
+
rawResponse: _response.rawResponse,
|
|
308
|
+
});
|
|
309
|
+
case "timeout":
|
|
310
|
+
throw new errors.CortiTimeoutError("Timeout exceeded when calling GET /interactions/{id}/transcripts/{transcriptId}.");
|
|
311
|
+
case "unknown":
|
|
312
|
+
throw new errors.CortiError({
|
|
313
|
+
message: _response.error.errorMessage,
|
|
314
|
+
rawResponse: _response.rawResponse,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Deletes a specific transcript associated with an interaction.
|
|
321
|
+
*
|
|
322
|
+
* @param {Corti.Uuid} id - The unique identifier of the interaction to which the transcript belongs. Must be a valid UUID.
|
|
323
|
+
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript to delete. Must be a valid UUID.
|
|
324
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
325
|
+
*
|
|
326
|
+
* @throws {@link Corti.BadRequestError}
|
|
327
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
328
|
+
* @throws {@link Corti.ForbiddenError}
|
|
329
|
+
* @throws {@link Corti.InternalServerError}
|
|
330
|
+
* @throws {@link Corti.GatewayTimeoutError}
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* await client.transcripts.delete("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
|
|
334
|
+
*/
|
|
335
|
+
delete(id, transcriptId, requestOptions) {
|
|
336
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, transcriptId, requestOptions));
|
|
337
|
+
}
|
|
338
|
+
__delete(id, transcriptId, requestOptions) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
var _a, _b;
|
|
341
|
+
const _response = yield core.fetcher({
|
|
342
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).base, `interactions/${encodeURIComponent(id)}/transcripts/${encodeURIComponent(transcriptId)}`),
|
|
343
|
+
method: "DELETE",
|
|
344
|
+
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
345
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
346
|
+
"Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
|
|
347
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
348
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
349
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
350
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
351
|
+
});
|
|
352
|
+
if (_response.ok) {
|
|
353
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
354
|
+
}
|
|
355
|
+
if (_response.error.reason === "status-code") {
|
|
356
|
+
switch (_response.error.statusCode) {
|
|
357
|
+
case 400:
|
|
358
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
359
|
+
case 401:
|
|
360
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
361
|
+
case 403:
|
|
362
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 500:
|
|
364
|
+
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 504:
|
|
366
|
+
throw new Corti.GatewayTimeoutError(_response.error.body, _response.rawResponse);
|
|
367
|
+
default:
|
|
368
|
+
throw new errors.CortiError({
|
|
369
|
+
statusCode: _response.error.statusCode,
|
|
370
|
+
body: _response.error.body,
|
|
371
|
+
rawResponse: _response.rawResponse,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
switch (_response.error.reason) {
|
|
376
|
+
case "non-json":
|
|
377
|
+
throw new errors.CortiError({
|
|
378
|
+
statusCode: _response.error.statusCode,
|
|
379
|
+
body: _response.error.rawBody,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
});
|
|
382
|
+
case "timeout":
|
|
383
|
+
throw new errors.CortiTimeoutError("Timeout exceeded when calling DELETE /interactions/{id}/transcripts/{transcriptId}.");
|
|
384
|
+
case "unknown":
|
|
385
|
+
throw new errors.CortiError({
|
|
386
|
+
message: _response.error.errorMessage,
|
|
387
|
+
rawResponse: _response.rawResponse,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
_getAuthorizationHeader() {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
395
|
+
if (bearer != null) {
|
|
396
|
+
return `Bearer ${bearer}`;
|
|
397
|
+
}
|
|
398
|
+
return undefined;
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
exports.Transcripts = Transcripts;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Corti from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
9
|
+
* primaryLanguage: "en",
|
|
10
|
+
* modelName: "premier"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface TranscriptCreate {
|
|
14
|
+
/** The unique identifier for the recording. */
|
|
15
|
+
recordingId: Corti.Uuid;
|
|
16
|
+
/** The primary spoken language of the recording. Check https://docs.corti.ai/about/languages for more. */
|
|
17
|
+
primaryLanguage: Corti.RequestTranscriptCreatePrimaryLanguage;
|
|
18
|
+
/** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
|
|
19
|
+
isDictation?: boolean;
|
|
20
|
+
/** If true, each audio channel is transcribed separately. */
|
|
21
|
+
isMultichannel?: boolean;
|
|
22
|
+
/** If true, separates speakers within an audio channel returning incrementing ids for transcript segments. */
|
|
23
|
+
diarize?: boolean;
|
|
24
|
+
/** An array of participants, each specifying a role and an assigned audio channel in the recording. Leave empty when shouldDiarize: true */
|
|
25
|
+
participants?: Corti.RequestTranscriptCreateParticipantsItem[];
|
|
26
|
+
/** Can be "base", "enhanced", "premier". By default, only the highest tier is accessible. Check https://docs.corti.ai/about/languages for more. */
|
|
27
|
+
modelName: Corti.RequestTranscriptCreateModelName;
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Corti from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface TranscriptsListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Describes transcript attribute for sorting
|
|
12
|
+
*/
|
|
13
|
+
sort?: Corti.TranscriptsListRequestSort;
|
|
14
|
+
/**
|
|
15
|
+
* Describes sorting direction
|
|
16
|
+
*/
|
|
17
|
+
direction?: Corti.TranscriptsListRequestDirection;
|
|
18
|
+
/**
|
|
19
|
+
* The number of transcripts to return. For example, a pageSize of 10 will return a maximum of 10 interactions.
|
|
20
|
+
*/
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The number of transcripts to skip. For example, index=2 with pageSize=10 will skip the first 10 interactions and return 11-20.
|
|
24
|
+
*/
|
|
25
|
+
index?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Display full transcripts in listing
|
|
28
|
+
*/
|
|
29
|
+
full?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/index.js"), exports);
|
|
18
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Can be "base", "enhanced", "premier". By default, only the highest tier is accessible. Check https://docs.corti.ai/about/languages for more.
|
|
6
|
+
*/
|
|
7
|
+
export type RequestTranscriptCreateModelName = "premier" | "enhanced" | "basic";
|
|
8
|
+
export declare const RequestTranscriptCreateModelName: {
|
|
9
|
+
readonly Premier: "premier";
|
|
10
|
+
readonly Enhanced: "enhanced";
|
|
11
|
+
readonly Basic: "basic";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RequestTranscriptCreateModelName = void 0;
|
|
7
|
+
exports.RequestTranscriptCreateModelName = {
|
|
8
|
+
Premier: "premier",
|
|
9
|
+
Enhanced: "enhanced",
|
|
10
|
+
Basic: "basic",
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Corti from "../../../index.js";
|
|
5
|
+
export interface RequestTranscriptCreateParticipantsItem {
|
|
6
|
+
/** The audio channel to associate with a participant role. */
|
|
7
|
+
channel: number;
|
|
8
|
+
/** The role of the participant (e.g., 'doctor', 'patient', use 'multiple' for single channel). */
|
|
9
|
+
role: Corti.ParticipantRoleEnum;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The primary spoken language of the recording. Check https://docs.corti.ai/about/languages for more.
|
|
6
|
+
*/
|
|
7
|
+
export type RequestTranscriptCreatePrimaryLanguage = "en" | "en-GB" | "da" | "de" | "fr" | "de-CH" | "sv" | "es" | "it" | "nl" | "no" | "pt";
|
|
8
|
+
export declare const RequestTranscriptCreatePrimaryLanguage: {
|
|
9
|
+
readonly En: "en";
|
|
10
|
+
readonly EnGb: "en-GB";
|
|
11
|
+
readonly Da: "da";
|
|
12
|
+
readonly De: "de";
|
|
13
|
+
readonly Fr: "fr";
|
|
14
|
+
readonly DeCh: "de-CH";
|
|
15
|
+
readonly Sv: "sv";
|
|
16
|
+
readonly Es: "es";
|
|
17
|
+
readonly It: "it";
|
|
18
|
+
readonly Nl: "nl";
|
|
19
|
+
readonly No: "no";
|
|
20
|
+
readonly Pt: "pt";
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RequestTranscriptCreatePrimaryLanguage = void 0;
|
|
7
|
+
exports.RequestTranscriptCreatePrimaryLanguage = {
|
|
8
|
+
En: "en",
|
|
9
|
+
EnGb: "en-GB",
|
|
10
|
+
Da: "da",
|
|
11
|
+
De: "de",
|
|
12
|
+
Fr: "fr",
|
|
13
|
+
DeCh: "de-CH",
|
|
14
|
+
Sv: "sv",
|
|
15
|
+
Es: "es",
|
|
16
|
+
It: "it",
|
|
17
|
+
Nl: "nl",
|
|
18
|
+
No: "no",
|
|
19
|
+
Pt: "pt",
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Describes sorting direction
|
|
6
|
+
*/
|
|
7
|
+
export type TranscriptsListRequestDirection = "asc" | "desc";
|
|
8
|
+
export declare const TranscriptsListRequestDirection: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TranscriptsListRequestDirection = void 0;
|
|
7
|
+
exports.TranscriptsListRequestDirection = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Describes transcript attribute for sorting
|
|
6
|
+
*/
|
|
7
|
+
export type TranscriptsListRequestSort = "createdAt" | "updatedAt";
|
|
8
|
+
export declare const TranscriptsListRequestSort: {
|
|
9
|
+
readonly CreatedAt: "createdAt";
|
|
10
|
+
readonly UpdatedAt: "updatedAt";
|
|
11
|
+
};
|