@lightspeed-ai/sdk 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,7 +149,7 @@ export type ToolItemStatus = "requested" | "running" | "succeeded" | "failed" |
149
149
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
150
150
  * via the `definition` "ToolCallDisplayGroup".
151
151
  */
152
- export type ToolCallDisplayGroup = "other" | "explore" | "edit" | "execute" | "mcp" | "agent" | "bot" | "message";
152
+ export type ToolCallDisplayGroup = "other" | "explore" | "edit" | "execute" | "code" | "mcp" | "agent" | "bot" | "message";
153
153
  /**
154
154
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
155
155
  * via the `definition` "ContextEntryKindView".
@@ -689,6 +689,12 @@ export type SessionEventKindView = {
689
689
  runId: string;
690
690
  turnId: string;
691
691
  type: "toolBatchCompleted";
692
+ } | {
693
+ executionId: string;
694
+ phase: CodeToolProgressPhase;
695
+ requestId?: string | null;
696
+ status?: ToolItemStatus | null;
697
+ type: "codeToolProgress";
692
698
  };
693
699
  /**
694
700
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -715,6 +721,13 @@ export type RunFailureKindView = ("model_failure" | "tool_failure" | "context_fa
715
721
  * via the `definition` "ToolAttachmentKind".
716
722
  */
717
723
  export type ToolAttachmentKind = "media" | "file";
724
+ /**
725
+ * Bounded lifecycle telemetry for a session-owned code tool execution.
726
+ *
727
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
728
+ * via the `definition` "CodeToolProgressPhase".
729
+ */
730
+ export type CodeToolProgressPhase = "scopeOpened" | "callAdmitted" | "callDeferred" | "callCompleted" | "scopeClosed";
718
731
  /**
719
732
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
720
733
  * via the `definition` "RunViewSource".
@@ -1161,74 +1174,107 @@ export type ContextReplaceStatus = ("replaced" | "failed") | "unchanged" | "abse
1161
1174
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1162
1175
  * via the `definition` "MethodGroup".
1163
1176
  */
1164
- export type MethodGroup = ("vfs" | "profiles" | "transcriptions" | "models" | "mcp" | "bots" | "deployment/universes" | "deployment/api-keys") | "session" | "blobs/put" | "environments" | "channels" | "channels/inbound" | "auth" | "auth/lease" | "deployment/environment-providers" | "deployment/channels";
1177
+ export type MethodGroup = ("vfs" | "profiles" | "transcriptions" | "models" | "mcp" | "bots" | "deployment/universes" | "deployment/api-keys" | "deployment/sessions") | "session" | "session/delete" | "blobs/put" | "environments" | "channels" | "channels/inbound" | "auth" | "auth/lease" | "deployment/environment-providers" | "deployment/channels";
1165
1178
  /**
1166
- * Steady power state of a provisioned environment.
1179
+ * Why an environment is closing or closed.
1167
1180
  *
1168
1181
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1169
- * via the `definition` "EnvironmentPowerStateView".
1182
+ * via the `definition` "EnvironmentCloseReasonView".
1170
1183
  */
1171
- export type EnvironmentPowerStateView = "running" | "paused" | "suspended" | "stopped";
1184
+ export type EnvironmentCloseReasonView = "requested" | "keyRevoked" | "ephemeralGrace" | "departed" | "offlineTimeout" | "providerEnded";
1172
1185
  /**
1173
1186
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1174
1187
  * via the `definition` "EnvironmentSourceView".
1175
1188
  */
1176
1189
  export type EnvironmentSourceView = {
1177
- bindingId: string;
1190
+ /**
1191
+ * The create-time idle policy, when one replaced the template's.
1192
+ */
1193
+ idle?: EnvironmentIdlePolicyView | null;
1194
+ /**
1195
+ * Absent until the provider first reported the target.
1196
+ */
1197
+ observed?: EnvironmentObservedTargetView | null;
1178
1198
  providerId: string;
1199
+ /**
1200
+ * The public endpoint the provider last reported.
1201
+ */
1202
+ publicEndpoint?: string | null;
1203
+ /**
1204
+ * The provider's handle for the target; absent until the provider
1205
+ * accepted the create.
1206
+ */
1207
+ targetId?: string | null;
1208
+ templateId: string;
1179
1209
  type: "provisioned";
1180
1210
  } | {
1181
- connection: EnvironmentConnectionView;
1211
+ /**
1212
+ * `ws://`, `wss://` or `unix://` URL Lightspeed dials envd at.
1213
+ */
1214
+ endpoint: string;
1182
1215
  type: "external";
1183
1216
  } | {
1217
+ /**
1218
+ * The daemon's control connection is up.
1219
+ */
1220
+ connected: boolean;
1221
+ /**
1222
+ * When the daemon last connected or disconnected.
1223
+ */
1224
+ connectionChangedAtMs: number;
1184
1225
  daemonId: string;
1226
+ /**
1227
+ * The admitting key's identity mode.
1228
+ */
1185
1229
  identityMode: EnvironmentIdentityModeView;
1230
+ /**
1231
+ * When the gateway last recorded the daemon's control connection:
1232
+ * at connect, at disconnect, and at most every five minutes while
1233
+ * connected.
1234
+ */
1235
+ lastSeenAtMs: number;
1186
1236
  registrationKeyId: string;
1187
1237
  type: "registered";
1188
1238
  };
1189
1239
  /**
1240
+ * Lifecycle phase of a provider target, as the provider reports it.
1241
+ *
1190
1242
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1191
- * via the `definition` "EnvironmentConnectionTransportView".
1243
+ * via the `definition` "EnvironmentTargetPhaseView".
1192
1244
  */
1193
- export type EnvironmentConnectionTransportView = ("webSocket" | "http" | "stdio" | "ssh") | {
1194
- provider: {
1195
- provider_type: string;
1196
- };
1197
- };
1245
+ export type EnvironmentTargetPhaseView = "provisioning" | "active" | "closing" | "closed" | "failed" | "unknown";
1198
1246
  /**
1199
- * What Lightspeed does with a registered environment while its daemon is
1200
- * disconnected. Registration-key policy, copied onto each environment.
1247
+ * Power state of a provisioned environment's target.
1201
1248
  *
1202
1249
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1203
- * via the `definition` "EnvironmentIdentityModeView".
1250
+ * via the `definition` "EnvironmentPowerStateView".
1204
1251
  */
1205
- export type EnvironmentIdentityModeView = "persistent" | "ephemeral";
1252
+ export type EnvironmentPowerStateView = "running" | "paused" | "suspended" | "stopped";
1206
1253
  /**
1254
+ * What happens to a registered environment while its daemon is
1255
+ * disconnected. Policy of the registration key that admitted it.
1256
+ *
1207
1257
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1208
- * via the `definition` "EnvironmentLifecycleStatusView".
1258
+ * via the `definition` "EnvironmentIdentityModeView".
1209
1259
  */
1210
- export type EnvironmentLifecycleStatusView = ("provisioning" | "booting" | "ready" | "closing" | "closed" | "failed" | "unknown") | "paused" | "suspended" | "offline";
1260
+ export type EnvironmentIdentityModeView = "persistent" | "ephemeral";
1211
1261
  /**
1262
+ * The lifecycle Lightspeed owns. External and registered environments are
1263
+ * only ever `open` or `closed`.
1264
+ *
1212
1265
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1213
- * via the `definition` "DeploymentEnvironmentProviderTransport".
1266
+ * via the `definition` "EnvironmentStateView".
1214
1267
  */
1215
- export type DeploymentEnvironmentProviderTransport = {
1216
- type: "webSocket";
1217
- } | {
1218
- type: "http";
1219
- } | {
1220
- type: "stdio";
1221
- } | {
1222
- type: "ssh";
1223
- } | {
1224
- providerType: string;
1225
- type: "provider";
1226
- };
1268
+ export type EnvironmentStateView = ("open" | "closed") | "provisioning" | "closing" | "failed";
1227
1269
  /**
1270
+ * Display status derived from `state` and the latest observation; never
1271
+ * stored. Tools that use a paused, suspended or stopped environment wake
1272
+ * it.
1273
+ *
1228
1274
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1229
- * via the `definition` "EnvironmentProviderBindingStatusView".
1275
+ * via the `definition` "EnvironmentStatusView".
1230
1276
  */
1231
- export type EnvironmentProviderBindingStatusView = "enabled" | "disabled";
1277
+ export type EnvironmentStatusView = ("provisioning" | "ready" | "closing" | "closed" | "failed") | "paused" | "suspended" | "stopped" | "unknown" | "away";
1232
1278
  /**
1233
1279
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1234
1280
  * via the `definition` "EnvironmentCredentialSourceView".
@@ -1244,15 +1290,43 @@ export type EnvironmentCredentialSourceView = {
1244
1290
  type: "directSecret";
1245
1291
  };
1246
1292
  /**
1293
+ * How a job's root process ended.
1294
+ *
1295
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1296
+ * via the `definition` "SessionJobExitView".
1297
+ */
1298
+ export type SessionJobExitView = {
1299
+ code: number;
1300
+ type: "code";
1301
+ } | {
1302
+ coreDumped?: boolean;
1303
+ signal: string;
1304
+ type: "signal";
1305
+ };
1306
+ /**
1307
+ * Job lifecycle. `queued` and `running` are live; the rest are terminal.
1308
+ *
1247
1309
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1248
1310
  * via the `definition` "SessionJobStatusView".
1249
1311
  */
1250
- export type SessionJobStatusView = "accepted" | "queued" | "running" | "succeeded" | "failed" | "cancelRequested" | "cancelled" | "timedOut" | "dependencyFailed" | "interrupted" | "lost";
1312
+ export type SessionJobStatusView = "running" | "queued" | "succeeded" | "failed" | "timedOut" | "cancelled" | "dependencyFailed" | "interrupted";
1313
+ /**
1314
+ * Why Lightspeed stopped a running job.
1315
+ *
1316
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1317
+ * via the `definition` "SessionJobStoppedByView".
1318
+ */
1319
+ export type SessionJobStoppedByView = "timeout" | "terminate" | "kill";
1251
1320
  /**
1252
1321
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1253
1322
  * via the `definition` "SessionJobOutputStreamView".
1254
1323
  */
1255
1324
  export type SessionJobOutputStreamView = "stdout" | "stderr";
1325
+ /**
1326
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1327
+ * via the `definition` "SessionJobOutputGapReasonView".
1328
+ */
1329
+ export type SessionJobOutputGapReasonView = "overflow" | "expired";
1256
1330
  /**
1257
1331
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1258
1332
  * via the `definition` "EnvironmentRegistrationKeyStatusView".
@@ -1547,7 +1621,7 @@ export type MethodAccess = {
1547
1621
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
1548
1622
  * via the `definition` "UniverseAction".
1549
1623
  */
1550
- export type UniverseAction = ("read" | "create_session" | "control_session" | "stop_session" | "delete_session" | "create_profile" | "manage_profile" | "create_bot" | "manage_bot" | "invoke_bot" | "create_workspace") | "share_session" | "use_resource" | "configure_resource";
1624
+ export type UniverseAction = ("read" | "create_session" | "control_session" | "configure_session" | "stop_session" | "close_session" | "delete_session" | "set_session_retention" | "create_profile" | "manage_profile" | "create_bot" | "manage_bot" | "invoke_bot" | "create_workspace") | "share_session" | "use_resource" | "configure_resource";
1551
1625
  /**
1552
1626
  * Where a method names the session it acts on, so a gate can decide per
1553
1627
  * session without a hand-written table. A creation method may name one that
@@ -1965,6 +2039,7 @@ export interface ContextConfig {
1965
2039
  * via the `definition` "FeaturesConfig".
1966
2040
  */
1967
2041
  export interface FeaturesConfig {
2042
+ codeMode?: CodeModeFeature | null;
1968
2043
  environments?: EnvironmentsFeature | null;
1969
2044
  mcp?: McpFeature | null;
1970
2045
  subagents?: SubagentsFeature | null;
@@ -1972,6 +2047,64 @@ export interface FeaturesConfig {
1972
2047
  vfs?: VfsFeature | null;
1973
2048
  web?: WebFeature | null;
1974
2049
  }
2050
+ /**
2051
+ * Grants JavaScript composition through `code_execute`. Available script tools
2052
+ * are the session's ordinary callable tools, optionally narrowed by allowedTools.
2053
+ * TypeScript, ambient filesystem/network access, and recursive code execution
2054
+ * are unavailable. An empty allowedTools list grants pure computation only.
2055
+ *
2056
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
2057
+ * via the `definition` "CodeModeFeature".
2058
+ */
2059
+ export interface CodeModeFeature {
2060
+ /**
2061
+ * Logical tool ids (for example vfs.read_file), not provider wire names.
2062
+ * Absent permits every currently callable grant; an empty list permits none.
2063
+ */
2064
+ allowedTools?: string[] | null;
2065
+ /**
2066
+ * Pinned callable catalog bytes, at most 8 MiB.
2067
+ */
2068
+ maxCatalogBytes?: number;
2069
+ /**
2070
+ * Interpreter heap, at most 512 MiB.
2071
+ */
2072
+ maxMemoryBytes?: number;
2073
+ /**
2074
+ * Combined text() output and return value, at most 8 MiB.
2075
+ */
2076
+ maxOutputBytes?: number;
2077
+ /**
2078
+ * Concurrent pending calls, at most 64 and no greater than maxToolCalls.
2079
+ */
2080
+ maxOutstandingToolCalls?: number;
2081
+ /**
2082
+ * Serialized arguments per tool request, at most 8 MiB.
2083
+ */
2084
+ maxRequestBytes?: number;
2085
+ /**
2086
+ * Serialized completion per tool request, at most 8 MiB.
2087
+ */
2088
+ maxResultBytes?: number;
2089
+ /**
2090
+ * UTF-8 source bytes, at most 1 MiB.
2091
+ */
2092
+ maxSourceBytes?: number;
2093
+ /**
2094
+ * Interpreter native stack, at most 8 MiB.
2095
+ */
2096
+ maxStackBytes?: number;
2097
+ /**
2098
+ * Calls per script, at most 1,024.
2099
+ */
2100
+ maxToolCalls?: number;
2101
+ /**
2102
+ * Total attempt time including input loading, interpreter capacity waits,
2103
+ * JavaScript evaluation, and tool waits; at most 600,000 milliseconds.
2104
+ */
2105
+ timeoutMs?: number;
2106
+ version?: number;
2107
+ }
1975
2108
  /**
1976
2109
  * Grants session environments. The `environments` list is the allowed set:
1977
2110
  * the session can select, read, and run work only on a listed machine, each
@@ -4319,86 +4452,28 @@ export interface DeploymentChannelAccountView {
4319
4452
  }
4320
4453
  /**
4321
4454
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4322
- * via the `definition` "AgentApiOutcomeOfDeploymentEnvironmentAdoptResponse".
4455
+ * via the `definition` "AgentApiOutcomeOfDeploymentDeletedSessionsListResponse".
4323
4456
  */
4324
- export interface AgentApiOutcomeOfDeploymentEnvironmentAdoptResponse {
4457
+ export interface AgentApiOutcomeOfDeploymentDeletedSessionsListResponse {
4325
4458
  notifications?: AgentNotification[];
4326
- result: DeploymentEnvironmentAdoptResponse;
4459
+ result: DeploymentDeletedSessionsListResponse;
4327
4460
  }
4328
4461
  /**
4329
4462
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4330
- * via the `definition` "DeploymentEnvironmentAdoptResponse".
4463
+ * via the `definition` "DeploymentDeletedSessionsListResponse".
4331
4464
  */
4332
- export interface DeploymentEnvironmentAdoptResponse {
4333
- environment: EnvironmentView;
4465
+ export interface DeploymentDeletedSessionsListResponse {
4466
+ nextAfter?: string | null;
4467
+ sessions: DeletedSessionView[];
4334
4468
  }
4335
4469
  /**
4336
4470
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4337
- * via the `definition` "EnvironmentView".
4471
+ * via the `definition` "DeletedSessionView".
4338
4472
  */
4339
- export interface EnvironmentView {
4340
- createdAtMs: number;
4341
- /**
4342
- * Lightspeed-owned power intent; `status` is the observed state.
4343
- */
4344
- desiredPower: EnvironmentPowerStateView;
4473
+ export interface DeletedSessionView {
4474
+ deletedAtMs: number;
4345
4475
  displayName?: string | null;
4346
- environmentId: string;
4347
- idlePolicy?: EnvironmentIdlePolicyView | null;
4348
- incarnation: EnvironmentIncarnationView;
4349
- /**
4350
- * Registered environments only: when the gateway last saw the daemon's
4351
- * control connection.
4352
- */
4353
- lastSeenAtMs?: number | null;
4354
- metadata?: {
4355
- [k: string]: string;
4356
- };
4357
- publicEndpoint?: string | null;
4358
- publicIngressEnabled: boolean;
4359
- requestId: string;
4360
- source: EnvironmentSourceView;
4361
- status: EnvironmentLifecycleStatusView;
4362
- updatedAtMs: number;
4363
- }
4364
- /**
4365
- * Staged idle policy. Thresholds are milliseconds of daemon-reported idle
4366
- * time and must be non-decreasing in the order pause, suspend, stop, close.
4367
- * Stages whose power state the provider does not support are skipped.
4368
- *
4369
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4370
- * via the `definition` "EnvironmentIdlePolicyView".
4371
- */
4372
- export interface EnvironmentIdlePolicyView {
4373
- closeAfterMs?: number | null;
4374
- pauseAfterMs?: number | null;
4375
- stopAfterMs?: number | null;
4376
- suspendAfterMs?: number | null;
4377
- }
4378
- /**
4379
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4380
- * via the `definition` "EnvironmentIncarnationView".
4381
- */
4382
- export interface EnvironmentIncarnationView {
4383
- createdAtMs: number;
4384
- incarnationId: string;
4385
- /**
4386
- * Power states the provider reported for this target; empty until
4387
- * observed or when the provider offers no power control.
4388
- */
4389
- powerStates?: EnvironmentPowerStateView[];
4390
- providerTargetId?: string | null;
4391
- provisionRequestId?: string | null;
4392
- templateId?: string | null;
4393
- updatedAtMs: number;
4394
- }
4395
- /**
4396
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4397
- * via the `definition` "EnvironmentConnectionView".
4398
- */
4399
- export interface EnvironmentConnectionView {
4400
- endpoint: string;
4401
- transport: EnvironmentConnectionTransportView;
4476
+ sessionId: string;
4402
4477
  }
4403
4478
  /**
4404
4479
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -4420,23 +4495,31 @@ export interface DeploymentEnvironmentProviderDeleteResponse {
4420
4495
  * via the `definition` "DeploymentEnvironmentProviderView".
4421
4496
  */
4422
4497
  export interface DeploymentEnvironmentProviderView {
4423
- controllerConnection: DeploymentEnvironmentProviderConnection;
4498
+ /**
4499
+ * `ws://`, `wss://` or `unix://` URL of the provider controller.
4500
+ */
4501
+ controllerEndpoint: string;
4424
4502
  createdAtMs: number;
4503
+ /**
4504
+ * Operator-configured `ws://` or `wss://` base of the provider's data
4505
+ * routes; absent derives it from the controller endpoint.
4506
+ */
4507
+ dataRouteBase?: string | null;
4425
4508
  displayName?: string | null;
4426
- metadata?: {
4427
- [k: string]: string;
4428
- };
4509
+ /**
4510
+ * The data route base Lightspeed dials: `dataRouteBase`, or the
4511
+ * controller endpoint's origin followed by `/routes`. Absent only when it
4512
+ * cannot be derived.
4513
+ */
4514
+ effectiveDataRouteBase?: string | null;
4515
+ /**
4516
+ * A bearer credential is stored and presented to the controller and
4517
+ * data routes; without one no `Authorization` header is sent.
4518
+ */
4519
+ hasCredential: boolean;
4429
4520
  providerId: string;
4430
4521
  updatedAtMs: number;
4431
4522
  }
4432
- /**
4433
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4434
- * via the `definition` "DeploymentEnvironmentProviderConnection".
4435
- */
4436
- export interface DeploymentEnvironmentProviderConnection {
4437
- endpoint: string;
4438
- transport: DeploymentEnvironmentProviderTransport;
4439
- }
4440
4523
  /**
4441
4524
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4442
4525
  * via the `definition` "AgentApiOutcomeOfDeploymentEnvironmentProviderListResponse".
@@ -4498,18 +4581,16 @@ export interface DeploymentProviderBindingDeleteResponse {
4498
4581
  binding: EnvironmentProviderBindingView;
4499
4582
  }
4500
4583
  /**
4584
+ * A universe's binding to a deployment provider. Creates, templates and
4585
+ * data routes of the provider need it enabled.
4586
+ *
4501
4587
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4502
4588
  * via the `definition` "EnvironmentProviderBindingView".
4503
4589
  */
4504
4590
  export interface EnvironmentProviderBindingView {
4505
- bindingId: string;
4506
4591
  createdAtMs: number;
4507
- metadata?: {
4508
- [k: string]: string;
4509
- };
4592
+ enabled: boolean;
4510
4593
  providerId: string;
4511
- revision: number;
4512
- status: EnvironmentProviderBindingStatusView;
4513
4594
  updatedAtMs: number;
4514
4595
  }
4515
4596
  /**
@@ -4527,6 +4608,25 @@ export interface AgentApiOutcomeOfDeploymentProviderBindingPutResponse {
4527
4608
  export interface DeploymentProviderBindingPutResponse {
4528
4609
  binding: EnvironmentProviderBindingView;
4529
4610
  }
4611
+ /**
4612
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4613
+ * via the `definition` "AgentApiOutcomeOfDeploymentSessionPurgeResponse".
4614
+ */
4615
+ export interface AgentApiOutcomeOfDeploymentSessionPurgeResponse {
4616
+ notifications?: AgentNotification[];
4617
+ result: DeploymentSessionPurgeResponse;
4618
+ }
4619
+ /**
4620
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4621
+ * via the `definition` "DeploymentSessionPurgeResponse".
4622
+ */
4623
+ export interface DeploymentSessionPurgeResponse {
4624
+ /**
4625
+ * Includes soft-deleted history forks and delegated descendants.
4626
+ * Empty when the target has already been permanently deleted.
4627
+ */
4628
+ deletedSessionIds: string[];
4629
+ }
4530
4630
  /**
4531
4631
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4532
4632
  * via the `definition` "AgentApiOutcomeOfDeploymentUniverseCreateResponse".
@@ -4639,6 +4739,92 @@ export interface AgentApiOutcomeOfEnvironmentCloseResponse {
4639
4739
  export interface EnvironmentCloseResponse {
4640
4740
  environment: EnvironmentView;
4641
4741
  }
4742
+ /**
4743
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4744
+ * via the `definition` "EnvironmentView".
4745
+ */
4746
+ export interface EnvironmentView {
4747
+ /**
4748
+ * Present exactly while `state` is `closing` or `closed`.
4749
+ */
4750
+ closeReason?: EnvironmentCloseReasonView | null;
4751
+ closedAtMs?: number | null;
4752
+ createdAtMs: number;
4753
+ /**
4754
+ * The envd build serving the environment; absent until known.
4755
+ */
4756
+ daemon?: EnvironmentDaemonView | null;
4757
+ displayName?: string | null;
4758
+ environmentId: string;
4759
+ /**
4760
+ * Caller metadata.
4761
+ */
4762
+ metadata?: {
4763
+ [k: string]: string;
4764
+ };
4765
+ /**
4766
+ * The caller's retry identity; absent for registered environments.
4767
+ */
4768
+ requestId?: string | null;
4769
+ source: EnvironmentSourceView;
4770
+ state: EnvironmentStateView;
4771
+ /**
4772
+ * When `state` last changed.
4773
+ */
4774
+ stateChangedAtMs: number;
4775
+ /**
4776
+ * Why the environment failed, or what provisioning or closing is
4777
+ * waiting on.
4778
+ */
4779
+ stateMessage?: string | null;
4780
+ status: EnvironmentStatusView;
4781
+ updatedAtMs: number;
4782
+ }
4783
+ /**
4784
+ * The envd build serving an environment, from its registration or
4785
+ * Lightspeed's open handshake.
4786
+ *
4787
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4788
+ * via the `definition` "EnvironmentDaemonView".
4789
+ */
4790
+ export interface EnvironmentDaemonView {
4791
+ gitSha?: string | null;
4792
+ protocolVersion: number;
4793
+ version?: string | null;
4794
+ }
4795
+ /**
4796
+ * Staged idle policy the provider applies. Thresholds are milliseconds of
4797
+ * envd-reported idle time (running processes, jobs and leftover process
4798
+ * groups hold it at zero) and must be non-decreasing in the order pause,
4799
+ * suspend, stop, close. Stages whose power state the template does not
4800
+ * support are skipped.
4801
+ *
4802
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4803
+ * via the `definition` "EnvironmentIdlePolicyView".
4804
+ */
4805
+ export interface EnvironmentIdlePolicyView {
4806
+ closeAfterMs?: number | null;
4807
+ pauseAfterMs?: number | null;
4808
+ stopAfterMs?: number | null;
4809
+ suspendAfterMs?: number | null;
4810
+ }
4811
+ /**
4812
+ * What the provider last reported about a provisioned environment's
4813
+ * target. Display only: Lightspeed never converges it, and it may be up to
4814
+ * a few minutes old.
4815
+ *
4816
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4817
+ * via the `definition` "EnvironmentObservedTargetView".
4818
+ */
4819
+ export interface EnvironmentObservedTargetView {
4820
+ message?: string | null;
4821
+ observedAtMs: number;
4822
+ phase: EnvironmentTargetPhaseView;
4823
+ /**
4824
+ * Present only while `phase` is `active`.
4825
+ */
4826
+ power?: EnvironmentPowerStateView | null;
4827
+ }
4642
4828
  /**
4643
4829
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4644
4830
  * via the `definition` "AgentApiOutcomeOfEnvironmentCreateResponse".
@@ -4725,21 +4911,6 @@ export interface AgentApiOutcomeOfEnvironmentExternalCreateResponse {
4725
4911
  export interface EnvironmentExternalCreateResponse {
4726
4912
  environment: EnvironmentView;
4727
4913
  }
4728
- /**
4729
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4730
- * via the `definition` "AgentApiOutcomeOfEnvironmentIdlePolicyPutResponse".
4731
- */
4732
- export interface AgentApiOutcomeOfEnvironmentIdlePolicyPutResponse {
4733
- notifications?: AgentNotification[];
4734
- result: EnvironmentIdlePolicyPutResponse;
4735
- }
4736
- /**
4737
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4738
- * via the `definition` "EnvironmentIdlePolicyPutResponse".
4739
- */
4740
- export interface EnvironmentIdlePolicyPutResponse {
4741
- environment: EnvironmentView;
4742
- }
4743
4914
  /**
4744
4915
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4745
4916
  * via the `definition` "AgentApiOutcomeOfEnvironmentIngressPutResponse".
@@ -4788,18 +4959,31 @@ export interface SessionJobHandleView {
4788
4959
  jobId: string;
4789
4960
  }
4790
4961
  /**
4962
+ * What a job is and how it ended. Instants are the environment's wall
4963
+ * clock.
4964
+ *
4791
4965
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4792
4966
  * via the `definition` "SessionJobSummaryView".
4793
4967
  */
4794
4968
  export interface SessionJobSummaryView {
4969
+ /**
4970
+ * When a cancel reached the job while it ran.
4971
+ */
4972
+ cancelRequestedAtMs?: number | null;
4795
4973
  createdAtMs: number;
4796
4974
  dependencies?: string[];
4797
- exitCode?: number | null;
4975
+ /**
4976
+ * Run time from start to finish, immune to clock jumps.
4977
+ */
4978
+ durationMs?: number | null;
4979
+ /**
4980
+ * How the job's root process ended, once it ran and exited.
4981
+ */
4982
+ exit?: SessionJobExitView | null;
4798
4983
  failure?: string | null;
4799
4984
  finishedAtMs?: number | null;
4800
4985
  jobId: string;
4801
4986
  name?: string | null;
4802
- namespace: string;
4803
4987
  /**
4804
4988
  * True when the job's root process exited while descendants it spawned
4805
4989
  * were still running; the host terminated them best-effort at job
@@ -4808,8 +4992,16 @@ export interface SessionJobSummaryView {
4808
4992
  orphanedDescendants?: boolean;
4809
4993
  queueKey?: string | null;
4810
4994
  queuedAtMs?: number | null;
4995
+ /**
4996
+ * The start request that created the job; part of its identity.
4997
+ */
4998
+ requestId: string;
4811
4999
  startedAtMs?: number | null;
4812
5000
  status: SessionJobStatusView;
5001
+ /**
5002
+ * Set when Lightspeed stopped the running job.
5003
+ */
5004
+ stoppedBy?: SessionJobStoppedByView | null;
4813
5005
  }
4814
5006
  /**
4815
5007
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -4857,37 +5049,59 @@ export interface EnvironmentJobReadResponse {
4857
5049
  jobs?: SessionJobReadEntryView[];
4858
5050
  }
4859
5051
  /**
5052
+ * One job's summary and output page, or why it could not be read: an
5053
+ * entry with `error` and no summary names a job the environment does not
5054
+ * know (never created, or garbage-collected).
5055
+ *
4860
5056
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4861
5057
  * via the `definition` "SessionJobReadEntryView".
4862
5058
  */
4863
5059
  export interface SessionJobReadEntryView {
4864
- artifacts?: SessionJobArtifactView[];
4865
5060
  error?: string | null;
4866
5061
  handle?: SessionJobHandleView | null;
5062
+ /**
5063
+ * Output in offset order.
5064
+ */
4867
5065
  outputChunks?: SessionJobOutputChunkView[];
4868
- outputNextSeq: number;
5066
+ /**
5067
+ * Output bytes the job produced so far; final once it is terminal.
5068
+ */
5069
+ outputEnd: number;
5070
+ /**
5071
+ * Output ranges between the requested start and `outputNext` that
5072
+ * cannot be returned.
5073
+ */
5074
+ outputGaps?: SessionJobOutputGapView[];
5075
+ /**
5076
+ * Byte offset to continue reading from: pass it as `after`.
5077
+ */
5078
+ outputNext: number;
4869
5079
  summary?: SessionJobSummaryView | null;
4870
5080
  }
4871
- /**
4872
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4873
- * via the `definition` "SessionJobArtifactView".
4874
- */
4875
- export interface SessionJobArtifactView {
4876
- kind?: string | null;
4877
- metadata?: {
4878
- [k: string]: string;
4879
- };
4880
- path: string;
4881
- }
4882
5081
  /**
4883
5082
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4884
5083
  * via the `definition` "SessionJobOutputChunkView".
4885
5084
  */
4886
5085
  export interface SessionJobOutputChunkView {
4887
5086
  dataBase64: string;
4888
- seq: number;
5087
+ /**
5088
+ * Byte offset of the chunk's first byte in the job's combined output.
5089
+ */
5090
+ offset: number;
4889
5091
  stream: SessionJobOutputStreamView;
4890
5092
  }
5093
+ /**
5094
+ * Output bytes in `[offset, offset + omittedBytes)` that cannot be
5095
+ * returned.
5096
+ *
5097
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5098
+ * via the `definition` "SessionJobOutputGapView".
5099
+ */
5100
+ export interface SessionJobOutputGapView {
5101
+ offset: number;
5102
+ omittedBytes: number;
5103
+ reason: SessionJobOutputGapReasonView;
5104
+ }
4891
5105
  /**
4892
5106
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
4893
5107
  * via the `definition` "AgentApiOutcomeOfEnvironmentListResponse".
@@ -4901,7 +5115,14 @@ export interface AgentApiOutcomeOfEnvironmentListResponse {
4901
5115
  * via the `definition` "EnvironmentListResponse".
4902
5116
  */
4903
5117
  export interface EnvironmentListResponse {
5118
+ /**
5119
+ * Environments in environment id order.
5120
+ */
4904
5121
  environments?: EnvironmentView[];
5122
+ /**
5123
+ * Pass as `after` to read the next page; absent on the last page.
5124
+ */
5125
+ nextAfter?: string | null;
4905
5126
  }
4906
5127
  /**
4907
5128
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -5003,11 +5224,16 @@ export interface EnvironmentRegistrationKeyView {
5003
5224
  expiresAtMs?: number | null;
5004
5225
  identityMode: EnvironmentIdentityModeView;
5005
5226
  /**
5006
- * First characters of the secret, for identification only.
5227
+ * First characters of the key's live secret, for identification only.
5007
5228
  */
5008
5229
  keyPrefix: string;
5009
5230
  lastRegisteredAtMs?: number | null;
5010
5231
  maxActiveEnvironments?: number | null;
5232
+ /**
5233
+ * Persistent keys only: environments whose daemon has been away longer
5234
+ * than this are closed; absent keeps them open.
5235
+ */
5236
+ offlineCloseAfterMs?: number | null;
5011
5237
  /**
5012
5238
  * Environments ever admitted by this key, closed included.
5013
5239
  */
@@ -5015,6 +5241,7 @@ export interface EnvironmentRegistrationKeyView {
5015
5241
  registrationKeyId: string;
5016
5242
  revokedAtMs?: number | null;
5017
5243
  status: EnvironmentRegistrationKeyStatusView;
5244
+ updatedAtMs: number;
5018
5245
  }
5019
5246
  /**
5020
5247
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -5065,6 +5292,40 @@ export interface EnvironmentRegistrationKeyRevokeResponse {
5065
5292
  closedEnvironmentIds?: string[];
5066
5293
  registrationKey: EnvironmentRegistrationKeyView;
5067
5294
  }
5295
+ /**
5296
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5297
+ * via the `definition` "AgentApiOutcomeOfEnvironmentRegistrationKeyRotateResponse".
5298
+ */
5299
+ export interface AgentApiOutcomeOfEnvironmentRegistrationKeyRotateResponse {
5300
+ notifications?: AgentNotification[];
5301
+ result: EnvironmentRegistrationKeyRotateResponse;
5302
+ }
5303
+ /**
5304
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5305
+ * via the `definition` "EnvironmentRegistrationKeyRotateResponse".
5306
+ */
5307
+ export interface EnvironmentRegistrationKeyRotateResponse {
5308
+ registrationKey: EnvironmentRegistrationKeyView;
5309
+ /**
5310
+ * The new plaintext secret, returned only here.
5311
+ */
5312
+ secret: EnvironmentRegistrationSecretView;
5313
+ }
5314
+ /**
5315
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5316
+ * via the `definition` "AgentApiOutcomeOfEnvironmentRegistrationKeyUpdateResponse".
5317
+ */
5318
+ export interface AgentApiOutcomeOfEnvironmentRegistrationKeyUpdateResponse {
5319
+ notifications?: AgentNotification[];
5320
+ result: EnvironmentRegistrationKeyUpdateResponse;
5321
+ }
5322
+ /**
5323
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5324
+ * via the `definition` "EnvironmentRegistrationKeyUpdateResponse".
5325
+ */
5326
+ export interface EnvironmentRegistrationKeyUpdateResponse {
5327
+ registrationKey: EnvironmentRegistrationKeyView;
5328
+ }
5068
5329
  /**
5069
5330
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5070
5331
  * via the `definition` "AgentApiOutcomeOfEnvironmentTemplateListResponse".
@@ -5085,17 +5346,46 @@ export interface EnvironmentTemplateListResponse {
5085
5346
  * via the `definition` "EnvironmentTemplateView".
5086
5347
  */
5087
5348
  export interface EnvironmentTemplateView {
5088
- bindingId: string;
5089
5349
  deprecated: boolean;
5090
5350
  description?: string | null;
5091
5351
  displayName: string;
5352
+ /**
5353
+ * Idle policy targets get when `environments/create` names none.
5354
+ */
5355
+ idle?: EnvironmentIdlePolicyView | null;
5092
5356
  metadata?: {
5093
5357
  [k: string]: string;
5094
5358
  };
5359
+ /**
5360
+ * Power states `environments/power/put` can move targets of this
5361
+ * template to; empty without power control.
5362
+ */
5363
+ powerStates: EnvironmentPowerStateView[];
5095
5364
  providerId: string;
5365
+ /**
5366
+ * `environments/ingress/put` can enable public ingress on targets of
5367
+ * this template.
5368
+ */
5096
5369
  publicIngress: boolean;
5370
+ /**
5371
+ * Compute targets of this template get; absent when the provider does
5372
+ * not fix it.
5373
+ */
5374
+ resources?: EnvironmentTemplateResourcesView | null;
5097
5375
  templateId: string;
5098
5376
  }
5377
+ /**
5378
+ * A template's compute, in provider-neutral units. Each field is absent
5379
+ * when the provider does not fix it.
5380
+ *
5381
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5382
+ * via the `definition` "EnvironmentTemplateResourcesView".
5383
+ */
5384
+ export interface EnvironmentTemplateResourcesView {
5385
+ diskBytes?: number | null;
5386
+ memoryBytes?: number | null;
5387
+ vcpus?: number | null;
5388
+ }
5099
5389
  /**
5100
5390
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5101
5391
  * via the `definition` "AgentApiOutcomeOfEnvironmentTemplateReadResponse".
@@ -5111,6 +5401,21 @@ export interface AgentApiOutcomeOfEnvironmentTemplateReadResponse {
5111
5401
  export interface EnvironmentTemplateReadResponse {
5112
5402
  template: EnvironmentTemplateView;
5113
5403
  }
5404
+ /**
5405
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5406
+ * via the `definition` "AgentApiOutcomeOfEnvironmentUpdateResponse".
5407
+ */
5408
+ export interface AgentApiOutcomeOfEnvironmentUpdateResponse {
5409
+ notifications?: AgentNotification[];
5410
+ result: EnvironmentUpdateResponse;
5411
+ }
5412
+ /**
5413
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5414
+ * via the `definition` "EnvironmentUpdateResponse".
5415
+ */
5416
+ export interface EnvironmentUpdateResponse {
5417
+ environment: EnvironmentView;
5418
+ }
5114
5419
  /**
5115
5420
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
5116
5421
  * via the `definition` "AgentApiOutcomeOfInitializeResponse".
@@ -5199,8 +5504,9 @@ export interface ServerInfo {
5199
5504
  export interface EnvironmentDaemonInfo {
5200
5505
  gitSha: string;
5201
5506
  /**
5202
- * Environment protocol version the gateway speaks. A daemon registers
5203
- * only when it reports exactly this number.
5507
+ * The envd protocol version (data plane and registration channel)
5508
+ * the gateway speaks. A daemon registers only when it reports exactly
5509
+ * this number.
5204
5510
  */
5205
5511
  protocolVersion: number;
5206
5512
  /**
@@ -6976,28 +7282,13 @@ export interface DeploymentChannelAccountListParams {
6976
7282
  }
6977
7283
  /**
6978
7284
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
6979
- * via the `definition` "DeploymentEnvironmentAdoptParams".
7285
+ * via the `definition` "DeploymentDeletedSessionsListParams".
6980
7286
  */
6981
- export interface DeploymentEnvironmentAdoptParams {
6982
- bindingId: string;
6983
- displayName?: string | null;
6984
- metadata?: {
6985
- [k: string]: string;
6986
- };
6987
- /**
6988
- * Stable caller-generated retry identity inside the destination universe.
6989
- */
6990
- requestId: string;
6991
- /**
6992
- * Provider-native source reference. The Incus provider accepts
6993
- * `<project>/<instance>` or an instance name in the `default` project.
6994
- */
6995
- sourceTarget: string;
7287
+ export interface DeploymentDeletedSessionsListParams {
6996
7288
  /**
6997
- * Required acknowledgement that Lightspeed will move, reconfigure, and
6998
- * delete the target as part of its ordinary managed lifecycle.
7289
+ * Exclusive session ID cursor; each page contains at most 100 entries.
6999
7290
  */
7000
- takeOwnership: boolean;
7291
+ after?: string | null;
7001
7292
  universeId: string;
7002
7293
  }
7003
7294
  /**
@@ -7014,15 +7305,35 @@ export interface DeploymentEnvironmentProviderDeleteParams {
7014
7305
  export interface DeploymentEnvironmentProviderListParams {
7015
7306
  }
7016
7307
  /**
7308
+ * Register or replace a provider. `credential` is the optional bearer
7309
+ * token Lightspeed presents to the provider's controller and data routes:
7310
+ * it is sealed on receipt and never returned by any method. `Debug` output
7311
+ * redacts it; request logging must never echo these params.
7312
+ *
7017
7313
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7018
7314
  * via the `definition` "DeploymentEnvironmentProviderPutParams".
7019
7315
  */
7020
7316
  export interface DeploymentEnvironmentProviderPutParams {
7021
- controllerConnection: DeploymentEnvironmentProviderConnection;
7317
+ /**
7318
+ * Remove the stored credential. Excludes `credential`.
7319
+ */
7320
+ clearCredential?: boolean;
7321
+ /**
7322
+ * `ws://`, `wss://` or `unix://` URL of the provider controller.
7323
+ */
7324
+ controllerEndpoint: string;
7325
+ /**
7326
+ * A new bearer credential; omit to keep the stored one. A provider needs
7327
+ * none. Excludes `clearCredential`.
7328
+ */
7329
+ credential?: string | null;
7330
+ /**
7331
+ * `ws://` or `wss://` base of the provider's data routes; omit to derive
7332
+ * it from the controller endpoint. Required for a `unix://` controller,
7333
+ * and must not be `ws://` for a `wss://` controller.
7334
+ */
7335
+ dataRouteBase?: string | null;
7022
7336
  displayName?: string | null;
7023
- metadata?: {
7024
- [k: string]: string;
7025
- };
7026
7337
  providerId: string;
7027
7338
  }
7028
7339
  /**
@@ -7037,21 +7348,29 @@ export interface DeploymentEnvironmentProviderReadParams {
7037
7348
  * via the `definition` "DeploymentProviderBindingDeleteParams".
7038
7349
  */
7039
7350
  export interface DeploymentProviderBindingDeleteParams {
7040
- bindingId: string;
7351
+ providerId: string;
7041
7352
  universeId: string;
7042
7353
  }
7043
7354
  /**
7355
+ * Create or replace a universe's binding to a deployment provider.
7356
+ *
7044
7357
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7045
7358
  * via the `definition` "DeploymentProviderBindingPutParams".
7046
7359
  */
7047
7360
  export interface DeploymentProviderBindingPutParams {
7048
- bindingId: string;
7049
- expectedRevision?: number | null;
7050
- metadata?: {
7051
- [k: string]: string;
7052
- };
7361
+ /**
7362
+ * Admits creates, template listing and data routes for the universe.
7363
+ */
7364
+ enabled: boolean;
7053
7365
  providerId: string;
7054
- status: EnvironmentProviderBindingStatusView;
7366
+ universeId: string;
7367
+ }
7368
+ /**
7369
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7370
+ * via the `definition` "DeploymentSessionPurgeParams".
7371
+ */
7372
+ export interface DeploymentSessionPurgeParams {
7373
+ sessionId: string;
7055
7374
  universeId: string;
7056
7375
  }
7057
7376
  /**
@@ -7117,21 +7436,27 @@ export interface EnvironmentCloseParams {
7117
7436
  * via the `definition` "EnvironmentCreateParams".
7118
7437
  */
7119
7438
  export interface EnvironmentCreateParams {
7120
- bindingId: string;
7121
7439
  displayName?: string | null;
7122
7440
  /**
7123
- * Optional staged idle policy applied by the power reaper.
7441
+ * Idle policy passed to the provider in place of the template's `idle`.
7442
+ * The provider runs the idle clock; it cannot be changed after create.
7124
7443
  */
7125
- idlePolicy?: EnvironmentIdlePolicyView | null;
7444
+ idle?: EnvironmentIdlePolicyView | null;
7126
7445
  metadata?: {
7127
7446
  [k: string]: string;
7128
7447
  };
7448
+ /**
7449
+ * The provider to create the environment with; the universe needs an
7450
+ * enabled binding to it.
7451
+ */
7452
+ providerId: string;
7129
7453
  /**
7130
7454
  * Stable caller-generated retry identity, unique inside the universe.
7455
+ * Retrying with identical inputs returns the same environment.
7131
7456
  */
7132
7457
  requestId: string;
7133
7458
  /**
7134
- * Immutable provider template-version identity.
7459
+ * The provider template to create the environment from.
7135
7460
  */
7136
7461
  templateId: string;
7137
7462
  }
@@ -7164,32 +7489,28 @@ export interface EnvironmentCredentialUnbindParams {
7164
7489
  * via the `definition` "EnvironmentExternalCreateParams".
7165
7490
  */
7166
7491
  export interface EnvironmentExternalCreateParams {
7492
+ displayName?: string | null;
7167
7493
  /**
7168
- * Connection to an envd instance reachable from Lightspeed.
7494
+ * `ws://`, `wss://` or `unix://` URL of an envd instance reachable from
7495
+ * Lightspeed.
7169
7496
  */
7170
- connection: EnvironmentConnectionView;
7171
- displayName?: string | null;
7497
+ endpoint: string;
7172
7498
  metadata?: {
7173
7499
  [k: string]: string;
7174
7500
  };
7175
- requestId: string;
7176
- }
7177
- /**
7178
- * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7179
- * via the `definition` "EnvironmentIdlePolicyPutParams".
7180
- */
7181
- export interface EnvironmentIdlePolicyPutParams {
7182
- environmentId: string;
7183
7501
  /**
7184
- * The complete new policy; omit to clear it.
7502
+ * Stable caller-generated retry identity, unique inside the universe.
7185
7503
  */
7186
- idlePolicy?: EnvironmentIdlePolicyView | null;
7504
+ requestId: string;
7187
7505
  }
7188
7506
  /**
7189
7507
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7190
7508
  * via the `definition` "EnvironmentIngressPutParams".
7191
7509
  */
7192
7510
  export interface EnvironmentIngressPutParams {
7511
+ /**
7512
+ * Ensure (`true`) or remove (`false`) the provider's public ingress.
7513
+ */
7193
7514
  enabled: boolean;
7194
7515
  environmentId: string;
7195
7516
  }
@@ -7250,17 +7571,38 @@ export interface SessionJobDependencyInput {
7250
7571
  * via the `definition` "EnvironmentJobReadParams".
7251
7572
  */
7252
7573
  export interface EnvironmentJobReadParams {
7253
- afterSeq?: number | null;
7254
- includeArtifacts?: boolean;
7574
+ /**
7575
+ * Byte offset to read each job's output from: a previous entry's
7576
+ * `outputNext`. Omitted with `tailBytes` omitted reads from the start.
7577
+ */
7578
+ after?: number | null;
7255
7579
  jobs: SessionJobHandleInput[];
7256
- outputBytes?: number | null;
7580
+ /**
7581
+ * Most output bytes per job; omit for the server's default page.
7582
+ */
7583
+ maxBytes?: number | null;
7584
+ /**
7585
+ * Read each job's last `tailBytes` of output instead; excludes `after`.
7586
+ */
7587
+ tailBytes?: number | null;
7257
7588
  }
7258
7589
  /**
7259
7590
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7260
7591
  * via the `definition` "EnvironmentListParams".
7261
7592
  */
7262
7593
  export interface EnvironmentListParams {
7263
- bindingId?: string | null;
7594
+ /**
7595
+ * Exclusive environment id cursor: a previous page's `nextAfter`.
7596
+ */
7597
+ after?: string | null;
7598
+ /**
7599
+ * Also list closed environments; they are omitted by default.
7600
+ */
7601
+ includeClosed?: boolean;
7602
+ /**
7603
+ * Most environments per page; omit for 100.
7604
+ */
7605
+ limit?: number | null;
7264
7606
  /**
7265
7607
  * Only environments carrying every listed metadata pair (AND
7266
7608
  * semantics); the same filter `session/list` accepts.
@@ -7268,12 +7610,19 @@ export interface EnvironmentListParams {
7268
7610
  metadata?: {
7269
7611
  [k: string]: string;
7270
7612
  };
7613
+ /**
7614
+ * Only provisioned environments of this provider.
7615
+ */
7271
7616
  providerId?: string | null;
7272
7617
  /**
7273
7618
  * Only registered environments admitted by this registration key.
7274
7619
  */
7275
7620
  registrationKeyId?: string | null;
7276
- status?: EnvironmentLifecycleStatusView | null;
7621
+ /**
7622
+ * Only environments in this lifecycle state. `closed` lists closed
7623
+ * environments without `includeClosed`.
7624
+ */
7625
+ state?: EnvironmentStateView | null;
7277
7626
  }
7278
7627
  /**
7279
7628
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -7282,8 +7631,8 @@ export interface EnvironmentListParams {
7282
7631
  export interface EnvironmentPowerPutParams {
7283
7632
  environmentId: string;
7284
7633
  /**
7285
- * Desired steady power state. Must be one of the provider-reported
7286
- * `incarnation.powerStates`.
7634
+ * Power state to move the target to; one of its template's
7635
+ * `powerStates`.
7287
7636
  */
7288
7637
  power: EnvironmentPowerStateView;
7289
7638
  }
@@ -7298,7 +7647,7 @@ export interface EnvironmentProviderBindingListParams {
7298
7647
  * via the `definition` "EnvironmentProviderBindingReadParams".
7299
7648
  */
7300
7649
  export interface EnvironmentProviderBindingReadParams {
7301
- bindingId: string;
7650
+ providerId: string;
7302
7651
  }
7303
7652
  /**
7304
7653
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -7321,11 +7670,19 @@ export interface EnvironmentRegistrationKeyCreateParams {
7321
7670
  */
7322
7671
  ephemeralDisconnectGraceMs?: number | null;
7323
7672
  expiresAtMs?: number | null;
7673
+ /**
7674
+ * Immutable once the key exists.
7675
+ */
7324
7676
  identityMode: EnvironmentIdentityModeView;
7325
7677
  /**
7326
7678
  * Non-closed environments the key may have at once; omit for unlimited.
7327
7679
  */
7328
7680
  maxActiveEnvironments?: number | null;
7681
+ /**
7682
+ * Persistent keys only: close environments whose daemon has been away
7683
+ * longer than this; omit to keep them open.
7684
+ */
7685
+ offlineCloseAfterMs?: number | null;
7329
7686
  }
7330
7687
  /**
7331
7688
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -7351,21 +7708,78 @@ export interface EnvironmentRegistrationKeyRevokeParams {
7351
7708
  closeEnvironments?: boolean;
7352
7709
  registrationKeyId: string;
7353
7710
  }
7711
+ /**
7712
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7713
+ * via the `definition` "EnvironmentRegistrationKeyRotateParams".
7714
+ */
7715
+ export interface EnvironmentRegistrationKeyRotateParams {
7716
+ registrationKeyId: string;
7717
+ }
7718
+ /**
7719
+ * The complete editable policy of a registration key; an absent field is
7720
+ * unset. The identity mode is immutable.
7721
+ *
7722
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7723
+ * via the `definition` "EnvironmentRegistrationKeyUpdateParams".
7724
+ */
7725
+ export interface EnvironmentRegistrationKeyUpdateParams {
7726
+ /**
7727
+ * Group name for the environments this key admits.
7728
+ */
7729
+ displayName: string;
7730
+ /**
7731
+ * Disconnect grace for ephemeral environments; omit for the default.
7732
+ */
7733
+ ephemeralDisconnectGraceMs?: number | null;
7734
+ expiresAtMs?: number | null;
7735
+ /**
7736
+ * Non-closed environments the key may have at once; omit for unlimited.
7737
+ */
7738
+ maxActiveEnvironments?: number | null;
7739
+ /**
7740
+ * Persistent keys only: close environments whose daemon has been away
7741
+ * longer than this; omit to keep them open.
7742
+ */
7743
+ offlineCloseAfterMs?: number | null;
7744
+ registrationKeyId: string;
7745
+ }
7354
7746
  /**
7355
7747
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7356
7748
  * via the `definition` "EnvironmentTemplateListParams".
7357
7749
  */
7358
7750
  export interface EnvironmentTemplateListParams {
7359
- bindingId?: string | null;
7751
+ /**
7752
+ * Only this provider's templates; omit for every enabled binding.
7753
+ */
7754
+ providerId?: string | null;
7360
7755
  }
7361
7756
  /**
7362
7757
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7363
7758
  * via the `definition` "EnvironmentTemplateReadParams".
7364
7759
  */
7365
7760
  export interface EnvironmentTemplateReadParams {
7366
- bindingId: string;
7761
+ providerId: string;
7367
7762
  templateId: string;
7368
7763
  }
7764
+ /**
7765
+ * Replace an environment's display name and caller metadata.
7766
+ *
7767
+ * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7768
+ * via the `definition` "EnvironmentUpdateParams".
7769
+ */
7770
+ export interface EnvironmentUpdateParams {
7771
+ /**
7772
+ * The new display name; omit to clear it.
7773
+ */
7774
+ displayName?: string | null;
7775
+ environmentId: string;
7776
+ /**
7777
+ * The complete new caller metadata; omit or `{}` to clear it.
7778
+ */
7779
+ metadata?: {
7780
+ [k: string]: string;
7781
+ };
7782
+ }
7369
7783
  /**
7370
7784
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
7371
7785
  * via the `definition` "InitializeParams".
@@ -7762,6 +8176,16 @@ export interface SessionDeleteParams {
7762
8176
  */
7763
8177
  cascade?: boolean;
7764
8178
  sessionId: string;
8179
+ /**
8180
+ * Atomically require every selected session's audience to be shared.
8181
+ * Delegating services use this guard for operators deleting shared work.
8182
+ */
8183
+ sharedOnly?: boolean;
8184
+ /**
8185
+ * Hide sessions while retaining records, events, checkpoints and blob roots.
8186
+ * False (the default) permanently deletes them without prior soft deletion.
8187
+ */
8188
+ softDelete?: boolean;
7765
8189
  }
7766
8190
  /**
7767
8191
  * This interface was referenced by `LightspeedAgentAPI`'s JSON-Schema
@@ -7898,7 +8322,7 @@ export interface SessionRenameParams {
7898
8322
  */
7899
8323
  export interface SessionRetentionPutParams {
7900
8324
  /**
7901
- * Positive duration enables automatic tree deletion; null disables it.
8325
+ * Positive duration enables automatic tree soft deletion; null disables it.
7902
8326
  */
7903
8327
  deleteAfterCloseMs: number | null;
7904
8328
  sessionId: string;
@@ -7922,7 +8346,7 @@ export interface SessionStartParams {
7922
8346
  access?: AccessInput | null;
7923
8347
  config?: SessionConfig | null;
7924
8348
  /**
7925
- * Root-owned automatic deletion measured from close. Absent inherits a
8349
+ * Root-owned automatic soft deletion measured from close. Absent inherits a
7926
8350
  * profile default, explicit null keeps the tree, and a duration overrides
7927
8351
  * the profile.
7928
8352
  */