Class: Telnyx::Models::TranscriptCompletedWebhookEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/transcript_completed_webhook_event.rb,
sig/telnyx/models/transcript_completed_webhook_event.rbs

Defined Under Namespace

Modules: Event Classes: Data

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, 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(ended_at:, last_seq:, segment_count:, session_id:) ⇒ Object

Finalized transcript details.

Parameters:

  • ended_at (Time, nil)

    Session end time, or null when unavailable.

  • last_seq (Integer, nil)

    Last transcript segment sequence number, or null for an empty transcript.

  • segment_count (Integer)

    Number of transcript segments observed during finalization.

  • session_id (String)

    The meeting session this event belongs to.



# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 36

Instance Attribute Details

#dataTelnyx::Models::TranscriptCompletedWebhookEvent::Data

Finalized transcript details.

Parameters:

  • value (Telnyx::TranscriptCompletedWebhookEvent::Data)

Returns:



16
# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 16

required :data, -> { Telnyx::TranscriptCompletedWebhookEvent::Data }

#eventSymbol, Telnyx::Models::TranscriptCompletedWebhookEvent::Event

Event type.

Parameters:

  • value (Telnyx::Models::TranscriptCompletedWebhookEvent::event)

Returns:



22
# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 22

required :event, enum: -> { Telnyx::TranscriptCompletedWebhookEvent::Event }

#idString

Unique event id; deduplicate deliveries on it.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 10

required :id, String

#occurred_atTime

When the event occurred.

Parameters:

  • value (Time)

Returns:

  • (Time)


28
# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 28

required :occurred_at, Time

#versionString

Envelope version.

Parameters:

  • value (String)

Returns:

  • (String)


34
# File 'lib/telnyx/models/transcript_completed_webhook_event.rb', line 34

required :version, String

Instance Method Details

#to_hash{

Returns:

  • ({)


31
# File 'sig/telnyx/models/transcript_completed_webhook_event.rbs', line 31

def to_hash: -> {