telnyx 5.42.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/{queue_list_response.rb → queue.rb} +7 -7
- data/lib/telnyx/models/queue_create_response.rb +3 -84
- data/lib/telnyx/models/queue_retrieve_response.rb +3 -84
- data/lib/telnyx/models/queue_update_response.rb +3 -84
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/queues.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -1
- data/rbi/telnyx/models/{queue_list_response.rbi → queue.rbi} +8 -25
- data/rbi/telnyx/models/queue_create_response.rbi +4 -138
- data/rbi/telnyx/models/queue_retrieve_response.rbi +4 -138
- data/rbi/telnyx/models/queue_update_response.rbi +4 -138
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/queues.rbi +1 -5
- data/sig/telnyx/models/{queue_list_response.rbs → queue.rbs} +7 -7
- data/sig/telnyx/models/queue_create_response.rbs +5 -70
- data/sig/telnyx/models/queue_retrieve_response.rbs +5 -72
- data/sig/telnyx/models/queue_update_response.rbs +5 -70
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/queues.rbs +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16165a575a8ba5351fd5cbdfd588ec9a502c69181223aac0f594d489f3cb0ece
|
|
4
|
+
data.tar.gz: d2a6544c0084fa29d9021451ed17fa1c365bc7ca73045d4cadccb13d715cd53d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d81fc785fe00c04ba6e1ad07f323872f5fe6e827b93e397e444aeebe154c5737dd3fdb1e0d1dd296267180b32e56d616dff7656e6b76b3eae27f4f5d9f737e3
|
|
7
|
+
data.tar.gz: 84913adb37c8857c6f736e00df9626fd7f88a1688a81c562069209f574cf22ae46131af0d0e88bb64d3f7e0b2ac62d9203a60496cce190767e8a6c7cdb4de495
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.43.0 (2026-02-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.42.0...v5.43.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.42.0...v5.43.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([f5c7abe](https://github.com/team-telnyx/telnyx-ruby/commit/f5c7abe0f5d64327a778547bb5a6b2166afc5176))
|
|
10
|
+
|
|
3
11
|
## 5.42.0 (2026-02-25)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.41.0...v5.42.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.41.0...v5.42.0)
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
# @see Telnyx::Resources::Queues#list
|
|
6
|
-
class
|
|
6
|
+
class Queue < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# Uniquely identifies the queue
|
|
9
9
|
#
|
|
@@ -43,8 +43,8 @@ module Telnyx
|
|
|
43
43
|
|
|
44
44
|
# @!attribute record_type
|
|
45
45
|
#
|
|
46
|
-
# @return [Symbol, Telnyx::Models::
|
|
47
|
-
required :record_type, enum: -> { Telnyx::
|
|
46
|
+
# @return [Symbol, Telnyx::Models::Queue::RecordType]
|
|
47
|
+
required :record_type, enum: -> { Telnyx::Queue::RecordType }
|
|
48
48
|
|
|
49
49
|
# @!attribute updated_at
|
|
50
50
|
# ISO 8601 formatted date of when the queue was last updated
|
|
@@ -53,8 +53,8 @@ module Telnyx
|
|
|
53
53
|
required :updated_at, String
|
|
54
54
|
|
|
55
55
|
# @!method initialize(id:, average_wait_time_secs:, created_at:, current_size:, max_size:, name:, record_type:, updated_at:)
|
|
56
|
-
# Some parameter documentations has been truncated, see
|
|
57
|
-
#
|
|
56
|
+
# Some parameter documentations has been truncated, see {Telnyx::Models::Queue}
|
|
57
|
+
# for more details.
|
|
58
58
|
#
|
|
59
59
|
# @param id [String] Uniquely identifies the queue
|
|
60
60
|
#
|
|
@@ -68,11 +68,11 @@ module Telnyx
|
|
|
68
68
|
#
|
|
69
69
|
# @param name [String] Name of the queue
|
|
70
70
|
#
|
|
71
|
-
# @param record_type [Symbol, Telnyx::Models::
|
|
71
|
+
# @param record_type [Symbol, Telnyx::Models::Queue::RecordType]
|
|
72
72
|
#
|
|
73
73
|
# @param updated_at [String] ISO 8601 formatted date of when the queue was last updated
|
|
74
74
|
|
|
75
|
-
# @see Telnyx::Models::
|
|
75
|
+
# @see Telnyx::Models::Queue#record_type
|
|
76
76
|
module RecordType
|
|
77
77
|
extend Telnyx::Internal::Type::Enum
|
|
78
78
|
|
|
@@ -6,92 +6,11 @@ module Telnyx
|
|
|
6
6
|
class QueueCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::Queue, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Queue }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::QueueCreateResponse#data
|
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
-
# @!attribute id
|
|
18
|
-
# Uniquely identifies the queue
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute average_wait_time_secs
|
|
24
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
25
|
-
# in seconds.
|
|
26
|
-
#
|
|
27
|
-
# @return [Integer]
|
|
28
|
-
required :average_wait_time_secs, Integer
|
|
29
|
-
|
|
30
|
-
# @!attribute created_at
|
|
31
|
-
# ISO 8601 formatted date of when the queue was created
|
|
32
|
-
#
|
|
33
|
-
# @return [String]
|
|
34
|
-
required :created_at, String
|
|
35
|
-
|
|
36
|
-
# @!attribute current_size
|
|
37
|
-
# The number of calls currently in the queue
|
|
38
|
-
#
|
|
39
|
-
# @return [Integer]
|
|
40
|
-
required :current_size, Integer
|
|
41
|
-
|
|
42
|
-
# @!attribute max_size
|
|
43
|
-
# The maximum number of calls allowed in the queue
|
|
44
|
-
#
|
|
45
|
-
# @return [Integer]
|
|
46
|
-
required :max_size, Integer
|
|
47
|
-
|
|
48
|
-
# @!attribute name
|
|
49
|
-
# Name of the queue
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :name, String
|
|
53
|
-
|
|
54
|
-
# @!attribute record_type
|
|
55
|
-
#
|
|
56
|
-
# @return [Symbol, Telnyx::Models::QueueCreateResponse::Data::RecordType]
|
|
57
|
-
required :record_type, enum: -> { Telnyx::Models::QueueCreateResponse::Data::RecordType }
|
|
58
|
-
|
|
59
|
-
# @!attribute updated_at
|
|
60
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
61
|
-
#
|
|
62
|
-
# @return [String]
|
|
63
|
-
required :updated_at, String
|
|
64
|
-
|
|
65
|
-
# @!method initialize(id:, average_wait_time_secs:, created_at:, current_size:, max_size:, name:, record_type:, updated_at:)
|
|
66
|
-
# Some parameter documentations has been truncated, see
|
|
67
|
-
# {Telnyx::Models::QueueCreateResponse::Data} for more details.
|
|
68
|
-
#
|
|
69
|
-
# @param id [String] Uniquely identifies the queue
|
|
70
|
-
#
|
|
71
|
-
# @param average_wait_time_secs [Integer] The average time that the calls currently in the queue have spent waiting, given
|
|
72
|
-
#
|
|
73
|
-
# @param created_at [String] ISO 8601 formatted date of when the queue was created
|
|
74
|
-
#
|
|
75
|
-
# @param current_size [Integer] The number of calls currently in the queue
|
|
76
|
-
#
|
|
77
|
-
# @param max_size [Integer] The maximum number of calls allowed in the queue
|
|
78
|
-
#
|
|
79
|
-
# @param name [String] Name of the queue
|
|
80
|
-
#
|
|
81
|
-
# @param record_type [Symbol, Telnyx::Models::QueueCreateResponse::Data::RecordType]
|
|
82
|
-
#
|
|
83
|
-
# @param updated_at [String] ISO 8601 formatted date of when the queue was last updated
|
|
84
|
-
|
|
85
|
-
# @see Telnyx::Models::QueueCreateResponse::Data#record_type
|
|
86
|
-
module RecordType
|
|
87
|
-
extend Telnyx::Internal::Type::Enum
|
|
88
|
-
|
|
89
|
-
QUEUE = :queue
|
|
90
|
-
|
|
91
|
-
# @!method self.values
|
|
92
|
-
# @return [Array<Symbol>]
|
|
93
|
-
end
|
|
94
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::Queue]
|
|
95
14
|
end
|
|
96
15
|
end
|
|
97
16
|
end
|
|
@@ -6,92 +6,11 @@ module Telnyx
|
|
|
6
6
|
class QueueRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::Queue, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Queue }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::QueueRetrieveResponse#data
|
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
-
# @!attribute id
|
|
18
|
-
# Uniquely identifies the queue
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute average_wait_time_secs
|
|
24
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
25
|
-
# in seconds.
|
|
26
|
-
#
|
|
27
|
-
# @return [Integer]
|
|
28
|
-
required :average_wait_time_secs, Integer
|
|
29
|
-
|
|
30
|
-
# @!attribute created_at
|
|
31
|
-
# ISO 8601 formatted date of when the queue was created
|
|
32
|
-
#
|
|
33
|
-
# @return [String]
|
|
34
|
-
required :created_at, String
|
|
35
|
-
|
|
36
|
-
# @!attribute current_size
|
|
37
|
-
# The number of calls currently in the queue
|
|
38
|
-
#
|
|
39
|
-
# @return [Integer]
|
|
40
|
-
required :current_size, Integer
|
|
41
|
-
|
|
42
|
-
# @!attribute max_size
|
|
43
|
-
# The maximum number of calls allowed in the queue
|
|
44
|
-
#
|
|
45
|
-
# @return [Integer]
|
|
46
|
-
required :max_size, Integer
|
|
47
|
-
|
|
48
|
-
# @!attribute name
|
|
49
|
-
# Name of the queue
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :name, String
|
|
53
|
-
|
|
54
|
-
# @!attribute record_type
|
|
55
|
-
#
|
|
56
|
-
# @return [Symbol, Telnyx::Models::QueueRetrieveResponse::Data::RecordType]
|
|
57
|
-
required :record_type, enum: -> { Telnyx::Models::QueueRetrieveResponse::Data::RecordType }
|
|
58
|
-
|
|
59
|
-
# @!attribute updated_at
|
|
60
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
61
|
-
#
|
|
62
|
-
# @return [String]
|
|
63
|
-
required :updated_at, String
|
|
64
|
-
|
|
65
|
-
# @!method initialize(id:, average_wait_time_secs:, created_at:, current_size:, max_size:, name:, record_type:, updated_at:)
|
|
66
|
-
# Some parameter documentations has been truncated, see
|
|
67
|
-
# {Telnyx::Models::QueueRetrieveResponse::Data} for more details.
|
|
68
|
-
#
|
|
69
|
-
# @param id [String] Uniquely identifies the queue
|
|
70
|
-
#
|
|
71
|
-
# @param average_wait_time_secs [Integer] The average time that the calls currently in the queue have spent waiting, given
|
|
72
|
-
#
|
|
73
|
-
# @param created_at [String] ISO 8601 formatted date of when the queue was created
|
|
74
|
-
#
|
|
75
|
-
# @param current_size [Integer] The number of calls currently in the queue
|
|
76
|
-
#
|
|
77
|
-
# @param max_size [Integer] The maximum number of calls allowed in the queue
|
|
78
|
-
#
|
|
79
|
-
# @param name [String] Name of the queue
|
|
80
|
-
#
|
|
81
|
-
# @param record_type [Symbol, Telnyx::Models::QueueRetrieveResponse::Data::RecordType]
|
|
82
|
-
#
|
|
83
|
-
# @param updated_at [String] ISO 8601 formatted date of when the queue was last updated
|
|
84
|
-
|
|
85
|
-
# @see Telnyx::Models::QueueRetrieveResponse::Data#record_type
|
|
86
|
-
module RecordType
|
|
87
|
-
extend Telnyx::Internal::Type::Enum
|
|
88
|
-
|
|
89
|
-
QUEUE = :queue
|
|
90
|
-
|
|
91
|
-
# @!method self.values
|
|
92
|
-
# @return [Array<Symbol>]
|
|
93
|
-
end
|
|
94
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::Queue]
|
|
95
14
|
end
|
|
96
15
|
end
|
|
97
16
|
end
|
|
@@ -6,92 +6,11 @@ module Telnyx
|
|
|
6
6
|
class QueueUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::Queue, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Queue }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::QueueUpdateResponse#data
|
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
-
# @!attribute id
|
|
18
|
-
# Uniquely identifies the queue
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute average_wait_time_secs
|
|
24
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
25
|
-
# in seconds.
|
|
26
|
-
#
|
|
27
|
-
# @return [Integer]
|
|
28
|
-
required :average_wait_time_secs, Integer
|
|
29
|
-
|
|
30
|
-
# @!attribute created_at
|
|
31
|
-
# ISO 8601 formatted date of when the queue was created
|
|
32
|
-
#
|
|
33
|
-
# @return [String]
|
|
34
|
-
required :created_at, String
|
|
35
|
-
|
|
36
|
-
# @!attribute current_size
|
|
37
|
-
# The number of calls currently in the queue
|
|
38
|
-
#
|
|
39
|
-
# @return [Integer]
|
|
40
|
-
required :current_size, Integer
|
|
41
|
-
|
|
42
|
-
# @!attribute max_size
|
|
43
|
-
# The maximum number of calls allowed in the queue
|
|
44
|
-
#
|
|
45
|
-
# @return [Integer]
|
|
46
|
-
required :max_size, Integer
|
|
47
|
-
|
|
48
|
-
# @!attribute name
|
|
49
|
-
# Name of the queue
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :name, String
|
|
53
|
-
|
|
54
|
-
# @!attribute record_type
|
|
55
|
-
#
|
|
56
|
-
# @return [Symbol, Telnyx::Models::QueueUpdateResponse::Data::RecordType]
|
|
57
|
-
required :record_type, enum: -> { Telnyx::Models::QueueUpdateResponse::Data::RecordType }
|
|
58
|
-
|
|
59
|
-
# @!attribute updated_at
|
|
60
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
61
|
-
#
|
|
62
|
-
# @return [String]
|
|
63
|
-
required :updated_at, String
|
|
64
|
-
|
|
65
|
-
# @!method initialize(id:, average_wait_time_secs:, created_at:, current_size:, max_size:, name:, record_type:, updated_at:)
|
|
66
|
-
# Some parameter documentations has been truncated, see
|
|
67
|
-
# {Telnyx::Models::QueueUpdateResponse::Data} for more details.
|
|
68
|
-
#
|
|
69
|
-
# @param id [String] Uniquely identifies the queue
|
|
70
|
-
#
|
|
71
|
-
# @param average_wait_time_secs [Integer] The average time that the calls currently in the queue have spent waiting, given
|
|
72
|
-
#
|
|
73
|
-
# @param created_at [String] ISO 8601 formatted date of when the queue was created
|
|
74
|
-
#
|
|
75
|
-
# @param current_size [Integer] The number of calls currently in the queue
|
|
76
|
-
#
|
|
77
|
-
# @param max_size [Integer] The maximum number of calls allowed in the queue
|
|
78
|
-
#
|
|
79
|
-
# @param name [String] Name of the queue
|
|
80
|
-
#
|
|
81
|
-
# @param record_type [Symbol, Telnyx::Models::QueueUpdateResponse::Data::RecordType]
|
|
82
|
-
#
|
|
83
|
-
# @param updated_at [String] ISO 8601 formatted date of when the queue was last updated
|
|
84
|
-
|
|
85
|
-
# @see Telnyx::Models::QueueUpdateResponse::Data#record_type
|
|
86
|
-
module RecordType
|
|
87
|
-
extend Telnyx::Internal::Type::Enum
|
|
88
|
-
|
|
89
|
-
QUEUE = :queue
|
|
90
|
-
|
|
91
|
-
# @!method self.values
|
|
92
|
-
# @return [Array<Symbol>]
|
|
93
|
-
end
|
|
94
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::Queue]
|
|
95
14
|
end
|
|
96
15
|
end
|
|
97
16
|
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -1203,6 +1203,8 @@ module Telnyx
|
|
|
1203
1203
|
|
|
1204
1204
|
PwgAssignedResourcesSummary = Telnyx::Models::PwgAssignedResourcesSummary
|
|
1205
1205
|
|
|
1206
|
+
Queue = Telnyx::Models::Queue
|
|
1207
|
+
|
|
1206
1208
|
QueueCreateParams = Telnyx::Models::QueueCreateParams
|
|
1207
1209
|
|
|
1208
1210
|
QueueDeleteParams = Telnyx::Models::QueueDeleteParams
|
|
@@ -84,7 +84,7 @@ module Telnyx
|
|
|
84
84
|
#
|
|
85
85
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
86
86
|
#
|
|
87
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::
|
|
87
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Queue>]
|
|
88
88
|
#
|
|
89
89
|
# @see Telnyx::Models::QueueListParams
|
|
90
90
|
def list(params = {})
|
|
@@ -94,7 +94,7 @@ module Telnyx
|
|
|
94
94
|
path: "queues",
|
|
95
95
|
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
96
96
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
97
|
-
model: Telnyx::
|
|
97
|
+
model: Telnyx::Queue,
|
|
98
98
|
options: options
|
|
99
99
|
)
|
|
100
100
|
end
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -1677,11 +1677,11 @@ require_relative "telnyx/models/public_internet_gateway_retrieve_response"
|
|
|
1677
1677
|
require_relative "telnyx/models/push_credential"
|
|
1678
1678
|
require_relative "telnyx/models/push_credential_response"
|
|
1679
1679
|
require_relative "telnyx/models/pwg_assigned_resources_summary"
|
|
1680
|
+
require_relative "telnyx/models/queue"
|
|
1680
1681
|
require_relative "telnyx/models/queue_create_params"
|
|
1681
1682
|
require_relative "telnyx/models/queue_create_response"
|
|
1682
1683
|
require_relative "telnyx/models/queue_delete_params"
|
|
1683
1684
|
require_relative "telnyx/models/queue_list_params"
|
|
1684
|
-
require_relative "telnyx/models/queue_list_response"
|
|
1685
1685
|
require_relative "telnyx/models/queue_retrieve_params"
|
|
1686
1686
|
require_relative "telnyx/models/queue_retrieve_response"
|
|
1687
1687
|
require_relative "telnyx/models/queues/call_list_params"
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Telnyx::Models::QueueListResponse, Telnyx::Internal::AnyHash)
|
|
9
|
-
end
|
|
5
|
+
class Queue < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash = T.type_alias { T.any(Telnyx::Queue, Telnyx::Internal::AnyHash) }
|
|
10
7
|
|
|
11
8
|
# Uniquely identifies the queue
|
|
12
9
|
sig { returns(String) }
|
|
@@ -33,9 +30,7 @@ module Telnyx
|
|
|
33
30
|
sig { returns(String) }
|
|
34
31
|
attr_accessor :name
|
|
35
32
|
|
|
36
|
-
sig
|
|
37
|
-
returns(Telnyx::Models::QueueListResponse::RecordType::TaggedSymbol)
|
|
38
|
-
end
|
|
33
|
+
sig { returns(Telnyx::Queue::RecordType::TaggedSymbol) }
|
|
39
34
|
attr_accessor :record_type
|
|
40
35
|
|
|
41
36
|
# ISO 8601 formatted date of when the queue was last updated
|
|
@@ -50,7 +45,7 @@ module Telnyx
|
|
|
50
45
|
current_size: Integer,
|
|
51
46
|
max_size: Integer,
|
|
52
47
|
name: String,
|
|
53
|
-
record_type: Telnyx::
|
|
48
|
+
record_type: Telnyx::Queue::RecordType::OrSymbol,
|
|
54
49
|
updated_at: String
|
|
55
50
|
).returns(T.attached_class)
|
|
56
51
|
end
|
|
@@ -83,8 +78,7 @@ module Telnyx
|
|
|
83
78
|
current_size: Integer,
|
|
84
79
|
max_size: Integer,
|
|
85
80
|
name: String,
|
|
86
|
-
record_type:
|
|
87
|
-
Telnyx::Models::QueueListResponse::RecordType::TaggedSymbol,
|
|
81
|
+
record_type: Telnyx::Queue::RecordType::TaggedSymbol,
|
|
88
82
|
updated_at: String
|
|
89
83
|
}
|
|
90
84
|
)
|
|
@@ -95,24 +89,13 @@ module Telnyx
|
|
|
95
89
|
module RecordType
|
|
96
90
|
extend Telnyx::Internal::Type::Enum
|
|
97
91
|
|
|
98
|
-
TaggedSymbol =
|
|
99
|
-
T.type_alias do
|
|
100
|
-
T.all(Symbol, Telnyx::Models::QueueListResponse::RecordType)
|
|
101
|
-
end
|
|
92
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Telnyx::Queue::RecordType) }
|
|
102
93
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
103
94
|
|
|
104
|
-
QUEUE =
|
|
105
|
-
T.let(
|
|
106
|
-
:queue,
|
|
107
|
-
Telnyx::Models::QueueListResponse::RecordType::TaggedSymbol
|
|
108
|
-
)
|
|
95
|
+
QUEUE = T.let(:queue, Telnyx::Queue::RecordType::TaggedSymbol)
|
|
109
96
|
|
|
110
97
|
sig do
|
|
111
|
-
override.returns(
|
|
112
|
-
T::Array[
|
|
113
|
-
Telnyx::Models::QueueListResponse::RecordType::TaggedSymbol
|
|
114
|
-
]
|
|
115
|
-
)
|
|
98
|
+
override.returns(T::Array[Telnyx::Queue::RecordType::TaggedSymbol])
|
|
116
99
|
end
|
|
117
100
|
def self.values
|
|
118
101
|
end
|
|
@@ -8,153 +8,19 @@ module Telnyx
|
|
|
8
8
|
T.any(Telnyx::Models::QueueCreateResponse, Telnyx::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
sig { returns(T.nilable(Telnyx::
|
|
11
|
+
sig { returns(T.nilable(Telnyx::Queue)) }
|
|
12
12
|
attr_reader :data
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
params(data: Telnyx::Models::QueueCreateResponse::Data::OrHash).void
|
|
16
|
-
end
|
|
14
|
+
sig { params(data: Telnyx::Queue::OrHash).void }
|
|
17
15
|
attr_writer :data
|
|
18
16
|
|
|
19
|
-
sig
|
|
20
|
-
params(data: Telnyx::Models::QueueCreateResponse::Data::OrHash).returns(
|
|
21
|
-
T.attached_class
|
|
22
|
-
)
|
|
23
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::Queue::OrHash).returns(T.attached_class) }
|
|
24
18
|
def self.new(data: nil)
|
|
25
19
|
end
|
|
26
20
|
|
|
27
|
-
sig
|
|
28
|
-
override.returns({ data: Telnyx::Models::QueueCreateResponse::Data })
|
|
29
|
-
end
|
|
21
|
+
sig { override.returns({ data: Telnyx::Queue }) }
|
|
30
22
|
def to_hash
|
|
31
23
|
end
|
|
32
|
-
|
|
33
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
34
|
-
OrHash =
|
|
35
|
-
T.type_alias do
|
|
36
|
-
T.any(
|
|
37
|
-
Telnyx::Models::QueueCreateResponse::Data,
|
|
38
|
-
Telnyx::Internal::AnyHash
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Uniquely identifies the queue
|
|
43
|
-
sig { returns(String) }
|
|
44
|
-
attr_accessor :id
|
|
45
|
-
|
|
46
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
47
|
-
# in seconds.
|
|
48
|
-
sig { returns(Integer) }
|
|
49
|
-
attr_accessor :average_wait_time_secs
|
|
50
|
-
|
|
51
|
-
# ISO 8601 formatted date of when the queue was created
|
|
52
|
-
sig { returns(String) }
|
|
53
|
-
attr_accessor :created_at
|
|
54
|
-
|
|
55
|
-
# The number of calls currently in the queue
|
|
56
|
-
sig { returns(Integer) }
|
|
57
|
-
attr_accessor :current_size
|
|
58
|
-
|
|
59
|
-
# The maximum number of calls allowed in the queue
|
|
60
|
-
sig { returns(Integer) }
|
|
61
|
-
attr_accessor :max_size
|
|
62
|
-
|
|
63
|
-
# Name of the queue
|
|
64
|
-
sig { returns(String) }
|
|
65
|
-
attr_accessor :name
|
|
66
|
-
|
|
67
|
-
sig do
|
|
68
|
-
returns(
|
|
69
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType::TaggedSymbol
|
|
70
|
-
)
|
|
71
|
-
end
|
|
72
|
-
attr_accessor :record_type
|
|
73
|
-
|
|
74
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
75
|
-
sig { returns(String) }
|
|
76
|
-
attr_accessor :updated_at
|
|
77
|
-
|
|
78
|
-
sig do
|
|
79
|
-
params(
|
|
80
|
-
id: String,
|
|
81
|
-
average_wait_time_secs: Integer,
|
|
82
|
-
created_at: String,
|
|
83
|
-
current_size: Integer,
|
|
84
|
-
max_size: Integer,
|
|
85
|
-
name: String,
|
|
86
|
-
record_type:
|
|
87
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType::OrSymbol,
|
|
88
|
-
updated_at: String
|
|
89
|
-
).returns(T.attached_class)
|
|
90
|
-
end
|
|
91
|
-
def self.new(
|
|
92
|
-
# Uniquely identifies the queue
|
|
93
|
-
id:,
|
|
94
|
-
# The average time that the calls currently in the queue have spent waiting, given
|
|
95
|
-
# in seconds.
|
|
96
|
-
average_wait_time_secs:,
|
|
97
|
-
# ISO 8601 formatted date of when the queue was created
|
|
98
|
-
created_at:,
|
|
99
|
-
# The number of calls currently in the queue
|
|
100
|
-
current_size:,
|
|
101
|
-
# The maximum number of calls allowed in the queue
|
|
102
|
-
max_size:,
|
|
103
|
-
# Name of the queue
|
|
104
|
-
name:,
|
|
105
|
-
record_type:,
|
|
106
|
-
# ISO 8601 formatted date of when the queue was last updated
|
|
107
|
-
updated_at:
|
|
108
|
-
)
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
sig do
|
|
112
|
-
override.returns(
|
|
113
|
-
{
|
|
114
|
-
id: String,
|
|
115
|
-
average_wait_time_secs: Integer,
|
|
116
|
-
created_at: String,
|
|
117
|
-
current_size: Integer,
|
|
118
|
-
max_size: Integer,
|
|
119
|
-
name: String,
|
|
120
|
-
record_type:
|
|
121
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType::TaggedSymbol,
|
|
122
|
-
updated_at: String
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
end
|
|
126
|
-
def to_hash
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
module RecordType
|
|
130
|
-
extend Telnyx::Internal::Type::Enum
|
|
131
|
-
|
|
132
|
-
TaggedSymbol =
|
|
133
|
-
T.type_alias do
|
|
134
|
-
T.all(
|
|
135
|
-
Symbol,
|
|
136
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
140
|
-
|
|
141
|
-
QUEUE =
|
|
142
|
-
T.let(
|
|
143
|
-
:queue,
|
|
144
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType::TaggedSymbol
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
sig do
|
|
148
|
-
override.returns(
|
|
149
|
-
T::Array[
|
|
150
|
-
Telnyx::Models::QueueCreateResponse::Data::RecordType::TaggedSymbol
|
|
151
|
-
]
|
|
152
|
-
)
|
|
153
|
-
end
|
|
154
|
-
def self.values
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
24
|
end
|
|
159
25
|
end
|
|
160
26
|
end
|