@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Corti.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Corti TypeScript Library
|
|
2
|
+
|
|
3
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcorticph%2Fcorti-sdk-typescript)
|
|
4
|
+
[](https://www.npmjs.com/package/@corti/sdk)
|
|
5
|
+
|
|
6
|
+
> [!WARNING]
|
|
7
|
+
> This is an **alpha version** of the Corti TypeScript SDK library. As such, there will be breaking changes in future releases as we work toward our beta version. Additionally, types might not always match the actual API reality, and some features may be missing or incomplete. We're actively working to improve the library and would greatly appreciate any feedback if you encounter any inconsistencies or issues 💚
|
|
8
|
+
|
|
9
|
+
The Corti TypeScript library provides convenient access to the Corti API from TypeScript.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
> [!NOTE]
|
|
14
|
+
> You must install the alpha version as the latest version is essentially empty. Use the command below to get the functional SDK.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm i -s @corti/sdk@alpha
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Reference
|
|
21
|
+
|
|
22
|
+
A full reference for this library is available [here](REFERENCE-latest.md).
|
|
23
|
+
|
|
24
|
+
For detailed authentication instructions, see the [Authentication Guide](./AUTHENTICATION.md).
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
Instantiate and use the client with the following:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { CortiEnvironment, CortiClient } from "@corti/sdk";
|
|
32
|
+
|
|
33
|
+
// Using client credentials (OAuth2)
|
|
34
|
+
const client = new CortiClient({
|
|
35
|
+
environment: CortiEnvironment.BetaEu,
|
|
36
|
+
tenantName: "YOUR_TENANT_NAME",
|
|
37
|
+
auth: {
|
|
38
|
+
clientId: "YOUR_CLIENT_ID",
|
|
39
|
+
clientSecret: "YOUR_CLIENT_SECRET",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// Or using a bearer token
|
|
44
|
+
const client = new CortiClient({
|
|
45
|
+
environment: CortiEnvironment.BetaEu,
|
|
46
|
+
tenantName: "YOUR_TENANT_NAME",
|
|
47
|
+
auth: {
|
|
48
|
+
access_token: "YOUR_ACCESS_TOKEN",
|
|
49
|
+
// Optional: refresh token for automatic token refresh
|
|
50
|
+
refresh_token: "YOUR_REFRESH_TOKEN",
|
|
51
|
+
expires_in: 3600,
|
|
52
|
+
refresh_expires_in: 86400,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// For user authentication, you can also use Authorization Code Flow
|
|
57
|
+
// See the Authentication Guide for detailed instructions
|
|
58
|
+
|
|
59
|
+
await client.interactions.create({
|
|
60
|
+
encounter: {
|
|
61
|
+
identifier: "identifier",
|
|
62
|
+
status: "planned",
|
|
63
|
+
type: "first_consultation",
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Request And Response Types
|
|
69
|
+
|
|
70
|
+
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
71
|
+
following namespace:
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import { Corti } from "@corti/sdk";
|
|
75
|
+
|
|
76
|
+
const request: Corti.InteractionsListRequest = {
|
|
77
|
+
...
|
|
78
|
+
};
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Exception Handling
|
|
82
|
+
|
|
83
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
84
|
+
will be thrown.
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import { CortiError } from "@corti/sdk";
|
|
88
|
+
|
|
89
|
+
try {
|
|
90
|
+
await client.interactions.create(...);
|
|
91
|
+
} catch (err) {
|
|
92
|
+
if (err instanceof CortiError) {
|
|
93
|
+
console.log(err.statusCode);
|
|
94
|
+
console.log(err.message);
|
|
95
|
+
console.log(err.body);
|
|
96
|
+
console.log(err.rawResponse);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Pagination
|
|
102
|
+
|
|
103
|
+
List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items:
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
import { CortiEnvironment, CortiClient } from "@corti/sdk";
|
|
107
|
+
|
|
108
|
+
const client = new CortiClient({
|
|
109
|
+
environment: CortiEnvironment.BetaEu,
|
|
110
|
+
tenantName: "YOUR_TENANT_NAME",
|
|
111
|
+
auth: {
|
|
112
|
+
clientId: "YOUR_CLIENT_ID",
|
|
113
|
+
clientSecret: "YOUR_CLIENT_SECRET",
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
const response = await client.interactions.list();
|
|
117
|
+
for await (const item of response) {
|
|
118
|
+
console.log(item);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Or you can manually iterate page-by-page
|
|
122
|
+
const page = await client.interactions.list();
|
|
123
|
+
while (page.hasNextPage()) {
|
|
124
|
+
page = page.getNextPage();
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Advanced
|
|
129
|
+
|
|
130
|
+
### Additional Headers
|
|
131
|
+
|
|
132
|
+
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
const response = await client.interactions.create(..., {
|
|
136
|
+
headers: {
|
|
137
|
+
'X-Custom-Header': 'custom value'
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Retries
|
|
143
|
+
|
|
144
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
145
|
+
as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
|
|
146
|
+
retry limit (default: 2).
|
|
147
|
+
|
|
148
|
+
A request is deemed retryable when any of the following HTTP status codes is returned:
|
|
149
|
+
|
|
150
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
151
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
152
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
153
|
+
|
|
154
|
+
Use the `maxRetries` request option to configure this behavior.
|
|
155
|
+
|
|
156
|
+
```typescript
|
|
157
|
+
const response = await client.interactions.create(..., {
|
|
158
|
+
maxRetries: 0 // override maxRetries at the request level
|
|
159
|
+
});
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Timeouts
|
|
163
|
+
|
|
164
|
+
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
const response = await client.interactions.create(..., {
|
|
168
|
+
timeoutInSeconds: 30 // override timeout to 30s
|
|
169
|
+
});
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Aborting Requests
|
|
173
|
+
|
|
174
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
const controller = new AbortController();
|
|
178
|
+
const response = await client.interactions.create(..., {
|
|
179
|
+
abortSignal: controller.signal
|
|
180
|
+
});
|
|
181
|
+
controller.abort(); // aborts the request
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Access Raw Response Data
|
|
185
|
+
|
|
186
|
+
The SDK provides access to raw response data, including headers, through the `.withRawResponse()` method.
|
|
187
|
+
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
const { data, rawResponse } = await client.interactions.create(...).withRawResponse();
|
|
191
|
+
|
|
192
|
+
console.log(data);
|
|
193
|
+
console.log(rawResponse.headers['X-My-Header']);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Runtime Compatibility
|
|
197
|
+
|
|
198
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
199
|
+
runtimes:
|
|
200
|
+
|
|
201
|
+
- Node.js 18+
|
|
202
|
+
- Modern browsers
|
|
203
|
+
- Vercel
|
|
204
|
+
- Cloudflare Workers
|
|
205
|
+
- Deno v1.25+
|
|
206
|
+
- Bun 1.0+
|
|
207
|
+
- React Native
|
|
208
|
+
|
|
209
|
+
### Customizing Fetch Client
|
|
210
|
+
|
|
211
|
+
The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
212
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
213
|
+
|
|
214
|
+
```typescript
|
|
215
|
+
import { CortiClient } from "@corti/sdk";
|
|
216
|
+
|
|
217
|
+
const client = new CortiClient({
|
|
218
|
+
...
|
|
219
|
+
fetcher: // provide your implementation here
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Contributing
|
|
224
|
+
|
|
225
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
226
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
227
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
228
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
229
|
+
an issue first to discuss with us!
|
|
230
|
+
|
|
231
|
+
On the other hand, contributions to the README are always very welcome!
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as core from "../../core/index.js";
|
|
6
|
+
export declare class BadRequestError extends errors.CortiError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.BadRequestError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class BadRequestError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "BadRequestError",
|
|
45
|
+
statusCode: 400,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Corti from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class ForbiddenError extends errors.CortiError {
|
|
8
|
+
constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ForbiddenError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class ForbiddenError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "ForbiddenError",
|
|
45
|
+
statusCode: 403,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Corti from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class GatewayTimeoutError extends errors.CortiError {
|
|
8
|
+
constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GatewayTimeoutError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class GatewayTimeoutError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "GatewayTimeoutError",
|
|
45
|
+
statusCode: 504,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, GatewayTimeoutError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GatewayTimeoutError = GatewayTimeoutError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as core from "../../core/index.js";
|
|
6
|
+
export declare class InternalServerError extends errors.CortiError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.InternalServerError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class InternalServerError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "InternalServerError",
|
|
45
|
+
statusCode: 500,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Corti from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class NotFoundError extends errors.CortiError {
|
|
8
|
+
constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.NotFoundError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class NotFoundError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "NotFoundError",
|
|
45
|
+
statusCode: 404,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as core from "../../core/index.js";
|
|
6
|
+
export declare class UnauthorizedError extends errors.CortiError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UnauthorizedError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class UnauthorizedError extends errors.CortiError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "UnauthorizedError",
|
|
45
|
+
statusCode: 401,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./ForbiddenError.js"), exports);
|
|
18
|
+
__exportStar(require("./GatewayTimeoutError.js"), exports);
|
|
19
|
+
__exportStar(require("./BadRequestError.js"), exports);
|
|
20
|
+
__exportStar(require("./InternalServerError.js"), exports);
|
|
21
|
+
__exportStar(require("./NotFoundError.js"), exports);
|
|
22
|
+
__exportStar(require("./UnauthorizedError.js"), exports);
|