CreateAuthTokenConfig

@Serializable
data class CreateAuthTokenConfig(val httpOptions: HttpOptions? = null, val expireTime: Instant? = null, val newSessionExpireTime: Instant? = null, val uses: Int? = null, val liveConnectConstraints: LiveConnectConstraints? = null, val lockAdditionalFields: List<String>? = null)

Optional parameters.

Constructors

Link copied to clipboard
constructor(httpOptions: HttpOptions? = null, expireTime: Instant? = null, newSessionExpireTime: Instant? = null, uses: Int? = null, liveConnectConstraints: LiveConnectConstraints? = null, lockAdditionalFields: List<String>? = null)

Properties

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val expireTime: Instant? = null

An optional time after which, when using the resulting token, messages in Live API sessions will be rejected. (Gemini may preemptively close the session after this time.)

Link copied to clipboard

Used to override HTTP request options.

Link copied to clipboard

Configuration specific to Live API connections created using this token.

Link copied to clipboard

Additional fields to lock in the effective LiveConnectParameters.

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val newSessionExpireTime: Instant? = null

The time after which new Live API sessions using the token resulting from this request will be rejected.

Link copied to clipboard
val uses: Int? = null

The number of times the token can be used. If this value is zero then no limit is applied. Default is 1. Resuming a Live API session does not count as a use.