@lightspeed-ai/agent-client 0.1.0

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.
Files changed (47) hide show
  1. package/README.md +63 -0
  2. package/dist/client.d.ts +65 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +194 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/errors.d.ts +20 -0
  7. package/dist/errors.d.ts.map +1 -0
  8. package/dist/errors.js +47 -0
  9. package/dist/errors.js.map +1 -0
  10. package/dist/generated/methods.d.ts +2497 -0
  11. package/dist/generated/methods.d.ts.map +1 -0
  12. package/dist/generated/methods.js +1751 -0
  13. package/dist/generated/methods.js.map +1 -0
  14. package/dist/generated/types.d.ts +6950 -0
  15. package/dist/generated/types.d.ts.map +1 -0
  16. package/dist/generated/types.js +6 -0
  17. package/dist/generated/types.js.map +1 -0
  18. package/dist/generated/workflow-manifest.d.ts +219 -0
  19. package/dist/generated/workflow-manifest.d.ts.map +1 -0
  20. package/dist/generated/workflow-manifest.js +251 -0
  21. package/dist/generated/workflow-manifest.js.map +1 -0
  22. package/dist/generated/workflow-types.d.ts +451 -0
  23. package/dist/generated/workflow-types.d.ts.map +1 -0
  24. package/dist/generated/workflow-types.js +6 -0
  25. package/dist/generated/workflow-types.js.map +1 -0
  26. package/dist/index.d.ts +8 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +4 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/workflow.d.ts +217 -0
  31. package/dist/workflow.d.ts.map +1 -0
  32. package/dist/workflow.js +338 -0
  33. package/dist/workflow.js.map +1 -0
  34. package/examples/temporal-activity.ts +33 -0
  35. package/package.json +55 -0
  36. package/release.json +4 -0
  37. package/schema/api.schema.json +16643 -0
  38. package/schema/workflow.json +246 -0
  39. package/schema/workflow.schema.json +880 -0
  40. package/src/client.ts +318 -0
  41. package/src/errors.ts +64 -0
  42. package/src/generated/methods.ts +2888 -0
  43. package/src/generated/types.ts +7189 -0
  44. package/src/generated/workflow-manifest.ts +251 -0
  45. package/src/generated/workflow-types.ts +468 -0
  46. package/src/index.ts +31 -0
  47. package/src/workflow.ts +468 -0
@@ -0,0 +1,1751 @@
1
+ export const METHODS = [
2
+ "initialize",
3
+ "session/start",
4
+ "session/managed/start",
5
+ "session/read",
6
+ "session/list",
7
+ "session/config/put",
8
+ "session/rename",
9
+ "session/close",
10
+ "session/delete",
11
+ "session/events/read",
12
+ "session/context/append",
13
+ "session/context/remove",
14
+ "session/context/compact",
15
+ "session/runs/start",
16
+ "session/runs/list",
17
+ "session/runs/read",
18
+ "session/runs/cancel",
19
+ "session/runs/approvals/decide",
20
+ "session/runs/steer",
21
+ "session/skills/list",
22
+ "session/skills/active",
23
+ "session/skills/activate",
24
+ "session/skills/deactivate",
25
+ "session/profiles/apply",
26
+ "session/environments/activate",
27
+ "session/environments/deactivate",
28
+ "environments/credentials/bind",
29
+ "environments/credentials/list",
30
+ "environments/credentials/unbind",
31
+ "environments/create",
32
+ "environments/read",
33
+ "environments/list",
34
+ "environments/close",
35
+ "environments/external/create",
36
+ "environments/ingress/put",
37
+ "environments/power/put",
38
+ "environments/idle-policy/put",
39
+ "environments/provider-bindings/list",
40
+ "environments/provider-bindings/read",
41
+ "environments/templates/list",
42
+ "environments/templates/read",
43
+ "environments/jobs/create",
44
+ "environments/jobs/read",
45
+ "environments/jobs/cancel",
46
+ "models/list",
47
+ "profiles/create",
48
+ "profiles/read",
49
+ "profiles/list",
50
+ "profiles/put",
51
+ "profiles/delete",
52
+ "blobs/put",
53
+ "blobs/read",
54
+ "blobs/has",
55
+ "vfs/snapshots/commit",
56
+ "vfs/snapshots/read",
57
+ "vfs/workspaces/create",
58
+ "vfs/workspaces/read",
59
+ "vfs/workspaces/list",
60
+ "vfs/workspaces/update",
61
+ "vfs/workspaces/delete",
62
+ "mcp/servers/put",
63
+ "mcp/servers/auth/discover",
64
+ "mcp/servers/tools/discover",
65
+ "mcp/servers/read",
66
+ "mcp/servers/list",
67
+ "mcp/servers/delete",
68
+ "auth/grants/import",
69
+ "auth/grants/lease",
70
+ "auth/grants/read",
71
+ "auth/grants/list",
72
+ "auth/grants/revoke",
73
+ "auth/clients/create",
74
+ "auth/clients/read",
75
+ "auth/clients/list",
76
+ "auth/clients/delete",
77
+ "auth/flows/start",
78
+ "auth/flows/read",
79
+ "auth/providers/create",
80
+ "auth/providers/read",
81
+ "auth/providers/list",
82
+ "auth/providers/delete",
83
+ "auth/github/installations/list",
84
+ "auth/github/installations/grant",
85
+ "bots/create",
86
+ "bots/put",
87
+ "bots/read",
88
+ "bots/list",
89
+ "bots/close",
90
+ "bots/delete",
91
+ "bots/state/read",
92
+ "bots/sessions/rotate",
93
+ "bots/triggers/put",
94
+ "bots/triggers/read",
95
+ "bots/triggers/list",
96
+ "bots/triggers/delete",
97
+ "bots/events/admit",
98
+ "bots/events/replay",
99
+ "bots/events/list",
100
+ "bots/events/read",
101
+ "bots/filters/test",
102
+ "channels/accounts/create",
103
+ "channels/accounts/put",
104
+ "channels/accounts/read",
105
+ "channels/accounts/list",
106
+ "channels/accounts/delete",
107
+ "channels/inbound/admit",
108
+ "channels/pairings/list",
109
+ "channels/pairings/delete",
110
+ "channels/conversations/read",
111
+ "operator/universes/create",
112
+ "operator/universes/list",
113
+ "operator/universes/read",
114
+ "operator/universes/delete",
115
+ "operator/api-keys/create",
116
+ "operator/api-keys/list",
117
+ "operator/api-keys/revoke",
118
+ "operator/environment-providers/put",
119
+ "operator/environment-providers/list",
120
+ "operator/environment-providers/read",
121
+ "operator/environment-providers/delete",
122
+ "operator/environment-providers/bindings/put",
123
+ "operator/environment-providers/bindings/delete",
124
+ "operator/environments/adopt",
125
+ "operator/channels/accounts/list",
126
+ ];
127
+ export const METHOD_INFO = {
128
+ "initialize": {
129
+ scope: "universe",
130
+ summary: "Inspect the Lightspeed protocol",
131
+ description: "Returns protocol version, server identity, and supported capabilities without changing universe state.",
132
+ },
133
+ "session/start": {
134
+ scope: "universe",
135
+ summary: "Create or reopen a session",
136
+ description: "Creates a session with optional config/profile setup. Retrying an existing session id returns that session; creation settings apply only when it is first created.",
137
+ },
138
+ "session/managed/start": {
139
+ scope: "universe",
140
+ summary: "Create or reopen a managed session",
141
+ description: "Creates a session with an immutable lifecycle controller and/or workflow tools using explicit bound pull/push dispatch, start targets, and Accepted, Joined, or keyed-Promise completion. Retrying an existing session id requires the same managed-creation declaration; an ordinary session cannot be upgraded to managed.",
142
+ },
143
+ "session/read": {
144
+ scope: "universe",
145
+ summary: "Read a session",
146
+ description: "Returns current state plus a bounded newest-first run-summary page. Follow nextRunCursor with session/runs/list when hasOlderRuns is true; use session/events/read for the transcript.",
147
+ },
148
+ "session/list": {
149
+ scope: "universe",
150
+ summary: "List sessions",
151
+ description: "Returns a cursor-paginated summary list ordered by most recent update. Pages may shift while sessions are changing.",
152
+ },
153
+ "session/config/put": {
154
+ scope: "universe",
155
+ summary: "Replace session configuration",
156
+ description: "Replaces the complete sparse config while the session is idle. Use the current config revision for safe read-modify-write; omitted features are revoked and an identical document is a no-op.",
157
+ },
158
+ "session/rename": {
159
+ scope: "universe",
160
+ summary: "Rename a session",
161
+ description: "Sets the display name, or clears it when displayName is omitted.",
162
+ },
163
+ "session/close": {
164
+ scope: "universe",
165
+ summary: "Close a session",
166
+ description: "Closes an idle session and detaches its environment bindings. Force mode cancels active work, drops queued runs, and can recover a session whose workflow is unavailable.",
167
+ },
168
+ "session/delete": {
169
+ scope: "universe",
170
+ summary: "Delete a closed session",
171
+ description: "Permanently removes session storage after the session has been closed; close active/open sessions first.",
172
+ },
173
+ "session/events/read": {
174
+ scope: "universe",
175
+ summary: "Read the session event stream",
176
+ description: "Reads events after a cursor and optionally long-polls when caught up. Continue from nextCursor/headCursor and inspect complete/gap rather than assuming an uninterrupted page.",
177
+ },
178
+ "session/context/append": {
179
+ scope: "universe",
180
+ summary: "Append keyed session context",
181
+ description: "Admits a batch of context entries with per-entry results. Stable keys make same-content retries no-ops; media preprocessing can fail one entry without discarding successful entries.",
182
+ },
183
+ "session/context/remove": {
184
+ scope: "universe",
185
+ summary: "Remove keyed session context",
186
+ description: "Removes active entries by stable key with per-key results. Missing keys are idempotent no-ops; runtime-reserved run keys cannot be removed.",
187
+ },
188
+ "session/context/compact": {
189
+ scope: "universe",
190
+ summary: "Compact session context",
191
+ description: "Runs the configured compaction policy on an open idle session and waits for the resulting context revision.",
192
+ },
193
+ "session/runs/start": {
194
+ scope: "universe",
195
+ summary: "Start an agent run",
196
+ description: "Accepts input or existing context keys and returns once the run is accepted — queued behind an active run, or running — not when it finishes. Supply submissionId for retry safety, then follow session events or reread the session.",
197
+ },
198
+ "session/runs/list": {
199
+ scope: "universe",
200
+ summary: "List session runs",
201
+ description: "Returns a newest-first keyset page of bounded run summaries projected from current reducer state.",
202
+ },
203
+ "session/runs/read": {
204
+ scope: "universe",
205
+ summary: "Read one session run",
206
+ description: "Reads and projects one run from its bounded event interval, paged by event sequence.",
207
+ },
208
+ "session/runs/cancel": {
209
+ scope: "universe",
210
+ summary: "Cancel a run",
211
+ description: "Requests cancellation of the named queued or active run and returns its current projected state; observe session events for terminal completion. In-flight model and tool activity is aborted; no grace turn runs.",
212
+ },
213
+ "session/runs/approvals/decide": {
214
+ scope: "universe",
215
+ summary: "Decide pending run approvals",
216
+ description: "Approves or rejects pending MCP tool calls on the named active run. Valid decisions apply independently; the run resumes only after every pending approval has a decision.",
217
+ },
218
+ "session/runs/steer": {
219
+ scope: "universe",
220
+ summary: "Steer the active run",
221
+ description: "Injects input into the named active run; the model sees it at the next turn boundary without interrupting the in-flight turn. Accepted while the run is running or parked on an await; rejected for queued, cancelling, or finished runs.",
222
+ },
223
+ "session/skills/list": {
224
+ scope: "universe",
225
+ summary: "List available session skills",
226
+ description: "Refreshes the session's configured VFS skill catalog and reports which discovered skills are enabled and active. An absent catalog yields an empty result.",
227
+ },
228
+ "session/skills/active": {
229
+ scope: "universe",
230
+ summary: "List active session skills",
231
+ description: "Returns skill instructions currently injected into context, including activation scope and source.",
232
+ },
233
+ "session/skills/activate": {
234
+ scope: "universe",
235
+ summary: "Activate a session skill",
236
+ description: "Loads an enabled skill from the current catalog and injects its instructions into an open idle session. Run-scoped activation is the default.",
237
+ },
238
+ "session/skills/deactivate": {
239
+ scope: "universe",
240
+ summary: "Deactivate a session skill",
241
+ description: "Removes an active skill's injected context from an open idle session; the skill must currently be active.",
242
+ },
243
+ "session/profiles/apply": {
244
+ scope: "universe",
245
+ summary: "Apply a profile to a session",
246
+ description: "Applies a named or inline profile's config, instructions, and environment setup to an existing session; mutating profile sections require it to be open and idle. Pass current revisions to guard concurrent changes.",
247
+ },
248
+ "session/environments/activate": {
249
+ scope: "universe",
250
+ summary: "Activate a session environment",
251
+ description: "Selects an allowed, live universe environment for environment-targeted tools while the session is idle.",
252
+ },
253
+ "session/environments/deactivate": {
254
+ scope: "universe",
255
+ summary: "Deactivate the session environment",
256
+ description: "Clears active environment selection without changing or closing the universe environment.",
257
+ },
258
+ "environments/credentials/bind": {
259
+ scope: "universe",
260
+ summary: "Bind a credential into an environment",
261
+ description: "Maps an environment variable name to an existing grant/provider/direct-secret handle for a universe environment. The response exposes only the source handle, never secret material.",
262
+ },
263
+ "environments/credentials/list": {
264
+ scope: "universe",
265
+ summary: "List environment credential bindings",
266
+ description: "Returns variable names and credential source handles for a universe environment; resolved secret values are never returned.",
267
+ },
268
+ "environments/credentials/unbind": {
269
+ scope: "universe",
270
+ summary: "Unbind an environment credential",
271
+ description: "Removes one variable-to-credential mapping without deleting the underlying grant, provider credential, or secret.",
272
+ },
273
+ "environments/create": {
274
+ scope: "universe",
275
+ summary: "Create an environment",
276
+ description: "Records an idempotent provisioning intent against an enabled universe binding. The provider validates its provider-wide template and provisions through its backend asynchronously.",
277
+ },
278
+ "environments/read": {
279
+ scope: "universe",
280
+ summary: "Read an environment",
281
+ description: "Returns the durable universe resource, source binding, logical lifecycle state, and minimal current-incarnation identity.",
282
+ },
283
+ "environments/list": {
284
+ scope: "universe",
285
+ summary: "List environments",
286
+ description: "Lists universe-owned environment resources, optionally filtered by provider, binding, or logical lifecycle state.",
287
+ },
288
+ "environments/close": {
289
+ scope: "universe",
290
+ summary: "Close an environment",
291
+ description: "Records an asynchronous idempotent close intent. Provider cleanup is resumed by lifecycle reconciliation; quota is released only after Closed.",
292
+ },
293
+ "environments/external/create": {
294
+ scope: "universe",
295
+ summary: "Register an external environment",
296
+ description: "Creates an environment backed by a Lightspeed-reachable envd WebSocket endpoint. Reachability is checked on demand.",
297
+ },
298
+ "environments/ingress/put": {
299
+ scope: "universe",
300
+ summary: "Configure environment public ingress",
301
+ description: "Synchronously enables or disables one provider-authorized HTTPS endpoint for a provisioned environment. The provider owns hostname allocation, the approved guest port, routing, TLS, and health.",
302
+ },
303
+ "environments/power/put": {
304
+ scope: "universe",
305
+ summary: "Set environment power intent",
306
+ description: "Records the desired power state (running, paused, suspended, or stopped) of a provisioned environment; the lifecycle reconciler converges the provider target asynchronously. Powered-down environments wake transparently on their next use. Rejected when the provider does not support the state.",
307
+ },
308
+ "environments/idle-policy/put": {
309
+ scope: "universe",
310
+ summary: "Set environment idle policy",
311
+ description: "Replaces or clears the staged idle policy of a provisioned environment. The power reaper measures the daemon's idle duration against the pause/suspend/stop/close thresholds and escalates through the stages the provider supports.",
312
+ },
313
+ "environments/provider-bindings/list": {
314
+ scope: "universe",
315
+ summary: "List environment provider bindings",
316
+ description: "Lists this universe's revisioned routing and admission bindings to deployment-scoped physical providers.",
317
+ },
318
+ "environments/provider-bindings/read": {
319
+ scope: "universe",
320
+ summary: "Read an environment provider binding",
321
+ description: "Returns one universe routing and admission binding. Provider-wide templates and physical resource, network, and ingress policy remain provider-owned.",
322
+ },
323
+ "environments/templates/list": {
324
+ scope: "universe",
325
+ summary: "List environment templates",
326
+ description: "Reads immutable templates directly from the selected bound provider controller.",
327
+ },
328
+ "environments/templates/read": {
329
+ scope: "universe",
330
+ summary: "Read an environment template",
331
+ description: "Returns one immutable template version from the selected bound provider controller.",
332
+ },
333
+ "environments/jobs/create": {
334
+ scope: "universe",
335
+ summary: "Create environment jobs",
336
+ description: "Starts a dependency-aware job group on one environment instance, injecting the environment's configured credentials at provider start. requestId is the retry identity; jobs are owned by the instance rather than a session. A powered-down environment is woken on use: the call fails with environment_not_ready while the wake is in progress; retry with backoff.",
337
+ },
338
+ "environments/jobs/read": {
339
+ scope: "universe",
340
+ summary: "Read environment jobs",
341
+ description: "Reads selected job handles with bounded output, optional sequence continuation, and optional artifacts; use returned status/sequence data for polling.",
342
+ },
343
+ "environments/jobs/cancel": {
344
+ scope: "universe",
345
+ summary: "Cancel environment jobs",
346
+ description: "Requests cancellation for selected jobs, optionally including dependents. Force is provider-specific escalation; inspect each per-job result.",
347
+ },
348
+ "models/list": {
349
+ scope: "universe",
350
+ summary: "Discover available models",
351
+ description: "Queries supported providers directly on every call and returns best-effort selectable routes. One provider failure does not discard successful results from others.",
352
+ },
353
+ "profiles/create": {
354
+ scope: "universe",
355
+ summary: "Create an agent profile",
356
+ description: "Creates a new universe-scoped reusable profile document; use profiles/put for create-or-replace revision semantics.",
357
+ },
358
+ "profiles/read": {
359
+ scope: "universe",
360
+ summary: "Read an agent profile",
361
+ description: "Returns the complete profile document and current revision.",
362
+ },
363
+ "profiles/list": {
364
+ scope: "universe",
365
+ summary: "List agent profiles",
366
+ description: "Returns lightweight summaries of universe-scoped reusable profiles.",
367
+ },
368
+ "profiles/put": {
369
+ scope: "universe",
370
+ summary: "Create or replace an agent profile",
371
+ description: "Stores the complete profile document. Use expectedRevision from profiles/read when replacing to prevent lost updates; absence writes unconditionally.",
372
+ },
373
+ "profiles/delete": {
374
+ scope: "universe",
375
+ summary: "Delete an agent profile",
376
+ description: "Deletes the catalog document; sessions previously created or configured from it retain their materialized state.",
377
+ },
378
+ "blobs/put": {
379
+ scope: "universe",
380
+ summary: "Store content-addressed blobs",
381
+ description: "Decodes and stores a batch of base64 payloads, returning immutable content references in request order. Re-uploading identical bytes is naturally deduplicated.",
382
+ },
383
+ "blobs/read": {
384
+ scope: "universe",
385
+ summary: "Read a content-addressed blob",
386
+ description: "Returns the complete immutable blob as base64; large values count against gateway and MCP response limits.",
387
+ },
388
+ "blobs/has": {
389
+ scope: "universe",
390
+ summary: "Check blob availability",
391
+ description: "Checks a batch of content references without returning blob bodies, preserving request order.",
392
+ },
393
+ "vfs/snapshots/commit": {
394
+ scope: "universe",
395
+ summary: "Commit a VFS snapshot",
396
+ description: "Validates and stores an immutable filesystem manifest. Upload referenced file blobs first; the returned snapshot ref is content-addressed.",
397
+ },
398
+ "vfs/snapshots/read": {
399
+ scope: "universe",
400
+ summary: "Read a VFS snapshot",
401
+ description: "Returns an immutable snapshot manifest and aggregate file/byte counts; file bodies remain separate blobs.",
402
+ },
403
+ "vfs/workspaces/create": {
404
+ scope: "universe",
405
+ summary: "Create a mutable VFS workspace",
406
+ description: "Creates a universe workspace at an optional seed snapshot; absence starts from a server-created empty snapshot.",
407
+ },
408
+ "vfs/workspaces/read": {
409
+ scope: "universe",
410
+ summary: "Read a VFS workspace",
411
+ description: "Returns workspace metadata, current head snapshot, and revision for safe updates.",
412
+ },
413
+ "vfs/workspaces/list": {
414
+ scope: "universe",
415
+ summary: "List VFS workspaces",
416
+ description: "Lists mutable universe workspaces with head snapshots, sizes, and revisions.",
417
+ },
418
+ "vfs/workspaces/update": {
419
+ scope: "universe",
420
+ summary: "Update a VFS workspace",
421
+ description: "Moves the workspace head to an existing snapshot and updates its display name. Pass expectedRevision from a read to prevent lost updates.",
422
+ },
423
+ "vfs/workspaces/delete": {
424
+ scope: "universe",
425
+ summary: "Delete a VFS workspace",
426
+ description: "Deletes the mutable workspace record; immutable snapshots and blobs remain content-addressed resources.",
427
+ },
428
+ "mcp/servers/put": {
429
+ scope: "universe",
430
+ summary: "Create or replace an MCP server record",
431
+ description: "Stores the complete universe catalog document, including its optional universe auth-grant credential. Use expectedRevision when replacing; token material is never accepted or returned.",
432
+ },
433
+ "mcp/servers/auth/discover": {
434
+ scope: "universe",
435
+ summary: "Discover MCP server authentication",
436
+ description: "Looks for standards-based OAuth protected-resource metadata without creating a server, OAuth client, flow, or grant. An absent OAuth result is inconclusive and callers must allow manual auth selection.",
437
+ },
438
+ "mcp/servers/tools/discover": {
439
+ scope: "universe",
440
+ summary: "Discover MCP server tools",
441
+ description: "Connects directly to the configured MCP server with its current universe credential and returns one bounded live tools/list result. The inventory is never persisted or cached and no tool is invoked.",
442
+ },
443
+ "mcp/servers/read": {
444
+ scope: "universe",
445
+ summary: "Read an MCP server record",
446
+ description: "Returns one catalog document with defaults, auth policy, non-secret grant binding, status, and revision; no credential value is exposed.",
447
+ },
448
+ "mcp/servers/list": {
449
+ scope: "universe",
450
+ summary: "List MCP server records",
451
+ description: "Lists universe catalog entries, optionally filtered by lifecycle/configuration status.",
452
+ },
453
+ "mcp/servers/delete": {
454
+ scope: "universe",
455
+ summary: "Delete an MCP server record",
456
+ description: "Deletes the catalog document. Existing session configs that reference it are not silently rewritten and may need explicit reconfiguration.",
457
+ },
458
+ "auth/grants/import": {
459
+ scope: "universe",
460
+ summary: "Import a static bearer grant",
461
+ description: "Accepts a plaintext token, encrypts it immediately, and returns only grant metadata/token-presence flags. Brokered is the default; retrievable exposure is immutable and permits service-only leases.",
462
+ },
463
+ "auth/grants/lease": {
464
+ scope: "service",
465
+ summary: "Lease a retrievable authentication grant",
466
+ description: "Service callers only. Resolves the current access token through the broker, records the lease, and returns it once. Cache only in memory until expiry minus margin (or at most five minutes without expiry), re-lease after target 401/403, and never persist or place the token in workflow payloads.",
467
+ },
468
+ "auth/grants/read": {
469
+ scope: "universe",
470
+ summary: "Read authentication grant metadata",
471
+ description: "Returns principal, provider binding, scopes, audience, expiry, status, and token-presence flags; access and refresh token values are never returned.",
472
+ },
473
+ "auth/grants/list": {
474
+ scope: "universe",
475
+ summary: "List authentication grants",
476
+ description: "Lists non-secret grant metadata for the universe, optionally filtered by status.",
477
+ },
478
+ "auth/grants/revoke": {
479
+ scope: "universe",
480
+ summary: "Revoke an authentication grant",
481
+ description: "Marks the grant unusable by token consumers while retaining non-secret audit metadata.",
482
+ },
483
+ "auth/clients/create": {
484
+ scope: "universe",
485
+ summary: "Register an OAuth client",
486
+ description: "Stores provider endpoints and client identity; an optional plaintext client secret is encrypted and represented thereafter only by hasClientSecret.",
487
+ },
488
+ "auth/clients/read": {
489
+ scope: "universe",
490
+ summary: "Read OAuth client metadata",
491
+ description: "Returns endpoints, public client identity, defaults, and secret-presence state; the client secret is never returned.",
492
+ },
493
+ "auth/clients/list": {
494
+ scope: "universe",
495
+ summary: "List OAuth clients",
496
+ description: "Lists non-secret OAuth client registrations in the universe.",
497
+ },
498
+ "auth/clients/delete": {
499
+ scope: "universe",
500
+ summary: "Delete an OAuth client",
501
+ description: "Deletes the client registration and its stored client secret; grants already created from it remain separate records.",
502
+ },
503
+ "auth/flows/start": {
504
+ scope: "universe",
505
+ summary: "Start an OAuth authorization flow",
506
+ description: "Creates a short-lived PKCE flow carrying the immutable grant exposure choice and returns a browser authorization URL containing one-time state. Treat the URL as sensitive and poll auth/flows/read for completion.",
507
+ },
508
+ "auth/flows/read": {
509
+ scope: "universe",
510
+ summary: "Read OAuth flow status",
511
+ description: "Polls a flow's pending/completed/failed/expired state and returns the resulting grant id when authorization succeeds; no token value is exposed.",
512
+ },
513
+ "auth/providers/create": {
514
+ scope: "universe",
515
+ summary: "Register an authentication provider",
516
+ description: "Creates a model or GitHub credential source. Plaintext API keys/private keys are encrypted on receipt and later represented only by configuration plus hasCredential.",
517
+ },
518
+ "auth/providers/read": {
519
+ scope: "universe",
520
+ summary: "Read authentication provider metadata",
521
+ description: "Returns provider kind, non-secret configuration, credential-presence state, and status; stored credentials are never returned.",
522
+ },
523
+ "auth/providers/list": {
524
+ scope: "universe",
525
+ summary: "List authentication providers",
526
+ description: "Lists non-secret model/GitHub provider registrations for the universe.",
527
+ },
528
+ "auth/providers/delete": {
529
+ scope: "universe",
530
+ summary: "Delete an authentication provider",
531
+ description: "Deletes the provider registration and its directly stored credential; separately stored grants remain independent records.",
532
+ },
533
+ "auth/github/installations/list": {
534
+ scope: "universe",
535
+ summary: "List GitHub App installations",
536
+ description: "Uses the registered GitHub App provider credential to query accessible installations and returns account/permission metadata without tokens.",
537
+ },
538
+ "auth/github/installations/grant": {
539
+ scope: "universe",
540
+ summary: "Grant access to a GitHub App installation",
541
+ description: "Creates or refreshes a universe auth grant for one accessible installation. The installation token is brokered internally and never returned.",
542
+ },
543
+ "bots/create": {
544
+ scope: "universe",
545
+ summary: "Create a bot",
546
+ description: "Creates the bot record, optionally with its triggers, and starts its controller. Fails if the bot id exists; a trigger failure rolls the bot back.",
547
+ },
548
+ "bots/put": {
549
+ scope: "universe",
550
+ summary: "Create or replace a bot document",
551
+ description: "Replaces the mutable configuration whole and signals the controller, which applies it at its next idle boundary. Pass expectedRevision when replacing; a closed bot accepts label-only edits.",
552
+ },
553
+ "bots/read": {
554
+ scope: "universe",
555
+ summary: "Read a bot",
556
+ description: "Returns the bot record, its current revision, and lifecycle columns.",
557
+ },
558
+ "bots/list": {
559
+ scope: "universe",
560
+ summary: "List bots",
561
+ description: "Returns the roster: every bot with its trigger count, pending event count, and latest event.",
562
+ },
563
+ "bots/close": {
564
+ scope: "universe",
565
+ summary: "Close a bot",
566
+ description: "Terminal and idempotent: disables every trigger, drops schedules, and tells the controller to archive pending events and force-close its sessions. Returns once signalled; follow bots/state/read for closing to closed.",
567
+ },
568
+ "bots/delete": {
569
+ scope: "universe",
570
+ summary: "Delete a bot",
571
+ description: "Closes the bot if needed, waits for its controller to complete, deletes the sessions it closed, and removes the record so the bot id is free again.",
572
+ },
573
+ "bots/state/read": {
574
+ scope: "universe",
575
+ summary: "Read bot controller state",
576
+ description: "Queries the controller workflow for its live snapshot (sessions, buffers, active and recent deliveries, budget) and lists sub-agent descendants. The controller is absent until the bot's first event.",
577
+ },
578
+ "bots/sessions/rotate": {
579
+ scope: "universe",
580
+ summary: "Rotate a bot session",
581
+ description: "Asks the controller to close one of the bot's sessions at its next idle boundary and continue on a fresh generation; queued deliveries follow.",
582
+ },
583
+ "bots/triggers/put": {
584
+ scope: "universe",
585
+ summary: "Create or replace a trigger",
586
+ description: "Validates the trigger document (CEL parses, grants exist, one inbox per bot, chat routes per conversation), reconciles its Temporal Schedule, and stores it. A poll spec edit resets the cursor; a webhook keeps its URL token.",
587
+ },
588
+ "bots/triggers/read": {
589
+ scope: "universe",
590
+ summary: "Read a trigger",
591
+ description: "Returns one trigger with its incidents and cursor; the ingest path and pairing code are shown only to managing principals.",
592
+ },
593
+ "bots/triggers/list": {
594
+ scope: "universe",
595
+ summary: "List a bot's triggers",
596
+ description: "Returns every trigger of the bot ordered by id, secrets redacted for non-managing principals.",
597
+ },
598
+ "bots/triggers/delete": {
599
+ scope: "universe",
600
+ summary: "Delete a trigger",
601
+ description: "Drops the trigger's Temporal Schedule and pairings, then the record; stored events keep their history.",
602
+ },
603
+ "bots/events/admit": {
604
+ scope: "universe",
605
+ summary: "Admit an event manually",
606
+ description: "Stores an operator-authored event for the bot's main session and wakes the controller. eventId is the dedupe identity; a duplicate returns the stored row.",
607
+ },
608
+ "bots/events/replay": {
609
+ scope: "universe",
610
+ summary: "Replay a stored event",
611
+ description: "Re-admits the stored envelope as a fresh event with the original routing; the replay never coalesces.",
612
+ },
613
+ "bots/events/list": {
614
+ scope: "universe",
615
+ summary: "List a bot's events",
616
+ description: "Cursor-paginated event log, newest first, with outcomes; payload documents stay in the CAS.",
617
+ },
618
+ "bots/events/read": {
619
+ scope: "universe",
620
+ summary: "Read an event by number",
621
+ description: "Returns the event row and its full stored envelope document.",
622
+ },
623
+ "bots/filters/test": {
624
+ scope: "universe",
625
+ summary: "Test a CEL filter",
626
+ description: "Evaluates a filter against one payload or a sample of recent stored events, reporting matches and evaluation errors without changing anything.",
627
+ },
628
+ "channels/accounts/create": {
629
+ scope: "universe",
630
+ summary: "Create a channel account",
631
+ description: "Registers a provider account (Telegram, WhatsApp) for this universe. The credential is a retrievable grant reference; no token is accepted here.",
632
+ },
633
+ "channels/accounts/put": {
634
+ scope: "universe",
635
+ summary: "Create or replace a channel account",
636
+ description: "Replaces the account document whole; pass expectedRevision when replacing. The connector host picks the change up on its next discovery pass.",
637
+ },
638
+ "channels/accounts/read": {
639
+ scope: "universe",
640
+ summary: "Read a channel account",
641
+ description: "Returns the account document and revision.",
642
+ },
643
+ "channels/accounts/list": {
644
+ scope: "universe",
645
+ summary: "List channel accounts",
646
+ description: "Lists this universe's provider accounts, optionally by provider.",
647
+ },
648
+ "channels/accounts/delete": {
649
+ scope: "universe",
650
+ summary: "Delete a channel account",
651
+ description: "Removes the account and its pairings; chat triggers that reference it stop serving conversations.",
652
+ },
653
+ "channels/inbound/admit": {
654
+ scope: "service",
655
+ summary: "Admit a provider message",
656
+ description: "Service callers only. Resolves the chat trigger for the conversation, applies pairing, and signals the conversation workflow. Returns the decision so the connector can send pairing prompts itself; acknowledge the provider only after this returns.",
657
+ },
658
+ "channels/pairings/list": {
659
+ scope: "universe",
660
+ summary: "List chat pairings",
661
+ description: "Lists conversations paired to chat triggers, optionally by account or bot.",
662
+ },
663
+ "channels/pairings/delete": {
664
+ scope: "universe",
665
+ summary: "Unpair a conversation",
666
+ description: "Removes one pairing; the conversation must present the pairing code again to reconnect.",
667
+ },
668
+ "channels/conversations/read": {
669
+ scope: "universe",
670
+ summary: "Read a conversation snapshot",
671
+ description: "Queries the conversation workflow's live state for one chat, for debugging; absent when no workflow exists yet.",
672
+ },
673
+ "operator/universes/create": {
674
+ scope: "operator",
675
+ summary: "Create a universe",
676
+ description: "Creates the deployment tenant boundary for an explicit UUID. The operation is idempotent and reports whether a new universe was created.",
677
+ },
678
+ "operator/universes/list": {
679
+ scope: "operator",
680
+ summary: "List universes",
681
+ description: "Returns deployment-wide universe summaries with approximate live aggregate counts and last session activity.",
682
+ },
683
+ "operator/universes/read": {
684
+ scope: "operator",
685
+ summary: "Read a universe",
686
+ description: "Returns one deployment tenant summary with aggregate session, workspace, profile, and blob usage.",
687
+ },
688
+ "operator/universes/delete": {
689
+ scope: "operator",
690
+ summary: "Purge a universe",
691
+ description: "Permanently terminates live session workflows, deletes external blob objects, and cascades universe data. The purge is resumable/idempotent after partial failure.",
692
+ },
693
+ "operator/api-keys/create": {
694
+ scope: "operator",
695
+ summary: "Create a universe API key",
696
+ description: "Mints an inbound gateway key for one existing universe. The plaintext secret is returned exactly once and cannot be recovered; persist only the displayed prefix for identification.",
697
+ },
698
+ "operator/api-keys/list": {
699
+ scope: "operator",
700
+ summary: "List universe API keys",
701
+ description: "Returns only non-secret key metadata for the requested universe, including revocation and last-use timestamps. Plaintext secrets are never stored or returned.",
702
+ },
703
+ "operator/api-keys/revoke": {
704
+ scope: "operator",
705
+ summary: "Revoke a universe API key",
706
+ description: "Immediately and idempotently revokes the matching key only when it belongs to the requested universe. Unknown and foreign-universe prefixes return not found.",
707
+ },
708
+ "operator/environment-providers/put": {
709
+ scope: "operator",
710
+ summary: "Put an environment provider",
711
+ description: "Registers or replaces one deployment provider and its controller connection. The provider does not call this API or require access to Lightspeed.",
712
+ },
713
+ "operator/environment-providers/list": {
714
+ scope: "operator",
715
+ summary: "List environment providers",
716
+ description: "Returns every operator-registered deployment provider and its controller connection.",
717
+ },
718
+ "operator/environment-providers/read": {
719
+ scope: "operator",
720
+ summary: "Read an environment provider",
721
+ description: "Returns one operator-registered deployment provider and its controller connection.",
722
+ },
723
+ "operator/environment-providers/delete": {
724
+ scope: "operator",
725
+ summary: "Delete an environment provider",
726
+ description: "Deletes a deployment provider only when no universe binding references it.",
727
+ },
728
+ "operator/environment-providers/bindings/put": {
729
+ scope: "operator",
730
+ summary: "Put an environment provider binding",
731
+ description: "Creates or replaces one universe's complete revisioned routing and admission binding. A deployment provider may have at most one binding in a universe.",
732
+ },
733
+ "operator/environment-providers/bindings/delete": {
734
+ scope: "operator",
735
+ summary: "Delete an environment provider binding",
736
+ description: "Deletes a universe provider binding only after every referencing environment has reached Closed.",
737
+ },
738
+ "operator/environments/adopt": {
739
+ scope: "operator",
740
+ summary: "Adopt a provider environment",
741
+ description: "Creates a universe environment by transferring an existing provider target into Lightspeed's managed lifecycle. The caller must explicitly accept ownership transfer.",
742
+ },
743
+ "operator/channels/accounts/list": {
744
+ scope: "operator",
745
+ summary: "List channel accounts across universes",
746
+ description: "The connector host's discovery call: every enabled provider account of the deployment with its universe id and credential grant reference. Re-poll to pick up accounts created or disabled since.",
747
+ },
748
+ };
749
+ export const NOTIFICATIONS = [
750
+ "session/started",
751
+ "session/status/changed",
752
+ "session/event",
753
+ "session/runs/started",
754
+ "session/runs/completed",
755
+ "error",
756
+ ];
757
+ export const rpc = {
758
+ /**
759
+ * Inspect the Lightspeed protocol
760
+ *
761
+ * Returns protocol version, server identity, and supported capabilities without changing universe state.
762
+ */
763
+ initialize(client, params) {
764
+ return client.call("initialize", params);
765
+ },
766
+ /**
767
+ * Create or reopen a session
768
+ *
769
+ * Creates a session with optional config/profile setup. Retrying an existing session id returns that session; creation settings apply only when it is first created.
770
+ */
771
+ sessionStart(client, params) {
772
+ return client.call("session/start", params);
773
+ },
774
+ /**
775
+ * Create or reopen a managed session
776
+ *
777
+ * Creates a session with an immutable lifecycle controller and/or workflow tools using explicit bound pull/push dispatch, start targets, and Accepted, Joined, or keyed-Promise completion. Retrying an existing session id requires the same managed-creation declaration; an ordinary session cannot be upgraded to managed.
778
+ */
779
+ sessionManagedStart(client, params) {
780
+ return client.call("session/managed/start", params);
781
+ },
782
+ /**
783
+ * Read a session
784
+ *
785
+ * Returns current state plus a bounded newest-first run-summary page. Follow nextRunCursor with session/runs/list when hasOlderRuns is true; use session/events/read for the transcript.
786
+ */
787
+ sessionRead(client, params) {
788
+ return client.call("session/read", params);
789
+ },
790
+ /**
791
+ * List sessions
792
+ *
793
+ * Returns a cursor-paginated summary list ordered by most recent update. Pages may shift while sessions are changing.
794
+ */
795
+ sessionList(client, params) {
796
+ return client.call("session/list", params);
797
+ },
798
+ /**
799
+ * Replace session configuration
800
+ *
801
+ * Replaces the complete sparse config while the session is idle. Use the current config revision for safe read-modify-write; omitted features are revoked and an identical document is a no-op.
802
+ */
803
+ sessionConfigPut(client, params) {
804
+ return client.call("session/config/put", params);
805
+ },
806
+ /**
807
+ * Rename a session
808
+ *
809
+ * Sets the display name, or clears it when displayName is omitted.
810
+ */
811
+ sessionRename(client, params) {
812
+ return client.call("session/rename", params);
813
+ },
814
+ /**
815
+ * Close a session
816
+ *
817
+ * Closes an idle session and detaches its environment bindings. Force mode cancels active work, drops queued runs, and can recover a session whose workflow is unavailable.
818
+ */
819
+ sessionClose(client, params) {
820
+ return client.call("session/close", params);
821
+ },
822
+ /**
823
+ * Delete a closed session
824
+ *
825
+ * Permanently removes session storage after the session has been closed; close active/open sessions first.
826
+ */
827
+ sessionDelete(client, params) {
828
+ return client.call("session/delete", params);
829
+ },
830
+ /**
831
+ * Read the session event stream
832
+ *
833
+ * Reads events after a cursor and optionally long-polls when caught up. Continue from nextCursor/headCursor and inspect complete/gap rather than assuming an uninterrupted page.
834
+ */
835
+ sessionEventsRead(client, params) {
836
+ return client.call("session/events/read", params);
837
+ },
838
+ /**
839
+ * Append keyed session context
840
+ *
841
+ * Admits a batch of context entries with per-entry results. Stable keys make same-content retries no-ops; media preprocessing can fail one entry without discarding successful entries.
842
+ */
843
+ sessionContextAppend(client, params) {
844
+ return client.call("session/context/append", params);
845
+ },
846
+ /**
847
+ * Remove keyed session context
848
+ *
849
+ * Removes active entries by stable key with per-key results. Missing keys are idempotent no-ops; runtime-reserved run keys cannot be removed.
850
+ */
851
+ sessionContextRemove(client, params) {
852
+ return client.call("session/context/remove", params);
853
+ },
854
+ /**
855
+ * Compact session context
856
+ *
857
+ * Runs the configured compaction policy on an open idle session and waits for the resulting context revision.
858
+ */
859
+ sessionContextCompact(client, params) {
860
+ return client.call("session/context/compact", params);
861
+ },
862
+ /**
863
+ * Start an agent run
864
+ *
865
+ * Accepts input or existing context keys and returns once the run is accepted — queued behind an active run, or running — not when it finishes. Supply submissionId for retry safety, then follow session events or reread the session.
866
+ */
867
+ sessionRunsStart(client, params) {
868
+ return client.call("session/runs/start", params);
869
+ },
870
+ /**
871
+ * List session runs
872
+ *
873
+ * Returns a newest-first keyset page of bounded run summaries projected from current reducer state.
874
+ */
875
+ sessionRunsList(client, params) {
876
+ return client.call("session/runs/list", params);
877
+ },
878
+ /**
879
+ * Read one session run
880
+ *
881
+ * Reads and projects one run from its bounded event interval, paged by event sequence.
882
+ */
883
+ sessionRunsRead(client, params) {
884
+ return client.call("session/runs/read", params);
885
+ },
886
+ /**
887
+ * Cancel a run
888
+ *
889
+ * Requests cancellation of the named queued or active run and returns its current projected state; observe session events for terminal completion. In-flight model and tool activity is aborted; no grace turn runs.
890
+ */
891
+ sessionRunsCancel(client, params) {
892
+ return client.call("session/runs/cancel", params);
893
+ },
894
+ /**
895
+ * Decide pending run approvals
896
+ *
897
+ * Approves or rejects pending MCP tool calls on the named active run. Valid decisions apply independently; the run resumes only after every pending approval has a decision.
898
+ */
899
+ sessionRunsApprovalsDecide(client, params) {
900
+ return client.call("session/runs/approvals/decide", params);
901
+ },
902
+ /**
903
+ * Steer the active run
904
+ *
905
+ * Injects input into the named active run; the model sees it at the next turn boundary without interrupting the in-flight turn. Accepted while the run is running or parked on an await; rejected for queued, cancelling, or finished runs.
906
+ */
907
+ sessionRunsSteer(client, params) {
908
+ return client.call("session/runs/steer", params);
909
+ },
910
+ /**
911
+ * List available session skills
912
+ *
913
+ * Refreshes the session's configured VFS skill catalog and reports which discovered skills are enabled and active. An absent catalog yields an empty result.
914
+ */
915
+ sessionSkillsList(client, params) {
916
+ return client.call("session/skills/list", params);
917
+ },
918
+ /**
919
+ * List active session skills
920
+ *
921
+ * Returns skill instructions currently injected into context, including activation scope and source.
922
+ */
923
+ sessionSkillsActive(client, params) {
924
+ return client.call("session/skills/active", params);
925
+ },
926
+ /**
927
+ * Activate a session skill
928
+ *
929
+ * Loads an enabled skill from the current catalog and injects its instructions into an open idle session. Run-scoped activation is the default.
930
+ */
931
+ sessionSkillsActivate(client, params) {
932
+ return client.call("session/skills/activate", params);
933
+ },
934
+ /**
935
+ * Deactivate a session skill
936
+ *
937
+ * Removes an active skill's injected context from an open idle session; the skill must currently be active.
938
+ */
939
+ sessionSkillsDeactivate(client, params) {
940
+ return client.call("session/skills/deactivate", params);
941
+ },
942
+ /**
943
+ * Apply a profile to a session
944
+ *
945
+ * Applies a named or inline profile's config, instructions, and environment setup to an existing session; mutating profile sections require it to be open and idle. Pass current revisions to guard concurrent changes.
946
+ */
947
+ sessionProfilesApply(client, params) {
948
+ return client.call("session/profiles/apply", params);
949
+ },
950
+ /**
951
+ * Activate a session environment
952
+ *
953
+ * Selects an allowed, live universe environment for environment-targeted tools while the session is idle.
954
+ */
955
+ sessionEnvironmentsActivate(client, params) {
956
+ return client.call("session/environments/activate", params);
957
+ },
958
+ /**
959
+ * Deactivate the session environment
960
+ *
961
+ * Clears active environment selection without changing or closing the universe environment.
962
+ */
963
+ sessionEnvironmentsDeactivate(client, params) {
964
+ return client.call("session/environments/deactivate", params);
965
+ },
966
+ /**
967
+ * Bind a credential into an environment
968
+ *
969
+ * Maps an environment variable name to an existing grant/provider/direct-secret handle for a universe environment. The response exposes only the source handle, never secret material.
970
+ */
971
+ environmentsCredentialsBind(client, params) {
972
+ return client.call("environments/credentials/bind", params);
973
+ },
974
+ /**
975
+ * List environment credential bindings
976
+ *
977
+ * Returns variable names and credential source handles for a universe environment; resolved secret values are never returned.
978
+ */
979
+ environmentsCredentialsList(client, params) {
980
+ return client.call("environments/credentials/list", params);
981
+ },
982
+ /**
983
+ * Unbind an environment credential
984
+ *
985
+ * Removes one variable-to-credential mapping without deleting the underlying grant, provider credential, or secret.
986
+ */
987
+ environmentsCredentialsUnbind(client, params) {
988
+ return client.call("environments/credentials/unbind", params);
989
+ },
990
+ /**
991
+ * Create an environment
992
+ *
993
+ * Records an idempotent provisioning intent against an enabled universe binding. The provider validates its provider-wide template and provisions through its backend asynchronously.
994
+ */
995
+ environmentsCreate(client, params) {
996
+ return client.call("environments/create", params);
997
+ },
998
+ /**
999
+ * Read an environment
1000
+ *
1001
+ * Returns the durable universe resource, source binding, logical lifecycle state, and minimal current-incarnation identity.
1002
+ */
1003
+ environmentsRead(client, params) {
1004
+ return client.call("environments/read", params);
1005
+ },
1006
+ /**
1007
+ * List environments
1008
+ *
1009
+ * Lists universe-owned environment resources, optionally filtered by provider, binding, or logical lifecycle state.
1010
+ */
1011
+ environmentsList(client, params) {
1012
+ return client.call("environments/list", params);
1013
+ },
1014
+ /**
1015
+ * Close an environment
1016
+ *
1017
+ * Records an asynchronous idempotent close intent. Provider cleanup is resumed by lifecycle reconciliation; quota is released only after Closed.
1018
+ */
1019
+ environmentsClose(client, params) {
1020
+ return client.call("environments/close", params);
1021
+ },
1022
+ /**
1023
+ * Register an external environment
1024
+ *
1025
+ * Creates an environment backed by a Lightspeed-reachable envd WebSocket endpoint. Reachability is checked on demand.
1026
+ */
1027
+ environmentsExternalCreate(client, params) {
1028
+ return client.call("environments/external/create", params);
1029
+ },
1030
+ /**
1031
+ * Configure environment public ingress
1032
+ *
1033
+ * Synchronously enables or disables one provider-authorized HTTPS endpoint for a provisioned environment. The provider owns hostname allocation, the approved guest port, routing, TLS, and health.
1034
+ */
1035
+ environmentsIngressPut(client, params) {
1036
+ return client.call("environments/ingress/put", params);
1037
+ },
1038
+ /**
1039
+ * Set environment power intent
1040
+ *
1041
+ * Records the desired power state (running, paused, suspended, or stopped) of a provisioned environment; the lifecycle reconciler converges the provider target asynchronously. Powered-down environments wake transparently on their next use. Rejected when the provider does not support the state.
1042
+ */
1043
+ environmentsPowerPut(client, params) {
1044
+ return client.call("environments/power/put", params);
1045
+ },
1046
+ /**
1047
+ * Set environment idle policy
1048
+ *
1049
+ * Replaces or clears the staged idle policy of a provisioned environment. The power reaper measures the daemon's idle duration against the pause/suspend/stop/close thresholds and escalates through the stages the provider supports.
1050
+ */
1051
+ environmentsIdlePolicyPut(client, params) {
1052
+ return client.call("environments/idle-policy/put", params);
1053
+ },
1054
+ /**
1055
+ * List environment provider bindings
1056
+ *
1057
+ * Lists this universe's revisioned routing and admission bindings to deployment-scoped physical providers.
1058
+ */
1059
+ environmentsProviderBindingsList(client, params) {
1060
+ return client.call("environments/provider-bindings/list", params);
1061
+ },
1062
+ /**
1063
+ * Read an environment provider binding
1064
+ *
1065
+ * Returns one universe routing and admission binding. Provider-wide templates and physical resource, network, and ingress policy remain provider-owned.
1066
+ */
1067
+ environmentsProviderBindingsRead(client, params) {
1068
+ return client.call("environments/provider-bindings/read", params);
1069
+ },
1070
+ /**
1071
+ * List environment templates
1072
+ *
1073
+ * Reads immutable templates directly from the selected bound provider controller.
1074
+ */
1075
+ environmentsTemplatesList(client, params) {
1076
+ return client.call("environments/templates/list", params);
1077
+ },
1078
+ /**
1079
+ * Read an environment template
1080
+ *
1081
+ * Returns one immutable template version from the selected bound provider controller.
1082
+ */
1083
+ environmentsTemplatesRead(client, params) {
1084
+ return client.call("environments/templates/read", params);
1085
+ },
1086
+ /**
1087
+ * Create environment jobs
1088
+ *
1089
+ * Starts a dependency-aware job group on one environment instance, injecting the environment's configured credentials at provider start. requestId is the retry identity; jobs are owned by the instance rather than a session. A powered-down environment is woken on use: the call fails with environment_not_ready while the wake is in progress; retry with backoff.
1090
+ */
1091
+ environmentsJobsCreate(client, params) {
1092
+ return client.call("environments/jobs/create", params);
1093
+ },
1094
+ /**
1095
+ * Read environment jobs
1096
+ *
1097
+ * Reads selected job handles with bounded output, optional sequence continuation, and optional artifacts; use returned status/sequence data for polling.
1098
+ */
1099
+ environmentsJobsRead(client, params) {
1100
+ return client.call("environments/jobs/read", params);
1101
+ },
1102
+ /**
1103
+ * Cancel environment jobs
1104
+ *
1105
+ * Requests cancellation for selected jobs, optionally including dependents. Force is provider-specific escalation; inspect each per-job result.
1106
+ */
1107
+ environmentsJobsCancel(client, params) {
1108
+ return client.call("environments/jobs/cancel", params);
1109
+ },
1110
+ /**
1111
+ * Discover available models
1112
+ *
1113
+ * Queries supported providers directly on every call and returns best-effort selectable routes. One provider failure does not discard successful results from others.
1114
+ */
1115
+ modelsList(client, params) {
1116
+ return client.call("models/list", params);
1117
+ },
1118
+ /**
1119
+ * Create an agent profile
1120
+ *
1121
+ * Creates a new universe-scoped reusable profile document; use profiles/put for create-or-replace revision semantics.
1122
+ */
1123
+ profilesCreate(client, params) {
1124
+ return client.call("profiles/create", params);
1125
+ },
1126
+ /**
1127
+ * Read an agent profile
1128
+ *
1129
+ * Returns the complete profile document and current revision.
1130
+ */
1131
+ profilesRead(client, params) {
1132
+ return client.call("profiles/read", params);
1133
+ },
1134
+ /**
1135
+ * List agent profiles
1136
+ *
1137
+ * Returns lightweight summaries of universe-scoped reusable profiles.
1138
+ */
1139
+ profilesList(client, params) {
1140
+ return client.call("profiles/list", params);
1141
+ },
1142
+ /**
1143
+ * Create or replace an agent profile
1144
+ *
1145
+ * Stores the complete profile document. Use expectedRevision from profiles/read when replacing to prevent lost updates; absence writes unconditionally.
1146
+ */
1147
+ profilesPut(client, params) {
1148
+ return client.call("profiles/put", params);
1149
+ },
1150
+ /**
1151
+ * Delete an agent profile
1152
+ *
1153
+ * Deletes the catalog document; sessions previously created or configured from it retain their materialized state.
1154
+ */
1155
+ profilesDelete(client, params) {
1156
+ return client.call("profiles/delete", params);
1157
+ },
1158
+ /**
1159
+ * Store content-addressed blobs
1160
+ *
1161
+ * Decodes and stores a batch of base64 payloads, returning immutable content references in request order. Re-uploading identical bytes is naturally deduplicated.
1162
+ */
1163
+ blobsPut(client, params) {
1164
+ return client.call("blobs/put", params);
1165
+ },
1166
+ /**
1167
+ * Read a content-addressed blob
1168
+ *
1169
+ * Returns the complete immutable blob as base64; large values count against gateway and MCP response limits.
1170
+ */
1171
+ blobsRead(client, params) {
1172
+ return client.call("blobs/read", params);
1173
+ },
1174
+ /**
1175
+ * Check blob availability
1176
+ *
1177
+ * Checks a batch of content references without returning blob bodies, preserving request order.
1178
+ */
1179
+ blobsHas(client, params) {
1180
+ return client.call("blobs/has", params);
1181
+ },
1182
+ /**
1183
+ * Commit a VFS snapshot
1184
+ *
1185
+ * Validates and stores an immutable filesystem manifest. Upload referenced file blobs first; the returned snapshot ref is content-addressed.
1186
+ */
1187
+ vfsSnapshotsCommit(client, params) {
1188
+ return client.call("vfs/snapshots/commit", params);
1189
+ },
1190
+ /**
1191
+ * Read a VFS snapshot
1192
+ *
1193
+ * Returns an immutable snapshot manifest and aggregate file/byte counts; file bodies remain separate blobs.
1194
+ */
1195
+ vfsSnapshotsRead(client, params) {
1196
+ return client.call("vfs/snapshots/read", params);
1197
+ },
1198
+ /**
1199
+ * Create a mutable VFS workspace
1200
+ *
1201
+ * Creates a universe workspace at an optional seed snapshot; absence starts from a server-created empty snapshot.
1202
+ */
1203
+ vfsWorkspacesCreate(client, params) {
1204
+ return client.call("vfs/workspaces/create", params);
1205
+ },
1206
+ /**
1207
+ * Read a VFS workspace
1208
+ *
1209
+ * Returns workspace metadata, current head snapshot, and revision for safe updates.
1210
+ */
1211
+ vfsWorkspacesRead(client, params) {
1212
+ return client.call("vfs/workspaces/read", params);
1213
+ },
1214
+ /**
1215
+ * List VFS workspaces
1216
+ *
1217
+ * Lists mutable universe workspaces with head snapshots, sizes, and revisions.
1218
+ */
1219
+ vfsWorkspacesList(client, params) {
1220
+ return client.call("vfs/workspaces/list", params);
1221
+ },
1222
+ /**
1223
+ * Update a VFS workspace
1224
+ *
1225
+ * Moves the workspace head to an existing snapshot and updates its display name. Pass expectedRevision from a read to prevent lost updates.
1226
+ */
1227
+ vfsWorkspacesUpdate(client, params) {
1228
+ return client.call("vfs/workspaces/update", params);
1229
+ },
1230
+ /**
1231
+ * Delete a VFS workspace
1232
+ *
1233
+ * Deletes the mutable workspace record; immutable snapshots and blobs remain content-addressed resources.
1234
+ */
1235
+ vfsWorkspacesDelete(client, params) {
1236
+ return client.call("vfs/workspaces/delete", params);
1237
+ },
1238
+ /**
1239
+ * Create or replace an MCP server record
1240
+ *
1241
+ * Stores the complete universe catalog document, including its optional universe auth-grant credential. Use expectedRevision when replacing; token material is never accepted or returned.
1242
+ */
1243
+ mcpServersPut(client, params) {
1244
+ return client.call("mcp/servers/put", params);
1245
+ },
1246
+ /**
1247
+ * Discover MCP server authentication
1248
+ *
1249
+ * Looks for standards-based OAuth protected-resource metadata without creating a server, OAuth client, flow, or grant. An absent OAuth result is inconclusive and callers must allow manual auth selection.
1250
+ */
1251
+ mcpServersAuthDiscover(client, params) {
1252
+ return client.call("mcp/servers/auth/discover", params);
1253
+ },
1254
+ /**
1255
+ * Discover MCP server tools
1256
+ *
1257
+ * Connects directly to the configured MCP server with its current universe credential and returns one bounded live tools/list result. The inventory is never persisted or cached and no tool is invoked.
1258
+ */
1259
+ mcpServersToolsDiscover(client, params) {
1260
+ return client.call("mcp/servers/tools/discover", params);
1261
+ },
1262
+ /**
1263
+ * Read an MCP server record
1264
+ *
1265
+ * Returns one catalog document with defaults, auth policy, non-secret grant binding, status, and revision; no credential value is exposed.
1266
+ */
1267
+ mcpServersRead(client, params) {
1268
+ return client.call("mcp/servers/read", params);
1269
+ },
1270
+ /**
1271
+ * List MCP server records
1272
+ *
1273
+ * Lists universe catalog entries, optionally filtered by lifecycle/configuration status.
1274
+ */
1275
+ mcpServersList(client, params) {
1276
+ return client.call("mcp/servers/list", params);
1277
+ },
1278
+ /**
1279
+ * Delete an MCP server record
1280
+ *
1281
+ * Deletes the catalog document. Existing session configs that reference it are not silently rewritten and may need explicit reconfiguration.
1282
+ */
1283
+ mcpServersDelete(client, params) {
1284
+ return client.call("mcp/servers/delete", params);
1285
+ },
1286
+ /**
1287
+ * Import a static bearer grant
1288
+ *
1289
+ * Accepts a plaintext token, encrypts it immediately, and returns only grant metadata/token-presence flags. Brokered is the default; retrievable exposure is immutable and permits service-only leases.
1290
+ */
1291
+ authGrantsImport(client, params) {
1292
+ return client.call("auth/grants/import", params);
1293
+ },
1294
+ /**
1295
+ * Lease a retrievable authentication grant
1296
+ *
1297
+ * Service callers only. Resolves the current access token through the broker, records the lease, and returns it once. Cache only in memory until expiry minus margin (or at most five minutes without expiry), re-lease after target 401/403, and never persist or place the token in workflow payloads.
1298
+ */
1299
+ authGrantsLease(client, params) {
1300
+ return client.call("auth/grants/lease", params);
1301
+ },
1302
+ /**
1303
+ * Read authentication grant metadata
1304
+ *
1305
+ * Returns principal, provider binding, scopes, audience, expiry, status, and token-presence flags; access and refresh token values are never returned.
1306
+ */
1307
+ authGrantsRead(client, params) {
1308
+ return client.call("auth/grants/read", params);
1309
+ },
1310
+ /**
1311
+ * List authentication grants
1312
+ *
1313
+ * Lists non-secret grant metadata for the universe, optionally filtered by status.
1314
+ */
1315
+ authGrantsList(client, params) {
1316
+ return client.call("auth/grants/list", params);
1317
+ },
1318
+ /**
1319
+ * Revoke an authentication grant
1320
+ *
1321
+ * Marks the grant unusable by token consumers while retaining non-secret audit metadata.
1322
+ */
1323
+ authGrantsRevoke(client, params) {
1324
+ return client.call("auth/grants/revoke", params);
1325
+ },
1326
+ /**
1327
+ * Register an OAuth client
1328
+ *
1329
+ * Stores provider endpoints and client identity; an optional plaintext client secret is encrypted and represented thereafter only by hasClientSecret.
1330
+ */
1331
+ authClientsCreate(client, params) {
1332
+ return client.call("auth/clients/create", params);
1333
+ },
1334
+ /**
1335
+ * Read OAuth client metadata
1336
+ *
1337
+ * Returns endpoints, public client identity, defaults, and secret-presence state; the client secret is never returned.
1338
+ */
1339
+ authClientsRead(client, params) {
1340
+ return client.call("auth/clients/read", params);
1341
+ },
1342
+ /**
1343
+ * List OAuth clients
1344
+ *
1345
+ * Lists non-secret OAuth client registrations in the universe.
1346
+ */
1347
+ authClientsList(client, params) {
1348
+ return client.call("auth/clients/list", params);
1349
+ },
1350
+ /**
1351
+ * Delete an OAuth client
1352
+ *
1353
+ * Deletes the client registration and its stored client secret; grants already created from it remain separate records.
1354
+ */
1355
+ authClientsDelete(client, params) {
1356
+ return client.call("auth/clients/delete", params);
1357
+ },
1358
+ /**
1359
+ * Start an OAuth authorization flow
1360
+ *
1361
+ * Creates a short-lived PKCE flow carrying the immutable grant exposure choice and returns a browser authorization URL containing one-time state. Treat the URL as sensitive and poll auth/flows/read for completion.
1362
+ */
1363
+ authFlowsStart(client, params) {
1364
+ return client.call("auth/flows/start", params);
1365
+ },
1366
+ /**
1367
+ * Read OAuth flow status
1368
+ *
1369
+ * Polls a flow's pending/completed/failed/expired state and returns the resulting grant id when authorization succeeds; no token value is exposed.
1370
+ */
1371
+ authFlowsRead(client, params) {
1372
+ return client.call("auth/flows/read", params);
1373
+ },
1374
+ /**
1375
+ * Register an authentication provider
1376
+ *
1377
+ * Creates a model or GitHub credential source. Plaintext API keys/private keys are encrypted on receipt and later represented only by configuration plus hasCredential.
1378
+ */
1379
+ authProvidersCreate(client, params) {
1380
+ return client.call("auth/providers/create", params);
1381
+ },
1382
+ /**
1383
+ * Read authentication provider metadata
1384
+ *
1385
+ * Returns provider kind, non-secret configuration, credential-presence state, and status; stored credentials are never returned.
1386
+ */
1387
+ authProvidersRead(client, params) {
1388
+ return client.call("auth/providers/read", params);
1389
+ },
1390
+ /**
1391
+ * List authentication providers
1392
+ *
1393
+ * Lists non-secret model/GitHub provider registrations for the universe.
1394
+ */
1395
+ authProvidersList(client, params) {
1396
+ return client.call("auth/providers/list", params);
1397
+ },
1398
+ /**
1399
+ * Delete an authentication provider
1400
+ *
1401
+ * Deletes the provider registration and its directly stored credential; separately stored grants remain independent records.
1402
+ */
1403
+ authProvidersDelete(client, params) {
1404
+ return client.call("auth/providers/delete", params);
1405
+ },
1406
+ /**
1407
+ * List GitHub App installations
1408
+ *
1409
+ * Uses the registered GitHub App provider credential to query accessible installations and returns account/permission metadata without tokens.
1410
+ */
1411
+ authGithubInstallationsList(client, params) {
1412
+ return client.call("auth/github/installations/list", params);
1413
+ },
1414
+ /**
1415
+ * Grant access to a GitHub App installation
1416
+ *
1417
+ * Creates or refreshes a universe auth grant for one accessible installation. The installation token is brokered internally and never returned.
1418
+ */
1419
+ authGithubInstallationsGrant(client, params) {
1420
+ return client.call("auth/github/installations/grant", params);
1421
+ },
1422
+ /**
1423
+ * Create a bot
1424
+ *
1425
+ * Creates the bot record, optionally with its triggers, and starts its controller. Fails if the bot id exists; a trigger failure rolls the bot back.
1426
+ */
1427
+ botsCreate(client, params) {
1428
+ return client.call("bots/create", params);
1429
+ },
1430
+ /**
1431
+ * Create or replace a bot document
1432
+ *
1433
+ * Replaces the mutable configuration whole and signals the controller, which applies it at its next idle boundary. Pass expectedRevision when replacing; a closed bot accepts label-only edits.
1434
+ */
1435
+ botsPut(client, params) {
1436
+ return client.call("bots/put", params);
1437
+ },
1438
+ /**
1439
+ * Read a bot
1440
+ *
1441
+ * Returns the bot record, its current revision, and lifecycle columns.
1442
+ */
1443
+ botsRead(client, params) {
1444
+ return client.call("bots/read", params);
1445
+ },
1446
+ /**
1447
+ * List bots
1448
+ *
1449
+ * Returns the roster: every bot with its trigger count, pending event count, and latest event.
1450
+ */
1451
+ botsList(client, params) {
1452
+ return client.call("bots/list", params);
1453
+ },
1454
+ /**
1455
+ * Close a bot
1456
+ *
1457
+ * Terminal and idempotent: disables every trigger, drops schedules, and tells the controller to archive pending events and force-close its sessions. Returns once signalled; follow bots/state/read for closing to closed.
1458
+ */
1459
+ botsClose(client, params) {
1460
+ return client.call("bots/close", params);
1461
+ },
1462
+ /**
1463
+ * Delete a bot
1464
+ *
1465
+ * Closes the bot if needed, waits for its controller to complete, deletes the sessions it closed, and removes the record so the bot id is free again.
1466
+ */
1467
+ botsDelete(client, params) {
1468
+ return client.call("bots/delete", params);
1469
+ },
1470
+ /**
1471
+ * Read bot controller state
1472
+ *
1473
+ * Queries the controller workflow for its live snapshot (sessions, buffers, active and recent deliveries, budget) and lists sub-agent descendants. The controller is absent until the bot's first event.
1474
+ */
1475
+ botsStateRead(client, params) {
1476
+ return client.call("bots/state/read", params);
1477
+ },
1478
+ /**
1479
+ * Rotate a bot session
1480
+ *
1481
+ * Asks the controller to close one of the bot's sessions at its next idle boundary and continue on a fresh generation; queued deliveries follow.
1482
+ */
1483
+ botsSessionsRotate(client, params) {
1484
+ return client.call("bots/sessions/rotate", params);
1485
+ },
1486
+ /**
1487
+ * Create or replace a trigger
1488
+ *
1489
+ * Validates the trigger document (CEL parses, grants exist, one inbox per bot, chat routes per conversation), reconciles its Temporal Schedule, and stores it. A poll spec edit resets the cursor; a webhook keeps its URL token.
1490
+ */
1491
+ botsTriggersPut(client, params) {
1492
+ return client.call("bots/triggers/put", params);
1493
+ },
1494
+ /**
1495
+ * Read a trigger
1496
+ *
1497
+ * Returns one trigger with its incidents and cursor; the ingest path and pairing code are shown only to managing principals.
1498
+ */
1499
+ botsTriggersRead(client, params) {
1500
+ return client.call("bots/triggers/read", params);
1501
+ },
1502
+ /**
1503
+ * List a bot's triggers
1504
+ *
1505
+ * Returns every trigger of the bot ordered by id, secrets redacted for non-managing principals.
1506
+ */
1507
+ botsTriggersList(client, params) {
1508
+ return client.call("bots/triggers/list", params);
1509
+ },
1510
+ /**
1511
+ * Delete a trigger
1512
+ *
1513
+ * Drops the trigger's Temporal Schedule and pairings, then the record; stored events keep their history.
1514
+ */
1515
+ botsTriggersDelete(client, params) {
1516
+ return client.call("bots/triggers/delete", params);
1517
+ },
1518
+ /**
1519
+ * Admit an event manually
1520
+ *
1521
+ * Stores an operator-authored event for the bot's main session and wakes the controller. eventId is the dedupe identity; a duplicate returns the stored row.
1522
+ */
1523
+ botsEventsAdmit(client, params) {
1524
+ return client.call("bots/events/admit", params);
1525
+ },
1526
+ /**
1527
+ * Replay a stored event
1528
+ *
1529
+ * Re-admits the stored envelope as a fresh event with the original routing; the replay never coalesces.
1530
+ */
1531
+ botsEventsReplay(client, params) {
1532
+ return client.call("bots/events/replay", params);
1533
+ },
1534
+ /**
1535
+ * List a bot's events
1536
+ *
1537
+ * Cursor-paginated event log, newest first, with outcomes; payload documents stay in the CAS.
1538
+ */
1539
+ botsEventsList(client, params) {
1540
+ return client.call("bots/events/list", params);
1541
+ },
1542
+ /**
1543
+ * Read an event by number
1544
+ *
1545
+ * Returns the event row and its full stored envelope document.
1546
+ */
1547
+ botsEventsRead(client, params) {
1548
+ return client.call("bots/events/read", params);
1549
+ },
1550
+ /**
1551
+ * Test a CEL filter
1552
+ *
1553
+ * Evaluates a filter against one payload or a sample of recent stored events, reporting matches and evaluation errors without changing anything.
1554
+ */
1555
+ botsFiltersTest(client, params) {
1556
+ return client.call("bots/filters/test", params);
1557
+ },
1558
+ /**
1559
+ * Create a channel account
1560
+ *
1561
+ * Registers a provider account (Telegram, WhatsApp) for this universe. The credential is a retrievable grant reference; no token is accepted here.
1562
+ */
1563
+ channelsAccountsCreate(client, params) {
1564
+ return client.call("channels/accounts/create", params);
1565
+ },
1566
+ /**
1567
+ * Create or replace a channel account
1568
+ *
1569
+ * Replaces the account document whole; pass expectedRevision when replacing. The connector host picks the change up on its next discovery pass.
1570
+ */
1571
+ channelsAccountsPut(client, params) {
1572
+ return client.call("channels/accounts/put", params);
1573
+ },
1574
+ /**
1575
+ * Read a channel account
1576
+ *
1577
+ * Returns the account document and revision.
1578
+ */
1579
+ channelsAccountsRead(client, params) {
1580
+ return client.call("channels/accounts/read", params);
1581
+ },
1582
+ /**
1583
+ * List channel accounts
1584
+ *
1585
+ * Lists this universe's provider accounts, optionally by provider.
1586
+ */
1587
+ channelsAccountsList(client, params) {
1588
+ return client.call("channels/accounts/list", params);
1589
+ },
1590
+ /**
1591
+ * Delete a channel account
1592
+ *
1593
+ * Removes the account and its pairings; chat triggers that reference it stop serving conversations.
1594
+ */
1595
+ channelsAccountsDelete(client, params) {
1596
+ return client.call("channels/accounts/delete", params);
1597
+ },
1598
+ /**
1599
+ * Admit a provider message
1600
+ *
1601
+ * Service callers only. Resolves the chat trigger for the conversation, applies pairing, and signals the conversation workflow. Returns the decision so the connector can send pairing prompts itself; acknowledge the provider only after this returns.
1602
+ */
1603
+ channelsInboundAdmit(client, params) {
1604
+ return client.call("channels/inbound/admit", params);
1605
+ },
1606
+ /**
1607
+ * List chat pairings
1608
+ *
1609
+ * Lists conversations paired to chat triggers, optionally by account or bot.
1610
+ */
1611
+ channelsPairingsList(client, params) {
1612
+ return client.call("channels/pairings/list", params);
1613
+ },
1614
+ /**
1615
+ * Unpair a conversation
1616
+ *
1617
+ * Removes one pairing; the conversation must present the pairing code again to reconnect.
1618
+ */
1619
+ channelsPairingsDelete(client, params) {
1620
+ return client.call("channels/pairings/delete", params);
1621
+ },
1622
+ /**
1623
+ * Read a conversation snapshot
1624
+ *
1625
+ * Queries the conversation workflow's live state for one chat, for debugging; absent when no workflow exists yet.
1626
+ */
1627
+ channelsConversationsRead(client, params) {
1628
+ return client.call("channels/conversations/read", params);
1629
+ },
1630
+ /**
1631
+ * Create a universe
1632
+ *
1633
+ * Creates the deployment tenant boundary for an explicit UUID. The operation is idempotent and reports whether a new universe was created.
1634
+ */
1635
+ operatorUniversesCreate(client, params) {
1636
+ return client.call("operator/universes/create", params);
1637
+ },
1638
+ /**
1639
+ * List universes
1640
+ *
1641
+ * Returns deployment-wide universe summaries with approximate live aggregate counts and last session activity.
1642
+ */
1643
+ operatorUniversesList(client, params) {
1644
+ return client.call("operator/universes/list", params);
1645
+ },
1646
+ /**
1647
+ * Read a universe
1648
+ *
1649
+ * Returns one deployment tenant summary with aggregate session, workspace, profile, and blob usage.
1650
+ */
1651
+ operatorUniversesRead(client, params) {
1652
+ return client.call("operator/universes/read", params);
1653
+ },
1654
+ /**
1655
+ * Purge a universe
1656
+ *
1657
+ * Permanently terminates live session workflows, deletes external blob objects, and cascades universe data. The purge is resumable/idempotent after partial failure.
1658
+ */
1659
+ operatorUniversesDelete(client, params) {
1660
+ return client.call("operator/universes/delete", params);
1661
+ },
1662
+ /**
1663
+ * Create a universe API key
1664
+ *
1665
+ * Mints an inbound gateway key for one existing universe. The plaintext secret is returned exactly once and cannot be recovered; persist only the displayed prefix for identification.
1666
+ */
1667
+ operatorApiKeysCreate(client, params) {
1668
+ return client.call("operator/api-keys/create", params);
1669
+ },
1670
+ /**
1671
+ * List universe API keys
1672
+ *
1673
+ * Returns only non-secret key metadata for the requested universe, including revocation and last-use timestamps. Plaintext secrets are never stored or returned.
1674
+ */
1675
+ operatorApiKeysList(client, params) {
1676
+ return client.call("operator/api-keys/list", params);
1677
+ },
1678
+ /**
1679
+ * Revoke a universe API key
1680
+ *
1681
+ * Immediately and idempotently revokes the matching key only when it belongs to the requested universe. Unknown and foreign-universe prefixes return not found.
1682
+ */
1683
+ operatorApiKeysRevoke(client, params) {
1684
+ return client.call("operator/api-keys/revoke", params);
1685
+ },
1686
+ /**
1687
+ * Put an environment provider
1688
+ *
1689
+ * Registers or replaces one deployment provider and its controller connection. The provider does not call this API or require access to Lightspeed.
1690
+ */
1691
+ operatorEnvironmentProvidersPut(client, params) {
1692
+ return client.call("operator/environment-providers/put", params);
1693
+ },
1694
+ /**
1695
+ * List environment providers
1696
+ *
1697
+ * Returns every operator-registered deployment provider and its controller connection.
1698
+ */
1699
+ operatorEnvironmentProvidersList(client, params) {
1700
+ return client.call("operator/environment-providers/list", params);
1701
+ },
1702
+ /**
1703
+ * Read an environment provider
1704
+ *
1705
+ * Returns one operator-registered deployment provider and its controller connection.
1706
+ */
1707
+ operatorEnvironmentProvidersRead(client, params) {
1708
+ return client.call("operator/environment-providers/read", params);
1709
+ },
1710
+ /**
1711
+ * Delete an environment provider
1712
+ *
1713
+ * Deletes a deployment provider only when no universe binding references it.
1714
+ */
1715
+ operatorEnvironmentProvidersDelete(client, params) {
1716
+ return client.call("operator/environment-providers/delete", params);
1717
+ },
1718
+ /**
1719
+ * Put an environment provider binding
1720
+ *
1721
+ * Creates or replaces one universe's complete revisioned routing and admission binding. A deployment provider may have at most one binding in a universe.
1722
+ */
1723
+ operatorEnvironmentProvidersBindingsPut(client, params) {
1724
+ return client.call("operator/environment-providers/bindings/put", params);
1725
+ },
1726
+ /**
1727
+ * Delete an environment provider binding
1728
+ *
1729
+ * Deletes a universe provider binding only after every referencing environment has reached Closed.
1730
+ */
1731
+ operatorEnvironmentProvidersBindingsDelete(client, params) {
1732
+ return client.call("operator/environment-providers/bindings/delete", params);
1733
+ },
1734
+ /**
1735
+ * Adopt a provider environment
1736
+ *
1737
+ * Creates a universe environment by transferring an existing provider target into Lightspeed's managed lifecycle. The caller must explicitly accept ownership transfer.
1738
+ */
1739
+ operatorEnvironmentsAdopt(client, params) {
1740
+ return client.call("operator/environments/adopt", params);
1741
+ },
1742
+ /**
1743
+ * List channel accounts across universes
1744
+ *
1745
+ * The connector host's discovery call: every enabled provider account of the deployment with its universe id and credential grant reference. Re-poll to pick up accounts created or disabled since.
1746
+ */
1747
+ operatorChannelsAccountsList(client, params) {
1748
+ return client.call("operator/channels/accounts/list", params);
1749
+ },
1750
+ };
1751
+ //# sourceMappingURL=methods.js.map