From 41f142ec2c06d3041dfc55041bc13a4719a3e2a4 Mon Sep 17 00:00:00 2001 From: Lachlan Laycock Date: Tue, 17 Oct 2023 22:49:20 +0200 Subject: [PATCH] Add missing attributes for VoiceResponseModel (#5) --- client/types/types.go | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/client/types/types.go b/client/types/types.go index 4a34f2e..e1d43e5 100644 --- a/client/types/types.go +++ b/client/types/types.go @@ -38,6 +38,22 @@ type SynthesisOptions struct { SimilarityBoost float64 `json:"similarity_boost"` } +type SharingOptions struct { + Status string `json:"status"` + HistoryItemSampleId string `json:"history_item_sample_id"` + OriginalVoiceId string `json:"original_voice_id"` + PublicOwnerId string `json:"public_owner_id"` + LikedByCount int32 `json:"liked_by_count"` + ClonedByCount int32 `json:"cloned_by_count"` + WhitelistedEmails []string `json:"whitelisted_emails"` + Name string `json:"name"` + Labels map[string]string `json:"labels"` + Description string `json:"description"` + ReviewStatus string `json:"review_status"` + ReviewMessage string `json:"review_message"` + EnabledInLibrary bool `json:"enabled_in_library"` +} + type ExtendedSubscriptionResponseModel struct { Tier string `json:"tier"` CharacterCount int32 `json:"character_count"` @@ -181,14 +197,16 @@ type VerificationAttemptResponseModel struct { Recording *RecordingResponseModel `json:"recording"` } type VoiceResponseModel struct { - VoiceID string `json:"voice_id"` - Name string `json:"name"` - Samples []Sample `json:"samples"` - Category string `json:"category"` - FineTuning FineTuningResponseModel `json:"fine_tuning"` - Labels map[string]string `json:"labels"` - Description string `json:"description"` - PreviewURL string `json:"preview_url"` - AvailableForTiers []string `json:"available_for_tiers"` - Settings SynthesisOptions `json:"settings"` + VoiceID string `json:"voice_id"` + Name string `json:"name"` + Samples []Sample `json:"samples"` + Category string `json:"category"` + FineTuning FineTuningResponseModel `json:"fine_tuning"` + Labels map[string]string `json:"labels"` + Description string `json:"description"` + PreviewURL string `json:"preview_url"` + AvailableForTiers []string `json:"available_for_tiers"` + Settings SynthesisOptions `json:"settings"` + Sharing SharingOptions `json:"sharing"` + HighQualityBaseModelIds []string `json:"high_quality_base_model_ids"` }