WellKnown

@JsonClass(generateAdapter = true)
data class WellKnown(@Json(name = "m.homeserver") val homeServer: WellKnownBaseConfig? = null, @Json(name = "m.identity_server") val identityServer: WellKnownBaseConfig? = null, @Json(name = "m.integrations") val integrations: JsonDict? = null, @Json(name = "org.matrix.msc2965.authentication") val unstableDelegatedAuthConfig: DelegatedAuthConfig? = null, @Json(name = "io.element.disable_network_constraint") val disableNetworkConstraint: Boolean? = null)

https://matrix.org/docs/spec/client_server/r0.4.0.html#server-discovery

{
     "m.homeserver": {
         "base_url": "https://matrix.org"
     },
     "m.identity_server": {
         "base_url": "https://vector.im"
     }
     "m.integrations": {
          "managers": [
              {
                  "api_url": "https://integrations.example.org",
                  "ui_url": "https://integrations.example.org/ui"
              },
              {
                  "api_url": "https://bots.example.org"
              }
          ]
    }
}

.

Constructors

Link copied to clipboard
constructor(@Json(name = "m.homeserver") homeServer: WellKnownBaseConfig? = null, @Json(name = "m.identity_server") identityServer: WellKnownBaseConfig? = null, @Json(name = "m.integrations") integrations: JsonDict? = null, @Json(name = "org.matrix.msc2965.authentication") unstableDelegatedAuthConfig: DelegatedAuthConfig? = null, @Json(name = "io.element.disable_network_constraint") disableNetworkConstraint: Boolean? = null)

Properties

Link copied to clipboard

If set to true, the SDK will not use the network constraint when configuring Worker for the WorkManager.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val integrations: JsonDict? = null
Link copied to clipboard

For delegation of auth via OIDC as per MSC2965.