@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.
- package/README.md +63 -0
- package/dist/client.d.ts +65 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +194 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +20 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +47 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/methods.d.ts +2497 -0
- package/dist/generated/methods.d.ts.map +1 -0
- package/dist/generated/methods.js +1751 -0
- package/dist/generated/methods.js.map +1 -0
- package/dist/generated/types.d.ts +6950 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +6 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/generated/workflow-manifest.d.ts +219 -0
- package/dist/generated/workflow-manifest.d.ts.map +1 -0
- package/dist/generated/workflow-manifest.js +251 -0
- package/dist/generated/workflow-manifest.js.map +1 -0
- package/dist/generated/workflow-types.d.ts +451 -0
- package/dist/generated/workflow-types.d.ts.map +1 -0
- package/dist/generated/workflow-types.js +6 -0
- package/dist/generated/workflow-types.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/workflow.d.ts +217 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +338 -0
- package/dist/workflow.js.map +1 -0
- package/examples/temporal-activity.ts +33 -0
- package/package.json +55 -0
- package/release.json +4 -0
- package/schema/api.schema.json +16643 -0
- package/schema/workflow.json +246 -0
- package/schema/workflow.schema.json +880 -0
- package/src/client.ts +318 -0
- package/src/errors.ts +64 -0
- package/src/generated/methods.ts +2888 -0
- package/src/generated/types.ts +7189 -0
- package/src/generated/workflow-manifest.ts +251 -0
- package/src/generated/workflow-types.ts +468 -0
- package/src/index.ts +31 -0
- package/src/workflow.ts +468 -0
|
@@ -0,0 +1,2888 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by clients/typescript/scripts/generate.mjs.
|
|
3
|
+
* Do not edit by hand.
|
|
4
|
+
*/
|
|
5
|
+
import type * as Api from "./types.js";
|
|
6
|
+
|
|
7
|
+
export const METHODS = [
|
|
8
|
+
"initialize",
|
|
9
|
+
"session/start",
|
|
10
|
+
"session/managed/start",
|
|
11
|
+
"session/read",
|
|
12
|
+
"session/list",
|
|
13
|
+
"session/config/put",
|
|
14
|
+
"session/rename",
|
|
15
|
+
"session/close",
|
|
16
|
+
"session/delete",
|
|
17
|
+
"session/events/read",
|
|
18
|
+
"session/context/append",
|
|
19
|
+
"session/context/remove",
|
|
20
|
+
"session/context/compact",
|
|
21
|
+
"session/runs/start",
|
|
22
|
+
"session/runs/list",
|
|
23
|
+
"session/runs/read",
|
|
24
|
+
"session/runs/cancel",
|
|
25
|
+
"session/runs/approvals/decide",
|
|
26
|
+
"session/runs/steer",
|
|
27
|
+
"session/skills/list",
|
|
28
|
+
"session/skills/active",
|
|
29
|
+
"session/skills/activate",
|
|
30
|
+
"session/skills/deactivate",
|
|
31
|
+
"session/profiles/apply",
|
|
32
|
+
"session/environments/activate",
|
|
33
|
+
"session/environments/deactivate",
|
|
34
|
+
"environments/credentials/bind",
|
|
35
|
+
"environments/credentials/list",
|
|
36
|
+
"environments/credentials/unbind",
|
|
37
|
+
"environments/create",
|
|
38
|
+
"environments/read",
|
|
39
|
+
"environments/list",
|
|
40
|
+
"environments/close",
|
|
41
|
+
"environments/external/create",
|
|
42
|
+
"environments/ingress/put",
|
|
43
|
+
"environments/power/put",
|
|
44
|
+
"environments/idle-policy/put",
|
|
45
|
+
"environments/provider-bindings/list",
|
|
46
|
+
"environments/provider-bindings/read",
|
|
47
|
+
"environments/templates/list",
|
|
48
|
+
"environments/templates/read",
|
|
49
|
+
"environments/jobs/create",
|
|
50
|
+
"environments/jobs/read",
|
|
51
|
+
"environments/jobs/cancel",
|
|
52
|
+
"models/list",
|
|
53
|
+
"profiles/create",
|
|
54
|
+
"profiles/read",
|
|
55
|
+
"profiles/list",
|
|
56
|
+
"profiles/put",
|
|
57
|
+
"profiles/delete",
|
|
58
|
+
"blobs/put",
|
|
59
|
+
"blobs/read",
|
|
60
|
+
"blobs/has",
|
|
61
|
+
"vfs/snapshots/commit",
|
|
62
|
+
"vfs/snapshots/read",
|
|
63
|
+
"vfs/workspaces/create",
|
|
64
|
+
"vfs/workspaces/read",
|
|
65
|
+
"vfs/workspaces/list",
|
|
66
|
+
"vfs/workspaces/update",
|
|
67
|
+
"vfs/workspaces/delete",
|
|
68
|
+
"mcp/servers/put",
|
|
69
|
+
"mcp/servers/auth/discover",
|
|
70
|
+
"mcp/servers/tools/discover",
|
|
71
|
+
"mcp/servers/read",
|
|
72
|
+
"mcp/servers/list",
|
|
73
|
+
"mcp/servers/delete",
|
|
74
|
+
"auth/grants/import",
|
|
75
|
+
"auth/grants/lease",
|
|
76
|
+
"auth/grants/read",
|
|
77
|
+
"auth/grants/list",
|
|
78
|
+
"auth/grants/revoke",
|
|
79
|
+
"auth/clients/create",
|
|
80
|
+
"auth/clients/read",
|
|
81
|
+
"auth/clients/list",
|
|
82
|
+
"auth/clients/delete",
|
|
83
|
+
"auth/flows/start",
|
|
84
|
+
"auth/flows/read",
|
|
85
|
+
"auth/providers/create",
|
|
86
|
+
"auth/providers/read",
|
|
87
|
+
"auth/providers/list",
|
|
88
|
+
"auth/providers/delete",
|
|
89
|
+
"auth/github/installations/list",
|
|
90
|
+
"auth/github/installations/grant",
|
|
91
|
+
"bots/create",
|
|
92
|
+
"bots/put",
|
|
93
|
+
"bots/read",
|
|
94
|
+
"bots/list",
|
|
95
|
+
"bots/close",
|
|
96
|
+
"bots/delete",
|
|
97
|
+
"bots/state/read",
|
|
98
|
+
"bots/sessions/rotate",
|
|
99
|
+
"bots/triggers/put",
|
|
100
|
+
"bots/triggers/read",
|
|
101
|
+
"bots/triggers/list",
|
|
102
|
+
"bots/triggers/delete",
|
|
103
|
+
"bots/events/admit",
|
|
104
|
+
"bots/events/replay",
|
|
105
|
+
"bots/events/list",
|
|
106
|
+
"bots/events/read",
|
|
107
|
+
"bots/filters/test",
|
|
108
|
+
"channels/accounts/create",
|
|
109
|
+
"channels/accounts/put",
|
|
110
|
+
"channels/accounts/read",
|
|
111
|
+
"channels/accounts/list",
|
|
112
|
+
"channels/accounts/delete",
|
|
113
|
+
"channels/inbound/admit",
|
|
114
|
+
"channels/pairings/list",
|
|
115
|
+
"channels/pairings/delete",
|
|
116
|
+
"channels/conversations/read",
|
|
117
|
+
"operator/universes/create",
|
|
118
|
+
"operator/universes/list",
|
|
119
|
+
"operator/universes/read",
|
|
120
|
+
"operator/universes/delete",
|
|
121
|
+
"operator/api-keys/create",
|
|
122
|
+
"operator/api-keys/list",
|
|
123
|
+
"operator/api-keys/revoke",
|
|
124
|
+
"operator/environment-providers/put",
|
|
125
|
+
"operator/environment-providers/list",
|
|
126
|
+
"operator/environment-providers/read",
|
|
127
|
+
"operator/environment-providers/delete",
|
|
128
|
+
"operator/environment-providers/bindings/put",
|
|
129
|
+
"operator/environment-providers/bindings/delete",
|
|
130
|
+
"operator/environments/adopt",
|
|
131
|
+
"operator/channels/accounts/list",
|
|
132
|
+
] as const;
|
|
133
|
+
|
|
134
|
+
export const METHOD_INFO = {
|
|
135
|
+
"initialize": {
|
|
136
|
+
scope: "universe",
|
|
137
|
+
summary: "Inspect the Lightspeed protocol",
|
|
138
|
+
description: "Returns protocol version, server identity, and supported capabilities without changing universe state.",
|
|
139
|
+
},
|
|
140
|
+
"session/start": {
|
|
141
|
+
scope: "universe",
|
|
142
|
+
summary: "Create or reopen a session",
|
|
143
|
+
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.",
|
|
144
|
+
},
|
|
145
|
+
"session/managed/start": {
|
|
146
|
+
scope: "universe",
|
|
147
|
+
summary: "Create or reopen a managed session",
|
|
148
|
+
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.",
|
|
149
|
+
},
|
|
150
|
+
"session/read": {
|
|
151
|
+
scope: "universe",
|
|
152
|
+
summary: "Read a session",
|
|
153
|
+
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.",
|
|
154
|
+
},
|
|
155
|
+
"session/list": {
|
|
156
|
+
scope: "universe",
|
|
157
|
+
summary: "List sessions",
|
|
158
|
+
description: "Returns a cursor-paginated summary list ordered by most recent update. Pages may shift while sessions are changing.",
|
|
159
|
+
},
|
|
160
|
+
"session/config/put": {
|
|
161
|
+
scope: "universe",
|
|
162
|
+
summary: "Replace session configuration",
|
|
163
|
+
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.",
|
|
164
|
+
},
|
|
165
|
+
"session/rename": {
|
|
166
|
+
scope: "universe",
|
|
167
|
+
summary: "Rename a session",
|
|
168
|
+
description: "Sets the display name, or clears it when displayName is omitted.",
|
|
169
|
+
},
|
|
170
|
+
"session/close": {
|
|
171
|
+
scope: "universe",
|
|
172
|
+
summary: "Close a session",
|
|
173
|
+
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.",
|
|
174
|
+
},
|
|
175
|
+
"session/delete": {
|
|
176
|
+
scope: "universe",
|
|
177
|
+
summary: "Delete a closed session",
|
|
178
|
+
description: "Permanently removes session storage after the session has been closed; close active/open sessions first.",
|
|
179
|
+
},
|
|
180
|
+
"session/events/read": {
|
|
181
|
+
scope: "universe",
|
|
182
|
+
summary: "Read the session event stream",
|
|
183
|
+
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.",
|
|
184
|
+
},
|
|
185
|
+
"session/context/append": {
|
|
186
|
+
scope: "universe",
|
|
187
|
+
summary: "Append keyed session context",
|
|
188
|
+
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.",
|
|
189
|
+
},
|
|
190
|
+
"session/context/remove": {
|
|
191
|
+
scope: "universe",
|
|
192
|
+
summary: "Remove keyed session context",
|
|
193
|
+
description: "Removes active entries by stable key with per-key results. Missing keys are idempotent no-ops; runtime-reserved run keys cannot be removed.",
|
|
194
|
+
},
|
|
195
|
+
"session/context/compact": {
|
|
196
|
+
scope: "universe",
|
|
197
|
+
summary: "Compact session context",
|
|
198
|
+
description: "Runs the configured compaction policy on an open idle session and waits for the resulting context revision.",
|
|
199
|
+
},
|
|
200
|
+
"session/runs/start": {
|
|
201
|
+
scope: "universe",
|
|
202
|
+
summary: "Start an agent run",
|
|
203
|
+
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.",
|
|
204
|
+
},
|
|
205
|
+
"session/runs/list": {
|
|
206
|
+
scope: "universe",
|
|
207
|
+
summary: "List session runs",
|
|
208
|
+
description: "Returns a newest-first keyset page of bounded run summaries projected from current reducer state.",
|
|
209
|
+
},
|
|
210
|
+
"session/runs/read": {
|
|
211
|
+
scope: "universe",
|
|
212
|
+
summary: "Read one session run",
|
|
213
|
+
description: "Reads and projects one run from its bounded event interval, paged by event sequence.",
|
|
214
|
+
},
|
|
215
|
+
"session/runs/cancel": {
|
|
216
|
+
scope: "universe",
|
|
217
|
+
summary: "Cancel a run",
|
|
218
|
+
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.",
|
|
219
|
+
},
|
|
220
|
+
"session/runs/approvals/decide": {
|
|
221
|
+
scope: "universe",
|
|
222
|
+
summary: "Decide pending run approvals",
|
|
223
|
+
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.",
|
|
224
|
+
},
|
|
225
|
+
"session/runs/steer": {
|
|
226
|
+
scope: "universe",
|
|
227
|
+
summary: "Steer the active run",
|
|
228
|
+
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.",
|
|
229
|
+
},
|
|
230
|
+
"session/skills/list": {
|
|
231
|
+
scope: "universe",
|
|
232
|
+
summary: "List available session skills",
|
|
233
|
+
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.",
|
|
234
|
+
},
|
|
235
|
+
"session/skills/active": {
|
|
236
|
+
scope: "universe",
|
|
237
|
+
summary: "List active session skills",
|
|
238
|
+
description: "Returns skill instructions currently injected into context, including activation scope and source.",
|
|
239
|
+
},
|
|
240
|
+
"session/skills/activate": {
|
|
241
|
+
scope: "universe",
|
|
242
|
+
summary: "Activate a session skill",
|
|
243
|
+
description: "Loads an enabled skill from the current catalog and injects its instructions into an open idle session. Run-scoped activation is the default.",
|
|
244
|
+
},
|
|
245
|
+
"session/skills/deactivate": {
|
|
246
|
+
scope: "universe",
|
|
247
|
+
summary: "Deactivate a session skill",
|
|
248
|
+
description: "Removes an active skill's injected context from an open idle session; the skill must currently be active.",
|
|
249
|
+
},
|
|
250
|
+
"session/profiles/apply": {
|
|
251
|
+
scope: "universe",
|
|
252
|
+
summary: "Apply a profile to a session",
|
|
253
|
+
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.",
|
|
254
|
+
},
|
|
255
|
+
"session/environments/activate": {
|
|
256
|
+
scope: "universe",
|
|
257
|
+
summary: "Activate a session environment",
|
|
258
|
+
description: "Selects an allowed, live universe environment for environment-targeted tools while the session is idle.",
|
|
259
|
+
},
|
|
260
|
+
"session/environments/deactivate": {
|
|
261
|
+
scope: "universe",
|
|
262
|
+
summary: "Deactivate the session environment",
|
|
263
|
+
description: "Clears active environment selection without changing or closing the universe environment.",
|
|
264
|
+
},
|
|
265
|
+
"environments/credentials/bind": {
|
|
266
|
+
scope: "universe",
|
|
267
|
+
summary: "Bind a credential into an environment",
|
|
268
|
+
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.",
|
|
269
|
+
},
|
|
270
|
+
"environments/credentials/list": {
|
|
271
|
+
scope: "universe",
|
|
272
|
+
summary: "List environment credential bindings",
|
|
273
|
+
description: "Returns variable names and credential source handles for a universe environment; resolved secret values are never returned.",
|
|
274
|
+
},
|
|
275
|
+
"environments/credentials/unbind": {
|
|
276
|
+
scope: "universe",
|
|
277
|
+
summary: "Unbind an environment credential",
|
|
278
|
+
description: "Removes one variable-to-credential mapping without deleting the underlying grant, provider credential, or secret.",
|
|
279
|
+
},
|
|
280
|
+
"environments/create": {
|
|
281
|
+
scope: "universe",
|
|
282
|
+
summary: "Create an environment",
|
|
283
|
+
description: "Records an idempotent provisioning intent against an enabled universe binding. The provider validates its provider-wide template and provisions through its backend asynchronously.",
|
|
284
|
+
},
|
|
285
|
+
"environments/read": {
|
|
286
|
+
scope: "universe",
|
|
287
|
+
summary: "Read an environment",
|
|
288
|
+
description: "Returns the durable universe resource, source binding, logical lifecycle state, and minimal current-incarnation identity.",
|
|
289
|
+
},
|
|
290
|
+
"environments/list": {
|
|
291
|
+
scope: "universe",
|
|
292
|
+
summary: "List environments",
|
|
293
|
+
description: "Lists universe-owned environment resources, optionally filtered by provider, binding, or logical lifecycle state.",
|
|
294
|
+
},
|
|
295
|
+
"environments/close": {
|
|
296
|
+
scope: "universe",
|
|
297
|
+
summary: "Close an environment",
|
|
298
|
+
description: "Records an asynchronous idempotent close intent. Provider cleanup is resumed by lifecycle reconciliation; quota is released only after Closed.",
|
|
299
|
+
},
|
|
300
|
+
"environments/external/create": {
|
|
301
|
+
scope: "universe",
|
|
302
|
+
summary: "Register an external environment",
|
|
303
|
+
description: "Creates an environment backed by a Lightspeed-reachable envd WebSocket endpoint. Reachability is checked on demand.",
|
|
304
|
+
},
|
|
305
|
+
"environments/ingress/put": {
|
|
306
|
+
scope: "universe",
|
|
307
|
+
summary: "Configure environment public ingress",
|
|
308
|
+
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.",
|
|
309
|
+
},
|
|
310
|
+
"environments/power/put": {
|
|
311
|
+
scope: "universe",
|
|
312
|
+
summary: "Set environment power intent",
|
|
313
|
+
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.",
|
|
314
|
+
},
|
|
315
|
+
"environments/idle-policy/put": {
|
|
316
|
+
scope: "universe",
|
|
317
|
+
summary: "Set environment idle policy",
|
|
318
|
+
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.",
|
|
319
|
+
},
|
|
320
|
+
"environments/provider-bindings/list": {
|
|
321
|
+
scope: "universe",
|
|
322
|
+
summary: "List environment provider bindings",
|
|
323
|
+
description: "Lists this universe's revisioned routing and admission bindings to deployment-scoped physical providers.",
|
|
324
|
+
},
|
|
325
|
+
"environments/provider-bindings/read": {
|
|
326
|
+
scope: "universe",
|
|
327
|
+
summary: "Read an environment provider binding",
|
|
328
|
+
description: "Returns one universe routing and admission binding. Provider-wide templates and physical resource, network, and ingress policy remain provider-owned.",
|
|
329
|
+
},
|
|
330
|
+
"environments/templates/list": {
|
|
331
|
+
scope: "universe",
|
|
332
|
+
summary: "List environment templates",
|
|
333
|
+
description: "Reads immutable templates directly from the selected bound provider controller.",
|
|
334
|
+
},
|
|
335
|
+
"environments/templates/read": {
|
|
336
|
+
scope: "universe",
|
|
337
|
+
summary: "Read an environment template",
|
|
338
|
+
description: "Returns one immutable template version from the selected bound provider controller.",
|
|
339
|
+
},
|
|
340
|
+
"environments/jobs/create": {
|
|
341
|
+
scope: "universe",
|
|
342
|
+
summary: "Create environment jobs",
|
|
343
|
+
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.",
|
|
344
|
+
},
|
|
345
|
+
"environments/jobs/read": {
|
|
346
|
+
scope: "universe",
|
|
347
|
+
summary: "Read environment jobs",
|
|
348
|
+
description: "Reads selected job handles with bounded output, optional sequence continuation, and optional artifacts; use returned status/sequence data for polling.",
|
|
349
|
+
},
|
|
350
|
+
"environments/jobs/cancel": {
|
|
351
|
+
scope: "universe",
|
|
352
|
+
summary: "Cancel environment jobs",
|
|
353
|
+
description: "Requests cancellation for selected jobs, optionally including dependents. Force is provider-specific escalation; inspect each per-job result.",
|
|
354
|
+
},
|
|
355
|
+
"models/list": {
|
|
356
|
+
scope: "universe",
|
|
357
|
+
summary: "Discover available models",
|
|
358
|
+
description: "Queries supported providers directly on every call and returns best-effort selectable routes. One provider failure does not discard successful results from others.",
|
|
359
|
+
},
|
|
360
|
+
"profiles/create": {
|
|
361
|
+
scope: "universe",
|
|
362
|
+
summary: "Create an agent profile",
|
|
363
|
+
description: "Creates a new universe-scoped reusable profile document; use profiles/put for create-or-replace revision semantics.",
|
|
364
|
+
},
|
|
365
|
+
"profiles/read": {
|
|
366
|
+
scope: "universe",
|
|
367
|
+
summary: "Read an agent profile",
|
|
368
|
+
description: "Returns the complete profile document and current revision.",
|
|
369
|
+
},
|
|
370
|
+
"profiles/list": {
|
|
371
|
+
scope: "universe",
|
|
372
|
+
summary: "List agent profiles",
|
|
373
|
+
description: "Returns lightweight summaries of universe-scoped reusable profiles.",
|
|
374
|
+
},
|
|
375
|
+
"profiles/put": {
|
|
376
|
+
scope: "universe",
|
|
377
|
+
summary: "Create or replace an agent profile",
|
|
378
|
+
description: "Stores the complete profile document. Use expectedRevision from profiles/read when replacing to prevent lost updates; absence writes unconditionally.",
|
|
379
|
+
},
|
|
380
|
+
"profiles/delete": {
|
|
381
|
+
scope: "universe",
|
|
382
|
+
summary: "Delete an agent profile",
|
|
383
|
+
description: "Deletes the catalog document; sessions previously created or configured from it retain their materialized state.",
|
|
384
|
+
},
|
|
385
|
+
"blobs/put": {
|
|
386
|
+
scope: "universe",
|
|
387
|
+
summary: "Store content-addressed blobs",
|
|
388
|
+
description: "Decodes and stores a batch of base64 payloads, returning immutable content references in request order. Re-uploading identical bytes is naturally deduplicated.",
|
|
389
|
+
},
|
|
390
|
+
"blobs/read": {
|
|
391
|
+
scope: "universe",
|
|
392
|
+
summary: "Read a content-addressed blob",
|
|
393
|
+
description: "Returns the complete immutable blob as base64; large values count against gateway and MCP response limits.",
|
|
394
|
+
},
|
|
395
|
+
"blobs/has": {
|
|
396
|
+
scope: "universe",
|
|
397
|
+
summary: "Check blob availability",
|
|
398
|
+
description: "Checks a batch of content references without returning blob bodies, preserving request order.",
|
|
399
|
+
},
|
|
400
|
+
"vfs/snapshots/commit": {
|
|
401
|
+
scope: "universe",
|
|
402
|
+
summary: "Commit a VFS snapshot",
|
|
403
|
+
description: "Validates and stores an immutable filesystem manifest. Upload referenced file blobs first; the returned snapshot ref is content-addressed.",
|
|
404
|
+
},
|
|
405
|
+
"vfs/snapshots/read": {
|
|
406
|
+
scope: "universe",
|
|
407
|
+
summary: "Read a VFS snapshot",
|
|
408
|
+
description: "Returns an immutable snapshot manifest and aggregate file/byte counts; file bodies remain separate blobs.",
|
|
409
|
+
},
|
|
410
|
+
"vfs/workspaces/create": {
|
|
411
|
+
scope: "universe",
|
|
412
|
+
summary: "Create a mutable VFS workspace",
|
|
413
|
+
description: "Creates a universe workspace at an optional seed snapshot; absence starts from a server-created empty snapshot.",
|
|
414
|
+
},
|
|
415
|
+
"vfs/workspaces/read": {
|
|
416
|
+
scope: "universe",
|
|
417
|
+
summary: "Read a VFS workspace",
|
|
418
|
+
description: "Returns workspace metadata, current head snapshot, and revision for safe updates.",
|
|
419
|
+
},
|
|
420
|
+
"vfs/workspaces/list": {
|
|
421
|
+
scope: "universe",
|
|
422
|
+
summary: "List VFS workspaces",
|
|
423
|
+
description: "Lists mutable universe workspaces with head snapshots, sizes, and revisions.",
|
|
424
|
+
},
|
|
425
|
+
"vfs/workspaces/update": {
|
|
426
|
+
scope: "universe",
|
|
427
|
+
summary: "Update a VFS workspace",
|
|
428
|
+
description: "Moves the workspace head to an existing snapshot and updates its display name. Pass expectedRevision from a read to prevent lost updates.",
|
|
429
|
+
},
|
|
430
|
+
"vfs/workspaces/delete": {
|
|
431
|
+
scope: "universe",
|
|
432
|
+
summary: "Delete a VFS workspace",
|
|
433
|
+
description: "Deletes the mutable workspace record; immutable snapshots and blobs remain content-addressed resources.",
|
|
434
|
+
},
|
|
435
|
+
"mcp/servers/put": {
|
|
436
|
+
scope: "universe",
|
|
437
|
+
summary: "Create or replace an MCP server record",
|
|
438
|
+
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.",
|
|
439
|
+
},
|
|
440
|
+
"mcp/servers/auth/discover": {
|
|
441
|
+
scope: "universe",
|
|
442
|
+
summary: "Discover MCP server authentication",
|
|
443
|
+
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.",
|
|
444
|
+
},
|
|
445
|
+
"mcp/servers/tools/discover": {
|
|
446
|
+
scope: "universe",
|
|
447
|
+
summary: "Discover MCP server tools",
|
|
448
|
+
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.",
|
|
449
|
+
},
|
|
450
|
+
"mcp/servers/read": {
|
|
451
|
+
scope: "universe",
|
|
452
|
+
summary: "Read an MCP server record",
|
|
453
|
+
description: "Returns one catalog document with defaults, auth policy, non-secret grant binding, status, and revision; no credential value is exposed.",
|
|
454
|
+
},
|
|
455
|
+
"mcp/servers/list": {
|
|
456
|
+
scope: "universe",
|
|
457
|
+
summary: "List MCP server records",
|
|
458
|
+
description: "Lists universe catalog entries, optionally filtered by lifecycle/configuration status.",
|
|
459
|
+
},
|
|
460
|
+
"mcp/servers/delete": {
|
|
461
|
+
scope: "universe",
|
|
462
|
+
summary: "Delete an MCP server record",
|
|
463
|
+
description: "Deletes the catalog document. Existing session configs that reference it are not silently rewritten and may need explicit reconfiguration.",
|
|
464
|
+
},
|
|
465
|
+
"auth/grants/import": {
|
|
466
|
+
scope: "universe",
|
|
467
|
+
summary: "Import a static bearer grant",
|
|
468
|
+
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.",
|
|
469
|
+
},
|
|
470
|
+
"auth/grants/lease": {
|
|
471
|
+
scope: "service",
|
|
472
|
+
summary: "Lease a retrievable authentication grant",
|
|
473
|
+
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.",
|
|
474
|
+
},
|
|
475
|
+
"auth/grants/read": {
|
|
476
|
+
scope: "universe",
|
|
477
|
+
summary: "Read authentication grant metadata",
|
|
478
|
+
description: "Returns principal, provider binding, scopes, audience, expiry, status, and token-presence flags; access and refresh token values are never returned.",
|
|
479
|
+
},
|
|
480
|
+
"auth/grants/list": {
|
|
481
|
+
scope: "universe",
|
|
482
|
+
summary: "List authentication grants",
|
|
483
|
+
description: "Lists non-secret grant metadata for the universe, optionally filtered by status.",
|
|
484
|
+
},
|
|
485
|
+
"auth/grants/revoke": {
|
|
486
|
+
scope: "universe",
|
|
487
|
+
summary: "Revoke an authentication grant",
|
|
488
|
+
description: "Marks the grant unusable by token consumers while retaining non-secret audit metadata.",
|
|
489
|
+
},
|
|
490
|
+
"auth/clients/create": {
|
|
491
|
+
scope: "universe",
|
|
492
|
+
summary: "Register an OAuth client",
|
|
493
|
+
description: "Stores provider endpoints and client identity; an optional plaintext client secret is encrypted and represented thereafter only by hasClientSecret.",
|
|
494
|
+
},
|
|
495
|
+
"auth/clients/read": {
|
|
496
|
+
scope: "universe",
|
|
497
|
+
summary: "Read OAuth client metadata",
|
|
498
|
+
description: "Returns endpoints, public client identity, defaults, and secret-presence state; the client secret is never returned.",
|
|
499
|
+
},
|
|
500
|
+
"auth/clients/list": {
|
|
501
|
+
scope: "universe",
|
|
502
|
+
summary: "List OAuth clients",
|
|
503
|
+
description: "Lists non-secret OAuth client registrations in the universe.",
|
|
504
|
+
},
|
|
505
|
+
"auth/clients/delete": {
|
|
506
|
+
scope: "universe",
|
|
507
|
+
summary: "Delete an OAuth client",
|
|
508
|
+
description: "Deletes the client registration and its stored client secret; grants already created from it remain separate records.",
|
|
509
|
+
},
|
|
510
|
+
"auth/flows/start": {
|
|
511
|
+
scope: "universe",
|
|
512
|
+
summary: "Start an OAuth authorization flow",
|
|
513
|
+
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.",
|
|
514
|
+
},
|
|
515
|
+
"auth/flows/read": {
|
|
516
|
+
scope: "universe",
|
|
517
|
+
summary: "Read OAuth flow status",
|
|
518
|
+
description: "Polls a flow's pending/completed/failed/expired state and returns the resulting grant id when authorization succeeds; no token value is exposed.",
|
|
519
|
+
},
|
|
520
|
+
"auth/providers/create": {
|
|
521
|
+
scope: "universe",
|
|
522
|
+
summary: "Register an authentication provider",
|
|
523
|
+
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.",
|
|
524
|
+
},
|
|
525
|
+
"auth/providers/read": {
|
|
526
|
+
scope: "universe",
|
|
527
|
+
summary: "Read authentication provider metadata",
|
|
528
|
+
description: "Returns provider kind, non-secret configuration, credential-presence state, and status; stored credentials are never returned.",
|
|
529
|
+
},
|
|
530
|
+
"auth/providers/list": {
|
|
531
|
+
scope: "universe",
|
|
532
|
+
summary: "List authentication providers",
|
|
533
|
+
description: "Lists non-secret model/GitHub provider registrations for the universe.",
|
|
534
|
+
},
|
|
535
|
+
"auth/providers/delete": {
|
|
536
|
+
scope: "universe",
|
|
537
|
+
summary: "Delete an authentication provider",
|
|
538
|
+
description: "Deletes the provider registration and its directly stored credential; separately stored grants remain independent records.",
|
|
539
|
+
},
|
|
540
|
+
"auth/github/installations/list": {
|
|
541
|
+
scope: "universe",
|
|
542
|
+
summary: "List GitHub App installations",
|
|
543
|
+
description: "Uses the registered GitHub App provider credential to query accessible installations and returns account/permission metadata without tokens.",
|
|
544
|
+
},
|
|
545
|
+
"auth/github/installations/grant": {
|
|
546
|
+
scope: "universe",
|
|
547
|
+
summary: "Grant access to a GitHub App installation",
|
|
548
|
+
description: "Creates or refreshes a universe auth grant for one accessible installation. The installation token is brokered internally and never returned.",
|
|
549
|
+
},
|
|
550
|
+
"bots/create": {
|
|
551
|
+
scope: "universe",
|
|
552
|
+
summary: "Create a bot",
|
|
553
|
+
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.",
|
|
554
|
+
},
|
|
555
|
+
"bots/put": {
|
|
556
|
+
scope: "universe",
|
|
557
|
+
summary: "Create or replace a bot document",
|
|
558
|
+
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.",
|
|
559
|
+
},
|
|
560
|
+
"bots/read": {
|
|
561
|
+
scope: "universe",
|
|
562
|
+
summary: "Read a bot",
|
|
563
|
+
description: "Returns the bot record, its current revision, and lifecycle columns.",
|
|
564
|
+
},
|
|
565
|
+
"bots/list": {
|
|
566
|
+
scope: "universe",
|
|
567
|
+
summary: "List bots",
|
|
568
|
+
description: "Returns the roster: every bot with its trigger count, pending event count, and latest event.",
|
|
569
|
+
},
|
|
570
|
+
"bots/close": {
|
|
571
|
+
scope: "universe",
|
|
572
|
+
summary: "Close a bot",
|
|
573
|
+
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.",
|
|
574
|
+
},
|
|
575
|
+
"bots/delete": {
|
|
576
|
+
scope: "universe",
|
|
577
|
+
summary: "Delete a bot",
|
|
578
|
+
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.",
|
|
579
|
+
},
|
|
580
|
+
"bots/state/read": {
|
|
581
|
+
scope: "universe",
|
|
582
|
+
summary: "Read bot controller state",
|
|
583
|
+
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.",
|
|
584
|
+
},
|
|
585
|
+
"bots/sessions/rotate": {
|
|
586
|
+
scope: "universe",
|
|
587
|
+
summary: "Rotate a bot session",
|
|
588
|
+
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.",
|
|
589
|
+
},
|
|
590
|
+
"bots/triggers/put": {
|
|
591
|
+
scope: "universe",
|
|
592
|
+
summary: "Create or replace a trigger",
|
|
593
|
+
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.",
|
|
594
|
+
},
|
|
595
|
+
"bots/triggers/read": {
|
|
596
|
+
scope: "universe",
|
|
597
|
+
summary: "Read a trigger",
|
|
598
|
+
description: "Returns one trigger with its incidents and cursor; the ingest path and pairing code are shown only to managing principals.",
|
|
599
|
+
},
|
|
600
|
+
"bots/triggers/list": {
|
|
601
|
+
scope: "universe",
|
|
602
|
+
summary: "List a bot's triggers",
|
|
603
|
+
description: "Returns every trigger of the bot ordered by id, secrets redacted for non-managing principals.",
|
|
604
|
+
},
|
|
605
|
+
"bots/triggers/delete": {
|
|
606
|
+
scope: "universe",
|
|
607
|
+
summary: "Delete a trigger",
|
|
608
|
+
description: "Drops the trigger's Temporal Schedule and pairings, then the record; stored events keep their history.",
|
|
609
|
+
},
|
|
610
|
+
"bots/events/admit": {
|
|
611
|
+
scope: "universe",
|
|
612
|
+
summary: "Admit an event manually",
|
|
613
|
+
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.",
|
|
614
|
+
},
|
|
615
|
+
"bots/events/replay": {
|
|
616
|
+
scope: "universe",
|
|
617
|
+
summary: "Replay a stored event",
|
|
618
|
+
description: "Re-admits the stored envelope as a fresh event with the original routing; the replay never coalesces.",
|
|
619
|
+
},
|
|
620
|
+
"bots/events/list": {
|
|
621
|
+
scope: "universe",
|
|
622
|
+
summary: "List a bot's events",
|
|
623
|
+
description: "Cursor-paginated event log, newest first, with outcomes; payload documents stay in the CAS.",
|
|
624
|
+
},
|
|
625
|
+
"bots/events/read": {
|
|
626
|
+
scope: "universe",
|
|
627
|
+
summary: "Read an event by number",
|
|
628
|
+
description: "Returns the event row and its full stored envelope document.",
|
|
629
|
+
},
|
|
630
|
+
"bots/filters/test": {
|
|
631
|
+
scope: "universe",
|
|
632
|
+
summary: "Test a CEL filter",
|
|
633
|
+
description: "Evaluates a filter against one payload or a sample of recent stored events, reporting matches and evaluation errors without changing anything.",
|
|
634
|
+
},
|
|
635
|
+
"channels/accounts/create": {
|
|
636
|
+
scope: "universe",
|
|
637
|
+
summary: "Create a channel account",
|
|
638
|
+
description: "Registers a provider account (Telegram, WhatsApp) for this universe. The credential is a retrievable grant reference; no token is accepted here.",
|
|
639
|
+
},
|
|
640
|
+
"channels/accounts/put": {
|
|
641
|
+
scope: "universe",
|
|
642
|
+
summary: "Create or replace a channel account",
|
|
643
|
+
description: "Replaces the account document whole; pass expectedRevision when replacing. The connector host picks the change up on its next discovery pass.",
|
|
644
|
+
},
|
|
645
|
+
"channels/accounts/read": {
|
|
646
|
+
scope: "universe",
|
|
647
|
+
summary: "Read a channel account",
|
|
648
|
+
description: "Returns the account document and revision.",
|
|
649
|
+
},
|
|
650
|
+
"channels/accounts/list": {
|
|
651
|
+
scope: "universe",
|
|
652
|
+
summary: "List channel accounts",
|
|
653
|
+
description: "Lists this universe's provider accounts, optionally by provider.",
|
|
654
|
+
},
|
|
655
|
+
"channels/accounts/delete": {
|
|
656
|
+
scope: "universe",
|
|
657
|
+
summary: "Delete a channel account",
|
|
658
|
+
description: "Removes the account and its pairings; chat triggers that reference it stop serving conversations.",
|
|
659
|
+
},
|
|
660
|
+
"channels/inbound/admit": {
|
|
661
|
+
scope: "service",
|
|
662
|
+
summary: "Admit a provider message",
|
|
663
|
+
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.",
|
|
664
|
+
},
|
|
665
|
+
"channels/pairings/list": {
|
|
666
|
+
scope: "universe",
|
|
667
|
+
summary: "List chat pairings",
|
|
668
|
+
description: "Lists conversations paired to chat triggers, optionally by account or bot.",
|
|
669
|
+
},
|
|
670
|
+
"channels/pairings/delete": {
|
|
671
|
+
scope: "universe",
|
|
672
|
+
summary: "Unpair a conversation",
|
|
673
|
+
description: "Removes one pairing; the conversation must present the pairing code again to reconnect.",
|
|
674
|
+
},
|
|
675
|
+
"channels/conversations/read": {
|
|
676
|
+
scope: "universe",
|
|
677
|
+
summary: "Read a conversation snapshot",
|
|
678
|
+
description: "Queries the conversation workflow's live state for one chat, for debugging; absent when no workflow exists yet.",
|
|
679
|
+
},
|
|
680
|
+
"operator/universes/create": {
|
|
681
|
+
scope: "operator",
|
|
682
|
+
summary: "Create a universe",
|
|
683
|
+
description: "Creates the deployment tenant boundary for an explicit UUID. The operation is idempotent and reports whether a new universe was created.",
|
|
684
|
+
},
|
|
685
|
+
"operator/universes/list": {
|
|
686
|
+
scope: "operator",
|
|
687
|
+
summary: "List universes",
|
|
688
|
+
description: "Returns deployment-wide universe summaries with approximate live aggregate counts and last session activity.",
|
|
689
|
+
},
|
|
690
|
+
"operator/universes/read": {
|
|
691
|
+
scope: "operator",
|
|
692
|
+
summary: "Read a universe",
|
|
693
|
+
description: "Returns one deployment tenant summary with aggregate session, workspace, profile, and blob usage.",
|
|
694
|
+
},
|
|
695
|
+
"operator/universes/delete": {
|
|
696
|
+
scope: "operator",
|
|
697
|
+
summary: "Purge a universe",
|
|
698
|
+
description: "Permanently terminates live session workflows, deletes external blob objects, and cascades universe data. The purge is resumable/idempotent after partial failure.",
|
|
699
|
+
},
|
|
700
|
+
"operator/api-keys/create": {
|
|
701
|
+
scope: "operator",
|
|
702
|
+
summary: "Create a universe API key",
|
|
703
|
+
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.",
|
|
704
|
+
},
|
|
705
|
+
"operator/api-keys/list": {
|
|
706
|
+
scope: "operator",
|
|
707
|
+
summary: "List universe API keys",
|
|
708
|
+
description: "Returns only non-secret key metadata for the requested universe, including revocation and last-use timestamps. Plaintext secrets are never stored or returned.",
|
|
709
|
+
},
|
|
710
|
+
"operator/api-keys/revoke": {
|
|
711
|
+
scope: "operator",
|
|
712
|
+
summary: "Revoke a universe API key",
|
|
713
|
+
description: "Immediately and idempotently revokes the matching key only when it belongs to the requested universe. Unknown and foreign-universe prefixes return not found.",
|
|
714
|
+
},
|
|
715
|
+
"operator/environment-providers/put": {
|
|
716
|
+
scope: "operator",
|
|
717
|
+
summary: "Put an environment provider",
|
|
718
|
+
description: "Registers or replaces one deployment provider and its controller connection. The provider does not call this API or require access to Lightspeed.",
|
|
719
|
+
},
|
|
720
|
+
"operator/environment-providers/list": {
|
|
721
|
+
scope: "operator",
|
|
722
|
+
summary: "List environment providers",
|
|
723
|
+
description: "Returns every operator-registered deployment provider and its controller connection.",
|
|
724
|
+
},
|
|
725
|
+
"operator/environment-providers/read": {
|
|
726
|
+
scope: "operator",
|
|
727
|
+
summary: "Read an environment provider",
|
|
728
|
+
description: "Returns one operator-registered deployment provider and its controller connection.",
|
|
729
|
+
},
|
|
730
|
+
"operator/environment-providers/delete": {
|
|
731
|
+
scope: "operator",
|
|
732
|
+
summary: "Delete an environment provider",
|
|
733
|
+
description: "Deletes a deployment provider only when no universe binding references it.",
|
|
734
|
+
},
|
|
735
|
+
"operator/environment-providers/bindings/put": {
|
|
736
|
+
scope: "operator",
|
|
737
|
+
summary: "Put an environment provider binding",
|
|
738
|
+
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.",
|
|
739
|
+
},
|
|
740
|
+
"operator/environment-providers/bindings/delete": {
|
|
741
|
+
scope: "operator",
|
|
742
|
+
summary: "Delete an environment provider binding",
|
|
743
|
+
description: "Deletes a universe provider binding only after every referencing environment has reached Closed.",
|
|
744
|
+
},
|
|
745
|
+
"operator/environments/adopt": {
|
|
746
|
+
scope: "operator",
|
|
747
|
+
summary: "Adopt a provider environment",
|
|
748
|
+
description: "Creates a universe environment by transferring an existing provider target into Lightspeed's managed lifecycle. The caller must explicitly accept ownership transfer.",
|
|
749
|
+
},
|
|
750
|
+
"operator/channels/accounts/list": {
|
|
751
|
+
scope: "operator",
|
|
752
|
+
summary: "List channel accounts across universes",
|
|
753
|
+
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.",
|
|
754
|
+
},
|
|
755
|
+
} as const;
|
|
756
|
+
|
|
757
|
+
export const NOTIFICATIONS = [
|
|
758
|
+
"session/started",
|
|
759
|
+
"session/status/changed",
|
|
760
|
+
"session/event",
|
|
761
|
+
"session/runs/started",
|
|
762
|
+
"session/runs/completed",
|
|
763
|
+
"error",
|
|
764
|
+
] as const;
|
|
765
|
+
|
|
766
|
+
export type Method = (typeof METHODS)[number];
|
|
767
|
+
export type NotificationMethod = (typeof NOTIFICATIONS)[number];
|
|
768
|
+
|
|
769
|
+
export interface MethodMap {
|
|
770
|
+
/**
|
|
771
|
+
* Inspect the Lightspeed protocol
|
|
772
|
+
*
|
|
773
|
+
* Returns protocol version, server identity, and supported capabilities without changing universe state.
|
|
774
|
+
*/
|
|
775
|
+
"initialize": {
|
|
776
|
+
params: Api.InitializeParams;
|
|
777
|
+
result: Api.AgentApiOutcomeOfInitializeResponse;
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* Create or reopen a session
|
|
781
|
+
*
|
|
782
|
+
* 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.
|
|
783
|
+
*/
|
|
784
|
+
"session/start": {
|
|
785
|
+
params: Api.SessionStartParams;
|
|
786
|
+
result: Api.AgentApiOutcomeOfSessionStartResponse;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Create or reopen a managed session
|
|
790
|
+
*
|
|
791
|
+
* 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.
|
|
792
|
+
*/
|
|
793
|
+
"session/managed/start": {
|
|
794
|
+
params: Api.ManagedSessionStartParams;
|
|
795
|
+
result: Api.AgentApiOutcomeOfSessionStartResponse;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Read a session
|
|
799
|
+
*
|
|
800
|
+
* 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.
|
|
801
|
+
*/
|
|
802
|
+
"session/read": {
|
|
803
|
+
params: Api.SessionReadParams;
|
|
804
|
+
result: Api.AgentApiOutcomeOfSessionReadResponse;
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* List sessions
|
|
808
|
+
*
|
|
809
|
+
* Returns a cursor-paginated summary list ordered by most recent update. Pages may shift while sessions are changing.
|
|
810
|
+
*/
|
|
811
|
+
"session/list": {
|
|
812
|
+
params: Api.SessionListParams;
|
|
813
|
+
result: Api.AgentApiOutcomeOfSessionListResponse;
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* Replace session configuration
|
|
817
|
+
*
|
|
818
|
+
* 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.
|
|
819
|
+
*/
|
|
820
|
+
"session/config/put": {
|
|
821
|
+
params: Api.SessionConfigPutParams;
|
|
822
|
+
result: Api.AgentApiOutcomeOfSessionConfigPutResponse;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* Rename a session
|
|
826
|
+
*
|
|
827
|
+
* Sets the display name, or clears it when displayName is omitted.
|
|
828
|
+
*/
|
|
829
|
+
"session/rename": {
|
|
830
|
+
params: Api.SessionRenameParams;
|
|
831
|
+
result: Api.AgentApiOutcomeOfSessionRenameResponse;
|
|
832
|
+
};
|
|
833
|
+
/**
|
|
834
|
+
* Close a session
|
|
835
|
+
*
|
|
836
|
+
* 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.
|
|
837
|
+
*/
|
|
838
|
+
"session/close": {
|
|
839
|
+
params: Api.SessionCloseParams;
|
|
840
|
+
result: Api.AgentApiOutcomeOfSessionCloseResponse;
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* Delete a closed session
|
|
844
|
+
*
|
|
845
|
+
* Permanently removes session storage after the session has been closed; close active/open sessions first.
|
|
846
|
+
*/
|
|
847
|
+
"session/delete": {
|
|
848
|
+
params: Api.SessionDeleteParams;
|
|
849
|
+
result: Api.AgentApiOutcomeOfSessionDeleteResponse;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Read the session event stream
|
|
853
|
+
*
|
|
854
|
+
* 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.
|
|
855
|
+
*/
|
|
856
|
+
"session/events/read": {
|
|
857
|
+
params: Api.SessionEventsReadParams;
|
|
858
|
+
result: Api.AgentApiOutcomeOfSessionEventsReadResponse;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Append keyed session context
|
|
862
|
+
*
|
|
863
|
+
* 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.
|
|
864
|
+
*/
|
|
865
|
+
"session/context/append": {
|
|
866
|
+
params: Api.ContextAppendParams;
|
|
867
|
+
result: Api.AgentApiOutcomeOfContextAppendResponse;
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* Remove keyed session context
|
|
871
|
+
*
|
|
872
|
+
* Removes active entries by stable key with per-key results. Missing keys are idempotent no-ops; runtime-reserved run keys cannot be removed.
|
|
873
|
+
*/
|
|
874
|
+
"session/context/remove": {
|
|
875
|
+
params: Api.ContextRemoveParams;
|
|
876
|
+
result: Api.AgentApiOutcomeOfContextRemoveResponse;
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* Compact session context
|
|
880
|
+
*
|
|
881
|
+
* Runs the configured compaction policy on an open idle session and waits for the resulting context revision.
|
|
882
|
+
*/
|
|
883
|
+
"session/context/compact": {
|
|
884
|
+
params: Api.ContextCompactParams;
|
|
885
|
+
result: Api.AgentApiOutcomeOfContextCompactResponse;
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Start an agent run
|
|
889
|
+
*
|
|
890
|
+
* 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.
|
|
891
|
+
*/
|
|
892
|
+
"session/runs/start": {
|
|
893
|
+
params: Api.RunStartParams;
|
|
894
|
+
result: Api.AgentApiOutcomeOfRunStartResponse;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* List session runs
|
|
898
|
+
*
|
|
899
|
+
* Returns a newest-first keyset page of bounded run summaries projected from current reducer state.
|
|
900
|
+
*/
|
|
901
|
+
"session/runs/list": {
|
|
902
|
+
params: Api.RunListParams;
|
|
903
|
+
result: Api.AgentApiOutcomeOfRunListResponse;
|
|
904
|
+
};
|
|
905
|
+
/**
|
|
906
|
+
* Read one session run
|
|
907
|
+
*
|
|
908
|
+
* Reads and projects one run from its bounded event interval, paged by event sequence.
|
|
909
|
+
*/
|
|
910
|
+
"session/runs/read": {
|
|
911
|
+
params: Api.RunReadParams;
|
|
912
|
+
result: Api.AgentApiOutcomeOfRunReadResponse;
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* Cancel a run
|
|
916
|
+
*
|
|
917
|
+
* 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.
|
|
918
|
+
*/
|
|
919
|
+
"session/runs/cancel": {
|
|
920
|
+
params: Api.RunCancelParams;
|
|
921
|
+
result: Api.AgentApiOutcomeOfRunCancelResponse;
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* Decide pending run approvals
|
|
925
|
+
*
|
|
926
|
+
* 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.
|
|
927
|
+
*/
|
|
928
|
+
"session/runs/approvals/decide": {
|
|
929
|
+
params: Api.RunApprovalsDecideParams;
|
|
930
|
+
result: Api.AgentApiOutcomeOfRunApprovalsDecideResponse;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* Steer the active run
|
|
934
|
+
*
|
|
935
|
+
* 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.
|
|
936
|
+
*/
|
|
937
|
+
"session/runs/steer": {
|
|
938
|
+
params: Api.RunSteerParams;
|
|
939
|
+
result: Api.AgentApiOutcomeOfRunSteerResponse;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* List available session skills
|
|
943
|
+
*
|
|
944
|
+
* Refreshes the session's configured VFS skill catalog and reports which discovered skills are enabled and active. An absent catalog yields an empty result.
|
|
945
|
+
*/
|
|
946
|
+
"session/skills/list": {
|
|
947
|
+
params: Api.SkillListParams;
|
|
948
|
+
result: Api.AgentApiOutcomeOfSkillListResponse;
|
|
949
|
+
};
|
|
950
|
+
/**
|
|
951
|
+
* List active session skills
|
|
952
|
+
*
|
|
953
|
+
* Returns skill instructions currently injected into context, including activation scope and source.
|
|
954
|
+
*/
|
|
955
|
+
"session/skills/active": {
|
|
956
|
+
params: Api.SkillActiveParams;
|
|
957
|
+
result: Api.AgentApiOutcomeOfSkillActiveResponse;
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* Activate a session skill
|
|
961
|
+
*
|
|
962
|
+
* Loads an enabled skill from the current catalog and injects its instructions into an open idle session. Run-scoped activation is the default.
|
|
963
|
+
*/
|
|
964
|
+
"session/skills/activate": {
|
|
965
|
+
params: Api.SkillActivateParams;
|
|
966
|
+
result: Api.AgentApiOutcomeOfSkillActivateResponse;
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* Deactivate a session skill
|
|
970
|
+
*
|
|
971
|
+
* Removes an active skill's injected context from an open idle session; the skill must currently be active.
|
|
972
|
+
*/
|
|
973
|
+
"session/skills/deactivate": {
|
|
974
|
+
params: Api.SkillDeactivateParams;
|
|
975
|
+
result: Api.AgentApiOutcomeOfSkillDeactivateResponse;
|
|
976
|
+
};
|
|
977
|
+
/**
|
|
978
|
+
* Apply a profile to a session
|
|
979
|
+
*
|
|
980
|
+
* 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.
|
|
981
|
+
*/
|
|
982
|
+
"session/profiles/apply": {
|
|
983
|
+
params: Api.ProfileApplyParams;
|
|
984
|
+
result: Api.AgentApiOutcomeOfProfileApplyResponse;
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
* Activate a session environment
|
|
988
|
+
*
|
|
989
|
+
* Selects an allowed, live universe environment for environment-targeted tools while the session is idle.
|
|
990
|
+
*/
|
|
991
|
+
"session/environments/activate": {
|
|
992
|
+
params: Api.SessionEnvironmentActivateParams;
|
|
993
|
+
result: Api.AgentApiOutcomeOfSessionEnvironmentActivateResponse;
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* Deactivate the session environment
|
|
997
|
+
*
|
|
998
|
+
* Clears active environment selection without changing or closing the universe environment.
|
|
999
|
+
*/
|
|
1000
|
+
"session/environments/deactivate": {
|
|
1001
|
+
params: Api.SessionEnvironmentDeactivateParams;
|
|
1002
|
+
result: Api.AgentApiOutcomeOfSessionEnvironmentDeactivateResponse;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Bind a credential into an environment
|
|
1006
|
+
*
|
|
1007
|
+
* 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.
|
|
1008
|
+
*/
|
|
1009
|
+
"environments/credentials/bind": {
|
|
1010
|
+
params: Api.EnvironmentCredentialBindParams;
|
|
1011
|
+
result: Api.AgentApiOutcomeOfEnvironmentCredentialBindResponse;
|
|
1012
|
+
};
|
|
1013
|
+
/**
|
|
1014
|
+
* List environment credential bindings
|
|
1015
|
+
*
|
|
1016
|
+
* Returns variable names and credential source handles for a universe environment; resolved secret values are never returned.
|
|
1017
|
+
*/
|
|
1018
|
+
"environments/credentials/list": {
|
|
1019
|
+
params: Api.EnvironmentCredentialListParams;
|
|
1020
|
+
result: Api.AgentApiOutcomeOfEnvironmentCredentialListResponse;
|
|
1021
|
+
};
|
|
1022
|
+
/**
|
|
1023
|
+
* Unbind an environment credential
|
|
1024
|
+
*
|
|
1025
|
+
* Removes one variable-to-credential mapping without deleting the underlying grant, provider credential, or secret.
|
|
1026
|
+
*/
|
|
1027
|
+
"environments/credentials/unbind": {
|
|
1028
|
+
params: Api.EnvironmentCredentialUnbindParams;
|
|
1029
|
+
result: Api.AgentApiOutcomeOfEnvironmentCredentialUnbindResponse;
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* Create an environment
|
|
1033
|
+
*
|
|
1034
|
+
* Records an idempotent provisioning intent against an enabled universe binding. The provider validates its provider-wide template and provisions through its backend asynchronously.
|
|
1035
|
+
*/
|
|
1036
|
+
"environments/create": {
|
|
1037
|
+
params: Api.EnvironmentCreateParams;
|
|
1038
|
+
result: Api.AgentApiOutcomeOfEnvironmentCreateResponse;
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Read an environment
|
|
1042
|
+
*
|
|
1043
|
+
* Returns the durable universe resource, source binding, logical lifecycle state, and minimal current-incarnation identity.
|
|
1044
|
+
*/
|
|
1045
|
+
"environments/read": {
|
|
1046
|
+
params: Api.EnvironmentReadParams;
|
|
1047
|
+
result: Api.AgentApiOutcomeOfEnvironmentReadResponse;
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* List environments
|
|
1051
|
+
*
|
|
1052
|
+
* Lists universe-owned environment resources, optionally filtered by provider, binding, or logical lifecycle state.
|
|
1053
|
+
*/
|
|
1054
|
+
"environments/list": {
|
|
1055
|
+
params: Api.EnvironmentListParams;
|
|
1056
|
+
result: Api.AgentApiOutcomeOfEnvironmentListResponse;
|
|
1057
|
+
};
|
|
1058
|
+
/**
|
|
1059
|
+
* Close an environment
|
|
1060
|
+
*
|
|
1061
|
+
* Records an asynchronous idempotent close intent. Provider cleanup is resumed by lifecycle reconciliation; quota is released only after Closed.
|
|
1062
|
+
*/
|
|
1063
|
+
"environments/close": {
|
|
1064
|
+
params: Api.EnvironmentCloseParams;
|
|
1065
|
+
result: Api.AgentApiOutcomeOfEnvironmentCloseResponse;
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* Register an external environment
|
|
1069
|
+
*
|
|
1070
|
+
* Creates an environment backed by a Lightspeed-reachable envd WebSocket endpoint. Reachability is checked on demand.
|
|
1071
|
+
*/
|
|
1072
|
+
"environments/external/create": {
|
|
1073
|
+
params: Api.EnvironmentExternalCreateParams;
|
|
1074
|
+
result: Api.AgentApiOutcomeOfEnvironmentExternalCreateResponse;
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* Configure environment public ingress
|
|
1078
|
+
*
|
|
1079
|
+
* 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.
|
|
1080
|
+
*/
|
|
1081
|
+
"environments/ingress/put": {
|
|
1082
|
+
params: Api.EnvironmentIngressPutParams;
|
|
1083
|
+
result: Api.AgentApiOutcomeOfEnvironmentIngressPutResponse;
|
|
1084
|
+
};
|
|
1085
|
+
/**
|
|
1086
|
+
* Set environment power intent
|
|
1087
|
+
*
|
|
1088
|
+
* 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.
|
|
1089
|
+
*/
|
|
1090
|
+
"environments/power/put": {
|
|
1091
|
+
params: Api.EnvironmentPowerPutParams;
|
|
1092
|
+
result: Api.AgentApiOutcomeOfEnvironmentPowerPutResponse;
|
|
1093
|
+
};
|
|
1094
|
+
/**
|
|
1095
|
+
* Set environment idle policy
|
|
1096
|
+
*
|
|
1097
|
+
* 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.
|
|
1098
|
+
*/
|
|
1099
|
+
"environments/idle-policy/put": {
|
|
1100
|
+
params: Api.EnvironmentIdlePolicyPutParams;
|
|
1101
|
+
result: Api.AgentApiOutcomeOfEnvironmentIdlePolicyPutResponse;
|
|
1102
|
+
};
|
|
1103
|
+
/**
|
|
1104
|
+
* List environment provider bindings
|
|
1105
|
+
*
|
|
1106
|
+
* Lists this universe's revisioned routing and admission bindings to deployment-scoped physical providers.
|
|
1107
|
+
*/
|
|
1108
|
+
"environments/provider-bindings/list": {
|
|
1109
|
+
params: Api.EnvironmentProviderBindingListParams;
|
|
1110
|
+
result: Api.AgentApiOutcomeOfEnvironmentProviderBindingListResponse;
|
|
1111
|
+
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Read an environment provider binding
|
|
1114
|
+
*
|
|
1115
|
+
* Returns one universe routing and admission binding. Provider-wide templates and physical resource, network, and ingress policy remain provider-owned.
|
|
1116
|
+
*/
|
|
1117
|
+
"environments/provider-bindings/read": {
|
|
1118
|
+
params: Api.EnvironmentProviderBindingReadParams;
|
|
1119
|
+
result: Api.AgentApiOutcomeOfEnvironmentProviderBindingReadResponse;
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* List environment templates
|
|
1123
|
+
*
|
|
1124
|
+
* Reads immutable templates directly from the selected bound provider controller.
|
|
1125
|
+
*/
|
|
1126
|
+
"environments/templates/list": {
|
|
1127
|
+
params: Api.EnvironmentTemplateListParams;
|
|
1128
|
+
result: Api.AgentApiOutcomeOfEnvironmentTemplateListResponse;
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Read an environment template
|
|
1132
|
+
*
|
|
1133
|
+
* Returns one immutable template version from the selected bound provider controller.
|
|
1134
|
+
*/
|
|
1135
|
+
"environments/templates/read": {
|
|
1136
|
+
params: Api.EnvironmentTemplateReadParams;
|
|
1137
|
+
result: Api.AgentApiOutcomeOfEnvironmentTemplateReadResponse;
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* Create environment jobs
|
|
1141
|
+
*
|
|
1142
|
+
* 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.
|
|
1143
|
+
*/
|
|
1144
|
+
"environments/jobs/create": {
|
|
1145
|
+
params: Api.EnvironmentJobCreateParams;
|
|
1146
|
+
result: Api.AgentApiOutcomeOfEnvironmentJobCreateResponse;
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Read environment jobs
|
|
1150
|
+
*
|
|
1151
|
+
* Reads selected job handles with bounded output, optional sequence continuation, and optional artifacts; use returned status/sequence data for polling.
|
|
1152
|
+
*/
|
|
1153
|
+
"environments/jobs/read": {
|
|
1154
|
+
params: Api.EnvironmentJobReadParams;
|
|
1155
|
+
result: Api.AgentApiOutcomeOfEnvironmentJobReadResponse;
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* Cancel environment jobs
|
|
1159
|
+
*
|
|
1160
|
+
* Requests cancellation for selected jobs, optionally including dependents. Force is provider-specific escalation; inspect each per-job result.
|
|
1161
|
+
*/
|
|
1162
|
+
"environments/jobs/cancel": {
|
|
1163
|
+
params: Api.EnvironmentJobCancelParams;
|
|
1164
|
+
result: Api.AgentApiOutcomeOfEnvironmentJobCancelResponse;
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Discover available models
|
|
1168
|
+
*
|
|
1169
|
+
* Queries supported providers directly on every call and returns best-effort selectable routes. One provider failure does not discard successful results from others.
|
|
1170
|
+
*/
|
|
1171
|
+
"models/list": {
|
|
1172
|
+
params: Api.ModelListParams;
|
|
1173
|
+
result: Api.AgentApiOutcomeOfModelListResponse;
|
|
1174
|
+
};
|
|
1175
|
+
/**
|
|
1176
|
+
* Create an agent profile
|
|
1177
|
+
*
|
|
1178
|
+
* Creates a new universe-scoped reusable profile document; use profiles/put for create-or-replace revision semantics.
|
|
1179
|
+
*/
|
|
1180
|
+
"profiles/create": {
|
|
1181
|
+
params: Api.ProfileCreateParams;
|
|
1182
|
+
result: Api.AgentApiOutcomeOfProfileCreateResponse;
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* Read an agent profile
|
|
1186
|
+
*
|
|
1187
|
+
* Returns the complete profile document and current revision.
|
|
1188
|
+
*/
|
|
1189
|
+
"profiles/read": {
|
|
1190
|
+
params: Api.ProfileReadParams;
|
|
1191
|
+
result: Api.AgentApiOutcomeOfProfileReadResponse;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* List agent profiles
|
|
1195
|
+
*
|
|
1196
|
+
* Returns lightweight summaries of universe-scoped reusable profiles.
|
|
1197
|
+
*/
|
|
1198
|
+
"profiles/list": {
|
|
1199
|
+
params: Api.ProfileListParams;
|
|
1200
|
+
result: Api.AgentApiOutcomeOfProfileListResponse;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* Create or replace an agent profile
|
|
1204
|
+
*
|
|
1205
|
+
* Stores the complete profile document. Use expectedRevision from profiles/read when replacing to prevent lost updates; absence writes unconditionally.
|
|
1206
|
+
*/
|
|
1207
|
+
"profiles/put": {
|
|
1208
|
+
params: Api.ProfilePutParams;
|
|
1209
|
+
result: Api.AgentApiOutcomeOfProfilePutResponse;
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Delete an agent profile
|
|
1213
|
+
*
|
|
1214
|
+
* Deletes the catalog document; sessions previously created or configured from it retain their materialized state.
|
|
1215
|
+
*/
|
|
1216
|
+
"profiles/delete": {
|
|
1217
|
+
params: Api.ProfileDeleteParams;
|
|
1218
|
+
result: Api.AgentApiOutcomeOfProfileDeleteResponse;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* Store content-addressed blobs
|
|
1222
|
+
*
|
|
1223
|
+
* Decodes and stores a batch of base64 payloads, returning immutable content references in request order. Re-uploading identical bytes is naturally deduplicated.
|
|
1224
|
+
*/
|
|
1225
|
+
"blobs/put": {
|
|
1226
|
+
params: Api.BlobPutParams;
|
|
1227
|
+
result: Api.AgentApiOutcomeOfBlobPutResponse;
|
|
1228
|
+
};
|
|
1229
|
+
/**
|
|
1230
|
+
* Read a content-addressed blob
|
|
1231
|
+
*
|
|
1232
|
+
* Returns the complete immutable blob as base64; large values count against gateway and MCP response limits.
|
|
1233
|
+
*/
|
|
1234
|
+
"blobs/read": {
|
|
1235
|
+
params: Api.BlobReadParams;
|
|
1236
|
+
result: Api.AgentApiOutcomeOfBlobReadResponse;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* Check blob availability
|
|
1240
|
+
*
|
|
1241
|
+
* Checks a batch of content references without returning blob bodies, preserving request order.
|
|
1242
|
+
*/
|
|
1243
|
+
"blobs/has": {
|
|
1244
|
+
params: Api.BlobHasParams;
|
|
1245
|
+
result: Api.AgentApiOutcomeOfBlobHasResponse;
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Commit a VFS snapshot
|
|
1249
|
+
*
|
|
1250
|
+
* Validates and stores an immutable filesystem manifest. Upload referenced file blobs first; the returned snapshot ref is content-addressed.
|
|
1251
|
+
*/
|
|
1252
|
+
"vfs/snapshots/commit": {
|
|
1253
|
+
params: Api.VfsSnapshotCommitParams;
|
|
1254
|
+
result: Api.AgentApiOutcomeOfVfsSnapshotCommitResponse;
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* Read a VFS snapshot
|
|
1258
|
+
*
|
|
1259
|
+
* Returns an immutable snapshot manifest and aggregate file/byte counts; file bodies remain separate blobs.
|
|
1260
|
+
*/
|
|
1261
|
+
"vfs/snapshots/read": {
|
|
1262
|
+
params: Api.VfsSnapshotReadParams;
|
|
1263
|
+
result: Api.AgentApiOutcomeOfVfsSnapshotReadResponse;
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Create a mutable VFS workspace
|
|
1267
|
+
*
|
|
1268
|
+
* Creates a universe workspace at an optional seed snapshot; absence starts from a server-created empty snapshot.
|
|
1269
|
+
*/
|
|
1270
|
+
"vfs/workspaces/create": {
|
|
1271
|
+
params: Api.VfsWorkspaceCreateParams;
|
|
1272
|
+
result: Api.AgentApiOutcomeOfVfsWorkspaceCreateResponse;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* Read a VFS workspace
|
|
1276
|
+
*
|
|
1277
|
+
* Returns workspace metadata, current head snapshot, and revision for safe updates.
|
|
1278
|
+
*/
|
|
1279
|
+
"vfs/workspaces/read": {
|
|
1280
|
+
params: Api.VfsWorkspaceReadParams;
|
|
1281
|
+
result: Api.AgentApiOutcomeOfVfsWorkspaceReadResponse;
|
|
1282
|
+
};
|
|
1283
|
+
/**
|
|
1284
|
+
* List VFS workspaces
|
|
1285
|
+
*
|
|
1286
|
+
* Lists mutable universe workspaces with head snapshots, sizes, and revisions.
|
|
1287
|
+
*/
|
|
1288
|
+
"vfs/workspaces/list": {
|
|
1289
|
+
params: Api.VfsWorkspaceListParams;
|
|
1290
|
+
result: Api.AgentApiOutcomeOfVfsWorkspaceListResponse;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* Update a VFS workspace
|
|
1294
|
+
*
|
|
1295
|
+
* Moves the workspace head to an existing snapshot and updates its display name. Pass expectedRevision from a read to prevent lost updates.
|
|
1296
|
+
*/
|
|
1297
|
+
"vfs/workspaces/update": {
|
|
1298
|
+
params: Api.VfsWorkspaceUpdateParams;
|
|
1299
|
+
result: Api.AgentApiOutcomeOfVfsWorkspaceUpdateResponse;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* Delete a VFS workspace
|
|
1303
|
+
*
|
|
1304
|
+
* Deletes the mutable workspace record; immutable snapshots and blobs remain content-addressed resources.
|
|
1305
|
+
*/
|
|
1306
|
+
"vfs/workspaces/delete": {
|
|
1307
|
+
params: Api.VfsWorkspaceDeleteParams;
|
|
1308
|
+
result: Api.AgentApiOutcomeOfVfsWorkspaceDeleteResponse;
|
|
1309
|
+
};
|
|
1310
|
+
/**
|
|
1311
|
+
* Create or replace an MCP server record
|
|
1312
|
+
*
|
|
1313
|
+
* Stores the complete universe catalog document, including its optional universe auth-grant credential. Use expectedRevision when replacing; token material is never accepted or returned.
|
|
1314
|
+
*/
|
|
1315
|
+
"mcp/servers/put": {
|
|
1316
|
+
params: Api.McpServerPutParams;
|
|
1317
|
+
result: Api.AgentApiOutcomeOfMcpServerPutResponse;
|
|
1318
|
+
};
|
|
1319
|
+
/**
|
|
1320
|
+
* Discover MCP server authentication
|
|
1321
|
+
*
|
|
1322
|
+
* 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.
|
|
1323
|
+
*/
|
|
1324
|
+
"mcp/servers/auth/discover": {
|
|
1325
|
+
params: Api.McpServerAuthDiscoverParams;
|
|
1326
|
+
result: Api.AgentApiOutcomeOfMcpServerAuthDiscoverResponse;
|
|
1327
|
+
};
|
|
1328
|
+
/**
|
|
1329
|
+
* Discover MCP server tools
|
|
1330
|
+
*
|
|
1331
|
+
* 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.
|
|
1332
|
+
*/
|
|
1333
|
+
"mcp/servers/tools/discover": {
|
|
1334
|
+
params: Api.McpServerToolsDiscoverParams;
|
|
1335
|
+
result: Api.AgentApiOutcomeOfMcpServerToolsDiscoverResponse;
|
|
1336
|
+
};
|
|
1337
|
+
/**
|
|
1338
|
+
* Read an MCP server record
|
|
1339
|
+
*
|
|
1340
|
+
* Returns one catalog document with defaults, auth policy, non-secret grant binding, status, and revision; no credential value is exposed.
|
|
1341
|
+
*/
|
|
1342
|
+
"mcp/servers/read": {
|
|
1343
|
+
params: Api.McpServerReadParams;
|
|
1344
|
+
result: Api.AgentApiOutcomeOfMcpServerReadResponse;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* List MCP server records
|
|
1348
|
+
*
|
|
1349
|
+
* Lists universe catalog entries, optionally filtered by lifecycle/configuration status.
|
|
1350
|
+
*/
|
|
1351
|
+
"mcp/servers/list": {
|
|
1352
|
+
params: Api.McpServerListParams;
|
|
1353
|
+
result: Api.AgentApiOutcomeOfMcpServerListResponse;
|
|
1354
|
+
};
|
|
1355
|
+
/**
|
|
1356
|
+
* Delete an MCP server record
|
|
1357
|
+
*
|
|
1358
|
+
* Deletes the catalog document. Existing session configs that reference it are not silently rewritten and may need explicit reconfiguration.
|
|
1359
|
+
*/
|
|
1360
|
+
"mcp/servers/delete": {
|
|
1361
|
+
params: Api.McpServerDeleteParams;
|
|
1362
|
+
result: Api.AgentApiOutcomeOfMcpServerDeleteResponse;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Import a static bearer grant
|
|
1366
|
+
*
|
|
1367
|
+
* 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.
|
|
1368
|
+
*/
|
|
1369
|
+
"auth/grants/import": {
|
|
1370
|
+
params: Api.AuthGrantImportParams;
|
|
1371
|
+
result: Api.AgentApiOutcomeOfAuthGrantImportResponse;
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Lease a retrievable authentication grant
|
|
1375
|
+
*
|
|
1376
|
+
* 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.
|
|
1377
|
+
*/
|
|
1378
|
+
"auth/grants/lease": {
|
|
1379
|
+
params: Api.AuthGrantLeaseParams;
|
|
1380
|
+
result: Api.AgentApiOutcomeOfAuthGrantLeaseResponse;
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Read authentication grant metadata
|
|
1384
|
+
*
|
|
1385
|
+
* Returns principal, provider binding, scopes, audience, expiry, status, and token-presence flags; access and refresh token values are never returned.
|
|
1386
|
+
*/
|
|
1387
|
+
"auth/grants/read": {
|
|
1388
|
+
params: Api.AuthGrantReadParams;
|
|
1389
|
+
result: Api.AgentApiOutcomeOfAuthGrantReadResponse;
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* List authentication grants
|
|
1393
|
+
*
|
|
1394
|
+
* Lists non-secret grant metadata for the universe, optionally filtered by status.
|
|
1395
|
+
*/
|
|
1396
|
+
"auth/grants/list": {
|
|
1397
|
+
params: Api.AuthGrantListParams;
|
|
1398
|
+
result: Api.AgentApiOutcomeOfAuthGrantListResponse;
|
|
1399
|
+
};
|
|
1400
|
+
/**
|
|
1401
|
+
* Revoke an authentication grant
|
|
1402
|
+
*
|
|
1403
|
+
* Marks the grant unusable by token consumers while retaining non-secret audit metadata.
|
|
1404
|
+
*/
|
|
1405
|
+
"auth/grants/revoke": {
|
|
1406
|
+
params: Api.AuthGrantRevokeParams;
|
|
1407
|
+
result: Api.AgentApiOutcomeOfAuthGrantRevokeResponse;
|
|
1408
|
+
};
|
|
1409
|
+
/**
|
|
1410
|
+
* Register an OAuth client
|
|
1411
|
+
*
|
|
1412
|
+
* Stores provider endpoints and client identity; an optional plaintext client secret is encrypted and represented thereafter only by hasClientSecret.
|
|
1413
|
+
*/
|
|
1414
|
+
"auth/clients/create": {
|
|
1415
|
+
params: Api.AuthClientCreateParams;
|
|
1416
|
+
result: Api.AgentApiOutcomeOfAuthClientCreateResponse;
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* Read OAuth client metadata
|
|
1420
|
+
*
|
|
1421
|
+
* Returns endpoints, public client identity, defaults, and secret-presence state; the client secret is never returned.
|
|
1422
|
+
*/
|
|
1423
|
+
"auth/clients/read": {
|
|
1424
|
+
params: Api.AuthClientReadParams;
|
|
1425
|
+
result: Api.AgentApiOutcomeOfAuthClientReadResponse;
|
|
1426
|
+
};
|
|
1427
|
+
/**
|
|
1428
|
+
* List OAuth clients
|
|
1429
|
+
*
|
|
1430
|
+
* Lists non-secret OAuth client registrations in the universe.
|
|
1431
|
+
*/
|
|
1432
|
+
"auth/clients/list": {
|
|
1433
|
+
params: Api.AuthClientListParams;
|
|
1434
|
+
result: Api.AgentApiOutcomeOfAuthClientListResponse;
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* Delete an OAuth client
|
|
1438
|
+
*
|
|
1439
|
+
* Deletes the client registration and its stored client secret; grants already created from it remain separate records.
|
|
1440
|
+
*/
|
|
1441
|
+
"auth/clients/delete": {
|
|
1442
|
+
params: Api.AuthClientDeleteParams;
|
|
1443
|
+
result: Api.AgentApiOutcomeOfAuthClientDeleteResponse;
|
|
1444
|
+
};
|
|
1445
|
+
/**
|
|
1446
|
+
* Start an OAuth authorization flow
|
|
1447
|
+
*
|
|
1448
|
+
* 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.
|
|
1449
|
+
*/
|
|
1450
|
+
"auth/flows/start": {
|
|
1451
|
+
params: Api.AuthFlowStartParams;
|
|
1452
|
+
result: Api.AgentApiOutcomeOfAuthFlowStartResponse;
|
|
1453
|
+
};
|
|
1454
|
+
/**
|
|
1455
|
+
* Read OAuth flow status
|
|
1456
|
+
*
|
|
1457
|
+
* Polls a flow's pending/completed/failed/expired state and returns the resulting grant id when authorization succeeds; no token value is exposed.
|
|
1458
|
+
*/
|
|
1459
|
+
"auth/flows/read": {
|
|
1460
|
+
params: Api.AuthFlowStatusParams;
|
|
1461
|
+
result: Api.AgentApiOutcomeOfAuthFlowStatusResponse;
|
|
1462
|
+
};
|
|
1463
|
+
/**
|
|
1464
|
+
* Register an authentication provider
|
|
1465
|
+
*
|
|
1466
|
+
* Creates a model or GitHub credential source. Plaintext API keys/private keys are encrypted on receipt and later represented only by configuration plus hasCredential.
|
|
1467
|
+
*/
|
|
1468
|
+
"auth/providers/create": {
|
|
1469
|
+
params: Api.AuthProviderCreateParams;
|
|
1470
|
+
result: Api.AgentApiOutcomeOfAuthProviderCreateResponse;
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* Read authentication provider metadata
|
|
1474
|
+
*
|
|
1475
|
+
* Returns provider kind, non-secret configuration, credential-presence state, and status; stored credentials are never returned.
|
|
1476
|
+
*/
|
|
1477
|
+
"auth/providers/read": {
|
|
1478
|
+
params: Api.AuthProviderReadParams;
|
|
1479
|
+
result: Api.AgentApiOutcomeOfAuthProviderReadResponse;
|
|
1480
|
+
};
|
|
1481
|
+
/**
|
|
1482
|
+
* List authentication providers
|
|
1483
|
+
*
|
|
1484
|
+
* Lists non-secret model/GitHub provider registrations for the universe.
|
|
1485
|
+
*/
|
|
1486
|
+
"auth/providers/list": {
|
|
1487
|
+
params: Api.AuthProviderListParams;
|
|
1488
|
+
result: Api.AgentApiOutcomeOfAuthProviderListResponse;
|
|
1489
|
+
};
|
|
1490
|
+
/**
|
|
1491
|
+
* Delete an authentication provider
|
|
1492
|
+
*
|
|
1493
|
+
* Deletes the provider registration and its directly stored credential; separately stored grants remain independent records.
|
|
1494
|
+
*/
|
|
1495
|
+
"auth/providers/delete": {
|
|
1496
|
+
params: Api.AuthProviderDeleteParams;
|
|
1497
|
+
result: Api.AgentApiOutcomeOfAuthProviderDeleteResponse;
|
|
1498
|
+
};
|
|
1499
|
+
/**
|
|
1500
|
+
* List GitHub App installations
|
|
1501
|
+
*
|
|
1502
|
+
* Uses the registered GitHub App provider credential to query accessible installations and returns account/permission metadata without tokens.
|
|
1503
|
+
*/
|
|
1504
|
+
"auth/github/installations/list": {
|
|
1505
|
+
params: Api.AuthGitHubInstallationListParams;
|
|
1506
|
+
result: Api.AgentApiOutcomeOfAuthGitHubInstallationListResponse;
|
|
1507
|
+
};
|
|
1508
|
+
/**
|
|
1509
|
+
* Grant access to a GitHub App installation
|
|
1510
|
+
*
|
|
1511
|
+
* Creates or refreshes a universe auth grant for one accessible installation. The installation token is brokered internally and never returned.
|
|
1512
|
+
*/
|
|
1513
|
+
"auth/github/installations/grant": {
|
|
1514
|
+
params: Api.AuthGitHubInstallationGrantParams;
|
|
1515
|
+
result: Api.AgentApiOutcomeOfAuthGitHubInstallationGrantResponse;
|
|
1516
|
+
};
|
|
1517
|
+
/**
|
|
1518
|
+
* Create a bot
|
|
1519
|
+
*
|
|
1520
|
+
* 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.
|
|
1521
|
+
*/
|
|
1522
|
+
"bots/create": {
|
|
1523
|
+
params: Api.BotCreateParams;
|
|
1524
|
+
result: Api.AgentApiOutcomeOfBotCreateResponse;
|
|
1525
|
+
};
|
|
1526
|
+
/**
|
|
1527
|
+
* Create or replace a bot document
|
|
1528
|
+
*
|
|
1529
|
+
* 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.
|
|
1530
|
+
*/
|
|
1531
|
+
"bots/put": {
|
|
1532
|
+
params: Api.BotPutParams;
|
|
1533
|
+
result: Api.AgentApiOutcomeOfBotPutResponse;
|
|
1534
|
+
};
|
|
1535
|
+
/**
|
|
1536
|
+
* Read a bot
|
|
1537
|
+
*
|
|
1538
|
+
* Returns the bot record, its current revision, and lifecycle columns.
|
|
1539
|
+
*/
|
|
1540
|
+
"bots/read": {
|
|
1541
|
+
params: Api.BotReadParams;
|
|
1542
|
+
result: Api.AgentApiOutcomeOfBotReadResponse;
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* List bots
|
|
1546
|
+
*
|
|
1547
|
+
* Returns the roster: every bot with its trigger count, pending event count, and latest event.
|
|
1548
|
+
*/
|
|
1549
|
+
"bots/list": {
|
|
1550
|
+
params: Api.BotListParams;
|
|
1551
|
+
result: Api.AgentApiOutcomeOfBotListResponse;
|
|
1552
|
+
};
|
|
1553
|
+
/**
|
|
1554
|
+
* Close a bot
|
|
1555
|
+
*
|
|
1556
|
+
* 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.
|
|
1557
|
+
*/
|
|
1558
|
+
"bots/close": {
|
|
1559
|
+
params: Api.BotCloseParams;
|
|
1560
|
+
result: Api.AgentApiOutcomeOfBotCloseResponse;
|
|
1561
|
+
};
|
|
1562
|
+
/**
|
|
1563
|
+
* Delete a bot
|
|
1564
|
+
*
|
|
1565
|
+
* 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.
|
|
1566
|
+
*/
|
|
1567
|
+
"bots/delete": {
|
|
1568
|
+
params: Api.BotDeleteParams;
|
|
1569
|
+
result: Api.AgentApiOutcomeOfBotDeleteResponse;
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* Read bot controller state
|
|
1573
|
+
*
|
|
1574
|
+
* 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.
|
|
1575
|
+
*/
|
|
1576
|
+
"bots/state/read": {
|
|
1577
|
+
params: Api.BotStateReadParams;
|
|
1578
|
+
result: Api.AgentApiOutcomeOfBotStateReadResponse;
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Rotate a bot session
|
|
1582
|
+
*
|
|
1583
|
+
* 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.
|
|
1584
|
+
*/
|
|
1585
|
+
"bots/sessions/rotate": {
|
|
1586
|
+
params: Api.BotSessionRotateParams;
|
|
1587
|
+
result: Api.AgentApiOutcomeOfBotSessionRotateResponse;
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* Create or replace a trigger
|
|
1591
|
+
*
|
|
1592
|
+
* 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.
|
|
1593
|
+
*/
|
|
1594
|
+
"bots/triggers/put": {
|
|
1595
|
+
params: Api.BotTriggerPutParams;
|
|
1596
|
+
result: Api.AgentApiOutcomeOfBotTriggerPutResponse;
|
|
1597
|
+
};
|
|
1598
|
+
/**
|
|
1599
|
+
* Read a trigger
|
|
1600
|
+
*
|
|
1601
|
+
* Returns one trigger with its incidents and cursor; the ingest path and pairing code are shown only to managing principals.
|
|
1602
|
+
*/
|
|
1603
|
+
"bots/triggers/read": {
|
|
1604
|
+
params: Api.BotTriggerReadParams;
|
|
1605
|
+
result: Api.AgentApiOutcomeOfBotTriggerReadResponse;
|
|
1606
|
+
};
|
|
1607
|
+
/**
|
|
1608
|
+
* List a bot's triggers
|
|
1609
|
+
*
|
|
1610
|
+
* Returns every trigger of the bot ordered by id, secrets redacted for non-managing principals.
|
|
1611
|
+
*/
|
|
1612
|
+
"bots/triggers/list": {
|
|
1613
|
+
params: Api.BotTriggerListParams;
|
|
1614
|
+
result: Api.AgentApiOutcomeOfBotTriggerListResponse;
|
|
1615
|
+
};
|
|
1616
|
+
/**
|
|
1617
|
+
* Delete a trigger
|
|
1618
|
+
*
|
|
1619
|
+
* Drops the trigger's Temporal Schedule and pairings, then the record; stored events keep their history.
|
|
1620
|
+
*/
|
|
1621
|
+
"bots/triggers/delete": {
|
|
1622
|
+
params: Api.BotTriggerDeleteParams;
|
|
1623
|
+
result: Api.AgentApiOutcomeOfBotTriggerDeleteResponse;
|
|
1624
|
+
};
|
|
1625
|
+
/**
|
|
1626
|
+
* Admit an event manually
|
|
1627
|
+
*
|
|
1628
|
+
* 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.
|
|
1629
|
+
*/
|
|
1630
|
+
"bots/events/admit": {
|
|
1631
|
+
params: Api.BotEventAdmitParams;
|
|
1632
|
+
result: Api.AgentApiOutcomeOfBotEventAdmitResponse;
|
|
1633
|
+
};
|
|
1634
|
+
/**
|
|
1635
|
+
* Replay a stored event
|
|
1636
|
+
*
|
|
1637
|
+
* Re-admits the stored envelope as a fresh event with the original routing; the replay never coalesces.
|
|
1638
|
+
*/
|
|
1639
|
+
"bots/events/replay": {
|
|
1640
|
+
params: Api.BotEventReplayParams;
|
|
1641
|
+
result: Api.AgentApiOutcomeOfBotEventReplayResponse;
|
|
1642
|
+
};
|
|
1643
|
+
/**
|
|
1644
|
+
* List a bot's events
|
|
1645
|
+
*
|
|
1646
|
+
* Cursor-paginated event log, newest first, with outcomes; payload documents stay in the CAS.
|
|
1647
|
+
*/
|
|
1648
|
+
"bots/events/list": {
|
|
1649
|
+
params: Api.BotEventListParams;
|
|
1650
|
+
result: Api.AgentApiOutcomeOfBotEventListResponse;
|
|
1651
|
+
};
|
|
1652
|
+
/**
|
|
1653
|
+
* Read an event by number
|
|
1654
|
+
*
|
|
1655
|
+
* Returns the event row and its full stored envelope document.
|
|
1656
|
+
*/
|
|
1657
|
+
"bots/events/read": {
|
|
1658
|
+
params: Api.BotEventReadParams;
|
|
1659
|
+
result: Api.AgentApiOutcomeOfBotEventReadResponse;
|
|
1660
|
+
};
|
|
1661
|
+
/**
|
|
1662
|
+
* Test a CEL filter
|
|
1663
|
+
*
|
|
1664
|
+
* Evaluates a filter against one payload or a sample of recent stored events, reporting matches and evaluation errors without changing anything.
|
|
1665
|
+
*/
|
|
1666
|
+
"bots/filters/test": {
|
|
1667
|
+
params: Api.BotFilterTestParams;
|
|
1668
|
+
result: Api.AgentApiOutcomeOfBotFilterTestResponse;
|
|
1669
|
+
};
|
|
1670
|
+
/**
|
|
1671
|
+
* Create a channel account
|
|
1672
|
+
*
|
|
1673
|
+
* Registers a provider account (Telegram, WhatsApp) for this universe. The credential is a retrievable grant reference; no token is accepted here.
|
|
1674
|
+
*/
|
|
1675
|
+
"channels/accounts/create": {
|
|
1676
|
+
params: Api.ChannelAccountCreateParams;
|
|
1677
|
+
result: Api.AgentApiOutcomeOfChannelAccountCreateResponse;
|
|
1678
|
+
};
|
|
1679
|
+
/**
|
|
1680
|
+
* Create or replace a channel account
|
|
1681
|
+
*
|
|
1682
|
+
* Replaces the account document whole; pass expectedRevision when replacing. The connector host picks the change up on its next discovery pass.
|
|
1683
|
+
*/
|
|
1684
|
+
"channels/accounts/put": {
|
|
1685
|
+
params: Api.ChannelAccountPutParams;
|
|
1686
|
+
result: Api.AgentApiOutcomeOfChannelAccountPutResponse;
|
|
1687
|
+
};
|
|
1688
|
+
/**
|
|
1689
|
+
* Read a channel account
|
|
1690
|
+
*
|
|
1691
|
+
* Returns the account document and revision.
|
|
1692
|
+
*/
|
|
1693
|
+
"channels/accounts/read": {
|
|
1694
|
+
params: Api.ChannelAccountReadParams;
|
|
1695
|
+
result: Api.AgentApiOutcomeOfChannelAccountReadResponse;
|
|
1696
|
+
};
|
|
1697
|
+
/**
|
|
1698
|
+
* List channel accounts
|
|
1699
|
+
*
|
|
1700
|
+
* Lists this universe's provider accounts, optionally by provider.
|
|
1701
|
+
*/
|
|
1702
|
+
"channels/accounts/list": {
|
|
1703
|
+
params: Api.ChannelAccountListParams;
|
|
1704
|
+
result: Api.AgentApiOutcomeOfChannelAccountListResponse;
|
|
1705
|
+
};
|
|
1706
|
+
/**
|
|
1707
|
+
* Delete a channel account
|
|
1708
|
+
*
|
|
1709
|
+
* Removes the account and its pairings; chat triggers that reference it stop serving conversations.
|
|
1710
|
+
*/
|
|
1711
|
+
"channels/accounts/delete": {
|
|
1712
|
+
params: Api.ChannelAccountDeleteParams;
|
|
1713
|
+
result: Api.AgentApiOutcomeOfChannelAccountDeleteResponse;
|
|
1714
|
+
};
|
|
1715
|
+
/**
|
|
1716
|
+
* Admit a provider message
|
|
1717
|
+
*
|
|
1718
|
+
* 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.
|
|
1719
|
+
*/
|
|
1720
|
+
"channels/inbound/admit": {
|
|
1721
|
+
params: Api.ChannelInboundAdmitParams;
|
|
1722
|
+
result: Api.AgentApiOutcomeOfChannelInboundAdmitResponse;
|
|
1723
|
+
};
|
|
1724
|
+
/**
|
|
1725
|
+
* List chat pairings
|
|
1726
|
+
*
|
|
1727
|
+
* Lists conversations paired to chat triggers, optionally by account or bot.
|
|
1728
|
+
*/
|
|
1729
|
+
"channels/pairings/list": {
|
|
1730
|
+
params: Api.ChannelPairingListParams;
|
|
1731
|
+
result: Api.AgentApiOutcomeOfChannelPairingListResponse;
|
|
1732
|
+
};
|
|
1733
|
+
/**
|
|
1734
|
+
* Unpair a conversation
|
|
1735
|
+
*
|
|
1736
|
+
* Removes one pairing; the conversation must present the pairing code again to reconnect.
|
|
1737
|
+
*/
|
|
1738
|
+
"channels/pairings/delete": {
|
|
1739
|
+
params: Api.ChannelPairingDeleteParams;
|
|
1740
|
+
result: Api.AgentApiOutcomeOfChannelPairingDeleteResponse;
|
|
1741
|
+
};
|
|
1742
|
+
/**
|
|
1743
|
+
* Read a conversation snapshot
|
|
1744
|
+
*
|
|
1745
|
+
* Queries the conversation workflow's live state for one chat, for debugging; absent when no workflow exists yet.
|
|
1746
|
+
*/
|
|
1747
|
+
"channels/conversations/read": {
|
|
1748
|
+
params: Api.ChannelConversationReadParams;
|
|
1749
|
+
result: Api.AgentApiOutcomeOfChannelConversationReadResponse;
|
|
1750
|
+
};
|
|
1751
|
+
/**
|
|
1752
|
+
* Create a universe
|
|
1753
|
+
*
|
|
1754
|
+
* Creates the deployment tenant boundary for an explicit UUID. The operation is idempotent and reports whether a new universe was created.
|
|
1755
|
+
*/
|
|
1756
|
+
"operator/universes/create": {
|
|
1757
|
+
params: Api.OperatorUniverseCreateParams;
|
|
1758
|
+
result: Api.AgentApiOutcomeOfOperatorUniverseCreateResponse;
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* List universes
|
|
1762
|
+
*
|
|
1763
|
+
* Returns deployment-wide universe summaries with approximate live aggregate counts and last session activity.
|
|
1764
|
+
*/
|
|
1765
|
+
"operator/universes/list": {
|
|
1766
|
+
params: Api.OperatorUniverseListParams;
|
|
1767
|
+
result: Api.AgentApiOutcomeOfOperatorUniverseListResponse;
|
|
1768
|
+
};
|
|
1769
|
+
/**
|
|
1770
|
+
* Read a universe
|
|
1771
|
+
*
|
|
1772
|
+
* Returns one deployment tenant summary with aggregate session, workspace, profile, and blob usage.
|
|
1773
|
+
*/
|
|
1774
|
+
"operator/universes/read": {
|
|
1775
|
+
params: Api.OperatorUniverseReadParams;
|
|
1776
|
+
result: Api.AgentApiOutcomeOfOperatorUniverseReadResponse;
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Purge a universe
|
|
1780
|
+
*
|
|
1781
|
+
* Permanently terminates live session workflows, deletes external blob objects, and cascades universe data. The purge is resumable/idempotent after partial failure.
|
|
1782
|
+
*/
|
|
1783
|
+
"operator/universes/delete": {
|
|
1784
|
+
params: Api.OperatorUniverseDeleteParams;
|
|
1785
|
+
result: Api.AgentApiOutcomeOfOperatorUniverseDeleteResponse;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* Create a universe API key
|
|
1789
|
+
*
|
|
1790
|
+
* 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.
|
|
1791
|
+
*/
|
|
1792
|
+
"operator/api-keys/create": {
|
|
1793
|
+
params: Api.OperatorApiKeyCreateParams;
|
|
1794
|
+
result: Api.AgentApiOutcomeOfOperatorApiKeyCreateResponse;
|
|
1795
|
+
};
|
|
1796
|
+
/**
|
|
1797
|
+
* List universe API keys
|
|
1798
|
+
*
|
|
1799
|
+
* Returns only non-secret key metadata for the requested universe, including revocation and last-use timestamps. Plaintext secrets are never stored or returned.
|
|
1800
|
+
*/
|
|
1801
|
+
"operator/api-keys/list": {
|
|
1802
|
+
params: Api.OperatorApiKeyListParams;
|
|
1803
|
+
result: Api.AgentApiOutcomeOfOperatorApiKeyListResponse;
|
|
1804
|
+
};
|
|
1805
|
+
/**
|
|
1806
|
+
* Revoke a universe API key
|
|
1807
|
+
*
|
|
1808
|
+
* Immediately and idempotently revokes the matching key only when it belongs to the requested universe. Unknown and foreign-universe prefixes return not found.
|
|
1809
|
+
*/
|
|
1810
|
+
"operator/api-keys/revoke": {
|
|
1811
|
+
params: Api.OperatorApiKeyRevokeParams;
|
|
1812
|
+
result: Api.AgentApiOutcomeOfOperatorApiKeyRevokeResponse;
|
|
1813
|
+
};
|
|
1814
|
+
/**
|
|
1815
|
+
* Put an environment provider
|
|
1816
|
+
*
|
|
1817
|
+
* Registers or replaces one deployment provider and its controller connection. The provider does not call this API or require access to Lightspeed.
|
|
1818
|
+
*/
|
|
1819
|
+
"operator/environment-providers/put": {
|
|
1820
|
+
params: Api.OperatorEnvironmentProviderPutParams;
|
|
1821
|
+
result: Api.AgentApiOutcomeOfOperatorEnvironmentProviderPutResponse;
|
|
1822
|
+
};
|
|
1823
|
+
/**
|
|
1824
|
+
* List environment providers
|
|
1825
|
+
*
|
|
1826
|
+
* Returns every operator-registered deployment provider and its controller connection.
|
|
1827
|
+
*/
|
|
1828
|
+
"operator/environment-providers/list": {
|
|
1829
|
+
params: Api.OperatorEnvironmentProviderListParams;
|
|
1830
|
+
result: Api.AgentApiOutcomeOfOperatorEnvironmentProviderListResponse;
|
|
1831
|
+
};
|
|
1832
|
+
/**
|
|
1833
|
+
* Read an environment provider
|
|
1834
|
+
*
|
|
1835
|
+
* Returns one operator-registered deployment provider and its controller connection.
|
|
1836
|
+
*/
|
|
1837
|
+
"operator/environment-providers/read": {
|
|
1838
|
+
params: Api.OperatorEnvironmentProviderReadParams;
|
|
1839
|
+
result: Api.AgentApiOutcomeOfOperatorEnvironmentProviderReadResponse;
|
|
1840
|
+
};
|
|
1841
|
+
/**
|
|
1842
|
+
* Delete an environment provider
|
|
1843
|
+
*
|
|
1844
|
+
* Deletes a deployment provider only when no universe binding references it.
|
|
1845
|
+
*/
|
|
1846
|
+
"operator/environment-providers/delete": {
|
|
1847
|
+
params: Api.OperatorEnvironmentProviderDeleteParams;
|
|
1848
|
+
result: Api.AgentApiOutcomeOfOperatorEnvironmentProviderDeleteResponse;
|
|
1849
|
+
};
|
|
1850
|
+
/**
|
|
1851
|
+
* Put an environment provider binding
|
|
1852
|
+
*
|
|
1853
|
+
* Creates or replaces one universe's complete revisioned routing and admission binding. A deployment provider may have at most one binding in a universe.
|
|
1854
|
+
*/
|
|
1855
|
+
"operator/environment-providers/bindings/put": {
|
|
1856
|
+
params: Api.OperatorProviderBindingPutParams;
|
|
1857
|
+
result: Api.AgentApiOutcomeOfOperatorProviderBindingPutResponse;
|
|
1858
|
+
};
|
|
1859
|
+
/**
|
|
1860
|
+
* Delete an environment provider binding
|
|
1861
|
+
*
|
|
1862
|
+
* Deletes a universe provider binding only after every referencing environment has reached Closed.
|
|
1863
|
+
*/
|
|
1864
|
+
"operator/environment-providers/bindings/delete": {
|
|
1865
|
+
params: Api.OperatorProviderBindingDeleteParams;
|
|
1866
|
+
result: Api.AgentApiOutcomeOfOperatorProviderBindingDeleteResponse;
|
|
1867
|
+
};
|
|
1868
|
+
/**
|
|
1869
|
+
* Adopt a provider environment
|
|
1870
|
+
*
|
|
1871
|
+
* Creates a universe environment by transferring an existing provider target into Lightspeed's managed lifecycle. The caller must explicitly accept ownership transfer.
|
|
1872
|
+
*/
|
|
1873
|
+
"operator/environments/adopt": {
|
|
1874
|
+
params: Api.OperatorEnvironmentAdoptParams;
|
|
1875
|
+
result: Api.AgentApiOutcomeOfOperatorEnvironmentAdoptResponse;
|
|
1876
|
+
};
|
|
1877
|
+
/**
|
|
1878
|
+
* List channel accounts across universes
|
|
1879
|
+
*
|
|
1880
|
+
* 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.
|
|
1881
|
+
*/
|
|
1882
|
+
"operator/channels/accounts/list": {
|
|
1883
|
+
params: Api.OperatorChannelAccountListParams;
|
|
1884
|
+
result: Api.AgentApiOutcomeOfOperatorChannelAccountListResponse;
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export type MethodParams<M extends Method> = MethodMap[M]["params"];
|
|
1889
|
+
export type MethodResult<M extends Method> = MethodMap[M]["result"];
|
|
1890
|
+
|
|
1891
|
+
export interface RpcCaller {
|
|
1892
|
+
call<M extends Method>(method: M, params: MethodParams<M>): Promise<MethodResult<M>>;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export const rpc = {
|
|
1896
|
+
/**
|
|
1897
|
+
* Inspect the Lightspeed protocol
|
|
1898
|
+
*
|
|
1899
|
+
* Returns protocol version, server identity, and supported capabilities without changing universe state.
|
|
1900
|
+
*/
|
|
1901
|
+
initialize(client: RpcCaller, params: Api.InitializeParams): Promise<Api.AgentApiOutcomeOfInitializeResponse> {
|
|
1902
|
+
return client.call("initialize", params);
|
|
1903
|
+
},
|
|
1904
|
+
/**
|
|
1905
|
+
* Create or reopen a session
|
|
1906
|
+
*
|
|
1907
|
+
* 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.
|
|
1908
|
+
*/
|
|
1909
|
+
sessionStart(client: RpcCaller, params: Api.SessionStartParams): Promise<Api.AgentApiOutcomeOfSessionStartResponse> {
|
|
1910
|
+
return client.call("session/start", params);
|
|
1911
|
+
},
|
|
1912
|
+
/**
|
|
1913
|
+
* Create or reopen a managed session
|
|
1914
|
+
*
|
|
1915
|
+
* 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.
|
|
1916
|
+
*/
|
|
1917
|
+
sessionManagedStart(client: RpcCaller, params: Api.ManagedSessionStartParams): Promise<Api.AgentApiOutcomeOfSessionStartResponse> {
|
|
1918
|
+
return client.call("session/managed/start", params);
|
|
1919
|
+
},
|
|
1920
|
+
/**
|
|
1921
|
+
* Read a session
|
|
1922
|
+
*
|
|
1923
|
+
* 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.
|
|
1924
|
+
*/
|
|
1925
|
+
sessionRead(client: RpcCaller, params: Api.SessionReadParams): Promise<Api.AgentApiOutcomeOfSessionReadResponse> {
|
|
1926
|
+
return client.call("session/read", params);
|
|
1927
|
+
},
|
|
1928
|
+
/**
|
|
1929
|
+
* List sessions
|
|
1930
|
+
*
|
|
1931
|
+
* Returns a cursor-paginated summary list ordered by most recent update. Pages may shift while sessions are changing.
|
|
1932
|
+
*/
|
|
1933
|
+
sessionList(client: RpcCaller, params: Api.SessionListParams): Promise<Api.AgentApiOutcomeOfSessionListResponse> {
|
|
1934
|
+
return client.call("session/list", params);
|
|
1935
|
+
},
|
|
1936
|
+
/**
|
|
1937
|
+
* Replace session configuration
|
|
1938
|
+
*
|
|
1939
|
+
* 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.
|
|
1940
|
+
*/
|
|
1941
|
+
sessionConfigPut(client: RpcCaller, params: Api.SessionConfigPutParams): Promise<Api.AgentApiOutcomeOfSessionConfigPutResponse> {
|
|
1942
|
+
return client.call("session/config/put", params);
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
* Rename a session
|
|
1946
|
+
*
|
|
1947
|
+
* Sets the display name, or clears it when displayName is omitted.
|
|
1948
|
+
*/
|
|
1949
|
+
sessionRename(client: RpcCaller, params: Api.SessionRenameParams): Promise<Api.AgentApiOutcomeOfSessionRenameResponse> {
|
|
1950
|
+
return client.call("session/rename", params);
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
* Close a session
|
|
1954
|
+
*
|
|
1955
|
+
* 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.
|
|
1956
|
+
*/
|
|
1957
|
+
sessionClose(client: RpcCaller, params: Api.SessionCloseParams): Promise<Api.AgentApiOutcomeOfSessionCloseResponse> {
|
|
1958
|
+
return client.call("session/close", params);
|
|
1959
|
+
},
|
|
1960
|
+
/**
|
|
1961
|
+
* Delete a closed session
|
|
1962
|
+
*
|
|
1963
|
+
* Permanently removes session storage after the session has been closed; close active/open sessions first.
|
|
1964
|
+
*/
|
|
1965
|
+
sessionDelete(client: RpcCaller, params: Api.SessionDeleteParams): Promise<Api.AgentApiOutcomeOfSessionDeleteResponse> {
|
|
1966
|
+
return client.call("session/delete", params);
|
|
1967
|
+
},
|
|
1968
|
+
/**
|
|
1969
|
+
* Read the session event stream
|
|
1970
|
+
*
|
|
1971
|
+
* 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.
|
|
1972
|
+
*/
|
|
1973
|
+
sessionEventsRead(client: RpcCaller, params: Api.SessionEventsReadParams): Promise<Api.AgentApiOutcomeOfSessionEventsReadResponse> {
|
|
1974
|
+
return client.call("session/events/read", params);
|
|
1975
|
+
},
|
|
1976
|
+
/**
|
|
1977
|
+
* Append keyed session context
|
|
1978
|
+
*
|
|
1979
|
+
* 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.
|
|
1980
|
+
*/
|
|
1981
|
+
sessionContextAppend(client: RpcCaller, params: Api.ContextAppendParams): Promise<Api.AgentApiOutcomeOfContextAppendResponse> {
|
|
1982
|
+
return client.call("session/context/append", params);
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
* Remove keyed session context
|
|
1986
|
+
*
|
|
1987
|
+
* Removes active entries by stable key with per-key results. Missing keys are idempotent no-ops; runtime-reserved run keys cannot be removed.
|
|
1988
|
+
*/
|
|
1989
|
+
sessionContextRemove(client: RpcCaller, params: Api.ContextRemoveParams): Promise<Api.AgentApiOutcomeOfContextRemoveResponse> {
|
|
1990
|
+
return client.call("session/context/remove", params);
|
|
1991
|
+
},
|
|
1992
|
+
/**
|
|
1993
|
+
* Compact session context
|
|
1994
|
+
*
|
|
1995
|
+
* Runs the configured compaction policy on an open idle session and waits for the resulting context revision.
|
|
1996
|
+
*/
|
|
1997
|
+
sessionContextCompact(client: RpcCaller, params: Api.ContextCompactParams): Promise<Api.AgentApiOutcomeOfContextCompactResponse> {
|
|
1998
|
+
return client.call("session/context/compact", params);
|
|
1999
|
+
},
|
|
2000
|
+
/**
|
|
2001
|
+
* Start an agent run
|
|
2002
|
+
*
|
|
2003
|
+
* 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.
|
|
2004
|
+
*/
|
|
2005
|
+
sessionRunsStart(client: RpcCaller, params: Api.RunStartParams): Promise<Api.AgentApiOutcomeOfRunStartResponse> {
|
|
2006
|
+
return client.call("session/runs/start", params);
|
|
2007
|
+
},
|
|
2008
|
+
/**
|
|
2009
|
+
* List session runs
|
|
2010
|
+
*
|
|
2011
|
+
* Returns a newest-first keyset page of bounded run summaries projected from current reducer state.
|
|
2012
|
+
*/
|
|
2013
|
+
sessionRunsList(client: RpcCaller, params: Api.RunListParams): Promise<Api.AgentApiOutcomeOfRunListResponse> {
|
|
2014
|
+
return client.call("session/runs/list", params);
|
|
2015
|
+
},
|
|
2016
|
+
/**
|
|
2017
|
+
* Read one session run
|
|
2018
|
+
*
|
|
2019
|
+
* Reads and projects one run from its bounded event interval, paged by event sequence.
|
|
2020
|
+
*/
|
|
2021
|
+
sessionRunsRead(client: RpcCaller, params: Api.RunReadParams): Promise<Api.AgentApiOutcomeOfRunReadResponse> {
|
|
2022
|
+
return client.call("session/runs/read", params);
|
|
2023
|
+
},
|
|
2024
|
+
/**
|
|
2025
|
+
* Cancel a run
|
|
2026
|
+
*
|
|
2027
|
+
* 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.
|
|
2028
|
+
*/
|
|
2029
|
+
sessionRunsCancel(client: RpcCaller, params: Api.RunCancelParams): Promise<Api.AgentApiOutcomeOfRunCancelResponse> {
|
|
2030
|
+
return client.call("session/runs/cancel", params);
|
|
2031
|
+
},
|
|
2032
|
+
/**
|
|
2033
|
+
* Decide pending run approvals
|
|
2034
|
+
*
|
|
2035
|
+
* 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.
|
|
2036
|
+
*/
|
|
2037
|
+
sessionRunsApprovalsDecide(client: RpcCaller, params: Api.RunApprovalsDecideParams): Promise<Api.AgentApiOutcomeOfRunApprovalsDecideResponse> {
|
|
2038
|
+
return client.call("session/runs/approvals/decide", params);
|
|
2039
|
+
},
|
|
2040
|
+
/**
|
|
2041
|
+
* Steer the active run
|
|
2042
|
+
*
|
|
2043
|
+
* 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.
|
|
2044
|
+
*/
|
|
2045
|
+
sessionRunsSteer(client: RpcCaller, params: Api.RunSteerParams): Promise<Api.AgentApiOutcomeOfRunSteerResponse> {
|
|
2046
|
+
return client.call("session/runs/steer", params);
|
|
2047
|
+
},
|
|
2048
|
+
/**
|
|
2049
|
+
* List available session skills
|
|
2050
|
+
*
|
|
2051
|
+
* Refreshes the session's configured VFS skill catalog and reports which discovered skills are enabled and active. An absent catalog yields an empty result.
|
|
2052
|
+
*/
|
|
2053
|
+
sessionSkillsList(client: RpcCaller, params: Api.SkillListParams): Promise<Api.AgentApiOutcomeOfSkillListResponse> {
|
|
2054
|
+
return client.call("session/skills/list", params);
|
|
2055
|
+
},
|
|
2056
|
+
/**
|
|
2057
|
+
* List active session skills
|
|
2058
|
+
*
|
|
2059
|
+
* Returns skill instructions currently injected into context, including activation scope and source.
|
|
2060
|
+
*/
|
|
2061
|
+
sessionSkillsActive(client: RpcCaller, params: Api.SkillActiveParams): Promise<Api.AgentApiOutcomeOfSkillActiveResponse> {
|
|
2062
|
+
return client.call("session/skills/active", params);
|
|
2063
|
+
},
|
|
2064
|
+
/**
|
|
2065
|
+
* Activate a session skill
|
|
2066
|
+
*
|
|
2067
|
+
* Loads an enabled skill from the current catalog and injects its instructions into an open idle session. Run-scoped activation is the default.
|
|
2068
|
+
*/
|
|
2069
|
+
sessionSkillsActivate(client: RpcCaller, params: Api.SkillActivateParams): Promise<Api.AgentApiOutcomeOfSkillActivateResponse> {
|
|
2070
|
+
return client.call("session/skills/activate", params);
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
* Deactivate a session skill
|
|
2074
|
+
*
|
|
2075
|
+
* Removes an active skill's injected context from an open idle session; the skill must currently be active.
|
|
2076
|
+
*/
|
|
2077
|
+
sessionSkillsDeactivate(client: RpcCaller, params: Api.SkillDeactivateParams): Promise<Api.AgentApiOutcomeOfSkillDeactivateResponse> {
|
|
2078
|
+
return client.call("session/skills/deactivate", params);
|
|
2079
|
+
},
|
|
2080
|
+
/**
|
|
2081
|
+
* Apply a profile to a session
|
|
2082
|
+
*
|
|
2083
|
+
* 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.
|
|
2084
|
+
*/
|
|
2085
|
+
sessionProfilesApply(client: RpcCaller, params: Api.ProfileApplyParams): Promise<Api.AgentApiOutcomeOfProfileApplyResponse> {
|
|
2086
|
+
return client.call("session/profiles/apply", params);
|
|
2087
|
+
},
|
|
2088
|
+
/**
|
|
2089
|
+
* Activate a session environment
|
|
2090
|
+
*
|
|
2091
|
+
* Selects an allowed, live universe environment for environment-targeted tools while the session is idle.
|
|
2092
|
+
*/
|
|
2093
|
+
sessionEnvironmentsActivate(client: RpcCaller, params: Api.SessionEnvironmentActivateParams): Promise<Api.AgentApiOutcomeOfSessionEnvironmentActivateResponse> {
|
|
2094
|
+
return client.call("session/environments/activate", params);
|
|
2095
|
+
},
|
|
2096
|
+
/**
|
|
2097
|
+
* Deactivate the session environment
|
|
2098
|
+
*
|
|
2099
|
+
* Clears active environment selection without changing or closing the universe environment.
|
|
2100
|
+
*/
|
|
2101
|
+
sessionEnvironmentsDeactivate(client: RpcCaller, params: Api.SessionEnvironmentDeactivateParams): Promise<Api.AgentApiOutcomeOfSessionEnvironmentDeactivateResponse> {
|
|
2102
|
+
return client.call("session/environments/deactivate", params);
|
|
2103
|
+
},
|
|
2104
|
+
/**
|
|
2105
|
+
* Bind a credential into an environment
|
|
2106
|
+
*
|
|
2107
|
+
* 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.
|
|
2108
|
+
*/
|
|
2109
|
+
environmentsCredentialsBind(client: RpcCaller, params: Api.EnvironmentCredentialBindParams): Promise<Api.AgentApiOutcomeOfEnvironmentCredentialBindResponse> {
|
|
2110
|
+
return client.call("environments/credentials/bind", params);
|
|
2111
|
+
},
|
|
2112
|
+
/**
|
|
2113
|
+
* List environment credential bindings
|
|
2114
|
+
*
|
|
2115
|
+
* Returns variable names and credential source handles for a universe environment; resolved secret values are never returned.
|
|
2116
|
+
*/
|
|
2117
|
+
environmentsCredentialsList(client: RpcCaller, params: Api.EnvironmentCredentialListParams): Promise<Api.AgentApiOutcomeOfEnvironmentCredentialListResponse> {
|
|
2118
|
+
return client.call("environments/credentials/list", params);
|
|
2119
|
+
},
|
|
2120
|
+
/**
|
|
2121
|
+
* Unbind an environment credential
|
|
2122
|
+
*
|
|
2123
|
+
* Removes one variable-to-credential mapping without deleting the underlying grant, provider credential, or secret.
|
|
2124
|
+
*/
|
|
2125
|
+
environmentsCredentialsUnbind(client: RpcCaller, params: Api.EnvironmentCredentialUnbindParams): Promise<Api.AgentApiOutcomeOfEnvironmentCredentialUnbindResponse> {
|
|
2126
|
+
return client.call("environments/credentials/unbind", params);
|
|
2127
|
+
},
|
|
2128
|
+
/**
|
|
2129
|
+
* Create an environment
|
|
2130
|
+
*
|
|
2131
|
+
* Records an idempotent provisioning intent against an enabled universe binding. The provider validates its provider-wide template and provisions through its backend asynchronously.
|
|
2132
|
+
*/
|
|
2133
|
+
environmentsCreate(client: RpcCaller, params: Api.EnvironmentCreateParams): Promise<Api.AgentApiOutcomeOfEnvironmentCreateResponse> {
|
|
2134
|
+
return client.call("environments/create", params);
|
|
2135
|
+
},
|
|
2136
|
+
/**
|
|
2137
|
+
* Read an environment
|
|
2138
|
+
*
|
|
2139
|
+
* Returns the durable universe resource, source binding, logical lifecycle state, and minimal current-incarnation identity.
|
|
2140
|
+
*/
|
|
2141
|
+
environmentsRead(client: RpcCaller, params: Api.EnvironmentReadParams): Promise<Api.AgentApiOutcomeOfEnvironmentReadResponse> {
|
|
2142
|
+
return client.call("environments/read", params);
|
|
2143
|
+
},
|
|
2144
|
+
/**
|
|
2145
|
+
* List environments
|
|
2146
|
+
*
|
|
2147
|
+
* Lists universe-owned environment resources, optionally filtered by provider, binding, or logical lifecycle state.
|
|
2148
|
+
*/
|
|
2149
|
+
environmentsList(client: RpcCaller, params: Api.EnvironmentListParams): Promise<Api.AgentApiOutcomeOfEnvironmentListResponse> {
|
|
2150
|
+
return client.call("environments/list", params);
|
|
2151
|
+
},
|
|
2152
|
+
/**
|
|
2153
|
+
* Close an environment
|
|
2154
|
+
*
|
|
2155
|
+
* Records an asynchronous idempotent close intent. Provider cleanup is resumed by lifecycle reconciliation; quota is released only after Closed.
|
|
2156
|
+
*/
|
|
2157
|
+
environmentsClose(client: RpcCaller, params: Api.EnvironmentCloseParams): Promise<Api.AgentApiOutcomeOfEnvironmentCloseResponse> {
|
|
2158
|
+
return client.call("environments/close", params);
|
|
2159
|
+
},
|
|
2160
|
+
/**
|
|
2161
|
+
* Register an external environment
|
|
2162
|
+
*
|
|
2163
|
+
* Creates an environment backed by a Lightspeed-reachable envd WebSocket endpoint. Reachability is checked on demand.
|
|
2164
|
+
*/
|
|
2165
|
+
environmentsExternalCreate(client: RpcCaller, params: Api.EnvironmentExternalCreateParams): Promise<Api.AgentApiOutcomeOfEnvironmentExternalCreateResponse> {
|
|
2166
|
+
return client.call("environments/external/create", params);
|
|
2167
|
+
},
|
|
2168
|
+
/**
|
|
2169
|
+
* Configure environment public ingress
|
|
2170
|
+
*
|
|
2171
|
+
* 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.
|
|
2172
|
+
*/
|
|
2173
|
+
environmentsIngressPut(client: RpcCaller, params: Api.EnvironmentIngressPutParams): Promise<Api.AgentApiOutcomeOfEnvironmentIngressPutResponse> {
|
|
2174
|
+
return client.call("environments/ingress/put", params);
|
|
2175
|
+
},
|
|
2176
|
+
/**
|
|
2177
|
+
* Set environment power intent
|
|
2178
|
+
*
|
|
2179
|
+
* 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.
|
|
2180
|
+
*/
|
|
2181
|
+
environmentsPowerPut(client: RpcCaller, params: Api.EnvironmentPowerPutParams): Promise<Api.AgentApiOutcomeOfEnvironmentPowerPutResponse> {
|
|
2182
|
+
return client.call("environments/power/put", params);
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
* Set environment idle policy
|
|
2186
|
+
*
|
|
2187
|
+
* 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.
|
|
2188
|
+
*/
|
|
2189
|
+
environmentsIdlePolicyPut(client: RpcCaller, params: Api.EnvironmentIdlePolicyPutParams): Promise<Api.AgentApiOutcomeOfEnvironmentIdlePolicyPutResponse> {
|
|
2190
|
+
return client.call("environments/idle-policy/put", params);
|
|
2191
|
+
},
|
|
2192
|
+
/**
|
|
2193
|
+
* List environment provider bindings
|
|
2194
|
+
*
|
|
2195
|
+
* Lists this universe's revisioned routing and admission bindings to deployment-scoped physical providers.
|
|
2196
|
+
*/
|
|
2197
|
+
environmentsProviderBindingsList(client: RpcCaller, params: Api.EnvironmentProviderBindingListParams): Promise<Api.AgentApiOutcomeOfEnvironmentProviderBindingListResponse> {
|
|
2198
|
+
return client.call("environments/provider-bindings/list", params);
|
|
2199
|
+
},
|
|
2200
|
+
/**
|
|
2201
|
+
* Read an environment provider binding
|
|
2202
|
+
*
|
|
2203
|
+
* Returns one universe routing and admission binding. Provider-wide templates and physical resource, network, and ingress policy remain provider-owned.
|
|
2204
|
+
*/
|
|
2205
|
+
environmentsProviderBindingsRead(client: RpcCaller, params: Api.EnvironmentProviderBindingReadParams): Promise<Api.AgentApiOutcomeOfEnvironmentProviderBindingReadResponse> {
|
|
2206
|
+
return client.call("environments/provider-bindings/read", params);
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
* List environment templates
|
|
2210
|
+
*
|
|
2211
|
+
* Reads immutable templates directly from the selected bound provider controller.
|
|
2212
|
+
*/
|
|
2213
|
+
environmentsTemplatesList(client: RpcCaller, params: Api.EnvironmentTemplateListParams): Promise<Api.AgentApiOutcomeOfEnvironmentTemplateListResponse> {
|
|
2214
|
+
return client.call("environments/templates/list", params);
|
|
2215
|
+
},
|
|
2216
|
+
/**
|
|
2217
|
+
* Read an environment template
|
|
2218
|
+
*
|
|
2219
|
+
* Returns one immutable template version from the selected bound provider controller.
|
|
2220
|
+
*/
|
|
2221
|
+
environmentsTemplatesRead(client: RpcCaller, params: Api.EnvironmentTemplateReadParams): Promise<Api.AgentApiOutcomeOfEnvironmentTemplateReadResponse> {
|
|
2222
|
+
return client.call("environments/templates/read", params);
|
|
2223
|
+
},
|
|
2224
|
+
/**
|
|
2225
|
+
* Create environment jobs
|
|
2226
|
+
*
|
|
2227
|
+
* 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.
|
|
2228
|
+
*/
|
|
2229
|
+
environmentsJobsCreate(client: RpcCaller, params: Api.EnvironmentJobCreateParams): Promise<Api.AgentApiOutcomeOfEnvironmentJobCreateResponse> {
|
|
2230
|
+
return client.call("environments/jobs/create", params);
|
|
2231
|
+
},
|
|
2232
|
+
/**
|
|
2233
|
+
* Read environment jobs
|
|
2234
|
+
*
|
|
2235
|
+
* Reads selected job handles with bounded output, optional sequence continuation, and optional artifacts; use returned status/sequence data for polling.
|
|
2236
|
+
*/
|
|
2237
|
+
environmentsJobsRead(client: RpcCaller, params: Api.EnvironmentJobReadParams): Promise<Api.AgentApiOutcomeOfEnvironmentJobReadResponse> {
|
|
2238
|
+
return client.call("environments/jobs/read", params);
|
|
2239
|
+
},
|
|
2240
|
+
/**
|
|
2241
|
+
* Cancel environment jobs
|
|
2242
|
+
*
|
|
2243
|
+
* Requests cancellation for selected jobs, optionally including dependents. Force is provider-specific escalation; inspect each per-job result.
|
|
2244
|
+
*/
|
|
2245
|
+
environmentsJobsCancel(client: RpcCaller, params: Api.EnvironmentJobCancelParams): Promise<Api.AgentApiOutcomeOfEnvironmentJobCancelResponse> {
|
|
2246
|
+
return client.call("environments/jobs/cancel", params);
|
|
2247
|
+
},
|
|
2248
|
+
/**
|
|
2249
|
+
* Discover available models
|
|
2250
|
+
*
|
|
2251
|
+
* Queries supported providers directly on every call and returns best-effort selectable routes. One provider failure does not discard successful results from others.
|
|
2252
|
+
*/
|
|
2253
|
+
modelsList(client: RpcCaller, params: Api.ModelListParams): Promise<Api.AgentApiOutcomeOfModelListResponse> {
|
|
2254
|
+
return client.call("models/list", params);
|
|
2255
|
+
},
|
|
2256
|
+
/**
|
|
2257
|
+
* Create an agent profile
|
|
2258
|
+
*
|
|
2259
|
+
* Creates a new universe-scoped reusable profile document; use profiles/put for create-or-replace revision semantics.
|
|
2260
|
+
*/
|
|
2261
|
+
profilesCreate(client: RpcCaller, params: Api.ProfileCreateParams): Promise<Api.AgentApiOutcomeOfProfileCreateResponse> {
|
|
2262
|
+
return client.call("profiles/create", params);
|
|
2263
|
+
},
|
|
2264
|
+
/**
|
|
2265
|
+
* Read an agent profile
|
|
2266
|
+
*
|
|
2267
|
+
* Returns the complete profile document and current revision.
|
|
2268
|
+
*/
|
|
2269
|
+
profilesRead(client: RpcCaller, params: Api.ProfileReadParams): Promise<Api.AgentApiOutcomeOfProfileReadResponse> {
|
|
2270
|
+
return client.call("profiles/read", params);
|
|
2271
|
+
},
|
|
2272
|
+
/**
|
|
2273
|
+
* List agent profiles
|
|
2274
|
+
*
|
|
2275
|
+
* Returns lightweight summaries of universe-scoped reusable profiles.
|
|
2276
|
+
*/
|
|
2277
|
+
profilesList(client: RpcCaller, params: Api.ProfileListParams): Promise<Api.AgentApiOutcomeOfProfileListResponse> {
|
|
2278
|
+
return client.call("profiles/list", params);
|
|
2279
|
+
},
|
|
2280
|
+
/**
|
|
2281
|
+
* Create or replace an agent profile
|
|
2282
|
+
*
|
|
2283
|
+
* Stores the complete profile document. Use expectedRevision from profiles/read when replacing to prevent lost updates; absence writes unconditionally.
|
|
2284
|
+
*/
|
|
2285
|
+
profilesPut(client: RpcCaller, params: Api.ProfilePutParams): Promise<Api.AgentApiOutcomeOfProfilePutResponse> {
|
|
2286
|
+
return client.call("profiles/put", params);
|
|
2287
|
+
},
|
|
2288
|
+
/**
|
|
2289
|
+
* Delete an agent profile
|
|
2290
|
+
*
|
|
2291
|
+
* Deletes the catalog document; sessions previously created or configured from it retain their materialized state.
|
|
2292
|
+
*/
|
|
2293
|
+
profilesDelete(client: RpcCaller, params: Api.ProfileDeleteParams): Promise<Api.AgentApiOutcomeOfProfileDeleteResponse> {
|
|
2294
|
+
return client.call("profiles/delete", params);
|
|
2295
|
+
},
|
|
2296
|
+
/**
|
|
2297
|
+
* Store content-addressed blobs
|
|
2298
|
+
*
|
|
2299
|
+
* Decodes and stores a batch of base64 payloads, returning immutable content references in request order. Re-uploading identical bytes is naturally deduplicated.
|
|
2300
|
+
*/
|
|
2301
|
+
blobsPut(client: RpcCaller, params: Api.BlobPutParams): Promise<Api.AgentApiOutcomeOfBlobPutResponse> {
|
|
2302
|
+
return client.call("blobs/put", params);
|
|
2303
|
+
},
|
|
2304
|
+
/**
|
|
2305
|
+
* Read a content-addressed blob
|
|
2306
|
+
*
|
|
2307
|
+
* Returns the complete immutable blob as base64; large values count against gateway and MCP response limits.
|
|
2308
|
+
*/
|
|
2309
|
+
blobsRead(client: RpcCaller, params: Api.BlobReadParams): Promise<Api.AgentApiOutcomeOfBlobReadResponse> {
|
|
2310
|
+
return client.call("blobs/read", params);
|
|
2311
|
+
},
|
|
2312
|
+
/**
|
|
2313
|
+
* Check blob availability
|
|
2314
|
+
*
|
|
2315
|
+
* Checks a batch of content references without returning blob bodies, preserving request order.
|
|
2316
|
+
*/
|
|
2317
|
+
blobsHas(client: RpcCaller, params: Api.BlobHasParams): Promise<Api.AgentApiOutcomeOfBlobHasResponse> {
|
|
2318
|
+
return client.call("blobs/has", params);
|
|
2319
|
+
},
|
|
2320
|
+
/**
|
|
2321
|
+
* Commit a VFS snapshot
|
|
2322
|
+
*
|
|
2323
|
+
* Validates and stores an immutable filesystem manifest. Upload referenced file blobs first; the returned snapshot ref is content-addressed.
|
|
2324
|
+
*/
|
|
2325
|
+
vfsSnapshotsCommit(client: RpcCaller, params: Api.VfsSnapshotCommitParams): Promise<Api.AgentApiOutcomeOfVfsSnapshotCommitResponse> {
|
|
2326
|
+
return client.call("vfs/snapshots/commit", params);
|
|
2327
|
+
},
|
|
2328
|
+
/**
|
|
2329
|
+
* Read a VFS snapshot
|
|
2330
|
+
*
|
|
2331
|
+
* Returns an immutable snapshot manifest and aggregate file/byte counts; file bodies remain separate blobs.
|
|
2332
|
+
*/
|
|
2333
|
+
vfsSnapshotsRead(client: RpcCaller, params: Api.VfsSnapshotReadParams): Promise<Api.AgentApiOutcomeOfVfsSnapshotReadResponse> {
|
|
2334
|
+
return client.call("vfs/snapshots/read", params);
|
|
2335
|
+
},
|
|
2336
|
+
/**
|
|
2337
|
+
* Create a mutable VFS workspace
|
|
2338
|
+
*
|
|
2339
|
+
* Creates a universe workspace at an optional seed snapshot; absence starts from a server-created empty snapshot.
|
|
2340
|
+
*/
|
|
2341
|
+
vfsWorkspacesCreate(client: RpcCaller, params: Api.VfsWorkspaceCreateParams): Promise<Api.AgentApiOutcomeOfVfsWorkspaceCreateResponse> {
|
|
2342
|
+
return client.call("vfs/workspaces/create", params);
|
|
2343
|
+
},
|
|
2344
|
+
/**
|
|
2345
|
+
* Read a VFS workspace
|
|
2346
|
+
*
|
|
2347
|
+
* Returns workspace metadata, current head snapshot, and revision for safe updates.
|
|
2348
|
+
*/
|
|
2349
|
+
vfsWorkspacesRead(client: RpcCaller, params: Api.VfsWorkspaceReadParams): Promise<Api.AgentApiOutcomeOfVfsWorkspaceReadResponse> {
|
|
2350
|
+
return client.call("vfs/workspaces/read", params);
|
|
2351
|
+
},
|
|
2352
|
+
/**
|
|
2353
|
+
* List VFS workspaces
|
|
2354
|
+
*
|
|
2355
|
+
* Lists mutable universe workspaces with head snapshots, sizes, and revisions.
|
|
2356
|
+
*/
|
|
2357
|
+
vfsWorkspacesList(client: RpcCaller, params: Api.VfsWorkspaceListParams): Promise<Api.AgentApiOutcomeOfVfsWorkspaceListResponse> {
|
|
2358
|
+
return client.call("vfs/workspaces/list", params);
|
|
2359
|
+
},
|
|
2360
|
+
/**
|
|
2361
|
+
* Update a VFS workspace
|
|
2362
|
+
*
|
|
2363
|
+
* Moves the workspace head to an existing snapshot and updates its display name. Pass expectedRevision from a read to prevent lost updates.
|
|
2364
|
+
*/
|
|
2365
|
+
vfsWorkspacesUpdate(client: RpcCaller, params: Api.VfsWorkspaceUpdateParams): Promise<Api.AgentApiOutcomeOfVfsWorkspaceUpdateResponse> {
|
|
2366
|
+
return client.call("vfs/workspaces/update", params);
|
|
2367
|
+
},
|
|
2368
|
+
/**
|
|
2369
|
+
* Delete a VFS workspace
|
|
2370
|
+
*
|
|
2371
|
+
* Deletes the mutable workspace record; immutable snapshots and blobs remain content-addressed resources.
|
|
2372
|
+
*/
|
|
2373
|
+
vfsWorkspacesDelete(client: RpcCaller, params: Api.VfsWorkspaceDeleteParams): Promise<Api.AgentApiOutcomeOfVfsWorkspaceDeleteResponse> {
|
|
2374
|
+
return client.call("vfs/workspaces/delete", params);
|
|
2375
|
+
},
|
|
2376
|
+
/**
|
|
2377
|
+
* Create or replace an MCP server record
|
|
2378
|
+
*
|
|
2379
|
+
* Stores the complete universe catalog document, including its optional universe auth-grant credential. Use expectedRevision when replacing; token material is never accepted or returned.
|
|
2380
|
+
*/
|
|
2381
|
+
mcpServersPut(client: RpcCaller, params: Api.McpServerPutParams): Promise<Api.AgentApiOutcomeOfMcpServerPutResponse> {
|
|
2382
|
+
return client.call("mcp/servers/put", params);
|
|
2383
|
+
},
|
|
2384
|
+
/**
|
|
2385
|
+
* Discover MCP server authentication
|
|
2386
|
+
*
|
|
2387
|
+
* 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.
|
|
2388
|
+
*/
|
|
2389
|
+
mcpServersAuthDiscover(client: RpcCaller, params: Api.McpServerAuthDiscoverParams): Promise<Api.AgentApiOutcomeOfMcpServerAuthDiscoverResponse> {
|
|
2390
|
+
return client.call("mcp/servers/auth/discover", params);
|
|
2391
|
+
},
|
|
2392
|
+
/**
|
|
2393
|
+
* Discover MCP server tools
|
|
2394
|
+
*
|
|
2395
|
+
* 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.
|
|
2396
|
+
*/
|
|
2397
|
+
mcpServersToolsDiscover(client: RpcCaller, params: Api.McpServerToolsDiscoverParams): Promise<Api.AgentApiOutcomeOfMcpServerToolsDiscoverResponse> {
|
|
2398
|
+
return client.call("mcp/servers/tools/discover", params);
|
|
2399
|
+
},
|
|
2400
|
+
/**
|
|
2401
|
+
* Read an MCP server record
|
|
2402
|
+
*
|
|
2403
|
+
* Returns one catalog document with defaults, auth policy, non-secret grant binding, status, and revision; no credential value is exposed.
|
|
2404
|
+
*/
|
|
2405
|
+
mcpServersRead(client: RpcCaller, params: Api.McpServerReadParams): Promise<Api.AgentApiOutcomeOfMcpServerReadResponse> {
|
|
2406
|
+
return client.call("mcp/servers/read", params);
|
|
2407
|
+
},
|
|
2408
|
+
/**
|
|
2409
|
+
* List MCP server records
|
|
2410
|
+
*
|
|
2411
|
+
* Lists universe catalog entries, optionally filtered by lifecycle/configuration status.
|
|
2412
|
+
*/
|
|
2413
|
+
mcpServersList(client: RpcCaller, params: Api.McpServerListParams): Promise<Api.AgentApiOutcomeOfMcpServerListResponse> {
|
|
2414
|
+
return client.call("mcp/servers/list", params);
|
|
2415
|
+
},
|
|
2416
|
+
/**
|
|
2417
|
+
* Delete an MCP server record
|
|
2418
|
+
*
|
|
2419
|
+
* Deletes the catalog document. Existing session configs that reference it are not silently rewritten and may need explicit reconfiguration.
|
|
2420
|
+
*/
|
|
2421
|
+
mcpServersDelete(client: RpcCaller, params: Api.McpServerDeleteParams): Promise<Api.AgentApiOutcomeOfMcpServerDeleteResponse> {
|
|
2422
|
+
return client.call("mcp/servers/delete", params);
|
|
2423
|
+
},
|
|
2424
|
+
/**
|
|
2425
|
+
* Import a static bearer grant
|
|
2426
|
+
*
|
|
2427
|
+
* 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.
|
|
2428
|
+
*/
|
|
2429
|
+
authGrantsImport(client: RpcCaller, params: Api.AuthGrantImportParams): Promise<Api.AgentApiOutcomeOfAuthGrantImportResponse> {
|
|
2430
|
+
return client.call("auth/grants/import", params);
|
|
2431
|
+
},
|
|
2432
|
+
/**
|
|
2433
|
+
* Lease a retrievable authentication grant
|
|
2434
|
+
*
|
|
2435
|
+
* 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.
|
|
2436
|
+
*/
|
|
2437
|
+
authGrantsLease(client: RpcCaller, params: Api.AuthGrantLeaseParams): Promise<Api.AgentApiOutcomeOfAuthGrantLeaseResponse> {
|
|
2438
|
+
return client.call("auth/grants/lease", params);
|
|
2439
|
+
},
|
|
2440
|
+
/**
|
|
2441
|
+
* Read authentication grant metadata
|
|
2442
|
+
*
|
|
2443
|
+
* Returns principal, provider binding, scopes, audience, expiry, status, and token-presence flags; access and refresh token values are never returned.
|
|
2444
|
+
*/
|
|
2445
|
+
authGrantsRead(client: RpcCaller, params: Api.AuthGrantReadParams): Promise<Api.AgentApiOutcomeOfAuthGrantReadResponse> {
|
|
2446
|
+
return client.call("auth/grants/read", params);
|
|
2447
|
+
},
|
|
2448
|
+
/**
|
|
2449
|
+
* List authentication grants
|
|
2450
|
+
*
|
|
2451
|
+
* Lists non-secret grant metadata for the universe, optionally filtered by status.
|
|
2452
|
+
*/
|
|
2453
|
+
authGrantsList(client: RpcCaller, params: Api.AuthGrantListParams): Promise<Api.AgentApiOutcomeOfAuthGrantListResponse> {
|
|
2454
|
+
return client.call("auth/grants/list", params);
|
|
2455
|
+
},
|
|
2456
|
+
/**
|
|
2457
|
+
* Revoke an authentication grant
|
|
2458
|
+
*
|
|
2459
|
+
* Marks the grant unusable by token consumers while retaining non-secret audit metadata.
|
|
2460
|
+
*/
|
|
2461
|
+
authGrantsRevoke(client: RpcCaller, params: Api.AuthGrantRevokeParams): Promise<Api.AgentApiOutcomeOfAuthGrantRevokeResponse> {
|
|
2462
|
+
return client.call("auth/grants/revoke", params);
|
|
2463
|
+
},
|
|
2464
|
+
/**
|
|
2465
|
+
* Register an OAuth client
|
|
2466
|
+
*
|
|
2467
|
+
* Stores provider endpoints and client identity; an optional plaintext client secret is encrypted and represented thereafter only by hasClientSecret.
|
|
2468
|
+
*/
|
|
2469
|
+
authClientsCreate(client: RpcCaller, params: Api.AuthClientCreateParams): Promise<Api.AgentApiOutcomeOfAuthClientCreateResponse> {
|
|
2470
|
+
return client.call("auth/clients/create", params);
|
|
2471
|
+
},
|
|
2472
|
+
/**
|
|
2473
|
+
* Read OAuth client metadata
|
|
2474
|
+
*
|
|
2475
|
+
* Returns endpoints, public client identity, defaults, and secret-presence state; the client secret is never returned.
|
|
2476
|
+
*/
|
|
2477
|
+
authClientsRead(client: RpcCaller, params: Api.AuthClientReadParams): Promise<Api.AgentApiOutcomeOfAuthClientReadResponse> {
|
|
2478
|
+
return client.call("auth/clients/read", params);
|
|
2479
|
+
},
|
|
2480
|
+
/**
|
|
2481
|
+
* List OAuth clients
|
|
2482
|
+
*
|
|
2483
|
+
* Lists non-secret OAuth client registrations in the universe.
|
|
2484
|
+
*/
|
|
2485
|
+
authClientsList(client: RpcCaller, params: Api.AuthClientListParams): Promise<Api.AgentApiOutcomeOfAuthClientListResponse> {
|
|
2486
|
+
return client.call("auth/clients/list", params);
|
|
2487
|
+
},
|
|
2488
|
+
/**
|
|
2489
|
+
* Delete an OAuth client
|
|
2490
|
+
*
|
|
2491
|
+
* Deletes the client registration and its stored client secret; grants already created from it remain separate records.
|
|
2492
|
+
*/
|
|
2493
|
+
authClientsDelete(client: RpcCaller, params: Api.AuthClientDeleteParams): Promise<Api.AgentApiOutcomeOfAuthClientDeleteResponse> {
|
|
2494
|
+
return client.call("auth/clients/delete", params);
|
|
2495
|
+
},
|
|
2496
|
+
/**
|
|
2497
|
+
* Start an OAuth authorization flow
|
|
2498
|
+
*
|
|
2499
|
+
* 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.
|
|
2500
|
+
*/
|
|
2501
|
+
authFlowsStart(client: RpcCaller, params: Api.AuthFlowStartParams): Promise<Api.AgentApiOutcomeOfAuthFlowStartResponse> {
|
|
2502
|
+
return client.call("auth/flows/start", params);
|
|
2503
|
+
},
|
|
2504
|
+
/**
|
|
2505
|
+
* Read OAuth flow status
|
|
2506
|
+
*
|
|
2507
|
+
* Polls a flow's pending/completed/failed/expired state and returns the resulting grant id when authorization succeeds; no token value is exposed.
|
|
2508
|
+
*/
|
|
2509
|
+
authFlowsRead(client: RpcCaller, params: Api.AuthFlowStatusParams): Promise<Api.AgentApiOutcomeOfAuthFlowStatusResponse> {
|
|
2510
|
+
return client.call("auth/flows/read", params);
|
|
2511
|
+
},
|
|
2512
|
+
/**
|
|
2513
|
+
* Register an authentication provider
|
|
2514
|
+
*
|
|
2515
|
+
* Creates a model or GitHub credential source. Plaintext API keys/private keys are encrypted on receipt and later represented only by configuration plus hasCredential.
|
|
2516
|
+
*/
|
|
2517
|
+
authProvidersCreate(client: RpcCaller, params: Api.AuthProviderCreateParams): Promise<Api.AgentApiOutcomeOfAuthProviderCreateResponse> {
|
|
2518
|
+
return client.call("auth/providers/create", params);
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
* Read authentication provider metadata
|
|
2522
|
+
*
|
|
2523
|
+
* Returns provider kind, non-secret configuration, credential-presence state, and status; stored credentials are never returned.
|
|
2524
|
+
*/
|
|
2525
|
+
authProvidersRead(client: RpcCaller, params: Api.AuthProviderReadParams): Promise<Api.AgentApiOutcomeOfAuthProviderReadResponse> {
|
|
2526
|
+
return client.call("auth/providers/read", params);
|
|
2527
|
+
},
|
|
2528
|
+
/**
|
|
2529
|
+
* List authentication providers
|
|
2530
|
+
*
|
|
2531
|
+
* Lists non-secret model/GitHub provider registrations for the universe.
|
|
2532
|
+
*/
|
|
2533
|
+
authProvidersList(client: RpcCaller, params: Api.AuthProviderListParams): Promise<Api.AgentApiOutcomeOfAuthProviderListResponse> {
|
|
2534
|
+
return client.call("auth/providers/list", params);
|
|
2535
|
+
},
|
|
2536
|
+
/**
|
|
2537
|
+
* Delete an authentication provider
|
|
2538
|
+
*
|
|
2539
|
+
* Deletes the provider registration and its directly stored credential; separately stored grants remain independent records.
|
|
2540
|
+
*/
|
|
2541
|
+
authProvidersDelete(client: RpcCaller, params: Api.AuthProviderDeleteParams): Promise<Api.AgentApiOutcomeOfAuthProviderDeleteResponse> {
|
|
2542
|
+
return client.call("auth/providers/delete", params);
|
|
2543
|
+
},
|
|
2544
|
+
/**
|
|
2545
|
+
* List GitHub App installations
|
|
2546
|
+
*
|
|
2547
|
+
* Uses the registered GitHub App provider credential to query accessible installations and returns account/permission metadata without tokens.
|
|
2548
|
+
*/
|
|
2549
|
+
authGithubInstallationsList(client: RpcCaller, params: Api.AuthGitHubInstallationListParams): Promise<Api.AgentApiOutcomeOfAuthGitHubInstallationListResponse> {
|
|
2550
|
+
return client.call("auth/github/installations/list", params);
|
|
2551
|
+
},
|
|
2552
|
+
/**
|
|
2553
|
+
* Grant access to a GitHub App installation
|
|
2554
|
+
*
|
|
2555
|
+
* Creates or refreshes a universe auth grant for one accessible installation. The installation token is brokered internally and never returned.
|
|
2556
|
+
*/
|
|
2557
|
+
authGithubInstallationsGrant(client: RpcCaller, params: Api.AuthGitHubInstallationGrantParams): Promise<Api.AgentApiOutcomeOfAuthGitHubInstallationGrantResponse> {
|
|
2558
|
+
return client.call("auth/github/installations/grant", params);
|
|
2559
|
+
},
|
|
2560
|
+
/**
|
|
2561
|
+
* Create a bot
|
|
2562
|
+
*
|
|
2563
|
+
* 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.
|
|
2564
|
+
*/
|
|
2565
|
+
botsCreate(client: RpcCaller, params: Api.BotCreateParams): Promise<Api.AgentApiOutcomeOfBotCreateResponse> {
|
|
2566
|
+
return client.call("bots/create", params);
|
|
2567
|
+
},
|
|
2568
|
+
/**
|
|
2569
|
+
* Create or replace a bot document
|
|
2570
|
+
*
|
|
2571
|
+
* 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.
|
|
2572
|
+
*/
|
|
2573
|
+
botsPut(client: RpcCaller, params: Api.BotPutParams): Promise<Api.AgentApiOutcomeOfBotPutResponse> {
|
|
2574
|
+
return client.call("bots/put", params);
|
|
2575
|
+
},
|
|
2576
|
+
/**
|
|
2577
|
+
* Read a bot
|
|
2578
|
+
*
|
|
2579
|
+
* Returns the bot record, its current revision, and lifecycle columns.
|
|
2580
|
+
*/
|
|
2581
|
+
botsRead(client: RpcCaller, params: Api.BotReadParams): Promise<Api.AgentApiOutcomeOfBotReadResponse> {
|
|
2582
|
+
return client.call("bots/read", params);
|
|
2583
|
+
},
|
|
2584
|
+
/**
|
|
2585
|
+
* List bots
|
|
2586
|
+
*
|
|
2587
|
+
* Returns the roster: every bot with its trigger count, pending event count, and latest event.
|
|
2588
|
+
*/
|
|
2589
|
+
botsList(client: RpcCaller, params: Api.BotListParams): Promise<Api.AgentApiOutcomeOfBotListResponse> {
|
|
2590
|
+
return client.call("bots/list", params);
|
|
2591
|
+
},
|
|
2592
|
+
/**
|
|
2593
|
+
* Close a bot
|
|
2594
|
+
*
|
|
2595
|
+
* 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.
|
|
2596
|
+
*/
|
|
2597
|
+
botsClose(client: RpcCaller, params: Api.BotCloseParams): Promise<Api.AgentApiOutcomeOfBotCloseResponse> {
|
|
2598
|
+
return client.call("bots/close", params);
|
|
2599
|
+
},
|
|
2600
|
+
/**
|
|
2601
|
+
* Delete a bot
|
|
2602
|
+
*
|
|
2603
|
+
* 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.
|
|
2604
|
+
*/
|
|
2605
|
+
botsDelete(client: RpcCaller, params: Api.BotDeleteParams): Promise<Api.AgentApiOutcomeOfBotDeleteResponse> {
|
|
2606
|
+
return client.call("bots/delete", params);
|
|
2607
|
+
},
|
|
2608
|
+
/**
|
|
2609
|
+
* Read bot controller state
|
|
2610
|
+
*
|
|
2611
|
+
* 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.
|
|
2612
|
+
*/
|
|
2613
|
+
botsStateRead(client: RpcCaller, params: Api.BotStateReadParams): Promise<Api.AgentApiOutcomeOfBotStateReadResponse> {
|
|
2614
|
+
return client.call("bots/state/read", params);
|
|
2615
|
+
},
|
|
2616
|
+
/**
|
|
2617
|
+
* Rotate a bot session
|
|
2618
|
+
*
|
|
2619
|
+
* 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.
|
|
2620
|
+
*/
|
|
2621
|
+
botsSessionsRotate(client: RpcCaller, params: Api.BotSessionRotateParams): Promise<Api.AgentApiOutcomeOfBotSessionRotateResponse> {
|
|
2622
|
+
return client.call("bots/sessions/rotate", params);
|
|
2623
|
+
},
|
|
2624
|
+
/**
|
|
2625
|
+
* Create or replace a trigger
|
|
2626
|
+
*
|
|
2627
|
+
* 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.
|
|
2628
|
+
*/
|
|
2629
|
+
botsTriggersPut(client: RpcCaller, params: Api.BotTriggerPutParams): Promise<Api.AgentApiOutcomeOfBotTriggerPutResponse> {
|
|
2630
|
+
return client.call("bots/triggers/put", params);
|
|
2631
|
+
},
|
|
2632
|
+
/**
|
|
2633
|
+
* Read a trigger
|
|
2634
|
+
*
|
|
2635
|
+
* Returns one trigger with its incidents and cursor; the ingest path and pairing code are shown only to managing principals.
|
|
2636
|
+
*/
|
|
2637
|
+
botsTriggersRead(client: RpcCaller, params: Api.BotTriggerReadParams): Promise<Api.AgentApiOutcomeOfBotTriggerReadResponse> {
|
|
2638
|
+
return client.call("bots/triggers/read", params);
|
|
2639
|
+
},
|
|
2640
|
+
/**
|
|
2641
|
+
* List a bot's triggers
|
|
2642
|
+
*
|
|
2643
|
+
* Returns every trigger of the bot ordered by id, secrets redacted for non-managing principals.
|
|
2644
|
+
*/
|
|
2645
|
+
botsTriggersList(client: RpcCaller, params: Api.BotTriggerListParams): Promise<Api.AgentApiOutcomeOfBotTriggerListResponse> {
|
|
2646
|
+
return client.call("bots/triggers/list", params);
|
|
2647
|
+
},
|
|
2648
|
+
/**
|
|
2649
|
+
* Delete a trigger
|
|
2650
|
+
*
|
|
2651
|
+
* Drops the trigger's Temporal Schedule and pairings, then the record; stored events keep their history.
|
|
2652
|
+
*/
|
|
2653
|
+
botsTriggersDelete(client: RpcCaller, params: Api.BotTriggerDeleteParams): Promise<Api.AgentApiOutcomeOfBotTriggerDeleteResponse> {
|
|
2654
|
+
return client.call("bots/triggers/delete", params);
|
|
2655
|
+
},
|
|
2656
|
+
/**
|
|
2657
|
+
* Admit an event manually
|
|
2658
|
+
*
|
|
2659
|
+
* 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.
|
|
2660
|
+
*/
|
|
2661
|
+
botsEventsAdmit(client: RpcCaller, params: Api.BotEventAdmitParams): Promise<Api.AgentApiOutcomeOfBotEventAdmitResponse> {
|
|
2662
|
+
return client.call("bots/events/admit", params);
|
|
2663
|
+
},
|
|
2664
|
+
/**
|
|
2665
|
+
* Replay a stored event
|
|
2666
|
+
*
|
|
2667
|
+
* Re-admits the stored envelope as a fresh event with the original routing; the replay never coalesces.
|
|
2668
|
+
*/
|
|
2669
|
+
botsEventsReplay(client: RpcCaller, params: Api.BotEventReplayParams): Promise<Api.AgentApiOutcomeOfBotEventReplayResponse> {
|
|
2670
|
+
return client.call("bots/events/replay", params);
|
|
2671
|
+
},
|
|
2672
|
+
/**
|
|
2673
|
+
* List a bot's events
|
|
2674
|
+
*
|
|
2675
|
+
* Cursor-paginated event log, newest first, with outcomes; payload documents stay in the CAS.
|
|
2676
|
+
*/
|
|
2677
|
+
botsEventsList(client: RpcCaller, params: Api.BotEventListParams): Promise<Api.AgentApiOutcomeOfBotEventListResponse> {
|
|
2678
|
+
return client.call("bots/events/list", params);
|
|
2679
|
+
},
|
|
2680
|
+
/**
|
|
2681
|
+
* Read an event by number
|
|
2682
|
+
*
|
|
2683
|
+
* Returns the event row and its full stored envelope document.
|
|
2684
|
+
*/
|
|
2685
|
+
botsEventsRead(client: RpcCaller, params: Api.BotEventReadParams): Promise<Api.AgentApiOutcomeOfBotEventReadResponse> {
|
|
2686
|
+
return client.call("bots/events/read", params);
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
* Test a CEL filter
|
|
2690
|
+
*
|
|
2691
|
+
* Evaluates a filter against one payload or a sample of recent stored events, reporting matches and evaluation errors without changing anything.
|
|
2692
|
+
*/
|
|
2693
|
+
botsFiltersTest(client: RpcCaller, params: Api.BotFilterTestParams): Promise<Api.AgentApiOutcomeOfBotFilterTestResponse> {
|
|
2694
|
+
return client.call("bots/filters/test", params);
|
|
2695
|
+
},
|
|
2696
|
+
/**
|
|
2697
|
+
* Create a channel account
|
|
2698
|
+
*
|
|
2699
|
+
* Registers a provider account (Telegram, WhatsApp) for this universe. The credential is a retrievable grant reference; no token is accepted here.
|
|
2700
|
+
*/
|
|
2701
|
+
channelsAccountsCreate(client: RpcCaller, params: Api.ChannelAccountCreateParams): Promise<Api.AgentApiOutcomeOfChannelAccountCreateResponse> {
|
|
2702
|
+
return client.call("channels/accounts/create", params);
|
|
2703
|
+
},
|
|
2704
|
+
/**
|
|
2705
|
+
* Create or replace a channel account
|
|
2706
|
+
*
|
|
2707
|
+
* Replaces the account document whole; pass expectedRevision when replacing. The connector host picks the change up on its next discovery pass.
|
|
2708
|
+
*/
|
|
2709
|
+
channelsAccountsPut(client: RpcCaller, params: Api.ChannelAccountPutParams): Promise<Api.AgentApiOutcomeOfChannelAccountPutResponse> {
|
|
2710
|
+
return client.call("channels/accounts/put", params);
|
|
2711
|
+
},
|
|
2712
|
+
/**
|
|
2713
|
+
* Read a channel account
|
|
2714
|
+
*
|
|
2715
|
+
* Returns the account document and revision.
|
|
2716
|
+
*/
|
|
2717
|
+
channelsAccountsRead(client: RpcCaller, params: Api.ChannelAccountReadParams): Promise<Api.AgentApiOutcomeOfChannelAccountReadResponse> {
|
|
2718
|
+
return client.call("channels/accounts/read", params);
|
|
2719
|
+
},
|
|
2720
|
+
/**
|
|
2721
|
+
* List channel accounts
|
|
2722
|
+
*
|
|
2723
|
+
* Lists this universe's provider accounts, optionally by provider.
|
|
2724
|
+
*/
|
|
2725
|
+
channelsAccountsList(client: RpcCaller, params: Api.ChannelAccountListParams): Promise<Api.AgentApiOutcomeOfChannelAccountListResponse> {
|
|
2726
|
+
return client.call("channels/accounts/list", params);
|
|
2727
|
+
},
|
|
2728
|
+
/**
|
|
2729
|
+
* Delete a channel account
|
|
2730
|
+
*
|
|
2731
|
+
* Removes the account and its pairings; chat triggers that reference it stop serving conversations.
|
|
2732
|
+
*/
|
|
2733
|
+
channelsAccountsDelete(client: RpcCaller, params: Api.ChannelAccountDeleteParams): Promise<Api.AgentApiOutcomeOfChannelAccountDeleteResponse> {
|
|
2734
|
+
return client.call("channels/accounts/delete", params);
|
|
2735
|
+
},
|
|
2736
|
+
/**
|
|
2737
|
+
* Admit a provider message
|
|
2738
|
+
*
|
|
2739
|
+
* 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.
|
|
2740
|
+
*/
|
|
2741
|
+
channelsInboundAdmit(client: RpcCaller, params: Api.ChannelInboundAdmitParams): Promise<Api.AgentApiOutcomeOfChannelInboundAdmitResponse> {
|
|
2742
|
+
return client.call("channels/inbound/admit", params);
|
|
2743
|
+
},
|
|
2744
|
+
/**
|
|
2745
|
+
* List chat pairings
|
|
2746
|
+
*
|
|
2747
|
+
* Lists conversations paired to chat triggers, optionally by account or bot.
|
|
2748
|
+
*/
|
|
2749
|
+
channelsPairingsList(client: RpcCaller, params: Api.ChannelPairingListParams): Promise<Api.AgentApiOutcomeOfChannelPairingListResponse> {
|
|
2750
|
+
return client.call("channels/pairings/list", params);
|
|
2751
|
+
},
|
|
2752
|
+
/**
|
|
2753
|
+
* Unpair a conversation
|
|
2754
|
+
*
|
|
2755
|
+
* Removes one pairing; the conversation must present the pairing code again to reconnect.
|
|
2756
|
+
*/
|
|
2757
|
+
channelsPairingsDelete(client: RpcCaller, params: Api.ChannelPairingDeleteParams): Promise<Api.AgentApiOutcomeOfChannelPairingDeleteResponse> {
|
|
2758
|
+
return client.call("channels/pairings/delete", params);
|
|
2759
|
+
},
|
|
2760
|
+
/**
|
|
2761
|
+
* Read a conversation snapshot
|
|
2762
|
+
*
|
|
2763
|
+
* Queries the conversation workflow's live state for one chat, for debugging; absent when no workflow exists yet.
|
|
2764
|
+
*/
|
|
2765
|
+
channelsConversationsRead(client: RpcCaller, params: Api.ChannelConversationReadParams): Promise<Api.AgentApiOutcomeOfChannelConversationReadResponse> {
|
|
2766
|
+
return client.call("channels/conversations/read", params);
|
|
2767
|
+
},
|
|
2768
|
+
/**
|
|
2769
|
+
* Create a universe
|
|
2770
|
+
*
|
|
2771
|
+
* Creates the deployment tenant boundary for an explicit UUID. The operation is idempotent and reports whether a new universe was created.
|
|
2772
|
+
*/
|
|
2773
|
+
operatorUniversesCreate(client: RpcCaller, params: Api.OperatorUniverseCreateParams): Promise<Api.AgentApiOutcomeOfOperatorUniverseCreateResponse> {
|
|
2774
|
+
return client.call("operator/universes/create", params);
|
|
2775
|
+
},
|
|
2776
|
+
/**
|
|
2777
|
+
* List universes
|
|
2778
|
+
*
|
|
2779
|
+
* Returns deployment-wide universe summaries with approximate live aggregate counts and last session activity.
|
|
2780
|
+
*/
|
|
2781
|
+
operatorUniversesList(client: RpcCaller, params: Api.OperatorUniverseListParams): Promise<Api.AgentApiOutcomeOfOperatorUniverseListResponse> {
|
|
2782
|
+
return client.call("operator/universes/list", params);
|
|
2783
|
+
},
|
|
2784
|
+
/**
|
|
2785
|
+
* Read a universe
|
|
2786
|
+
*
|
|
2787
|
+
* Returns one deployment tenant summary with aggregate session, workspace, profile, and blob usage.
|
|
2788
|
+
*/
|
|
2789
|
+
operatorUniversesRead(client: RpcCaller, params: Api.OperatorUniverseReadParams): Promise<Api.AgentApiOutcomeOfOperatorUniverseReadResponse> {
|
|
2790
|
+
return client.call("operator/universes/read", params);
|
|
2791
|
+
},
|
|
2792
|
+
/**
|
|
2793
|
+
* Purge a universe
|
|
2794
|
+
*
|
|
2795
|
+
* Permanently terminates live session workflows, deletes external blob objects, and cascades universe data. The purge is resumable/idempotent after partial failure.
|
|
2796
|
+
*/
|
|
2797
|
+
operatorUniversesDelete(client: RpcCaller, params: Api.OperatorUniverseDeleteParams): Promise<Api.AgentApiOutcomeOfOperatorUniverseDeleteResponse> {
|
|
2798
|
+
return client.call("operator/universes/delete", params);
|
|
2799
|
+
},
|
|
2800
|
+
/**
|
|
2801
|
+
* Create a universe API key
|
|
2802
|
+
*
|
|
2803
|
+
* 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.
|
|
2804
|
+
*/
|
|
2805
|
+
operatorApiKeysCreate(client: RpcCaller, params: Api.OperatorApiKeyCreateParams): Promise<Api.AgentApiOutcomeOfOperatorApiKeyCreateResponse> {
|
|
2806
|
+
return client.call("operator/api-keys/create", params);
|
|
2807
|
+
},
|
|
2808
|
+
/**
|
|
2809
|
+
* List universe API keys
|
|
2810
|
+
*
|
|
2811
|
+
* Returns only non-secret key metadata for the requested universe, including revocation and last-use timestamps. Plaintext secrets are never stored or returned.
|
|
2812
|
+
*/
|
|
2813
|
+
operatorApiKeysList(client: RpcCaller, params: Api.OperatorApiKeyListParams): Promise<Api.AgentApiOutcomeOfOperatorApiKeyListResponse> {
|
|
2814
|
+
return client.call("operator/api-keys/list", params);
|
|
2815
|
+
},
|
|
2816
|
+
/**
|
|
2817
|
+
* Revoke a universe API key
|
|
2818
|
+
*
|
|
2819
|
+
* Immediately and idempotently revokes the matching key only when it belongs to the requested universe. Unknown and foreign-universe prefixes return not found.
|
|
2820
|
+
*/
|
|
2821
|
+
operatorApiKeysRevoke(client: RpcCaller, params: Api.OperatorApiKeyRevokeParams): Promise<Api.AgentApiOutcomeOfOperatorApiKeyRevokeResponse> {
|
|
2822
|
+
return client.call("operator/api-keys/revoke", params);
|
|
2823
|
+
},
|
|
2824
|
+
/**
|
|
2825
|
+
* Put an environment provider
|
|
2826
|
+
*
|
|
2827
|
+
* Registers or replaces one deployment provider and its controller connection. The provider does not call this API or require access to Lightspeed.
|
|
2828
|
+
*/
|
|
2829
|
+
operatorEnvironmentProvidersPut(client: RpcCaller, params: Api.OperatorEnvironmentProviderPutParams): Promise<Api.AgentApiOutcomeOfOperatorEnvironmentProviderPutResponse> {
|
|
2830
|
+
return client.call("operator/environment-providers/put", params);
|
|
2831
|
+
},
|
|
2832
|
+
/**
|
|
2833
|
+
* List environment providers
|
|
2834
|
+
*
|
|
2835
|
+
* Returns every operator-registered deployment provider and its controller connection.
|
|
2836
|
+
*/
|
|
2837
|
+
operatorEnvironmentProvidersList(client: RpcCaller, params: Api.OperatorEnvironmentProviderListParams): Promise<Api.AgentApiOutcomeOfOperatorEnvironmentProviderListResponse> {
|
|
2838
|
+
return client.call("operator/environment-providers/list", params);
|
|
2839
|
+
},
|
|
2840
|
+
/**
|
|
2841
|
+
* Read an environment provider
|
|
2842
|
+
*
|
|
2843
|
+
* Returns one operator-registered deployment provider and its controller connection.
|
|
2844
|
+
*/
|
|
2845
|
+
operatorEnvironmentProvidersRead(client: RpcCaller, params: Api.OperatorEnvironmentProviderReadParams): Promise<Api.AgentApiOutcomeOfOperatorEnvironmentProviderReadResponse> {
|
|
2846
|
+
return client.call("operator/environment-providers/read", params);
|
|
2847
|
+
},
|
|
2848
|
+
/**
|
|
2849
|
+
* Delete an environment provider
|
|
2850
|
+
*
|
|
2851
|
+
* Deletes a deployment provider only when no universe binding references it.
|
|
2852
|
+
*/
|
|
2853
|
+
operatorEnvironmentProvidersDelete(client: RpcCaller, params: Api.OperatorEnvironmentProviderDeleteParams): Promise<Api.AgentApiOutcomeOfOperatorEnvironmentProviderDeleteResponse> {
|
|
2854
|
+
return client.call("operator/environment-providers/delete", params);
|
|
2855
|
+
},
|
|
2856
|
+
/**
|
|
2857
|
+
* Put an environment provider binding
|
|
2858
|
+
*
|
|
2859
|
+
* Creates or replaces one universe's complete revisioned routing and admission binding. A deployment provider may have at most one binding in a universe.
|
|
2860
|
+
*/
|
|
2861
|
+
operatorEnvironmentProvidersBindingsPut(client: RpcCaller, params: Api.OperatorProviderBindingPutParams): Promise<Api.AgentApiOutcomeOfOperatorProviderBindingPutResponse> {
|
|
2862
|
+
return client.call("operator/environment-providers/bindings/put", params);
|
|
2863
|
+
},
|
|
2864
|
+
/**
|
|
2865
|
+
* Delete an environment provider binding
|
|
2866
|
+
*
|
|
2867
|
+
* Deletes a universe provider binding only after every referencing environment has reached Closed.
|
|
2868
|
+
*/
|
|
2869
|
+
operatorEnvironmentProvidersBindingsDelete(client: RpcCaller, params: Api.OperatorProviderBindingDeleteParams): Promise<Api.AgentApiOutcomeOfOperatorProviderBindingDeleteResponse> {
|
|
2870
|
+
return client.call("operator/environment-providers/bindings/delete", params);
|
|
2871
|
+
},
|
|
2872
|
+
/**
|
|
2873
|
+
* Adopt a provider environment
|
|
2874
|
+
*
|
|
2875
|
+
* Creates a universe environment by transferring an existing provider target into Lightspeed's managed lifecycle. The caller must explicitly accept ownership transfer.
|
|
2876
|
+
*/
|
|
2877
|
+
operatorEnvironmentsAdopt(client: RpcCaller, params: Api.OperatorEnvironmentAdoptParams): Promise<Api.AgentApiOutcomeOfOperatorEnvironmentAdoptResponse> {
|
|
2878
|
+
return client.call("operator/environments/adopt", params);
|
|
2879
|
+
},
|
|
2880
|
+
/**
|
|
2881
|
+
* List channel accounts across universes
|
|
2882
|
+
*
|
|
2883
|
+
* 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.
|
|
2884
|
+
*/
|
|
2885
|
+
operatorChannelsAccountsList(client: RpcCaller, params: Api.OperatorChannelAccountListParams): Promise<Api.AgentApiOutcomeOfOperatorChannelAccountListResponse> {
|
|
2886
|
+
return client.call("operator/channels/accounts/list", params);
|
|
2887
|
+
},
|
|
2888
|
+
} as const;
|