WorkOS PHP SDK

AgentInstanceSessionCreatedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$agentInstanceId  : string
The agent instance the session belongs to.
$createdAt  : string
The timestamp when the session was created.
$expiresAt  : string
Timestamp when the session expires.
$id  : string
Unique identifier of the agent instance session.
$object  : string
Distinguishes the agent instance session object.
$organizationId  : string
The organization the owning agent instance belongs to.
$permissionSlugs  : array<string|int, string>
The permissions granted to the session at mint time.
$revokedAt  : string|null
Timestamp when the session was revoked; `null` if it has not been revoked.
$updatedAt  : string
The timestamp when the session was last updated.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $object, string $id, string $agentInstanceId, string $organizationId, string $expiresAt, string|null $revokedAt, string $createdAt, string $updatedAt, array<string|int, mixed> $permissionSlugs) : mixed
Parameters
$object : string
$id : string
$agentInstanceId : string
$organizationId : string
$expiresAt : string
$revokedAt : string|null
$createdAt : string
$updatedAt : string
$permissionSlugs : array<string|int, mixed>

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results