AgentBlueprintsCreateRequestSessionSetting
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Token and session lifetimes for sessions minted from this blueprint.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $accessTokenTtlSeconds : int
- Lifetime of each minted access token in seconds. At most 3,600 (1 hour).
- $maxAgeSeconds : int
- Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days).
- $refreshTokenTtlSeconds : int
- Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days).
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$accessTokenTtlSeconds
Lifetime of each minted access token in seconds. At most 3,600 (1 hour).
public
int
$accessTokenTtlSeconds
$maxAgeSeconds
Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days).
public
int
$maxAgeSeconds
$refreshTokenTtlSeconds
Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days).
public
int
$refreshTokenTtlSeconds
Methods
__construct()
public
__construct(int $maxAgeSeconds, int $accessTokenTtlSeconds, int $refreshTokenTtlSeconds) : mixed
Parameters
- $maxAgeSeconds : int
- $accessTokenTtlSeconds : int
- $refreshTokenTtlSeconds : int
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>