From b295b9eafe022de5e702f6e981da9e1c91f5ef28 Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Mon, 15 Jun 2026 20:49:27 +0000
Subject: [PATCH 1/2] [fern-generated] Update SDK
Generated by Fern
CLI Version: unknown
Generators:
- fernapi/fern-csharp-sdk: 2.59.6
---
.fern/metadata.json | 9 +-
reference.md | 279 ---------
.../EmpathicVoice/ChatGroups/GetAudioTest.cs | 2 +-
.../ChatGroups/GetChatGroupTest.cs | 2 +-
.../ChatGroups/ListChatGroupEventsTest.cs | 2 +-
.../ChatGroups/ListChatGroupsTest.cs | 2 +-
.../EmpathicVoice/Chats/GetAudioTest.cs | 2 +-
.../EmpathicVoice/Chats/ListChatEventsTest.cs | 2 +-
.../EmpathicVoice/Chats/ListChatsTest.cs | 2 +-
.../EmpathicVoice/Configs/CreateConfigTest.cs | 2 +-
.../Configs/CreateConfigVersionTest.cs | 2 +-
.../Configs/GetConfigVersionTest.cs | 2 +-
.../Configs/ListConfigVersionsTest.cs | 2 +-
.../EmpathicVoice/Configs/ListConfigsTest.cs | 2 +-
.../Configs/UpdateConfigDescriptionTest.cs | 2 +-
.../EmpathicVoice/Prompts/CreatePromptTest.cs | 2 +-
.../Prompts/CreatePromptVersionTest.cs | 2 +-
.../Prompts/GetPromptVersionTest.cs | 2 +-
.../Prompts/ListPromptVersionsTest.cs | 2 +-
.../EmpathicVoice/Prompts/ListPromptsTest.cs | 2 +-
.../Prompts/UpdatePromptDescriptionTest.cs | 2 +-
.../EmpathicVoice/Tools/CreateToolTest.cs | 2 +-
.../Tools/CreateToolVersionTest.cs | 2 +-
.../EmpathicVoice/Tools/GetToolVersionTest.cs | 2 +-
.../Tools/ListToolVersionsTest.cs | 2 +-
.../EmpathicVoice/Tools/ListToolsTest.cs | 2 +-
.../Tools/UpdateToolDescriptionTest.cs | 2 +-
.../Batch/GetJobDetailsTest.cs | 76 ---
.../Batch/GetJobPredictionsTest.cs | 266 ---------
.../Batch/ListJobsTest.cs | 82 ---
.../Unit/MockServer/Tts/SynthesizeJsonTest.cs | 2 +-
.../Unit/MockServer/Tts/Voices/CreateTest.cs | 2 +-
.../Unit/MockServer/Tts/Voices/ListTest.cs | 2 +-
src/Hume/Core/Public/Version.cs | 2 +-
src/Hume/EmpathicVoice/Chat/ChatApi.cs | 19 +-
src/Hume/EmpathicVoice/Chat/IChatApi.cs | 6 +-
.../ChatGroups/ChatGroupsClient.cs | 20 +-
.../ChatGroups/IChatGroupsClient.cs | 4 +-
src/Hume/EmpathicVoice/Chats/ChatsClient.cs | 16 +-
src/Hume/EmpathicVoice/Chats/IChatsClient.cs | 4 +-
.../EmpathicVoice/Configs/ConfigsClient.cs | 36 +-
.../EmpathicVoice/Configs/IConfigsClient.cs | 8 +-
.../ControlPlane/ControlPlaneApi.cs | 19 +-
.../ControlPlane/ControlPlaneClient.cs | 2 +-
.../ControlPlane/IControlPlaneApi.cs | 6 +-
.../ControlPlane/IControlPlaneClient.cs | 2 +-
.../EmpathicVoice/Prompts/IPromptsClient.cs | 6 +-
.../EmpathicVoice/Prompts/PromptsClient.cs | 34 +-
src/Hume/EmpathicVoice/Tools/IToolsClient.cs | 8 +-
src/Hume/EmpathicVoice/Tools/ToolsClient.cs | 36 +-
src/Hume/EmpathicVoice/Types/BuiltInTool.cs | 4 +-
src/Hume/EmpathicVoice/Types/ContextType.cs | 4 +-
.../EmpathicVoice/Types/LanguageModelType.cs | 4 +-
.../EmpathicVoice/Types/ModelProviderEnum.cs | 4 +-
.../Types/PostedBuiltinToolName.cs | 4 +-
.../Types/PostedWebhookEventType.cs | 4 +-
.../EmpathicVoice/Types/ProsodyInference.cs | 2 +-
.../Types/ReturnBuiltinToolToolType.cs | 4 +-
.../ReturnChatAudioReconstructionStatus.cs | 4 +-
.../Types/ReturnChatEventRole.cs | 4 +-
.../Types/ReturnChatEventType.cs | 4 +-
...AudioReconstructionsPaginationDirection.cs | 4 +-
...nChatGroupPagedChatsPaginationDirection.cs | 4 +-
...ChatGroupPagedEventsPaginationDirection.cs | 4 +-
...eturnChatPagedEventsPaginationDirection.cs | 4 +-
.../Types/ReturnChatPagedEventsStatus.cs | 4 +-
.../EmpathicVoice/Types/ReturnChatStatus.cs | 4 +-
...eturnPagedChatGroupsPaginationDirection.cs | 4 +-
.../ReturnPagedChatsPaginationDirection.cs | 4 +-
.../Types/ReturnPromptVersionType.cs | 4 +-
.../Types/ReturnUserDefinedToolToolType.cs | 4 +-
.../Types/ReturnUserDefinedToolVersionType.cs | 4 +-
.../Types/ReturnWebhookEventType.cs | 4 +-
src/Hume/EmpathicVoice/Types/Role.cs | 4 +-
src/Hume/EmpathicVoice/Types/ToolType.cs | 4 +-
src/Hume/EmpathicVoice/Types/VoiceProvider.cs | 4 +-
.../Types/WebhookEventChatStartType.cs | 4 +-
.../Types/WebhookEventChatStatus.cs | 4 +-
.../Batch/BatchClient.cs | 538 ------------------
.../Batch/IBatchClient.cs | 60 --
.../Batch/Requests/BatchListJobsRequest.cs | 70 ---
...chStartInferenceJobFromLocalFileRequest.cs | 21 -
.../Batch/Types/Alternative.cs | 77 ---
.../Batch/Types/Bcp47Tag.cs | 221 -------
.../Batch/Types/BoundingBox.cs | 53 --
.../Batch/Types/BurstPrediction.cs | 42 --
.../Types/CompletedEmbeddingGeneration.cs | 44 --
.../Batch/Types/CompletedInference.cs | 56 --
.../Batch/Types/CompletedState.cs | 56 --
.../Batch/Types/CompletedTlInference.cs | 56 --
.../Batch/Types/CompletedTraining.cs | 50 --
.../Batch/Types/CustomModelId.cs | 29 -
.../Batch/Types/CustomModelPrediction.cs | 35 --
.../Batch/Types/CustomModelRequest.cs | 35 --
.../Batch/Types/CustomModelVersionId.cs | 29 -
.../Batch/Types/CustomModelsInferenceJob.cs | 44 --
.../Batch/Types/CustomModelsTrainingJob.cs | 44 --
.../Batch/Types/DatasetId.cs | 29 -
.../Batch/Types/DatasetVersionId.cs | 29 -
.../Batch/Types/DescriptionsScore.cs | 38 --
.../Batch/Types/Direction.cs | 113 ----
.../Types/EmbeddingGenerationBaseRequest.cs | 32 --
.../Batch/Types/EmbeddingGenerationJob.cs | 44 --
.../Batch/Types/EmotionScore.cs | 38 --
.../Batch/Types/Error.cs | 38 --
.../Batch/Types/EvaluationArgs.cs | 29 -
.../ExpressionMeasurement/Batch/Types/Face.cs | 67 ---
.../Batch/Types/FacePrediction.cs | 65 ---
.../Batch/Types/FacemeshPrediction.cs | 32 --
.../Batch/Types/FacsScore.cs | 38 --
.../Batch/Types/Failed.cs | 50 --
.../Batch/Types/FailedState.cs | 50 --
.../ExpressionMeasurement/Batch/Types/File.cs | 47 --
.../Batch/Types/Granularity.cs | 123 ----
.../GroupedPredictionsBurstPrediction.cs | 35 --
.../Types/GroupedPredictionsFacePrediction.cs | 35 --
.../GroupedPredictionsFacemeshPrediction.cs | 36 --
.../GroupedPredictionsLanguagePrediction.cs | 36 --
.../Types/GroupedPredictionsNerPrediction.cs | 35 --
.../GroupedPredictionsProsodyPrediction.cs | 35 --
.../Batch/Types/InProgress.cs | 38 --
.../Batch/Types/InProgressState.cs | 38 --
.../Batch/Types/InferenceBaseRequest.cs | 63 --
.../Batch/Types/InferenceJob.cs | 52 --
.../Batch/Types/InferencePrediction.cs | 35 --
.../Batch/Types/InferenceRequest.cs | 61 --
.../Batch/Types/InferenceResults.cs | 33 --
.../Types/InferenceSourcePredictResult.cs | 38 --
.../Batch/Types/JobEmbeddingGeneration.cs | 41 --
.../Batch/Types/JobId.cs | 32 --
.../Batch/Types/JobInference.cs | 44 --
.../Batch/Types/JobTlInference.cs | 41 --
.../Batch/Types/JobTraining.cs | 41 --
.../Batch/Types/Language.cs | 46 --
.../Batch/Types/LanguagePrediction.cs | 70 ---
.../Batch/Types/Models.cs | 47 --
.../Batch/Types/ModelsPredictions.cs | 44 --
.../ExpressionMeasurement/Batch/Types/Ner.cs | 37 --
.../Batch/Types/NerPrediction.cs | 80 ---
.../Batch/Types/PositionInterval.cs | 41 --
.../PredictionsOptionalNullBurstPrediction.cs | 33 --
.../PredictionsOptionalNullFacePrediction.cs | 33 --
...edictionsOptionalNullFacemeshPrediction.cs | 33 --
...TranscriptionMetadataLanguagePrediction.cs | 33 --
...ionalTranscriptionMetadataNerPrediction.cs | 33 --
...lTranscriptionMetadataProsodyPrediction.cs | 33 --
.../Batch/Types/Prosody.cs | 43 --
.../Batch/Types/ProsodyPrediction.cs | 53 --
.../Batch/Types/Queued.cs | 32 --
.../Batch/Types/QueuedState.cs | 32 --
.../Batch/Types/RegistryFileDetail.cs | 38 --
.../Batch/Types/SentimentScore.cs | 38 --
.../Batch/Types/SortBy.cs | 117 ----
.../Batch/Types/Source.cs | 357 ------------
.../Batch/Types/SourceFile.cs | 44 --
.../Batch/Types/SourceTextSource.cs | 26 -
.../Batch/Types/SourceUrl.cs | 32 --
.../Batch/Types/StateEmbeddingGeneration.cs | 458 ---------------
...gGenerationCompletedEmbeddingGeneration.cs | 44 --
.../Types/StateEmbeddingGenerationFailed.cs | 50 --
.../StateEmbeddingGenerationInProgress.cs | 38 --
.../Types/StateEmbeddingGenerationQueued.cs | 32 --
.../Batch/Types/StateInference.cs | 430 --------------
.../Batch/Types/StateTlInference.cs | 438 --------------
.../StateTlInferenceCompletedTlInference.cs | 56 --
.../Batch/Types/StateTlInferenceFailed.cs | 50 --
.../Batch/Types/StateTlInferenceInProgress.cs | 38 --
.../Batch/Types/StateTlInferenceQueued.cs | 32 --
.../Batch/Types/StateTraining.cs | 432 --------------
.../Types/StateTrainingCompletedTraining.cs | 50 --
.../Batch/Types/StateTrainingFailed.cs | 50 --
.../Batch/Types/StateTrainingInProgress.cs | 38 --
.../Batch/Types/StateTrainingQueued.cs | 32 --
.../Batch/Types/Status.cs | 121 ----
.../ExpressionMeasurement/Batch/Types/Tag.cs | 32 --
.../ExpressionMeasurement/Batch/Types/Task.cs | 280 ---------
.../Batch/Types/TaskClassification.cs | 26 -
.../Batch/Types/TaskRegression.cs | 26 -
.../Batch/Types/TimeInterval.cs | 41 --
.../Batch/Types/TlInferenceBaseRequest.cs | 50 --
.../Batch/Types/TlInferencePrediction.cs | 39 --
.../Batch/Types/TlInferenceResults.cs | 33 --
.../Types/TlInferenceSourcePredictResult.cs | 38 --
.../Batch/Types/ToxicityScore.cs | 38 --
.../Batch/Types/TrainingBaseRequest.cs | 51 --
.../Batch/Types/TrainingCustomModel.cs | 32 --
.../Batch/Types/Transcription.cs | 80 ---
.../Batch/Types/TranscriptionMetadata.cs | 38 --
.../ExpressionMeasurement/Batch/Types/Type.cs | 117 ----
.../ExpressionMeasurement/Batch/Types/Url.cs | 32 --
.../Batch/Types/ValidationArgs.cs | 30 -
.../ExpressionMeasurement/Batch/Types/When.cs | 109 ----
.../Batch/Types/Window.cs | 43 --
.../ExpressionMeasurementClient.cs | 21 -
.../IExpressionMeasurementClient.cs | 10 -
.../Stream/IStreamClient.cs | 8 -
.../Stream/Stream/IStreamApi.cs | 25 -
.../Stream/Stream/StreamApi.cs | 271 ---------
.../Stream/Stream/Types/Config.cs | 73 ---
.../Stream/Stream/Types/JobDetails.cs | 35 --
.../Stream/Stream/Types/StreamErrorMessage.cs | 53 --
.../Stream/Stream/Types/StreamFace.cs | 67 ---
.../Stream/Stream/Types/StreamLanguage.cs | 47 --
.../Stream/Types/StreamModelPredictions.cs | 71 ---
.../Types/StreamModelPredictionsBurst.cs | 32 --
...eamModelPredictionsBurstPredictionsItem.cs | 32 --
.../Types/StreamModelPredictionsFace.cs | 32 --
...reamModelPredictionsFacePredictionsItem.cs | 62 --
.../Types/StreamModelPredictionsFacemesh.cs | 32 --
...ModelPredictionsFacemeshPredictionsItem.cs | 29 -
.../Types/StreamModelPredictionsJobDetails.cs | 35 --
.../Types/StreamModelPredictionsLanguage.cs | 32 --
...ModelPredictionsLanguagePredictionsItem.cs | 44 --
.../Types/StreamModelPredictionsProsody.cs | 32 --
...mModelPredictionsProsodyPredictionsItem.cs | 32 --
.../Types/StreamModelsEndpointPayload.cs | 87 ---
.../Stream/Types/StreamWarningMessage.cs | 53 --
.../Types/StreamWarningMessageJobDetails.cs | 35 --
.../Stream/StreamClient.cs | 25 -
.../Stream/Types/EmotionEmbeddingItem.cs | 38 --
.../Stream/Types/SentimentItem.cs | 38 --
.../Stream/Types/StreamBoundingBox.cs | 53 --
.../Stream/Types/TextPosition.cs | 41 --
.../Stream/Types/TimeRange.cs | 41 --
.../Stream/Types/ToxicityItem.cs | 38 --
src/Hume/Hume.csproj | 2 +-
src/Hume/HumeClient.cs | 6 +-
src/Hume/IHumeClient.cs | 2 -
src/Hume/Tts/StreamInput/IStreamInputApi.cs | 9 +-
src/Hume/Tts/StreamInput/StreamInputApi.cs | 22 +-
src/Hume/Tts/TtsClient.cs | 16 +-
src/Hume/Tts/Types/AudioFormatType.cs | 4 +-
src/Hume/Tts/Types/OctaveVersion.cs | 4 +-
src/Hume/Tts/Types/TimestampType.cs | 4 +-
src/Hume/Tts/Types/VoiceProvider.cs | 4 +-
src/Hume/Tts/Voices/IVoicesClient.cs | 4 +-
src/Hume/Tts/Voices/VoicesClient.cs | 10 +-
237 files changed, 193 insertions(+), 10614 deletions(-)
delete mode 100644 src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobDetailsTest.cs
delete mode 100644 src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobPredictionsTest.cs
delete mode 100644 src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/ListJobsTest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/BatchClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/IBatchClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Requests/BatchListJobsRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Requests/BatchStartInferenceJobFromLocalFileRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Alternative.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Bcp47Tag.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/BoundingBox.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/BurstPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CompletedEmbeddingGeneration.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CompletedInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CompletedState.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CompletedTlInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CompletedTraining.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelId.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelVersionId.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsInferenceJob.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsTrainingJob.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/DatasetId.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/DatasetVersionId.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/DescriptionsScore.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Direction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationBaseRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationJob.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/EmotionScore.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Error.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/EvaluationArgs.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Face.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/FacePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/FacemeshPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/FacsScore.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Failed.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/FailedState.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/File.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Granularity.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsBurstPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsFacePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsFacemeshPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsLanguagePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsNerPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/GroupedPredictionsProsodyPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InProgress.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InProgressState.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferenceBaseRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferenceJob.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferencePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferenceRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferenceResults.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/InferenceSourcePredictResult.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/JobEmbeddingGeneration.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/JobId.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/JobInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/JobTlInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/JobTraining.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Language.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/LanguagePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Models.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/ModelsPredictions.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Ner.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/NerPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PositionInterval.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalNullBurstPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalNullFacePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalNullFacemeshPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalTranscriptionMetadataNerPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Prosody.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/ProsodyPrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Queued.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/QueuedState.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/RegistryFileDetail.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/SentimentScore.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/SortBy.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Source.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/SourceFile.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/SourceTextSource.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/SourceUrl.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateEmbeddingGeneration.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateEmbeddingGenerationCompletedEmbeddingGeneration.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateEmbeddingGenerationFailed.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateEmbeddingGenerationInProgress.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateEmbeddingGenerationQueued.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTlInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTlInferenceCompletedTlInference.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTlInferenceFailed.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTlInferenceInProgress.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTlInferenceQueued.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTraining.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTrainingCompletedTraining.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTrainingFailed.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTrainingInProgress.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/StateTrainingQueued.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Status.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Tag.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Task.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TaskClassification.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TaskRegression.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TimeInterval.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TlInferenceBaseRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TlInferencePrediction.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TlInferenceResults.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TlInferenceSourcePredictResult.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/ToxicityScore.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TrainingBaseRequest.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TrainingCustomModel.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Transcription.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/TranscriptionMetadata.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Type.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Url.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/ValidationArgs.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/When.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Batch/Types/Window.cs
delete mode 100644 src/Hume/ExpressionMeasurement/ExpressionMeasurementClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/IExpressionMeasurementClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/IStreamClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/IStreamApi.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/StreamApi.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/Config.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/JobDetails.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamErrorMessage.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamFace.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamLanguage.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictions.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsBurst.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsBurstPredictionsItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsFace.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsFacePredictionsItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsFacemesh.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsFacemeshPredictionsItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsJobDetails.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsLanguage.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsLanguagePredictionsItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsProsody.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelPredictionsProsodyPredictionsItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamModelsEndpointPayload.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamWarningMessage.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Stream/Types/StreamWarningMessageJobDetails.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/StreamClient.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/EmotionEmbeddingItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/SentimentItem.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/StreamBoundingBox.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/TextPosition.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/TimeRange.cs
delete mode 100644 src/Hume/ExpressionMeasurement/Stream/Types/ToxicityItem.cs
diff --git a/.fern/metadata.json b/.fern/metadata.json
index d7c02b9..0917a17 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -17,14 +17,9 @@
"environments": {
"prod": "wss://api.hume.ai/v0/evi"
}
- },
- "/models": {
- "environments": {
- "prod": "wss://api.hume.ai/v0/stream"
- }
}
}
},
- "originGitCommit": "274a9e627c776728cbf8da2fc71627448d122f99",
- "sdkVersion": "0.2.8"
+ "originGitCommit": "2968d0bfb0c9e8d381a274972edb6f7948cf77c6",
+ "sdkVersion": "0.2.9"
}
\ No newline at end of file
diff --git a/reference.md b/reference.md
index ee939f7..9f17d86 100644
--- a/reference.md
+++ b/reference.md
@@ -2900,282 +2900,3 @@ client.Tts.ConvertVoiceJsonAsync(new ConvertVoiceJsonRequest());
-## ExpressionMeasurement Batch
-client.ExpressionMeasurement.Batch.ListJobsAsync(BatchListJobsRequest { ... }) -> WithRawResponseTask<IEnumerable<InferenceJob>>
-
--
-
-#### š Description
-
-
--
-
-
--
-
-Sort and filter jobs.
-
-
-
-
-
-#### š Usage
-
-
--
-
-
--
-
-```csharp
-await client.ExpressionMeasurement.Batch.ListJobsAsync(new BatchListJobsRequest());
-```
-
-
-
-
-
-#### āļø Parameters
-
-
--
-
-
--
-
-**request:** `BatchListJobsRequest`
-
-
-
-
-
-
-
-
-
-
-
-client.ExpressionMeasurement.Batch.StartInferenceJobAsync(InferenceBaseRequest { ... }) -> WithRawResponseTask<JobId>
-
--
-
-#### š Description
-
-
--
-
-
--
-
-Start a new measurement inference job.
-
-
-
-
-
-#### š Usage
-
-
--
-
-
--
-
-```csharp
-await client.ExpressionMeasurement.Batch.StartInferenceJobAsync(
- new InferenceBaseRequest
- {
- Urls = new List() { "https://hume-tutorials.s3.amazonaws.com/faces.zip" },
- Notify = true,
- }
-);
-```
-
-
-
-
-
-#### āļø Parameters
-
-
--
-
-
--
-
-**request:** `InferenceBaseRequest`
-
-
-
-
-
-
-
-
-
-
-
-client.ExpressionMeasurement.Batch.GetJobDetailsAsync(id) -> WithRawResponseTask<InferenceJob>
-
--
-
-#### š Description
-
-
--
-
-
--
-
-Get the request details and state of a given job.
-
-
-
-
-
-#### š Usage
-
-
--
-
-
--
-
-```csharp
-await client.ExpressionMeasurement.Batch.GetJobDetailsAsync("job_id");
-```
-
-
-
-
-
-#### āļø Parameters
-
-
--
-
-
--
-
-**id:** `string` ā The unique identifier for the job.
-
-
-
-
-
-
-
-
-
-
-
-client.ExpressionMeasurement.Batch.GetJobPredictionsAsync(id) -> WithRawResponseTask<IEnumerable<InferenceSourcePredictResult>>
-
--
-
-#### š Description
-
-
--
-
-
--
-
-Get the JSON predictions of a completed inference job.
-
-
-
-
-
-#### š Usage
-
-
--
-
-
--
-
-```csharp
-await client.ExpressionMeasurement.Batch.GetJobPredictionsAsync("job_id");
-```
-
-
-
-
-
-#### āļø Parameters
-
-
--
-
-
--
-
-**id:** `string` ā The unique identifier for the job.
-
-
-
-
-
-
-
-
-
-
-
-client.ExpressionMeasurement.Batch.StartInferenceJobFromLocalFileAsync(BatchStartInferenceJobFromLocalFileRequest { ... }) -> WithRawResponseTask<JobId>
-
--
-
-#### š Description
-
-
--
-
-
--
-
-Start a new batch inference job.
-
-
-
-
-
-#### š Usage
-
-
--
-
-
--
-
-```csharp
-await client.ExpressionMeasurement.Batch.StartInferenceJobFromLocalFileAsync(
- new BatchStartInferenceJobFromLocalFileRequest()
-);
-```
-
-
-
-
-
-#### āļø Parameters
-
-
--
-
-
--
-
-**request:** `BatchStartInferenceJobFromLocalFileRequest`
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetAudioTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetAudioTest.cs
index 23ea88b..d480ae5 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetAudioTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetAudioTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.ChatGroups;
public class GetAudioTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetChatGroupTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetChatGroupTest.cs
index 2d12709..74985fc 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetChatGroupTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/GetChatGroupTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.ChatGroups;
public class GetChatGroupTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupEventsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupEventsTest.cs
index 4fb8f14..b15bd14 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupEventsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupEventsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.ChatGroups;
public class ListChatGroupEventsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupsTest.cs
index 9514dc7..8736a64 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/ChatGroups/ListChatGroupsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.ChatGroups;
public class ListChatGroupsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/GetAudioTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/GetAudioTest.cs
index 8379546..03a7abe 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/GetAudioTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/GetAudioTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Chats;
public class GetAudioTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatEventsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatEventsTest.cs
index 0ddb004..3a94ebb 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatEventsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatEventsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Chats;
public class ListChatEventsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatsTest.cs
index 69aca0f..2d3dbe5 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Chats/ListChatsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Chats;
public class ListChatsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigTest.cs
index 7e0436c..2509209 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class CreateConfigTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigVersionTest.cs
index 4f72ce1..9a21f90 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/CreateConfigVersionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class CreateConfigVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/GetConfigVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/GetConfigVersionTest.cs
index 7758d2d..f0f9af1 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/GetConfigVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/GetConfigVersionTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class GetConfigVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigVersionsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigVersionsTest.cs
index a35134b..c9882d7 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigVersionsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigVersionsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class ListConfigVersionsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigsTest.cs
index 6e5ca13..91f5240 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/ListConfigsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class ListConfigsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/UpdateConfigDescriptionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/UpdateConfigDescriptionTest.cs
index 421e7e5..8f962e6 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/UpdateConfigDescriptionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Configs/UpdateConfigDescriptionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Configs;
public class UpdateConfigDescriptionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptTest.cs
index 26e07a6..ee3705e 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class CreatePromptTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptVersionTest.cs
index 88c6b9b..392a9f8 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/CreatePromptVersionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class CreatePromptVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/GetPromptVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/GetPromptVersionTest.cs
index b866425..974771d 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/GetPromptVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/GetPromptVersionTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class GetPromptVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptVersionsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptVersionsTest.cs
index b207be9..4508263 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptVersionsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptVersionsTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class ListPromptVersionsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptsTest.cs
index b3d0b46..34b684a 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/ListPromptsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class ListPromptsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/UpdatePromptDescriptionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/UpdatePromptDescriptionTest.cs
index 6c5997b..3740357 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/UpdatePromptDescriptionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Prompts/UpdatePromptDescriptionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Prompts;
public class UpdatePromptDescriptionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolTest.cs
index a4c7e5e..33d4d94 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class CreateToolTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolVersionTest.cs
index fd087ba..2b5d867 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/CreateToolVersionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class CreateToolVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/GetToolVersionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/GetToolVersionTest.cs
index bdb4663..4ceb2b6 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/GetToolVersionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/GetToolVersionTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class GetToolVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolVersionsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolVersionsTest.cs
index d6107f7..dbbedb7 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolVersionsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolVersionsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class ListToolVersionsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolsTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolsTest.cs
index daf9e74..bca29ea 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolsTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/ListToolsTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class ListToolsTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/UpdateToolDescriptionTest.cs b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/UpdateToolDescriptionTest.cs
index b872f5c..dcf35bc 100644
--- a/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/UpdateToolDescriptionTest.cs
+++ b/src/Hume.Test/Unit/MockServer/EmpathicVoice/Tools/UpdateToolDescriptionTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;
public class UpdateToolDescriptionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobDetailsTest.cs b/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobDetailsTest.cs
deleted file mode 100644
index d63fdc0..0000000
--- a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobDetailsTest.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using Hume.Test.Unit.MockServer;
-using Hume.Test.Utils;
-using NUnit.Framework;
-
-namespace Hume.Test.Unit.MockServer.ExpressionMeasurement.Batch;
-
-[TestFixture]
-[Parallelizable(ParallelScope.Self)]
-public class GetJobDetailsTest : BaseMockServerTest
-{
- [NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
- {
- const string mockResponse = """
- {
- "type": "INFERENCE",
- "job_id": "job_id",
- "request": {
- "files": [],
- "models": {
- "burst": {},
- "face": {
- "fps_pred": 3,
- "identify_faces": false,
- "min_face_size": 60,
- "prob_threshold": 0.99,
- "save_faces": false
- },
- "facemesh": {},
- "language": {
- "granularity": "word",
- "identify_speakers": false
- },
- "ner": {
- "identify_speakers": false
- },
- "prosody": {
- "granularity": "utterance",
- "identify_speakers": false
- }
- },
- "notify": true,
- "text": [],
- "urls": [
- "https://hume-tutorials.s3.amazonaws.com/faces.zip"
- ]
- },
- "state": {
- "status": "COMPLETED",
- "created_timestamp_ms": 1712590457884,
- "ended_timestamp_ms": 1712590462252,
- "num_errors": 0,
- "num_predictions": 10,
- "started_timestamp_ms": 1712590457995
- }
- }
- """;
-
- Server
- .Given(
- WireMock
- .RequestBuilders.Request.Create()
- .WithPath("/v0/batch/jobs/job_id")
- .UsingGet()
- )
- .RespondWith(
- WireMock
- .ResponseBuilders.Response.Create()
- .WithStatusCode(200)
- .WithBody(mockResponse)
- );
-
- var response = await Client.ExpressionMeasurement.Batch.GetJobDetailsAsync("job_id");
- JsonAssert.AreEqual(response, mockResponse);
- }
-}
diff --git a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobPredictionsTest.cs b/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobPredictionsTest.cs
deleted file mode 100644
index a011a8f..0000000
--- a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/GetJobPredictionsTest.cs
+++ /dev/null
@@ -1,266 +0,0 @@
-using Hume.Test.Unit.MockServer;
-using Hume.Test.Utils;
-using NUnit.Framework;
-
-namespace Hume.Test.Unit.MockServer.ExpressionMeasurement.Batch;
-
-[TestFixture]
-[Parallelizable(ParallelScope.Self)]
-public class GetJobPredictionsTest : BaseMockServerTest
-{
- [NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
- {
- const string mockResponse = """
- [
- {
- "source": {
- "type": "url",
- "url": "https://hume-tutorials.s3.amazonaws.com/faces.zip"
- },
- "results": {
- "predictions": [
- {
- "file": "faces/100.jpg",
- "models": {
- "face": {
- "grouped_predictions": [
- {
- "id": "unknown",
- "predictions": [
- {
- "frame": 0,
- "time": 0,
- "prob": 0.9994111061096191,
- "box": {
- "x": 1187.885986328125,
- "y": 1397.697509765625,
- "w": 1401.668701171875,
- "h": 1961.424560546875
- },
- "emotions": [
- {
- "name": "Admiration",
- "score": 0.10722749680280685
- },
- {
- "name": "Adoration",
- "score": 0.06395940482616425
- },
- {
- "name": "Aesthetic Appreciation",
- "score": 0.05811462551355362
- },
- {
- "name": "Amusement",
- "score": 0.14187128841876984
- },
- {
- "name": "Anger",
- "score": 0.02804684266448021
- },
- {
- "name": "Anxiety",
- "score": 0.2713485360145569
- },
- {
- "name": "Awe",
- "score": 0.33812594413757324
- },
- {
- "name": "Awkwardness",
- "score": 0.1745193600654602
- },
- {
- "name": "Boredom",
- "score": 0.23600080609321594
- },
- {
- "name": "Calmness",
- "score": 0.18988418579101562
- },
- {
- "name": "Concentration",
- "score": 0.44288986921310425
- },
- {
- "name": "Confusion",
- "score": 0.39346569776535034
- },
- {
- "name": "Contemplation",
- "score": 0.31002455949783325
- },
- {
- "name": "Contempt",
- "score": 0.048870109021663666
- },
- {
- "name": "Contentment",
- "score": 0.0579497292637825
- },
- {
- "name": "Craving",
- "score": 0.06544201076030731
- },
- {
- "name": "Desire",
- "score": 0.05526508390903473
- },
- {
- "name": "Determination",
- "score": 0.08590991795063019
- },
- {
- "name": "Disappointment",
- "score": 0.19508258998394012
- },
- {
- "name": "Disgust",
- "score": 0.031529419124126434
- },
- {
- "name": "Distress",
- "score": 0.23210826516151428
- },
- {
- "name": "Doubt",
- "score": 0.3284550905227661
- },
- {
- "name": "Ecstasy",
- "score": 0.040716782212257385
- },
- {
- "name": "Embarrassment",
- "score": 0.1467227339744568
- },
- {
- "name": "Empathic Pain",
- "score": 0.07633581757545471
- },
- {
- "name": "Entrancement",
- "score": 0.16245244443416595
- },
- {
- "name": "Envy",
- "score": 0.03267110139131546
- },
- {
- "name": "Excitement",
- "score": 0.10656816512346268
- },
- {
- "name": "Fear",
- "score": 0.3115977346897125
- },
- {
- "name": "Guilt",
- "score": 0.11615975946187973
- },
- {
- "name": "Horror",
- "score": 0.19795553386211395
- },
- {
- "name": "Interest",
- "score": 0.3136432468891144
- },
- {
- "name": "Joy",
- "score": 0.06285581737756729
- },
- {
- "name": "Love",
- "score": 0.06339752674102783
- },
- {
- "name": "Nostalgia",
- "score": 0.05866732448339462
- },
- {
- "name": "Pain",
- "score": 0.07684041559696198
- },
- {
- "name": "Pride",
- "score": 0.026822954416275024
- },
- {
- "name": "Realization",
- "score": 0.30000734329223633
- },
- {
- "name": "Relief",
- "score": 0.04414166510105133
- },
- {
- "name": "Romance",
- "score": 0.042728863656520844
- },
- {
- "name": "Sadness",
- "score": 0.14773206412792206
- },
- {
- "name": "Satisfaction",
- "score": 0.05902980640530586
- },
- {
- "name": "Shame",
- "score": 0.08103451132774353
- },
- {
- "name": "Surprise (negative)",
- "score": 0.25518184900283813
- },
- {
- "name": "Surprise (positive)",
- "score": 0.28845661878585815
- },
- {
- "name": "Sympathy",
- "score": 0.062488824129104614
- },
- {
- "name": "Tiredness",
- "score": 0.1559651643037796
- },
- {
- "name": "Triumph",
- "score": 0.01955239288508892
- }
- ]
- }
- ]
- }
- ]
- }
- }
- }
- ],
- "errors": []
- }
- }
- ]
- """;
-
- Server
- .Given(
- WireMock
- .RequestBuilders.Request.Create()
- .WithPath("/v0/batch/jobs/job_id/predictions")
- .UsingGet()
- )
- .RespondWith(
- WireMock
- .ResponseBuilders.Response.Create()
- .WithStatusCode(200)
- .WithBody(mockResponse)
- );
-
- var response = await Client.ExpressionMeasurement.Batch.GetJobPredictionsAsync("job_id");
- JsonAssert.AreEqual(response, mockResponse);
- }
-}
diff --git a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/ListJobsTest.cs b/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/ListJobsTest.cs
deleted file mode 100644
index f98f1a1..0000000
--- a/src/Hume.Test/Unit/MockServer/ExpressionMeasurement/Batch/ListJobsTest.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using Hume.ExpressionMeasurement.Batch;
-using Hume.Test.Unit.MockServer;
-using Hume.Test.Utils;
-using NUnit.Framework;
-
-namespace Hume.Test.Unit.MockServer.ExpressionMeasurement.Batch;
-
-[TestFixture]
-[Parallelizable(ParallelScope.Self)]
-public class ListJobsTest : BaseMockServerTest
-{
- [NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
- {
- const string mockResponse = """
- [
- {
- "job_id": "job_id",
- "request": {
- "files": [
- {
- "filename": "filename",
- "md5sum": "md5sum",
- "content_type": "content_type"
- }
- ],
- "models": {
- "burst": {},
- "face": {
- "fps_pred": 3,
- "identify_faces": false,
- "min_face_size": 60,
- "prob_threshold": 0.99,
- "save_faces": false
- },
- "facemesh": {},
- "language": {
- "granularity": "word",
- "identify_speakers": false
- },
- "ner": {
- "identify_speakers": false
- },
- "prosody": {
- "granularity": "utterance",
- "identify_speakers": false
- }
- },
- "notify": true,
- "text": [],
- "urls": [
- "https://hume-tutorials.s3.amazonaws.com/faces.zip"
- ]
- },
- "state": {
- "status": "COMPLETED",
- "created_timestamp_ms": 1712587158717,
- "ended_timestamp_ms": 1712587159274,
- "num_errors": 0,
- "num_predictions": 10,
- "started_timestamp_ms": 1712587158800
- },
- "type": "INFERENCE"
- }
- ]
- """;
-
- Server
- .Given(WireMock.RequestBuilders.Request.Create().WithPath("/v0/batch/jobs").UsingGet())
- .RespondWith(
- WireMock
- .ResponseBuilders.Response.Create()
- .WithStatusCode(200)
- .WithBody(mockResponse)
- );
-
- var response = await Client.ExpressionMeasurement.Batch.ListJobsAsync(
- new BatchListJobsRequest()
- );
- JsonAssert.AreEqual(response, mockResponse);
- }
-}
diff --git a/src/Hume.Test/Unit/MockServer/Tts/SynthesizeJsonTest.cs b/src/Hume.Test/Unit/MockServer/Tts/SynthesizeJsonTest.cs
index ba68795..417b8ec 100644
--- a/src/Hume.Test/Unit/MockServer/Tts/SynthesizeJsonTest.cs
+++ b/src/Hume.Test/Unit/MockServer/Tts/SynthesizeJsonTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.Tts;
public class SynthesizeJsonTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/Tts/Voices/CreateTest.cs b/src/Hume.Test/Unit/MockServer/Tts/Voices/CreateTest.cs
index 7f57fd1..b5d42b6 100644
--- a/src/Hume.Test/Unit/MockServer/Tts/Voices/CreateTest.cs
+++ b/src/Hume.Test/Unit/MockServer/Tts/Voices/CreateTest.cs
@@ -10,7 +10,7 @@ namespace Hume.Test.Unit.MockServer.Tts.Voices;
public class CreateTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string requestJson = """
{
diff --git a/src/Hume.Test/Unit/MockServer/Tts/Voices/ListTest.cs b/src/Hume.Test/Unit/MockServer/Tts/Voices/ListTest.cs
index 29a4c45..2083028 100644
--- a/src/Hume.Test/Unit/MockServer/Tts/Voices/ListTest.cs
+++ b/src/Hume.Test/Unit/MockServer/Tts/Voices/ListTest.cs
@@ -9,7 +9,7 @@ namespace Hume.Test.Unit.MockServer.Tts.Voices;
public class ListTest : BaseMockServerTest
{
[NUnit.Framework.Test]
- public async global::System.Threading.Tasks.Task MockServerTest()
+ public async Task MockServerTest()
{
const string mockResponse = """
{
diff --git a/src/Hume/Core/Public/Version.cs b/src/Hume/Core/Public/Version.cs
index 4cc4e59..c6bf6b3 100644
--- a/src/Hume/Core/Public/Version.cs
+++ b/src/Hume/Core/Public/Version.cs
@@ -3,5 +3,5 @@ namespace Hume;
[Serializable]
internal class Version
{
- public const string Current = "0.2.8";
+ public const string Current = "0.2.9";
}
diff --git a/src/Hume/EmpathicVoice/Chat/ChatApi.cs b/src/Hume/EmpathicVoice/Chat/ChatApi.cs
index 5b5441d..a483956 100644
--- a/src/Hume/EmpathicVoice/Chat/ChatApi.cs
+++ b/src/Hume/EmpathicVoice/Chat/ChatApi.cs
@@ -185,7 +185,7 @@ private void DisposeEvents()
///
/// Dispatches incoming WebSocket messages
///
- private async global::System.Threading.Tasks.Task OnTextMessage(Stream stream)
+ private async Task OnTextMessage(Stream stream)
{
using var json = await JsonSerializer.DeserializeAsync(stream);
if (json == null)
@@ -299,10 +299,7 @@ await ExceptionOccurred
///
/// Serializes and sends a JSON message to the server
///
- private async global::System.Threading.Tasks.Task SendJsonAsync(
- object message,
- CancellationToken cancellationToken = default
- )
+ private async Task SendJsonAsync(object message, CancellationToken cancellationToken = default)
{
await _client
.SendInstant(JsonUtils.Serialize(message), cancellationToken)
@@ -312,7 +309,7 @@ await _client
///
/// Injects a fake text message for testing. Dispatches through the normal message handling pipeline.
///
- internal async global::System.Threading.Tasks.Task InjectTestMessage(string rawJson)
+ internal async Task InjectTestMessage(string rawJson)
{
using var stream = new MemoryStream(global::System.Text.Encoding.UTF8.GetBytes(rawJson));
await OnTextMessage(stream).ConfigureAwait(false);
@@ -321,9 +318,7 @@ await _client
///
/// Asynchronously establishes a WebSocket connection.
///
- public async global::System.Threading.Tasks.Task ConnectAsync(
- CancellationToken cancellationToken = default
- )
+ public async Task ConnectAsync(CancellationToken cancellationToken = default)
{
#if NET6_0_OR_GREATER
_client.DeflateOptions = _options.EnableCompression
@@ -336,9 +331,7 @@ await _client
///
/// Asynchronously closes the WebSocket connection.
///
- public async global::System.Threading.Tasks.Task CloseAsync(
- CancellationToken cancellationToken = default
- )
+ public async Task CloseAsync(CancellationToken cancellationToken = default)
{
await _client.CloseAsync(cancellationToken).ConfigureAwait(false);
}
@@ -366,7 +359,7 @@ public void Dispose()
///
/// Sends a PublishEvent message to the server
///
- public async global::System.Threading.Tasks.Task Send(
+ public async Task Send(
OneOf<
AudioInput,
SessionSettings,
diff --git a/src/Hume/EmpathicVoice/Chat/IChatApi.cs b/src/Hume/EmpathicVoice/Chat/IChatApi.cs
index 36e5317..3c49770 100644
--- a/src/Hume/EmpathicVoice/Chat/IChatApi.cs
+++ b/src/Hume/EmpathicVoice/Chat/IChatApi.cs
@@ -24,9 +24,9 @@ public partial interface IChatApi : IAsyncDisposable, IDisposable
public Event SessionSettings { get; }
public Event UnknownMessage { get; }
public ConnectionStatus Status { get; }
- global::System.Threading.Tasks.Task ConnectAsync(CancellationToken cancellationToken = default);
+ Task ConnectAsync(CancellationToken cancellationToken = default);
- global::System.Threading.Tasks.Task Send(
+ Task Send(
OneOf<
AudioInput,
SessionSettings,
@@ -40,5 +40,5 @@ public partial interface IChatApi : IAsyncDisposable, IDisposable
CancellationToken cancellationToken = default
);
- global::System.Threading.Tasks.Task CloseAsync(CancellationToken cancellationToken = default);
+ Task CloseAsync(CancellationToken cancellationToken = default);
}
diff --git a/src/Hume/EmpathicVoice/ChatGroups/ChatGroupsClient.cs b/src/Hume/EmpathicVoice/ChatGroups/ChatGroupsClient.cs
index 21e8f24..5edc41c 100644
--- a/src/Hume/EmpathicVoice/ChatGroups/ChatGroupsClient.cs
+++ b/src/Hume/EmpathicVoice/ChatGroups/ChatGroupsClient.cs
@@ -27,9 +27,7 @@ private WithRawResponseTask ListChatGroupsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListChatGroupsInternalAsyncCore(
+ private async Task> ListChatGroupsInternalAsyncCore(
ChatGroupsListChatGroupsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -117,9 +115,7 @@ private WithRawResponseTask ListChatGroupsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetChatGroupAsyncCore(
+ private async Task> GetChatGroupAsyncCore(
string id,
ChatGroupsGetChatGroupRequest request,
RequestOptions? options = null,
@@ -211,9 +207,7 @@ private WithRawResponseTask ListChatGroupsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetAudioAsyncCore(
+ private async Task> GetAudioAsyncCore(
string id,
ChatGroupsGetAudioRequest request,
RequestOptions? options = null,
@@ -321,7 +315,7 @@ private WithRawResponseTask ListChatGroupEventsInter
);
}
- private async global::System.Threading.Tasks.Task<
+ private async Task<
WithRawResponse
> ListChatGroupEventsInternalAsyncCore(
string id,
@@ -428,7 +422,7 @@ private WithRawResponseTask ListChatGroupEventsInter
/// }
/// );
///
- public async global::System.Threading.Tasks.Task> ListChatGroupsAsync(
+ public async Task> ListChatGroupsAsync(
ChatGroupsListChatGroupsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -529,9 +523,7 @@ public WithRawResponseTask GetAudioAsy
/// }
/// );
///
- public async global::System.Threading.Tasks.Task<
- Pager
- > ListChatGroupEventsAsync(
+ public async Task> ListChatGroupEventsAsync(
string id,
ChatGroupsListChatGroupEventsRequest request,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/ChatGroups/IChatGroupsClient.cs b/src/Hume/EmpathicVoice/ChatGroups/IChatGroupsClient.cs
index 790ba42..36bcf85 100644
--- a/src/Hume/EmpathicVoice/ChatGroups/IChatGroupsClient.cs
+++ b/src/Hume/EmpathicVoice/ChatGroups/IChatGroupsClient.cs
@@ -8,7 +8,7 @@ public partial interface IChatGroupsClient
///
/// Fetches a paginated list of **Chat Groups**.
///
- global::System.Threading.Tasks.Task> ListChatGroupsAsync(
+ Task> ListChatGroupsAsync(
ChatGroupsListChatGroupsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -37,7 +37,7 @@ WithRawResponseTask GetAudioAsync(
///
/// Fetches a paginated list of **Chat** events associated with a **Chat Group**.
///
- global::System.Threading.Tasks.Task> ListChatGroupEventsAsync(
+ Task> ListChatGroupEventsAsync(
string id,
ChatGroupsListChatGroupEventsRequest request,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Chats/ChatsClient.cs b/src/Hume/EmpathicVoice/Chats/ChatsClient.cs
index 4ba7ee0..1447c7d 100644
--- a/src/Hume/EmpathicVoice/Chats/ChatsClient.cs
+++ b/src/Hume/EmpathicVoice/Chats/ChatsClient.cs
@@ -27,9 +27,7 @@ private WithRawResponseTask ListChatsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListChatsInternalAsyncCore(
+ private async Task> ListChatsInternalAsyncCore(
ChatsListChatsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -133,9 +131,7 @@ private WithRawResponseTask ListChatEventsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListChatEventsInternalAsyncCore(
+ private async Task> ListChatEventsInternalAsyncCore(
string id,
ChatsListChatEventsRequest request,
RequestOptions? options = null,
@@ -226,9 +222,7 @@ private WithRawResponseTask ListChatEventsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetAudioAsyncCore(
+ private async Task> GetAudioAsyncCore(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -326,7 +320,7 @@ private WithRawResponseTask ListChatEventsInternalAsync(
/// }
/// );
///
- public async global::System.Threading.Tasks.Task> ListChatsAsync(
+ public async Task> ListChatsAsync(
ChatsListChatsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -375,7 +369,7 @@ await ListChatsInternalAsync(request, options, cancellationToken)
/// }
/// );
///
- public async global::System.Threading.Tasks.Task> ListChatEventsAsync(
+ public async Task> ListChatEventsAsync(
string id,
ChatsListChatEventsRequest request,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Chats/IChatsClient.cs b/src/Hume/EmpathicVoice/Chats/IChatsClient.cs
index 5832cf4..7efdde2 100644
--- a/src/Hume/EmpathicVoice/Chats/IChatsClient.cs
+++ b/src/Hume/EmpathicVoice/Chats/IChatsClient.cs
@@ -8,7 +8,7 @@ public partial interface IChatsClient
///
/// Fetches a paginated list of **Chats**.
///
- global::System.Threading.Tasks.Task> ListChatsAsync(
+ Task> ListChatsAsync(
ChatsListChatsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -17,7 +17,7 @@ public partial interface IChatsClient
///
/// Fetches a paginated list of **Chat** events.
///
- global::System.Threading.Tasks.Task> ListChatEventsAsync(
+ Task> ListChatEventsAsync(
string id,
ChatsListChatEventsRequest request,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Configs/ConfigsClient.cs b/src/Hume/EmpathicVoice/Configs/ConfigsClient.cs
index 46ee836..505141d 100644
--- a/src/Hume/EmpathicVoice/Configs/ConfigsClient.cs
+++ b/src/Hume/EmpathicVoice/Configs/ConfigsClient.cs
@@ -29,9 +29,7 @@ private WithRawResponseTask ListConfigsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListConfigsInternalAsyncCore(
+ private async Task> ListConfigsInternalAsyncCore(
ConfigsListConfigsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -119,9 +117,7 @@ private WithRawResponseTask ListConfigsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreateConfigAsyncCore(
+ private async Task> CreateConfigAsyncCore(
PostedConfig request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -220,9 +216,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListConfigVersionsInternalAsyncCore(
+ private async Task> ListConfigVersionsInternalAsyncCore(
string id,
ConfigsListConfigVersionsRequest request,
RequestOptions? options = null,
@@ -313,9 +307,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreateConfigVersionAsyncCore(
+ private async Task> CreateConfigVersionAsyncCore(
string id,
PostedConfigVersion request,
RequestOptions? options = null,
@@ -401,9 +393,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdateConfigNameAsyncCore(
+ private async Task> UpdateConfigNameAsyncCore(
string id,
PostedConfigName request,
RequestOptions? options = null,
@@ -476,9 +466,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetConfigVersionAsyncCore(
+ private async Task> GetConfigVersionAsyncCore(
string id,
int version,
RequestOptions? options = null,
@@ -563,9 +551,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdateConfigDescriptionAsyncCore(
+ private async Task> UpdateConfigDescriptionAsyncCore(
string id,
int version,
PostedConfigVersionDescription request,
@@ -663,7 +649,7 @@ private WithRawResponseTask ListConfigVersionsInternalAsync(
/// new ConfigsListConfigsRequest { PageNumber = 0, PageSize = 1 }
/// );
///
- public async global::System.Threading.Tasks.Task> ListConfigsAsync(
+ public async Task> ListConfigsAsync(
ConfigsListConfigsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -752,7 +738,7 @@ public WithRawResponseTask CreateConfigAsync(
/// new ConfigsListConfigVersionsRequest()
/// );
///
- public async global::System.Threading.Tasks.Task> ListConfigVersionsAsync(
+ public async Task> ListConfigVersionsAsync(
string id,
ConfigsListConfigVersionsRequest request,
RequestOptions? options = null,
@@ -842,7 +828,7 @@ public WithRawResponseTask CreateConfigVersionAsync(
///
/// await client.EmpathicVoice.Configs.DeleteConfigAsync("your-config-id");
///
- public async global::System.Threading.Tasks.Task DeleteConfigAsync(
+ public async Task DeleteConfigAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -951,7 +937,7 @@ public WithRawResponseTask GetConfigVersionAsync(
///
/// await client.EmpathicVoice.Configs.DeleteConfigVersionAsync("your-config-id", 1);
///
- public async global::System.Threading.Tasks.Task DeleteConfigVersionAsync(
+ public async Task DeleteConfigVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Configs/IConfigsClient.cs b/src/Hume/EmpathicVoice/Configs/IConfigsClient.cs
index d964f25..0dbf829 100644
--- a/src/Hume/EmpathicVoice/Configs/IConfigsClient.cs
+++ b/src/Hume/EmpathicVoice/Configs/IConfigsClient.cs
@@ -10,7 +10,7 @@ public partial interface IConfigsClient
///
/// For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
///
- global::System.Threading.Tasks.Task> ListConfigsAsync(
+ Task> ListConfigsAsync(
ConfigsListConfigsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -32,7 +32,7 @@ WithRawResponseTask CreateConfigAsync(
///
/// For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
///
- global::System.Threading.Tasks.Task> ListConfigVersionsAsync(
+ Task> ListConfigVersionsAsync(
string id,
ConfigsListConfigVersionsRequest request,
RequestOptions? options = null,
@@ -56,7 +56,7 @@ WithRawResponseTask CreateConfigVersionAsync(
///
/// For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
///
- global::System.Threading.Tasks.Task DeleteConfigAsync(
+ Task DeleteConfigAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -91,7 +91,7 @@ WithRawResponseTask GetConfigVersionAsync(
///
/// For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
///
- global::System.Threading.Tasks.Task DeleteConfigVersionAsync(
+ Task DeleteConfigVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneApi.cs b/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneApi.cs
index cf50661..cf6729e 100644
--- a/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneApi.cs
+++ b/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneApi.cs
@@ -176,7 +176,7 @@ private void DisposeEvents()
///
/// Dispatches incoming WebSocket messages
///
- private async global::System.Threading.Tasks.Task OnTextMessage(Stream stream)
+ private async Task OnTextMessage(Stream stream)
{
using var json = await JsonSerializer.DeserializeAsync(stream);
if (json == null)
@@ -290,10 +290,7 @@ await ExceptionOccurred
///
/// Serializes and sends a JSON message to the server
///
- private async global::System.Threading.Tasks.Task SendJsonAsync(
- object message,
- CancellationToken cancellationToken = default
- )
+ private async Task SendJsonAsync(object message, CancellationToken cancellationToken = default)
{
await _client
.SendInstant(JsonUtils.Serialize(message), cancellationToken)
@@ -303,7 +300,7 @@ await _client
///
/// Injects a fake text message for testing. Dispatches through the normal message handling pipeline.
///
- internal async global::System.Threading.Tasks.Task InjectTestMessage(string rawJson)
+ internal async Task InjectTestMessage(string rawJson)
{
using var stream = new MemoryStream(global::System.Text.Encoding.UTF8.GetBytes(rawJson));
await OnTextMessage(stream).ConfigureAwait(false);
@@ -312,9 +309,7 @@ await _client
///
/// Asynchronously establishes a WebSocket connection.
///
- public async global::System.Threading.Tasks.Task ConnectAsync(
- CancellationToken cancellationToken = default
- )
+ public async Task ConnectAsync(CancellationToken cancellationToken = default)
{
#if NET6_0_OR_GREATER
_client.DeflateOptions = _options.EnableCompression
@@ -327,9 +322,7 @@ await _client
///
/// Asynchronously closes the WebSocket connection.
///
- public async global::System.Threading.Tasks.Task CloseAsync(
- CancellationToken cancellationToken = default
- )
+ public async Task CloseAsync(CancellationToken cancellationToken = default)
{
await _client.CloseAsync(cancellationToken).ConfigureAwait(false);
}
@@ -357,7 +350,7 @@ public void Dispose()
///
/// Sends a ControlPlanePublishEvent message to the server
///
- public async global::System.Threading.Tasks.Task Send(
+ public async Task Send(
OneOf<
SessionSettings,
UserInput,
diff --git a/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneClient.cs b/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneClient.cs
index 581c31b..223f305 100644
--- a/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneClient.cs
+++ b/src/Hume/EmpathicVoice/ControlPlane/ControlPlaneClient.cs
@@ -20,7 +20,7 @@ internal ControlPlaneClient(RawClient client)
///
/// await client.EmpathicVoice.ControlPlane.SendAsync("chat_id", new SessionSettings());
///
- public async global::System.Threading.Tasks.Task SendAsync(
+ public async Task SendAsync(
string chatId,
OneOf<
SessionSettings,
diff --git a/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneApi.cs b/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneApi.cs
index bedeeac..2726543 100644
--- a/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneApi.cs
+++ b/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneApi.cs
@@ -24,9 +24,9 @@ public partial interface IControlPlaneApi : IAsyncDisposable, IDisposable
public Event SessionSettings { get; }
public Event UnknownMessage { get; }
public ConnectionStatus Status { get; }
- global::System.Threading.Tasks.Task ConnectAsync(CancellationToken cancellationToken = default);
+ Task ConnectAsync(CancellationToken cancellationToken = default);
- global::System.Threading.Tasks.Task Send(
+ Task Send(
OneOf<
SessionSettings,
UserInput,
@@ -39,5 +39,5 @@ public partial interface IControlPlaneApi : IAsyncDisposable, IDisposable
CancellationToken cancellationToken = default
);
- global::System.Threading.Tasks.Task CloseAsync(CancellationToken cancellationToken = default);
+ Task CloseAsync(CancellationToken cancellationToken = default);
}
diff --git a/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneClient.cs b/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneClient.cs
index 43f3ce9..3297e51 100644
--- a/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneClient.cs
+++ b/src/Hume/EmpathicVoice/ControlPlane/IControlPlaneClient.cs
@@ -8,7 +8,7 @@ public partial interface IControlPlaneClient
///
/// Send a message to a specific chat.
///
- global::System.Threading.Tasks.Task SendAsync(
+ Task SendAsync(
string chatId,
OneOf<
SessionSettings,
diff --git a/src/Hume/EmpathicVoice/Prompts/IPromptsClient.cs b/src/Hume/EmpathicVoice/Prompts/IPromptsClient.cs
index e50ce07..8d9e74b 100644
--- a/src/Hume/EmpathicVoice/Prompts/IPromptsClient.cs
+++ b/src/Hume/EmpathicVoice/Prompts/IPromptsClient.cs
@@ -10,7 +10,7 @@ public partial interface IPromptsClient
///
/// See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
///
- global::System.Threading.Tasks.Task> ListPromptsAsync(
+ Task> ListPromptsAsync(
PromptsListPromptsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -56,7 +56,7 @@ WithRawResponseTask ListPromptVersionsAsync(
///
/// See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
///
- global::System.Threading.Tasks.Task DeletePromptAsync(
+ Task DeletePromptAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -91,7 +91,7 @@ WithRawResponseTask UpdatePromptNameAsync(
///
/// See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
///
- global::System.Threading.Tasks.Task DeletePromptVersionAsync(
+ Task DeletePromptVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Prompts/PromptsClient.cs b/src/Hume/EmpathicVoice/Prompts/PromptsClient.cs
index 9a8503e..e964629 100644
--- a/src/Hume/EmpathicVoice/Prompts/PromptsClient.cs
+++ b/src/Hume/EmpathicVoice/Prompts/PromptsClient.cs
@@ -29,9 +29,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListPromptsInternalAsyncCore(
+ private async Task> ListPromptsInternalAsyncCore(
PromptsListPromptsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -119,9 +117,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreatePromptAsyncCore(
+ private async Task> CreatePromptAsyncCore(
PostedPrompt request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -203,9 +199,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListPromptVersionsAsyncCore(
+ private async Task> ListPromptVersionsAsyncCore(
string id,
PromptsListPromptVersionsRequest request,
RequestOptions? options = null,
@@ -296,9 +290,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreatePromptVersionAsyncCore(
+ private async Task> CreatePromptVersionAsyncCore(
string id,
PostedPromptVersion request,
RequestOptions? options = null,
@@ -384,9 +376,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdatePromptNameAsyncCore(
+ private async Task> UpdatePromptNameAsyncCore(
string id,
PostedPromptName request,
RequestOptions? options = null,
@@ -459,9 +449,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetPromptVersionAsyncCore(
+ private async Task> GetPromptVersionAsyncCore(
string id,
int version,
RequestOptions? options = null,
@@ -546,9 +534,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdatePromptDescriptionAsyncCore(
+ private async Task> UpdatePromptDescriptionAsyncCore(
string id,
int version,
PostedPromptVersionDescription request,
@@ -646,7 +632,7 @@ private WithRawResponseTask ListPromptsInternalAsync(
/// new PromptsListPromptsRequest { PageNumber = 0, PageSize = 2 }
/// );
///
- public async global::System.Threading.Tasks.Task> ListPromptsAsync(
+ public async Task> ListPromptsAsync(
PromptsListPromptsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -766,7 +752,7 @@ public WithRawResponseTask ListPromptVersionsAsync(
///
/// await client.EmpathicVoice.Prompts.DeletePromptAsync("your-prompt-id");
///
- public async global::System.Threading.Tasks.Task DeletePromptAsync(
+ public async Task DeletePromptAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -875,7 +861,7 @@ public WithRawResponseTask UpdatePromptNameAsync(
///
/// await client.EmpathicVoice.Prompts.DeletePromptVersionAsync("your-prompt-id", 1);
///
- public async global::System.Threading.Tasks.Task DeletePromptVersionAsync(
+ public async Task DeletePromptVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Tools/IToolsClient.cs b/src/Hume/EmpathicVoice/Tools/IToolsClient.cs
index 91a0c6a..fc987d5 100644
--- a/src/Hume/EmpathicVoice/Tools/IToolsClient.cs
+++ b/src/Hume/EmpathicVoice/Tools/IToolsClient.cs
@@ -10,7 +10,7 @@ public partial interface IToolsClient
///
/// Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
///
- global::System.Threading.Tasks.Task> ListToolsAsync(
+ Task> ListToolsAsync(
ToolsListToolsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -32,7 +32,7 @@ public partial interface IToolsClient
///
/// Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
///
- global::System.Threading.Tasks.Task> ListToolVersionsAsync(
+ Task> ListToolVersionsAsync(
string id,
ToolsListToolVersionsRequest request,
RequestOptions? options = null,
@@ -56,7 +56,7 @@ public partial interface IToolsClient
///
/// Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
///
- global::System.Threading.Tasks.Task DeleteToolAsync(
+ Task DeleteToolAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -91,7 +91,7 @@ WithRawResponseTask UpdateToolNameAsync(
///
/// Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
///
- global::System.Threading.Tasks.Task DeleteToolVersionAsync(
+ Task DeleteToolVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Tools/ToolsClient.cs b/src/Hume/EmpathicVoice/Tools/ToolsClient.cs
index 240b3f4..3db67c5 100644
--- a/src/Hume/EmpathicVoice/Tools/ToolsClient.cs
+++ b/src/Hume/EmpathicVoice/Tools/ToolsClient.cs
@@ -29,9 +29,7 @@ private WithRawResponseTask ListToolsInternalAsync(
);
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > ListToolsInternalAsyncCore(
+ private async Task> ListToolsInternalAsyncCore(
ToolsListToolsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -121,9 +119,7 @@ private WithRawResponseTask ListToolsInternalAsync(
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreateToolAsyncCore(
+ private async Task> CreateToolAsyncCore(
PostedUserDefinedTool request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -222,7 +218,7 @@ private WithRawResponseTask ListToolVersionsInterna
);
}
- private async global::System.Threading.Tasks.Task<
+ private async Task<
WithRawResponse
> ListToolVersionsInternalAsyncCore(
string id,
@@ -317,9 +313,7 @@ private WithRawResponseTask ListToolVersionsInterna
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > CreateToolVersionAsyncCore(
+ private async Task> CreateToolVersionAsyncCore(
string id,
PostedUserDefinedToolVersion request,
RequestOptions? options = null,
@@ -405,9 +399,7 @@ private WithRawResponseTask ListToolVersionsInterna
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdateToolNameAsyncCore(
+ private async Task> UpdateToolNameAsyncCore(
string id,
PostedUserDefinedToolName request,
RequestOptions? options = null,
@@ -480,9 +472,7 @@ private WithRawResponseTask ListToolVersionsInterna
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetToolVersionAsyncCore(
+ private async Task> GetToolVersionAsyncCore(
string id,
int version,
RequestOptions? options = null,
@@ -567,9 +557,7 @@ private WithRawResponseTask ListToolVersionsInterna
}
}
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > UpdateToolDescriptionAsyncCore(
+ private async Task> UpdateToolDescriptionAsyncCore(
string id,
int version,
PostedUserDefinedToolVersionDescription request,
@@ -667,7 +655,7 @@ private WithRawResponseTask ListToolVersionsInterna
/// new ToolsListToolsRequest { PageNumber = 0, PageSize = 2 }
/// );
///
- public async global::System.Threading.Tasks.Task> ListToolsAsync(
+ public async Task> ListToolsAsync(
ToolsListToolsRequest request,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -743,9 +731,7 @@ await ListToolsInternalAsync(request, options, cancellationToken)
/// new ToolsListToolVersionsRequest()
/// );
///
- public async global::System.Threading.Tasks.Task<
- Pager
- > ListToolVersionsAsync(
+ public async Task> ListToolVersionsAsync(
string id,
ToolsListToolVersionsRequest request,
RequestOptions? options = null,
@@ -820,7 +806,7 @@ await ListToolVersionsInternalAsync(id, request, options, cancellationToken)
///
/// await client.EmpathicVoice.Tools.DeleteToolAsync("your-tool-id");
///
- public async global::System.Threading.Tasks.Task DeleteToolAsync(
+ public async Task DeleteToolAsync(
string id,
RequestOptions? options = null,
CancellationToken cancellationToken = default
@@ -929,7 +915,7 @@ public WithRawResponseTask UpdateToolNameAsync(
///
/// await client.EmpathicVoice.Tools.DeleteToolVersionAsync("your-tool-id", 1);
///
- public async global::System.Threading.Tasks.Task DeleteToolVersionAsync(
+ public async Task DeleteToolVersionAsync(
string id,
int version,
RequestOptions? options = null,
diff --git a/src/Hume/EmpathicVoice/Types/BuiltInTool.cs b/src/Hume/EmpathicVoice/Types/BuiltInTool.cs
index 581c900..e9601f1 100644
--- a/src/Hume/EmpathicVoice/Types/BuiltInTool.cs
+++ b/src/Hume/EmpathicVoice/Types/BuiltInTool.cs
@@ -57,7 +57,7 @@ internal class BuiltInToolSerializer : JsonConverter
{
public override BuiltInTool Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -80,7 +80,7 @@ JsonSerializerOptions options
public override BuiltInTool ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ContextType.cs b/src/Hume/EmpathicVoice/Types/ContextType.cs
index b6d220d..da7a436 100644
--- a/src/Hume/EmpathicVoice/Types/ContextType.cs
+++ b/src/Hume/EmpathicVoice/Types/ContextType.cs
@@ -57,7 +57,7 @@ internal class ContextTypeSerializer : JsonConverter
{
public override ContextType Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -80,7 +80,7 @@ JsonSerializerOptions options
public override ContextType ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/LanguageModelType.cs b/src/Hume/EmpathicVoice/Types/LanguageModelType.cs
index 4979155..f60a047 100644
--- a/src/Hume/EmpathicVoice/Types/LanguageModelType.cs
+++ b/src/Hume/EmpathicVoice/Types/LanguageModelType.cs
@@ -229,7 +229,7 @@ internal class LanguageModelTypeSerializer : JsonConverter
{
public override LanguageModelType Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -252,7 +252,7 @@ JsonSerializerOptions options
public override LanguageModelType ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ModelProviderEnum.cs b/src/Hume/EmpathicVoice/Types/ModelProviderEnum.cs
index 345e417..8da9315 100644
--- a/src/Hume/EmpathicVoice/Types/ModelProviderEnum.cs
+++ b/src/Hume/EmpathicVoice/Types/ModelProviderEnum.cs
@@ -77,7 +77,7 @@ internal class ModelProviderEnumSerializer : JsonConverter
{
public override ModelProviderEnum Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -100,7 +100,7 @@ JsonSerializerOptions options
public override ModelProviderEnum ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/PostedBuiltinToolName.cs b/src/Hume/EmpathicVoice/Types/PostedBuiltinToolName.cs
index 239e2fa..836c20c 100644
--- a/src/Hume/EmpathicVoice/Types/PostedBuiltinToolName.cs
+++ b/src/Hume/EmpathicVoice/Types/PostedBuiltinToolName.cs
@@ -57,7 +57,7 @@ internal class PostedBuiltinToolNameSerializer : JsonConverter
[JsonPropertyName("scores")]
public required EmotionScores Scores { get; set; }
diff --git a/src/Hume/EmpathicVoice/Types/ReturnBuiltinToolToolType.cs b/src/Hume/EmpathicVoice/Types/ReturnBuiltinToolToolType.cs
index 3a5d971..7103480 100644
--- a/src/Hume/EmpathicVoice/Types/ReturnBuiltinToolToolType.cs
+++ b/src/Hume/EmpathicVoice/Types/ReturnBuiltinToolToolType.cs
@@ -57,7 +57,7 @@ internal class ReturnBuiltinToolToolTypeSerializer : JsonConverter
{
public override ReturnChatStatus Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -88,7 +88,7 @@ JsonSerializerOptions options
public override ReturnChatStatus ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ReturnPagedChatGroupsPaginationDirection.cs b/src/Hume/EmpathicVoice/Types/ReturnPagedChatGroupsPaginationDirection.cs
index 486ca87..d2114ae 100644
--- a/src/Hume/EmpathicVoice/Types/ReturnPagedChatGroupsPaginationDirection.cs
+++ b/src/Hume/EmpathicVoice/Types/ReturnPagedChatGroupsPaginationDirection.cs
@@ -66,7 +66,7 @@ internal class ReturnPagedChatGroupsPaginationDirectionSerializer
{
public override ReturnPagedChatGroupsPaginationDirection Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -89,7 +89,7 @@ JsonSerializerOptions options
public override ReturnPagedChatGroupsPaginationDirection ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ReturnPagedChatsPaginationDirection.cs b/src/Hume/EmpathicVoice/Types/ReturnPagedChatsPaginationDirection.cs
index 9d9e1cb..988b7d6 100644
--- a/src/Hume/EmpathicVoice/Types/ReturnPagedChatsPaginationDirection.cs
+++ b/src/Hume/EmpathicVoice/Types/ReturnPagedChatsPaginationDirection.cs
@@ -61,7 +61,7 @@ internal class ReturnPagedChatsPaginationDirectionSerializer
{
public override ReturnPagedChatsPaginationDirection Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -84,7 +84,7 @@ JsonSerializerOptions options
public override ReturnPagedChatsPaginationDirection ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ReturnPromptVersionType.cs b/src/Hume/EmpathicVoice/Types/ReturnPromptVersionType.cs
index c165bfe..c610a13 100644
--- a/src/Hume/EmpathicVoice/Types/ReturnPromptVersionType.cs
+++ b/src/Hume/EmpathicVoice/Types/ReturnPromptVersionType.cs
@@ -57,7 +57,7 @@ internal class ReturnPromptVersionTypeSerializer : JsonConverter
{
public override Role Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -82,7 +82,7 @@ public override void Write(Utf8JsonWriter writer, Role value, JsonSerializerOpti
public override Role ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/ToolType.cs b/src/Hume/EmpathicVoice/Types/ToolType.cs
index a43bf8c..921d5c8 100644
--- a/src/Hume/EmpathicVoice/Types/ToolType.cs
+++ b/src/Hume/EmpathicVoice/Types/ToolType.cs
@@ -55,7 +55,7 @@ internal class ToolTypeSerializer : JsonConverter
{
public override ToolType Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -78,7 +78,7 @@ JsonSerializerOptions options
public override ToolType ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/VoiceProvider.cs b/src/Hume/EmpathicVoice/Types/VoiceProvider.cs
index edfbbed..edcd966 100644
--- a/src/Hume/EmpathicVoice/Types/VoiceProvider.cs
+++ b/src/Hume/EmpathicVoice/Types/VoiceProvider.cs
@@ -57,7 +57,7 @@ internal class VoiceProviderSerializer : JsonConverter
{
public override VoiceProvider Read(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
@@ -80,7 +80,7 @@ JsonSerializerOptions options
public override VoiceProvider ReadAsPropertyName(
ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
+ Type typeToConvert,
JsonSerializerOptions options
)
{
diff --git a/src/Hume/EmpathicVoice/Types/WebhookEventChatStartType.cs b/src/Hume/EmpathicVoice/Types/WebhookEventChatStartType.cs
index 3a9bd8d..28b2f82 100644
--- a/src/Hume/EmpathicVoice/Types/WebhookEventChatStartType.cs
+++ b/src/Hume/EmpathicVoice/Types/WebhookEventChatStartType.cs
@@ -59,7 +59,7 @@ internal class WebhookEventChatStartTypeSerializer : JsonConverter>
- > ListJobsAsyncCore(
- BatchListJobsRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _queryString = new Hume.Core.QueryStringBuilder.Builder(capacity: 6)
- .Add("limit", request.Limit)
- .Add("status", request.Status)
- .Add("when", request.When)
- .Add("timestamp_ms", request.TimestampMs)
- .Add("sort_by", request.SortBy)
- .Add("direction", request.Direction)
- .MergeAdditional(options?.AdditionalQueryParameters)
- .Build();
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var response = await _client
- .SendRequestAsync(
- new JsonRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Get,
- Path = "v0/batch/jobs",
- QueryString = _queryString,
- Headers = _headers,
- Options = options,
- },
- cancellationToken
- )
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- try
- {
- var responseData = JsonUtils.Deserialize>(responseBody)!;
- return new WithRawResponse>()
- {
- Data = responseData,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- catch (JsonException e)
- {
- throw new HumeClientApiException(
- "Failed to deserialize response",
- response.StatusCode,
- responseBody,
- e
- );
- }
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > StartInferenceJobAsyncCore(
- InferenceBaseRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var response = await _client
- .SendRequestAsync(
- new JsonRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Post,
- Path = "v0/batch/jobs",
- Body = request,
- Headers = _headers,
- ContentType = "application/json",
- Options = options,
- },
- cancellationToken
- )
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- try
- {
- var responseData = JsonUtils.Deserialize(responseBody)!;
- return new WithRawResponse()
- {
- Data = responseData,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- catch (JsonException e)
- {
- throw new HumeClientApiException(
- "Failed to deserialize response",
- response.StatusCode,
- responseBody,
- e
- );
- }
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetJobDetailsAsyncCore(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var response = await _client
- .SendRequestAsync(
- new JsonRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Get,
- Path = string.Format(
- "v0/batch/jobs/{0}",
- ValueConvert.ToPathParameterString(id)
- ),
- Headers = _headers,
- Options = options,
- },
- cancellationToken
- )
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- try
- {
- var responseData = JsonUtils.Deserialize(responseBody)!;
- return new WithRawResponse()
- {
- Data = responseData,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- catch (JsonException e)
- {
- throw new HumeClientApiException(
- "Failed to deserialize response",
- response.StatusCode,
- responseBody,
- e
- );
- }
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- private async global::System.Threading.Tasks.Task<
- WithRawResponse>
- > GetJobPredictionsAsyncCore(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var response = await _client
- .SendRequestAsync(
- new JsonRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Get,
- Path = string.Format(
- "v0/batch/jobs/{0}/predictions",
- ValueConvert.ToPathParameterString(id)
- ),
- Headers = _headers,
- Options = options,
- },
- cancellationToken
- )
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- try
- {
- var responseData = JsonUtils.Deserialize>(
- responseBody
- )!;
- return new WithRawResponse>()
- {
- Data = responseData,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- catch (JsonException e)
- {
- throw new HumeClientApiException(
- "Failed to deserialize response",
- response.StatusCode,
- responseBody,
- e
- );
- }
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > GetJobArtifactsAsyncCore(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var response = await _client
- .SendRequestAsync(
- new JsonRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Get,
- Path = string.Format(
- "v0/batch/jobs/{0}/artifacts",
- ValueConvert.ToPathParameterString(id)
- ),
- Headers = _headers,
- Options = options,
- },
- cancellationToken
- )
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var stream = await response.Raw.Content.ReadAsStreamAsync();
- return new WithRawResponse()
- {
- Data = stream,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- private async global::System.Threading.Tasks.Task<
- WithRawResponse
- > StartInferenceJobFromLocalFileAsyncCore(
- BatchStartInferenceJobFromLocalFileRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- var _headers = await new Hume.Core.HeadersBuilder.Builder()
- .Add(_client.Options.Headers)
- .Add(_client.Options.AdditionalHeaders)
- .Add(options?.AdditionalHeaders)
- .BuildAsync()
- .ConfigureAwait(false);
- var multipartFormRequest_ = new MultipartFormRequest
- {
- BaseUrl = _client.Options.Environment.Base,
- Method = HttpMethod.Post,
- Path = "v0/batch/jobs",
- Headers = _headers,
- Options = options,
- };
- multipartFormRequest_.AddJsonPart("json", request.Json);
- multipartFormRequest_.AddFileParameterParts("file", request.File);
- var response = await _client
- .SendRequestAsync(multipartFormRequest_, cancellationToken)
- .ConfigureAwait(false);
- if (response.StatusCode is >= 200 and < 400)
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- try
- {
- var responseData = JsonUtils.Deserialize(responseBody)!;
- return new WithRawResponse()
- {
- Data = responseData,
- RawResponse = new RawResponse()
- {
- StatusCode = response.Raw.StatusCode,
- Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
- Headers = ResponseHeaders.FromHttpResponseMessage(response.Raw),
- },
- };
- }
- catch (JsonException e)
- {
- throw new HumeClientApiException(
- "Failed to deserialize response",
- response.StatusCode,
- responseBody,
- e
- );
- }
- }
- {
- var responseBody = await response
- .Raw.Content.ReadAsStringAsync(cancellationToken)
- .ConfigureAwait(false);
- throw new HumeClientApiException(
- $"Error with status code {response.StatusCode}",
- response.StatusCode,
- responseBody
- );
- }
- }
-
- ///
- /// Sort and filter jobs.
- ///
- ///
- /// await client.ExpressionMeasurement.Batch.ListJobsAsync(new BatchListJobsRequest());
- ///
- public WithRawResponseTask> ListJobsAsync(
- BatchListJobsRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask>(
- ListJobsAsyncCore(request, options, cancellationToken)
- );
- }
-
- ///
- /// Start a new measurement inference job.
- ///
- ///
- /// await client.ExpressionMeasurement.Batch.StartInferenceJobAsync(
- /// new InferenceBaseRequest
- /// {
- /// Urls = new List<string>() { "https://hume-tutorials.s3.amazonaws.com/faces.zip" },
- /// Notify = true,
- /// }
- /// );
- ///
- public WithRawResponseTask StartInferenceJobAsync(
- InferenceBaseRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask(
- StartInferenceJobAsyncCore(request, options, cancellationToken)
- );
- }
-
- ///
- /// Get the request details and state of a given job.
- ///
- ///
- /// await client.ExpressionMeasurement.Batch.GetJobDetailsAsync("job_id");
- ///
- public WithRawResponseTask GetJobDetailsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask(
- GetJobDetailsAsyncCore(id, options, cancellationToken)
- );
- }
-
- ///
- /// Get the JSON predictions of a completed inference job.
- ///
- ///
- /// await client.ExpressionMeasurement.Batch.GetJobPredictionsAsync("job_id");
- ///
- public WithRawResponseTask> GetJobPredictionsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask>(
- GetJobPredictionsAsyncCore(id, options, cancellationToken)
- );
- }
-
- ///
- /// Get the artifacts ZIP of a completed inference job.
- ///
- public WithRawResponseTask GetJobArtifactsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask(
- GetJobArtifactsAsyncCore(id, options, cancellationToken)
- );
- }
-
- ///
- /// Start a new batch inference job.
- ///
- ///
- /// await client.ExpressionMeasurement.Batch.StartInferenceJobFromLocalFileAsync(
- /// new BatchStartInferenceJobFromLocalFileRequest()
- /// );
- ///
- public WithRawResponseTask StartInferenceJobFromLocalFileAsync(
- BatchStartInferenceJobFromLocalFileRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- )
- {
- return new WithRawResponseTask(
- StartInferenceJobFromLocalFileAsyncCore(request, options, cancellationToken)
- );
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/IBatchClient.cs b/src/Hume/ExpressionMeasurement/Batch/IBatchClient.cs
deleted file mode 100644
index 8b2403d..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/IBatchClient.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using Hume;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-public partial interface IBatchClient
-{
- ///
- /// Sort and filter jobs.
- ///
- WithRawResponseTask> ListJobsAsync(
- BatchListJobsRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-
- ///
- /// Start a new measurement inference job.
- ///
- WithRawResponseTask StartInferenceJobAsync(
- InferenceBaseRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-
- ///
- /// Get the request details and state of a given job.
- ///
- WithRawResponseTask GetJobDetailsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-
- ///
- /// Get the JSON predictions of a completed inference job.
- ///
- WithRawResponseTask> GetJobPredictionsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-
- ///
- /// Get the artifacts ZIP of a completed inference job.
- ///
- WithRawResponseTask GetJobArtifactsAsync(
- string id,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-
- ///
- /// Start a new batch inference job.
- ///
- WithRawResponseTask StartInferenceJobFromLocalFileAsync(
- BatchStartInferenceJobFromLocalFileRequest request,
- RequestOptions? options = null,
- CancellationToken cancellationToken = default
- );
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Requests/BatchListJobsRequest.cs b/src/Hume/ExpressionMeasurement/Batch/Requests/BatchListJobsRequest.cs
deleted file mode 100644
index 921a1e0..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Requests/BatchListJobsRequest.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using global::System.Text.Json.Serialization;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record BatchListJobsRequest
-{
- ///
- /// The maximum number of jobs to include in the response.
- ///
- [JsonIgnore]
- public int? Limit { get; set; }
-
- ///
- /// Include only jobs of this status in the response. There are four possible statuses:
- ///
- /// - `QUEUED`: The job has been received and is waiting to be processed.
- ///
- /// - `IN_PROGRESS`: The job is currently being processed.
- ///
- /// - `COMPLETED`: The job has finished processing.
- ///
- /// - `FAILED`: The job encountered an error and could not be completed successfully.
- ///
- [JsonIgnore]
- public IEnumerable Status { get; set; } = new List();
-
- ///
- /// Specify whether to include jobs created before or after a given `timestamp_ms`.
- ///
- [JsonIgnore]
- public When? When { get; set; }
-
- ///
- /// Provide a timestamp in milliseconds to filter jobs.
- ///
- /// When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.
- ///
- [JsonIgnore]
- public long? TimestampMs { get; set; }
-
- ///
- /// Specify which timestamp to sort the jobs by.
- ///
- /// - `created`: Sort jobs by the time of creation, indicated by `created_timestamp_ms`.
- ///
- /// - `started`: Sort jobs by the time processing started, indicated by `started_timestamp_ms`.
- ///
- /// - `ended`: Sort jobs by the time processing ended, indicated by `ended_timestamp_ms`.
- ///
- [JsonIgnore]
- public SortBy? SortBy { get; set; }
-
- ///
- /// Specify the order in which to sort the jobs. Defaults to descending order.
- ///
- /// - `asc`: Sort in ascending order (chronological, with the oldest records first).
- ///
- /// - `desc`: Sort in descending order (reverse-chronological, with the newest records first).
- ///
- [JsonIgnore]
- public Direction? Direction { get; set; }
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Requests/BatchStartInferenceJobFromLocalFileRequest.cs b/src/Hume/ExpressionMeasurement/Batch/Requests/BatchStartInferenceJobFromLocalFileRequest.cs
deleted file mode 100644
index ec76c87..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Requests/BatchStartInferenceJobFromLocalFileRequest.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record BatchStartInferenceJobFromLocalFileRequest
-{
- ///
- /// Stringified JSON object containing the inference job configuration.
- ///
- public InferenceBaseRequest? Json { get; set; }
-
- public IEnumerable File { get; set; } = new List();
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/Alternative.cs b/src/Hume/ExpressionMeasurement/Batch/Types/Alternative.cs
deleted file mode 100644
index b7c0479..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/Alternative.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[JsonConverter(typeof(AlternativeConverter))]
-public readonly struct Alternative
-{
- public const string Value = "language_only";
-
- public static implicit operator string(Alternative _) => Value;
-
- public override string ToString() => Value;
-
- public override int GetHashCode() => global::System.StringComparer.Ordinal.GetHashCode(Value);
-
- public override bool Equals(object? obj) => obj is Alternative;
-
- public static bool operator ==(Alternative _, Alternative __) => true;
-
- public static bool operator !=(Alternative _, Alternative __) => false;
-
- internal sealed class AlternativeConverter : JsonConverter
- {
- public override Alternative Read(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var value = reader.GetString();
- if (value != Alternative.Value)
- {
- throw new JsonException(
- "Expected \""
- + Alternative.Value
- + "\" for type discriminator but got \""
- + value
- + "\"."
- );
- }
- return new Alternative();
- }
-
- public override void Write(
- Utf8JsonWriter writer,
- Alternative value,
- JsonSerializerOptions options
- ) => writer.WriteStringValue(Alternative.Value);
-
- public override Alternative ReadAsPropertyName(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var value = reader.GetString();
- if (value != Alternative.Value)
- {
- throw new JsonException(
- "Expected \""
- + Alternative.Value
- + "\" for type discriminator but got \""
- + value
- + "\"."
- );
- }
- return new Alternative();
- }
-
- public override void WriteAsPropertyName(
- Utf8JsonWriter writer,
- Alternative value,
- JsonSerializerOptions options
- ) => writer.WritePropertyName(Alternative.Value);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/Bcp47Tag.cs b/src/Hume/ExpressionMeasurement/Batch/Types/Bcp47Tag.cs
deleted file mode 100644
index 765cd36..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/Bcp47Tag.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[JsonConverter(typeof(Bcp47Tag.Bcp47TagSerializer))]
-[Serializable]
-public readonly record struct Bcp47Tag : IStringEnum
-{
- public static readonly Bcp47Tag Zh = new(Values.Zh);
-
- public static readonly Bcp47Tag Da = new(Values.Da);
-
- public static readonly Bcp47Tag Nl = new(Values.Nl);
-
- public static readonly Bcp47Tag En = new(Values.En);
-
- public static readonly Bcp47Tag EnAu = new(Values.EnAu);
-
- public static readonly Bcp47Tag EnIn = new(Values.EnIn);
-
- public static readonly Bcp47Tag EnNz = new(Values.EnNz);
-
- public static readonly Bcp47Tag EnGb = new(Values.EnGb);
-
- public static readonly Bcp47Tag Fr = new(Values.Fr);
-
- public static readonly Bcp47Tag FrCa = new(Values.FrCa);
-
- public static readonly Bcp47Tag De = new(Values.De);
-
- public static readonly Bcp47Tag Hi = new(Values.Hi);
-
- public static readonly Bcp47Tag HiLatn = new(Values.HiLatn);
-
- public static readonly Bcp47Tag Id = new(Values.Id);
-
- public static readonly Bcp47Tag It = new(Values.It);
-
- public static readonly Bcp47Tag Ja = new(Values.Ja);
-
- public static readonly Bcp47Tag Ko = new(Values.Ko);
-
- public static readonly Bcp47Tag No = new(Values.No);
-
- public static readonly Bcp47Tag Pl = new(Values.Pl);
-
- public static readonly Bcp47Tag Pt = new(Values.Pt);
-
- public static readonly Bcp47Tag PtBr = new(Values.PtBr);
-
- public static readonly Bcp47Tag PtPt = new(Values.PtPt);
-
- public static readonly Bcp47Tag Ru = new(Values.Ru);
-
- public static readonly Bcp47Tag Es = new(Values.Es);
-
- public static readonly Bcp47Tag Es419 = new(Values.Es419);
-
- public static readonly Bcp47Tag Sv = new(Values.Sv);
-
- public static readonly Bcp47Tag Ta = new(Values.Ta);
-
- public static readonly Bcp47Tag Tr = new(Values.Tr);
-
- public static readonly Bcp47Tag Uk = new(Values.Uk);
-
- public Bcp47Tag(string value)
- {
- Value = value;
- }
-
- ///
- /// The string value of the enum.
- ///
- public string Value { get; }
-
- ///
- /// Create a string enum with the given value.
- ///
- public static Bcp47Tag FromCustom(string value)
- {
- return new Bcp47Tag(value);
- }
-
- public bool Equals(string? other)
- {
- return Value.Equals(other);
- }
-
- ///
- /// Returns the string value of the enum.
- ///
- public override string ToString()
- {
- return Value;
- }
-
- public static bool operator ==(Bcp47Tag value1, string value2) => value1.Value.Equals(value2);
-
- public static bool operator !=(Bcp47Tag value1, string value2) => !value1.Value.Equals(value2);
-
- public static explicit operator string(Bcp47Tag value) => value.Value;
-
- public static explicit operator Bcp47Tag(string value) => new(value);
-
- internal class Bcp47TagSerializer : JsonConverter
- {
- public override Bcp47Tag Read(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var stringValue =
- reader.GetString()
- ?? throw new global::System.Exception(
- "The JSON value could not be read as a string."
- );
- return new Bcp47Tag(stringValue);
- }
-
- public override void Write(
- Utf8JsonWriter writer,
- Bcp47Tag value,
- JsonSerializerOptions options
- )
- {
- writer.WriteStringValue(value.Value);
- }
-
- public override Bcp47Tag ReadAsPropertyName(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var stringValue =
- reader.GetString()
- ?? throw new global::System.Exception(
- "The JSON property name could not be read as a string."
- );
- return new Bcp47Tag(stringValue);
- }
-
- public override void WriteAsPropertyName(
- Utf8JsonWriter writer,
- Bcp47Tag value,
- JsonSerializerOptions options
- )
- {
- writer.WritePropertyName(value.Value);
- }
- }
-
- ///
- /// Constant strings for enum values
- ///
- [Serializable]
- public static class Values
- {
- public const string Zh = "zh";
-
- public const string Da = "da";
-
- public const string Nl = "nl";
-
- public const string En = "en";
-
- public const string EnAu = "en-AU";
-
- public const string EnIn = "en-IN";
-
- public const string EnNz = "en-NZ";
-
- public const string EnGb = "en-GB";
-
- public const string Fr = "fr";
-
- public const string FrCa = "fr-CA";
-
- public const string De = "de";
-
- public const string Hi = "hi";
-
- public const string HiLatn = "hi-Latn";
-
- public const string Id = "id";
-
- public const string It = "it";
-
- public const string Ja = "ja";
-
- public const string Ko = "ko";
-
- public const string No = "no";
-
- public const string Pl = "pl";
-
- public const string Pt = "pt";
-
- public const string PtBr = "pt-BR";
-
- public const string PtPt = "pt-PT";
-
- public const string Ru = "ru";
-
- public const string Es = "es";
-
- public const string Es419 = "es-419";
-
- public const string Sv = "sv";
-
- public const string Ta = "ta";
-
- public const string Tr = "tr";
-
- public const string Uk = "uk";
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/BoundingBox.cs b/src/Hume/ExpressionMeasurement/Batch/Types/BoundingBox.cs
deleted file mode 100644
index 8efc430..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/BoundingBox.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-///
-/// A bounding box around a face.
-///
-[Serializable]
-public record BoundingBox : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// x-coordinate of bounding box top left corner.
- ///
- [JsonPropertyName("x")]
- public required double X { get; set; }
-
- ///
- /// y-coordinate of bounding box top left corner.
- ///
- [JsonPropertyName("y")]
- public required double Y { get; set; }
-
- ///
- /// Bounding box width.
- ///
- [JsonPropertyName("w")]
- public required double W { get; set; }
-
- ///
- /// Bounding box height.
- ///
- [JsonPropertyName("h")]
- public required double H { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/BurstPrediction.cs b/src/Hume/ExpressionMeasurement/Batch/Types/BurstPrediction.cs
deleted file mode 100644
index 420cf2c..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/BurstPrediction.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record BurstPrediction : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("time")]
- public required TimeInterval Time { get; set; }
-
- ///
- /// A high-dimensional embedding in emotion space.
- ///
- [JsonPropertyName("emotions")]
- public IEnumerable Emotions { get; set; } = new List();
-
- ///
- /// Modality-specific descriptive features and their scores.
- ///
- [JsonPropertyName("descriptions")]
- public IEnumerable Descriptions { get; set; } =
- new List();
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedEmbeddingGeneration.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CompletedEmbeddingGeneration.cs
deleted file mode 100644
index ced418a..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedEmbeddingGeneration.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CompletedEmbeddingGeneration : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// When this job was created (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("created_timestamp_ms")]
- public required long CreatedTimestampMs { get; set; }
-
- ///
- /// When this job started (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("started_timestamp_ms")]
- public required long StartedTimestampMs { get; set; }
-
- ///
- /// When this job ended (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("ended_timestamp_ms")]
- public required long EndedTimestampMs { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedInference.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CompletedInference.cs
deleted file mode 100644
index 231f93e..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedInference.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CompletedInference : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// When this job was created (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("created_timestamp_ms")]
- public required long CreatedTimestampMs { get; set; }
-
- ///
- /// When this job started (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("started_timestamp_ms")]
- public required long StartedTimestampMs { get; set; }
-
- ///
- /// When this job ended (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("ended_timestamp_ms")]
- public required long EndedTimestampMs { get; set; }
-
- ///
- /// The number of predictions that were generated by this job.
- ///
- [JsonPropertyName("num_predictions")]
- public required ulong NumPredictions { get; set; }
-
- ///
- /// The number of errors that occurred while running this job.
- ///
- [JsonPropertyName("num_errors")]
- public required ulong NumErrors { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedState.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CompletedState.cs
deleted file mode 100644
index d812bad..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedState.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CompletedState : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// When this job was created (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("created_timestamp_ms")]
- public required long CreatedTimestampMs { get; set; }
-
- ///
- /// When this job started (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("started_timestamp_ms")]
- public required long StartedTimestampMs { get; set; }
-
- ///
- /// When this job ended (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("ended_timestamp_ms")]
- public required long EndedTimestampMs { get; set; }
-
- ///
- /// The number of predictions that were generated by this job.
- ///
- [JsonPropertyName("num_predictions")]
- public required ulong NumPredictions { get; set; }
-
- ///
- /// The number of errors that occurred while running this job.
- ///
- [JsonPropertyName("num_errors")]
- public required ulong NumErrors { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTlInference.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTlInference.cs
deleted file mode 100644
index 9757ad6..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTlInference.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CompletedTlInference : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// When this job was created (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("created_timestamp_ms")]
- public required long CreatedTimestampMs { get; set; }
-
- ///
- /// When this job started (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("started_timestamp_ms")]
- public required long StartedTimestampMs { get; set; }
-
- ///
- /// When this job ended (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("ended_timestamp_ms")]
- public required long EndedTimestampMs { get; set; }
-
- ///
- /// The number of predictions that were generated by this job.
- ///
- [JsonPropertyName("num_predictions")]
- public required ulong NumPredictions { get; set; }
-
- ///
- /// The number of errors that occurred while running this job.
- ///
- [JsonPropertyName("num_errors")]
- public required ulong NumErrors { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTraining.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTraining.cs
deleted file mode 100644
index 90d2eff..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CompletedTraining.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CompletedTraining : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// When this job was created (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("created_timestamp_ms")]
- public required long CreatedTimestampMs { get; set; }
-
- ///
- /// When this job started (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("started_timestamp_ms")]
- public required long StartedTimestampMs { get; set; }
-
- ///
- /// When this job ended (Unix timestamp in milliseconds).
- ///
- [JsonPropertyName("ended_timestamp_ms")]
- public required long EndedTimestampMs { get; set; }
-
- [JsonPropertyName("custom_model")]
- public required TrainingCustomModel CustomModel { get; set; }
-
- [JsonPropertyName("alternatives")]
- public Dictionary? Alternatives { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelId.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelId.cs
deleted file mode 100644
index 949bca2..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelId.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelId : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("id")]
- public required string Id { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelPrediction.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelPrediction.cs
deleted file mode 100644
index 306dcc2..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelPrediction.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelPrediction : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("output")]
- public Dictionary Output { get; set; } = new Dictionary();
-
- [JsonPropertyName("error")]
- public required string Error { get; set; }
-
- [JsonPropertyName("task_type")]
- public required string TaskType { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelRequest.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelRequest.cs
deleted file mode 100644
index 2060de3..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelRequest.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelRequest : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("name")]
- public required string Name { get; set; }
-
- [JsonPropertyName("description")]
- public string? Description { get; set; }
-
- [JsonPropertyName("tags")]
- public IEnumerable? Tags { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelVersionId.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelVersionId.cs
deleted file mode 100644
index 67a4849..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelVersionId.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelVersionId : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("version_id")]
- public required string VersionId { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsInferenceJob.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsInferenceJob.cs
deleted file mode 100644
index 6afb3df..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsInferenceJob.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelsInferenceJob : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("type")]
- public required string Type { get; set; }
-
- ///
- /// The ID associated with this job.
- ///
- [JsonPropertyName("job_id")]
- public required string JobId { get; set; }
-
- [JsonPropertyName("user_id")]
- public required string UserId { get; set; }
-
- [JsonPropertyName("request")]
- public required TlInferenceBaseRequest Request { get; set; }
-
- [JsonPropertyName("state")]
- public required StateTlInference State { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsTrainingJob.cs b/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsTrainingJob.cs
deleted file mode 100644
index 945045f..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/CustomModelsTrainingJob.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record CustomModelsTrainingJob : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("type")]
- public required string Type { get; set; }
-
- ///
- /// The ID associated with this job.
- ///
- [JsonPropertyName("job_id")]
- public required string JobId { get; set; }
-
- [JsonPropertyName("user_id")]
- public required string UserId { get; set; }
-
- [JsonPropertyName("request")]
- public required TrainingBaseRequest Request { get; set; }
-
- [JsonPropertyName("state")]
- public required StateTraining State { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/DatasetId.cs b/src/Hume/ExpressionMeasurement/Batch/Types/DatasetId.cs
deleted file mode 100644
index 0489461..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/DatasetId.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record DatasetId : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("id")]
- public required string Id { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/DatasetVersionId.cs b/src/Hume/ExpressionMeasurement/Batch/Types/DatasetVersionId.cs
deleted file mode 100644
index 117fd00..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/DatasetVersionId.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record DatasetVersionId : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("version_id")]
- public required string VersionId { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/DescriptionsScore.cs b/src/Hume/ExpressionMeasurement/Batch/Types/DescriptionsScore.cs
deleted file mode 100644
index 16c8e99..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/DescriptionsScore.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record DescriptionsScore : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// Name of the descriptive feature being expressed.
- ///
- [JsonPropertyName("name")]
- public required string Name { get; set; }
-
- ///
- /// Embedding value for the descriptive feature being expressed.
- ///
- [JsonPropertyName("score")]
- public required float Score { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/Direction.cs b/src/Hume/ExpressionMeasurement/Batch/Types/Direction.cs
deleted file mode 100644
index cd8d741..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/Direction.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[JsonConverter(typeof(Direction.DirectionSerializer))]
-[Serializable]
-public readonly record struct Direction : IStringEnum
-{
- public static readonly Direction Asc = new(Values.Asc);
-
- public static readonly Direction Desc = new(Values.Desc);
-
- public Direction(string value)
- {
- Value = value;
- }
-
- ///
- /// The string value of the enum.
- ///
- public string Value { get; }
-
- ///
- /// Create a string enum with the given value.
- ///
- public static Direction FromCustom(string value)
- {
- return new Direction(value);
- }
-
- public bool Equals(string? other)
- {
- return Value.Equals(other);
- }
-
- ///
- /// Returns the string value of the enum.
- ///
- public override string ToString()
- {
- return Value;
- }
-
- public static bool operator ==(Direction value1, string value2) => value1.Value.Equals(value2);
-
- public static bool operator !=(Direction value1, string value2) => !value1.Value.Equals(value2);
-
- public static explicit operator string(Direction value) => value.Value;
-
- public static explicit operator Direction(string value) => new(value);
-
- internal class DirectionSerializer : JsonConverter
- {
- public override Direction Read(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var stringValue =
- reader.GetString()
- ?? throw new global::System.Exception(
- "The JSON value could not be read as a string."
- );
- return new Direction(stringValue);
- }
-
- public override void Write(
- Utf8JsonWriter writer,
- Direction value,
- JsonSerializerOptions options
- )
- {
- writer.WriteStringValue(value.Value);
- }
-
- public override Direction ReadAsPropertyName(
- ref Utf8JsonReader reader,
- global::System.Type typeToConvert,
- JsonSerializerOptions options
- )
- {
- var stringValue =
- reader.GetString()
- ?? throw new global::System.Exception(
- "The JSON property name could not be read as a string."
- );
- return new Direction(stringValue);
- }
-
- public override void WriteAsPropertyName(
- Utf8JsonWriter writer,
- Direction value,
- JsonSerializerOptions options
- )
- {
- writer.WritePropertyName(value.Value);
- }
- }
-
- ///
- /// Constant strings for enum values
- ///
- [Serializable]
- public static class Values
- {
- public const string Asc = "asc";
-
- public const string Desc = "desc";
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationBaseRequest.cs b/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationBaseRequest.cs
deleted file mode 100644
index 95c3c35..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationBaseRequest.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record EmbeddingGenerationBaseRequest : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// File ID and File URL pairs for an asset registry file
- ///
- [JsonPropertyName("registry_file_details")]
- public IEnumerable? RegistryFileDetails { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationJob.cs b/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationJob.cs
deleted file mode 100644
index 7cff9ef..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/EmbeddingGenerationJob.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record EmbeddingGenerationJob : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("type")]
- public required string Type { get; set; }
-
- ///
- /// The ID associated with this job.
- ///
- [JsonPropertyName("job_id")]
- public required string JobId { get; set; }
-
- [JsonPropertyName("user_id")]
- public required string UserId { get; set; }
-
- [JsonPropertyName("request")]
- public required EmbeddingGenerationBaseRequest Request { get; set; }
-
- [JsonPropertyName("state")]
- public required StateEmbeddingGeneration State { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/EmotionScore.cs b/src/Hume/ExpressionMeasurement/Batch/Types/EmotionScore.cs
deleted file mode 100644
index d29dc63..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/EmotionScore.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record EmotionScore : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// Name of the emotion being expressed.
- ///
- [JsonPropertyName("name")]
- public required string Name { get; set; }
-
- ///
- /// Embedding value for the emotion being expressed.
- ///
- [JsonPropertyName("score")]
- public required float Score { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/Error.cs b/src/Hume/ExpressionMeasurement/Batch/Types/Error.cs
deleted file mode 100644
index 06d736c..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/Error.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record Error : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// An error message.
- ///
- [JsonPropertyName("message")]
- public required string Message { get; set; }
-
- ///
- /// A file path relative to the top level source URL or file.
- ///
- [JsonPropertyName("file")]
- public required string File { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/EvaluationArgs.cs b/src/Hume/ExpressionMeasurement/Batch/Types/EvaluationArgs.cs
deleted file mode 100644
index 7df941d..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/EvaluationArgs.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record EvaluationArgs : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- [JsonPropertyName("validation")]
- public ValidationArgs? Validation { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/Face.cs b/src/Hume/ExpressionMeasurement/Batch/Types/Face.cs
deleted file mode 100644
index ba29bf8..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/Face.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-///
-/// The Facial Emotional Expression model analyzes human facial expressions in images and videos. Results will be provided per frame for video files.
-///
-/// Recommended input file types: `.png`, `.jpeg`, `.mp4`
-///
-[Serializable]
-public record Face : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// Number of frames per second to process. Other frames will be omitted from the response. Set to `0` to process every frame.
- ///
- [JsonPropertyName("fps_pred")]
- public double? FpsPred { get; set; }
-
- ///
- /// Face detection probability threshold. Faces detected with a probability less than this threshold will be omitted from the response.
- ///
- [JsonPropertyName("prob_threshold")]
- public double? ProbThreshold { get; set; }
-
- ///
- /// Whether to return identifiers for faces across frames. If `true`, unique identifiers will be assigned to face bounding boxes to differentiate different faces. If `false`, all faces will be tagged with an `unknown` ID.
- ///
- [JsonPropertyName("identify_faces")]
- public bool? IdentifyFaces { get; set; }
-
- ///
- /// Minimum bounding box side length in pixels to treat as a face. Faces detected with a bounding box side length in pixels less than this threshold will be omitted from the response.
- ///
- [JsonPropertyName("min_face_size")]
- public ulong? MinFaceSize { get; set; }
-
- [JsonPropertyName("facs")]
- public Dictionary? Facs { get; set; }
-
- [JsonPropertyName("descriptions")]
- public Dictionary? Descriptions { get; set; }
-
- ///
- /// Whether to extract and save the detected faces in the artifacts zip created by each job.
- ///
- [JsonPropertyName("save_faces")]
- public bool? SaveFaces { get; set; }
-
- [JsonIgnore]
- public ReadOnlyAdditionalProperties AdditionalProperties { get; private set; } = new();
-
- void IJsonOnDeserialized.OnDeserialized() =>
- AdditionalProperties.CopyFromExtensionData(_extensionData);
-
- ///
- public override string ToString()
- {
- return JsonUtils.Serialize(this);
- }
-}
diff --git a/src/Hume/ExpressionMeasurement/Batch/Types/FacePrediction.cs b/src/Hume/ExpressionMeasurement/Batch/Types/FacePrediction.cs
deleted file mode 100644
index ded76a6..0000000
--- a/src/Hume/ExpressionMeasurement/Batch/Types/FacePrediction.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using global::System.Text.Json;
-using global::System.Text.Json.Serialization;
-using Hume;
-using Hume.Core;
-
-namespace Hume.ExpressionMeasurement.Batch;
-
-[Serializable]
-public record FacePrediction : IJsonOnDeserialized
-{
- [JsonExtensionData]
- private readonly IDictionary _extensionData =
- new Dictionary();
-
- ///
- /// Frame number
- ///
- [JsonPropertyName("frame")]
- public required ulong Frame { get; set; }
-
- ///
- /// Time in seconds when face detection occurred.
- ///
- [JsonPropertyName("time")]
- public required double Time { get; set; }
-
- ///
- /// The predicted probability that a detected face was actually a face.
- ///
- [JsonPropertyName("prob")]
- public required double Prob { get; set; }
-
- [JsonPropertyName("box")]
- public required BoundingBox Box { get; set; }
-
- ///
- /// A high-dimensional embedding in emotion space.
- ///
- [JsonPropertyName("emotions")]
- public IEnumerable Emotions { get; set; } = new List();
-
- ///
- /// FACS 2.0 features and their scores.
- ///
- [JsonPropertyName("facs")]
- public IEnumerable? Facs { get; set; }
-
- ///