Skip to main content

AgentLease

Short-lived context-bound capability. The model cannot create, widen, or renew it.

type AgentLease {
leaseId: String!
kind: CrowdyStudioAgentLeaseType!
status: CrowdyStudioAgentLeaseStatus!
clientEpoch: BigInt!
scopes: [String!]!
holder: String!
contextVersion: String!
controlledEntityId: String
hostCapabilityRevision: String
expectedProjectRevision: BigInt
grantedAt: DateTime!
expiresAt: DateTime!
revokedReason: String
}

Fields

AgentLease.leaseId ● String! non-null scalar

Stable lease UUID.

AgentLease.kind ● CrowdyStudioAgentLeaseType! non-null enum

WORKSPACE or PLAY.

AgentLease.status ● CrowdyStudioAgentLeaseStatus! non-null enum

Required lease lifecycle status.

AgentLease.clientEpoch ● BigInt! non-null scalar

Bound attached browser epoch.

AgentLease.scopes ● [String!]! non-null scalar

Explicit maximum scopes carried by this lease.

AgentLease.holder ● String! non-null scalar

Human-visible lease holder alias.

AgentLease.contextVersion ● String! non-null scalar

Authoritative context version bound to the lease.

AgentLease.controlledEntityId ● String scalar

Controlled entity for PLAY, or null.

AgentLease.hostCapabilityRevision ● String scalar

Host capability revision for PLAY, or null.

AgentLease.expectedProjectRevision ● BigInt scalar

Expected project revision for WORKSPACE, or null.

AgentLease.grantedAt ● DateTime! non-null scalar

Lease grant timestamp.

AgentLease.expiresAt ● DateTime! non-null scalar

Hard expiry; the model cannot renew it.

AgentLease.revokedReason ● String scalar

Stable revoke/expiry reason, or null while active.

Returned By

crowdyStudioAgentGrantLease mutation ● crowdyStudioAgentRevokeLease mutation

Member Of

AgentSession object