├── .fernignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .mock ├── definition │ ├── api.yml │ ├── empathic-voice │ │ ├── __package__.yml │ │ ├── chat.yml │ │ ├── chatGroups.yml │ │ ├── chatWebhooks.yml │ │ ├── chats.yml │ │ ├── configs.yml │ │ ├── customVoices.yml │ │ ├── prompts.yml │ │ └── tools.yml │ ├── expression-measurement │ │ ├── __package__.yml │ │ ├── batch │ │ │ └── __package__.yml │ │ └── stream │ │ │ ├── __package__.yml │ │ │ └── stream.yml │ └── tts │ │ ├── __package__.yml │ │ └── voices.yml └── fern.config.json ├── .npmignore ├── .nvmrc ├── .prettierignore ├── .prettierrc.yml ├── CITATIONS.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── eslint.config.mjs ├── jest.config.mjs ├── justfile ├── package.json ├── reference.md ├── scripts └── rename-to-esm-files.js ├── src ├── Client.ts ├── api │ ├── index.ts │ └── resources │ │ ├── empathicVoice │ │ ├── client │ │ │ ├── Client.ts │ │ │ └── index.ts │ │ ├── errors │ │ │ ├── BadRequestError.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── resources │ │ │ ├── chat │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── Socket.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ │ ├── PublishEvent.ts │ │ │ │ │ ├── SubscribeEvent.ts │ │ │ │ │ └── index.ts │ │ │ ├── chatGroups │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── ChatGroupsGetAudioRequest.ts │ │ │ │ │ │ ├── ChatGroupsGetChatGroupRequest.ts │ │ │ │ │ │ ├── ChatGroupsListChatGroupEventsRequest.ts │ │ │ │ │ │ ├── ChatGroupsListChatGroupsRequest.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── chats │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── ChatsListChatEventsRequest.ts │ │ │ │ │ │ ├── ChatsListChatsRequest.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── configs │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── ConfigsListConfigVersionsRequest.ts │ │ │ │ │ │ ├── ConfigsListConfigsRequest.ts │ │ │ │ │ │ ├── PostedConfig.ts │ │ │ │ │ │ ├── PostedConfigName.ts │ │ │ │ │ │ ├── PostedConfigVersion.ts │ │ │ │ │ │ ├── PostedConfigVersionDescription.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── customVoices │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── CustomVoicesListCustomVoicesRequest.ts │ │ │ │ │ │ ├── PostedCustomVoiceName.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── prompts │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── PostedPrompt.ts │ │ │ │ │ │ ├── PostedPromptName.ts │ │ │ │ │ │ ├── PostedPromptVersion.ts │ │ │ │ │ │ ├── PostedPromptVersionDescription.ts │ │ │ │ │ │ ├── PromptsListPromptVersionsRequest.ts │ │ │ │ │ │ ├── PromptsListPromptsRequest.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ └── tools │ │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── PostedUserDefinedTool.ts │ │ │ │ │ ├── PostedUserDefinedToolName.ts │ │ │ │ │ ├── PostedUserDefinedToolVersion.ts │ │ │ │ │ ├── PostedUserDefinedToolVersionDescription.ts │ │ │ │ │ ├── ToolsListToolVersionsRequest.ts │ │ │ │ │ ├── ToolsListToolsRequest.ts │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ └── types │ │ │ ├── AssistantEnd.ts │ │ │ ├── AssistantInput.ts │ │ │ ├── AssistantMessage.ts │ │ │ ├── AudioConfiguration.ts │ │ │ ├── AudioInput.ts │ │ │ ├── AudioOutput.ts │ │ │ ├── BuiltInTool.ts │ │ │ ├── BuiltinToolConfig.ts │ │ │ ├── ChatMessage.ts │ │ │ ├── ChatMessageToolResult.ts │ │ │ ├── ChatMetadata.ts │ │ │ ├── Context.ts │ │ │ ├── ContextType.ts │ │ │ ├── EmotionScores.ts │ │ │ ├── Encoding.ts │ │ │ ├── ErrorLevel.ts │ │ │ ├── ErrorResponse.ts │ │ │ ├── FunctionCallResponseInput.ts │ │ │ ├── HttpValidationError.ts │ │ │ ├── Inference.ts │ │ │ ├── JsonMessage.ts │ │ │ ├── LanguageModelType.ts │ │ │ ├── MillisecondInterval.ts │ │ │ ├── ModelProviderEnum.ts │ │ │ ├── PauseAssistantMessage.ts │ │ │ ├── PostedBuiltinTool.ts │ │ │ ├── PostedBuiltinToolName.ts │ │ │ ├── PostedConfigPromptSpec.ts │ │ │ ├── PostedCustomVoice.ts │ │ │ ├── PostedCustomVoiceBaseVoice.ts │ │ │ ├── PostedCustomVoiceParameters.ts │ │ │ ├── PostedEllmModel.ts │ │ │ ├── PostedEventMessageSpec.ts │ │ │ ├── PostedEventMessageSpecs.ts │ │ │ ├── PostedLanguageModel.ts │ │ │ ├── PostedPromptSpec.ts │ │ │ ├── PostedTimeoutSpec.ts │ │ │ ├── PostedTimeoutSpecs.ts │ │ │ ├── PostedTimeoutSpecsInactivity.ts │ │ │ ├── PostedTimeoutSpecsMaxDuration.ts │ │ │ ├── PostedUserDefinedToolSpec.ts │ │ │ ├── PostedVoice.ts │ │ │ ├── PostedVoiceProvider.ts │ │ │ ├── PostedWebhookEventType.ts │ │ │ ├── PostedWebhookSpec.ts │ │ │ ├── ProsodyInference.ts │ │ │ ├── ResumeAssistantMessage.ts │ │ │ ├── ReturnBuiltinTool.ts │ │ │ ├── ReturnBuiltinToolToolType.ts │ │ │ ├── ReturnChat.ts │ │ │ ├── ReturnChatAudioReconstruction.ts │ │ │ ├── ReturnChatAudioReconstructionStatus.ts │ │ │ ├── ReturnChatEvent.ts │ │ │ ├── ReturnChatEventRole.ts │ │ │ ├── ReturnChatEventType.ts │ │ │ ├── ReturnChatGroup.ts │ │ │ ├── ReturnChatGroupPagedAudioReconstructions.ts │ │ │ ├── ReturnChatGroupPagedAudioReconstructionsPaginationDirection.ts │ │ │ ├── ReturnChatGroupPagedChats.ts │ │ │ ├── ReturnChatGroupPagedChatsPaginationDirection.ts │ │ │ ├── ReturnChatGroupPagedEvents.ts │ │ │ ├── ReturnChatGroupPagedEventsPaginationDirection.ts │ │ │ ├── ReturnChatPagedEvents.ts │ │ │ ├── ReturnChatPagedEventsPaginationDirection.ts │ │ │ ├── ReturnChatPagedEventsStatus.ts │ │ │ ├── ReturnChatStatus.ts │ │ │ ├── ReturnConfig.ts │ │ │ ├── ReturnConfigSpec.ts │ │ │ ├── ReturnCustomVoice.ts │ │ │ ├── ReturnCustomVoiceBaseVoice.ts │ │ │ ├── ReturnCustomVoiceParameters.ts │ │ │ ├── ReturnEllmModel.ts │ │ │ ├── ReturnEventMessageSpec.ts │ │ │ ├── ReturnEventMessageSpecs.ts │ │ │ ├── ReturnLanguageModel.ts │ │ │ ├── ReturnPagedChatGroups.ts │ │ │ ├── ReturnPagedChatGroupsPaginationDirection.ts │ │ │ ├── ReturnPagedChats.ts │ │ │ ├── ReturnPagedChatsPaginationDirection.ts │ │ │ ├── ReturnPagedConfigs.ts │ │ │ ├── ReturnPagedCustomVoices.ts │ │ │ ├── ReturnPagedPrompts.ts │ │ │ ├── ReturnPagedUserDefinedTools.ts │ │ │ ├── ReturnPrompt.ts │ │ │ ├── ReturnPromptVersionType.ts │ │ │ ├── ReturnTimeoutSpec.ts │ │ │ ├── ReturnTimeoutSpecs.ts │ │ │ ├── ReturnUserDefinedTool.ts │ │ │ ├── ReturnUserDefinedToolToolType.ts │ │ │ ├── ReturnUserDefinedToolVersionType.ts │ │ │ ├── ReturnVoice.ts │ │ │ ├── ReturnVoiceProvider.ts │ │ │ ├── ReturnWebhookEventType.ts │ │ │ ├── ReturnWebhookSpec.ts │ │ │ ├── Role.ts │ │ │ ├── SessionSettings.ts │ │ │ ├── SessionSettingsVariablesValue.ts │ │ │ ├── TextInput.ts │ │ │ ├── Tool.ts │ │ │ ├── ToolCallMessage.ts │ │ │ ├── ToolErrorMessage.ts │ │ │ ├── ToolResponseMessage.ts │ │ │ ├── ToolType.ts │ │ │ ├── TtsInput.ts │ │ │ ├── UserInput.ts │ │ │ ├── UserInterruption.ts │ │ │ ├── UserMessage.ts │ │ │ ├── ValidationError.ts │ │ │ ├── ValidationErrorLocItem.ts │ │ │ ├── WebSocketError.ts │ │ │ ├── WebhookEvent.ts │ │ │ ├── WebhookEventBase.ts │ │ │ ├── WebhookEventChatEnded.ts │ │ │ ├── WebhookEventChatStartType.ts │ │ │ ├── WebhookEventChatStarted.ts │ │ │ ├── WebhookEventChatStatus.ts │ │ │ └── index.ts │ │ ├── expressionMeasurement │ │ ├── client │ │ │ ├── Client.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── resources │ │ │ ├── batch │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── BatchListJobsRequest.ts │ │ │ │ │ ├── BatchStartInferenceJobFromLocalFileRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── Alternative.ts │ │ │ │ ├── Bcp47Tag.ts │ │ │ │ ├── BoundingBox.ts │ │ │ │ ├── BurstPrediction.ts │ │ │ │ ├── Classification.ts │ │ │ │ ├── CompletedEmbeddingGeneration.ts │ │ │ │ ├── CompletedInference.ts │ │ │ │ ├── CompletedState.ts │ │ │ │ ├── CompletedTlInference.ts │ │ │ │ ├── CompletedTraining.ts │ │ │ │ ├── CustomModel.ts │ │ │ │ ├── CustomModelId.ts │ │ │ │ ├── CustomModelPrediction.ts │ │ │ │ ├── CustomModelRequest.ts │ │ │ │ ├── CustomModelVersionId.ts │ │ │ │ ├── CustomModelsInferenceJob.ts │ │ │ │ ├── CustomModelsTrainingJob.ts │ │ │ │ ├── Dataset.ts │ │ │ │ ├── DatasetId.ts │ │ │ │ ├── DatasetVersionId.ts │ │ │ │ ├── DescriptionsScore.ts │ │ │ │ ├── Direction.ts │ │ │ │ ├── EmbeddingGenerationBaseRequest.ts │ │ │ │ ├── EmbeddingGenerationJob.ts │ │ │ │ ├── EmotionScore.ts │ │ │ │ ├── Error_.ts │ │ │ │ ├── EvaluationArgs.ts │ │ │ │ ├── Face.ts │ │ │ │ ├── FacePrediction.ts │ │ │ │ ├── FacemeshPrediction.ts │ │ │ │ ├── FacsScore.ts │ │ │ │ ├── Failed.ts │ │ │ │ ├── FailedState.ts │ │ │ │ ├── File_.ts │ │ │ │ ├── Granularity.ts │ │ │ │ ├── GroupedPredictionsBurstPrediction.ts │ │ │ │ ├── GroupedPredictionsFacePrediction.ts │ │ │ │ ├── GroupedPredictionsFacemeshPrediction.ts │ │ │ │ ├── GroupedPredictionsLanguagePrediction.ts │ │ │ │ ├── GroupedPredictionsNerPrediction.ts │ │ │ │ ├── GroupedPredictionsProsodyPrediction.ts │ │ │ │ ├── InProgress.ts │ │ │ │ ├── InProgressState.ts │ │ │ │ ├── InferenceBaseRequest.ts │ │ │ │ ├── InferenceJob.ts │ │ │ │ ├── InferencePrediction.ts │ │ │ │ ├── InferenceRequest.ts │ │ │ │ ├── InferenceResults.ts │ │ │ │ ├── InferenceSourcePredictResult.ts │ │ │ │ ├── JobEmbeddingGeneration.ts │ │ │ │ ├── JobId.ts │ │ │ │ ├── JobInference.ts │ │ │ │ ├── JobTlInference.ts │ │ │ │ ├── JobTraining.ts │ │ │ │ ├── Language.ts │ │ │ │ ├── LanguagePrediction.ts │ │ │ │ ├── Models.ts │ │ │ │ ├── ModelsPredictions.ts │ │ │ │ ├── Ner.ts │ │ │ │ ├── NerPrediction.ts │ │ │ │ ├── Null.ts │ │ │ │ ├── PositionInterval.ts │ │ │ │ ├── PredictionsOptionalNullBurstPrediction.ts │ │ │ │ ├── PredictionsOptionalNullFacePrediction.ts │ │ │ │ ├── PredictionsOptionalNullFacemeshPrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataLanguagePrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataNerPrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataProsodyPrediction.ts │ │ │ │ ├── Prosody.ts │ │ │ │ ├── ProsodyPrediction.ts │ │ │ │ ├── Queued.ts │ │ │ │ ├── QueuedState.ts │ │ │ │ ├── RegistryFileDetail.ts │ │ │ │ ├── Regression.ts │ │ │ │ ├── SentimentScore.ts │ │ │ │ ├── SortBy.ts │ │ │ │ ├── Source.ts │ │ │ │ ├── SourceFile.ts │ │ │ │ ├── SourceTextSource.ts │ │ │ │ ├── SourceUrl.ts │ │ │ │ ├── StateEmbeddingGeneration.ts │ │ │ │ ├── StateEmbeddingGenerationCompletedEmbeddingGeneration.ts │ │ │ │ ├── StateEmbeddingGenerationFailed.ts │ │ │ │ ├── StateEmbeddingGenerationInProgress.ts │ │ │ │ ├── StateEmbeddingGenerationQueued.ts │ │ │ │ ├── StateInference.ts │ │ │ │ ├── StateTlInference.ts │ │ │ │ ├── StateTlInferenceCompletedTlInference.ts │ │ │ │ ├── StateTlInferenceFailed.ts │ │ │ │ ├── StateTlInferenceInProgress.ts │ │ │ │ ├── StateTlInferenceQueued.ts │ │ │ │ ├── StateTraining.ts │ │ │ │ ├── StateTrainingCompletedTraining.ts │ │ │ │ ├── StateTrainingFailed.ts │ │ │ │ ├── StateTrainingInProgress.ts │ │ │ │ ├── StateTrainingQueued.ts │ │ │ │ ├── Status.ts │ │ │ │ ├── Tag.ts │ │ │ │ ├── Target.ts │ │ │ │ ├── Task.ts │ │ │ │ ├── TaskClassification.ts │ │ │ │ ├── TaskRegression.ts │ │ │ │ ├── TextSource.ts │ │ │ │ ├── TimeInterval.ts │ │ │ │ ├── TlInferenceBaseRequest.ts │ │ │ │ ├── TlInferencePrediction.ts │ │ │ │ ├── TlInferenceResults.ts │ │ │ │ ├── TlInferenceSourcePredictResult.ts │ │ │ │ ├── ToxicityScore.ts │ │ │ │ ├── TrainingBaseRequest.ts │ │ │ │ ├── TrainingCustomModel.ts │ │ │ │ ├── Transcription.ts │ │ │ │ ├── TranscriptionMetadata.ts │ │ │ │ ├── Type.ts │ │ │ │ ├── Unconfigurable.ts │ │ │ │ ├── UnionJob.ts │ │ │ │ ├── UnionPredictResult.ts │ │ │ │ ├── Url.ts │ │ │ │ ├── ValidationArgs.ts │ │ │ │ ├── When.ts │ │ │ │ ├── Window.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── stream │ │ │ ├── index.ts │ │ │ ├── resources │ │ │ ├── index.ts │ │ │ └── stream │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ ├── Config.ts │ │ │ │ ├── JobDetails.ts │ │ │ │ ├── StreamErrorMessage.ts │ │ │ │ ├── StreamFace.ts │ │ │ │ ├── StreamLanguage.ts │ │ │ │ ├── StreamModelPredictions.ts │ │ │ │ ├── StreamModelPredictionsBurst.ts │ │ │ │ ├── StreamModelPredictionsBurstPredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsFace.ts │ │ │ │ ├── StreamModelPredictionsFacePredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsFacemesh.ts │ │ │ │ ├── StreamModelPredictionsFacemeshPredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsJobDetails.ts │ │ │ │ ├── StreamModelPredictionsLanguage.ts │ │ │ │ ├── StreamModelPredictionsLanguagePredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsProsody.ts │ │ │ │ ├── StreamModelPredictionsProsodyPredictionsItem.ts │ │ │ │ ├── StreamModelsEndpointPayload.ts │ │ │ │ ├── StreamWarningMessage.ts │ │ │ │ ├── StreamWarningMessageJobDetails.ts │ │ │ │ ├── SubscribeEvent.ts │ │ │ │ └── index.ts │ │ │ └── types │ │ │ ├── EmotionEmbedding.ts │ │ │ ├── EmotionEmbeddingItem.ts │ │ │ ├── Sentiment.ts │ │ │ ├── SentimentItem.ts │ │ │ ├── StreamBoundingBox.ts │ │ │ ├── TextPosition.ts │ │ │ ├── TimeRange.ts │ │ │ ├── Toxicity.ts │ │ │ ├── ToxicityItem.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── tts │ │ ├── client │ │ ├── Client.ts │ │ └── index.ts │ │ ├── errors │ │ ├── BadRequestError.ts │ │ ├── UnprocessableEntityError.ts │ │ └── index.ts │ │ ├── index.ts │ │ ├── resources │ │ ├── index.ts │ │ └── voices │ │ │ ├── client │ │ │ ├── Client.ts │ │ │ ├── index.ts │ │ │ └── requests │ │ │ │ ├── PostedVoice.ts │ │ │ │ ├── VoicesDeleteRequest.ts │ │ │ │ ├── VoicesListRequest.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── types │ │ ├── AudioEncoding.ts │ │ ├── AudioFormatType.ts │ │ ├── ErrorResponse.ts │ │ ├── Format.ts │ │ ├── FormatMp3.ts │ │ ├── FormatPcm.ts │ │ ├── FormatWav.ts │ │ ├── HttpValidationError.ts │ │ ├── PostedContext.ts │ │ ├── PostedContextWithGenerationId.ts │ │ ├── PostedContextWithUtterances.ts │ │ ├── PostedTts.ts │ │ ├── PostedUtterance.ts │ │ ├── PostedUtteranceVoice.ts │ │ ├── PostedUtteranceVoiceWithId.ts │ │ ├── PostedUtteranceVoiceWithName.ts │ │ ├── ReturnGeneration.ts │ │ ├── ReturnPagedVoices.ts │ │ ├── ReturnTts.ts │ │ ├── ReturnVoice.ts │ │ ├── Snippet.ts │ │ ├── SnippetAudioChunk.ts │ │ ├── ValidationError.ts │ │ ├── ValidationErrorLocItem.ts │ │ ├── VoiceProvider.ts │ │ └── index.ts ├── core │ ├── fetcher │ │ ├── APIResponse.ts │ │ ├── Fetcher.ts │ │ ├── Supplier.ts │ │ ├── createRequestUrl.ts │ │ ├── getFetchFn.ts │ │ ├── getHeader.ts │ │ ├── getRequestBody.ts │ │ ├── getResponseBody.ts │ │ ├── index.ts │ │ ├── makeRequest.ts │ │ ├── requestWithRetries.ts │ │ ├── signals.ts │ │ └── stream-wrappers │ │ │ ├── Node18UniversalStreamWrapper.ts │ │ │ ├── NodePre18StreamWrapper.ts │ │ │ ├── UndiciStreamWrapper.ts │ │ │ └── chooseStreamWrapper.ts │ ├── form-data-utils │ │ ├── FormDataWrapper.ts │ │ ├── encodeAsFormParameter.ts │ │ └── index.ts │ ├── index.ts │ ├── json.ts │ ├── pagination │ │ ├── Page.ts │ │ ├── Pageable.ts │ │ └── index.ts │ ├── runtime │ │ ├── index.ts │ │ └── runtime.ts │ ├── schemas │ │ ├── Schema.ts │ │ ├── builders │ │ │ ├── bigint │ │ │ │ ├── bigint.ts │ │ │ │ └── index.ts │ │ │ ├── date │ │ │ │ ├── date.ts │ │ │ │ └── index.ts │ │ │ ├── enum │ │ │ │ ├── enum.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── lazy │ │ │ │ ├── index.ts │ │ │ │ ├── lazy.ts │ │ │ │ └── lazyObject.ts │ │ │ ├── list │ │ │ │ ├── index.ts │ │ │ │ └── list.ts │ │ │ ├── literals │ │ │ │ ├── booleanLiteral.ts │ │ │ │ ├── index.ts │ │ │ │ └── stringLiteral.ts │ │ │ ├── object-like │ │ │ │ ├── getObjectLikeUtils.ts │ │ │ │ ├── index.ts │ │ │ │ └── types.ts │ │ │ ├── object │ │ │ │ ├── index.ts │ │ │ │ ├── object.ts │ │ │ │ ├── objectWithoutOptionalProperties.ts │ │ │ │ ├── property.ts │ │ │ │ └── types.ts │ │ │ ├── primitives │ │ │ │ ├── any.ts │ │ │ │ ├── boolean.ts │ │ │ │ ├── index.ts │ │ │ │ ├── number.ts │ │ │ │ ├── string.ts │ │ │ │ └── unknown.ts │ │ │ ├── record │ │ │ │ ├── index.ts │ │ │ │ ├── record.ts │ │ │ │ └── types.ts │ │ │ ├── schema-utils │ │ │ │ ├── JsonError.ts │ │ │ │ ├── ParseError.ts │ │ │ │ ├── getSchemaUtils.ts │ │ │ │ ├── index.ts │ │ │ │ └── stringifyValidationErrors.ts │ │ │ ├── set │ │ │ │ ├── index.ts │ │ │ │ └── set.ts │ │ │ ├── undiscriminated-union │ │ │ │ ├── index.ts │ │ │ │ ├── types.ts │ │ │ │ └── undiscriminatedUnion.ts │ │ │ └── union │ │ │ │ ├── discriminant.ts │ │ │ │ ├── index.ts │ │ │ │ ├── types.ts │ │ │ │ └── union.ts │ │ ├── index.ts │ │ └── utils │ │ │ ├── MaybePromise.ts │ │ │ ├── addQuestionMarksToNullableProperties.ts │ │ │ ├── createIdentitySchemaCreator.ts │ │ │ ├── entries.ts │ │ │ ├── filterObject.ts │ │ │ ├── getErrorMessageForIncorrectType.ts │ │ │ ├── isPlainObject.ts │ │ │ ├── keys.ts │ │ │ ├── maybeSkipValidation.ts │ │ │ └── partition.ts │ ├── streaming-fetcher │ │ ├── Stream.ts │ │ └── index.ts │ ├── utils │ │ ├── index.ts │ │ └── setObjectProperty.ts │ └── websocket │ │ ├── events.ts │ │ ├── index.ts │ │ └── ws.ts ├── environments.ts ├── errors │ ├── HumeError.ts │ ├── HumeTimeoutError.ts │ └── index.ts ├── index.ts ├── serialization │ ├── index.ts │ └── resources │ │ ├── empathicVoice │ │ ├── index.ts │ │ ├── resources │ │ │ ├── chat │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ │ ├── PublishEvent.ts │ │ │ │ │ ├── SubscribeEvent.ts │ │ │ │ │ └── index.ts │ │ │ ├── configs │ │ │ │ ├── client │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── PostedConfig.ts │ │ │ │ │ │ ├── PostedConfigName.ts │ │ │ │ │ │ ├── PostedConfigVersion.ts │ │ │ │ │ │ ├── PostedConfigVersionDescription.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── customVoices │ │ │ │ ├── client │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── PostedCustomVoiceName.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── prompts │ │ │ │ ├── client │ │ │ │ │ ├── createPrompt.ts │ │ │ │ │ ├── createPromptVersion.ts │ │ │ │ │ ├── getPromptVersion.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── requests │ │ │ │ │ │ ├── PostedPrompt.ts │ │ │ │ │ │ ├── PostedPromptName.ts │ │ │ │ │ │ ├── PostedPromptVersion.ts │ │ │ │ │ │ ├── PostedPromptVersionDescription.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── updatePromptDescription.ts │ │ │ │ └── index.ts │ │ │ └── tools │ │ │ │ ├── client │ │ │ │ ├── createTool.ts │ │ │ │ ├── createToolVersion.ts │ │ │ │ ├── getToolVersion.ts │ │ │ │ ├── index.ts │ │ │ │ ├── requests │ │ │ │ │ ├── PostedUserDefinedTool.ts │ │ │ │ │ ├── PostedUserDefinedToolName.ts │ │ │ │ │ ├── PostedUserDefinedToolVersion.ts │ │ │ │ │ ├── PostedUserDefinedToolVersionDescription.ts │ │ │ │ │ └── index.ts │ │ │ │ └── updateToolDescription.ts │ │ │ │ └── index.ts │ │ └── types │ │ │ ├── AssistantEnd.ts │ │ │ ├── AssistantInput.ts │ │ │ ├── AssistantMessage.ts │ │ │ ├── AudioConfiguration.ts │ │ │ ├── AudioInput.ts │ │ │ ├── AudioOutput.ts │ │ │ ├── BuiltInTool.ts │ │ │ ├── BuiltinToolConfig.ts │ │ │ ├── ChatMessage.ts │ │ │ ├── ChatMessageToolResult.ts │ │ │ ├── ChatMetadata.ts │ │ │ ├── Context.ts │ │ │ ├── ContextType.ts │ │ │ ├── EmotionScores.ts │ │ │ ├── Encoding.ts │ │ │ ├── ErrorLevel.ts │ │ │ ├── ErrorResponse.ts │ │ │ ├── FunctionCallResponseInput.ts │ │ │ ├── HttpValidationError.ts │ │ │ ├── Inference.ts │ │ │ ├── JsonMessage.ts │ │ │ ├── LanguageModelType.ts │ │ │ ├── MillisecondInterval.ts │ │ │ ├── ModelProviderEnum.ts │ │ │ ├── PauseAssistantMessage.ts │ │ │ ├── PostedBuiltinTool.ts │ │ │ ├── PostedBuiltinToolName.ts │ │ │ ├── PostedConfigPromptSpec.ts │ │ │ ├── PostedCustomVoice.ts │ │ │ ├── PostedCustomVoiceBaseVoice.ts │ │ │ ├── PostedCustomVoiceParameters.ts │ │ │ ├── PostedEllmModel.ts │ │ │ ├── PostedEventMessageSpec.ts │ │ │ ├── PostedEventMessageSpecs.ts │ │ │ ├── PostedLanguageModel.ts │ │ │ ├── PostedPromptSpec.ts │ │ │ ├── PostedTimeoutSpec.ts │ │ │ ├── PostedTimeoutSpecs.ts │ │ │ ├── PostedTimeoutSpecsInactivity.ts │ │ │ ├── PostedTimeoutSpecsMaxDuration.ts │ │ │ ├── PostedUserDefinedToolSpec.ts │ │ │ ├── PostedVoice.ts │ │ │ ├── PostedVoiceProvider.ts │ │ │ ├── PostedWebhookEventType.ts │ │ │ ├── PostedWebhookSpec.ts │ │ │ ├── ProsodyInference.ts │ │ │ ├── ResumeAssistantMessage.ts │ │ │ ├── ReturnBuiltinTool.ts │ │ │ ├── ReturnBuiltinToolToolType.ts │ │ │ ├── ReturnChat.ts │ │ │ ├── ReturnChatAudioReconstruction.ts │ │ │ ├── ReturnChatAudioReconstructionStatus.ts │ │ │ ├── ReturnChatEvent.ts │ │ │ ├── ReturnChatEventRole.ts │ │ │ ├── ReturnChatEventType.ts │ │ │ ├── ReturnChatGroup.ts │ │ │ ├── ReturnChatGroupPagedAudioReconstructions.ts │ │ │ ├── ReturnChatGroupPagedAudioReconstructionsPaginationDirection.ts │ │ │ ├── ReturnChatGroupPagedChats.ts │ │ │ ├── ReturnChatGroupPagedChatsPaginationDirection.ts │ │ │ ├── ReturnChatGroupPagedEvents.ts │ │ │ ├── ReturnChatGroupPagedEventsPaginationDirection.ts │ │ │ ├── ReturnChatPagedEvents.ts │ │ │ ├── ReturnChatPagedEventsPaginationDirection.ts │ │ │ ├── ReturnChatPagedEventsStatus.ts │ │ │ ├── ReturnChatStatus.ts │ │ │ ├── ReturnConfig.ts │ │ │ ├── ReturnConfigSpec.ts │ │ │ ├── ReturnCustomVoice.ts │ │ │ ├── ReturnCustomVoiceBaseVoice.ts │ │ │ ├── ReturnCustomVoiceParameters.ts │ │ │ ├── ReturnEllmModel.ts │ │ │ ├── ReturnEventMessageSpec.ts │ │ │ ├── ReturnEventMessageSpecs.ts │ │ │ ├── ReturnLanguageModel.ts │ │ │ ├── ReturnPagedChatGroups.ts │ │ │ ├── ReturnPagedChatGroupsPaginationDirection.ts │ │ │ ├── ReturnPagedChats.ts │ │ │ ├── ReturnPagedChatsPaginationDirection.ts │ │ │ ├── ReturnPagedConfigs.ts │ │ │ ├── ReturnPagedCustomVoices.ts │ │ │ ├── ReturnPagedPrompts.ts │ │ │ ├── ReturnPagedUserDefinedTools.ts │ │ │ ├── ReturnPrompt.ts │ │ │ ├── ReturnPromptVersionType.ts │ │ │ ├── ReturnTimeoutSpec.ts │ │ │ ├── ReturnTimeoutSpecs.ts │ │ │ ├── ReturnUserDefinedTool.ts │ │ │ ├── ReturnUserDefinedToolToolType.ts │ │ │ ├── ReturnUserDefinedToolVersionType.ts │ │ │ ├── ReturnVoice.ts │ │ │ ├── ReturnVoiceProvider.ts │ │ │ ├── ReturnWebhookEventType.ts │ │ │ ├── ReturnWebhookSpec.ts │ │ │ ├── Role.ts │ │ │ ├── SessionSettings.ts │ │ │ ├── SessionSettingsVariablesValue.ts │ │ │ ├── TextInput.ts │ │ │ ├── Tool.ts │ │ │ ├── ToolCallMessage.ts │ │ │ ├── ToolErrorMessage.ts │ │ │ ├── ToolResponseMessage.ts │ │ │ ├── ToolType.ts │ │ │ ├── TtsInput.ts │ │ │ ├── UserInput.ts │ │ │ ├── UserInterruption.ts │ │ │ ├── UserMessage.ts │ │ │ ├── ValidationError.ts │ │ │ ├── ValidationErrorLocItem.ts │ │ │ ├── WebSocketError.ts │ │ │ ├── WebhookEvent.ts │ │ │ ├── WebhookEventBase.ts │ │ │ ├── WebhookEventChatEnded.ts │ │ │ ├── WebhookEventChatStartType.ts │ │ │ ├── WebhookEventChatStarted.ts │ │ │ ├── WebhookEventChatStatus.ts │ │ │ └── index.ts │ │ ├── expressionMeasurement │ │ ├── index.ts │ │ └── resources │ │ │ ├── batch │ │ │ ├── client │ │ │ │ ├── getJobPredictions.ts │ │ │ │ ├── index.ts │ │ │ │ └── listJobs.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── Alternative.ts │ │ │ │ ├── Bcp47Tag.ts │ │ │ │ ├── BoundingBox.ts │ │ │ │ ├── BurstPrediction.ts │ │ │ │ ├── Classification.ts │ │ │ │ ├── CompletedEmbeddingGeneration.ts │ │ │ │ ├── CompletedInference.ts │ │ │ │ ├── CompletedState.ts │ │ │ │ ├── CompletedTlInference.ts │ │ │ │ ├── CompletedTraining.ts │ │ │ │ ├── CustomModel.ts │ │ │ │ ├── CustomModelId.ts │ │ │ │ ├── CustomModelPrediction.ts │ │ │ │ ├── CustomModelRequest.ts │ │ │ │ ├── CustomModelVersionId.ts │ │ │ │ ├── CustomModelsInferenceJob.ts │ │ │ │ ├── CustomModelsTrainingJob.ts │ │ │ │ ├── Dataset.ts │ │ │ │ ├── DatasetId.ts │ │ │ │ ├── DatasetVersionId.ts │ │ │ │ ├── DescriptionsScore.ts │ │ │ │ ├── Direction.ts │ │ │ │ ├── EmbeddingGenerationBaseRequest.ts │ │ │ │ ├── EmbeddingGenerationJob.ts │ │ │ │ ├── EmotionScore.ts │ │ │ │ ├── Error_.ts │ │ │ │ ├── EvaluationArgs.ts │ │ │ │ ├── Face.ts │ │ │ │ ├── FacePrediction.ts │ │ │ │ ├── FacemeshPrediction.ts │ │ │ │ ├── FacsScore.ts │ │ │ │ ├── Failed.ts │ │ │ │ ├── FailedState.ts │ │ │ │ ├── File_.ts │ │ │ │ ├── Granularity.ts │ │ │ │ ├── GroupedPredictionsBurstPrediction.ts │ │ │ │ ├── GroupedPredictionsFacePrediction.ts │ │ │ │ ├── GroupedPredictionsFacemeshPrediction.ts │ │ │ │ ├── GroupedPredictionsLanguagePrediction.ts │ │ │ │ ├── GroupedPredictionsNerPrediction.ts │ │ │ │ ├── GroupedPredictionsProsodyPrediction.ts │ │ │ │ ├── InProgress.ts │ │ │ │ ├── InProgressState.ts │ │ │ │ ├── InferenceBaseRequest.ts │ │ │ │ ├── InferenceJob.ts │ │ │ │ ├── InferencePrediction.ts │ │ │ │ ├── InferenceRequest.ts │ │ │ │ ├── InferenceResults.ts │ │ │ │ ├── InferenceSourcePredictResult.ts │ │ │ │ ├── JobEmbeddingGeneration.ts │ │ │ │ ├── JobId.ts │ │ │ │ ├── JobInference.ts │ │ │ │ ├── JobTlInference.ts │ │ │ │ ├── JobTraining.ts │ │ │ │ ├── Language.ts │ │ │ │ ├── LanguagePrediction.ts │ │ │ │ ├── Models.ts │ │ │ │ ├── ModelsPredictions.ts │ │ │ │ ├── Ner.ts │ │ │ │ ├── NerPrediction.ts │ │ │ │ ├── Null.ts │ │ │ │ ├── PositionInterval.ts │ │ │ │ ├── PredictionsOptionalNullBurstPrediction.ts │ │ │ │ ├── PredictionsOptionalNullFacePrediction.ts │ │ │ │ ├── PredictionsOptionalNullFacemeshPrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataLanguagePrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataNerPrediction.ts │ │ │ │ ├── PredictionsOptionalTranscriptionMetadataProsodyPrediction.ts │ │ │ │ ├── Prosody.ts │ │ │ │ ├── ProsodyPrediction.ts │ │ │ │ ├── Queued.ts │ │ │ │ ├── QueuedState.ts │ │ │ │ ├── RegistryFileDetail.ts │ │ │ │ ├── Regression.ts │ │ │ │ ├── SentimentScore.ts │ │ │ │ ├── SortBy.ts │ │ │ │ ├── Source.ts │ │ │ │ ├── SourceFile.ts │ │ │ │ ├── SourceTextSource.ts │ │ │ │ ├── SourceUrl.ts │ │ │ │ ├── StateEmbeddingGeneration.ts │ │ │ │ ├── StateEmbeddingGenerationCompletedEmbeddingGeneration.ts │ │ │ │ ├── StateEmbeddingGenerationFailed.ts │ │ │ │ ├── StateEmbeddingGenerationInProgress.ts │ │ │ │ ├── StateEmbeddingGenerationQueued.ts │ │ │ │ ├── StateInference.ts │ │ │ │ ├── StateTlInference.ts │ │ │ │ ├── StateTlInferenceCompletedTlInference.ts │ │ │ │ ├── StateTlInferenceFailed.ts │ │ │ │ ├── StateTlInferenceInProgress.ts │ │ │ │ ├── StateTlInferenceQueued.ts │ │ │ │ ├── StateTraining.ts │ │ │ │ ├── StateTrainingCompletedTraining.ts │ │ │ │ ├── StateTrainingFailed.ts │ │ │ │ ├── StateTrainingInProgress.ts │ │ │ │ ├── StateTrainingQueued.ts │ │ │ │ ├── Status.ts │ │ │ │ ├── Tag.ts │ │ │ │ ├── Target.ts │ │ │ │ ├── Task.ts │ │ │ │ ├── TaskClassification.ts │ │ │ │ ├── TaskRegression.ts │ │ │ │ ├── TextSource.ts │ │ │ │ ├── TimeInterval.ts │ │ │ │ ├── TlInferenceBaseRequest.ts │ │ │ │ ├── TlInferencePrediction.ts │ │ │ │ ├── TlInferenceResults.ts │ │ │ │ ├── TlInferenceSourcePredictResult.ts │ │ │ │ ├── ToxicityScore.ts │ │ │ │ ├── TrainingBaseRequest.ts │ │ │ │ ├── TrainingCustomModel.ts │ │ │ │ ├── Transcription.ts │ │ │ │ ├── TranscriptionMetadata.ts │ │ │ │ ├── Type.ts │ │ │ │ ├── Unconfigurable.ts │ │ │ │ ├── UnionJob.ts │ │ │ │ ├── UnionPredictResult.ts │ │ │ │ ├── Url.ts │ │ │ │ ├── ValidationArgs.ts │ │ │ │ ├── When.ts │ │ │ │ ├── Window.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── stream │ │ │ ├── index.ts │ │ │ ├── resources │ │ │ ├── index.ts │ │ │ └── stream │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ ├── Config.ts │ │ │ │ ├── JobDetails.ts │ │ │ │ ├── StreamErrorMessage.ts │ │ │ │ ├── StreamFace.ts │ │ │ │ ├── StreamLanguage.ts │ │ │ │ ├── StreamModelPredictions.ts │ │ │ │ ├── StreamModelPredictionsBurst.ts │ │ │ │ ├── StreamModelPredictionsBurstPredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsFace.ts │ │ │ │ ├── StreamModelPredictionsFacePredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsFacemesh.ts │ │ │ │ ├── StreamModelPredictionsFacemeshPredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsJobDetails.ts │ │ │ │ ├── StreamModelPredictionsLanguage.ts │ │ │ │ ├── StreamModelPredictionsLanguagePredictionsItem.ts │ │ │ │ ├── StreamModelPredictionsProsody.ts │ │ │ │ ├── StreamModelPredictionsProsodyPredictionsItem.ts │ │ │ │ ├── StreamModelsEndpointPayload.ts │ │ │ │ ├── StreamWarningMessage.ts │ │ │ │ ├── StreamWarningMessageJobDetails.ts │ │ │ │ ├── SubscribeEvent.ts │ │ │ │ └── index.ts │ │ │ └── types │ │ │ ├── EmotionEmbedding.ts │ │ │ ├── EmotionEmbeddingItem.ts │ │ │ ├── Sentiment.ts │ │ │ ├── SentimentItem.ts │ │ │ ├── StreamBoundingBox.ts │ │ │ ├── TextPosition.ts │ │ │ ├── TimeRange.ts │ │ │ ├── Toxicity.ts │ │ │ ├── ToxicityItem.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── tts │ │ ├── index.ts │ │ ├── resources │ │ ├── index.ts │ │ └── voices │ │ │ ├── client │ │ │ ├── index.ts │ │ │ └── requests │ │ │ │ ├── PostedVoice.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── types │ │ ├── AudioEncoding.ts │ │ ├── AudioFormatType.ts │ │ ├── ErrorResponse.ts │ │ ├── Format.ts │ │ ├── FormatMp3.ts │ │ ├── FormatPcm.ts │ │ ├── FormatWav.ts │ │ ├── HttpValidationError.ts │ │ ├── PostedContext.ts │ │ ├── PostedContextWithGenerationId.ts │ │ ├── PostedContextWithUtterances.ts │ │ ├── PostedTts.ts │ │ ├── PostedUtterance.ts │ │ ├── PostedUtteranceVoice.ts │ │ ├── PostedUtteranceVoiceWithId.ts │ │ ├── PostedUtteranceVoiceWithName.ts │ │ ├── ReturnGeneration.ts │ │ ├── ReturnPagedVoices.ts │ │ ├── ReturnTts.ts │ │ ├── ReturnVoice.ts │ │ ├── Snippet.ts │ │ ├── SnippetAudioChunk.ts │ │ ├── ValidationError.ts │ │ ├── ValidationErrorLocItem.ts │ │ ├── VoiceProvider.ts │ │ └── index.ts ├── version.ts └── wrapper │ ├── EVIWebAudioPlayer.ts │ ├── HumeClient.ts │ ├── base64Decode.ts │ ├── base64Encode.ts │ ├── checkForAudioTracks.ts │ ├── convertBase64ToBlob.ts │ ├── convertBlobToBase64.ts │ ├── ensureSingleValidAudioTrack.ts │ ├── expressionMeasurement │ ├── ExpressionMeasurementClient.ts │ ├── batch │ │ ├── BatchClient.ts │ │ └── Job.ts │ └── streaming │ │ ├── StreamSocket.ts │ │ └── StreamingClient.ts │ ├── fetchAccessToken.ts │ ├── getAudioStream.ts │ ├── getBrowserSupportedMimeType.ts │ └── index.ts ├── tests ├── custom.test.ts ├── empathicVoice │ └── chat.test.ts ├── expressionMeasurement │ ├── batch.test.ts │ └── streaming.test.ts └── unit │ ├── fetcher │ ├── Fetcher.test.ts │ ├── createRequestUrl.test.ts │ ├── getFetchFn.test.ts │ ├── getRequestBody.test.ts │ ├── getResponseBody.test.ts │ ├── makeRequest.test.ts │ ├── requestWithRetries.test.ts │ ├── signals.test.ts │ ├── stream-wrappers │ │ ├── Node18UniversalStreamWrapper.test.ts │ │ ├── NodePre18StreamWrapper.test.ts │ │ ├── UndiciStreamWrapper.test.ts │ │ ├── chooseStreamWrapper.test.ts │ │ └── webpack.test.ts │ └── test-file.txt │ ├── form-data-utils │ └── formDataWrapper.test.ts │ └── zurg │ ├── bigint │ └── bigint.test.ts │ ├── date │ └── date.test.ts │ ├── enum │ └── enum.test.ts │ ├── lazy │ ├── lazy.test.ts │ ├── lazyObject.test.ts │ └── recursive │ │ ├── a.ts │ │ └── b.ts │ ├── list │ └── list.test.ts │ ├── literals │ └── stringLiteral.test.ts │ ├── object-like │ └── withParsedProperties.test.ts │ ├── object │ ├── extend.test.ts │ ├── object.test.ts │ ├── objectWithoutOptionalProperties.test.ts │ └── passthrough.test.ts │ ├── primitives │ ├── any.test.ts │ ├── boolean.test.ts │ ├── number.test.ts │ ├── string.test.ts │ └── unknown.test.ts │ ├── record │ └── record.test.ts │ ├── schema-utils │ └── getSchemaUtils.test.ts │ ├── schema.test.ts │ ├── set │ └── set.test.ts │ ├── skipValidation.test.ts │ ├── undiscriminated-union │ └── undiscriminatedUnion.test.ts │ ├── union │ └── union.test.ts │ └── utils │ ├── itSchema.ts │ └── itValidate.ts ├── tsconfig.dev.json ├── tsconfig.json └── yarn.lock /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "" 5 | labels: "" 6 | assignees: "" 7 | --- 8 | 9 | **Is your feature request related to a problem? Please describe.** 10 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 | 12 | **Describe the solution you'd like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you've considered** 16 | A clear and concise description of any alternative solutions or features you've considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | /dist -------------------------------------------------------------------------------- /.mock/definition/api.yml: -------------------------------------------------------------------------------- 1 | name: api 2 | error-discrimination: 3 | strategy: status-code 4 | default-environment: Production 5 | environments: 6 | Production: https://api.hume.ai 7 | auth: HeaderAuthScheme 8 | auth-schemes: 9 | HeaderAuthScheme: 10 | header: X-Hume-Api-Key 11 | type: optional 12 | name: apiKey 13 | -------------------------------------------------------------------------------- /.mock/definition/expression-measurement/__package__.yml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.mock/fern.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "organization" : "hume", 3 | "version" : "0.57.5" 4 | } -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src 3 | tests 4 | .gitignore 5 | .github 6 | .fernignore 7 | .prettierrc.yml 8 | tsconfig.json 9 | yarn.lock -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18.18.0 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .mock 2 | -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- 1 | tabWidth: 4 2 | printWidth: 120 3 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us! 4 | 5 | On the other hand, contributions to the README are always very welcome! 6 | -------------------------------------------------------------------------------- /jest.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('jest').Config} */ 2 | export default { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | moduleNameMapper: { 6 | "(.+)\.js$": "$1", 7 | }, 8 | }; 9 | -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- 1 | # run the CI workflow locally 2 | local-ci: 3 | act -W '.github/workflows/ci.yml' --container-architecture linux/amd64 -s GITHUB_TOKEN="$(gh auth token)" 4 | -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/errors/BadRequestError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../../../errors/index"; 6 | import * as Hume from "../../../index"; 7 | 8 | export class BadRequestError extends errors.HumeError { 9 | constructor(body: Hume.empathicVoice.ErrorResponse) { 10 | super({ 11 | message: "BadRequestError", 12 | statusCode: 400, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, BadRequestError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./BadRequestError"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | export * from "./errors"; 4 | export * from "./client"; 5 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chat/client/index.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export { ChatSocket } from "./Socket"; 3 | export { Chat } from "./Client"; 4 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chat/index.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export * from "./types"; 3 | export * from "./client"; 4 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chat/types/PublishEvent.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type PublishEvent = 8 | | Hume.empathicVoice.AudioInput 9 | | Hume.empathicVoice.SessionSettings 10 | | Hume.empathicVoice.UserInput 11 | | Hume.empathicVoice.AssistantInput 12 | | Hume.empathicVoice.ToolResponseMessage 13 | | Hume.empathicVoice.ToolErrorMessage 14 | | Hume.empathicVoice.PauseAssistantMessage 15 | | Hume.empathicVoice.ResumeAssistantMessage; 16 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type SubscribeEvent = 8 | | Hume.empathicVoice.AssistantEnd 9 | | Hume.empathicVoice.AssistantMessage 10 | | Hume.empathicVoice.AudioOutput 11 | | Hume.empathicVoice.ChatMetadata 12 | | Hume.empathicVoice.WebSocketError 13 | | Hume.empathicVoice.UserInterruption 14 | | Hume.empathicVoice.UserMessage 15 | | Hume.empathicVoice.ToolCallMessage 16 | | Hume.empathicVoice.ToolResponseMessage 17 | | Hume.empathicVoice.ToolErrorMessage; 18 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chat/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./PublishEvent"; 2 | export * from "./SubscribeEvent"; 3 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chatGroups/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chatGroups/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ChatGroupsListChatGroupsRequest } from "./ChatGroupsListChatGroupsRequest"; 2 | export { type ChatGroupsGetChatGroupRequest } from "./ChatGroupsGetChatGroupRequest"; 3 | export { type ChatGroupsListChatGroupEventsRequest } from "./ChatGroupsListChatGroupEventsRequest"; 4 | export { type ChatGroupsGetAudioRequest } from "./ChatGroupsGetAudioRequest"; 5 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chatGroups/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chats/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chats/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ChatsListChatsRequest } from "./ChatsListChatsRequest"; 2 | export { type ChatsListChatEventsRequest } from "./ChatsListChatEventsRequest"; 3 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/chats/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/configs/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "Updated Weather Assistant Config Name" 9 | * } 10 | */ 11 | export interface PostedConfigName { 12 | /** Name applied to all versions of a particular Config. */ 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * versionDescription: "This is an updated version_description." 9 | * } 10 | */ 11 | export interface PostedConfigVersionDescription { 12 | /** An optional description of the Config version. */ 13 | versionDescription?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/configs/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ConfigsListConfigsRequest } from "./ConfigsListConfigsRequest"; 2 | export { type PostedConfig } from "./PostedConfig"; 3 | export { type ConfigsListConfigVersionsRequest } from "./ConfigsListConfigVersionsRequest"; 4 | export { type PostedConfigVersion } from "./PostedConfigVersion"; 5 | export { type PostedConfigName } from "./PostedConfigName"; 6 | export { type PostedConfigVersionDescription } from "./PostedConfigVersionDescription"; 7 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/configs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/customVoices/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "name" 9 | * } 10 | */ 11 | export interface PostedCustomVoiceName { 12 | /** The name of the Custom Voice. Maximum length of 75 characters. Will be converted to all-uppercase. (e.g., "sample voice" becomes "SAMPLE VOICE") */ 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/customVoices/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type CustomVoicesListCustomVoicesRequest } from "./CustomVoicesListCustomVoicesRequest"; 2 | export { type PostedCustomVoiceName } from "./PostedCustomVoiceName"; 3 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/customVoices/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as chat from "./chat"; 2 | export * from "./chat/types"; 3 | export * as tools from "./tools"; 4 | export * as prompts from "./prompts"; 5 | export * as customVoices from "./customVoices"; 6 | export * as configs from "./configs"; 7 | export * as chats from "./chats"; 8 | export * as chatGroups from "./chatGroups"; 9 | export * from "./tools/client/requests"; 10 | export * from "./prompts/client/requests"; 11 | export * from "./customVoices/client/requests"; 12 | export * from "./configs/client/requests"; 13 | export * from "./chats/client/requests"; 14 | export * from "./chatGroups/client/requests"; 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/prompts/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "Updated Weather Assistant Prompt Name" 9 | * } 10 | */ 11 | export interface PostedPromptName { 12 | /** Name applied to all versions of a particular Prompt. */ 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * versionDescription: "This is an updated version_description." 9 | * } 10 | */ 11 | export interface PostedPromptVersionDescription { 12 | /** An optional description of the Prompt version. */ 13 | versionDescription?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/prompts/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type PromptsListPromptsRequest } from "./PromptsListPromptsRequest"; 2 | export { type PostedPrompt } from "./PostedPrompt"; 3 | export { type PromptsListPromptVersionsRequest } from "./PromptsListPromptVersionsRequest"; 4 | export { type PostedPromptVersion } from "./PostedPromptVersion"; 5 | export { type PostedPromptName } from "./PostedPromptName"; 6 | export { type PostedPromptVersionDescription } from "./PostedPromptVersionDescription"; 7 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/prompts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/tools/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "get_current_temperature" 9 | * } 10 | */ 11 | export interface PostedUserDefinedToolName { 12 | /** Name applied to all versions of a particular Tool. */ 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region." 9 | * } 10 | */ 11 | export interface PostedUserDefinedToolVersionDescription { 12 | /** An optional description of the Tool version. */ 13 | versionDescription?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/tools/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ToolsListToolsRequest } from "./ToolsListToolsRequest"; 2 | export { type PostedUserDefinedTool } from "./PostedUserDefinedTool"; 3 | export { type ToolsListToolVersionsRequest } from "./ToolsListToolVersionsRequest"; 4 | export { type PostedUserDefinedToolVersion } from "./PostedUserDefinedToolVersion"; 5 | export { type PostedUserDefinedToolName } from "./PostedUserDefinedToolName"; 6 | export { type PostedUserDefinedToolVersionDescription } from "./PostedUserDefinedToolVersionDescription"; 7 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/resources/tools/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/AudioConfiguration.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface AudioConfiguration { 8 | /** Number of audio channels. */ 9 | channels: number; 10 | /** Encoding format of the audio input, such as `linear16`. */ 11 | encoding: Hume.empathicVoice.Encoding; 12 | /** Audio sample rate. Number of samples per second in the audio input, measured in Hertz. */ 13 | sampleRate: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/BuiltInTool.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Name of the built-in tool. Set to `web_search` to equip EVI with the built-in Web Search tool. 7 | */ 8 | export type BuiltInTool = "web_search" | "hang_up"; 9 | export const BuiltInTool = { 10 | WebSearch: "web_search", 11 | HangUp: "hang_up", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/BuiltinToolConfig.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface BuiltinToolConfig { 8 | /** Optional text passed to the supplemental LLM if the tool call fails. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation. */ 9 | fallbackContent?: string; 10 | name: Hume.empathicVoice.BuiltInTool; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ChatMessage.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface ChatMessage { 8 | /** Transcript of the message. */ 9 | content?: string; 10 | /** Role of who is providing the message. */ 11 | role: Hume.empathicVoice.Role; 12 | /** Function call name and arguments. */ 13 | toolCall?: Hume.empathicVoice.ToolCallMessage; 14 | /** Function call response from client. */ 15 | toolResult?: Hume.empathicVoice.ChatMessageToolResult; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ChatMessageToolResult.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | /** 8 | * Function call response from client. 9 | */ 10 | export type ChatMessageToolResult = Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage; 11 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ContextType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ContextType = "editable" | "persistent" | "temporary"; 6 | export const ContextType = { 7 | Editable: "editable", 8 | Persistent: "persistent", 9 | Temporary: "temporary", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/Encoding.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Encoding = "linear16"; 6 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ErrorLevel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ErrorLevel = "warn"; 6 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ErrorResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ErrorResponse { 6 | error?: string; 7 | message?: string; 8 | code?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/FunctionCallResponseInput.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface FunctionCallResponseInput { 6 | type?: "function_call_response"; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/HttpValidationError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface HttpValidationError { 8 | detail?: Hume.empathicVoice.ValidationError[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/Inference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface Inference { 8 | /** 9 | * Prosody model inference results. 10 | * 11 | * EVI uses the prosody model to measure 48 emotions related to speech and vocal characteristics within a given expression. 12 | */ 13 | prosody?: Hume.empathicVoice.ProsodyInference; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/JsonMessage.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export type JsonMessage = 8 | | Hume.empathicVoice.AssistantEnd 9 | | Hume.empathicVoice.AssistantMessage 10 | | Hume.empathicVoice.ChatMetadata 11 | | Hume.empathicVoice.WebSocketError 12 | | Hume.empathicVoice.UserInterruption 13 | | Hume.empathicVoice.UserMessage 14 | | Hume.empathicVoice.ToolCallMessage 15 | | Hume.empathicVoice.ToolResponseMessage 16 | | Hume.empathicVoice.ToolErrorMessage; 17 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/MillisecondInterval.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface MillisecondInterval { 6 | /** Start time of the interval in milliseconds. */ 7 | begin: number; 8 | /** End time of the interval in milliseconds. */ 9 | end: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ModelProviderEnum.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ModelProviderEnum = 6 | | "GROQ" 7 | | "OPEN_AI" 8 | | "FIREWORKS" 9 | | "ANTHROPIC" 10 | | "CUSTOM_LANGUAGE_MODEL" 11 | | "GOOGLE" 12 | | "HUME_AI" 13 | | "AMAZON_BEDROCK"; 14 | export const ModelProviderEnum = { 15 | Groq: "GROQ", 16 | OpenAi: "OPEN_AI", 17 | Fireworks: "FIREWORKS", 18 | Anthropic: "ANTHROPIC", 19 | CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL", 20 | Google: "GOOGLE", 21 | HumeAi: "HUME_AI", 22 | AmazonBedrock: "AMAZON_BEDROCK", 23 | } as const; 24 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedConfigPromptSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Identifies which prompt to use in a a config OR how to create a new prompt to use in the config 7 | */ 8 | export interface PostedConfigPromptSpec { 9 | /** Identifier for a Prompt. Formatted as a UUID. */ 10 | id?: string; 11 | /** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */ 12 | version?: number; 13 | /** Text used to create a new prompt for a particular config. */ 14 | text?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Specifies the base voice used to create the Custom Voice. 7 | */ 8 | export type PostedCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "WHIMSY" | "STELLA" | "SUNNY"; 9 | export const PostedCustomVoiceBaseVoice = { 10 | Ito: "ITO", 11 | Kora: "KORA", 12 | Dacher: "DACHER", 13 | Aura: "AURA", 14 | Finn: "FINN", 15 | Whimsy: "WHIMSY", 16 | Stella: "STELLA", 17 | Sunny: "SUNNY", 18 | } as const; 19 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedEllmModel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A eLLM model configuration to be posted to the server 7 | */ 8 | export interface PostedEllmModel { 9 | /** 10 | * Boolean indicating if the eLLM is allowed to generate short responses. 11 | * 12 | * If omitted, short responses from the eLLM are enabled by default. 13 | */ 14 | allowShortResponses?: boolean; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedEventMessageSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Settings for a specific event_message to be posted to the server 7 | */ 8 | export interface PostedEventMessageSpec { 9 | /** 10 | * Boolean indicating if this event message is enabled. 11 | * 12 | * If set to `true`, a message will be sent when the circumstances for the specific event are met. 13 | */ 14 | enabled: boolean; 15 | /** Text to use as the event message when the corresponding event occurs. If no text is specified, EVI will generate an appropriate message based on its current context and the system prompt. */ 16 | text?: string; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedPromptSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A Prompt associated with this Config. 7 | */ 8 | export interface PostedPromptSpec { 9 | version?: unknown; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedTimeoutSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Settings for a specific timeout to be posted to the server 7 | */ 8 | export interface PostedTimeoutSpec { 9 | /** Boolean indicating if this event message is enabled. */ 10 | enabled: boolean; 11 | /** Duration in seconds for the timeout. */ 12 | durationSecs?: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`. 7 | */ 8 | export type PostedVoiceProvider = "HUME_AI" | "CUSTOM_VOICE"; 9 | export const PostedVoiceProvider = { 10 | HumeAi: "HUME_AI", 11 | CustomVoice: "CUSTOM_VOICE", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/PostedWebhookEventType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Events this URL is subscribed to 7 | */ 8 | export type PostedWebhookEventType = "chat_started" | "chat_ended"; 9 | export const PostedWebhookEventType = { 10 | ChatStarted: "chat_started", 11 | ChatEnded: "chat_ended", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ProsodyInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface ProsodyInference { 8 | /** 9 | * The confidence scores for 48 emotions within the detected expression of an audio sample. 10 | * 11 | * Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute. 12 | * 13 | * See our guide on [interpreting expression measurement results](/docs/expression-measurement/faq#how-do-i-interpret-my-results) to learn more. 14 | */ 15 | scores: Hume.empathicVoice.EmotionScores; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. 7 | */ 8 | export type ReturnBuiltinToolToolType = "BUILTIN" | "FUNCTION"; 9 | export const ReturnBuiltinToolToolType = { 10 | Builtin: "BUILTIN", 11 | Function: "FUNCTION", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Indicates the order in which the paginated results are presented, based on their creation date. 7 | * 8 | * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request. 9 | */ 10 | export type ReturnChatPagedEventsPaginationDirection = "ASC" | "DESC"; 11 | export const ReturnChatPagedEventsPaginationDirection = { 12 | Asc: "ASC", 13 | Desc: "DESC", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The base voice used to create the Custom Voice. 7 | */ 8 | export type ReturnCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "WHIMSY" | "STELLA" | "SUNNY"; 9 | export const ReturnCustomVoiceBaseVoice = { 10 | Ito: "ITO", 11 | Kora: "KORA", 12 | Dacher: "DACHER", 13 | Aura: "AURA", 14 | Finn: "FINN", 15 | Whimsy: "WHIMSY", 16 | Stella: "STELLA", 17 | Sunny: "SUNNY", 18 | } as const; 19 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnEllmModel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A specific eLLM Model configuration 7 | */ 8 | export interface ReturnEllmModel { 9 | /** 10 | * Boolean indicating if the eLLM is allowed to generate short responses. 11 | * 12 | * If omitted, short responses from the eLLM are enabled by default. 13 | */ 14 | allowShortResponses: boolean; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnEventMessageSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A specific event message configuration to be returned from the server 7 | */ 8 | export interface ReturnEventMessageSpec { 9 | /** 10 | * Boolean indicating if this event message is enabled. 11 | * 12 | * If set to `true`, a message will be sent when the circumstances for the specific event are met. 13 | */ 14 | enabled: boolean; 15 | /** Text to use as the event message when the corresponding event occurs. If no text is specified, EVI will generate an appropriate message based on its current context and the system prompt. */ 16 | text?: string; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Indicates the order in which the paginated results are presented, based on their creation date. 7 | * 8 | * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request. 9 | */ 10 | export type ReturnPagedChatGroupsPaginationDirection = "ASC" | "DESC"; 11 | export const ReturnPagedChatGroupsPaginationDirection = { 12 | Asc: "ASC", 13 | Desc: "DESC", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Indicates the order in which the paginated results are presented, based on their creation date. 7 | * 8 | * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request. 9 | */ 10 | export type ReturnPagedChatsPaginationDirection = "ASC" | "DESC"; 11 | export const ReturnPagedChatsPaginationDirection = { 12 | Asc: "ASC", 13 | Desc: "DESC", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnPromptVersionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. 7 | */ 8 | export type ReturnPromptVersionType = "FIXED" | "LATEST"; 9 | export const ReturnPromptVersionType = { 10 | Fixed: "FIXED", 11 | Latest: "LATEST", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnTimeoutSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A specific timeout configuration to be returned from the server 7 | */ 8 | export interface ReturnTimeoutSpec { 9 | /** 10 | * Boolean indicating if this timeout is enabled. 11 | * 12 | * If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI. 13 | */ 14 | enabled: boolean; 15 | /** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */ 16 | durationSecs?: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. 7 | */ 8 | export type ReturnUserDefinedToolToolType = "BUILTIN" | "FUNCTION"; 9 | export const ReturnUserDefinedToolToolType = { 10 | Builtin: "BUILTIN", 11 | Function: "FUNCTION", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. 7 | */ 8 | export type ReturnUserDefinedToolVersionType = "FIXED" | "LATEST"; 9 | export const ReturnUserDefinedToolVersionType = { 10 | Fixed: "FIXED", 11 | Latest: "LATEST", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`. 7 | */ 8 | export type ReturnVoiceProvider = "HUME_AI" | "CUSTOM_VOICE"; 9 | export const ReturnVoiceProvider = { 10 | HumeAi: "HUME_AI", 11 | CustomVoice: "CUSTOM_VOICE", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ReturnWebhookEventType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Events this URL is subscribed to 7 | */ 8 | export type ReturnWebhookEventType = "chat_started" | "chat_ended"; 9 | export const ReturnWebhookEventType = { 10 | ChatStarted: "chat_started", 11 | ChatEnded: "chat_ended", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/Role.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Role = "assistant" | "system" | "user" | "all" | "tool"; 6 | export const Role = { 7 | Assistant: "assistant", 8 | System: "system", 9 | User: "user", 10 | All: "all", 11 | Tool: "tool", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/SessionSettingsVariablesValue.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type SessionSettingsVariablesValue = string | number | boolean; 6 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/TextInput.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface TextInput { 6 | type?: "text_input"; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ToolType = "builtin" | "function"; 6 | export const ToolType = { 7 | Builtin: "builtin", 8 | Function: "function", 9 | } as const; 10 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/TtsInput.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface TtsInput { 6 | type?: "tts"; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ValidationError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface ValidationError { 8 | loc: Hume.empathicVoice.ValidationErrorLocItem[]; 9 | msg: string; 10 | type: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/ValidationErrorLocItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ValidationErrorLocItem = string | number; 6 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/WebhookEvent.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export type WebhookEvent = Hume.empathicVoice.WebhookEventChatStarted | Hume.empathicVoice.WebhookEventChatEnded; 8 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/WebhookEventBase.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Represents the fields common to all webhook events. 7 | */ 8 | export interface WebhookEventBase { 9 | /** Unique ID of the **Chat Group** associated with the **Chat** session. */ 10 | chatGroupId: string; 11 | /** Unique ID of the **Chat** session. */ 12 | chatId: string; 13 | /** Unique ID of the EVI **Config** used for the session. */ 14 | configId?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/WebhookEventChatStartType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WebhookEventChatStartType = "new_chat_group" | "resumed_chat_group"; 6 | export const WebhookEventChatStartType = { 7 | NewChatGroup: "new_chat_group", 8 | ResumedChatGroup: "resumed_chat_group", 9 | } as const; 10 | -------------------------------------------------------------------------------- /src/api/resources/empathicVoice/types/WebhookEventChatStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WebhookEventChatStatus = 6 | | "ACTIVE" 7 | | "USER_ENDED" 8 | | "USER_TIMEOUT" 9 | | "INACTIVITY_TIMEOUT" 10 | | "MAX_DURATION_TIMEOUT" 11 | | "ERROR"; 12 | export const WebhookEventChatStatus = { 13 | Active: "ACTIVE", 14 | UserEnded: "USER_ENDED", 15 | UserTimeout: "USER_TIMEOUT", 16 | InactivityTimeout: "INACTIVITY_TIMEOUT", 17 | MaxDurationTimeout: "MAX_DURATION_TIMEOUT", 18 | Error: "ERROR", 19 | } as const; 20 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../index"; 6 | 7 | /** 8 | * @example 9 | * {} 10 | */ 11 | export interface BatchStartInferenceJobFromLocalFileRequest { 12 | /** Stringified JSON object containing the inference job configuration. */ 13 | json?: Hume.expressionMeasurement.batch.InferenceBaseRequest; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type BatchListJobsRequest } from "./BatchListJobsRequest"; 2 | export { type BatchStartInferenceJobFromLocalFileRequest } from "./BatchStartInferenceJobFromLocalFileRequest"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Alternative.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Alternative = "language_only"; 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/BoundingBox.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A bounding box around a face. 7 | */ 8 | export interface BoundingBox { 9 | /** x-coordinate of bounding box top left corner. */ 10 | x: number; 11 | /** y-coordinate of bounding box top left corner. */ 12 | y: number; 13 | /** Bounding box width. */ 14 | w: number; 15 | /** Bounding box height. */ 16 | h: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/BurstPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface BurstPrediction { 8 | time: Hume.expressionMeasurement.batch.TimeInterval; 9 | /** A high-dimensional embedding in emotion space. */ 10 | emotions: Hume.expressionMeasurement.batch.EmotionScore[]; 11 | /** Modality-specific descriptive features and their scores. */ 12 | descriptions: Hume.expressionMeasurement.batch.DescriptionsScore[]; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Classification.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Classification = Record; 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CompletedEmbeddingGeneration.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CompletedEmbeddingGeneration { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | /** When this job started (Unix timestamp in milliseconds). */ 9 | startedTimestampMs: number; 10 | /** When this job ended (Unix timestamp in milliseconds). */ 11 | endedTimestampMs: number; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CompletedInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CompletedInference { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | /** When this job started (Unix timestamp in milliseconds). */ 9 | startedTimestampMs: number; 10 | /** When this job ended (Unix timestamp in milliseconds). */ 11 | endedTimestampMs: number; 12 | /** The number of predictions that were generated by this job. */ 13 | numPredictions: number; 14 | /** The number of errors that occurred while running this job. */ 15 | numErrors: number; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CompletedState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface CompletedState extends Hume.expressionMeasurement.batch.CompletedInference {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CompletedTlInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CompletedTlInference { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | /** When this job started (Unix timestamp in milliseconds). */ 9 | startedTimestampMs: number; 10 | /** When this job ended (Unix timestamp in milliseconds). */ 11 | endedTimestampMs: number; 12 | /** The number of predictions that were generated by this job. */ 13 | numPredictions: number; 14 | /** The number of errors that occurred while running this job. */ 15 | numErrors: number; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type CustomModel = 8 | | Hume.expressionMeasurement.batch.CustomModelId 9 | | Hume.expressionMeasurement.batch.CustomModelVersionId; 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CustomModelId { 6 | id: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CustomModelPrediction { 6 | output: Record; 7 | error: string; 8 | taskType: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface CustomModelRequest { 8 | name: string; 9 | description?: string; 10 | tags?: Hume.expressionMeasurement.batch.Tag[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelVersionId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CustomModelVersionId { 6 | versionId: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelsInferenceJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface CustomModelsInferenceJob extends Hume.expressionMeasurement.batch.JobTlInference { 8 | type: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/CustomModelsTrainingJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface CustomModelsTrainingJob extends Hume.expressionMeasurement.batch.JobTraining { 8 | type: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Dataset.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type Dataset = Hume.expressionMeasurement.batch.DatasetId | Hume.expressionMeasurement.batch.DatasetVersionId; 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/DatasetId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface DatasetId { 6 | id: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/DatasetVersionId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface DatasetVersionId { 6 | versionId: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/DescriptionsScore.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface DescriptionsScore { 6 | /** Name of the descriptive feature being expressed. */ 7 | name: string; 8 | /** Embedding value for the descriptive feature being expressed. */ 9 | score: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Direction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Direction = "asc" | "desc"; 6 | export const Direction = { 7 | Asc: "asc", 8 | Desc: "desc", 9 | } as const; 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationBaseRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface EmbeddingGenerationBaseRequest { 8 | /** File ID and File URL pairs for an asset registry file */ 9 | registryFileDetails?: Hume.expressionMeasurement.batch.RegistryFileDetail[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface EmbeddingGenerationJob extends Hume.expressionMeasurement.batch.JobEmbeddingGeneration { 8 | type: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/EmotionScore.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface EmotionScore { 6 | /** Name of the emotion being expressed. */ 7 | name: string; 8 | /** Embedding value for the emotion being expressed. */ 9 | score: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Error_.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Error_ { 6 | /** An error message. */ 7 | message: string; 8 | /** A file path relative to the top level source URL or file. */ 9 | file: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/EvaluationArgs.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface EvaluationArgs { 8 | validation?: Hume.expressionMeasurement.batch.ValidationArgs; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/FacemeshPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface FacemeshPrediction { 8 | /** A high-dimensional embedding in emotion space. */ 9 | emotions: Hume.expressionMeasurement.batch.EmotionScore[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/FacsScore.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface FacsScore { 6 | /** Name of the FACS 2.0 feature being expressed. */ 7 | name: string; 8 | /** Embedding value for the FACS 2.0 feature being expressed. */ 9 | score: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Failed.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Failed { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | /** When this job started (Unix timestamp in milliseconds). */ 9 | startedTimestampMs: number; 10 | /** When this job ended (Unix timestamp in milliseconds). */ 11 | endedTimestampMs: number; 12 | /** An error message. */ 13 | message: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/FailedState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface FailedState extends Hume.expressionMeasurement.batch.Failed {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/File_.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The list of files submitted for analysis. 7 | */ 8 | export interface File_ { 9 | /** The name of the file. */ 10 | filename?: string; 11 | /** The content type of the file. */ 12 | contentType?: string; 13 | /** The MD5 checksum of the file. */ 14 | md5Sum: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsBurstPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsBurstPrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.BurstPrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsFacePrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.FacePrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacemeshPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsFacemeshPrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.FacemeshPrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsLanguagePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsLanguagePrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.LanguagePrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsNerPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsNerPrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.NerPrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsProsodyPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface GroupedPredictionsProsodyPrediction { 8 | /** An automatically generated label to identify individuals in your media file. Will be `unknown` if you have chosen to disable identification, or if the model is unable to distinguish between individuals. */ 9 | id: string; 10 | predictions: Hume.expressionMeasurement.batch.ProsodyPrediction[]; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InProgress.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface InProgress { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | /** When this job started (Unix timestamp in milliseconds). */ 9 | startedTimestampMs: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InProgressState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface InProgressState extends Hume.expressionMeasurement.batch.InProgress {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InferenceJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface InferenceJob extends Hume.expressionMeasurement.batch.JobInference { 8 | /** 9 | * Denotes the job type. 10 | * 11 | * Jobs created with the Expression Measurement API will have this field set to `INFERENCE`. 12 | */ 13 | type: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InferencePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface InferencePrediction { 8 | /** A file path relative to the top level source URL or file. */ 9 | file: string; 10 | models: Hume.expressionMeasurement.batch.ModelsPredictions; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InferenceResults.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface InferenceResults { 8 | predictions: Hume.expressionMeasurement.batch.InferencePrediction[]; 9 | errors: Hume.expressionMeasurement.batch.Error_[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/InferenceSourcePredictResult.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface InferenceSourcePredictResult { 8 | source: Hume.expressionMeasurement.batch.Source; 9 | results?: Hume.expressionMeasurement.batch.InferenceResults; 10 | /** An error message. */ 11 | error?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/JobEmbeddingGeneration.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface JobEmbeddingGeneration { 8 | /** The ID associated with this job. */ 9 | jobId: string; 10 | userId: string; 11 | request: Hume.expressionMeasurement.batch.EmbeddingGenerationBaseRequest; 12 | state: Hume.expressionMeasurement.batch.StateEmbeddingGeneration; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/JobId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface JobId { 6 | /** The ID of the started job. */ 7 | jobId: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/JobInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface JobInference { 8 | /** The ID associated with this job. */ 9 | jobId: string; 10 | /** The request that initiated the job. */ 11 | request: Hume.expressionMeasurement.batch.InferenceRequest; 12 | /** The current state of the job. */ 13 | state: Hume.expressionMeasurement.batch.StateInference; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/JobTlInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface JobTlInference { 8 | /** The ID associated with this job. */ 9 | jobId: string; 10 | userId: string; 11 | request: Hume.expressionMeasurement.batch.TlInferenceBaseRequest; 12 | state: Hume.expressionMeasurement.batch.StateTlInference; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/JobTraining.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface JobTraining { 8 | /** The ID associated with this job. */ 9 | jobId: string; 10 | userId: string; 11 | request: Hume.expressionMeasurement.batch.TrainingBaseRequest; 12 | state: Hume.expressionMeasurement.batch.StateTraining; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Models.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | /** 8 | * The models used for inference. 9 | */ 10 | export interface Models { 11 | face?: Hume.expressionMeasurement.batch.Face; 12 | burst?: Hume.expressionMeasurement.batch.Unconfigurable; 13 | prosody?: Hume.expressionMeasurement.batch.Prosody; 14 | language?: Hume.expressionMeasurement.batch.Language; 15 | ner?: Hume.expressionMeasurement.batch.Ner; 16 | facemesh?: Hume.expressionMeasurement.batch.Unconfigurable; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Null.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * No associated metadata for this model. Value will be `null`. 7 | */ 8 | export type Null = Record; 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PositionInterval.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Position of a segment of text within a larger document, measured in characters. Uses zero-based indexing. The beginning index is inclusive and the end index is exclusive. 7 | */ 8 | export interface PositionInterval { 9 | /** The index of the first character in the text segment, inclusive. */ 10 | begin: number; 11 | /** The index of the last character in the text segment, exclusive. */ 12 | end: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullBurstPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalNullBurstPrediction { 8 | metadata?: Hume.expressionMeasurement.batch.Null; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsBurstPrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalNullFacePrediction { 8 | metadata?: Hume.expressionMeasurement.batch.Null; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsFacePrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacemeshPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalNullFacemeshPrediction { 8 | metadata?: Hume.expressionMeasurement.batch.Null; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsFacemeshPrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalTranscriptionMetadataLanguagePrediction { 8 | metadata?: Hume.expressionMeasurement.batch.TranscriptionMetadata; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsLanguagePrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataNerPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalTranscriptionMetadataNerPrediction { 8 | metadata?: Hume.expressionMeasurement.batch.TranscriptionMetadata; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsNerPrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface PredictionsOptionalTranscriptionMetadataProsodyPrediction { 8 | metadata?: Hume.expressionMeasurement.batch.TranscriptionMetadata; 9 | groupedPredictions: Hume.expressionMeasurement.batch.GroupedPredictionsProsodyPrediction[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Queued.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Queued { 6 | /** When this job was created (Unix timestamp in milliseconds). */ 7 | createdTimestampMs: number; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/QueuedState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface QueuedState extends Hume.expressionMeasurement.batch.Queued {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/RegistryFileDetail.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface RegistryFileDetail { 6 | /** File ID in the Asset Registry */ 7 | fileId: string; 8 | /** URL to the file in the Asset Registry */ 9 | fileUrl: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Regression.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Regression = Record; 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/SentimentScore.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SentimentScore { 6 | /** Level of sentiment, ranging from `1` (negative) to `9` (positive) */ 7 | name: string; 8 | /** Prediction for this level of sentiment */ 9 | score: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/SortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type SortBy = "created" | "started" | "ended"; 6 | export const SortBy = { 7 | Created: "created", 8 | Started: "started", 9 | Ended: "ended", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/SourceFile.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface SourceFile extends Hume.expressionMeasurement.batch.File_ {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/SourceTextSource.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SourceTextSource {} 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/SourceUrl.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface SourceUrl extends Hume.expressionMeasurement.batch.Url {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationCompletedEmbeddingGeneration.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateEmbeddingGenerationCompletedEmbeddingGeneration 8 | extends Hume.expressionMeasurement.batch.CompletedEmbeddingGeneration {} 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationFailed.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateEmbeddingGenerationFailed extends Hume.expressionMeasurement.batch.Failed {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationInProgress.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateEmbeddingGenerationInProgress extends Hume.expressionMeasurement.batch.InProgress {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationQueued.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateEmbeddingGenerationQueued extends Hume.expressionMeasurement.batch.Queued {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTlInferenceCompletedTlInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTlInferenceCompletedTlInference extends Hume.expressionMeasurement.batch.CompletedTlInference {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTlInferenceFailed.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTlInferenceFailed extends Hume.expressionMeasurement.batch.Failed {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTlInferenceInProgress.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTlInferenceInProgress extends Hume.expressionMeasurement.batch.InProgress {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTlInferenceQueued.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTlInferenceQueued extends Hume.expressionMeasurement.batch.Queued {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTrainingCompletedTraining.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTrainingCompletedTraining extends Hume.expressionMeasurement.batch.CompletedTraining {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTrainingFailed.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTrainingFailed extends Hume.expressionMeasurement.batch.Failed {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTrainingInProgress.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTrainingInProgress extends Hume.expressionMeasurement.batch.InProgress {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/StateTrainingQueued.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface StateTrainingQueued extends Hume.expressionMeasurement.batch.Queued {} 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Status.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Status = "QUEUED" | "IN_PROGRESS" | "COMPLETED" | "FAILED"; 6 | export const Status = { 7 | Queued: "QUEUED", 8 | InProgress: "IN_PROGRESS", 9 | Completed: "COMPLETED", 10 | Failed: "FAILED", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Tag.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Tag { 6 | key: string; 7 | value: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Target.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Target = number | number | string; 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Task.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type Task = 8 | | Hume.expressionMeasurement.batch.Task.Classification 9 | | Hume.expressionMeasurement.batch.Task.Regression; 10 | 11 | export namespace Task { 12 | export interface Classification extends Hume.expressionMeasurement.batch.TaskClassification { 13 | type: "classification"; 14 | } 15 | 16 | export interface Regression extends Hume.expressionMeasurement.batch.TaskRegression { 17 | type: "regression"; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TaskClassification.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface TaskClassification {} 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TaskRegression.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface TaskRegression {} 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TextSource.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type TextSource = Record; 6 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TimeInterval.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A time range with a beginning and end, measured in seconds. 7 | */ 8 | export interface TimeInterval { 9 | /** Beginning of time range in seconds. */ 10 | begin: number; 11 | /** End of time range in seconds. */ 12 | end: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TlInferencePrediction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface TlInferencePrediction { 8 | /** A file path relative to the top level source URL or file. */ 9 | file: string; 10 | fileType: string; 11 | customModels: Record; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TlInferenceResults.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface TlInferenceResults { 8 | predictions: Hume.expressionMeasurement.batch.TlInferencePrediction[]; 9 | errors: Hume.expressionMeasurement.batch.Error_[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TlInferenceSourcePredictResult.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface TlInferenceSourcePredictResult { 8 | source: Hume.expressionMeasurement.batch.Source; 9 | results?: Hume.expressionMeasurement.batch.TlInferenceResults; 10 | /** An error message. */ 11 | error?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/ToxicityScore.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ToxicityScore { 6 | /** Category of toxicity. */ 7 | name: string; 8 | /** Prediction for this category of toxicity */ 9 | score: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TrainingBaseRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface TrainingBaseRequest { 8 | customModel: Hume.expressionMeasurement.batch.CustomModelRequest; 9 | dataset: Hume.expressionMeasurement.batch.Dataset; 10 | targetFeature?: string; 11 | task?: Hume.expressionMeasurement.batch.Task; 12 | evaluation?: Hume.expressionMeasurement.batch.EvaluationArgs; 13 | alternatives?: Hume.expressionMeasurement.batch.Alternative[]; 14 | callbackUrl?: string; 15 | notify?: boolean; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TrainingCustomModel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface TrainingCustomModel { 6 | id: string; 7 | versionId?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/TranscriptionMetadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | /** 8 | * Transcription metadata for your media file. 9 | */ 10 | export interface TranscriptionMetadata { 11 | /** Value between `0.0` and `1.0` indicating our transcription model's relative confidence in the transcription of your media file. */ 12 | confidence: number; 13 | detectedLanguage?: Hume.expressionMeasurement.batch.Bcp47Tag; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Type.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Type = "EMBEDDING_GENERATION" | "INFERENCE" | "TL_INFERENCE" | "TRAINING"; 6 | export const Type = { 7 | EmbeddingGeneration: "EMBEDDING_GENERATION", 8 | Inference: "INFERENCE", 9 | TlInference: "TL_INFERENCE", 10 | Training: "TRAINING", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Unconfigurable.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * To include predictions for this model type, set this field to `{}`. It is currently not configurable further. 7 | */ 8 | export type Unconfigurable = Record; 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/UnionJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type UnionJob = Hume.expressionMeasurement.batch.InferenceJob; 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/UnionPredictResult.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export type UnionPredictResult = Hume.expressionMeasurement.batch.InferenceSourcePredictResult; 8 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Url.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Url { 6 | /** The URL of the source media file. */ 7 | url: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/ValidationArgs.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | export interface ValidationArgs { 8 | positiveLabel?: Hume.expressionMeasurement.batch.Target; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/When.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type When = "created_before" | "created_after"; 6 | export const When = { 7 | CreatedBefore: "created_before", 8 | CreatedAfter: "created_after", 9 | } as const; 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/batch/types/Window.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Generate predictions based on time. 7 | * 8 | * Setting the `window` field allows for a 'sliding window' approach, where a fixed-size window moves across the audio or video file in defined steps. This enables continuous analysis of prosody within subsets of the file, providing dynamic and localized insights into emotional expression. 9 | */ 10 | export interface Window { 11 | /** The length of the sliding window. */ 12 | length?: number; 13 | /** The step size of the sliding window. */ 14 | step?: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as batch from "./batch"; 2 | export * as stream from "./stream"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as stream from "./stream"; 2 | export * from "./stream/types"; 3 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/JobDetails.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * If the job_details flag was set in the request, details about the current streaming job will be returned in the response body. 7 | */ 8 | export interface JobDetails { 9 | /** ID of the current streaming job. */ 10 | jobId?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurst.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | /** 8 | * Response for the vocal burst emotion model. 9 | */ 10 | export interface StreamModelPredictionsBurst { 11 | predictions?: Hume.expressionMeasurement.stream.StreamModelPredictionsBurstPredictionsItem[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | export interface StreamModelPredictionsBurstPredictionsItem { 8 | time?: Hume.expressionMeasurement.stream.TimeRange; 9 | emotions?: Hume.expressionMeasurement.stream.EmotionEmbedding; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFace.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | /** 8 | * Response for the facial expression emotion model. 9 | */ 10 | export interface StreamModelPredictionsFace { 11 | predictions?: Hume.expressionMeasurement.stream.StreamModelPredictionsFacePredictionsItem[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemesh.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | /** 8 | * Response for the facemesh emotion model. 9 | */ 10 | export interface StreamModelPredictionsFacemesh { 11 | predictions?: Hume.expressionMeasurement.stream.StreamModelPredictionsFacemeshPredictionsItem[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | export interface StreamModelPredictionsFacemeshPredictionsItem { 8 | emotions?: Hume.expressionMeasurement.stream.EmotionEmbedding; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsJobDetails.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * If the job_details flag was set in the request, details about the current streaming job will be returned in the response body. 7 | */ 8 | export interface StreamModelPredictionsJobDetails { 9 | /** ID of the current streaming job. */ 10 | jobId?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguage.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | /** 8 | * Response for the language emotion model. 9 | */ 10 | export interface StreamModelPredictionsLanguage { 11 | predictions?: Hume.expressionMeasurement.stream.StreamModelPredictionsLanguagePredictionsItem[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | export interface StreamModelPredictionsLanguagePredictionsItem { 8 | /** A segment of text (like a word or a sentence). */ 9 | text?: string; 10 | position?: Hume.expressionMeasurement.stream.TextPosition; 11 | emotions?: Hume.expressionMeasurement.stream.EmotionEmbedding; 12 | sentiment?: Hume.expressionMeasurement.stream.Sentiment; 13 | toxicity?: Hume.expressionMeasurement.stream.Toxicity; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsody.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | /** 8 | * Response for the speech prosody emotion model. 9 | */ 10 | export interface StreamModelPredictionsProsody { 11 | predictions?: Hume.expressionMeasurement.stream.StreamModelPredictionsProsodyPredictionsItem[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | export interface StreamModelPredictionsProsodyPredictionsItem { 8 | time?: Hume.expressionMeasurement.stream.TimeRange; 9 | emotions?: Hume.expressionMeasurement.stream.EmotionEmbedding; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessageJobDetails.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * If the job_details flag was set in the request, details about the current streaming job will be returned in the response body. 7 | */ 8 | export interface StreamWarningMessageJobDetails { 9 | /** ID of the current streaming job. */ 10 | jobId?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../../../index"; 6 | 7 | export type SubscribeEvent = 8 | /** 9 | * Model predictions */ 10 | | Hume.expressionMeasurement.stream.StreamModelPredictions 11 | /** 12 | * Error message */ 13 | | Hume.expressionMeasurement.stream.StreamErrorMessage 14 | /** 15 | * Warning message */ 16 | | Hume.expressionMeasurement.stream.StreamWarningMessage; 17 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | /** 8 | * A high-dimensional embedding in emotion space. 9 | */ 10 | export type EmotionEmbedding = Hume.expressionMeasurement.stream.EmotionEmbeddingItem[]; 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbeddingItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface EmotionEmbeddingItem { 6 | /** Name of the emotion being expressed. */ 7 | name?: string; 8 | /** Embedding value for the emotion being expressed. */ 9 | score?: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/SentimentItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SentimentItem { 6 | /** Level of sentiment, ranging from 1 (negative) to 9 (positive) */ 7 | name?: string; 8 | /** Prediction for this level of sentiment */ 9 | score?: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/StreamBoundingBox.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A bounding box around a face. 7 | */ 8 | export interface StreamBoundingBox { 9 | /** x-coordinate of bounding box top left corner. */ 10 | x?: number; 11 | /** y-coordinate of bounding box top left corner. */ 12 | y?: number; 13 | /** Bounding box width. */ 14 | w?: number; 15 | /** Bounding box height. */ 16 | h?: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/TextPosition.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Position of a segment of text within a larger document, measured in characters. Uses zero-based indexing. The beginning index is inclusive and the end index is exclusive. 7 | */ 8 | export interface TextPosition { 9 | /** The index of the first character in the text segment, inclusive. */ 10 | begin?: number; 11 | /** The index of the last character in the text segment, exclusive. */ 12 | end?: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/TimeRange.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A time range with a beginning and end, measured in seconds. 7 | */ 8 | export interface TimeRange { 9 | /** Beginning of time range in seconds. */ 10 | begin?: number; 11 | /** End of time range in seconds. */ 12 | end?: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/Toxicity.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../../../index"; 6 | 7 | /** 8 | * Toxicity predictions returned as probabilities that the text can be classified into the following categories: toxic, severe_toxic, obscene, threat, insult, and identity_hate. 9 | */ 10 | export type Toxicity = Hume.expressionMeasurement.stream.ToxicityItem[]; 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/ToxicityItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ToxicityItem { 6 | /** Category of toxicity. */ 7 | name?: string; 8 | /** Prediction for this category of toxicity */ 9 | score?: number; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/expressionMeasurement/resources/stream/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EmotionEmbeddingItem"; 2 | export * from "./EmotionEmbedding"; 3 | export * from "./StreamBoundingBox"; 4 | export * from "./TimeRange"; 5 | export * from "./TextPosition"; 6 | export * from "./SentimentItem"; 7 | export * from "./Sentiment"; 8 | export * from "./ToxicityItem"; 9 | export * from "./Toxicity"; 10 | -------------------------------------------------------------------------------- /src/api/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as tts from "./tts"; 2 | export * as empathicVoice from "./empathicVoice"; 3 | export * as expressionMeasurement from "./expressionMeasurement"; 4 | -------------------------------------------------------------------------------- /src/api/resources/tts/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/tts/errors/BadRequestError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../../../errors/index"; 6 | import * as Hume from "../../../index"; 7 | 8 | export class BadRequestError extends errors.HumeError { 9 | constructor(body: Hume.tts.ErrorResponse) { 10 | super({ 11 | message: "BadRequestError", 12 | statusCode: 400, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, BadRequestError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/tts/errors/UnprocessableEntityError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../../../errors/index"; 6 | import * as Hume from "../../../index"; 7 | 8 | export class UnprocessableEntityError extends errors.HumeError { 9 | constructor(body: Hume.tts.HttpValidationError) { 10 | super({ 11 | message: "UnprocessableEntityError", 12 | statusCode: 422, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, UnprocessableEntityError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/tts/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./UnprocessableEntityError"; 2 | export * from "./BadRequestError"; 3 | -------------------------------------------------------------------------------- /src/api/resources/tts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./errors"; 3 | export * from "./client"; 4 | export * from "./resources"; 5 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as voices from "./voices"; 2 | export * from "./voices/client/requests"; 3 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/voices/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/voices/client/requests/PostedVoice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * generationId: "795c949a-1510-4a80-9646-7d0863b023ab", 9 | * name: "David Hume" 10 | * } 11 | */ 12 | export interface PostedVoice { 13 | /** A unique ID associated with this TTS generation that can be used as context for generating consistent speech style and prosody across multiple requests. */ 14 | generationId: string; 15 | /** Name of the voice in the `Voice Library`. */ 16 | name: string; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/voices/client/requests/VoicesDeleteRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "David Hume" 9 | * } 10 | */ 11 | export interface VoicesDeleteRequest { 12 | /** 13 | * Name of the voice to delete 14 | */ 15 | name: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/voices/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type VoicesListRequest } from "./VoicesListRequest"; 2 | export { type PostedVoice } from "./PostedVoice"; 3 | export { type VoicesDeleteRequest } from "./VoicesDeleteRequest"; 4 | -------------------------------------------------------------------------------- /src/api/resources/tts/resources/voices/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/AudioEncoding.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | /** 8 | * Encoding information about the generated audio, including the `format` and `sample_rate`. 9 | */ 10 | export interface AudioEncoding { 11 | /** Format for the output audio. */ 12 | format: Hume.tts.AudioFormatType; 13 | /** The sample rate (`Hz`) of the generated audio. The default sample rate is `48000 Hz`. */ 14 | sampleRate: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/AudioFormatType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type AudioFormatType = "mp3" | "pcm" | "wav"; 6 | export const AudioFormatType = { 7 | Mp3: "mp3", 8 | Pcm: "pcm", 9 | Wav: "wav", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/ErrorResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ErrorResponse { 6 | error?: string; 7 | message?: string; 8 | code?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/Format.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | /** 8 | * Specifies the output audio file format. 9 | */ 10 | export type Format = Hume.tts.Format.Mp3 | Hume.tts.Format.Pcm | Hume.tts.Format.Wav; 11 | 12 | export namespace Format { 13 | export interface Mp3 extends Hume.tts.FormatMp3 { 14 | type: "mp3"; 15 | } 16 | 17 | export interface Pcm extends Hume.tts.FormatPcm { 18 | type: "pcm"; 19 | } 20 | 21 | export interface Wav extends Hume.tts.FormatWav { 22 | type: "wav"; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/FormatMp3.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface FormatMp3 {} 6 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/FormatPcm.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface FormatPcm {} 6 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/FormatWav.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface FormatWav {} 6 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/HttpValidationError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface HttpValidationError { 8 | detail?: Hume.tts.ValidationError[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/PostedContext.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | /** 8 | * Utterances to use as context for generating consistent speech style and prosody across multiple requests. These will not be converted to speech output. 9 | */ 10 | export type PostedContext = Hume.tts.PostedContextWithGenerationId | Hume.tts.PostedContextWithUtterances; 11 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/PostedContextWithGenerationId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface PostedContextWithGenerationId { 6 | /** The ID of a prior TTS generation to use as context for generating consistent speech style and prosody across multiple requests. Including context may increase audio generation times. */ 7 | generationId: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/PostedContextWithUtterances.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface PostedContextWithUtterances { 8 | utterances: Hume.tts.PostedUtterance[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/PostedUtteranceVoice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export type PostedUtteranceVoice = Hume.tts.PostedUtteranceVoiceWithId | Hume.tts.PostedUtteranceVoiceWithName; 8 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/ReturnTts.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface ReturnTts { 8 | generations: Hume.tts.ReturnGeneration[]; 9 | /** A unique ID associated with this request for tracking and troubleshooting. Use this ID when contacting [support](/support) for troubleshooting assistance. */ 10 | requestId?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/Snippet.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Snippet { 6 | /** The segmented audio output in the requested format, encoded as a base64 string. */ 7 | audio: string; 8 | /** The generation ID this snippet corresponds to. */ 9 | generationId: string; 10 | /** A unique ID associated with this **Snippet**. */ 11 | id: string; 12 | /** The text for this **Snippet**. */ 13 | text: string; 14 | /** The index of the utterance in the request this snippet corresponds to. */ 15 | utteranceIndex?: number; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/ValidationError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Hume from "../../../index"; 6 | 7 | export interface ValidationError { 8 | loc: Hume.tts.ValidationErrorLocItem[]; 9 | msg: string; 10 | type: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/ValidationErrorLocItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ValidationErrorLocItem = string | number; 6 | -------------------------------------------------------------------------------- /src/api/resources/tts/types/VoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type VoiceProvider = "HUME_AI" | "CUSTOM_VOICE"; 6 | export const VoiceProvider = { 7 | HumeAi: "HUME_AI", 8 | CustomVoice: "CUSTOM_VOICE", 9 | } as const; 10 | -------------------------------------------------------------------------------- /src/core/fetcher/APIResponse.ts: -------------------------------------------------------------------------------- 1 | export type APIResponse = SuccessfulResponse | FailedResponse; 2 | 3 | export interface SuccessfulResponse { 4 | ok: true; 5 | body: T; 6 | headers?: Record; 7 | } 8 | 9 | export interface FailedResponse { 10 | ok: false; 11 | error: T; 12 | } 13 | -------------------------------------------------------------------------------- /src/core/fetcher/Supplier.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export type Supplier = T | (() => T); 3 | 4 | export const Supplier = { 5 | get: (supplier: Supplier): T => { 6 | if (typeof supplier === "function") { 7 | return (supplier as () => T)(); 8 | } else { 9 | return supplier; 10 | } 11 | }, 12 | }; 13 | -------------------------------------------------------------------------------- /src/core/fetcher/createRequestUrl.ts: -------------------------------------------------------------------------------- 1 | import qs from "qs"; 2 | 3 | export function createRequestUrl( 4 | baseUrl: string, 5 | queryParameters?: Record, 6 | ): string { 7 | return Object.keys(queryParameters ?? {}).length > 0 8 | ? `${baseUrl}?${qs.stringify(queryParameters, { arrayFormat: "repeat" })}` 9 | : baseUrl; 10 | } 11 | -------------------------------------------------------------------------------- /src/core/fetcher/getHeader.ts: -------------------------------------------------------------------------------- 1 | export function getHeader(headers: Record, header: string): string | undefined { 2 | for (const [headerKey, headerValue] of Object.entries(headers)) { 3 | if (headerKey.toLowerCase() === header.toLowerCase()) { 4 | return headerValue; 5 | } 6 | } 7 | return undefined; 8 | } 9 | -------------------------------------------------------------------------------- /src/core/fetcher/getRequestBody.ts: -------------------------------------------------------------------------------- 1 | import { toJson } from "../json"; 2 | 3 | export declare namespace GetRequestBody { 4 | interface Args { 5 | body: unknown; 6 | type: "json" | "file" | "bytes" | "other"; 7 | } 8 | } 9 | 10 | export async function getRequestBody({ body, type }: GetRequestBody.Args): Promise { 11 | if (type.includes("json")) { 12 | return toJson(body); 13 | } else { 14 | return body as BodyInit; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/core/fetcher/index.ts: -------------------------------------------------------------------------------- 1 | export type { APIResponse } from "./APIResponse"; 2 | export { fetcher } from "./Fetcher"; 3 | export type { Fetcher, FetchFunction } from "./Fetcher"; 4 | export { getHeader } from "./getHeader"; 5 | export { Supplier } from "./Supplier"; 6 | -------------------------------------------------------------------------------- /src/core/form-data-utils/encodeAsFormParameter.ts: -------------------------------------------------------------------------------- 1 | import qs from "qs"; 2 | 3 | /** 4 | * Takes an unknown value, stringifies it using qs, and parses it into a key-value record 5 | */ 6 | export function encodeAsFormParameter(value: unknown): Record { 7 | const stringified = qs.stringify(value, { encode: false }); 8 | 9 | const keyValuePairs = stringified.split("&").map((pair) => { 10 | const [key, value] = pair.split("="); 11 | return [key, value] as const; 12 | }); 13 | 14 | return Object.fromEntries(keyValuePairs); 15 | } 16 | -------------------------------------------------------------------------------- /src/core/form-data-utils/index.ts: -------------------------------------------------------------------------------- 1 | export { encodeAsFormParameter } from "./encodeAsFormParameter"; 2 | export * from "./FormDataWrapper"; 3 | -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export * from "./streaming-fetcher"; 3 | export * from "./fetcher"; 4 | export * from "./runtime"; 5 | export * from "./form-data-utils"; 6 | export * from "./websocket"; 7 | export * from "./pagination"; 8 | export * from "./utils"; 9 | export * as serialization from "./schemas"; 10 | -------------------------------------------------------------------------------- /src/core/pagination/Pageable.ts: -------------------------------------------------------------------------------- 1 | import { Page } from "./Page"; 2 | 3 | export declare namespace Pageable { 4 | interface Args { 5 | response: Response; 6 | hasNextPage: (response: Response) => boolean; 7 | getItems: (response: Response) => Item[]; 8 | loadPage: (response: Response) => Promise; 9 | } 10 | } 11 | 12 | export class Pageable extends Page { 13 | constructor(args: Pageable.Args) { 14 | super(args as any); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/core/pagination/index.ts: -------------------------------------------------------------------------------- 1 | export { Page } from "./Page"; 2 | export { Pageable } from "./Pageable"; 3 | -------------------------------------------------------------------------------- /src/core/runtime/index.ts: -------------------------------------------------------------------------------- 1 | export { RUNTIME } from "./runtime"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/bigint/index.ts: -------------------------------------------------------------------------------- 1 | export { bigint } from "./bigint"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/date/index.ts: -------------------------------------------------------------------------------- 1 | export { date } from "./date"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/enum/index.ts: -------------------------------------------------------------------------------- 1 | export { enum_ } from "./enum"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./bigint"; 2 | export * from "./date"; 3 | export * from "./enum"; 4 | export * from "./lazy"; 5 | export * from "./list"; 6 | export * from "./literals"; 7 | export * from "./object"; 8 | export * from "./object-like"; 9 | export * from "./primitives"; 10 | export * from "./record"; 11 | export * from "./schema-utils"; 12 | export * from "./set"; 13 | export * from "./undiscriminated-union"; 14 | export * from "./union"; 15 | -------------------------------------------------------------------------------- /src/core/schemas/builders/lazy/index.ts: -------------------------------------------------------------------------------- 1 | export { lazy } from "./lazy"; 2 | export type { SchemaGetter } from "./lazy"; 3 | export { lazyObject } from "./lazyObject"; 4 | -------------------------------------------------------------------------------- /src/core/schemas/builders/list/index.ts: -------------------------------------------------------------------------------- 1 | export { list } from "./list"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/literals/index.ts: -------------------------------------------------------------------------------- 1 | export { stringLiteral } from "./stringLiteral"; 2 | export { booleanLiteral } from "./booleanLiteral"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/object-like/index.ts: -------------------------------------------------------------------------------- 1 | export { getObjectLikeUtils, withParsedProperties } from "./getObjectLikeUtils"; 2 | export type { ObjectLikeSchema, ObjectLikeUtils } from "./types"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/object-like/types.ts: -------------------------------------------------------------------------------- 1 | import { BaseSchema, Schema } from "../../Schema"; 2 | 3 | export type ObjectLikeSchema = Schema & 4 | BaseSchema & 5 | ObjectLikeUtils; 6 | 7 | export interface ObjectLikeUtils { 8 | withParsedProperties: >(properties: { 9 | [K in keyof T]: T[K] | ((parsed: Parsed) => T[K]); 10 | }) => ObjectLikeSchema; 11 | } 12 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/any.ts: -------------------------------------------------------------------------------- 1 | import { SchemaType } from "../../Schema"; 2 | import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; 3 | 4 | export const any = createIdentitySchemaCreator(SchemaType.ANY, (value) => ({ ok: true, value })); 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/index.ts: -------------------------------------------------------------------------------- 1 | export { any } from "./any"; 2 | export { boolean } from "./boolean"; 3 | export { number } from "./number"; 4 | export { string } from "./string"; 5 | export { unknown } from "./unknown"; 6 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/unknown.ts: -------------------------------------------------------------------------------- 1 | import { SchemaType } from "../../Schema"; 2 | import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; 3 | 4 | export const unknown = createIdentitySchemaCreator(SchemaType.UNKNOWN, (value) => ({ ok: true, value })); 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/record/index.ts: -------------------------------------------------------------------------------- 1 | export { record } from "./record"; 2 | export type { BaseRecordSchema, RecordSchema } from "./types"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/record/types.ts: -------------------------------------------------------------------------------- 1 | import { BaseSchema } from "../../Schema"; 2 | import { SchemaUtils } from "../schema-utils"; 3 | 4 | export type RecordSchema< 5 | RawKey extends string | number, 6 | RawValue, 7 | ParsedKey extends string | number, 8 | ParsedValue, 9 | > = BaseRecordSchema & 10 | SchemaUtils, Record>; 11 | 12 | export type BaseRecordSchema< 13 | RawKey extends string | number, 14 | RawValue, 15 | ParsedKey extends string | number, 16 | ParsedValue, 17 | > = BaseSchema, Record>; 18 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/JsonError.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | import { stringifyValidationError } from "./stringifyValidationErrors"; 3 | 4 | export class JsonError extends Error { 5 | constructor(public readonly errors: ValidationError[]) { 6 | super(errors.map(stringifyValidationError).join("; ")); 7 | Object.setPrototypeOf(this, JsonError.prototype); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/ParseError.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | import { stringifyValidationError } from "./stringifyValidationErrors"; 3 | 4 | export class ParseError extends Error { 5 | constructor(public readonly errors: ValidationError[]) { 6 | super(errors.map(stringifyValidationError).join("; ")); 7 | Object.setPrototypeOf(this, ParseError.prototype); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getSchemaUtils, optional, transform } from "./getSchemaUtils"; 2 | export type { SchemaUtils } from "./getSchemaUtils"; 3 | export { JsonError } from "./JsonError"; 4 | export { ParseError } from "./ParseError"; 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | 3 | export function stringifyValidationError(error: ValidationError): string { 4 | if (error.path.length === 0) { 5 | return error.message; 6 | } 7 | return `${error.path.join(" -> ")}: ${error.message}`; 8 | } 9 | -------------------------------------------------------------------------------- /src/core/schemas/builders/set/index.ts: -------------------------------------------------------------------------------- 1 | export { set } from "./set"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/undiscriminated-union/index.ts: -------------------------------------------------------------------------------- 1 | export type { 2 | inferParsedUnidiscriminatedUnionSchema, 3 | inferRawUnidiscriminatedUnionSchema, 4 | UndiscriminatedUnionSchema, 5 | } from "./types"; 6 | export { undiscriminatedUnion } from "./undiscriminatedUnion"; 7 | -------------------------------------------------------------------------------- /src/core/schemas/builders/undiscriminated-union/types.ts: -------------------------------------------------------------------------------- 1 | import { Schema, inferParsed, inferRaw } from "../../Schema"; 2 | 3 | export type UndiscriminatedUnionSchema = Schema< 4 | inferRawUnidiscriminatedUnionSchema, 5 | inferParsedUnidiscriminatedUnionSchema 6 | >; 7 | 8 | export type inferRawUnidiscriminatedUnionSchema = inferRaw; 9 | 10 | export type inferParsedUnidiscriminatedUnionSchema = inferParsed; 11 | -------------------------------------------------------------------------------- /src/core/schemas/builders/union/discriminant.ts: -------------------------------------------------------------------------------- 1 | export function discriminant( 2 | parsedDiscriminant: ParsedDiscriminant, 3 | rawDiscriminant: RawDiscriminant, 4 | ): Discriminant { 5 | return { 6 | parsedDiscriminant, 7 | rawDiscriminant, 8 | }; 9 | } 10 | 11 | export interface Discriminant { 12 | parsedDiscriminant: ParsedDiscriminant; 13 | rawDiscriminant: RawDiscriminant; 14 | } 15 | -------------------------------------------------------------------------------- /src/core/schemas/builders/union/index.ts: -------------------------------------------------------------------------------- 1 | export { discriminant } from "./discriminant"; 2 | export type { Discriminant } from "./discriminant"; 3 | export type { 4 | inferParsedDiscriminant, 5 | inferParsedUnion, 6 | inferRawDiscriminant, 7 | inferRawUnion, 8 | UnionSubtypes, 9 | } from "./types"; 10 | export { union } from "./union"; 11 | -------------------------------------------------------------------------------- /src/core/schemas/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./builders"; 2 | export type { inferParsed, inferRaw, Schema, SchemaOptions } from "./Schema"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/utils/MaybePromise.ts: -------------------------------------------------------------------------------- 1 | export type MaybePromise = T | Promise; 2 | -------------------------------------------------------------------------------- /src/core/schemas/utils/addQuestionMarksToNullableProperties.ts: -------------------------------------------------------------------------------- 1 | export type addQuestionMarksToNullableProperties = { 2 | [K in OptionalKeys]?: T[K]; 3 | } & Pick>; 4 | 5 | export type OptionalKeys = { 6 | [K in keyof T]-?: undefined extends T[K] ? K : never; 7 | }[keyof T]; 8 | 9 | export type RequiredKeys = Exclude>; 10 | -------------------------------------------------------------------------------- /src/core/schemas/utils/entries.ts: -------------------------------------------------------------------------------- 1 | export function entries(object: T): [keyof T, T[keyof T]][] { 2 | return Object.entries(object) as [keyof T, T[keyof T]][]; 3 | } 4 | -------------------------------------------------------------------------------- /src/core/schemas/utils/filterObject.ts: -------------------------------------------------------------------------------- 1 | export function filterObject(obj: T, keysToInclude: K[]): Pick { 2 | const keysToIncludeSet = new Set(keysToInclude); 3 | return Object.entries(obj).reduce( 4 | (acc, [key, value]) => { 5 | if (keysToIncludeSet.has(key as K)) { 6 | acc[key as K] = value as T[K]; 7 | } 8 | return acc; 9 | // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter 10 | }, 11 | {} as Pick, 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /src/core/schemas/utils/isPlainObject.ts: -------------------------------------------------------------------------------- 1 | // borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js 2 | export function isPlainObject(value: unknown): value is Record { 3 | if (typeof value !== "object" || value === null) { 4 | return false; 5 | } 6 | 7 | if (Object.getPrototypeOf(value) === null) { 8 | return true; 9 | } 10 | 11 | let proto = value; 12 | while (Object.getPrototypeOf(proto) !== null) { 13 | proto = Object.getPrototypeOf(proto); 14 | } 15 | 16 | return Object.getPrototypeOf(value) === proto; 17 | } 18 | -------------------------------------------------------------------------------- /src/core/schemas/utils/keys.ts: -------------------------------------------------------------------------------- 1 | export function keys(object: T): (keyof T)[] { 2 | return Object.keys(object) as (keyof T)[]; 3 | } 4 | -------------------------------------------------------------------------------- /src/core/schemas/utils/partition.ts: -------------------------------------------------------------------------------- 1 | export function partition(items: readonly T[], predicate: (item: T) => boolean): [T[], T[]] { 2 | const trueItems: T[] = [], 3 | falseItems: T[] = []; 4 | for (const item of items) { 5 | if (predicate(item)) { 6 | trueItems.push(item); 7 | } else { 8 | falseItems.push(item); 9 | } 10 | } 11 | return [trueItems, falseItems]; 12 | } 13 | -------------------------------------------------------------------------------- /src/core/streaming-fetcher/index.ts: -------------------------------------------------------------------------------- 1 | export { Stream } from "./Stream"; 2 | -------------------------------------------------------------------------------- /src/core/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { setObjectProperty } from "./setObjectProperty"; 2 | -------------------------------------------------------------------------------- /src/core/websocket/index.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export * from "./ws"; 3 | -------------------------------------------------------------------------------- /src/environments.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export const HumeEnvironment = { 6 | Production: "https://api.hume.ai", 7 | } as const; 8 | 9 | export type HumeEnvironment = typeof HumeEnvironment.Production; 10 | -------------------------------------------------------------------------------- /src/errors/HumeTimeoutError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export class HumeTimeoutError extends Error { 6 | constructor(message: string) { 7 | super(message); 8 | Object.setPrototypeOf(this, HumeTimeoutError.prototype); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/errors/index.ts: -------------------------------------------------------------------------------- 1 | export { HumeError } from "./HumeError"; 2 | export { HumeTimeoutError } from "./HumeTimeoutError"; 3 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */ 2 | export * as Hume from "./api"; 3 | export * from "./wrapper"; 4 | export { HumeEnvironment } from "./environments"; 5 | export { HumeError, HumeTimeoutError } from "./errors"; 6 | -------------------------------------------------------------------------------- /src/serialization/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/chat/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/chat/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./PublishEvent"; 2 | export * from "./SubscribeEvent"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/configs/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../../index"; 6 | import * as Hume from "../../../../../../../api/index"; 7 | import * as core from "../../../../../../../core"; 8 | 9 | export const PostedConfigName: core.serialization.Schema< 10 | serializers.empathicVoice.PostedConfigName.Raw, 11 | Hume.empathicVoice.PostedConfigName 12 | > = core.serialization.object({ 13 | name: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace PostedConfigName { 17 | export interface Raw { 18 | name: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/configs/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PostedConfig } from "./PostedConfig"; 2 | export { PostedConfigVersion } from "./PostedConfigVersion"; 3 | export { PostedConfigName } from "./PostedConfigName"; 4 | export { PostedConfigVersionDescription } from "./PostedConfigVersionDescription"; 5 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/configs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/customVoices/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/customVoices/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PostedCustomVoiceName } from "./PostedCustomVoiceName"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/customVoices/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as chat from "./chat"; 2 | export * from "./chat/types"; 3 | export * as tools from "./tools"; 4 | export * as prompts from "./prompts"; 5 | export * from "./tools/client/requests"; 6 | export * from "./prompts/client/requests"; 7 | export * as customVoices from "./customVoices"; 8 | export * from "./customVoices/client/requests"; 9 | export * as configs from "./configs"; 10 | export * from "./configs/client/requests"; 11 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/createPrompt.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { ReturnPrompt } from "../../../types/ReturnPrompt"; 9 | 10 | export const Response: core.serialization.Schema< 11 | serializers.empathicVoice.prompts.createPrompt.Response.Raw, 12 | Hume.empathicVoice.ReturnPrompt | undefined 13 | > = ReturnPrompt.optional(); 14 | 15 | export declare namespace Response { 16 | export type Raw = ReturnPrompt.Raw | null | undefined; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/createPromptVersion.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { ReturnPrompt } from "../../../types/ReturnPrompt"; 9 | 10 | export const Response: core.serialization.Schema< 11 | serializers.empathicVoice.prompts.createPromptVersion.Response.Raw, 12 | Hume.empathicVoice.ReturnPrompt | undefined 13 | > = ReturnPrompt.optional(); 14 | 15 | export declare namespace Response { 16 | export type Raw = ReturnPrompt.Raw | null | undefined; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/getPromptVersion.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { ReturnPrompt } from "../../../types/ReturnPrompt"; 9 | 10 | export const Response: core.serialization.Schema< 11 | serializers.empathicVoice.prompts.getPromptVersion.Response.Raw, 12 | Hume.empathicVoice.ReturnPrompt | undefined 13 | > = ReturnPrompt.optional(); 14 | 15 | export declare namespace Response { 16 | export type Raw = ReturnPrompt.Raw | null | undefined; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/index.ts: -------------------------------------------------------------------------------- 1 | export * as createPrompt from "./createPrompt"; 2 | export * as createPromptVersion from "./createPromptVersion"; 3 | export * as getPromptVersion from "./getPromptVersion"; 4 | export * as updatePromptDescription from "./updatePromptDescription"; 5 | export * from "./requests"; 6 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../../index"; 6 | import * as Hume from "../../../../../../../api/index"; 7 | import * as core from "../../../../../../../core"; 8 | 9 | export const PostedPromptName: core.serialization.Schema< 10 | serializers.empathicVoice.PostedPromptName.Raw, 11 | Hume.empathicVoice.PostedPromptName 12 | > = core.serialization.object({ 13 | name: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace PostedPromptName { 17 | export interface Raw { 18 | name: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PostedPrompt } from "./PostedPrompt"; 2 | export { PostedPromptVersion } from "./PostedPromptVersion"; 3 | export { PostedPromptName } from "./PostedPromptName"; 4 | export { PostedPromptVersionDescription } from "./PostedPromptVersionDescription"; 5 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/client/updatePromptDescription.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { ReturnPrompt } from "../../../types/ReturnPrompt"; 9 | 10 | export const Response: core.serialization.Schema< 11 | serializers.empathicVoice.prompts.updatePromptDescription.Response.Raw, 12 | Hume.empathicVoice.ReturnPrompt | undefined 13 | > = ReturnPrompt.optional(); 14 | 15 | export declare namespace Response { 16 | export type Raw = ReturnPrompt.Raw | null | undefined; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/prompts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/tools/client/index.ts: -------------------------------------------------------------------------------- 1 | export * as createTool from "./createTool"; 2 | export * as createToolVersion from "./createToolVersion"; 3 | export * as getToolVersion from "./getToolVersion"; 4 | export * as updateToolDescription from "./updateToolDescription"; 5 | export * from "./requests"; 6 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/tools/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PostedUserDefinedTool } from "./PostedUserDefinedTool"; 2 | export { PostedUserDefinedToolVersion } from "./PostedUserDefinedToolVersion"; 3 | export { PostedUserDefinedToolName } from "./PostedUserDefinedToolName"; 4 | export { PostedUserDefinedToolVersionDescription } from "./PostedUserDefinedToolVersionDescription"; 5 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/resources/tools/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/BuiltInTool.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const BuiltInTool: core.serialization.Schema< 10 | serializers.empathicVoice.BuiltInTool.Raw, 11 | Hume.empathicVoice.BuiltInTool 12 | > = core.serialization.enum_(["web_search", "hang_up"]); 13 | 14 | export declare namespace BuiltInTool { 15 | export type Raw = "web_search" | "hang_up"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ContextType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ContextType: core.serialization.Schema< 10 | serializers.empathicVoice.ContextType.Raw, 11 | Hume.empathicVoice.ContextType 12 | > = core.serialization.enum_(["editable", "persistent", "temporary"]); 13 | 14 | export declare namespace ContextType { 15 | export type Raw = "editable" | "persistent" | "temporary"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/Encoding.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const Encoding: core.serialization.Schema = 10 | core.serialization.stringLiteral("linear16"); 11 | 12 | export declare namespace Encoding { 13 | export type Raw = "linear16"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ErrorLevel.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ErrorLevel: core.serialization.Schema< 10 | serializers.empathicVoice.ErrorLevel.Raw, 11 | Hume.empathicVoice.ErrorLevel 12 | > = core.serialization.stringLiteral("warn"); 13 | 14 | export declare namespace ErrorLevel { 15 | export type Raw = "warn"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/Inference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | import { ProsodyInference } from "./ProsodyInference"; 9 | 10 | export const Inference: core.serialization.ObjectSchema< 11 | serializers.empathicVoice.Inference.Raw, 12 | Hume.empathicVoice.Inference 13 | > = core.serialization.object({ 14 | prosody: ProsodyInference.optional(), 15 | }); 16 | 17 | export declare namespace Inference { 18 | export interface Raw { 19 | prosody?: ProsodyInference.Raw | null; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/PostedBuiltinToolName.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const PostedBuiltinToolName: core.serialization.Schema< 10 | serializers.empathicVoice.PostedBuiltinToolName.Raw, 11 | Hume.empathicVoice.PostedBuiltinToolName 12 | > = core.serialization.enum_(["web_search", "hang_up"]); 13 | 14 | export declare namespace PostedBuiltinToolName { 15 | export type Raw = "web_search" | "hang_up"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/PostedPromptSpec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const PostedPromptSpec: core.serialization.ObjectSchema< 10 | serializers.empathicVoice.PostedPromptSpec.Raw, 11 | Hume.empathicVoice.PostedPromptSpec 12 | > = core.serialization.object({ 13 | version: core.serialization.unknown().optional(), 14 | }); 15 | 16 | export declare namespace PostedPromptSpec { 17 | export interface Raw { 18 | version?: unknown | null; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/PostedVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const PostedVoiceProvider: core.serialization.Schema< 10 | serializers.empathicVoice.PostedVoiceProvider.Raw, 11 | Hume.empathicVoice.PostedVoiceProvider 12 | > = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]); 13 | 14 | export declare namespace PostedVoiceProvider { 15 | export type Raw = "HUME_AI" | "CUSTOM_VOICE"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/PostedWebhookEventType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const PostedWebhookEventType: core.serialization.Schema< 10 | serializers.empathicVoice.PostedWebhookEventType.Raw, 11 | Hume.empathicVoice.PostedWebhookEventType 12 | > = core.serialization.enum_(["chat_started", "chat_ended"]); 13 | 14 | export declare namespace PostedWebhookEventType { 15 | export type Raw = "chat_started" | "chat_ended"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ProsodyInference.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | import { EmotionScores } from "./EmotionScores"; 9 | 10 | export const ProsodyInference: core.serialization.ObjectSchema< 11 | serializers.empathicVoice.ProsodyInference.Raw, 12 | Hume.empathicVoice.ProsodyInference 13 | > = core.serialization.object({ 14 | scores: EmotionScores, 15 | }); 16 | 17 | export declare namespace ProsodyInference { 18 | export interface Raw { 19 | scores: EmotionScores.Raw; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnBuiltinToolToolType: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnBuiltinToolToolType.Raw, 11 | Hume.empathicVoice.ReturnBuiltinToolToolType 12 | > = core.serialization.enum_(["BUILTIN", "FUNCTION"]); 13 | 14 | export declare namespace ReturnBuiltinToolToolType { 15 | export type Raw = "BUILTIN" | "FUNCTION"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnChatEventRole.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnChatEventRole: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnChatEventRole.Raw, 11 | Hume.empathicVoice.ReturnChatEventRole 12 | > = core.serialization.enum_(["USER", "AGENT", "SYSTEM", "TOOL"]); 13 | 14 | export declare namespace ReturnChatEventRole { 15 | export type Raw = "USER" | "AGENT" | "SYSTEM" | "TOOL"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnChatPagedEventsPaginationDirection: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnChatPagedEventsPaginationDirection.Raw, 11 | Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection 12 | > = core.serialization.enum_(["ASC", "DESC"]); 13 | 14 | export declare namespace ReturnChatPagedEventsPaginationDirection { 15 | export type Raw = "ASC" | "DESC"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnPagedChatGroupsPaginationDirection: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnPagedChatGroupsPaginationDirection.Raw, 11 | Hume.empathicVoice.ReturnPagedChatGroupsPaginationDirection 12 | > = core.serialization.enum_(["ASC", "DESC"]); 13 | 14 | export declare namespace ReturnPagedChatGroupsPaginationDirection { 15 | export type Raw = "ASC" | "DESC"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnPagedChatsPaginationDirection: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnPagedChatsPaginationDirection.Raw, 11 | Hume.empathicVoice.ReturnPagedChatsPaginationDirection 12 | > = core.serialization.enum_(["ASC", "DESC"]); 13 | 14 | export declare namespace ReturnPagedChatsPaginationDirection { 15 | export type Raw = "ASC" | "DESC"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnPromptVersionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnPromptVersionType: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnPromptVersionType.Raw, 11 | Hume.empathicVoice.ReturnPromptVersionType 12 | > = core.serialization.enum_(["FIXED", "LATEST"]); 13 | 14 | export declare namespace ReturnPromptVersionType { 15 | export type Raw = "FIXED" | "LATEST"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnUserDefinedToolToolType: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnUserDefinedToolToolType.Raw, 11 | Hume.empathicVoice.ReturnUserDefinedToolToolType 12 | > = core.serialization.enum_(["BUILTIN", "FUNCTION"]); 13 | 14 | export declare namespace ReturnUserDefinedToolToolType { 15 | export type Raw = "BUILTIN" | "FUNCTION"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnUserDefinedToolVersionType: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnUserDefinedToolVersionType.Raw, 11 | Hume.empathicVoice.ReturnUserDefinedToolVersionType 12 | > = core.serialization.enum_(["FIXED", "LATEST"]); 13 | 14 | export declare namespace ReturnUserDefinedToolVersionType { 15 | export type Raw = "FIXED" | "LATEST"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnVoiceProvider: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnVoiceProvider.Raw, 11 | Hume.empathicVoice.ReturnVoiceProvider 12 | > = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]); 13 | 14 | export declare namespace ReturnVoiceProvider { 15 | export type Raw = "HUME_AI" | "CUSTOM_VOICE"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ReturnWebhookEventType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ReturnWebhookEventType: core.serialization.Schema< 10 | serializers.empathicVoice.ReturnWebhookEventType.Raw, 11 | Hume.empathicVoice.ReturnWebhookEventType 12 | > = core.serialization.enum_(["chat_started", "chat_ended"]); 13 | 14 | export declare namespace ReturnWebhookEventType { 15 | export type Raw = "chat_started" | "chat_ended"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/Role.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const Role: core.serialization.Schema = 10 | core.serialization.enum_(["assistant", "system", "user", "all", "tool"]); 11 | 12 | export declare namespace Role { 13 | export type Raw = "assistant" | "system" | "user" | "all" | "tool"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/TextInput.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const TextInput: core.serialization.ObjectSchema< 10 | serializers.empathicVoice.TextInput.Raw, 11 | Hume.empathicVoice.TextInput 12 | > = core.serialization.object({ 13 | type: core.serialization.stringLiteral("text_input").optional(), 14 | }); 15 | 16 | export declare namespace TextInput { 17 | export interface Raw { 18 | type?: "text_input" | null; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ToolType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ToolType: core.serialization.Schema = 10 | core.serialization.enum_(["builtin", "function"]); 11 | 12 | export declare namespace ToolType { 13 | export type Raw = "builtin" | "function"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/TtsInput.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const TtsInput: core.serialization.ObjectSchema< 10 | serializers.empathicVoice.TtsInput.Raw, 11 | Hume.empathicVoice.TtsInput 12 | > = core.serialization.object({ 13 | type: core.serialization.stringLiteral("tts").optional(), 14 | }); 15 | 16 | export declare namespace TtsInput { 17 | export interface Raw { 18 | type?: "tts" | null; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/ValidationErrorLocItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ValidationErrorLocItem: core.serialization.Schema< 10 | serializers.empathicVoice.ValidationErrorLocItem.Raw, 11 | Hume.empathicVoice.ValidationErrorLocItem 12 | > = core.serialization.undiscriminatedUnion([core.serialization.string(), core.serialization.number()]); 13 | 14 | export declare namespace ValidationErrorLocItem { 15 | export type Raw = string | number; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/empathicVoice/types/WebhookEventChatStartType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const WebhookEventChatStartType: core.serialization.Schema< 10 | serializers.empathicVoice.WebhookEventChatStartType.Raw, 11 | Hume.empathicVoice.WebhookEventChatStartType 12 | > = core.serialization.enum_(["new_chat_group", "resumed_chat_group"]); 13 | 14 | export declare namespace WebhookEventChatStartType { 15 | export type Raw = "new_chat_group" | "resumed_chat_group"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/client/index.ts: -------------------------------------------------------------------------------- 1 | export * as listJobs from "./listJobs"; 2 | export * as getJobPredictions from "./getJobPredictions"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/client/listJobs.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { UnionJob } from "../types/UnionJob"; 9 | 10 | export const Response: core.serialization.Schema< 11 | serializers.expressionMeasurement.batch.listJobs.Response.Raw, 12 | Hume.expressionMeasurement.batch.UnionJob[] 13 | > = core.serialization.list(UnionJob); 14 | 15 | export declare namespace Response { 16 | export type Raw = UnionJob.Raw[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Alternative.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Alternative: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Alternative.Raw, 11 | Hume.expressionMeasurement.batch.Alternative 12 | > = core.serialization.stringLiteral("language_only"); 13 | 14 | export declare namespace Alternative { 15 | export type Raw = "language_only"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Classification.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Classification: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Classification.Raw, 11 | Hume.expressionMeasurement.batch.Classification 12 | > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); 13 | 14 | export declare namespace Classification { 15 | export type Raw = Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const CustomModelId: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.CustomModelId.Raw, 11 | Hume.expressionMeasurement.batch.CustomModelId 12 | > = core.serialization.object({ 13 | id: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace CustomModelId { 17 | export interface Raw { 18 | id: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/DatasetId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const DatasetId: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.DatasetId.Raw, 11 | Hume.expressionMeasurement.batch.DatasetId 12 | > = core.serialization.object({ 13 | id: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace DatasetId { 17 | export interface Raw { 18 | id: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Direction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Direction: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Direction.Raw, 11 | Hume.expressionMeasurement.batch.Direction 12 | > = core.serialization.enum_(["asc", "desc"]); 13 | 14 | export declare namespace Direction { 15 | export type Raw = "asc" | "desc"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/FailedState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { Failed } from "./Failed"; 9 | 10 | export const FailedState: core.serialization.ObjectSchema< 11 | serializers.expressionMeasurement.batch.FailedState.Raw, 12 | Hume.expressionMeasurement.batch.FailedState 13 | > = core.serialization.object({}).extend(Failed); 14 | 15 | export declare namespace FailedState { 16 | export interface Raw extends Failed.Raw {} 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Granularity.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Granularity: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Granularity.Raw, 11 | Hume.expressionMeasurement.batch.Granularity 12 | > = core.serialization.enum_(["word", "sentence", "utterance", "conversational_turn"]); 13 | 14 | export declare namespace Granularity { 15 | export type Raw = "word" | "sentence" | "utterance" | "conversational_turn"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/JobId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const JobId: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.JobId.Raw, 11 | Hume.expressionMeasurement.batch.JobId 12 | > = core.serialization.object({ 13 | jobId: core.serialization.property("job_id", core.serialization.string()), 14 | }); 15 | 16 | export declare namespace JobId { 17 | export interface Raw { 18 | job_id: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Null.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Null: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Null.Raw, 11 | Hume.expressionMeasurement.batch.Null 12 | > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); 13 | 14 | export declare namespace Null { 15 | export type Raw = Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/QueuedState.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { Queued } from "./Queued"; 9 | 10 | export const QueuedState: core.serialization.ObjectSchema< 11 | serializers.expressionMeasurement.batch.QueuedState.Raw, 12 | Hume.expressionMeasurement.batch.QueuedState 13 | > = core.serialization.object({}).extend(Queued); 14 | 15 | export declare namespace QueuedState { 16 | export interface Raw extends Queued.Raw {} 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Regression.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Regression: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Regression.Raw, 11 | Hume.expressionMeasurement.batch.Regression 12 | > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); 13 | 14 | export declare namespace Regression { 15 | export type Raw = Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/SortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const SortBy: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.SortBy.Raw, 11 | Hume.expressionMeasurement.batch.SortBy 12 | > = core.serialization.enum_(["created", "started", "ended"]); 13 | 14 | export declare namespace SortBy { 15 | export type Raw = "created" | "started" | "ended"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/SourceFile.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { File_ } from "./File_"; 9 | 10 | export const SourceFile: core.serialization.ObjectSchema< 11 | serializers.expressionMeasurement.batch.SourceFile.Raw, 12 | Hume.expressionMeasurement.batch.SourceFile 13 | > = core.serialization.object({}).extend(File_); 14 | 15 | export declare namespace SourceFile { 16 | export interface Raw extends File_.Raw {} 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/SourceTextSource.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const SourceTextSource: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.SourceTextSource.Raw, 11 | Hume.expressionMeasurement.batch.SourceTextSource 12 | > = core.serialization.object({}); 13 | 14 | export declare namespace SourceTextSource { 15 | export interface Raw {} 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/SourceUrl.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { Url } from "./Url"; 9 | 10 | export const SourceUrl: core.serialization.ObjectSchema< 11 | serializers.expressionMeasurement.batch.SourceUrl.Raw, 12 | Hume.expressionMeasurement.batch.SourceUrl 13 | > = core.serialization.object({}).extend(Url); 14 | 15 | export declare namespace SourceUrl { 16 | export interface Raw extends Url.Raw {} 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Status.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Status: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Status.Raw, 11 | Hume.expressionMeasurement.batch.Status 12 | > = core.serialization.enum_(["QUEUED", "IN_PROGRESS", "COMPLETED", "FAILED"]); 13 | 14 | export declare namespace Status { 15 | export type Raw = "QUEUED" | "IN_PROGRESS" | "COMPLETED" | "FAILED"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/TaskClassification.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const TaskClassification: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.TaskClassification.Raw, 11 | Hume.expressionMeasurement.batch.TaskClassification 12 | > = core.serialization.object({}); 13 | 14 | export declare namespace TaskClassification { 15 | export interface Raw {} 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/TaskRegression.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const TaskRegression: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.TaskRegression.Raw, 11 | Hume.expressionMeasurement.batch.TaskRegression 12 | > = core.serialization.object({}); 13 | 14 | export declare namespace TaskRegression { 15 | export interface Raw {} 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/TextSource.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const TextSource: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.TextSource.Raw, 11 | Hume.expressionMeasurement.batch.TextSource 12 | > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); 13 | 14 | export declare namespace TextSource { 15 | export type Raw = Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Type.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Type: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Type.Raw, 11 | Hume.expressionMeasurement.batch.Type 12 | > = core.serialization.enum_(["EMBEDDING_GENERATION", "INFERENCE", "TL_INFERENCE", "TRAINING"]); 13 | 14 | export declare namespace Type { 15 | export type Raw = "EMBEDDING_GENERATION" | "INFERENCE" | "TL_INFERENCE" | "TRAINING"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Unconfigurable.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Unconfigurable: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.Unconfigurable.Raw, 11 | Hume.expressionMeasurement.batch.Unconfigurable 12 | > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); 13 | 14 | export declare namespace Unconfigurable { 15 | export type Raw = Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/UnionJob.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { InferenceJob } from "./InferenceJob"; 9 | 10 | export const UnionJob: core.serialization.ObjectSchema< 11 | serializers.expressionMeasurement.batch.UnionJob.Raw, 12 | Hume.expressionMeasurement.batch.UnionJob 13 | > = InferenceJob; 14 | 15 | export declare namespace UnionJob { 16 | export type Raw = InferenceJob.Raw; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/Url.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const Url: core.serialization.ObjectSchema< 10 | serializers.expressionMeasurement.batch.Url.Raw, 11 | Hume.expressionMeasurement.batch.Url 12 | > = core.serialization.object({ 13 | url: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace Url { 17 | export interface Raw { 18 | url: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/batch/types/When.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | 9 | export const When: core.serialization.Schema< 10 | serializers.expressionMeasurement.batch.When.Raw, 11 | Hume.expressionMeasurement.batch.When 12 | > = core.serialization.enum_(["created_before", "created_after"]); 13 | 14 | export declare namespace When { 15 | export type Raw = "created_before" | "created_after"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as batch from "./batch"; 2 | export * as stream from "./stream"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as stream from "./stream"; 2 | export * from "./stream/types"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/resources/stream/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/types/Sentiment.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { SentimentItem } from "./SentimentItem"; 9 | 10 | export const Sentiment: core.serialization.Schema< 11 | serializers.expressionMeasurement.stream.Sentiment.Raw, 12 | Hume.expressionMeasurement.stream.Sentiment 13 | > = core.serialization.list(SentimentItem); 14 | 15 | export declare namespace Sentiment { 16 | export type Raw = SentimentItem.Raw[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/types/Toxicity.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../../../index"; 6 | import * as Hume from "../../../../../../api/index"; 7 | import * as core from "../../../../../../core"; 8 | import { ToxicityItem } from "./ToxicityItem"; 9 | 10 | export const Toxicity: core.serialization.Schema< 11 | serializers.expressionMeasurement.stream.Toxicity.Raw, 12 | Hume.expressionMeasurement.stream.Toxicity 13 | > = core.serialization.list(ToxicityItem); 14 | 15 | export declare namespace Toxicity { 16 | export type Raw = ToxicityItem.Raw[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/serialization/resources/expressionMeasurement/resources/stream/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EmotionEmbeddingItem"; 2 | export * from "./EmotionEmbedding"; 3 | export * from "./StreamBoundingBox"; 4 | export * from "./TimeRange"; 5 | export * from "./TextPosition"; 6 | export * from "./SentimentItem"; 7 | export * from "./Sentiment"; 8 | export * from "./ToxicityItem"; 9 | export * from "./Toxicity"; 10 | -------------------------------------------------------------------------------- /src/serialization/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as tts from "./tts"; 2 | export * as empathicVoice from "./empathicVoice"; 3 | export * as expressionMeasurement from "./expressionMeasurement"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./resources"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as voices from "./voices"; 2 | export * from "./voices/client/requests"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/resources/voices/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/resources/voices/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PostedVoice } from "./PostedVoice"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/resources/voices/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/AudioFormatType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const AudioFormatType: core.serialization.Schema = 10 | core.serialization.enum_(["mp3", "pcm", "wav"]); 11 | 12 | export declare namespace AudioFormatType { 13 | export type Raw = "mp3" | "pcm" | "wav"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/FormatMp3.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const FormatMp3: core.serialization.ObjectSchema = 10 | core.serialization.object({}); 11 | 12 | export declare namespace FormatMp3 { 13 | export interface Raw {} 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/FormatPcm.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const FormatPcm: core.serialization.ObjectSchema = 10 | core.serialization.object({}); 11 | 12 | export declare namespace FormatPcm { 13 | export interface Raw {} 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/FormatWav.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const FormatWav: core.serialization.ObjectSchema = 10 | core.serialization.object({}); 11 | 12 | export declare namespace FormatWav { 13 | export interface Raw {} 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/ValidationErrorLocItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const ValidationErrorLocItem: core.serialization.Schema< 10 | serializers.tts.ValidationErrorLocItem.Raw, 11 | Hume.tts.ValidationErrorLocItem 12 | > = core.serialization.undiscriminatedUnion([core.serialization.string(), core.serialization.number()]); 13 | 14 | export declare namespace ValidationErrorLocItem { 15 | export type Raw = string | number; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/tts/types/VoiceProvider.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Hume from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const VoiceProvider: core.serialization.Schema = 10 | core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]); 11 | 12 | export declare namespace VoiceProvider { 13 | export type Raw = "HUME_AI" | "CUSTOM_VOICE"; 14 | } 15 | -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const SDK_VERSION = "0.10.3"; 2 | -------------------------------------------------------------------------------- /src/wrapper/base64Decode.ts: -------------------------------------------------------------------------------- 1 | export function base64Decode(str: string): string | Buffer { 2 | if (typeof Buffer === "function") { 3 | // Node.js environment 4 | return Buffer.from(str, "base64"); 5 | } else if (typeof atob === "function") { 6 | // Browser environment 7 | return atob(str); 8 | } else { 9 | throw new Error("Base64 encoding not supported in this environment."); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/wrapper/base64Encode.ts: -------------------------------------------------------------------------------- 1 | export function base64Encode(str: string): string { 2 | if (typeof Buffer === "function") { 3 | // Node.js environment 4 | return Buffer.from(str).toString("base64"); 5 | } else if (typeof btoa === "function") { 6 | // Browser environment 7 | return btoa(str); 8 | } else { 9 | throw new Error("Base64 encoding not supported in this environment."); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/wrapper/checkForAudioTracks.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @name checkForAudioTracks 3 | * @description 4 | * Check if a MediaStream has audio tracks. 5 | * @param stream 6 | * The MediaStream to check 7 | */ 8 | export const checkForAudioTracks = (stream: MediaStream) => { 9 | const tracks = stream.getAudioTracks(); 10 | 11 | if (tracks.length === 0) { 12 | throw new Error("No audio tracks"); 13 | } 14 | if (tracks.length > 1) { 15 | throw new Error("Multiple audio tracks"); 16 | } 17 | const track = tracks[0]; 18 | if (!track) { 19 | throw new Error("No audio track"); 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /src/wrapper/expressionMeasurement/ExpressionMeasurementClient.ts: -------------------------------------------------------------------------------- 1 | import { ExpressionMeasurement as FernClient } from "../../api/resources/expressionMeasurement/client/Client"; 2 | import { BatchClient } from "./batch/BatchClient"; 3 | import { StreamClient } from "./streaming/StreamingClient"; 4 | 5 | export class ExpressionMeasurement extends FernClient { 6 | protected _batch: BatchClient | undefined; 7 | 8 | public get batch(): BatchClient { 9 | return (this._batch ??= new BatchClient(this._options)); 10 | } 11 | 12 | protected _stream: StreamClient | undefined; 13 | 14 | public get stream(): StreamClient { 15 | return (this._stream ??= new StreamClient(this._options)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/wrapper/expressionMeasurement/batch/BatchClient.ts: -------------------------------------------------------------------------------- 1 | import { Batch as FernClient } from "../../../api/resources/expressionMeasurement/resources/batch/client/Client"; 2 | import * as Hume from "../../../api"; 3 | import { Job } from "./Job"; 4 | 5 | export class BatchClient extends FernClient { 6 | public async startInferenceJob( 7 | request: Hume.expressionMeasurement.batch.InferenceBaseRequest = {}, 8 | requestOptions?: FernClient.RequestOptions, 9 | ): Promise { 10 | const { jobId } = await super.startInferenceJob(request, requestOptions); 11 | return new Job(jobId, this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/wrapper/index.ts: -------------------------------------------------------------------------------- 1 | export { base64Decode } from "./base64Decode"; 2 | export { base64Encode } from "./base64Encode"; 3 | export { convertBase64ToBlob } from "./convertBase64ToBlob"; 4 | export { convertBlobToBase64 } from "./convertBlobToBase64"; 5 | export { ensureSingleValidAudioTrack } from "./ensureSingleValidAudioTrack"; 6 | export { checkForAudioTracks } from "./checkForAudioTracks"; 7 | export { fetchAccessToken } from "./fetchAccessToken"; 8 | export { getAudioStream } from "./getAudioStream"; 9 | export { MimeType, getBrowserSupportedMimeType } from "./getBrowserSupportedMimeType"; 10 | export { HumeClient } from "./HumeClient"; 11 | export { EVIWebAudioPlayer, EVIWebAudioPlayerFFTOptions, EVIWebAudioPlayerOptions } from "./EVIWebAudioPlayer"; 12 | -------------------------------------------------------------------------------- /tests/custom.test.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a custom test file, if you wish to add more tests 3 | * to your SDK. 4 | * Be sure to mark this file in `.fernignore`. 5 | * 6 | * If you include example requests/responses in your fern definition, 7 | * you will have tests automatically generated for you. 8 | */ 9 | describe("test", () => { 10 | it("default", () => { 11 | expect(true).toBe(true); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /tests/unit/fetcher/test-file.txt: -------------------------------------------------------------------------------- 1 | This is a test file! 2 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/lazyObject.test.ts: -------------------------------------------------------------------------------- 1 | import { lazyObject, number, object, string } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("lazy", () => { 5 | itSchemaIdentity( 6 | lazyObject(() => object({ foo: string() })), 7 | { foo: "hello" }, 8 | ); 9 | 10 | itSchemaIdentity( 11 | lazyObject(() => object({ foo: string() })).extend(object({ bar: number() })), 12 | { 13 | foo: "hello", 14 | bar: 42, 15 | }, 16 | { title: "returned schema has object utils" }, 17 | ); 18 | }); 19 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/recursive/a.ts: -------------------------------------------------------------------------------- 1 | import { object } from "../../../../../src/core/schemas/builders/object"; 2 | import { schemaB } from "./b"; 3 | 4 | // @ts-expect-error 5 | export const schemaA = object({ 6 | b: schemaB, 7 | }); 8 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/recursive/b.ts: -------------------------------------------------------------------------------- 1 | import { object } from "../../../../../src/core/schemas/builders/object"; 2 | import { optional } from "../../../../../src/core/schemas/builders/schema-utils"; 3 | import { schemaA } from "./a"; 4 | 5 | // @ts-expect-error 6 | export const schemaB = object({ 7 | a: optional(schemaA), 8 | }); 9 | -------------------------------------------------------------------------------- /tests/unit/zurg/literals/stringLiteral.test.ts: -------------------------------------------------------------------------------- 1 | import { stringLiteral } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("stringLiteral", () => { 6 | itSchemaIdentity(stringLiteral("A"), "A"); 7 | 8 | itValidate("incorrect string", stringLiteral("A"), "B", [ 9 | { 10 | path: [], 11 | message: 'Expected "A". Received "B".', 12 | }, 13 | ]); 14 | 15 | itValidate("non-string", stringLiteral("A"), 42, [ 16 | { 17 | path: [], 18 | message: 'Expected "A". Received 42.', 19 | }, 20 | ]); 21 | }); 22 | -------------------------------------------------------------------------------- /tests/unit/zurg/object/objectWithoutOptionalProperties.test.ts: -------------------------------------------------------------------------------- 1 | import { objectWithoutOptionalProperties, string, stringLiteral } from "../../../../src/core/schemas/builders"; 2 | import { itSchema } from "../utils/itSchema"; 3 | 4 | describe("objectWithoutOptionalProperties", () => { 5 | itSchema( 6 | "all properties are required", 7 | objectWithoutOptionalProperties({ 8 | foo: string(), 9 | bar: stringLiteral("bar").optional(), 10 | }), 11 | { 12 | raw: { 13 | foo: "hello", 14 | }, 15 | // @ts-expect-error 16 | parsed: { 17 | foo: "hello", 18 | }, 19 | }, 20 | ); 21 | }); 22 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/any.test.ts: -------------------------------------------------------------------------------- 1 | import { any } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("any", () => { 5 | itSchemaIdentity(any(), true); 6 | }); 7 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/boolean.test.ts: -------------------------------------------------------------------------------- 1 | import { boolean } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("boolean", () => { 6 | itSchemaIdentity(boolean(), true); 7 | 8 | itValidate("non-boolean", boolean(), {}, [ 9 | { 10 | path: [], 11 | message: "Expected boolean. Received object.", 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/number.test.ts: -------------------------------------------------------------------------------- 1 | import { number } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("number", () => { 6 | itSchemaIdentity(number(), 42); 7 | 8 | itValidate("non-number", number(), "hello", [ 9 | { 10 | path: [], 11 | message: 'Expected number. Received "hello".', 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/string.test.ts: -------------------------------------------------------------------------------- 1 | import { string } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("string", () => { 6 | itSchemaIdentity(string(), "hello"); 7 | 8 | itValidate("non-string", string(), 42, [ 9 | { 10 | path: [], 11 | message: "Expected string. Received 42.", 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/unknown.test.ts: -------------------------------------------------------------------------------- 1 | import { unknown } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("unknown", () => { 5 | itSchemaIdentity(unknown(), true); 6 | }); 7 | -------------------------------------------------------------------------------- /tsconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "include": ["src/**/*.ts", "src/**/*.js", "tests", "eslint.config.mjs", "jest.config.mjs"], 4 | "exclude": ["dist"] 5 | } 6 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "extendedDiagnostics": true, 4 | "strict": true, 5 | "target": "ES6", 6 | "moduleResolution": "node", 7 | "esModuleInterop": true, 8 | "skipLibCheck": true, 9 | "declaration": true, 10 | "outDir": "dist", 11 | "rootDir": "src", 12 | "baseUrl": "src", 13 | "module": "CommonJS" 14 | }, 15 | "include": ["src"], 16 | "exclude": [] 17 | } 18 | --------------------------------------------------------------------------------