@sylphx/sdk 0.32.2 → 0.32.5
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/dist/access.d.ts +8 -3
- package/dist/access.js +6 -6
- package/dist/access.js.map +1 -1
- package/dist/agents.d.ts +586 -2
- package/dist/agents.js +495 -0
- package/dist/agents.js.map +1 -1
- package/dist/broker.d.ts +3 -2
- package/dist/broker.js.map +1 -1
- package/dist/hosting.d.ts +238 -1
- package/dist/hosting.js +171 -0
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +40 -0
- package/dist/ids.js +8 -0
- package/dist/ids.js.map +1 -1
- package/dist/methods.js +495 -7
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +235 -60
- package/dist/money.js +259 -124
- package/dist/money.js.map +1 -1
- package/dist/notify.d.ts +239 -0
- package/dist/notify.js +193 -0
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +303 -0
- package/dist/observability.js +220 -0
- package/dist/observability.js.map +1 -1
- package/dist/release.d.ts +86 -6
- package/dist/release.js +61 -0
- package/dist/release.js.map +1 -1
- package/dist/runtime.d.ts +3 -2
- package/dist/runtime.js +44 -11
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +95 -23
- package/dist/sandboxes.js +47 -6
- package/dist/sandboxes.js.map +1 -1
- package/dist/workflows.d.ts +53 -1
- package/dist/workflows.js +38 -2
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/agents.d.ts
CHANGED
|
@@ -3,6 +3,20 @@ import './common.js';
|
|
|
3
3
|
import type * as common from './common.js';
|
|
4
4
|
import './sandboxes.js';
|
|
5
5
|
import type * as sandboxes from './sandboxes.js';
|
|
6
|
+
/** The request of AbortAgentSessionTransfer. */
|
|
7
|
+
export interface AbortAgentSessionTransferRequest {
|
|
8
|
+
/** Exact transfer name; cannot abort an adopted Session. */
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
/** The request of AdoptAgentSessionTransfer. */
|
|
12
|
+
export interface AdoptAgentSessionTransferRequest {
|
|
13
|
+
/** Exact verified transfer name. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Exact read-back receipt durably recorded by the original source adapter. */
|
|
16
|
+
receiptSha256: string;
|
|
17
|
+
/** The original one-writer marker attestation bound at Begin. */
|
|
18
|
+
sourceFenceSha256: string;
|
|
19
|
+
}
|
|
6
20
|
/**
|
|
7
21
|
* An Agent is a versioned agent definition: model, instructions, tools, MCP
|
|
8
22
|
* servers, skills, memory stores, tool policy and budget. Each create or
|
|
@@ -128,6 +142,105 @@ export interface AgentSession {
|
|
|
128
142
|
*/
|
|
129
143
|
organizationLayer?: OrganizationLayer;
|
|
130
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* An optional durable objective of one Session. Model answers, waits and
|
|
147
|
+
* external Task completion never settle it implicitly.
|
|
148
|
+
*/
|
|
149
|
+
export interface AgentSessionGoal {
|
|
150
|
+
/** The exact Session-owned Goal name. */
|
|
151
|
+
name?: string;
|
|
152
|
+
/** The platform Resource UID; the conserved Goal UUID is its name's final id. */
|
|
153
|
+
readonly uid?: string;
|
|
154
|
+
/** Standard resource metadata. */
|
|
155
|
+
readonly meta?: common.ResourceMeta;
|
|
156
|
+
/** The objective, nonempty and at most 4,000 characters. */
|
|
157
|
+
objective?: string;
|
|
158
|
+
/** Omit unless the caller explicitly requests a positive token budget. */
|
|
159
|
+
tokenBudget?: string;
|
|
160
|
+
/** Lifecycle; an execution hold is represented separately. */
|
|
161
|
+
readonly state?: GoalState;
|
|
162
|
+
/** Optimistic acceptance-contract version, starting at one. */
|
|
163
|
+
readonly version?: number;
|
|
164
|
+
/** Observed tokens charged exactly once per runtime step. */
|
|
165
|
+
readonly tokensUsed?: string;
|
|
166
|
+
/** Unknown usage holds execution when a token budget is enforced. */
|
|
167
|
+
readonly usageUnavailable?: boolean;
|
|
168
|
+
/** Explicit owner pause; an unfinished Goal stays unfinished. */
|
|
169
|
+
readonly ownerPaused?: boolean;
|
|
170
|
+
/** Execution held after the required repeated observation of an impasse. */
|
|
171
|
+
readonly impasse?: boolean;
|
|
172
|
+
/** The terminal observation, retained after another Goal becomes active. */
|
|
173
|
+
readonly receipt?: SessionGoalReceipt;
|
|
174
|
+
/** When this Goal was created. */
|
|
175
|
+
readonly createTime?: string;
|
|
176
|
+
/** When this Goal last changed. */
|
|
177
|
+
readonly updateTime?: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* A bounded immutable source snapshot staged on an empty destination Session.
|
|
181
|
+
* Verification conserves bytes and identities; it grants no execution authority.
|
|
182
|
+
*/
|
|
183
|
+
export interface AgentSessionTransfer {
|
|
184
|
+
/** Destination Session and immutable transfer identity. */
|
|
185
|
+
name?: string;
|
|
186
|
+
/** Immutable Resource UID. */
|
|
187
|
+
readonly uid?: string;
|
|
188
|
+
/** Standard metadata. */
|
|
189
|
+
readonly meta?: common.ResourceMeta;
|
|
190
|
+
/** staging, verified, adopted or aborted. Verified does not admit execution. */
|
|
191
|
+
readonly state?: string;
|
|
192
|
+
/** Versioned source identity, transfer epoch and ordered byte/part digests. */
|
|
193
|
+
readonly manifest?: Record<string, unknown>;
|
|
194
|
+
/** Digest of the checked manifest, including original Session and epoch. */
|
|
195
|
+
readonly manifestSha256?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Caller attestation bound to its original durable writer fence. A digest
|
|
198
|
+
* does not prove that an external writer has stopped.
|
|
199
|
+
*/
|
|
200
|
+
readonly sourceFenceSha256?: string;
|
|
201
|
+
/** Exact stored-part metadata. Private payload bytes are never returned. */
|
|
202
|
+
readonly receivedParts?: SessionTransferPart[];
|
|
203
|
+
/** Original identities, destination mappings and unresolved effect holds. */
|
|
204
|
+
readonly receipt?: Record<string, unknown>;
|
|
205
|
+
/** Digest the source adapter reads back before acknowledging its handoff. */
|
|
206
|
+
readonly receiptSha256?: string;
|
|
207
|
+
/** Creation time. */
|
|
208
|
+
readonly createTime?: string;
|
|
209
|
+
/** Last lifecycle change time. */
|
|
210
|
+
readonly updateTime?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A durable external wait owned by a Session, optionally by its exact Goal.
|
|
214
|
+
* Readiness conserves observed evidence and does not authorize inference.
|
|
215
|
+
*/
|
|
216
|
+
export interface AgentSessionWait {
|
|
217
|
+
/** Exact name; the final segment is the conserved wait UUID. */
|
|
218
|
+
name?: string;
|
|
219
|
+
/** Immutable platform Resource UID. */
|
|
220
|
+
readonly uid?: string;
|
|
221
|
+
/** Standard metadata. */
|
|
222
|
+
readonly meta?: common.ResourceMeta;
|
|
223
|
+
/** Optional exact Goal in this Session, never a current-Goal selector. */
|
|
224
|
+
goal?: string;
|
|
225
|
+
/** time or signal. Other producer types require their own admitted adapter. */
|
|
226
|
+
type?: string;
|
|
227
|
+
/** Exact source reference for a signal; empty for a timer. */
|
|
228
|
+
reference?: string;
|
|
229
|
+
/** Actual future due time; required only for a timer. */
|
|
230
|
+
deadline?: string;
|
|
231
|
+
/** What to do after observing this wait's evidence, at most 16 KiB. */
|
|
232
|
+
resumePrompt?: string;
|
|
233
|
+
/** active, ready, resolved or cancelled. Ready still requires turn admission. */
|
|
234
|
+
readonly state?: string;
|
|
235
|
+
/** Original bounded observed evidence, retained through delivery and restart. */
|
|
236
|
+
readonly evidence?: Record<string, unknown>;
|
|
237
|
+
/** The only turn that consumed this wait; unset until resolved. */
|
|
238
|
+
readonly resumedTurn?: string;
|
|
239
|
+
/** Creation time. */
|
|
240
|
+
readonly createTime?: string;
|
|
241
|
+
/** Last state change time. */
|
|
242
|
+
readonly updateTime?: string;
|
|
243
|
+
}
|
|
131
244
|
/**
|
|
132
245
|
* AgentSpec is the caller-writable definition of an Agent. An AgentVersion
|
|
133
246
|
* holds a frozen copy of it.
|
|
@@ -237,6 +350,20 @@ export interface ArchiveAgentSessionRequest {
|
|
|
237
350
|
/** The name of the session to archive. */
|
|
238
351
|
name: string;
|
|
239
352
|
}
|
|
353
|
+
/** The request of BeginAgentSessionTransfer. */
|
|
354
|
+
export interface BeginAgentSessionTransferRequest {
|
|
355
|
+
/** Empty idle destination Session, already created through the ordinary API. */
|
|
356
|
+
parent: string;
|
|
357
|
+
/** Permanent caller identity; exact retries return the original transfer. */
|
|
358
|
+
operationId: string;
|
|
359
|
+
/**
|
|
360
|
+
* sylphx.agents.session-continuity.v1 manifest. At most 256 parts of 256
|
|
361
|
+
* KiB, and 64 MiB overall. Source epoch must be a positive signed int64.
|
|
362
|
+
*/
|
|
363
|
+
manifest: Record<string, unknown>;
|
|
364
|
+
/** SHA-256 attestation of the original storage's durable writer marker. */
|
|
365
|
+
sourceFenceSha256: string;
|
|
366
|
+
}
|
|
240
367
|
/** A BuiltinTool is a tool the platform provides. */
|
|
241
368
|
export interface BuiltinTool {
|
|
242
369
|
/** The built-in tool's id. */
|
|
@@ -244,6 +371,22 @@ export interface BuiltinTool {
|
|
|
244
371
|
/** Tool-specific settings, at most 16 KiB of JSON. */
|
|
245
372
|
config?: Record<string, unknown>;
|
|
246
373
|
}
|
|
374
|
+
/** The request of CancelAgentSessionWait. */
|
|
375
|
+
export interface CancelAgentSessionWaitRequest {
|
|
376
|
+
/** Exact wait name. */
|
|
377
|
+
name: string;
|
|
378
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
379
|
+
operationId: string;
|
|
380
|
+
}
|
|
381
|
+
/** The request of CancelQueuedSessionExecution. */
|
|
382
|
+
export interface CancelQueuedSessionExecutionRequest {
|
|
383
|
+
/** Exact reserved execution name. */
|
|
384
|
+
name: string;
|
|
385
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
386
|
+
operationId: string;
|
|
387
|
+
/** The exact authority generation to cancel, never a newest-row selector. */
|
|
388
|
+
expectedGeneration: string;
|
|
389
|
+
}
|
|
247
390
|
/** Caller-owned grant capture; only opaque metadata is returned. */
|
|
248
391
|
export interface CaptureCredentialRequest {
|
|
249
392
|
/** The environment in which the caller holds the existing grant. */
|
|
@@ -297,6 +440,23 @@ export interface ContentPart {
|
|
|
297
440
|
/** A file, by Sylphx Data object URL or an https URL. */
|
|
298
441
|
file?: FileRef;
|
|
299
442
|
}
|
|
443
|
+
/** The request of ControlAgentSessionGoal. */
|
|
444
|
+
export interface ControlAgentSessionGoalRequest {
|
|
445
|
+
/** The exact Goal name; never a lookup of a Session's newest Goal. */
|
|
446
|
+
name: string;
|
|
447
|
+
/** The contract version observed by the owner. */
|
|
448
|
+
expectedVersion: number;
|
|
449
|
+
/** Explicit owner action. Only AMEND accepts objective/budget changes. */
|
|
450
|
+
action: GoalControlAction;
|
|
451
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
452
|
+
operationId: string;
|
|
453
|
+
/** New objective, only when amending. Omission preserves the existing text. */
|
|
454
|
+
objective?: string;
|
|
455
|
+
/** New explicit token budget, only when amending. Omission preserves it. */
|
|
456
|
+
tokenBudget?: string;
|
|
457
|
+
/** Explicitly remove a budget when amending; incompatible with token_budget. */
|
|
458
|
+
clearTokenBudget?: boolean;
|
|
459
|
+
}
|
|
300
460
|
/** The request of CreateAgent. */
|
|
301
461
|
export interface CreateAgentRequest {
|
|
302
462
|
/** The parent to create in. */
|
|
@@ -311,6 +471,15 @@ export interface CreateAgentRequest {
|
|
|
311
471
|
/** Validate and return the result without writing anything. */
|
|
312
472
|
validateOnly?: boolean;
|
|
313
473
|
}
|
|
474
|
+
/** The request of CreateAgentSessionGoal. */
|
|
475
|
+
export interface CreateAgentSessionGoalRequest {
|
|
476
|
+
/** The existing Session that owns this Goal. */
|
|
477
|
+
parent: string;
|
|
478
|
+
/** Only objective and optional token_budget are caller supplied. */
|
|
479
|
+
agentSessionGoal: AgentSessionGoal;
|
|
480
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
481
|
+
operationId: string;
|
|
482
|
+
}
|
|
314
483
|
/** The request of CreateAgentSession. */
|
|
315
484
|
export interface CreateAgentSessionRequest {
|
|
316
485
|
/** The parent to create in. */
|
|
@@ -325,6 +494,17 @@ export interface CreateAgentSessionRequest {
|
|
|
325
494
|
/** Validate and return the result without writing anything. */
|
|
326
495
|
validateOnly?: boolean;
|
|
327
496
|
}
|
|
497
|
+
/** The request of CreateAgentSessionWait. */
|
|
498
|
+
export interface CreateAgentSessionWaitRequest {
|
|
499
|
+
/** Existing owning Session. */
|
|
500
|
+
parent: string;
|
|
501
|
+
/** Only type, reference/deadline, resume_prompt and optional goal are writable. */
|
|
502
|
+
agentSessionWait: AgentSessionWait;
|
|
503
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
504
|
+
operationId: string;
|
|
505
|
+
/** Required when the wait names a Goal; its exact observed contract version. */
|
|
506
|
+
expectedGoalVersion?: number;
|
|
507
|
+
}
|
|
328
508
|
/** The request of CreateMemory. */
|
|
329
509
|
export interface CreateMemoryRequest {
|
|
330
510
|
/** The memory store to create in. */
|
|
@@ -539,6 +719,11 @@ export interface FileRef {
|
|
|
539
719
|
/** Its display name. */
|
|
540
720
|
filename?: string;
|
|
541
721
|
}
|
|
722
|
+
/** The request of FinalizeAgentSessionTransfer. */
|
|
723
|
+
export interface FinalizeAgentSessionTransferRequest {
|
|
724
|
+
/** Exact transfer name. The immutable snapshot makes repetition idempotent. */
|
|
725
|
+
name: string;
|
|
726
|
+
}
|
|
542
727
|
/** A FunctionTool is a tool whose logic is the app's own server code. */
|
|
543
728
|
export interface FunctionTool {
|
|
544
729
|
/**
|
|
@@ -554,11 +739,26 @@ export interface GetAgentRequest {
|
|
|
554
739
|
/** The name of the agent to get. */
|
|
555
740
|
name: string;
|
|
556
741
|
}
|
|
742
|
+
/** The request of GetAgentSessionGoal. */
|
|
743
|
+
export interface GetAgentSessionGoalRequest {
|
|
744
|
+
/** The exact Goal name. */
|
|
745
|
+
name: string;
|
|
746
|
+
}
|
|
557
747
|
/** The request of GetAgentSession. */
|
|
558
748
|
export interface GetAgentSessionRequest {
|
|
559
749
|
/** The name of the session to get. */
|
|
560
750
|
name: string;
|
|
561
751
|
}
|
|
752
|
+
/** The request of GetAgentSessionTransfer. */
|
|
753
|
+
export interface GetAgentSessionTransferRequest {
|
|
754
|
+
/** Exact transfer name. */
|
|
755
|
+
name: string;
|
|
756
|
+
}
|
|
757
|
+
/** The request of GetAgentSessionWait. */
|
|
758
|
+
export interface GetAgentSessionWaitRequest {
|
|
759
|
+
/** Exact wait name. */
|
|
760
|
+
name: string;
|
|
761
|
+
}
|
|
562
762
|
/** The request of GetAgentVersion. */
|
|
563
763
|
export interface GetAgentVersionRequest {
|
|
564
764
|
/** The name of the agent version to get. */
|
|
@@ -579,6 +779,11 @@ export interface GetOwnerPoolRequest {
|
|
|
579
779
|
/** The name of the owner pool to get. */
|
|
580
780
|
name: string;
|
|
581
781
|
}
|
|
782
|
+
/** The request of GetQueuedSessionExecution. */
|
|
783
|
+
export interface GetQueuedSessionExecutionRequest {
|
|
784
|
+
/** Exact reserved execution name. */
|
|
785
|
+
name: string;
|
|
786
|
+
}
|
|
582
787
|
/** The request of GetSessionEvent. */
|
|
583
788
|
export interface GetSessionEventRequest {
|
|
584
789
|
/** The name of the session event to get. */
|
|
@@ -618,6 +823,22 @@ export interface InvokeToolRequest {
|
|
|
618
823
|
/** The stable operation identifier, reused for idempotent tool-call retries. */
|
|
619
824
|
opId: string;
|
|
620
825
|
}
|
|
826
|
+
/** The request of ListAgentSessionWaits. */
|
|
827
|
+
export interface ListAgentSessionWaitsRequest {
|
|
828
|
+
/** Existing owning Session. */
|
|
829
|
+
parent: string;
|
|
830
|
+
/** Default 50, clamped to 1000. */
|
|
831
|
+
pageSize?: number;
|
|
832
|
+
/** The preceding response's next_page_token. */
|
|
833
|
+
pageToken?: string;
|
|
834
|
+
}
|
|
835
|
+
/** The response of ListAgentSessionWaits. */
|
|
836
|
+
export interface ListAgentSessionWaitsResponse {
|
|
837
|
+
/** Ordered by conserved wait UUID. */
|
|
838
|
+
agentSessionWaits?: AgentSessionWait[];
|
|
839
|
+
/** Empty at the end. */
|
|
840
|
+
nextPageToken?: string;
|
|
841
|
+
}
|
|
621
842
|
/** The request of ListAgentSessions. */
|
|
622
843
|
export interface ListAgentSessionsRequest {
|
|
623
844
|
/** The parent to list in. */
|
|
@@ -1037,6 +1258,59 @@ export interface QualifyOwnerPoolMemberRequest {
|
|
|
1037
1258
|
*/
|
|
1038
1259
|
result: string;
|
|
1039
1260
|
}
|
|
1261
|
+
/** The request of QueueAgentSessionExecution. */
|
|
1262
|
+
export interface QueueAgentSessionExecutionRequest {
|
|
1263
|
+
/** Existing owning Session. */
|
|
1264
|
+
name: string;
|
|
1265
|
+
/** Existing handles captured by this caller for this exact future turn. */
|
|
1266
|
+
execution: SessionTurnExecution;
|
|
1267
|
+
/** Exact current Goal, or empty only when the Session has no Goal. */
|
|
1268
|
+
goal?: string;
|
|
1269
|
+
/** Required for a Goal; its observed contract version when granting authority. */
|
|
1270
|
+
expectedGoalVersion?: number;
|
|
1271
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1272
|
+
operationId: string;
|
|
1273
|
+
/** Zero on first creation; replacing authority requires its exact generation. */
|
|
1274
|
+
expectedGeneration?: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* Explicitly authorize automatic ready-wait resume with these exact captures.
|
|
1277
|
+
* Default false only reserves them. Requires captured agents:sessions as
|
|
1278
|
+
* well as runtime permissions; owner holds and ordinary admission still apply.
|
|
1279
|
+
*/
|
|
1280
|
+
automatic?: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Explicit caller authority reserved for one exact future Session turn.
|
|
1284
|
+
* It reuses captured credentials; it never mints, clones or extends a grant.
|
|
1285
|
+
*/
|
|
1286
|
+
export interface QueuedSessionExecution {
|
|
1287
|
+
/** Exact Session and reserved public turn number. */
|
|
1288
|
+
name?: string;
|
|
1289
|
+
/** Immutable platform Resource UID. */
|
|
1290
|
+
readonly uid?: string;
|
|
1291
|
+
/** Standard metadata. */
|
|
1292
|
+
readonly meta?: common.ResourceMeta;
|
|
1293
|
+
/** Exact future turn; never selected by a model or a Task. */
|
|
1294
|
+
readonly turn?: string;
|
|
1295
|
+
/** queued, consumed, superseded or cancelled. Queued does not run inference. */
|
|
1296
|
+
readonly state?: string;
|
|
1297
|
+
/** Optional exact Goal whose objective and budget this authority covers. */
|
|
1298
|
+
readonly goal?: string;
|
|
1299
|
+
/** Earliest captured handle expiry; ordinary admission revalidates all grants. */
|
|
1300
|
+
readonly expireTime?: string;
|
|
1301
|
+
/** When the caller reserved this execution. */
|
|
1302
|
+
readonly createTime?: string;
|
|
1303
|
+
/** When the state last changed. */
|
|
1304
|
+
readonly updateTime?: string;
|
|
1305
|
+
/** Configuration generation, advanced only by explicit replacement. */
|
|
1306
|
+
readonly generation?: string;
|
|
1307
|
+
/** Whether the caller explicitly authorized automatic wait readmission. */
|
|
1308
|
+
readonly automatic?: boolean;
|
|
1309
|
+
/** disabled, unscheduled, pending, waiting or finished; no inference implied. */
|
|
1310
|
+
readonly continuationState?: string;
|
|
1311
|
+
/** Current delivery/authority/owner hold, when automatic continuation is blocked. */
|
|
1312
|
+
readonly blockedReason?: string;
|
|
1313
|
+
}
|
|
1040
1314
|
/** A pinned tool called periodically while the accepted task owns its grant. */
|
|
1041
1315
|
export interface RenewalCall {
|
|
1042
1316
|
/** The authorized renewal tool name in the pinned agent version. */
|
|
@@ -1066,6 +1340,34 @@ export interface RepositorySpec {
|
|
|
1066
1340
|
/** The commit or ref to check out; empty uses the repository's default branch. */
|
|
1067
1341
|
revision?: string;
|
|
1068
1342
|
}
|
|
1343
|
+
/** The request of ResolveAgentSessionWait. */
|
|
1344
|
+
export interface ResolveAgentSessionWaitRequest {
|
|
1345
|
+
/** Exact wait name. */
|
|
1346
|
+
name: string;
|
|
1347
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1348
|
+
operationId: string;
|
|
1349
|
+
/** Exact recorded signal source; omitted for a timer. */
|
|
1350
|
+
reference?: string;
|
|
1351
|
+
/** Nonempty observed signal evidence; omitted for a timer. */
|
|
1352
|
+
evidence?: Record<string, unknown>;
|
|
1353
|
+
}
|
|
1354
|
+
/** The request of ResumeAgentSession. */
|
|
1355
|
+
export interface ResumeAgentSessionRequest {
|
|
1356
|
+
/** Existing owning Session, which must be idle or failed. */
|
|
1357
|
+
name: string;
|
|
1358
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1359
|
+
operationId: string;
|
|
1360
|
+
/** Exact ready owners, 1 to 16; must include all outstanding Session waits. */
|
|
1361
|
+
waits: string[];
|
|
1362
|
+
/** Fresh handles captured for this exact next turn; no Task is required. */
|
|
1363
|
+
execution: SessionTurnExecution;
|
|
1364
|
+
/**
|
|
1365
|
+
* Nonzero for automatic continuation: require this exact queued authority
|
|
1366
|
+
* generation, caller, Goal terms and execution. Zero is explicit fresh
|
|
1367
|
+
* caller admission. A delayed automatic callback never selects a replacement.
|
|
1368
|
+
*/
|
|
1369
|
+
queuedExecutionGeneration?: string;
|
|
1370
|
+
}
|
|
1069
1371
|
/** The request to revoke a captured credential handle. */
|
|
1070
1372
|
export interface RevokeCredentialRequest {
|
|
1071
1373
|
/** The environment that owns the captured handle. */
|
|
@@ -1211,6 +1513,12 @@ export interface SendAgentSessionMessageRequest {
|
|
|
1211
1513
|
name: string;
|
|
1212
1514
|
/** The message, 1 to 64 parts. */
|
|
1213
1515
|
message: Message;
|
|
1516
|
+
/**
|
|
1517
|
+
* Captured authority for a new hosted turn. Required when starting a turn
|
|
1518
|
+
* with the hosted runtime; an active-turn steer must omit it. Admission
|
|
1519
|
+
* checks the exact turn and pins these inputs atomically with the message.
|
|
1520
|
+
*/
|
|
1521
|
+
execution?: SessionTurnExecution;
|
|
1214
1522
|
}
|
|
1215
1523
|
/**
|
|
1216
1524
|
* A SessionEvent is one entry of a session's append-only log: a user
|
|
@@ -1261,6 +1569,45 @@ export interface SessionEvent {
|
|
|
1261
1569
|
error?: ErrorEvent;
|
|
1262
1570
|
/** For SANDBOX: authoritative allocation/release history, including replacements. */
|
|
1263
1571
|
sandbox?: SandboxActivity;
|
|
1572
|
+
/** For WAIT_CHANGED: a durable wait fact, without execution authority. */
|
|
1573
|
+
wait?: AgentSessionWait;
|
|
1574
|
+
/** For WAIT_CONTINUATION: ready owners consumed by exact turn admission. */
|
|
1575
|
+
waitContinuation?: SessionWaitContinuation;
|
|
1576
|
+
}
|
|
1577
|
+
/** An actual observation supporting terminal Goal settlement. */
|
|
1578
|
+
export interface SessionGoalReceipt {
|
|
1579
|
+
/** The observed delivery stage. */
|
|
1580
|
+
stage?: string;
|
|
1581
|
+
/** The concrete surface or artifact observed. */
|
|
1582
|
+
target?: string;
|
|
1583
|
+
/** Nonempty structured evidence from that surface. */
|
|
1584
|
+
evidence?: Record<string, unknown>;
|
|
1585
|
+
}
|
|
1586
|
+
/** A content-checked part receipt, without private state or source credentials. */
|
|
1587
|
+
export interface SessionTransferPart {
|
|
1588
|
+
/** Zero-based index in the immutable manifest. */
|
|
1589
|
+
index?: string;
|
|
1590
|
+
/** Exact stored byte count. */
|
|
1591
|
+
bytes?: string;
|
|
1592
|
+
/** SHA-256 of the exact binary body. */
|
|
1593
|
+
sha256?: string;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Authority for one hosted turn of an existing session. Handles are captured
|
|
1597
|
+
* through the public credential API for this exact session and turn; raw
|
|
1598
|
+
* credentials never enter the conversation or model context. No Task or
|
|
1599
|
+
* completion callback is required.
|
|
1600
|
+
*/
|
|
1601
|
+
export interface SessionTurnExecution {
|
|
1602
|
+
/** The expected next turn. A concurrent admission never changes this pin. */
|
|
1603
|
+
turn?: string;
|
|
1604
|
+
/** Same-turn captured caller authority for Workflows and lazy Sandbox APIs. */
|
|
1605
|
+
runtimeCredentialHandle?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Same-turn execution handles by alias, including inference and any pinned
|
|
1608
|
+
* tool or repository capabilities. Each retains its existing permission gate.
|
|
1609
|
+
*/
|
|
1610
|
+
credentials?: Record<string, CredentialBinding>;
|
|
1264
1611
|
}
|
|
1265
1612
|
/**
|
|
1266
1613
|
* SessionUsage is what a session has used. Model tokens are on the Sylphx AI
|
|
@@ -1274,6 +1621,24 @@ export interface SessionUsage {
|
|
|
1274
1621
|
/** Spend so far in micro-USD, models and tools together. */
|
|
1275
1622
|
readonly spendMicros?: string;
|
|
1276
1623
|
}
|
|
1624
|
+
/** Runtime input produced by consuming actual wait owners, not a user message. */
|
|
1625
|
+
export interface SessionWaitContinuation {
|
|
1626
|
+
/** Conserved wait snapshots and observed evidence for this exact turn. */
|
|
1627
|
+
readonly waits?: AgentSessionWait[];
|
|
1628
|
+
}
|
|
1629
|
+
/** The request of SettleAgentSessionGoal. */
|
|
1630
|
+
export interface SettleAgentSessionGoalRequest {
|
|
1631
|
+
/** The exact Goal name. */
|
|
1632
|
+
name: string;
|
|
1633
|
+
/** The acceptance-contract version observed by the caller. */
|
|
1634
|
+
expectedVersion: number;
|
|
1635
|
+
/** Only COMPLETED and FAILED settle a Goal. Waiting is not success. */
|
|
1636
|
+
state: GoalState;
|
|
1637
|
+
/** An actual observation at the delivered environment surface. */
|
|
1638
|
+
receipt: SessionGoalReceipt;
|
|
1639
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
1640
|
+
operationId: string;
|
|
1641
|
+
}
|
|
1277
1642
|
/**
|
|
1278
1643
|
* A Skill is an instruction pack the agent loads when its description
|
|
1279
1644
|
* matches the task.
|
|
@@ -1299,6 +1664,12 @@ export interface SteerAgentSessionRequest {
|
|
|
1299
1664
|
name: string;
|
|
1300
1665
|
/** The message, 1 to 64 parts. */
|
|
1301
1666
|
message: Message;
|
|
1667
|
+
/**
|
|
1668
|
+
* Captured authority for a new hosted turn. Required when starting a turn
|
|
1669
|
+
* with the hosted runtime; an active-turn steer must omit it. Admission
|
|
1670
|
+
* checks the exact turn and pins these inputs atomically with the message.
|
|
1671
|
+
*/
|
|
1672
|
+
execution?: SessionTurnExecution;
|
|
1302
1673
|
}
|
|
1303
1674
|
/** Observed per-step accounting. Exact decimal USD avoids binary rounding. */
|
|
1304
1675
|
export interface StepUsage {
|
|
@@ -1382,8 +1753,16 @@ export interface ToolCall {
|
|
|
1382
1753
|
readonly input?: Record<string, unknown>;
|
|
1383
1754
|
/** The model's own id for the call, as sent; never used as a key. */
|
|
1384
1755
|
readonly modelCallId?: string;
|
|
1385
|
-
/**
|
|
1756
|
+
/**
|
|
1757
|
+
* Whether the client must execute this pending call. Calls rejected before
|
|
1758
|
+
* dispatch remain in history with this false and a corresponding ToolResult.
|
|
1759
|
+
*/
|
|
1386
1760
|
readonly client?: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* The client call's fixed deadline. A reconnecting client never starts a
|
|
1763
|
+
* call after this time; retries retain the original deadline and call id.
|
|
1764
|
+
*/
|
|
1765
|
+
readonly deadline?: string;
|
|
1387
1766
|
}
|
|
1388
1767
|
/** The request for the tools available to a session execution capability. */
|
|
1389
1768
|
export interface ToolCatalogRequest {
|
|
@@ -1511,8 +1890,21 @@ export interface UpdateOwnerPoolRequest {
|
|
|
1511
1890
|
/** The fields to write: `spec`, `meta` or both; unset writes both. */
|
|
1512
1891
|
updateMask?: string;
|
|
1513
1892
|
}
|
|
1893
|
+
/** The request of WriteAgentSessionTransferPart. */
|
|
1894
|
+
export interface WriteAgentSessionTransferPartRequest {
|
|
1895
|
+
/** Exact transfer name. */
|
|
1896
|
+
name: string;
|
|
1897
|
+
/** Zero-based declared part index. */
|
|
1898
|
+
index: string;
|
|
1899
|
+
/** Base64 on the JSON wire; exact binary bytes, at most 256 KiB decoded. */
|
|
1900
|
+
data: string;
|
|
1901
|
+
}
|
|
1514
1902
|
/** ApprovalDecision is a person's answer to an approval. */
|
|
1515
1903
|
export type ApprovalDecision = 'approve' | 'reject' | (string & {});
|
|
1904
|
+
/** An authenticated owner action; model-generated evidence cannot grant it. */
|
|
1905
|
+
export type GoalControlAction = 'pause' | 'resume' | 'amend' | (string & {});
|
|
1906
|
+
/** Goal lifecycle, independent of optional Task dispatch and execution controls. */
|
|
1907
|
+
export type GoalState = 'working' | 'waiting' | 'completed' | 'failed' | (string & {});
|
|
1516
1908
|
/** MemoryScope is whose memories a store keeps apart. */
|
|
1517
1909
|
export type MemoryScope = 'project' | 'agent' | 'end_user' | (string & {});
|
|
1518
1910
|
/** MemorySource is who wrote a memory. */
|
|
@@ -1524,7 +1916,7 @@ export type PolicyDecision = 'allow' | 'deny' | 'ask' | (string & {});
|
|
|
1524
1916
|
/** Runtime-produced fields mapped into an authorized completion tool call. */
|
|
1525
1917
|
export type ResultField = 'text' | 'done' | 'next' | 'where' | 'outcome' | 'awaits' | 'checkpoint' | 'counted' | 'retry_at' | (string & {});
|
|
1526
1918
|
/** SessionEventType is what a session event records. */
|
|
1527
|
-
export type SessionEventType = 'user_message' | 'steer' | 'agent_message' | 'tool_call' | 'tool_result' | 'approval_requested' | 'approval_decided' | 'status' | 'compaction' | 'thought' | 'file_change' | 'response' | 'error' | 'usage' | 'sandbox' | (string & {});
|
|
1919
|
+
export type SessionEventType = 'user_message' | 'steer' | 'agent_message' | 'tool_call' | 'tool_result' | 'approval_requested' | 'approval_decided' | 'status' | 'compaction' | 'thought' | 'file_change' | 'response' | 'error' | 'usage' | 'sandbox' | 'wait_changed' | 'wait_continuation' | (string & {});
|
|
1528
1920
|
/** SessionState is where a session is. */
|
|
1529
1921
|
export type SessionState = 'idle' | 'running' | 'awaiting_approval' | 'awaiting_client' | 'failed' | 'archived' | (string & {});
|
|
1530
1922
|
/**
|
|
@@ -1547,12 +1939,20 @@ export type SessionState = 'idle' | 'running' | 'awaiting_approval' | 'awaiting_
|
|
|
1547
1939
|
* Namespace of Sylphx Agents on `Sylphx`.
|
|
1548
1940
|
*/
|
|
1549
1941
|
export declare class AgentsApi {
|
|
1942
|
+
/** The `transfers` collection. */
|
|
1943
|
+
readonly transfers: TransfersCollection;
|
|
1550
1944
|
/** The `agents` collection. */
|
|
1551
1945
|
readonly agents: AgentsCollection;
|
|
1552
1946
|
/** The `agent_versions` collection. */
|
|
1553
1947
|
readonly agentVersions: AgentVersionsCollection;
|
|
1554
1948
|
/** The `agent_sessions` collection. */
|
|
1555
1949
|
readonly agentSessions: AgentSessionsCollection;
|
|
1950
|
+
/** The `goals` collection. */
|
|
1951
|
+
readonly goals: GoalsCollection;
|
|
1952
|
+
/** The `waits` collection. */
|
|
1953
|
+
readonly waits: WaitsCollection;
|
|
1954
|
+
/** The `queued_executions` collection. */
|
|
1955
|
+
readonly queuedExecutions: QueuedExecutionsCollection;
|
|
1556
1956
|
/** The `session_events` collection. */
|
|
1557
1957
|
readonly sessionEvents: SessionEventsCollection;
|
|
1558
1958
|
/** The `memory_stores` collection. */
|
|
@@ -1563,6 +1963,65 @@ export declare class AgentsApi {
|
|
|
1563
1963
|
readonly ownerPools: OwnerPoolsCollection;
|
|
1564
1964
|
constructor(client: runtime.Client);
|
|
1565
1965
|
}
|
|
1966
|
+
/** `transfers` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionTransfer`. */
|
|
1967
|
+
export declare class TransfersCollection {
|
|
1968
|
+
private readonly client;
|
|
1969
|
+
constructor(client: runtime.Client);
|
|
1970
|
+
/**
|
|
1971
|
+
* Stages a uniquely identified source epoch on an empty idle Session.
|
|
1972
|
+
* The source adapter must already hold its durable one-writer fence.
|
|
1973
|
+
*
|
|
1974
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/transfers:begin` · permission `agents:sessions` · effect `write`
|
|
1975
|
+
*
|
|
1976
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`.
|
|
1977
|
+
*/
|
|
1978
|
+
begin(request: BeginAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
1979
|
+
/**
|
|
1980
|
+
* Returns hashes and original/destination mappings, never private payload.
|
|
1981
|
+
*
|
|
1982
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}` · permission `agents:sessions` · effect `read`
|
|
1983
|
+
*
|
|
1984
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
1985
|
+
*/
|
|
1986
|
+
get(request: GetAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Stores at most 256 KiB of exact bytes under its declared part digest.
|
|
1989
|
+
* An acknowledgement loss can repeat the identical part without mutation.
|
|
1990
|
+
*
|
|
1991
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:writePart` · permission `agents:sessions` · effect `write`
|
|
1992
|
+
*
|
|
1993
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`.
|
|
1994
|
+
*/
|
|
1995
|
+
writePart(request: WriteAgentSessionTransferPartRequest): Promise<SessionTransferPart>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Re-reads ordered parts, checks the whole snapshot and validates the
|
|
1998
|
+
* portable state. An unknown effect stays held; this call never executes.
|
|
1999
|
+
*
|
|
2000
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:finalize` · permission `agents:sessions` · effect `write`
|
|
2001
|
+
*
|
|
2002
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2003
|
+
*/
|
|
2004
|
+
finalize(request: FinalizeAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
2005
|
+
/**
|
|
2006
|
+
* After the source durably records the exact verified receipt under its
|
|
2007
|
+
* writer fence, atomically projects conserved state without starting a turn.
|
|
2008
|
+
* Unknown outcomes or incompatible pinned model context remain held.
|
|
2009
|
+
*
|
|
2010
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:adopt` · permission `agents:sessions` · effect `write`
|
|
2011
|
+
*
|
|
2012
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2013
|
+
*/
|
|
2014
|
+
adopt(request: AdoptAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
2015
|
+
/**
|
|
2016
|
+
* Releases only a destination that has not adopted source state. Immutable
|
|
2017
|
+
* source bytes/epoch remain retained; source writer release is app-owned.
|
|
2018
|
+
*
|
|
2019
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:abort` · permission `agents:sessions` · effect `write`
|
|
2020
|
+
*
|
|
2021
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2022
|
+
*/
|
|
2023
|
+
abort(request: AbortAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
2024
|
+
}
|
|
1566
2025
|
/** `agents` of Sylphx Agents: Resource type `agents.sylphx.com/Agent`. */
|
|
1567
2026
|
export declare class AgentsCollection {
|
|
1568
2027
|
private readonly client;
|
|
@@ -1740,6 +2199,22 @@ export declare class AgentSessionsCollection {
|
|
|
1740
2199
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1741
2200
|
*/
|
|
1742
2201
|
archive(request: ArchiveAgentSessionRequest): Promise<AgentSession>;
|
|
2202
|
+
/**
|
|
2203
|
+
* Explicitly reserves existing captured authority for one future turn, without executing it.
|
|
2204
|
+
*
|
|
2205
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*}:queueExecution` · permission `agents:sessions` · effect `write`
|
|
2206
|
+
*
|
|
2207
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2208
|
+
*/
|
|
2209
|
+
queueExecution(request: QueueAgentSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Consumes all ready owners atomically with fresh exact-next-turn authority.
|
|
2212
|
+
*
|
|
2213
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*}:resume` · permission `agents:sessions` · effect `write`
|
|
2214
|
+
*
|
|
2215
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2216
|
+
*/
|
|
2217
|
+
resume(request: ResumeAgentSessionRequest): Promise<SessionEvent>;
|
|
1743
2218
|
/**
|
|
1744
2219
|
* Sends a user message. On an idle or failed session it starts a new turn;
|
|
1745
2220
|
* while a turn runs it is refused with `INVALID_STATE` (use `:steer`).
|
|
@@ -1785,6 +2260,115 @@ export declare class AgentSessionsCollection {
|
|
|
1785
2260
|
*/
|
|
1786
2261
|
submitToolResult(request: SubmitAgentSessionToolResultRequest): Promise<SessionEvent>;
|
|
1787
2262
|
}
|
|
2263
|
+
/** `goals` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionGoal`. */
|
|
2264
|
+
export declare class GoalsCollection {
|
|
2265
|
+
private readonly client;
|
|
2266
|
+
constructor(client: runtime.Client);
|
|
2267
|
+
/**
|
|
2268
|
+
* Creates an optional objective owned by this Session, without an external Task.
|
|
2269
|
+
* The operation_id keeps the original receipt beyond request replay expiry.
|
|
2270
|
+
*
|
|
2271
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/goals` · permission `agents:sessions` · effect `write`
|
|
2272
|
+
*
|
|
2273
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2274
|
+
*/
|
|
2275
|
+
create(request: CreateAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2276
|
+
/**
|
|
2277
|
+
* Reads the exact Goal, including its terminal receipt after a successor starts.
|
|
2278
|
+
*
|
|
2279
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}` · permission `agents:sessions` · effect `read`
|
|
2280
|
+
*
|
|
2281
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2282
|
+
*/
|
|
2283
|
+
get(request: GetAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Settles only the named Goal/version with an observed environment receipt.
|
|
2286
|
+
* Replaying operation_id returns its original receipt, never its successor.
|
|
2287
|
+
*
|
|
2288
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}:settle` · permission `agents:sessions` · effect `write`
|
|
2289
|
+
*
|
|
2290
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2291
|
+
*/
|
|
2292
|
+
settle(request: SettleAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Applies an explicit owner control to this exact Goal/version. Pause
|
|
2295
|
+
* interrupts only its current execution; resume does not resolve a wait or
|
|
2296
|
+
* clear observed usage. Amend changes only supplied objective/budget fields.
|
|
2297
|
+
*
|
|
2298
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}:control` · permission `agents:sessions` · effect `write`
|
|
2299
|
+
*
|
|
2300
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2301
|
+
*/
|
|
2302
|
+
control(request: ControlAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2303
|
+
}
|
|
2304
|
+
/** `waits` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionWait`. */
|
|
2305
|
+
export declare class WaitsCollection {
|
|
2306
|
+
private readonly client;
|
|
2307
|
+
constructor(client: runtime.Client);
|
|
2308
|
+
/**
|
|
2309
|
+
* Creates a durable wait on an idle Session, with permanent operation replay.
|
|
2310
|
+
*
|
|
2311
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/waits` · permission `agents:sessions` · effect `write`
|
|
2312
|
+
*
|
|
2313
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2314
|
+
*/
|
|
2315
|
+
create(request: CreateAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Reads an exact wait and its retained evidence.
|
|
2318
|
+
*
|
|
2319
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}` · permission `agents:sessions` · effect `read`
|
|
2320
|
+
*
|
|
2321
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2322
|
+
*/
|
|
2323
|
+
get(request: GetAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Lists durable waits, including ready undelivered owners.
|
|
2326
|
+
*
|
|
2327
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/waits` · permission `agents:sessions` · effect `read`
|
|
2328
|
+
*
|
|
2329
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2330
|
+
*/
|
|
2331
|
+
list(request: ListAgentSessionWaitsRequest): Promise<ListAgentSessionWaitsResponse>;
|
|
2332
|
+
/** Every item of every page of `list`. */
|
|
2333
|
+
listAll(request: ListAgentSessionWaitsRequest): AsyncGenerator<AgentSessionWait>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Records observed signal evidence or checks a timer against its actual due time.
|
|
2336
|
+
*
|
|
2337
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}:resolve` · permission `agents:sessions` · effect `write`
|
|
2338
|
+
*
|
|
2339
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2340
|
+
*/
|
|
2341
|
+
resolve(request: ResolveAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Cancels only this exact undelivered wait; repeated operations retain receipts.
|
|
2344
|
+
*
|
|
2345
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}:cancel` · permission `agents:sessions` · effect `write`
|
|
2346
|
+
*
|
|
2347
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2348
|
+
*/
|
|
2349
|
+
cancel(request: CancelAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2350
|
+
}
|
|
2351
|
+
/** `queued_executions` of Sylphx Agents: Resource type `agents.sylphx.com/QueuedSessionExecution`. */
|
|
2352
|
+
export declare class QueuedExecutionsCollection {
|
|
2353
|
+
private readonly client;
|
|
2354
|
+
constructor(client: runtime.Client);
|
|
2355
|
+
/**
|
|
2356
|
+
* Reads the state of an exact future-turn authorization.
|
|
2357
|
+
*
|
|
2358
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/queued_executions/*}` · permission `agents:sessions` · effect `read`
|
|
2359
|
+
*
|
|
2360
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2361
|
+
*/
|
|
2362
|
+
get(request: GetQueuedSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2363
|
+
/**
|
|
2364
|
+
* Cancels only a queued future execution; an already admitted turn retains its receipt.
|
|
2365
|
+
*
|
|
2366
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/queued_executions/*}:cancel` · permission `agents:sessions` · effect `write`
|
|
2367
|
+
*
|
|
2368
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2369
|
+
*/
|
|
2370
|
+
cancel(request: CancelQueuedSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2371
|
+
}
|
|
1788
2372
|
/** `session_events` of Sylphx Agents: Resource type `agents.sylphx.com/SessionEvent`. */
|
|
1789
2373
|
export declare class SessionEventsCollection {
|
|
1790
2374
|
private readonly client;
|