Tags: VapiAI/server-sdk-go
Tags
feat: add SubscriptionLimits field to Call type Add a new optional `SubscriptionLimits` field to the `Call` struct that captures the organization's subscription limits (including concurrency limit information) at the time the call was made. Key changes: - Add `SubscriptionLimits *SubscriptionLimits` field to `Call` struct - Add `GetSubscriptionLimits()` accessor method on `*Call` - Add `SetSubscriptionLimits()` setter that marks the field as explicitly set - Add `callFieldSubscriptionLimits` bitmask constant for field tracking 🌿 Generated with Fern
feat: refactor union types to use discriminated dispatch and add new …
…providers
Overhaul the assistant-related union types (AssistantCredentialsItem,
AssistantModel, AssistantTranscriber, AssistantVoice, and their
UpdateAssistantDto counterparts) to use a provider-discriminated pattern
instead of try-each untagged deserialization. All union struct fields are
renamed from verbose DTO names (e.g. CreateElevenLabsCredentialDto) to
short provider-keyed names (e.g. Field11Labs), and all Visitor interface
methods are renamed accordingly (e.g. VisitCreateElevenLabsCredentialDto
→ VisitField11Labs).
Key changes:
- All union types now expose a `Provider` string discriminant field and use
`internal.MarshalJSONWithExtraProperty` for serialization, ensuring the
provider tag is always present on the wire
- Renamed exported struct fields and Visitor methods across
AssistantCredentialsItem, AssistantModel, AssistantTranscriber,
AssistantVoice, UpdateAssistantDtoCredentialsItem,
UpdateAssistantDtoModel, UpdateAssistantDtoTranscriber, and
UpdateAssistantDtoVoice — existing callers must update field access and
Visitor implementations
- New credential providers added: AnthropicBedrock, Soniox, Wellsaid,
Email, SlackWebhook; new model providers: AnthropicBedrock, Minimax;
new transcriber providers: Soniox; new voice providers: Wellsaid
- New enum constants AssistantClientMessagesItemAssistantSpeechStarted,
AssistantServerMessagesItemAssistantSpeechStarted, and their
UpdateAssistantDto counterparts
- SessionCreatedHook added to AssistantHooksItem and
UpdateAssistantDtoHooksItem unions
- Metadata field type changed from map[string]interface{} to map[string]any
(source-compatible in Go 1.18+)
- Nil-guard and String() nil checks added to Assistant methods
- UpdateAssistantDto gains explicit MarshalJSON/UnmarshalJSON methods
🌿 Generated with Fern
PreviousNext