File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
bigbone/src/main/kotlin/social/bigbone/api/entity Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ data class Instance(
69
69
@SerialName(" registrations" )
70
70
val registrations : Registrations = Registrations (),
71
71
72
+ /* *
73
+ * Information about which version of the API is implemented by this server.
74
+ */
75
+ @SerialName(" api_versions" )
76
+ val apiVersions : ApiVersions = ApiVersions (),
77
+
72
78
/* *
73
79
* Hints related to contacting a representative of the website.
74
80
*/
@@ -353,6 +359,19 @@ data class Instance(
353
359
val message : String? = null
354
360
)
355
361
362
+ /* *
363
+ * Information about which version of the API is implemented by this server.
364
+ */
365
+ @Serializable
366
+ data class ApiVersions (
367
+ /* *
368
+ * API version number that this server implements. Starting from Mastodon v4.3.0,
369
+ * API changes will come with a version number, which clients can check against this value.
370
+ */
371
+ @SerialName(" mastodon" )
372
+ val mastodon : Int = 0 ,
373
+ )
374
+
356
375
/* *
357
376
* Hints related to contacting a representative of the website.
358
377
*/
You can’t perform that action at this time.
0 commit comments