spotted 0.1.0 → 0.2.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/spotted/models/audiobook_base.rb +182 -0
  5. data/lib/spotted/models/audiobook_list_response.rb +2 -174
  6. data/lib/spotted/models/audiobook_retrieve_response.rb +2 -174
  7. data/lib/spotted/models/chapter_list_response.rb +3 -183
  8. data/lib/spotted/models/chapter_retrieve_response.rb +3 -183
  9. data/lib/spotted/models/episode_object.rb +3 -166
  10. data/lib/spotted/models/me/audiobook_list_response.rb +2 -174
  11. data/lib/spotted/models/me/show_list_response.rb +3 -166
  12. data/lib/spotted/models/search_retrieve_response.rb +6 -345
  13. data/lib/spotted/models/show_base.rb +165 -0
  14. data/lib/spotted/models/show_list_response.rb +3 -163
  15. data/lib/spotted/models/show_retrieve_response.rb +2 -157
  16. data/lib/spotted/models.rb +4 -0
  17. data/lib/spotted/version.rb +1 -1
  18. data/lib/spotted.rb +2 -0
  19. data/rbi/spotted/models/audiobook_base.rbi +219 -0
  20. data/rbi/spotted/models/audiobook_list_response.rbi +4 -212
  21. data/rbi/spotted/models/audiobook_retrieve_response.rbi +4 -209
  22. data/rbi/spotted/models/chapter_list_response.rbi +4 -249
  23. data/rbi/spotted/models/chapter_retrieve_response.rbi +4 -245
  24. data/rbi/spotted/models/episode_object.rbi +4 -199
  25. data/rbi/spotted/models/me/audiobook_list_response.rbi +4 -212
  26. data/rbi/spotted/models/me/show_list_response.rbi +6 -227
  27. data/rbi/spotted/models/search_retrieve_response.rbi +6 -473
  28. data/rbi/spotted/models/show_base.rbi +194 -0
  29. data/rbi/spotted/models/show_list_response.rbi +5 -216
  30. data/rbi/spotted/models/show_retrieve_response.rbi +4 -182
  31. data/rbi/spotted/models.rbi +4 -0
  32. data/sig/spotted/models/audiobook_base.rbs +122 -0
  33. data/sig/spotted/models/audiobook_list_response.rbs +8 -111
  34. data/sig/spotted/models/audiobook_retrieve_response.rbs +8 -113
  35. data/sig/spotted/models/chapter_list_response.rbs +4 -123
  36. data/sig/spotted/models/chapter_retrieve_response.rbs +4 -123
  37. data/sig/spotted/models/episode_object.rbs +4 -111
  38. data/sig/spotted/models/me/audiobook_list_response.rbs +8 -111
  39. data/sig/spotted/models/me/show_list_response.rbs +5 -121
  40. data/sig/spotted/models/search_retrieve_response.rbs +8 -234
  41. data/sig/spotted/models/show_base.rbs +110 -0
  42. data/sig/spotted/models/show_list_response.rbs +4 -116
  43. data/sig/spotted/models/show_retrieve_response.rbs +8 -101
  44. data/sig/spotted/models.rbs +4 -0
  45. metadata +7 -1
@@ -0,0 +1,194 @@
1
+ # typed: strong
2
+
3
+ module Spotted
4
+ module Models
5
+ class ShowBase < Spotted::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias { T.any(Spotted::ShowBase, Spotted::Internal::AnyHash) }
8
+
9
+ # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
10
+ sig { returns(String) }
11
+ attr_accessor :id
12
+
13
+ # A list of the countries in which the show can be played, identified by their
14
+ # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
15
+ sig { returns(T::Array[String]) }
16
+ attr_accessor :available_markets
17
+
18
+ # The copyright statements of the show.
19
+ sig { returns(T::Array[Spotted::CopyrightObject]) }
20
+ attr_accessor :copyrights
21
+
22
+ # A description of the show. HTML tags are stripped away from this field, use
23
+ # `html_description` field in case HTML tags are needed.
24
+ sig { returns(String) }
25
+ attr_accessor :description
26
+
27
+ # Whether or not the show has explicit content (true = yes it does; false = no it
28
+ # does not OR unknown).
29
+ sig { returns(T::Boolean) }
30
+ attr_accessor :explicit
31
+
32
+ # External URLs for this show.
33
+ sig { returns(Spotted::ExternalURLObject) }
34
+ attr_reader :external_urls
35
+
36
+ sig { params(external_urls: Spotted::ExternalURLObject::OrHash).void }
37
+ attr_writer :external_urls
38
+
39
+ # A link to the Web API endpoint providing full details of the show.
40
+ sig { returns(String) }
41
+ attr_accessor :href
42
+
43
+ # A description of the show. This field may contain HTML tags.
44
+ sig { returns(String) }
45
+ attr_accessor :html_description
46
+
47
+ # The cover art for the show in various sizes, widest first.
48
+ sig { returns(T::Array[Spotted::ImageObject]) }
49
+ attr_accessor :images
50
+
51
+ # True if all of the shows episodes are hosted outside of Spotify's CDN. This
52
+ # field might be `null` in some cases.
53
+ sig { returns(T::Boolean) }
54
+ attr_accessor :is_externally_hosted
55
+
56
+ # A list of the languages used in the show, identified by their
57
+ # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
58
+ sig { returns(T::Array[String]) }
59
+ attr_accessor :languages
60
+
61
+ # The media type of the show.
62
+ sig { returns(String) }
63
+ attr_accessor :media_type
64
+
65
+ # The name of the episode.
66
+ sig { returns(String) }
67
+ attr_accessor :name
68
+
69
+ # The publisher of the show.
70
+ sig { returns(String) }
71
+ attr_accessor :publisher
72
+
73
+ # The total number of episodes in the show.
74
+ sig { returns(Integer) }
75
+ attr_accessor :total_episodes
76
+
77
+ # The object type.
78
+ sig { returns(Spotted::ShowBase::Type::TaggedSymbol) }
79
+ attr_accessor :type
80
+
81
+ # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
82
+ # show.
83
+ sig { returns(String) }
84
+ attr_accessor :uri
85
+
86
+ sig do
87
+ params(
88
+ id: String,
89
+ available_markets: T::Array[String],
90
+ copyrights: T::Array[Spotted::CopyrightObject::OrHash],
91
+ description: String,
92
+ explicit: T::Boolean,
93
+ external_urls: Spotted::ExternalURLObject::OrHash,
94
+ href: String,
95
+ html_description: String,
96
+ images: T::Array[Spotted::ImageObject::OrHash],
97
+ is_externally_hosted: T::Boolean,
98
+ languages: T::Array[String],
99
+ media_type: String,
100
+ name: String,
101
+ publisher: String,
102
+ total_episodes: Integer,
103
+ type: Spotted::ShowBase::Type::OrSymbol,
104
+ uri: String
105
+ ).returns(T.attached_class)
106
+ end
107
+ def self.new(
108
+ # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
109
+ id:,
110
+ # A list of the countries in which the show can be played, identified by their
111
+ # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
112
+ available_markets:,
113
+ # The copyright statements of the show.
114
+ copyrights:,
115
+ # A description of the show. HTML tags are stripped away from this field, use
116
+ # `html_description` field in case HTML tags are needed.
117
+ description:,
118
+ # Whether or not the show has explicit content (true = yes it does; false = no it
119
+ # does not OR unknown).
120
+ explicit:,
121
+ # External URLs for this show.
122
+ external_urls:,
123
+ # A link to the Web API endpoint providing full details of the show.
124
+ href:,
125
+ # A description of the show. This field may contain HTML tags.
126
+ html_description:,
127
+ # The cover art for the show in various sizes, widest first.
128
+ images:,
129
+ # True if all of the shows episodes are hosted outside of Spotify's CDN. This
130
+ # field might be `null` in some cases.
131
+ is_externally_hosted:,
132
+ # A list of the languages used in the show, identified by their
133
+ # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
134
+ languages:,
135
+ # The media type of the show.
136
+ media_type:,
137
+ # The name of the episode.
138
+ name:,
139
+ # The publisher of the show.
140
+ publisher:,
141
+ # The total number of episodes in the show.
142
+ total_episodes:,
143
+ # The object type.
144
+ type:,
145
+ # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
146
+ # show.
147
+ uri:
148
+ )
149
+ end
150
+
151
+ sig do
152
+ override.returns(
153
+ {
154
+ id: String,
155
+ available_markets: T::Array[String],
156
+ copyrights: T::Array[Spotted::CopyrightObject],
157
+ description: String,
158
+ explicit: T::Boolean,
159
+ external_urls: Spotted::ExternalURLObject,
160
+ href: String,
161
+ html_description: String,
162
+ images: T::Array[Spotted::ImageObject],
163
+ is_externally_hosted: T::Boolean,
164
+ languages: T::Array[String],
165
+ media_type: String,
166
+ name: String,
167
+ publisher: String,
168
+ total_episodes: Integer,
169
+ type: Spotted::ShowBase::Type::TaggedSymbol,
170
+ uri: String
171
+ }
172
+ )
173
+ end
174
+ def to_hash
175
+ end
176
+
177
+ # The object type.
178
+ module Type
179
+ extend Spotted::Internal::Type::Enum
180
+
181
+ TaggedSymbol = T.type_alias { T.all(Symbol, Spotted::ShowBase::Type) }
182
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
183
+
184
+ SHOW = T.let(:show, Spotted::ShowBase::Type::TaggedSymbol)
185
+
186
+ sig do
187
+ override.returns(T::Array[Spotted::ShowBase::Type::TaggedSymbol])
188
+ end
189
+ def self.values
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
@@ -8,231 +8,20 @@ module Spotted
8
8
  T.any(Spotted::Models::ShowListResponse, Spotted::Internal::AnyHash)
9
9
  end
10
10
 
11
- sig { returns(T::Array[Spotted::Models::ShowListResponse::Show]) }
11
+ sig { returns(T::Array[Spotted::ShowBase]) }
12
12
  attr_accessor :shows
13
13
 
14
14
  sig do
15
- params(
16
- shows: T::Array[Spotted::Models::ShowListResponse::Show::OrHash]
17
- ).returns(T.attached_class)
15
+ params(shows: T::Array[Spotted::ShowBase::OrHash]).returns(
16
+ T.attached_class
17
+ )
18
18
  end
19
19
  def self.new(shows:)
20
20
  end
21
21
 
22
- sig do
23
- override.returns(
24
- { shows: T::Array[Spotted::Models::ShowListResponse::Show] }
25
- )
26
- end
22
+ sig { override.returns({ shows: T::Array[Spotted::ShowBase] }) }
27
23
  def to_hash
28
24
  end
29
-
30
- class Show < Spotted::Internal::Type::BaseModel
31
- OrHash =
32
- T.type_alias do
33
- T.any(
34
- Spotted::Models::ShowListResponse::Show,
35
- Spotted::Internal::AnyHash
36
- )
37
- end
38
-
39
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
40
- sig { returns(String) }
41
- attr_accessor :id
42
-
43
- # A list of the countries in which the show can be played, identified by their
44
- # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
45
- sig { returns(T::Array[String]) }
46
- attr_accessor :available_markets
47
-
48
- # The copyright statements of the show.
49
- sig { returns(T::Array[Spotted::CopyrightObject]) }
50
- attr_accessor :copyrights
51
-
52
- # A description of the show. HTML tags are stripped away from this field, use
53
- # `html_description` field in case HTML tags are needed.
54
- sig { returns(String) }
55
- attr_accessor :description
56
-
57
- # Whether or not the show has explicit content (true = yes it does; false = no it
58
- # does not OR unknown).
59
- sig { returns(T::Boolean) }
60
- attr_accessor :explicit
61
-
62
- # External URLs for this show.
63
- sig { returns(Spotted::ExternalURLObject) }
64
- attr_reader :external_urls
65
-
66
- sig { params(external_urls: Spotted::ExternalURLObject::OrHash).void }
67
- attr_writer :external_urls
68
-
69
- # A link to the Web API endpoint providing full details of the show.
70
- sig { returns(String) }
71
- attr_accessor :href
72
-
73
- # A description of the show. This field may contain HTML tags.
74
- sig { returns(String) }
75
- attr_accessor :html_description
76
-
77
- # The cover art for the show in various sizes, widest first.
78
- sig { returns(T::Array[Spotted::ImageObject]) }
79
- attr_accessor :images
80
-
81
- # True if all of the shows episodes are hosted outside of Spotify's CDN. This
82
- # field might be `null` in some cases.
83
- sig { returns(T::Boolean) }
84
- attr_accessor :is_externally_hosted
85
-
86
- # A list of the languages used in the show, identified by their
87
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
88
- sig { returns(T::Array[String]) }
89
- attr_accessor :languages
90
-
91
- # The media type of the show.
92
- sig { returns(String) }
93
- attr_accessor :media_type
94
-
95
- # The name of the episode.
96
- sig { returns(String) }
97
- attr_accessor :name
98
-
99
- # The publisher of the show.
100
- sig { returns(String) }
101
- attr_accessor :publisher
102
-
103
- # The total number of episodes in the show.
104
- sig { returns(Integer) }
105
- attr_accessor :total_episodes
106
-
107
- # The object type.
108
- sig do
109
- returns(Spotted::Models::ShowListResponse::Show::Type::TaggedSymbol)
110
- end
111
- attr_accessor :type
112
-
113
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
114
- # show.
115
- sig { returns(String) }
116
- attr_accessor :uri
117
-
118
- sig do
119
- params(
120
- id: String,
121
- available_markets: T::Array[String],
122
- copyrights: T::Array[Spotted::CopyrightObject::OrHash],
123
- description: String,
124
- explicit: T::Boolean,
125
- external_urls: Spotted::ExternalURLObject::OrHash,
126
- href: String,
127
- html_description: String,
128
- images: T::Array[Spotted::ImageObject::OrHash],
129
- is_externally_hosted: T::Boolean,
130
- languages: T::Array[String],
131
- media_type: String,
132
- name: String,
133
- publisher: String,
134
- total_episodes: Integer,
135
- type: Spotted::Models::ShowListResponse::Show::Type::OrSymbol,
136
- uri: String
137
- ).returns(T.attached_class)
138
- end
139
- def self.new(
140
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
141
- id:,
142
- # A list of the countries in which the show can be played, identified by their
143
- # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
144
- available_markets:,
145
- # The copyright statements of the show.
146
- copyrights:,
147
- # A description of the show. HTML tags are stripped away from this field, use
148
- # `html_description` field in case HTML tags are needed.
149
- description:,
150
- # Whether or not the show has explicit content (true = yes it does; false = no it
151
- # does not OR unknown).
152
- explicit:,
153
- # External URLs for this show.
154
- external_urls:,
155
- # A link to the Web API endpoint providing full details of the show.
156
- href:,
157
- # A description of the show. This field may contain HTML tags.
158
- html_description:,
159
- # The cover art for the show in various sizes, widest first.
160
- images:,
161
- # True if all of the shows episodes are hosted outside of Spotify's CDN. This
162
- # field might be `null` in some cases.
163
- is_externally_hosted:,
164
- # A list of the languages used in the show, identified by their
165
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
166
- languages:,
167
- # The media type of the show.
168
- media_type:,
169
- # The name of the episode.
170
- name:,
171
- # The publisher of the show.
172
- publisher:,
173
- # The total number of episodes in the show.
174
- total_episodes:,
175
- # The object type.
176
- type:,
177
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
178
- # show.
179
- uri:
180
- )
181
- end
182
-
183
- sig do
184
- override.returns(
185
- {
186
- id: String,
187
- available_markets: T::Array[String],
188
- copyrights: T::Array[Spotted::CopyrightObject],
189
- description: String,
190
- explicit: T::Boolean,
191
- external_urls: Spotted::ExternalURLObject,
192
- href: String,
193
- html_description: String,
194
- images: T::Array[Spotted::ImageObject],
195
- is_externally_hosted: T::Boolean,
196
- languages: T::Array[String],
197
- media_type: String,
198
- name: String,
199
- publisher: String,
200
- total_episodes: Integer,
201
- type: Spotted::Models::ShowListResponse::Show::Type::TaggedSymbol,
202
- uri: String
203
- }
204
- )
205
- end
206
- def to_hash
207
- end
208
-
209
- # The object type.
210
- module Type
211
- extend Spotted::Internal::Type::Enum
212
-
213
- TaggedSymbol =
214
- T.type_alias do
215
- T.all(Symbol, Spotted::Models::ShowListResponse::Show::Type)
216
- end
217
- OrSymbol = T.type_alias { T.any(Symbol, String) }
218
-
219
- SHOW =
220
- T.let(
221
- :show,
222
- Spotted::Models::ShowListResponse::Show::Type::TaggedSymbol
223
- )
224
-
225
- sig do
226
- override.returns(
227
- T::Array[
228
- Spotted::Models::ShowListResponse::Show::Type::TaggedSymbol
229
- ]
230
- )
231
- end
232
- def self.values
233
- end
234
- end
235
- end
236
25
  end
237
26
  end
238
27
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spotted
4
4
  module Models
5
- class ShowRetrieveResponse < Spotted::Internal::Type::BaseModel
5
+ class ShowRetrieveResponse < Spotted::Models::ShowBase
6
6
  OrHash =
7
7
  T.type_alias do
8
8
  T.any(
@@ -11,24 +11,6 @@ module Spotted
11
11
  )
12
12
  end
13
13
 
14
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
15
- sig { returns(String) }
16
- attr_accessor :id
17
-
18
- # A list of the countries in which the show can be played, identified by their
19
- # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
20
- sig { returns(T::Array[String]) }
21
- attr_accessor :available_markets
22
-
23
- # The copyright statements of the show.
24
- sig { returns(T::Array[Spotted::CopyrightObject]) }
25
- attr_accessor :copyrights
26
-
27
- # A description of the show. HTML tags are stripped away from this field, use
28
- # `html_description` field in case HTML tags are needed.
29
- sig { returns(String) }
30
- attr_accessor :description
31
-
32
14
  # The episodes of the show.
33
15
  sig { returns(Spotted::Models::ShowRetrieveResponse::Episodes) }
34
16
  attr_reader :episodes
@@ -40,155 +22,20 @@ module Spotted
40
22
  end
41
23
  attr_writer :episodes
42
24
 
43
- # Whether or not the show has explicit content (true = yes it does; false = no it
44
- # does not OR unknown).
45
- sig { returns(T::Boolean) }
46
- attr_accessor :explicit
47
-
48
- # External URLs for this show.
49
- sig { returns(Spotted::ExternalURLObject) }
50
- attr_reader :external_urls
51
-
52
- sig { params(external_urls: Spotted::ExternalURLObject::OrHash).void }
53
- attr_writer :external_urls
54
-
55
- # A link to the Web API endpoint providing full details of the show.
56
- sig { returns(String) }
57
- attr_accessor :href
58
-
59
- # A description of the show. This field may contain HTML tags.
60
- sig { returns(String) }
61
- attr_accessor :html_description
62
-
63
- # The cover art for the show in various sizes, widest first.
64
- sig { returns(T::Array[Spotted::ImageObject]) }
65
- attr_accessor :images
66
-
67
- # True if all of the shows episodes are hosted outside of Spotify's CDN. This
68
- # field might be `null` in some cases.
69
- sig { returns(T::Boolean) }
70
- attr_accessor :is_externally_hosted
71
-
72
- # A list of the languages used in the show, identified by their
73
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
74
- sig { returns(T::Array[String]) }
75
- attr_accessor :languages
76
-
77
- # The media type of the show.
78
- sig { returns(String) }
79
- attr_accessor :media_type
80
-
81
- # The name of the episode.
82
- sig { returns(String) }
83
- attr_accessor :name
84
-
85
- # The publisher of the show.
86
- sig { returns(String) }
87
- attr_accessor :publisher
88
-
89
- # The total number of episodes in the show.
90
- sig { returns(Integer) }
91
- attr_accessor :total_episodes
92
-
93
- # The object type.
94
- sig { returns(Spotted::Models::ShowRetrieveResponse::Type::TaggedSymbol) }
95
- attr_accessor :type
96
-
97
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
98
- # show.
99
- sig { returns(String) }
100
- attr_accessor :uri
101
-
102
25
  sig do
103
26
  params(
104
- id: String,
105
- available_markets: T::Array[String],
106
- copyrights: T::Array[Spotted::CopyrightObject::OrHash],
107
- description: String,
108
- episodes: Spotted::Models::ShowRetrieveResponse::Episodes::OrHash,
109
- explicit: T::Boolean,
110
- external_urls: Spotted::ExternalURLObject::OrHash,
111
- href: String,
112
- html_description: String,
113
- images: T::Array[Spotted::ImageObject::OrHash],
114
- is_externally_hosted: T::Boolean,
115
- languages: T::Array[String],
116
- media_type: String,
117
- name: String,
118
- publisher: String,
119
- total_episodes: Integer,
120
- type: Spotted::Models::ShowRetrieveResponse::Type::OrSymbol,
121
- uri: String
27
+ episodes: Spotted::Models::ShowRetrieveResponse::Episodes::OrHash
122
28
  ).returns(T.attached_class)
123
29
  end
124
30
  def self.new(
125
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
126
- id:,
127
- # A list of the countries in which the show can be played, identified by their
128
- # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
129
- available_markets:,
130
- # The copyright statements of the show.
131
- copyrights:,
132
- # A description of the show. HTML tags are stripped away from this field, use
133
- # `html_description` field in case HTML tags are needed.
134
- description:,
135
31
  # The episodes of the show.
136
- episodes:,
137
- # Whether or not the show has explicit content (true = yes it does; false = no it
138
- # does not OR unknown).
139
- explicit:,
140
- # External URLs for this show.
141
- external_urls:,
142
- # A link to the Web API endpoint providing full details of the show.
143
- href:,
144
- # A description of the show. This field may contain HTML tags.
145
- html_description:,
146
- # The cover art for the show in various sizes, widest first.
147
- images:,
148
- # True if all of the shows episodes are hosted outside of Spotify's CDN. This
149
- # field might be `null` in some cases.
150
- is_externally_hosted:,
151
- # A list of the languages used in the show, identified by their
152
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
153
- languages:,
154
- # The media type of the show.
155
- media_type:,
156
- # The name of the episode.
157
- name:,
158
- # The publisher of the show.
159
- publisher:,
160
- # The total number of episodes in the show.
161
- total_episodes:,
162
- # The object type.
163
- type:,
164
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
165
- # show.
166
- uri:
32
+ episodes:
167
33
  )
168
34
  end
169
35
 
170
36
  sig do
171
37
  override.returns(
172
- {
173
- id: String,
174
- available_markets: T::Array[String],
175
- copyrights: T::Array[Spotted::CopyrightObject],
176
- description: String,
177
- episodes: Spotted::Models::ShowRetrieveResponse::Episodes,
178
- explicit: T::Boolean,
179
- external_urls: Spotted::ExternalURLObject,
180
- href: String,
181
- html_description: String,
182
- images: T::Array[Spotted::ImageObject],
183
- is_externally_hosted: T::Boolean,
184
- languages: T::Array[String],
185
- media_type: String,
186
- name: String,
187
- publisher: String,
188
- total_episodes: Integer,
189
- type: Spotted::Models::ShowRetrieveResponse::Type::TaggedSymbol,
190
- uri: String
191
- }
38
+ { episodes: Spotted::Models::ShowRetrieveResponse::Episodes }
192
39
  )
193
40
  end
194
41
  def to_hash
@@ -275,31 +122,6 @@ module Spotted
275
122
  def to_hash
276
123
  end
277
124
  end
278
-
279
- # The object type.
280
- module Type
281
- extend Spotted::Internal::Type::Enum
282
-
283
- TaggedSymbol =
284
- T.type_alias do
285
- T.all(Symbol, Spotted::Models::ShowRetrieveResponse::Type)
286
- end
287
- OrSymbol = T.type_alias { T.any(Symbol, String) }
288
-
289
- SHOW =
290
- T.let(
291
- :show,
292
- Spotted::Models::ShowRetrieveResponse::Type::TaggedSymbol
293
- )
294
-
295
- sig do
296
- override.returns(
297
- T::Array[Spotted::Models::ShowRetrieveResponse::Type::TaggedSymbol]
298
- )
299
- end
300
- def self.values
301
- end
302
- end
303
125
  end
304
126
  end
305
127
  end
@@ -24,6 +24,8 @@ module Spotted
24
24
 
25
25
  AudioAnalysisRetrieveParams = Spotted::Models::AudioAnalysisRetrieveParams
26
26
 
27
+ AudiobookBase = Spotted::Models::AudiobookBase
28
+
27
29
  AudiobookListChaptersParams = Spotted::Models::AudiobookListChaptersParams
28
30
 
29
31
  AudiobookListParams = Spotted::Models::AudiobookListParams
@@ -100,6 +102,8 @@ module Spotted
100
102
 
101
103
  SearchRetrieveParams = Spotted::Models::SearchRetrieveParams
102
104
 
105
+ ShowBase = Spotted::Models::ShowBase
106
+
103
107
  ShowListEpisodesParams = Spotted::Models::ShowListEpisodesParams
104
108
 
105
109
  ShowListParams = Spotted::Models::ShowListParams