Module: OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::SipMediaSecurity

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb,
sig/openai/models/webhooks/realtime_call_incoming_webhook_event.rbs

Overview

Media protection selected on the SIP leg during SDP negotiation. srtp indicates SRTP; rtp indicates unencrypted RTP. Omitted when unknown. This does not describe SIP signaling security or confirm that media has flowed. Clients should handle unrecognized values as unknown.

See Also:

  • OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data#sip_media_security

collapse

RTP =

Returns:

  • (:rtp)
:rtp
SRTP =

Returns:

  • (:srtp)
:srtp

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Symbol, String)

Returns:

  • (Array(Symbol, String))


153
154
155
156
157
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 153

define_sorbet_constant!(:Variants) do
  T.type_alias {
    T.any(OpenAI::Webhooks::RealtimeCallIncomingWebhookEvent::Data::SipMediaSecurity::TaggedSymbol, String)
  }
end

Instance Method Details

#self?.variants::Array[OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::sip_media_security]

Returns:

  • (::Array[OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::sip_media_security])


140
# File 'sig/openai/models/webhooks/realtime_call_incoming_webhook_event.rbs', line 140

def self?.variants: -> ::Array[OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::sip_media_security]