Class: Zavudev::Models::ConversationListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::ConversationListParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/zavudev/models/conversation_list_params.rb,
sig/zavudev/models/conversation_list_params.rbs
Overview
Defined Under Namespace
Modules: Channel
Instance Attribute Summary collapse
-
#channel ⇒ Symbol, ...
Keep only threads that have carried this channel.
-
#cursor ⇒ String?
Opaque cursor from a previous response's
nextCursor. - #limit ⇒ Integer?
-
#search ⇒ String?
Search threads by identity: phone number (any format —
+1 (555) 123-4567and15551234567both match), email address (full or local part), WhatsApp group subject, WhatsApp username, or BSUID. -
#sender_id ⇒ String?
Keep only threads last handled by this sender.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(channel: nil, cursor: nil, limit: nil, search: nil, sender_id: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see ConversationListParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(channel: nil, cursor: nil, limit: nil, search: nil, sender_id: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::ConversationListParams for more details.
|
|
# File 'lib/zavudev/models/conversation_list_params.rb', line 51
|
Instance Attribute Details
#channel ⇒ Symbol, ...
Keep only threads that have carried this channel.
14 |
# File 'lib/zavudev/models/conversation_list_params.rb', line 14 optional :channel, enum: -> { Zavudev::ConversationListParams::Channel } |
#cursor ⇒ String?
Opaque cursor from a previous response's nextCursor. Do not construct it.
20 |
# File 'lib/zavudev/models/conversation_list_params.rb', line 20 optional :cursor, String |
#limit ⇒ Integer?
25 |
# File 'lib/zavudev/models/conversation_list_params.rb', line 25 optional :limit, Integer |
#search ⇒ String?
Search threads by identity: phone number (any format — +1 (555) 123-4567 and
15551234567 both match), email address (full or local part), WhatsApp group
subject, WhatsApp username, or BSUID. Matching is by whole word, with prefix
matching on the last term, so mar finds [email protected] and +1555 finds
+15551234567; a fragment from the middle or end of a number (4567) does not
match.
It does not search message bodies — only who the thread is with.
Results come back ranked by relevance rather than by recency, so the usual "most
recently active first" ordering does not apply while q is set. senderId and
channel still narrow the results, and cursor paginates them as usual. An
empty or whitespace-only q returns no items rather than the full list.
43 |
# File 'lib/zavudev/models/conversation_list_params.rb', line 43 optional :search, String |
#sender_id ⇒ String?
Keep only threads last handled by this sender.
49 |
# File 'lib/zavudev/models/conversation_list_params.rb', line 49 optional :sender_id, String |
Instance Method Details
#to_hash ⇒ {
48 |
# File 'sig/zavudev/models/conversation_list_params.rbs', line 48
def to_hash: -> {
|