telnyx 5.41.0 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +57 -1
- data/lib/telnyx/models/calls/action_bridge_params.rb +10 -1
- data/lib/telnyx/models/calls/action_hangup_params.rb +9 -1
- data/lib/telnyx/models/payment_create_stored_payment_transaction_params.rb +22 -0
- data/lib/telnyx/models/payment_create_stored_payment_transaction_response.rb +91 -0
- data/lib/telnyx/models/queue.rb +86 -0
- data/lib/telnyx/models/queue_create_params.rb +30 -0
- data/lib/telnyx/models/queue_create_response.rb +16 -0
- data/lib/telnyx/models/queue_delete_params.rb +14 -0
- data/lib/telnyx/models/queue_list_params.rb +30 -0
- data/lib/telnyx/models/queue_retrieve_response.rb +3 -84
- data/lib/telnyx/models/queue_update_params.rb +22 -0
- data/lib/telnyx/models/queue_update_response.rb +16 -0
- data/lib/telnyx/models.rb +12 -0
- data/lib/telnyx/resources/calls/actions.rb +13 -3
- data/lib/telnyx/resources/payment.rb +22 -0
- data/lib/telnyx/resources/queues.rb +93 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +9 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +146 -0
- data/rbi/telnyx/models/calls/action_bridge_params.rbi +13 -0
- data/rbi/telnyx/models/calls/action_hangup_params.rbi +13 -0
- data/rbi/telnyx/models/payment_create_stored_payment_transaction_params.rbi +43 -0
- data/rbi/telnyx/models/payment_create_stored_payment_transaction_response.rbi +235 -0
- data/rbi/telnyx/models/queue.rbi +105 -0
- data/rbi/telnyx/models/queue_create_params.rbi +54 -0
- data/rbi/telnyx/models/queue_create_response.rbi +26 -0
- data/rbi/telnyx/models/queue_delete_params.rbi +27 -0
- data/rbi/telnyx/models/queue_list_params.rbi +57 -0
- data/rbi/telnyx/models/queue_retrieve_response.rbi +4 -138
- data/rbi/telnyx/models/queue_update_params.rbi +40 -0
- data/rbi/telnyx/models/queue_update_response.rbi +26 -0
- data/rbi/telnyx/models.rbi +13 -0
- data/rbi/telnyx/resources/calls/actions.rbi +25 -0
- data/rbi/telnyx/resources/payment.rbi +14 -0
- data/rbi/telnyx/resources/queues.rbi +65 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +49 -1
- data/sig/telnyx/models/calls/action_bridge_params.rbs +7 -0
- data/sig/telnyx/models/calls/action_hangup_params.rbs +13 -1
- data/sig/telnyx/models/payment_create_stored_payment_transaction_params.rbs +23 -0
- data/sig/telnyx/models/payment_create_stored_payment_transaction_response.rbs +116 -0
- data/sig/telnyx/models/queue.rbs +65 -0
- data/sig/telnyx/models/queue_create_params.rbs +30 -0
- data/sig/telnyx/models/queue_create_response.rbs +15 -0
- data/sig/telnyx/models/queue_delete_params.rbs +14 -0
- data/sig/telnyx/models/queue_list_params.rbs +32 -0
- data/sig/telnyx/models/queue_retrieve_response.rbs +5 -72
- data/sig/telnyx/models/queue_update_params.rbs +23 -0
- data/sig/telnyx/models/queue_update_response.rbs +15 -0
- data/sig/telnyx/models.rbs +12 -0
- data/sig/telnyx/resources/calls/actions.rbs +5 -0
- data/sig/telnyx/resources/payment.rbs +5 -0
- data/sig/telnyx/resources/queues.rbs +23 -0
- metadata +28 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentCreateStoredPaymentTransactionResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
T.nilable(
|
|
17
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data
|
|
18
|
+
)
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :data
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
data:
|
|
26
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :data
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
data:
|
|
34
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::OrHash
|
|
35
|
+
).returns(T.attached_class)
|
|
36
|
+
end
|
|
37
|
+
def self.new(data: nil)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
data:
|
|
44
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
52
|
+
OrHash =
|
|
53
|
+
T.type_alias do
|
|
54
|
+
T.any(
|
|
55
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data,
|
|
56
|
+
Telnyx::Internal::AnyHash
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig { returns(T.nilable(String)) }
|
|
61
|
+
attr_reader :id
|
|
62
|
+
|
|
63
|
+
sig { params(id: String).void }
|
|
64
|
+
attr_writer :id
|
|
65
|
+
|
|
66
|
+
sig { returns(T.nilable(Integer)) }
|
|
67
|
+
attr_reader :amount_cents
|
|
68
|
+
|
|
69
|
+
sig { params(amount_cents: Integer).void }
|
|
70
|
+
attr_writer :amount_cents
|
|
71
|
+
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
attr_reader :amount_currency
|
|
74
|
+
|
|
75
|
+
sig { params(amount_currency: String).void }
|
|
76
|
+
attr_writer :amount_currency
|
|
77
|
+
|
|
78
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
79
|
+
attr_reader :auto_recharge
|
|
80
|
+
|
|
81
|
+
sig { params(auto_recharge: T::Boolean).void }
|
|
82
|
+
attr_writer :auto_recharge
|
|
83
|
+
|
|
84
|
+
sig { returns(T.nilable(Time)) }
|
|
85
|
+
attr_reader :created_at
|
|
86
|
+
|
|
87
|
+
sig { params(created_at: Time).void }
|
|
88
|
+
attr_writer :created_at
|
|
89
|
+
|
|
90
|
+
sig { returns(T.nilable(String)) }
|
|
91
|
+
attr_reader :processor_status
|
|
92
|
+
|
|
93
|
+
sig { params(processor_status: String).void }
|
|
94
|
+
attr_writer :processor_status
|
|
95
|
+
|
|
96
|
+
sig do
|
|
97
|
+
returns(
|
|
98
|
+
T.nilable(
|
|
99
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::TaggedSymbol
|
|
100
|
+
)
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
attr_reader :record_type
|
|
104
|
+
|
|
105
|
+
sig do
|
|
106
|
+
params(
|
|
107
|
+
record_type:
|
|
108
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::OrSymbol
|
|
109
|
+
).void
|
|
110
|
+
end
|
|
111
|
+
attr_writer :record_type
|
|
112
|
+
|
|
113
|
+
sig do
|
|
114
|
+
returns(
|
|
115
|
+
T.nilable(
|
|
116
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::TaggedSymbol
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
attr_reader :transaction_processing_type
|
|
121
|
+
|
|
122
|
+
sig do
|
|
123
|
+
params(
|
|
124
|
+
transaction_processing_type:
|
|
125
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::OrSymbol
|
|
126
|
+
).void
|
|
127
|
+
end
|
|
128
|
+
attr_writer :transaction_processing_type
|
|
129
|
+
|
|
130
|
+
sig do
|
|
131
|
+
params(
|
|
132
|
+
id: String,
|
|
133
|
+
amount_cents: Integer,
|
|
134
|
+
amount_currency: String,
|
|
135
|
+
auto_recharge: T::Boolean,
|
|
136
|
+
created_at: Time,
|
|
137
|
+
processor_status: String,
|
|
138
|
+
record_type:
|
|
139
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::OrSymbol,
|
|
140
|
+
transaction_processing_type:
|
|
141
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::OrSymbol
|
|
142
|
+
).returns(T.attached_class)
|
|
143
|
+
end
|
|
144
|
+
def self.new(
|
|
145
|
+
id: nil,
|
|
146
|
+
amount_cents: nil,
|
|
147
|
+
amount_currency: nil,
|
|
148
|
+
auto_recharge: nil,
|
|
149
|
+
created_at: nil,
|
|
150
|
+
processor_status: nil,
|
|
151
|
+
record_type: nil,
|
|
152
|
+
transaction_processing_type: nil
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
sig do
|
|
157
|
+
override.returns(
|
|
158
|
+
{
|
|
159
|
+
id: String,
|
|
160
|
+
amount_cents: Integer,
|
|
161
|
+
amount_currency: String,
|
|
162
|
+
auto_recharge: T::Boolean,
|
|
163
|
+
created_at: Time,
|
|
164
|
+
processor_status: String,
|
|
165
|
+
record_type:
|
|
166
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::TaggedSymbol,
|
|
167
|
+
transaction_processing_type:
|
|
168
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::TaggedSymbol
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
end
|
|
172
|
+
def to_hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
module RecordType
|
|
176
|
+
extend Telnyx::Internal::Type::Enum
|
|
177
|
+
|
|
178
|
+
TaggedSymbol =
|
|
179
|
+
T.type_alias do
|
|
180
|
+
T.all(
|
|
181
|
+
Symbol,
|
|
182
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType
|
|
183
|
+
)
|
|
184
|
+
end
|
|
185
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
186
|
+
|
|
187
|
+
TRANSACTION =
|
|
188
|
+
T.let(
|
|
189
|
+
:transaction,
|
|
190
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::TaggedSymbol
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
sig do
|
|
194
|
+
override.returns(
|
|
195
|
+
T::Array[
|
|
196
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::RecordType::TaggedSymbol
|
|
197
|
+
]
|
|
198
|
+
)
|
|
199
|
+
end
|
|
200
|
+
def self.values
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
module TransactionProcessingType
|
|
205
|
+
extend Telnyx::Internal::Type::Enum
|
|
206
|
+
|
|
207
|
+
TaggedSymbol =
|
|
208
|
+
T.type_alias do
|
|
209
|
+
T.all(
|
|
210
|
+
Symbol,
|
|
211
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType
|
|
212
|
+
)
|
|
213
|
+
end
|
|
214
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
215
|
+
|
|
216
|
+
STORED_PAYMENT =
|
|
217
|
+
T.let(
|
|
218
|
+
:stored_payment,
|
|
219
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::TaggedSymbol
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
sig do
|
|
223
|
+
override.returns(
|
|
224
|
+
T::Array[
|
|
225
|
+
Telnyx::Models::PaymentCreateStoredPaymentTransactionResponse::Data::TransactionProcessingType::TaggedSymbol
|
|
226
|
+
]
|
|
227
|
+
)
|
|
228
|
+
end
|
|
229
|
+
def self.values
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class Queue < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash = T.type_alias { T.any(Telnyx::Queue, Telnyx::Internal::AnyHash) }
|
|
7
|
+
|
|
8
|
+
# Uniquely identifies the queue
|
|
9
|
+
sig { returns(String) }
|
|
10
|
+
attr_accessor :id
|
|
11
|
+
|
|
12
|
+
# The average time that the calls currently in the queue have spent waiting, given
|
|
13
|
+
# in seconds.
|
|
14
|
+
sig { returns(Integer) }
|
|
15
|
+
attr_accessor :average_wait_time_secs
|
|
16
|
+
|
|
17
|
+
# ISO 8601 formatted date of when the queue was created
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :created_at
|
|
20
|
+
|
|
21
|
+
# The number of calls currently in the queue
|
|
22
|
+
sig { returns(Integer) }
|
|
23
|
+
attr_accessor :current_size
|
|
24
|
+
|
|
25
|
+
# The maximum number of calls allowed in the queue
|
|
26
|
+
sig { returns(Integer) }
|
|
27
|
+
attr_accessor :max_size
|
|
28
|
+
|
|
29
|
+
# Name of the queue
|
|
30
|
+
sig { returns(String) }
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
sig { returns(Telnyx::Queue::RecordType::TaggedSymbol) }
|
|
34
|
+
attr_accessor :record_type
|
|
35
|
+
|
|
36
|
+
# ISO 8601 formatted date of when the queue was last updated
|
|
37
|
+
sig { returns(String) }
|
|
38
|
+
attr_accessor :updated_at
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
id: String,
|
|
43
|
+
average_wait_time_secs: Integer,
|
|
44
|
+
created_at: String,
|
|
45
|
+
current_size: Integer,
|
|
46
|
+
max_size: Integer,
|
|
47
|
+
name: String,
|
|
48
|
+
record_type: Telnyx::Queue::RecordType::OrSymbol,
|
|
49
|
+
updated_at: String
|
|
50
|
+
).returns(T.attached_class)
|
|
51
|
+
end
|
|
52
|
+
def self.new(
|
|
53
|
+
# Uniquely identifies the queue
|
|
54
|
+
id:,
|
|
55
|
+
# The average time that the calls currently in the queue have spent waiting, given
|
|
56
|
+
# in seconds.
|
|
57
|
+
average_wait_time_secs:,
|
|
58
|
+
# ISO 8601 formatted date of when the queue was created
|
|
59
|
+
created_at:,
|
|
60
|
+
# The number of calls currently in the queue
|
|
61
|
+
current_size:,
|
|
62
|
+
# The maximum number of calls allowed in the queue
|
|
63
|
+
max_size:,
|
|
64
|
+
# Name of the queue
|
|
65
|
+
name:,
|
|
66
|
+
record_type:,
|
|
67
|
+
# ISO 8601 formatted date of when the queue was last updated
|
|
68
|
+
updated_at:
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
override.returns(
|
|
74
|
+
{
|
|
75
|
+
id: String,
|
|
76
|
+
average_wait_time_secs: Integer,
|
|
77
|
+
created_at: String,
|
|
78
|
+
current_size: Integer,
|
|
79
|
+
max_size: Integer,
|
|
80
|
+
name: String,
|
|
81
|
+
record_type: Telnyx::Queue::RecordType::TaggedSymbol,
|
|
82
|
+
updated_at: String
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def to_hash
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
module RecordType
|
|
90
|
+
extend Telnyx::Internal::Type::Enum
|
|
91
|
+
|
|
92
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Telnyx::Queue::RecordType) }
|
|
93
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
94
|
+
|
|
95
|
+
QUEUE = T.let(:queue, Telnyx::Queue::RecordType::TaggedSymbol)
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
override.returns(T::Array[Telnyx::Queue::RecordType::TaggedSymbol])
|
|
99
|
+
end
|
|
100
|
+
def self.values
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class QueueCreateParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::QueueCreateParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The name of the queue. Must be between 1 and 255 characters.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :queue_name
|
|
17
|
+
|
|
18
|
+
# The maximum number of calls allowed in the queue.
|
|
19
|
+
sig { returns(T.nilable(Integer)) }
|
|
20
|
+
attr_reader :max_size
|
|
21
|
+
|
|
22
|
+
sig { params(max_size: Integer).void }
|
|
23
|
+
attr_writer :max_size
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
queue_name: String,
|
|
28
|
+
max_size: Integer,
|
|
29
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
# The name of the queue. Must be between 1 and 255 characters.
|
|
34
|
+
queue_name:,
|
|
35
|
+
# The maximum number of calls allowed in the queue.
|
|
36
|
+
max_size: nil,
|
|
37
|
+
request_options: {}
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
queue_name: String,
|
|
45
|
+
max_size: Integer,
|
|
46
|
+
request_options: Telnyx::RequestOptions
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class QueueCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::Models::QueueCreateResponse, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T.nilable(Telnyx::Queue)) }
|
|
12
|
+
attr_reader :data
|
|
13
|
+
|
|
14
|
+
sig { params(data: Telnyx::Queue::OrHash).void }
|
|
15
|
+
attr_writer :data
|
|
16
|
+
|
|
17
|
+
sig { params(data: Telnyx::Queue::OrHash).returns(T.attached_class) }
|
|
18
|
+
def self.new(data: nil)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
sig { override.returns({ data: Telnyx::Queue }) }
|
|
22
|
+
def to_hash
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class QueueDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::QueueDeleteParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(request_options: Telnyx::RequestOptions::OrHash).returns(
|
|
16
|
+
T.attached_class
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def self.new(request_options: {})
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
sig { override.returns({ request_options: Telnyx::RequestOptions }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class QueueListParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::QueueListParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The page number to load
|
|
15
|
+
sig { returns(T.nilable(Integer)) }
|
|
16
|
+
attr_reader :page_number
|
|
17
|
+
|
|
18
|
+
sig { params(page_number: Integer).void }
|
|
19
|
+
attr_writer :page_number
|
|
20
|
+
|
|
21
|
+
# The size of the page
|
|
22
|
+
sig { returns(T.nilable(Integer)) }
|
|
23
|
+
attr_reader :page_size
|
|
24
|
+
|
|
25
|
+
sig { params(page_size: Integer).void }
|
|
26
|
+
attr_writer :page_size
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
page_number: Integer,
|
|
31
|
+
page_size: Integer,
|
|
32
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
33
|
+
).returns(T.attached_class)
|
|
34
|
+
end
|
|
35
|
+
def self.new(
|
|
36
|
+
# The page number to load
|
|
37
|
+
page_number: nil,
|
|
38
|
+
# The size of the page
|
|
39
|
+
page_size: nil,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
page_number: Integer,
|
|
48
|
+
page_size: Integer,
|
|
49
|
+
request_options: Telnyx::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -11,153 +11,19 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig { returns(T.nilable(Telnyx::
|
|
14
|
+
sig { returns(T.nilable(Telnyx::Queue)) }
|
|
15
15
|
attr_reader :data
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
params(data: Telnyx::Models::QueueRetrieveResponse::Data::OrHash).void
|
|
19
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::Queue::OrHash).void }
|
|
20
18
|
attr_writer :data
|
|
21
19
|
|
|
22
|
-
sig
|
|
23
|
-
params(
|
|
24
|
-
data: Telnyx::Models::QueueRetrieveResponse::Data::OrHash
|
|
25
|
-
).returns(T.attached_class)
|
|
26
|
-
end
|
|
20
|
+
sig { params(data: Telnyx::Queue::OrHash).returns(T.attached_class) }
|
|
27
21
|
def self.new(data: nil)
|
|
28
22
|
end
|
|
29
23
|
|
|
30
|
-
sig
|
|
31
|
-
override.returns({ data: Telnyx::Models::QueueRetrieveResponse::Data })
|
|
32
|
-
end
|
|
24
|
+
sig { override.returns({ data: Telnyx::Queue }) }
|
|
33
25
|
def to_hash
|
|
34
26
|
end
|
|
35
|
-
|
|
36
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
37
|
-
OrHash =
|
|
38
|
-
T.type_alias do
|
|
39
|
-
T.any(
|
|
40
|
-
Telnyx::Models::QueueRetrieveResponse::Data,
|
|
41
|
-
Telnyx::Internal::AnyHash
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# Uniquely identifies the queue
|
|
46
|
-
sig { returns(String) }
|
|
47
|
-
attr_accessor :id
|
|
48
|
-
|
|
49
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
50
|
-
# in seconds.
|
|
51
|
-
sig { returns(Integer) }
|
|
52
|
-
attr_accessor :average_wait_time_secs
|
|
53
|
-
|
|
54
|
-
# ISO 8601 formatted date of when the queue was created
|
|
55
|
-
sig { returns(String) }
|
|
56
|
-
attr_accessor :created_at
|
|
57
|
-
|
|
58
|
-
# The number of calls currently in the queue
|
|
59
|
-
sig { returns(Integer) }
|
|
60
|
-
attr_accessor :current_size
|
|
61
|
-
|
|
62
|
-
# The maximum number of calls allowed in the queue
|
|
63
|
-
sig { returns(Integer) }
|
|
64
|
-
attr_accessor :max_size
|
|
65
|
-
|
|
66
|
-
# Name of the queue
|
|
67
|
-
sig { returns(String) }
|
|
68
|
-
attr_accessor :name
|
|
69
|
-
|
|
70
|
-
sig do
|
|
71
|
-
returns(
|
|
72
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
attr_accessor :record_type
|
|
76
|
-
|
|
77
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
78
|
-
sig { returns(String) }
|
|
79
|
-
attr_accessor :updated_at
|
|
80
|
-
|
|
81
|
-
sig do
|
|
82
|
-
params(
|
|
83
|
-
id: String,
|
|
84
|
-
average_wait_time_secs: Integer,
|
|
85
|
-
created_at: String,
|
|
86
|
-
current_size: Integer,
|
|
87
|
-
max_size: Integer,
|
|
88
|
-
name: String,
|
|
89
|
-
record_type:
|
|
90
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType::OrSymbol,
|
|
91
|
-
updated_at: String
|
|
92
|
-
).returns(T.attached_class)
|
|
93
|
-
end
|
|
94
|
-
def self.new(
|
|
95
|
-
# Uniquely identifies the queue
|
|
96
|
-
id:,
|
|
97
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
98
|
-
# in seconds.
|
|
99
|
-
average_wait_time_secs:,
|
|
100
|
-
# ISO 8601 formatted date of when the queue was created
|
|
101
|
-
created_at:,
|
|
102
|
-
# The number of calls currently in the queue
|
|
103
|
-
current_size:,
|
|
104
|
-
# The maximum number of calls allowed in the queue
|
|
105
|
-
max_size:,
|
|
106
|
-
# Name of the queue
|
|
107
|
-
name:,
|
|
108
|
-
record_type:,
|
|
109
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
110
|
-
updated_at:
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
sig do
|
|
115
|
-
override.returns(
|
|
116
|
-
{
|
|
117
|
-
id: String,
|
|
118
|
-
average_wait_time_secs: Integer,
|
|
119
|
-
created_at: String,
|
|
120
|
-
current_size: Integer,
|
|
121
|
-
max_size: Integer,
|
|
122
|
-
name: String,
|
|
123
|
-
record_type:
|
|
124
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType::TaggedSymbol,
|
|
125
|
-
updated_at: String
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
end
|
|
129
|
-
def to_hash
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
module RecordType
|
|
133
|
-
extend Telnyx::Internal::Type::Enum
|
|
134
|
-
|
|
135
|
-
TaggedSymbol =
|
|
136
|
-
T.type_alias do
|
|
137
|
-
T.all(
|
|
138
|
-
Symbol,
|
|
139
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
143
|
-
|
|
144
|
-
QUEUE =
|
|
145
|
-
T.let(
|
|
146
|
-
:queue,
|
|
147
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
sig do
|
|
151
|
-
override.returns(
|
|
152
|
-
T::Array[
|
|
153
|
-
Telnyx::Models::QueueRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
154
|
-
]
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
def self.values
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
27
|
end
|
|
162
28
|
end
|
|
163
29
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class QueueUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::QueueUpdateParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The maximum number of calls allowed in the queue.
|
|
15
|
+
sig { returns(Integer) }
|
|
16
|
+
attr_accessor :max_size
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
max_size: Integer,
|
|
21
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
# The maximum number of calls allowed in the queue.
|
|
26
|
+
max_size:,
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ max_size: Integer, request_options: Telnyx::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|