Class: OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/live_call_incoming_webhook_event.rb,
sig/openai/models/webhooks/live_call_incoming_webhook_event.rbs

Overview

See Also:

  • OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent#data

Defined Under Namespace

Modules: SipMediaSecurity Classes: SipHeader

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(name:, value:) ⇒ Data

Returns a new instance of Data.

Parameters:

  • session_id —

    The live_... ID of the pending SIP session. Pass this value unchanged to Live call controls and sideband connections. The corresponding realtime.call.incoming event uses a separate rtc_... call ID.

  • sip_headers —

    Headers from the SIP INVITE, excluding SIP authorization headers. Retained names, values, repeated entries, and order are preserved. Treat these values as untrusted call metadata.

  • sip_media_security —

    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.

  • session_id: (String)
  • sip_headers: (::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader])
  • sip_media_security: (OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security)


# File 'lib/openai/models/webhooks/live_call_incoming_webhook_event.rb', line 124

Instance Attribute Details

#session_id ⇒ String

The live_... ID of the pending SIP session. Pass this value unchanged to Live call controls and sideband connections. The corresponding realtime.call.incoming event uses a separate rtc_... call ID.

Returns:

  • (String)


68
# File 'lib/openai/models/webhooks/live_call_incoming_webhook_event.rb', line 68

required :session_id, String

#sip_headers ⇒ ::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader]

Headers from the SIP INVITE, excluding SIP authorization headers. Retained names, values, repeated entries, and order are preserved. Treat these values as untrusted call metadata.

Returns:

  • (::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader])


76
77
78
79
# File 'lib/openai/models/webhooks/live_call_incoming_webhook_event.rb', line 76

required(
  :sip_headers,
  -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader] }
)

#sip_media_security ⇒ OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security?

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.

Returns:

  • (OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security, nil)


88
89
90
91
# File 'lib/openai/models/webhooks/live_call_incoming_webhook_event.rb', line 88

optional(
  :sip_media_security,
  union: -> { OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipMediaSecurity }
)

Instance Method Details

#to_hash ⇒ { session_id: String, sip_headers: ::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader], ?sip_media_security: OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security }

Returns:

  • ({ session_id: String, sip_headers: ::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader], ?sip_media_security: OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security })


111
112
113
114
115
# File 'sig/openai/models/webhooks/live_call_incoming_webhook_event.rbs', line 111

def to_hash: -> {
  session_id: String,
  sip_headers: ::Array[OpenAI::Webhooks::LiveCallIncomingWebhookEvent::Data::SipHeader],
  ?sip_media_security: OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent::Data::sip_media_security
}