@deepraxis/sdk 0.1.1-dev.842dfd1 → 0.1.1-dev.8668e4c
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/METHODS.md +7 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +24 -16
- package/dist/generated/sdk.gen.js +39 -15
- package/dist/generated/types.gen.d.ts +2338 -388
- package/dist/operations.generated.js +62 -26
- package/dist/resources.generated.d.ts +558 -0
- package/dist/resources.generated.js +3 -0
- package/package.json +1 -1
|
@@ -19611,7 +19611,7 @@ export type MediaJob = {
|
|
|
19611
19611
|
/**
|
|
19612
19612
|
* Why a queued generation job has not started yet. queue_reason is omitted once the job starts.
|
|
19613
19613
|
*/
|
|
19614
|
-
queue_reason?: 'concurrency' | 'provider_throttled';
|
|
19614
|
+
queue_reason?: 'concurrency' | 'provider_throttled' | 'provider_queue';
|
|
19615
19615
|
/**
|
|
19616
19616
|
* Present while the job waits for a slot (queue_reason concurrency): its place in line among the waiting jobs of its type in this library, 1 for the next to start. Waiting jobs start oldest first; keep polling the job, there is nothing to resubmit.
|
|
19617
19617
|
*/
|
|
@@ -19853,7 +19853,7 @@ export type MediaAssetReference = {
|
|
|
19853
19853
|
strength?: number;
|
|
19854
19854
|
};
|
|
19855
19855
|
/**
|
|
19856
|
-
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and
|
|
19856
|
+
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
|
|
19857
19857
|
*/
|
|
19858
19858
|
export type MediaEditOperation = {
|
|
19859
19859
|
/**
|
|
@@ -20095,13 +20095,17 @@ export type MediaEditOperation = {
|
|
|
20095
20095
|
*/
|
|
20096
20096
|
type: 'lip_sync';
|
|
20097
20097
|
/**
|
|
20098
|
-
* Audio asset whose speech should
|
|
20098
|
+
* Audio or voice asset in the same library whose speech the lips should follow. Anything else is refused with the field named.
|
|
20099
20099
|
*/
|
|
20100
20100
|
audio_asset_id?: MediaAssetId;
|
|
20101
20101
|
/**
|
|
20102
|
-
*
|
|
20102
|
+
* Not carried out yet: synthesize the recording first with POST /media/v1/libraries/{library_id}/speech and name it in audio_asset_id.
|
|
20103
20103
|
*/
|
|
20104
20104
|
speech?: MediaSpeechCreateInput;
|
|
20105
|
+
/**
|
|
20106
|
+
* Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available.
|
|
20107
|
+
*/
|
|
20108
|
+
model?: string;
|
|
20105
20109
|
} | {
|
|
20106
20110
|
/**
|
|
20107
20111
|
* Edit operation discriminator; frame selects the frame branch of this union.
|
|
@@ -20202,6 +20206,19 @@ export type MediaEditOperation = {
|
|
|
20202
20206
|
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20203
20207
|
*/
|
|
20204
20208
|
model?: string;
|
|
20209
|
+
} | {
|
|
20210
|
+
/**
|
|
20211
|
+
* Edit operation discriminator; extract_audio selects the extract_audio branch of this union.
|
|
20212
|
+
*/
|
|
20213
|
+
type: 'extract_audio';
|
|
20214
|
+
/**
|
|
20215
|
+
* Seconds into the source video where the audio starts, 0 or more; omit it to begin at the start.
|
|
20216
|
+
*/
|
|
20217
|
+
start_seconds?: number;
|
|
20218
|
+
/**
|
|
20219
|
+
* Seconds into the source video where the audio ends, after start_seconds; omit it to keep to the source’s end. A value past the end is the end.
|
|
20220
|
+
*/
|
|
20221
|
+
end_seconds?: number;
|
|
20205
20222
|
} | {
|
|
20206
20223
|
/**
|
|
20207
20224
|
* Edit operation discriminator; replace_person selects the replace_person branch of this union.
|
|
@@ -20215,6 +20232,53 @@ export type MediaEditOperation = {
|
|
|
20215
20232
|
* Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20216
20233
|
*/
|
|
20217
20234
|
model?: string;
|
|
20235
|
+
} | {
|
|
20236
|
+
/**
|
|
20237
|
+
* Edit operation discriminator; animate_person selects the animate_person branch of this union.
|
|
20238
|
+
*/
|
|
20239
|
+
type: 'animate_person';
|
|
20240
|
+
/**
|
|
20241
|
+
* Image asset in the same library showing the person or character to animate. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
|
|
20242
|
+
*/
|
|
20243
|
+
person_asset_id: MediaAssetId;
|
|
20244
|
+
/**
|
|
20245
|
+
* Which tier: video-animate-person-flash or video-animate-person-pro, as the generation capabilities publish them for animate_person with their prices; omit it to use the first available.
|
|
20246
|
+
*/
|
|
20247
|
+
model?: string;
|
|
20248
|
+
} | {
|
|
20249
|
+
/**
|
|
20250
|
+
* Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
|
|
20251
|
+
*/
|
|
20252
|
+
type: 'talking_avatar';
|
|
20253
|
+
/**
|
|
20254
|
+
* Audio or voice asset in the same library with the speech or song, at most 20 seconds.
|
|
20255
|
+
*/
|
|
20256
|
+
audio_asset_id: MediaAssetId;
|
|
20257
|
+
/**
|
|
20258
|
+
* Which tier: video-talking-avatar-flash (480P) or video-talking-avatar-pro (720P), as the generation capabilities publish them for talking_avatar with their prices; omit it to use the first available.
|
|
20259
|
+
*/
|
|
20260
|
+
model?: string;
|
|
20261
|
+
} | {
|
|
20262
|
+
/**
|
|
20263
|
+
* Edit operation discriminator; edit_video selects the edit_video branch of this union.
|
|
20264
|
+
*/
|
|
20265
|
+
type: 'edit_video';
|
|
20266
|
+
/**
|
|
20267
|
+
* One instruction describing the change to make, up to 5000 characters; the video keeps its own length and aspect ratio.
|
|
20268
|
+
*/
|
|
20269
|
+
prompt: string;
|
|
20270
|
+
/**
|
|
20271
|
+
* What the edit should avoid, up to 500 characters.
|
|
20272
|
+
*/
|
|
20273
|
+
negative_prompt?: string;
|
|
20274
|
+
/**
|
|
20275
|
+
* Optional image asset in the same library to guide the edit. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
|
|
20276
|
+
*/
|
|
20277
|
+
reference_asset_id?: MediaAssetId;
|
|
20278
|
+
/**
|
|
20279
|
+
* Which tier: the Flash model (720P) or the Pro model (1080P), as the generation capabilities publish them for the video_edit capability with their prices; omit it to use the first available.
|
|
20280
|
+
*/
|
|
20281
|
+
model?: string;
|
|
20218
20282
|
} | {
|
|
20219
20283
|
/**
|
|
20220
20284
|
* Edit operation discriminator; voice_change selects the voice_change branch of this union.
|
|
@@ -20384,6 +20448,23 @@ export type MediaGenerationCapabilities = {
|
|
|
20384
20448
|
speech: MediaGenerationTypeCapability;
|
|
20385
20449
|
matting: MediaGenerationTypeCapability;
|
|
20386
20450
|
};
|
|
20451
|
+
/**
|
|
20452
|
+
* The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person, talking_avatar and edit_video (video_edit). Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
|
|
20453
|
+
*/
|
|
20454
|
+
processes: {
|
|
20455
|
+
upscale: MediaGenerationProcessCapability;
|
|
20456
|
+
voice_enhance: MediaGenerationProcessCapability;
|
|
20457
|
+
reframe: MediaGenerationProcessCapability;
|
|
20458
|
+
redact: MediaGenerationProcessCapability;
|
|
20459
|
+
align: MediaGenerationProcessCapability;
|
|
20460
|
+
clip: MediaGenerationProcessCapability;
|
|
20461
|
+
erase: MediaGenerationProcessCapability;
|
|
20462
|
+
replace_person: MediaGenerationProcessCapability;
|
|
20463
|
+
lip_sync: MediaGenerationProcessCapability;
|
|
20464
|
+
animate_person: MediaGenerationProcessCapability;
|
|
20465
|
+
talking_avatar: MediaGenerationProcessCapability;
|
|
20466
|
+
video_edit: MediaGenerationProcessCapability;
|
|
20467
|
+
};
|
|
20387
20468
|
};
|
|
20388
20469
|
/**
|
|
20389
20470
|
* A video asset’s on-demand HLS ladder for its current version: the asset, the version, and one summary per recorded rung.
|
|
@@ -24566,6 +24647,10 @@ export type TicketComment = {
|
|
|
24566
24647
|
* Last edit timestamp.
|
|
24567
24648
|
*/
|
|
24568
24649
|
update_time: string;
|
|
24650
|
+
/**
|
|
24651
|
+
* Present only when something in the body could not be resolved; absent when it all resolved.
|
|
24652
|
+
*/
|
|
24653
|
+
warnings?: Array<string>;
|
|
24569
24654
|
};
|
|
24570
24655
|
/**
|
|
24571
24656
|
* A repository label.
|
|
@@ -37444,6 +37529,15 @@ export type MediaGenerationTypeCapability = {
|
|
|
37444
37529
|
*/
|
|
37445
37530
|
models: Array<MediaGenerationCapabilityModel>;
|
|
37446
37531
|
};
|
|
37532
|
+
/**
|
|
37533
|
+
* The models one processing capability offers.
|
|
37534
|
+
*/
|
|
37535
|
+
export type MediaGenerationProcessCapability = {
|
|
37536
|
+
/**
|
|
37537
|
+
* Every model the platform catalogue offers for this processing capability, in a stable order, with available and price. A processing model is charged per second it produces (price.unit second); a model with no published rate has no price.
|
|
37538
|
+
*/
|
|
37539
|
+
models: Array<MediaGenerationCapabilityModel>;
|
|
37540
|
+
};
|
|
37447
37541
|
export type MediaHlsRendition = {
|
|
37448
37542
|
/**
|
|
37449
37543
|
* Clarity rung as its playlist calls it; the height with a p, so 480p is the short side at 480 pixels.
|
|
@@ -37820,9 +37914,9 @@ export type SandboxTemplateBuild = {
|
|
|
37820
37914
|
*/
|
|
37821
37915
|
export type ShareShareResource = {
|
|
37822
37916
|
/**
|
|
37823
|
-
* What kind of object is shared; file, canvas and
|
|
37917
|
+
* What kind of object is shared; file, canvas, media_asset and agent create today.
|
|
37824
37918
|
*/
|
|
37825
|
-
type: 'file' | 'artifact' | 'canvas' | 'media_asset';
|
|
37919
|
+
type: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
|
|
37826
37920
|
/**
|
|
37827
37921
|
* Id of the object within its type. For a file, the id from the File API; for a canvas, the canvas id (cvs_...); for a media_asset, library_id/asset_id with a real library id (lib_...), never the default alias. An object that does not exist in this organization answers 404 RESOURCE_NOT_FOUND.
|
|
37828
37922
|
*/
|
|
@@ -44331,6 +44425,14 @@ export type MediaGenerationCapabilityModel = {
|
|
|
44331
44425
|
* Video models that take reference pictures only: the most reference pictures one request with mode reference may name on this model, counted after any element is expanded. Present exactly when modes includes reference, and absent on every other model — a model without this key cannot be driven in reference mode and a request naming it is refused with OPERATION_NOT_SUPPORTED before any job. A request naming more pictures than this is refused with INVALID_PARAMS; every model is also capped at the platform’s own 9, so this value is never greater than 9.
|
|
44332
44426
|
*/
|
|
44333
44427
|
max_reference_images?: number;
|
|
44428
|
+
/**
|
|
44429
|
+
* Video models whose modes include edit only: the most input videos one request may carry on this model, an edit’s source counting as one (Doubao Seedance 2.5 takes 10, the 2.0 series 3).
|
|
44430
|
+
*/
|
|
44431
|
+
max_reference_videos?: number;
|
|
44432
|
+
/**
|
|
44433
|
+
* Video models whose modes include edit only: the shortest source video an edit accepts, in seconds; a shorter source is refused with INVALID_PARAMS before any job or charge.
|
|
44434
|
+
*/
|
|
44435
|
+
min_edit_source_seconds?: number;
|
|
44334
44436
|
/**
|
|
44335
44437
|
* Video models only: the durations in seconds the platform has registered for this model, ascending. Read it before requesting and pass one of these as duration_seconds; an empty list means the platform has not registered durations for the model yet, so omit duration_seconds and the model’s own default applies. It is never a substituted default: an empty list is not a claim that any duration works.
|
|
44336
44438
|
*/
|
|
@@ -47579,7 +47681,7 @@ export type DevopsTargetPath = string;
|
|
|
47579
47681
|
*/
|
|
47580
47682
|
export type DevopsLockId = string;
|
|
47581
47683
|
/**
|
|
47582
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
47684
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
47583
47685
|
*/
|
|
47584
47686
|
export type DevopsChangeIdPath = string;
|
|
47585
47687
|
/**
|
|
@@ -49860,7 +49962,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
49860
49962
|
*/
|
|
49861
49963
|
note: string | null;
|
|
49862
49964
|
/**
|
|
49863
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
49965
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
49864
49966
|
*/
|
|
49865
49967
|
bindings: Array<{
|
|
49866
49968
|
/**
|
|
@@ -49875,6 +49977,10 @@ export type ApplyAgentVersionResponses = {
|
|
|
49875
49977
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
49876
49978
|
*/
|
|
49877
49979
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
49980
|
+
/**
|
|
49981
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
49982
|
+
*/
|
|
49983
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
49878
49984
|
/**
|
|
49879
49985
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
49880
49986
|
*/
|
|
@@ -50299,6 +50405,10 @@ export type ApplyAgentVersionResponses = {
|
|
|
50299
50405
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
50300
50406
|
*/
|
|
50301
50407
|
creation_source: string | null;
|
|
50408
|
+
/**
|
|
50409
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
50410
|
+
*/
|
|
50411
|
+
managed_by: string | null;
|
|
50302
50412
|
/**
|
|
50303
50413
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
50304
50414
|
*/
|
|
@@ -51099,7 +51209,7 @@ export type UnarchiveAgentResponses = {
|
|
|
51099
51209
|
*/
|
|
51100
51210
|
note: string | null;
|
|
51101
51211
|
/**
|
|
51102
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
51212
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
51103
51213
|
*/
|
|
51104
51214
|
bindings: Array<{
|
|
51105
51215
|
/**
|
|
@@ -51114,6 +51224,10 @@ export type UnarchiveAgentResponses = {
|
|
|
51114
51224
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
51115
51225
|
*/
|
|
51116
51226
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
51227
|
+
/**
|
|
51228
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
51229
|
+
*/
|
|
51230
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
51117
51231
|
/**
|
|
51118
51232
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
51119
51233
|
*/
|
|
@@ -51538,6 +51652,10 @@ export type UnarchiveAgentResponses = {
|
|
|
51538
51652
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
51539
51653
|
*/
|
|
51540
51654
|
creation_source: string | null;
|
|
51655
|
+
/**
|
|
51656
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
51657
|
+
*/
|
|
51658
|
+
managed_by: string | null;
|
|
51541
51659
|
/**
|
|
51542
51660
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
51543
51661
|
*/
|
|
@@ -52523,7 +52641,7 @@ export type GetAgentEmbedPolicyData = {
|
|
|
52523
52641
|
};
|
|
52524
52642
|
export type GetAgentEmbedPolicyErrors = {
|
|
52525
52643
|
/**
|
|
52526
|
-
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
|
|
52644
|
+
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
|
|
52527
52645
|
*/
|
|
52528
52646
|
400: unknown;
|
|
52529
52647
|
/**
|
|
@@ -52554,7 +52672,7 @@ export type GetAgentEmbedPolicyErrors = {
|
|
|
52554
52672
|
export type GetAgentEmbedPolicyError = GetAgentEmbedPolicyErrors[keyof GetAgentEmbedPolicyErrors];
|
|
52555
52673
|
export type GetAgentEmbedPolicyResponses = {
|
|
52556
52674
|
/**
|
|
52557
|
-
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch
|
|
52675
|
+
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
|
|
52558
52676
|
*/
|
|
52559
52677
|
200: {
|
|
52560
52678
|
/**
|
|
@@ -52582,6 +52700,23 @@ export type GetAgentEmbedPolicyResponses = {
|
|
|
52582
52700
|
*/
|
|
52583
52701
|
max_files_per_session: number;
|
|
52584
52702
|
};
|
|
52703
|
+
/**
|
|
52704
|
+
* Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
|
|
52705
|
+
*/
|
|
52706
|
+
share_links: {
|
|
52707
|
+
/**
|
|
52708
|
+
* Whether this agent may be shared by link. Off by default.
|
|
52709
|
+
*/
|
|
52710
|
+
enabled: boolean;
|
|
52711
|
+
/**
|
|
52712
|
+
* The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
|
|
52713
|
+
*/
|
|
52714
|
+
daily_session_cap: number | null;
|
|
52715
|
+
/**
|
|
52716
|
+
* The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
|
|
52717
|
+
*/
|
|
52718
|
+
daily_spend_cap_micro_usd: number | null;
|
|
52719
|
+
};
|
|
52585
52720
|
};
|
|
52586
52721
|
};
|
|
52587
52722
|
export type GetAgentEmbedPolicyResponse = GetAgentEmbedPolicyResponses[keyof GetAgentEmbedPolicyResponses];
|
|
@@ -52615,6 +52750,23 @@ export type UpdateAgentEmbedPolicyData = {
|
|
|
52615
52750
|
*/
|
|
52616
52751
|
max_files_per_session?: number;
|
|
52617
52752
|
};
|
|
52753
|
+
/**
|
|
52754
|
+
* Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number.
|
|
52755
|
+
*/
|
|
52756
|
+
share_links?: {
|
|
52757
|
+
/**
|
|
52758
|
+
* Whether this agent may be shared by link.
|
|
52759
|
+
*/
|
|
52760
|
+
enabled?: boolean;
|
|
52761
|
+
/**
|
|
52762
|
+
* The most primary sessions the agent's share links may start in one UTC day, a whole number, or null for no session cap.
|
|
52763
|
+
*/
|
|
52764
|
+
daily_session_cap?: number | null;
|
|
52765
|
+
/**
|
|
52766
|
+
* The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
|
|
52767
|
+
*/
|
|
52768
|
+
daily_spend_cap_micro_usd?: number | null;
|
|
52769
|
+
};
|
|
52618
52770
|
};
|
|
52619
52771
|
path: {
|
|
52620
52772
|
/**
|
|
@@ -52627,7 +52779,7 @@ export type UpdateAgentEmbedPolicyData = {
|
|
|
52627
52779
|
};
|
|
52628
52780
|
export type UpdateAgentEmbedPolicyErrors = {
|
|
52629
52781
|
/**
|
|
52630
|
-
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
|
|
52782
|
+
* INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
|
|
52631
52783
|
*/
|
|
52632
52784
|
400: unknown;
|
|
52633
52785
|
/**
|
|
@@ -52658,7 +52810,7 @@ export type UpdateAgentEmbedPolicyErrors = {
|
|
|
52658
52810
|
export type UpdateAgentEmbedPolicyError = UpdateAgentEmbedPolicyErrors[keyof UpdateAgentEmbedPolicyErrors];
|
|
52659
52811
|
export type UpdateAgentEmbedPolicyResponses = {
|
|
52660
52812
|
/**
|
|
52661
|
-
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch
|
|
52813
|
+
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
|
|
52662
52814
|
*/
|
|
52663
52815
|
200: {
|
|
52664
52816
|
/**
|
|
@@ -52686,6 +52838,23 @@ export type UpdateAgentEmbedPolicyResponses = {
|
|
|
52686
52838
|
*/
|
|
52687
52839
|
max_files_per_session: number;
|
|
52688
52840
|
};
|
|
52841
|
+
/**
|
|
52842
|
+
* Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
|
|
52843
|
+
*/
|
|
52844
|
+
share_links: {
|
|
52845
|
+
/**
|
|
52846
|
+
* Whether this agent may be shared by link. Off by default.
|
|
52847
|
+
*/
|
|
52848
|
+
enabled: boolean;
|
|
52849
|
+
/**
|
|
52850
|
+
* The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
|
|
52851
|
+
*/
|
|
52852
|
+
daily_session_cap: number | null;
|
|
52853
|
+
/**
|
|
52854
|
+
* The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
|
|
52855
|
+
*/
|
|
52856
|
+
daily_spend_cap_micro_usd: number | null;
|
|
52857
|
+
};
|
|
52689
52858
|
};
|
|
52690
52859
|
};
|
|
52691
52860
|
export type UpdateAgentEmbedPolicyResponse = UpdateAgentEmbedPolicyResponses[keyof UpdateAgentEmbedPolicyResponses];
|
|
@@ -56025,265 +56194,2119 @@ export type ReleaseComputerLeaseErrors = {
|
|
|
56025
56194
|
code: string;
|
|
56026
56195
|
retryable: boolean;
|
|
56027
56196
|
/**
|
|
56028
|
-
* How to recover, for computer failures.
|
|
56197
|
+
* How to recover, for computer failures.
|
|
56198
|
+
*/
|
|
56199
|
+
hint?: string;
|
|
56200
|
+
};
|
|
56201
|
+
/**
|
|
56202
|
+
* Equals the X-Request-Id response header.
|
|
56203
|
+
*/
|
|
56204
|
+
request_id: string;
|
|
56205
|
+
};
|
|
56206
|
+
/**
|
|
56207
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56208
|
+
*/
|
|
56209
|
+
429: {
|
|
56210
|
+
type: 'error';
|
|
56211
|
+
error: {
|
|
56212
|
+
/**
|
|
56213
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56214
|
+
*/
|
|
56215
|
+
type: string;
|
|
56216
|
+
message: string;
|
|
56217
|
+
code: string;
|
|
56218
|
+
retryable: boolean;
|
|
56219
|
+
/**
|
|
56220
|
+
* How to recover, for computer failures.
|
|
56221
|
+
*/
|
|
56222
|
+
hint?: string;
|
|
56223
|
+
};
|
|
56224
|
+
/**
|
|
56225
|
+
* Equals the X-Request-Id response header.
|
|
56226
|
+
*/
|
|
56227
|
+
request_id: string;
|
|
56228
|
+
};
|
|
56229
|
+
/**
|
|
56230
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56231
|
+
*/
|
|
56232
|
+
500: {
|
|
56233
|
+
type: 'error';
|
|
56234
|
+
error: {
|
|
56235
|
+
/**
|
|
56236
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56237
|
+
*/
|
|
56238
|
+
type: string;
|
|
56239
|
+
message: string;
|
|
56240
|
+
code: string;
|
|
56241
|
+
retryable: boolean;
|
|
56242
|
+
/**
|
|
56243
|
+
* How to recover, for computer failures.
|
|
56244
|
+
*/
|
|
56245
|
+
hint?: string;
|
|
56246
|
+
};
|
|
56247
|
+
/**
|
|
56248
|
+
* Equals the X-Request-Id response header.
|
|
56249
|
+
*/
|
|
56250
|
+
request_id: string;
|
|
56251
|
+
};
|
|
56252
|
+
/**
|
|
56253
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56254
|
+
*/
|
|
56255
|
+
503: {
|
|
56256
|
+
type: 'error';
|
|
56257
|
+
error: {
|
|
56258
|
+
/**
|
|
56259
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56260
|
+
*/
|
|
56261
|
+
type: string;
|
|
56262
|
+
message: string;
|
|
56263
|
+
code: string;
|
|
56264
|
+
retryable: boolean;
|
|
56265
|
+
/**
|
|
56266
|
+
* How to recover, for computer failures.
|
|
56267
|
+
*/
|
|
56268
|
+
hint?: string;
|
|
56269
|
+
};
|
|
56270
|
+
/**
|
|
56271
|
+
* Equals the X-Request-Id response header.
|
|
56272
|
+
*/
|
|
56273
|
+
request_id: string;
|
|
56274
|
+
};
|
|
56275
|
+
};
|
|
56276
|
+
export type ReleaseComputerLeaseError = ReleaseComputerLeaseErrors[keyof ReleaseComputerLeaseErrors];
|
|
56277
|
+
export type ReleaseComputerLeaseResponses = {
|
|
56278
|
+
/**
|
|
56279
|
+
* Computer result
|
|
56280
|
+
*/
|
|
56281
|
+
200: {
|
|
56282
|
+
/**
|
|
56283
|
+
* Id of the released lease.
|
|
56284
|
+
*/
|
|
56285
|
+
id: string;
|
|
56286
|
+
/**
|
|
56287
|
+
* Object type tag.
|
|
56288
|
+
*/
|
|
56289
|
+
type: 'computer_lease_released';
|
|
56290
|
+
};
|
|
56291
|
+
};
|
|
56292
|
+
export type ReleaseComputerLeaseResponse = ReleaseComputerLeaseResponses[keyof ReleaseComputerLeaseResponses];
|
|
56293
|
+
export type ListToolsetsData = {
|
|
56294
|
+
body?: never;
|
|
56295
|
+
path?: never;
|
|
56296
|
+
query?: never;
|
|
56297
|
+
url: '/agent/v1/toolsets';
|
|
56298
|
+
};
|
|
56299
|
+
export type ListToolsetsErrors = {
|
|
56300
|
+
/**
|
|
56301
|
+
* Authentication required
|
|
56302
|
+
*/
|
|
56303
|
+
401: unknown;
|
|
56304
|
+
/**
|
|
56305
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56306
|
+
*/
|
|
56307
|
+
403: AgentError;
|
|
56308
|
+
/**
|
|
56309
|
+
* Toolset catalog unavailable
|
|
56310
|
+
*/
|
|
56311
|
+
502: unknown;
|
|
56312
|
+
/**
|
|
56313
|
+
* Agent service unavailable
|
|
56314
|
+
*/
|
|
56315
|
+
503: unknown;
|
|
56316
|
+
};
|
|
56317
|
+
export type ListToolsetsError = ListToolsetsErrors[keyof ListToolsetsErrors];
|
|
56318
|
+
export type ListToolsetsResponses = {
|
|
56319
|
+
/**
|
|
56320
|
+
* Available toolsets
|
|
56321
|
+
*/
|
|
56322
|
+
200: {
|
|
56323
|
+
/**
|
|
56324
|
+
* Items of this page, in the order requested by the call.
|
|
56325
|
+
*/
|
|
56326
|
+
data: Array<{
|
|
56327
|
+
/**
|
|
56328
|
+
* Toolset type id as used in an agent's tools entry, for example agent_toolset_20260401.
|
|
56329
|
+
*/
|
|
56330
|
+
type: string;
|
|
56331
|
+
/**
|
|
56332
|
+
* Unit that registers the toolset, with its name and version.
|
|
56333
|
+
*/
|
|
56334
|
+
plugin: {
|
|
56335
|
+
/**
|
|
56336
|
+
* Name of the entry or object.
|
|
56337
|
+
*/
|
|
56338
|
+
name: string;
|
|
56339
|
+
/**
|
|
56340
|
+
* Version number or version string.
|
|
56341
|
+
*/
|
|
56342
|
+
version: string;
|
|
56343
|
+
};
|
|
56344
|
+
/**
|
|
56345
|
+
* Free-text description; null when none was set.
|
|
56346
|
+
*/
|
|
56347
|
+
description: string;
|
|
56348
|
+
/**
|
|
56349
|
+
* Environment in which the toolset's tools run, for example node22.
|
|
56350
|
+
*/
|
|
56351
|
+
environment: string;
|
|
56352
|
+
/**
|
|
56353
|
+
* Tools offered to the model.
|
|
56354
|
+
*/
|
|
56355
|
+
tools: Array<{
|
|
56356
|
+
/**
|
|
56357
|
+
* Name of the custom tool, as the model sees and calls it.
|
|
56358
|
+
*/
|
|
56359
|
+
name: string;
|
|
56360
|
+
/**
|
|
56361
|
+
* What the custom tool does and when the model should call it.
|
|
56362
|
+
*/
|
|
56363
|
+
description: string;
|
|
56364
|
+
/**
|
|
56365
|
+
* JSON Schema of the custom tool's input object, passed to the model as the tool's parameters.
|
|
56366
|
+
*/
|
|
56367
|
+
input_schema: {
|
|
56368
|
+
[key: string]: unknown;
|
|
56369
|
+
};
|
|
56370
|
+
/**
|
|
56371
|
+
* True when the tool only reads and never changes state.
|
|
56372
|
+
*/
|
|
56373
|
+
read_only: boolean;
|
|
56374
|
+
/**
|
|
56375
|
+
* Permission policy the tool starts with: always_allow or always_ask.
|
|
56376
|
+
*/
|
|
56377
|
+
default_permission_policy: 'always_allow' | 'always_ask';
|
|
56378
|
+
/**
|
|
56379
|
+
* Name of the Mod that provides the tool.
|
|
56380
|
+
*/
|
|
56381
|
+
mod: string;
|
|
56382
|
+
/**
|
|
56383
|
+
* False when the tool cannot be switched on or off on its own.
|
|
56384
|
+
*/
|
|
56385
|
+
configurable: boolean;
|
|
56386
|
+
}>;
|
|
56387
|
+
}>;
|
|
56388
|
+
/**
|
|
56389
|
+
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
56390
|
+
*/
|
|
56391
|
+
next_page: null;
|
|
56392
|
+
};
|
|
56393
|
+
};
|
|
56394
|
+
export type ListToolsetsResponse = ListToolsetsResponses[keyof ListToolsetsResponses];
|
|
56395
|
+
export type GetSessionContextData = {
|
|
56396
|
+
body?: never;
|
|
56397
|
+
path: {
|
|
56398
|
+
/**
|
|
56399
|
+
* Session id (sesn_...), as returned by sessions.create or sessions.list. In a path position the own face /agent/v1 also accepts `main` (your own main session with the agent) or a short session name, and either alias then requires the agent_id query parameter with the agent reference; /anthropic/v1 and the session_id query parameter on resource and thread calls take a real id only (the query value must equal the path value).
|
|
56400
|
+
*/
|
|
56401
|
+
session_id: string;
|
|
56402
|
+
};
|
|
56403
|
+
query?: never;
|
|
56404
|
+
url: '/agent/v1/sessions/{session_id}/context';
|
|
56405
|
+
};
|
|
56406
|
+
export type GetSessionContextErrors = {
|
|
56407
|
+
/**
|
|
56408
|
+
* Authentication required
|
|
56409
|
+
*/
|
|
56410
|
+
401: unknown;
|
|
56411
|
+
/**
|
|
56412
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56413
|
+
*/
|
|
56414
|
+
403: AgentError;
|
|
56415
|
+
/**
|
|
56416
|
+
* Session not found
|
|
56417
|
+
*/
|
|
56418
|
+
404: unknown;
|
|
56419
|
+
/**
|
|
56420
|
+
* Model catalog unavailable
|
|
56421
|
+
*/
|
|
56422
|
+
502: unknown;
|
|
56423
|
+
/**
|
|
56424
|
+
* Agent service unavailable
|
|
56425
|
+
*/
|
|
56426
|
+
503: unknown;
|
|
56427
|
+
};
|
|
56428
|
+
export type GetSessionContextError = GetSessionContextErrors[keyof GetSessionContextErrors];
|
|
56429
|
+
export type GetSessionContextResponses = {
|
|
56430
|
+
/**
|
|
56431
|
+
* Current model and latest context measurement
|
|
56432
|
+
*/
|
|
56433
|
+
200: {
|
|
56434
|
+
/**
|
|
56435
|
+
* Always `session_context`. Snapshot of a session's context window usage.
|
|
56436
|
+
*/
|
|
56437
|
+
type: 'session_context';
|
|
56438
|
+
/**
|
|
56439
|
+
* Session whose context this snapshot describes.
|
|
56440
|
+
*/
|
|
56441
|
+
session_id: string;
|
|
56442
|
+
/**
|
|
56443
|
+
* Model of the session and its context window facts.
|
|
56444
|
+
*/
|
|
56445
|
+
model: {
|
|
56446
|
+
/**
|
|
56447
|
+
* Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource.
|
|
56448
|
+
*/
|
|
56449
|
+
id: string;
|
|
56450
|
+
/**
|
|
56451
|
+
* Human-readable name of the model.
|
|
56452
|
+
*/
|
|
56453
|
+
display_name: string;
|
|
56454
|
+
/**
|
|
56455
|
+
* Thinking capability of the model: supported efforts, whether thinking can be disabled, and the default. Null when the capability is unknown.
|
|
56456
|
+
*/
|
|
56457
|
+
thinking: {
|
|
56458
|
+
/**
|
|
56459
|
+
* Thinking levels the model accepts as effort, in ascending order.
|
|
56460
|
+
*/
|
|
56461
|
+
efforts: Array<'low' | 'medium' | 'high' | 'xhigh' | 'max'>;
|
|
56462
|
+
/**
|
|
56463
|
+
* Whether effort none (thinking off) is allowed for this model.
|
|
56464
|
+
*/
|
|
56465
|
+
can_disable: boolean;
|
|
56466
|
+
/**
|
|
56467
|
+
* Thinking level used when neither the session nor the agent selects one; null when the model states no default.
|
|
56468
|
+
*/
|
|
56469
|
+
default_effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
56470
|
+
} | null;
|
|
56471
|
+
};
|
|
56472
|
+
/**
|
|
56473
|
+
* Tokens currently occupying the context window; null before the first measurement.
|
|
56474
|
+
*/
|
|
56475
|
+
total_tokens: number | null;
|
|
56476
|
+
/**
|
|
56477
|
+
* Whether total_tokens is the provider-reported input usage (actual) or a local estimate (estimated); null before the first measurement.
|
|
56478
|
+
*/
|
|
56479
|
+
total_tokens_source: 'actual' | 'estimated' | null;
|
|
56480
|
+
/**
|
|
56481
|
+
* Context window of the model in tokens; null when the model does not state one.
|
|
56482
|
+
*/
|
|
56483
|
+
max_tokens: number | null;
|
|
56484
|
+
/**
|
|
56485
|
+
* Maximum input tokens the model accepts per request; null when not stated.
|
|
56486
|
+
*/
|
|
56487
|
+
max_input_tokens: number | null;
|
|
56488
|
+
/**
|
|
56489
|
+
* Share of the context window in use, as a whole-number percent; 0 when the window or usage is unknown.
|
|
56490
|
+
*/
|
|
56491
|
+
percentage: number;
|
|
56492
|
+
/**
|
|
56493
|
+
* Token count at which automatic compaction starts; null when the window is unknown.
|
|
56494
|
+
*/
|
|
56495
|
+
auto_compact_threshold: number | null;
|
|
56496
|
+
/**
|
|
56497
|
+
* Whether automatic compaction is enabled for this session.
|
|
56498
|
+
*/
|
|
56499
|
+
is_auto_compact_enabled: boolean;
|
|
56500
|
+
/**
|
|
56501
|
+
* Token count at which old tool results are cleared from the context.
|
|
56502
|
+
*/
|
|
56503
|
+
clear_tool_results_at: number;
|
|
56504
|
+
/**
|
|
56505
|
+
* Level of detail of the snapshot.
|
|
56506
|
+
*/
|
|
56507
|
+
detail: 'summary';
|
|
56508
|
+
/**
|
|
56509
|
+
* Context usage by category; each row has a stable key and a kind.
|
|
56510
|
+
*/
|
|
56511
|
+
categories: Array<{
|
|
56512
|
+
/**
|
|
56513
|
+
* Praxis extension: stable source identifier (system, tools, mcp:<server>, plugin:<id>, messages, summary, free, buffer). Clients must tolerate unknown keys and newly added sources; classify rows by kind, not key or name.
|
|
56514
|
+
*/
|
|
56515
|
+
key: string;
|
|
56516
|
+
/**
|
|
56517
|
+
* Display name of the category.
|
|
56518
|
+
*/
|
|
56519
|
+
name: string;
|
|
56520
|
+
/**
|
|
56521
|
+
* Tokens used by the category.
|
|
56522
|
+
*/
|
|
56523
|
+
tokens: number;
|
|
56524
|
+
/**
|
|
56525
|
+
* How the category counts against the window.
|
|
56526
|
+
*/
|
|
56527
|
+
kind: 'used' | 'free' | 'buffer' | 'deferred';
|
|
56528
|
+
}>;
|
|
56529
|
+
/**
|
|
56530
|
+
* Tokens spent on the tool definitions of each MCP server.
|
|
56531
|
+
*/
|
|
56532
|
+
mcp_tools: Array<{
|
|
56533
|
+
/**
|
|
56534
|
+
* Name of the MCP tool.
|
|
56535
|
+
*/
|
|
56536
|
+
name: string;
|
|
56537
|
+
/**
|
|
56538
|
+
* Name of the MCP server that provides the tool.
|
|
56539
|
+
*/
|
|
56540
|
+
server_name: string;
|
|
56541
|
+
/**
|
|
56542
|
+
* Tokens used by the tool definition.
|
|
56543
|
+
*/
|
|
56544
|
+
tokens: number;
|
|
56545
|
+
}>;
|
|
56546
|
+
/**
|
|
56547
|
+
* Tokens spent on context blocks injected by each mod.
|
|
56548
|
+
*/
|
|
56549
|
+
plugin_blocks: Array<{
|
|
56550
|
+
/**
|
|
56551
|
+
* Name of the mod that injected the block.
|
|
56552
|
+
*/
|
|
56553
|
+
name: string;
|
|
56554
|
+
/**
|
|
56555
|
+
* Tokens used by the block.
|
|
56556
|
+
*/
|
|
56557
|
+
tokens: number;
|
|
56558
|
+
}>;
|
|
56559
|
+
/**
|
|
56560
|
+
* Tokens in the conversation messages, split by role and tool traffic.
|
|
56561
|
+
*/
|
|
56562
|
+
message_breakdown: {
|
|
56563
|
+
/**
|
|
56564
|
+
* Tokens of user messages.
|
|
56565
|
+
*/
|
|
56566
|
+
user_message_tokens: number;
|
|
56567
|
+
/**
|
|
56568
|
+
* Tokens of assistant text messages.
|
|
56569
|
+
*/
|
|
56570
|
+
assistant_message_tokens: number;
|
|
56571
|
+
/**
|
|
56572
|
+
* Tokens of tool-call arguments.
|
|
56573
|
+
*/
|
|
56574
|
+
tool_call_tokens: number;
|
|
56575
|
+
/**
|
|
56576
|
+
* Tokens of tool results.
|
|
56577
|
+
*/
|
|
56578
|
+
tool_result_tokens: number;
|
|
56579
|
+
/**
|
|
56580
|
+
* Tokens of reasoning content.
|
|
56581
|
+
*/
|
|
56582
|
+
reasoning_tokens: number;
|
|
56583
|
+
/**
|
|
56584
|
+
* Tool-call and tool-result tokens grouped by tool name.
|
|
56585
|
+
*/
|
|
56586
|
+
tool_calls_by_type: Array<{
|
|
56587
|
+
/**
|
|
56588
|
+
* Name of the tool.
|
|
56589
|
+
*/
|
|
56590
|
+
name: string;
|
|
56591
|
+
/**
|
|
56592
|
+
* Tokens of this tool's call arguments.
|
|
56593
|
+
*/
|
|
56594
|
+
call_tokens: number;
|
|
56595
|
+
/**
|
|
56596
|
+
* Tokens of this tool's results.
|
|
56597
|
+
*/
|
|
56598
|
+
result_tokens: number;
|
|
56599
|
+
}>;
|
|
56600
|
+
};
|
|
56601
|
+
/**
|
|
56602
|
+
* Tokens held by the latest compaction summary; null when the session was never compacted.
|
|
56603
|
+
*/
|
|
56604
|
+
compaction_summary: {
|
|
56605
|
+
/**
|
|
56606
|
+
* Tokens of the compaction summary.
|
|
56607
|
+
*/
|
|
56608
|
+
tokens: number;
|
|
56609
|
+
} | null;
|
|
56610
|
+
/**
|
|
56611
|
+
* Items removed from the context for content safety, kept for audit only and not counted as usage.
|
|
56612
|
+
*/
|
|
56613
|
+
excluded_items: {
|
|
56614
|
+
/**
|
|
56615
|
+
* Number of excluded items.
|
|
56616
|
+
*/
|
|
56617
|
+
count: number;
|
|
56618
|
+
/**
|
|
56619
|
+
* Tokens of the excluded items.
|
|
56620
|
+
*/
|
|
56621
|
+
tokens: number;
|
|
56622
|
+
};
|
|
56623
|
+
/**
|
|
56624
|
+
* RFC 3339 time of the measurement; null before the first measurement.
|
|
56625
|
+
*/
|
|
56626
|
+
measured_at: string | null;
|
|
56627
|
+
};
|
|
56628
|
+
};
|
|
56629
|
+
export type GetSessionContextResponse = GetSessionContextResponses[keyof GetSessionContextResponses];
|
|
56630
|
+
export type ForkSessionData = {
|
|
56631
|
+
body: {
|
|
56632
|
+
/**
|
|
56633
|
+
* Id of the message the event belongs to.
|
|
56634
|
+
*/
|
|
56635
|
+
message_id: string;
|
|
56636
|
+
};
|
|
56637
|
+
path: {
|
|
56638
|
+
/**
|
|
56639
|
+
* Session id (sesn_...), as returned by sessions.create or sessions.list. In a path position the own face /agent/v1 also accepts `main` (your own main session with the agent) or a short session name, and either alias then requires the agent_id query parameter with the agent reference; /anthropic/v1 and the session_id query parameter on resource and thread calls take a real id only (the query value must equal the path value).
|
|
56640
|
+
*/
|
|
56641
|
+
session_id: string;
|
|
56642
|
+
};
|
|
56643
|
+
query?: never;
|
|
56644
|
+
url: '/agent/v1/sessions/{session_id}/fork';
|
|
56645
|
+
};
|
|
56646
|
+
export type ForkSessionErrors = {
|
|
56647
|
+
/**
|
|
56648
|
+
* Invalid message_id or request
|
|
56649
|
+
*/
|
|
56650
|
+
400: unknown;
|
|
56651
|
+
/**
|
|
56652
|
+
* Authentication required
|
|
56653
|
+
*/
|
|
56654
|
+
401: unknown;
|
|
56655
|
+
/**
|
|
56656
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56657
|
+
*/
|
|
56658
|
+
403: AgentError;
|
|
56659
|
+
/**
|
|
56660
|
+
* Session not found
|
|
56661
|
+
*/
|
|
56662
|
+
404: unknown;
|
|
56663
|
+
/**
|
|
56664
|
+
* FORK_TARGET_INVALID: target is not the final assistant message in a successful turn
|
|
56665
|
+
*/
|
|
56666
|
+
409: unknown;
|
|
56667
|
+
/**
|
|
56668
|
+
* Agent service failed
|
|
56669
|
+
*/
|
|
56670
|
+
502: unknown;
|
|
56671
|
+
/**
|
|
56672
|
+
* Agent service unavailable
|
|
56673
|
+
*/
|
|
56674
|
+
503: unknown;
|
|
56675
|
+
};
|
|
56676
|
+
export type ForkSessionError = ForkSessionErrors[keyof ForkSessionErrors];
|
|
56677
|
+
export type ForkSessionResponses = {
|
|
56678
|
+
/**
|
|
56679
|
+
* Forked session (same shape as session retrieval)
|
|
56680
|
+
*/
|
|
56681
|
+
201: {
|
|
56682
|
+
/**
|
|
56683
|
+
* Session id (sesn_...). Pass it as session_id in every session call.
|
|
56684
|
+
*/
|
|
56685
|
+
id: string;
|
|
56686
|
+
/**
|
|
56687
|
+
* Resolved `agent` definition for a `session`. Snapshot of the `agent` at
|
|
56688
|
+
* `session` creation time.
|
|
56689
|
+
*/
|
|
56690
|
+
agent: {
|
|
56691
|
+
/**
|
|
56692
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
56693
|
+
*/
|
|
56694
|
+
id: string;
|
|
56695
|
+
/**
|
|
56696
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
56697
|
+
*/
|
|
56698
|
+
description: null | string;
|
|
56699
|
+
/**
|
|
56700
|
+
* Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
|
|
56701
|
+
*/
|
|
56702
|
+
mcp_servers: Array<{
|
|
56703
|
+
/**
|
|
56704
|
+
* Streamable HTTP transport.
|
|
56705
|
+
*/
|
|
56706
|
+
type: 'url';
|
|
56707
|
+
/**
|
|
56708
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56709
|
+
*/
|
|
56710
|
+
name: string;
|
|
56711
|
+
/**
|
|
56712
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
56713
|
+
*/
|
|
56714
|
+
url: string;
|
|
56715
|
+
/**
|
|
56716
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
56717
|
+
*/
|
|
56718
|
+
headers?: {
|
|
56719
|
+
[key: string]: string;
|
|
56720
|
+
};
|
|
56721
|
+
/**
|
|
56722
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56723
|
+
*/
|
|
56724
|
+
timeout_ms?: number;
|
|
56725
|
+
} | {
|
|
56726
|
+
/**
|
|
56727
|
+
* Legacy SSE transport.
|
|
56728
|
+
*/
|
|
56729
|
+
type: 'sse';
|
|
56730
|
+
/**
|
|
56731
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56732
|
+
*/
|
|
56733
|
+
name: string;
|
|
56734
|
+
/**
|
|
56735
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
56736
|
+
*/
|
|
56737
|
+
url: string;
|
|
56738
|
+
/**
|
|
56739
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
56740
|
+
*/
|
|
56741
|
+
headers?: {
|
|
56742
|
+
[key: string]: string;
|
|
56743
|
+
};
|
|
56744
|
+
/**
|
|
56745
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56746
|
+
*/
|
|
56747
|
+
timeout_ms?: number;
|
|
56748
|
+
} | {
|
|
56749
|
+
/**
|
|
56750
|
+
* Run a command on the agent computer.
|
|
56751
|
+
*/
|
|
56752
|
+
type: 'stdio';
|
|
56753
|
+
/**
|
|
56754
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56755
|
+
*/
|
|
56756
|
+
name: string;
|
|
56757
|
+
/**
|
|
56758
|
+
* Executable command on the agent computer.
|
|
56759
|
+
*/
|
|
56760
|
+
command: string;
|
|
56761
|
+
/**
|
|
56762
|
+
* Command arguments; omitted means no arguments.
|
|
56763
|
+
*/
|
|
56764
|
+
args?: Array<string>;
|
|
56765
|
+
/**
|
|
56766
|
+
* Praxis extension: environment variables for the command on the agent computer.
|
|
56767
|
+
*/
|
|
56768
|
+
env?: {
|
|
56769
|
+
[key: string]: string;
|
|
56770
|
+
};
|
|
56771
|
+
/**
|
|
56772
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56773
|
+
*/
|
|
56774
|
+
timeout_ms?: number;
|
|
56775
|
+
}>;
|
|
56776
|
+
/**
|
|
56777
|
+
* Model identifier and configuration.
|
|
56778
|
+
*/
|
|
56779
|
+
model: {
|
|
56780
|
+
/**
|
|
56781
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
56782
|
+
*/
|
|
56783
|
+
id: string;
|
|
56784
|
+
/**
|
|
56785
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
56786
|
+
* Messages call the session makes.
|
|
56787
|
+
*/
|
|
56788
|
+
effort?: {
|
|
56789
|
+
/**
|
|
56790
|
+
* Always `low`. Lowest reasoning effort of the supported levels.
|
|
56791
|
+
*/
|
|
56792
|
+
type: 'low';
|
|
56793
|
+
} | {
|
|
56794
|
+
/**
|
|
56795
|
+
* Always `medium`. Middle reasoning effort.
|
|
56796
|
+
*/
|
|
56797
|
+
type: 'medium';
|
|
56798
|
+
} | {
|
|
56799
|
+
/**
|
|
56800
|
+
* Always `high`. High reasoning effort.
|
|
56801
|
+
*/
|
|
56802
|
+
type: 'high';
|
|
56803
|
+
} | {
|
|
56804
|
+
/**
|
|
56805
|
+
* Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
|
|
56806
|
+
*/
|
|
56807
|
+
type: 'xhigh';
|
|
56808
|
+
} | {
|
|
56809
|
+
/**
|
|
56810
|
+
* Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
|
|
56811
|
+
*/
|
|
56812
|
+
type: 'max';
|
|
56813
|
+
};
|
|
56814
|
+
/**
|
|
56815
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
56816
|
+
* workspace's default_inference_geo.
|
|
56817
|
+
*/
|
|
56818
|
+
inference_geo?: string;
|
|
56819
|
+
/**
|
|
56820
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
56821
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
56822
|
+
* combinations are rejected at create time.
|
|
56823
|
+
*/
|
|
56824
|
+
speed?: 'standard' | 'fast';
|
|
56825
|
+
/**
|
|
56826
|
+
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
56827
|
+
*/
|
|
56828
|
+
settings?: {
|
|
56829
|
+
/**
|
|
56830
|
+
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
56831
|
+
*/
|
|
56832
|
+
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
56833
|
+
/**
|
|
56834
|
+
* Output cap for one model request, thinking included; the counterpart of Claude Code's CLAUDE_CODE_MAX_OUTPUT_TOKENS. When unset, every request uses the output limit the model declares. When set, the runtime clamps it to the model's limit.
|
|
56835
|
+
*/
|
|
56836
|
+
max_output_tokens?: number;
|
|
56837
|
+
};
|
|
56838
|
+
};
|
|
56839
|
+
/**
|
|
56840
|
+
* Resolved coordinator topology with full agent definitions for each roster
|
|
56841
|
+
* member.
|
|
56842
|
+
*/
|
|
56843
|
+
multiagent: null | {
|
|
56844
|
+
/**
|
|
56845
|
+
* Full `agent` definitions the coordinator may spawn as session threads.
|
|
56846
|
+
*/
|
|
56847
|
+
agents: Array<{
|
|
56848
|
+
/**
|
|
56849
|
+
* The advisor model id.
|
|
56850
|
+
*/
|
|
56851
|
+
model: string;
|
|
56852
|
+
/**
|
|
56853
|
+
* Always `advisor`. An advisor whose model is consulted for advice in a separate thread (at most one per coordinator).
|
|
56854
|
+
*/
|
|
56855
|
+
type: 'advisor';
|
|
56856
|
+
} | {
|
|
56857
|
+
/**
|
|
56858
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
56859
|
+
*/
|
|
56860
|
+
id: string;
|
|
56861
|
+
/**
|
|
56862
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
56863
|
+
*/
|
|
56864
|
+
description: null | string;
|
|
56865
|
+
/**
|
|
56866
|
+
* Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
|
|
56867
|
+
*/
|
|
56868
|
+
mcp_servers: Array<{
|
|
56869
|
+
/**
|
|
56870
|
+
* Streamable HTTP transport.
|
|
56871
|
+
*/
|
|
56872
|
+
type: 'url';
|
|
56873
|
+
/**
|
|
56874
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56875
|
+
*/
|
|
56876
|
+
name: string;
|
|
56877
|
+
/**
|
|
56878
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
56879
|
+
*/
|
|
56880
|
+
url: string;
|
|
56881
|
+
/**
|
|
56882
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
56883
|
+
*/
|
|
56884
|
+
headers?: {
|
|
56885
|
+
[key: string]: string;
|
|
56886
|
+
};
|
|
56887
|
+
/**
|
|
56888
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56889
|
+
*/
|
|
56890
|
+
timeout_ms?: number;
|
|
56891
|
+
} | {
|
|
56892
|
+
/**
|
|
56893
|
+
* Legacy SSE transport.
|
|
56894
|
+
*/
|
|
56895
|
+
type: 'sse';
|
|
56896
|
+
/**
|
|
56897
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56898
|
+
*/
|
|
56899
|
+
name: string;
|
|
56900
|
+
/**
|
|
56901
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
56902
|
+
*/
|
|
56903
|
+
url: string;
|
|
56904
|
+
/**
|
|
56905
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
56906
|
+
*/
|
|
56907
|
+
headers?: {
|
|
56908
|
+
[key: string]: string;
|
|
56909
|
+
};
|
|
56910
|
+
/**
|
|
56911
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56912
|
+
*/
|
|
56913
|
+
timeout_ms?: number;
|
|
56914
|
+
} | {
|
|
56915
|
+
/**
|
|
56916
|
+
* Run a command on the agent computer.
|
|
56917
|
+
*/
|
|
56918
|
+
type: 'stdio';
|
|
56919
|
+
/**
|
|
56920
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
56921
|
+
*/
|
|
56922
|
+
name: string;
|
|
56923
|
+
/**
|
|
56924
|
+
* Executable command on the agent computer.
|
|
56925
|
+
*/
|
|
56926
|
+
command: string;
|
|
56927
|
+
/**
|
|
56928
|
+
* Command arguments; omitted means no arguments.
|
|
56929
|
+
*/
|
|
56930
|
+
args?: Array<string>;
|
|
56931
|
+
/**
|
|
56932
|
+
* Praxis extension: environment variables for the command on the agent computer.
|
|
56933
|
+
*/
|
|
56934
|
+
env?: {
|
|
56935
|
+
[key: string]: string;
|
|
56936
|
+
};
|
|
56937
|
+
/**
|
|
56938
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
56939
|
+
*/
|
|
56940
|
+
timeout_ms?: number;
|
|
56941
|
+
}>;
|
|
56942
|
+
/**
|
|
56943
|
+
* Model identifier and configuration.
|
|
56944
|
+
*/
|
|
56945
|
+
model: {
|
|
56946
|
+
/**
|
|
56947
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
56948
|
+
*/
|
|
56949
|
+
id: string;
|
|
56950
|
+
/**
|
|
56951
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
56952
|
+
* Messages call the session makes.
|
|
56953
|
+
*/
|
|
56954
|
+
effort?: {
|
|
56955
|
+
/**
|
|
56956
|
+
* Always `low`. Lowest reasoning effort of the supported levels.
|
|
56957
|
+
*/
|
|
56958
|
+
type: 'low';
|
|
56959
|
+
} | {
|
|
56960
|
+
/**
|
|
56961
|
+
* Always `medium`. Middle reasoning effort.
|
|
56962
|
+
*/
|
|
56963
|
+
type: 'medium';
|
|
56964
|
+
} | {
|
|
56965
|
+
/**
|
|
56966
|
+
* Always `high`. High reasoning effort.
|
|
56967
|
+
*/
|
|
56968
|
+
type: 'high';
|
|
56969
|
+
} | {
|
|
56970
|
+
/**
|
|
56971
|
+
* Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
|
|
56972
|
+
*/
|
|
56973
|
+
type: 'xhigh';
|
|
56974
|
+
} | {
|
|
56975
|
+
/**
|
|
56976
|
+
* Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
|
|
56977
|
+
*/
|
|
56978
|
+
type: 'max';
|
|
56979
|
+
};
|
|
56980
|
+
/**
|
|
56981
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
56982
|
+
* workspace's default_inference_geo.
|
|
56983
|
+
*/
|
|
56984
|
+
inference_geo?: string;
|
|
56985
|
+
/**
|
|
56986
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
56987
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
56988
|
+
* combinations are rejected at create time.
|
|
56989
|
+
*/
|
|
56990
|
+
speed?: 'standard' | 'fast';
|
|
56991
|
+
};
|
|
56992
|
+
/**
|
|
56993
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
56994
|
+
*/
|
|
56995
|
+
name: string;
|
|
56996
|
+
/**
|
|
56997
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
56998
|
+
*/
|
|
56999
|
+
skills: Array<{
|
|
57000
|
+
/**
|
|
57001
|
+
* Id of the skill to attach.
|
|
57002
|
+
*/
|
|
57003
|
+
skill_id: string;
|
|
57004
|
+
/**
|
|
57005
|
+
* Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
|
|
57006
|
+
*/
|
|
57007
|
+
type: 'anthropic';
|
|
57008
|
+
/**
|
|
57009
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
57010
|
+
*/
|
|
57011
|
+
version: string;
|
|
57012
|
+
} | {
|
|
57013
|
+
/**
|
|
57014
|
+
* Id of the skill to attach.
|
|
57015
|
+
*/
|
|
57016
|
+
skill_id: string;
|
|
57017
|
+
/**
|
|
57018
|
+
* Always `custom`. A skill created by you, identified by skill_id.
|
|
57019
|
+
*/
|
|
57020
|
+
type: 'custom';
|
|
57021
|
+
/**
|
|
57022
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
57023
|
+
*/
|
|
57024
|
+
version: string;
|
|
57025
|
+
}>;
|
|
57026
|
+
/**
|
|
57027
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
57028
|
+
*/
|
|
57029
|
+
system: null | string;
|
|
57030
|
+
/**
|
|
57031
|
+
* Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
|
|
57032
|
+
*/
|
|
57033
|
+
tools: Array<{
|
|
57034
|
+
/**
|
|
57035
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
57036
|
+
*/
|
|
57037
|
+
configs: Array<{
|
|
57038
|
+
/**
|
|
57039
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57040
|
+
*/
|
|
57041
|
+
enabled: boolean;
|
|
57042
|
+
/**
|
|
57043
|
+
* Name of the native tool this entry configures.
|
|
57044
|
+
*/
|
|
57045
|
+
name: 'bash';
|
|
57046
|
+
/**
|
|
57047
|
+
* Permission policy for tool execution.
|
|
57048
|
+
*/
|
|
57049
|
+
permission_policy: {
|
|
57050
|
+
/**
|
|
57051
|
+
* Always `always_allow`. Calls run without asking.
|
|
57052
|
+
*/
|
|
57053
|
+
type: 'always_allow';
|
|
57054
|
+
} | {
|
|
57055
|
+
/**
|
|
57056
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57057
|
+
*/
|
|
57058
|
+
type: 'always_ask';
|
|
57059
|
+
} | {
|
|
57060
|
+
/**
|
|
57061
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57062
|
+
*/
|
|
57063
|
+
type: 'auto';
|
|
57064
|
+
};
|
|
57065
|
+
/**
|
|
57066
|
+
* Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
|
|
57067
|
+
*/
|
|
57068
|
+
type: 'bash';
|
|
57069
|
+
} | {
|
|
57070
|
+
/**
|
|
57071
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57072
|
+
*/
|
|
57073
|
+
enabled: boolean;
|
|
57074
|
+
/**
|
|
57075
|
+
* Name of the native tool this entry configures.
|
|
57076
|
+
*/
|
|
57077
|
+
name: 'edit';
|
|
57078
|
+
/**
|
|
57079
|
+
* Permission policy for tool execution.
|
|
57080
|
+
*/
|
|
57081
|
+
permission_policy: {
|
|
57082
|
+
/**
|
|
57083
|
+
* Always `always_allow`. Calls run without asking.
|
|
57084
|
+
*/
|
|
57085
|
+
type: 'always_allow';
|
|
57086
|
+
} | {
|
|
57087
|
+
/**
|
|
57088
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57089
|
+
*/
|
|
57090
|
+
type: 'always_ask';
|
|
57091
|
+
} | {
|
|
57092
|
+
/**
|
|
57093
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57094
|
+
*/
|
|
57095
|
+
type: 'auto';
|
|
57096
|
+
};
|
|
57097
|
+
/**
|
|
57098
|
+
* Always `edit`. Selects the edit tool, which changes an existing file.
|
|
57099
|
+
*/
|
|
57100
|
+
type: 'edit';
|
|
57101
|
+
} | {
|
|
57102
|
+
/**
|
|
57103
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57104
|
+
*/
|
|
57105
|
+
enabled: boolean;
|
|
57106
|
+
/**
|
|
57107
|
+
* Name of the native tool this entry configures.
|
|
57108
|
+
*/
|
|
57109
|
+
name: 'read';
|
|
57110
|
+
/**
|
|
57111
|
+
* Permission policy for tool execution.
|
|
57112
|
+
*/
|
|
57113
|
+
permission_policy: {
|
|
57114
|
+
/**
|
|
57115
|
+
* Always `always_allow`. Calls run without asking.
|
|
57116
|
+
*/
|
|
57117
|
+
type: 'always_allow';
|
|
57118
|
+
} | {
|
|
57119
|
+
/**
|
|
57120
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57121
|
+
*/
|
|
57122
|
+
type: 'always_ask';
|
|
57123
|
+
} | {
|
|
57124
|
+
/**
|
|
57125
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57126
|
+
*/
|
|
57127
|
+
type: 'auto';
|
|
57128
|
+
};
|
|
57129
|
+
/**
|
|
57130
|
+
* Always `read`. Selects the read tool, which reads a file.
|
|
57131
|
+
*/
|
|
57132
|
+
type: 'read';
|
|
57133
|
+
} | {
|
|
57134
|
+
/**
|
|
57135
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57136
|
+
*/
|
|
57137
|
+
enabled: boolean;
|
|
57138
|
+
/**
|
|
57139
|
+
* Name of the native tool this entry configures.
|
|
57140
|
+
*/
|
|
57141
|
+
name: 'write';
|
|
57142
|
+
/**
|
|
57143
|
+
* Permission policy for tool execution.
|
|
57144
|
+
*/
|
|
57145
|
+
permission_policy: {
|
|
57146
|
+
/**
|
|
57147
|
+
* Always `always_allow`. Calls run without asking.
|
|
57148
|
+
*/
|
|
57149
|
+
type: 'always_allow';
|
|
57150
|
+
} | {
|
|
57151
|
+
/**
|
|
57152
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57153
|
+
*/
|
|
57154
|
+
type: 'always_ask';
|
|
57155
|
+
} | {
|
|
57156
|
+
/**
|
|
57157
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57158
|
+
*/
|
|
57159
|
+
type: 'auto';
|
|
57160
|
+
};
|
|
57161
|
+
/**
|
|
57162
|
+
* Always `write`. Selects the write tool, which writes a file.
|
|
57163
|
+
*/
|
|
57164
|
+
type: 'write';
|
|
57165
|
+
} | {
|
|
57166
|
+
/**
|
|
57167
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57168
|
+
*/
|
|
57169
|
+
enabled: boolean;
|
|
57170
|
+
/**
|
|
57171
|
+
* Name of the native tool this entry configures.
|
|
57172
|
+
*/
|
|
57173
|
+
name: 'glob';
|
|
57174
|
+
/**
|
|
57175
|
+
* Permission policy for tool execution.
|
|
57176
|
+
*/
|
|
57177
|
+
permission_policy: {
|
|
57178
|
+
/**
|
|
57179
|
+
* Always `always_allow`. Calls run without asking.
|
|
57180
|
+
*/
|
|
57181
|
+
type: 'always_allow';
|
|
57182
|
+
} | {
|
|
57183
|
+
/**
|
|
57184
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57185
|
+
*/
|
|
57186
|
+
type: 'always_ask';
|
|
57187
|
+
} | {
|
|
57188
|
+
/**
|
|
57189
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57190
|
+
*/
|
|
57191
|
+
type: 'auto';
|
|
57192
|
+
};
|
|
57193
|
+
/**
|
|
57194
|
+
* Always `glob`. Selects the glob tool, which finds files by name pattern.
|
|
57195
|
+
*/
|
|
57196
|
+
type: 'glob';
|
|
57197
|
+
} | {
|
|
57198
|
+
/**
|
|
57199
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57200
|
+
*/
|
|
57201
|
+
enabled: boolean;
|
|
57202
|
+
/**
|
|
57203
|
+
* Name of the native tool this entry configures.
|
|
57204
|
+
*/
|
|
57205
|
+
name: 'grep';
|
|
57206
|
+
/**
|
|
57207
|
+
* Permission policy for tool execution.
|
|
57208
|
+
*/
|
|
57209
|
+
permission_policy: {
|
|
57210
|
+
/**
|
|
57211
|
+
* Always `always_allow`. Calls run without asking.
|
|
57212
|
+
*/
|
|
57213
|
+
type: 'always_allow';
|
|
57214
|
+
} | {
|
|
57215
|
+
/**
|
|
57216
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57217
|
+
*/
|
|
57218
|
+
type: 'always_ask';
|
|
57219
|
+
} | {
|
|
57220
|
+
/**
|
|
57221
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57222
|
+
*/
|
|
57223
|
+
type: 'auto';
|
|
57224
|
+
};
|
|
57225
|
+
/**
|
|
57226
|
+
* Always `grep`. Selects the grep tool, which searches file contents.
|
|
57227
|
+
*/
|
|
57228
|
+
type: 'grep';
|
|
57229
|
+
} | {
|
|
57230
|
+
/**
|
|
57231
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57232
|
+
*/
|
|
57233
|
+
enabled: boolean;
|
|
57234
|
+
/**
|
|
57235
|
+
* Name of the native tool this entry configures.
|
|
57236
|
+
*/
|
|
57237
|
+
name: 'web_fetch';
|
|
57238
|
+
/**
|
|
57239
|
+
* Permission policy for tool execution.
|
|
57240
|
+
*/
|
|
57241
|
+
permission_policy: {
|
|
57242
|
+
/**
|
|
57243
|
+
* Always `always_allow`. Calls run without asking.
|
|
57244
|
+
*/
|
|
57245
|
+
type: 'always_allow';
|
|
57246
|
+
} | {
|
|
57247
|
+
/**
|
|
57248
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57249
|
+
*/
|
|
57250
|
+
type: 'always_ask';
|
|
57251
|
+
} | {
|
|
57252
|
+
/**
|
|
57253
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57254
|
+
*/
|
|
57255
|
+
type: 'auto';
|
|
57256
|
+
};
|
|
57257
|
+
/**
|
|
57258
|
+
* Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
|
|
57259
|
+
*/
|
|
57260
|
+
type: 'web_fetch';
|
|
57261
|
+
/**
|
|
57262
|
+
* Hosts the tool may fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with blocked_domains.
|
|
57263
|
+
*/
|
|
57264
|
+
allowed_domains?: Array<string>;
|
|
57265
|
+
/**
|
|
57266
|
+
* Hosts the tool must never fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with allowed_domains.
|
|
57267
|
+
*/
|
|
57268
|
+
blocked_domains?: Array<string>;
|
|
57269
|
+
/**
|
|
57270
|
+
* Maximum number of tokens of fetched text content included in context per call; does not apply to binary content such as PDFs. Null for no explicit limit.
|
|
57271
|
+
*/
|
|
57272
|
+
max_content_tokens?: null | number;
|
|
57273
|
+
} | {
|
|
57274
|
+
/**
|
|
57275
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57276
|
+
*/
|
|
57277
|
+
enabled: boolean;
|
|
57278
|
+
/**
|
|
57279
|
+
* Name of the native tool this entry configures.
|
|
57280
|
+
*/
|
|
57281
|
+
name: 'web_search';
|
|
57282
|
+
/**
|
|
57283
|
+
* Permission policy for tool execution.
|
|
57284
|
+
*/
|
|
57285
|
+
permission_policy: {
|
|
57286
|
+
/**
|
|
57287
|
+
* Always `always_allow`. Calls run without asking.
|
|
57288
|
+
*/
|
|
57289
|
+
type: 'always_allow';
|
|
57290
|
+
} | {
|
|
57291
|
+
/**
|
|
57292
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57293
|
+
*/
|
|
57294
|
+
type: 'always_ask';
|
|
57295
|
+
} | {
|
|
57296
|
+
/**
|
|
57297
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57298
|
+
*/
|
|
57299
|
+
type: 'auto';
|
|
57300
|
+
};
|
|
57301
|
+
/**
|
|
57302
|
+
* Always `web_search`. Selects the web_search tool, which searches the web.
|
|
57303
|
+
*/
|
|
57304
|
+
type: 'web_search';
|
|
57305
|
+
/**
|
|
57306
|
+
* Hosts the tool may fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with blocked_domains.
|
|
57307
|
+
*/
|
|
57308
|
+
allowed_domains?: Array<string>;
|
|
57309
|
+
/**
|
|
57310
|
+
* Hosts the tool must never fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with allowed_domains.
|
|
57311
|
+
*/
|
|
57312
|
+
blocked_domains?: Array<string>;
|
|
57313
|
+
/**
|
|
57314
|
+
* Approximate user location for search result localization.
|
|
57315
|
+
*/
|
|
57316
|
+
user_location?: null | {
|
|
57317
|
+
/**
|
|
57318
|
+
* Location precision. Only "approximate" is supported.
|
|
57319
|
+
*/
|
|
57320
|
+
type: 'approximate';
|
|
57321
|
+
/**
|
|
57322
|
+
* City name.
|
|
57323
|
+
*/
|
|
57324
|
+
city?: null | string;
|
|
57325
|
+
/**
|
|
57326
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
57327
|
+
*/
|
|
57328
|
+
country?: null | string;
|
|
57329
|
+
/**
|
|
57330
|
+
* Region or state name.
|
|
57331
|
+
*/
|
|
57332
|
+
region?: null | string;
|
|
57333
|
+
/**
|
|
57334
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
57335
|
+
*/
|
|
57336
|
+
timezone?: null | string;
|
|
57337
|
+
};
|
|
57338
|
+
} | {
|
|
57339
|
+
/**
|
|
57340
|
+
* Name of the native tool this entry configures.
|
|
57341
|
+
*/
|
|
57342
|
+
name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
|
|
57343
|
+
/**
|
|
57344
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57345
|
+
*/
|
|
57346
|
+
enabled: boolean;
|
|
57347
|
+
/**
|
|
57348
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
57349
|
+
*/
|
|
57350
|
+
permission_policy: {
|
|
57351
|
+
/**
|
|
57352
|
+
* Permission policy kind.
|
|
57353
|
+
*/
|
|
57354
|
+
type: 'always_allow' | 'always_ask';
|
|
57355
|
+
};
|
|
57356
|
+
}>;
|
|
57357
|
+
/**
|
|
57358
|
+
* Resolved default configuration for agent tools.
|
|
57359
|
+
*/
|
|
57360
|
+
default_config: {
|
|
57361
|
+
/**
|
|
57362
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
57363
|
+
*/
|
|
57364
|
+
enabled: boolean;
|
|
57365
|
+
/**
|
|
57366
|
+
* Permission policy for tool execution.
|
|
57367
|
+
*/
|
|
57368
|
+
permission_policy: {
|
|
57369
|
+
/**
|
|
57370
|
+
* Always `always_allow`. Calls run without asking.
|
|
57371
|
+
*/
|
|
57372
|
+
type: 'always_allow';
|
|
57373
|
+
} | {
|
|
57374
|
+
/**
|
|
57375
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57376
|
+
*/
|
|
57377
|
+
type: 'always_ask';
|
|
57378
|
+
} | {
|
|
57379
|
+
/**
|
|
57380
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57381
|
+
*/
|
|
57382
|
+
type: 'auto';
|
|
57383
|
+
};
|
|
57384
|
+
};
|
|
57385
|
+
/**
|
|
57386
|
+
* Always `agent_toolset_20260401`. The native toolset entry (bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message).
|
|
57387
|
+
*/
|
|
57388
|
+
type: 'agent_toolset_20260401';
|
|
57389
|
+
} | {
|
|
57390
|
+
/**
|
|
57391
|
+
* Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
|
|
57392
|
+
*/
|
|
57393
|
+
type: 'mcp_toolset';
|
|
57394
|
+
/**
|
|
57395
|
+
* Name of the MCP server in mcp_servers whose tools this entry exposes.
|
|
57396
|
+
*/
|
|
57397
|
+
mcp_server_name: string;
|
|
57398
|
+
/**
|
|
57399
|
+
* Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
|
|
57400
|
+
*/
|
|
57401
|
+
default_config?: {
|
|
57402
|
+
/**
|
|
57403
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
57404
|
+
*/
|
|
57405
|
+
enabled?: boolean | null;
|
|
57406
|
+
/**
|
|
57407
|
+
* Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
|
|
57408
|
+
*/
|
|
57409
|
+
permission_policy?: null | {
|
|
57410
|
+
/**
|
|
57411
|
+
* Permission policy kind.
|
|
57412
|
+
*/
|
|
57413
|
+
type: 'always_allow' | 'always_ask';
|
|
57414
|
+
};
|
|
57415
|
+
} | null;
|
|
57416
|
+
/**
|
|
57417
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
57418
|
+
*/
|
|
57419
|
+
configs?: Array<{
|
|
57420
|
+
/**
|
|
57421
|
+
* Bare tool name reported by the MCP server.
|
|
57422
|
+
*/
|
|
57423
|
+
name: string;
|
|
57424
|
+
/**
|
|
57425
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57426
|
+
*/
|
|
57427
|
+
enabled?: boolean | null;
|
|
57428
|
+
/**
|
|
57429
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
57430
|
+
*/
|
|
57431
|
+
permission_policy?: null | {
|
|
57432
|
+
/**
|
|
57433
|
+
* Permission policy kind.
|
|
57434
|
+
*/
|
|
57435
|
+
type: 'always_allow' | 'always_ask';
|
|
57436
|
+
};
|
|
57437
|
+
}> | null;
|
|
57438
|
+
} | {
|
|
57439
|
+
/**
|
|
57440
|
+
* What the custom tool does and when the model should call it.
|
|
57441
|
+
*/
|
|
57442
|
+
description: string;
|
|
57443
|
+
/**
|
|
57444
|
+
* JSON Schema for custom tool input parameters.
|
|
57445
|
+
*/
|
|
57446
|
+
input_schema: {
|
|
57447
|
+
/**
|
|
57448
|
+
* Always `object`. The input is a JSON object.
|
|
57449
|
+
*/
|
|
57450
|
+
type: 'object';
|
|
57451
|
+
/**
|
|
57452
|
+
* JSON Schema of each input property, keyed by property name.
|
|
57453
|
+
*/
|
|
57454
|
+
properties?: null | {
|
|
57455
|
+
[key: string]: unknown;
|
|
57456
|
+
};
|
|
57457
|
+
/**
|
|
57458
|
+
* Names of the input properties the model must supply.
|
|
57459
|
+
*/
|
|
57460
|
+
required?: null | Array<string>;
|
|
57461
|
+
[key: string]: unknown;
|
|
57462
|
+
};
|
|
57463
|
+
/**
|
|
57464
|
+
* Name of the custom tool, as the model sees and calls it.
|
|
57465
|
+
*/
|
|
57466
|
+
name: string;
|
|
57467
|
+
/**
|
|
57468
|
+
* Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
|
|
57469
|
+
*/
|
|
57470
|
+
type: 'custom';
|
|
57471
|
+
}>;
|
|
57472
|
+
/**
|
|
57473
|
+
* Always `agent`. A roster member that refers to an agent by id and pinned version.
|
|
57474
|
+
*/
|
|
57475
|
+
type: 'agent';
|
|
57476
|
+
/**
|
|
57477
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
57478
|
+
*/
|
|
57479
|
+
version: number;
|
|
57480
|
+
}>;
|
|
57481
|
+
/**
|
|
57482
|
+
* Always `coordinator`. The agent coordinates the roster in agents and can delegate to its members.
|
|
57483
|
+
*/
|
|
57484
|
+
type: 'coordinator';
|
|
57485
|
+
};
|
|
57486
|
+
/**
|
|
57487
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
57488
|
+
*/
|
|
57489
|
+
name: string;
|
|
57490
|
+
/**
|
|
57491
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
57492
|
+
*/
|
|
57493
|
+
skills: Array<{
|
|
57494
|
+
/**
|
|
57495
|
+
* Id of the skill to attach.
|
|
57496
|
+
*/
|
|
57497
|
+
skill_id: string;
|
|
57498
|
+
/**
|
|
57499
|
+
* Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
|
|
57500
|
+
*/
|
|
57501
|
+
type: 'anthropic';
|
|
57502
|
+
/**
|
|
57503
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
57504
|
+
*/
|
|
57505
|
+
version: string;
|
|
57506
|
+
} | {
|
|
57507
|
+
/**
|
|
57508
|
+
* Id of the skill to attach.
|
|
57509
|
+
*/
|
|
57510
|
+
skill_id: string;
|
|
57511
|
+
/**
|
|
57512
|
+
* Always `custom`. A skill created by you, identified by skill_id.
|
|
57513
|
+
*/
|
|
57514
|
+
type: 'custom';
|
|
57515
|
+
/**
|
|
57516
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
57517
|
+
*/
|
|
57518
|
+
version: string;
|
|
57519
|
+
}>;
|
|
57520
|
+
/**
|
|
57521
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
57522
|
+
*/
|
|
57523
|
+
system: null | string;
|
|
57524
|
+
/**
|
|
57525
|
+
* Tools of the agent: one agent_toolset_20260401 entry for the native tools (all resolved settings are returned, ready to send back on update), plus mcp_toolset entries and custom tool definitions. Custom calls emit agent.custom_tool_use and wait for user.custom_tool_result. Keep bash enabled to use codemode, skill and subagents.
|
|
57526
|
+
*/
|
|
57527
|
+
tools: Array<{
|
|
57528
|
+
/**
|
|
57529
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
57530
|
+
*/
|
|
57531
|
+
configs: Array<{
|
|
57532
|
+
/**
|
|
57533
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57534
|
+
*/
|
|
57535
|
+
enabled: boolean;
|
|
57536
|
+
/**
|
|
57537
|
+
* Name of the native tool this entry configures.
|
|
57538
|
+
*/
|
|
57539
|
+
name: 'bash';
|
|
57540
|
+
/**
|
|
57541
|
+
* Permission policy for tool execution.
|
|
57542
|
+
*/
|
|
57543
|
+
permission_policy: {
|
|
57544
|
+
/**
|
|
57545
|
+
* Always `always_allow`. Calls run without asking.
|
|
57546
|
+
*/
|
|
57547
|
+
type: 'always_allow';
|
|
57548
|
+
} | {
|
|
57549
|
+
/**
|
|
57550
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57551
|
+
*/
|
|
57552
|
+
type: 'always_ask';
|
|
57553
|
+
} | {
|
|
57554
|
+
/**
|
|
57555
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57556
|
+
*/
|
|
57557
|
+
type: 'auto';
|
|
57558
|
+
};
|
|
57559
|
+
/**
|
|
57560
|
+
* Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
|
|
57561
|
+
*/
|
|
57562
|
+
type: 'bash';
|
|
57563
|
+
} | {
|
|
57564
|
+
/**
|
|
57565
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57566
|
+
*/
|
|
57567
|
+
enabled: boolean;
|
|
57568
|
+
/**
|
|
57569
|
+
* Name of the native tool this entry configures.
|
|
57570
|
+
*/
|
|
57571
|
+
name: 'edit';
|
|
57572
|
+
/**
|
|
57573
|
+
* Permission policy for tool execution.
|
|
57574
|
+
*/
|
|
57575
|
+
permission_policy: {
|
|
57576
|
+
/**
|
|
57577
|
+
* Always `always_allow`. Calls run without asking.
|
|
57578
|
+
*/
|
|
57579
|
+
type: 'always_allow';
|
|
57580
|
+
} | {
|
|
57581
|
+
/**
|
|
57582
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57583
|
+
*/
|
|
57584
|
+
type: 'always_ask';
|
|
57585
|
+
} | {
|
|
57586
|
+
/**
|
|
57587
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57588
|
+
*/
|
|
57589
|
+
type: 'auto';
|
|
57590
|
+
};
|
|
57591
|
+
/**
|
|
57592
|
+
* Always `edit`. Selects the edit tool, which changes an existing file.
|
|
57593
|
+
*/
|
|
57594
|
+
type: 'edit';
|
|
57595
|
+
} | {
|
|
57596
|
+
/**
|
|
57597
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57598
|
+
*/
|
|
57599
|
+
enabled: boolean;
|
|
57600
|
+
/**
|
|
57601
|
+
* Name of the native tool this entry configures.
|
|
57602
|
+
*/
|
|
57603
|
+
name: 'read';
|
|
57604
|
+
/**
|
|
57605
|
+
* Permission policy for tool execution.
|
|
57606
|
+
*/
|
|
57607
|
+
permission_policy: {
|
|
57608
|
+
/**
|
|
57609
|
+
* Always `always_allow`. Calls run without asking.
|
|
57610
|
+
*/
|
|
57611
|
+
type: 'always_allow';
|
|
57612
|
+
} | {
|
|
57613
|
+
/**
|
|
57614
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57615
|
+
*/
|
|
57616
|
+
type: 'always_ask';
|
|
57617
|
+
} | {
|
|
57618
|
+
/**
|
|
57619
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57620
|
+
*/
|
|
57621
|
+
type: 'auto';
|
|
57622
|
+
};
|
|
57623
|
+
/**
|
|
57624
|
+
* Always `read`. Selects the read tool, which reads a file.
|
|
57625
|
+
*/
|
|
57626
|
+
type: 'read';
|
|
57627
|
+
} | {
|
|
57628
|
+
/**
|
|
57629
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57630
|
+
*/
|
|
57631
|
+
enabled: boolean;
|
|
57632
|
+
/**
|
|
57633
|
+
* Name of the native tool this entry configures.
|
|
57634
|
+
*/
|
|
57635
|
+
name: 'write';
|
|
57636
|
+
/**
|
|
57637
|
+
* Permission policy for tool execution.
|
|
57638
|
+
*/
|
|
57639
|
+
permission_policy: {
|
|
57640
|
+
/**
|
|
57641
|
+
* Always `always_allow`. Calls run without asking.
|
|
57642
|
+
*/
|
|
57643
|
+
type: 'always_allow';
|
|
57644
|
+
} | {
|
|
57645
|
+
/**
|
|
57646
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57647
|
+
*/
|
|
57648
|
+
type: 'always_ask';
|
|
57649
|
+
} | {
|
|
57650
|
+
/**
|
|
57651
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57652
|
+
*/
|
|
57653
|
+
type: 'auto';
|
|
57654
|
+
};
|
|
57655
|
+
/**
|
|
57656
|
+
* Always `write`. Selects the write tool, which writes a file.
|
|
57657
|
+
*/
|
|
57658
|
+
type: 'write';
|
|
57659
|
+
} | {
|
|
57660
|
+
/**
|
|
57661
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57662
|
+
*/
|
|
57663
|
+
enabled: boolean;
|
|
57664
|
+
/**
|
|
57665
|
+
* Name of the native tool this entry configures.
|
|
57666
|
+
*/
|
|
57667
|
+
name: 'glob';
|
|
57668
|
+
/**
|
|
57669
|
+
* Permission policy for tool execution.
|
|
57670
|
+
*/
|
|
57671
|
+
permission_policy: {
|
|
57672
|
+
/**
|
|
57673
|
+
* Always `always_allow`. Calls run without asking.
|
|
57674
|
+
*/
|
|
57675
|
+
type: 'always_allow';
|
|
57676
|
+
} | {
|
|
57677
|
+
/**
|
|
57678
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57679
|
+
*/
|
|
57680
|
+
type: 'always_ask';
|
|
57681
|
+
} | {
|
|
57682
|
+
/**
|
|
57683
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57684
|
+
*/
|
|
57685
|
+
type: 'auto';
|
|
57686
|
+
};
|
|
57687
|
+
/**
|
|
57688
|
+
* Always `glob`. Selects the glob tool, which finds files by name pattern.
|
|
57689
|
+
*/
|
|
57690
|
+
type: 'glob';
|
|
57691
|
+
} | {
|
|
57692
|
+
/**
|
|
57693
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57694
|
+
*/
|
|
57695
|
+
enabled: boolean;
|
|
57696
|
+
/**
|
|
57697
|
+
* Name of the native tool this entry configures.
|
|
57698
|
+
*/
|
|
57699
|
+
name: 'grep';
|
|
57700
|
+
/**
|
|
57701
|
+
* Permission policy for tool execution.
|
|
57702
|
+
*/
|
|
57703
|
+
permission_policy: {
|
|
57704
|
+
/**
|
|
57705
|
+
* Always `always_allow`. Calls run without asking.
|
|
57706
|
+
*/
|
|
57707
|
+
type: 'always_allow';
|
|
57708
|
+
} | {
|
|
57709
|
+
/**
|
|
57710
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57711
|
+
*/
|
|
57712
|
+
type: 'always_ask';
|
|
57713
|
+
} | {
|
|
57714
|
+
/**
|
|
57715
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57716
|
+
*/
|
|
57717
|
+
type: 'auto';
|
|
57718
|
+
};
|
|
57719
|
+
/**
|
|
57720
|
+
* Always `grep`. Selects the grep tool, which searches file contents.
|
|
57721
|
+
*/
|
|
57722
|
+
type: 'grep';
|
|
57723
|
+
} | {
|
|
57724
|
+
/**
|
|
57725
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57726
|
+
*/
|
|
57727
|
+
enabled: boolean;
|
|
57728
|
+
/**
|
|
57729
|
+
* Name of the native tool this entry configures.
|
|
57730
|
+
*/
|
|
57731
|
+
name: 'web_fetch';
|
|
57732
|
+
/**
|
|
57733
|
+
* Permission policy for tool execution.
|
|
57734
|
+
*/
|
|
57735
|
+
permission_policy: {
|
|
57736
|
+
/**
|
|
57737
|
+
* Always `always_allow`. Calls run without asking.
|
|
57738
|
+
*/
|
|
57739
|
+
type: 'always_allow';
|
|
57740
|
+
} | {
|
|
57741
|
+
/**
|
|
57742
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57743
|
+
*/
|
|
57744
|
+
type: 'always_ask';
|
|
57745
|
+
} | {
|
|
57746
|
+
/**
|
|
57747
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57748
|
+
*/
|
|
57749
|
+
type: 'auto';
|
|
57750
|
+
};
|
|
57751
|
+
/**
|
|
57752
|
+
* Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
|
|
57753
|
+
*/
|
|
57754
|
+
type: 'web_fetch';
|
|
57755
|
+
/**
|
|
57756
|
+
* Hosts the tool may fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with blocked_domains.
|
|
57757
|
+
*/
|
|
57758
|
+
allowed_domains?: Array<string>;
|
|
57759
|
+
/**
|
|
57760
|
+
* Hosts the tool must never fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with allowed_domains.
|
|
57761
|
+
*/
|
|
57762
|
+
blocked_domains?: Array<string>;
|
|
57763
|
+
/**
|
|
57764
|
+
* Maximum number of tokens of fetched text content included in context per call; does not apply to binary content such as PDFs. Null for no explicit limit.
|
|
57765
|
+
*/
|
|
57766
|
+
max_content_tokens?: null | number;
|
|
57767
|
+
} | {
|
|
57768
|
+
/**
|
|
57769
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57770
|
+
*/
|
|
57771
|
+
enabled: boolean;
|
|
57772
|
+
/**
|
|
57773
|
+
* Name of the native tool this entry configures.
|
|
57774
|
+
*/
|
|
57775
|
+
name: 'web_search';
|
|
57776
|
+
/**
|
|
57777
|
+
* Permission policy for tool execution.
|
|
57778
|
+
*/
|
|
57779
|
+
permission_policy: {
|
|
57780
|
+
/**
|
|
57781
|
+
* Always `always_allow`. Calls run without asking.
|
|
57782
|
+
*/
|
|
57783
|
+
type: 'always_allow';
|
|
57784
|
+
} | {
|
|
57785
|
+
/**
|
|
57786
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57787
|
+
*/
|
|
57788
|
+
type: 'always_ask';
|
|
57789
|
+
} | {
|
|
57790
|
+
/**
|
|
57791
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57792
|
+
*/
|
|
57793
|
+
type: 'auto';
|
|
57794
|
+
};
|
|
57795
|
+
/**
|
|
57796
|
+
* Always `web_search`. Selects the web_search tool, which searches the web.
|
|
57797
|
+
*/
|
|
57798
|
+
type: 'web_search';
|
|
57799
|
+
/**
|
|
57800
|
+
* Hosts the tool may fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with blocked_domains.
|
|
57801
|
+
*/
|
|
57802
|
+
allowed_domains?: Array<string>;
|
|
57803
|
+
/**
|
|
57804
|
+
* Hosts the tool must never fetch or search, as plain hostnames (no scheme, port or path); a listed domain also covers its subdomains. At most 64 entries, and it cannot be combined with allowed_domains.
|
|
57805
|
+
*/
|
|
57806
|
+
blocked_domains?: Array<string>;
|
|
57807
|
+
/**
|
|
57808
|
+
* Approximate user location for search result localization.
|
|
57809
|
+
*/
|
|
57810
|
+
user_location?: null | {
|
|
57811
|
+
/**
|
|
57812
|
+
* Location precision. Only "approximate" is supported.
|
|
57813
|
+
*/
|
|
57814
|
+
type: 'approximate';
|
|
57815
|
+
/**
|
|
57816
|
+
* City name.
|
|
57817
|
+
*/
|
|
57818
|
+
city?: null | string;
|
|
57819
|
+
/**
|
|
57820
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
57821
|
+
*/
|
|
57822
|
+
country?: null | string;
|
|
57823
|
+
/**
|
|
57824
|
+
* Region or state name.
|
|
57825
|
+
*/
|
|
57826
|
+
region?: null | string;
|
|
57827
|
+
/**
|
|
57828
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
57829
|
+
*/
|
|
57830
|
+
timezone?: null | string;
|
|
57831
|
+
};
|
|
57832
|
+
} | {
|
|
57833
|
+
/**
|
|
57834
|
+
* Name of the native tool this entry configures.
|
|
57835
|
+
*/
|
|
57836
|
+
name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
|
|
57837
|
+
/**
|
|
57838
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57839
|
+
*/
|
|
57840
|
+
enabled: boolean;
|
|
57841
|
+
/**
|
|
57842
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
57843
|
+
*/
|
|
57844
|
+
permission_policy: {
|
|
57845
|
+
/**
|
|
57846
|
+
* Permission policy kind.
|
|
57847
|
+
*/
|
|
57848
|
+
type: 'always_allow' | 'always_ask';
|
|
57849
|
+
};
|
|
57850
|
+
}>;
|
|
57851
|
+
/**
|
|
57852
|
+
* Resolved default configuration for agent tools.
|
|
57853
|
+
*/
|
|
57854
|
+
default_config: {
|
|
57855
|
+
/**
|
|
57856
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
57857
|
+
*/
|
|
57858
|
+
enabled: boolean;
|
|
57859
|
+
/**
|
|
57860
|
+
* Permission policy for tool execution.
|
|
57861
|
+
*/
|
|
57862
|
+
permission_policy: {
|
|
57863
|
+
/**
|
|
57864
|
+
* Always `always_allow`. Calls run without asking.
|
|
57865
|
+
*/
|
|
57866
|
+
type: 'always_allow';
|
|
57867
|
+
} | {
|
|
57868
|
+
/**
|
|
57869
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
57870
|
+
*/
|
|
57871
|
+
type: 'always_ask';
|
|
57872
|
+
} | {
|
|
57873
|
+
/**
|
|
57874
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
57875
|
+
*/
|
|
57876
|
+
type: 'auto';
|
|
57877
|
+
};
|
|
57878
|
+
};
|
|
57879
|
+
/**
|
|
57880
|
+
* Always `agent_toolset_20260401`. The native toolset entry (bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message).
|
|
57881
|
+
*/
|
|
57882
|
+
type: 'agent_toolset_20260401';
|
|
57883
|
+
} | {
|
|
57884
|
+
/**
|
|
57885
|
+
* Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
|
|
57886
|
+
*/
|
|
57887
|
+
type: 'mcp_toolset';
|
|
57888
|
+
/**
|
|
57889
|
+
* Name of the MCP server in mcp_servers whose tools this entry exposes.
|
|
57890
|
+
*/
|
|
57891
|
+
mcp_server_name: string;
|
|
57892
|
+
/**
|
|
57893
|
+
* Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
|
|
57894
|
+
*/
|
|
57895
|
+
default_config?: {
|
|
57896
|
+
/**
|
|
57897
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
57898
|
+
*/
|
|
57899
|
+
enabled?: boolean | null;
|
|
57900
|
+
/**
|
|
57901
|
+
* Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
|
|
57902
|
+
*/
|
|
57903
|
+
permission_policy?: null | {
|
|
57904
|
+
/**
|
|
57905
|
+
* Permission policy kind.
|
|
57906
|
+
*/
|
|
57907
|
+
type: 'always_allow' | 'always_ask';
|
|
57908
|
+
};
|
|
57909
|
+
} | null;
|
|
57910
|
+
/**
|
|
57911
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
57912
|
+
*/
|
|
57913
|
+
configs?: Array<{
|
|
57914
|
+
/**
|
|
57915
|
+
* Bare tool name reported by the MCP server.
|
|
57916
|
+
*/
|
|
57917
|
+
name: string;
|
|
57918
|
+
/**
|
|
57919
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
57920
|
+
*/
|
|
57921
|
+
enabled?: boolean | null;
|
|
57922
|
+
/**
|
|
57923
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
57924
|
+
*/
|
|
57925
|
+
permission_policy?: null | {
|
|
57926
|
+
/**
|
|
57927
|
+
* Permission policy kind.
|
|
57928
|
+
*/
|
|
57929
|
+
type: 'always_allow' | 'always_ask';
|
|
57930
|
+
};
|
|
57931
|
+
}> | null;
|
|
57932
|
+
} | {
|
|
57933
|
+
/**
|
|
57934
|
+
* What the custom tool does and when the model should call it.
|
|
57935
|
+
*/
|
|
57936
|
+
description: string;
|
|
57937
|
+
/**
|
|
57938
|
+
* JSON Schema for custom tool input parameters.
|
|
57939
|
+
*/
|
|
57940
|
+
input_schema: {
|
|
57941
|
+
/**
|
|
57942
|
+
* Always `object`. The input is a JSON object.
|
|
57943
|
+
*/
|
|
57944
|
+
type: 'object';
|
|
57945
|
+
/**
|
|
57946
|
+
* JSON Schema of each input property, keyed by property name.
|
|
57947
|
+
*/
|
|
57948
|
+
properties?: null | {
|
|
57949
|
+
[key: string]: unknown;
|
|
57950
|
+
};
|
|
57951
|
+
/**
|
|
57952
|
+
* Names of the input properties the model must supply.
|
|
57953
|
+
*/
|
|
57954
|
+
required?: null | Array<string>;
|
|
57955
|
+
[key: string]: unknown;
|
|
57956
|
+
};
|
|
57957
|
+
/**
|
|
57958
|
+
* Name of the custom tool, as the model sees and calls it.
|
|
57959
|
+
*/
|
|
57960
|
+
name: string;
|
|
57961
|
+
/**
|
|
57962
|
+
* Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
|
|
57963
|
+
*/
|
|
57964
|
+
type: 'custom';
|
|
57965
|
+
}>;
|
|
57966
|
+
/**
|
|
57967
|
+
* Always `agent`. An agent definition.
|
|
57968
|
+
*/
|
|
57969
|
+
type: 'agent';
|
|
57970
|
+
/**
|
|
57971
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
57972
|
+
*/
|
|
57973
|
+
version: number;
|
|
57974
|
+
};
|
|
57975
|
+
/**
|
|
57976
|
+
* A timestamp in RFC 3339 format
|
|
57977
|
+
*/
|
|
57978
|
+
archived_at: null | string;
|
|
57979
|
+
/**
|
|
57980
|
+
* A hard spend ceiling. The session stops issuing new model requests once the
|
|
57981
|
+
* tracked list cost reaches `max_list_cost`.
|
|
57982
|
+
*/
|
|
57983
|
+
budget: null | {
|
|
57984
|
+
/**
|
|
57985
|
+
* A monetary amount in a specific currency.
|
|
57986
|
+
*/
|
|
57987
|
+
max_list_cost: {
|
|
57988
|
+
/**
|
|
57989
|
+
* Amount in minor units of the currency, as an integer decimal string with no
|
|
57990
|
+
* leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
|
|
57991
|
+
* number so no float rounding is ever applied.
|
|
57992
|
+
*/
|
|
57993
|
+
amount: string;
|
|
57994
|
+
/**
|
|
57995
|
+
* Uppercase ISO-4217 currency code. `USD` is the only currency currently
|
|
57996
|
+
* supported; the accepted set is closed and grows only when a new currency is
|
|
57997
|
+
* priced.
|
|
57998
|
+
*/
|
|
57999
|
+
currency: 'USD';
|
|
58000
|
+
};
|
|
58001
|
+
/**
|
|
58002
|
+
* Always `limit`. A spending limit.
|
|
58003
|
+
*/
|
|
58004
|
+
type: 'limit';
|
|
58005
|
+
};
|
|
58006
|
+
/**
|
|
58007
|
+
* A timestamp in RFC 3339 format
|
|
58008
|
+
*/
|
|
58009
|
+
created_at: string;
|
|
58010
|
+
/**
|
|
58011
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
58012
|
+
*/
|
|
58013
|
+
environment_id?: string;
|
|
58014
|
+
/**
|
|
58015
|
+
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
58016
|
+
*/
|
|
58017
|
+
metadata: {
|
|
58018
|
+
[key: string]: string;
|
|
58019
|
+
};
|
|
58020
|
+
/**
|
|
58021
|
+
* Per-outcome evaluation state. One entry per `define_outcome` event sent to the
|
|
58022
|
+
* session.
|
|
58023
|
+
*/
|
|
58024
|
+
outcome_evaluations: Array<{
|
|
58025
|
+
/**
|
|
58026
|
+
* A timestamp in RFC 3339 format
|
|
58027
|
+
*/
|
|
58028
|
+
completed_at: null | string;
|
|
58029
|
+
/**
|
|
58030
|
+
* What the agent should produce.
|
|
58031
|
+
*/
|
|
58032
|
+
description: string;
|
|
58033
|
+
/**
|
|
58034
|
+
* Grader's verdict text from the most recent evaluation. For `satisfied`, explains
|
|
58035
|
+
* why criteria are met; for `needs_revision` (intermediate), what's missing; for
|
|
58036
|
+
* `failed`, why unrecoverable.
|
|
58037
|
+
*/
|
|
58038
|
+
explanation: null | string;
|
|
58039
|
+
/**
|
|
58040
|
+
* 0-indexed revision cycle the outcome is currently on.
|
|
58041
|
+
*/
|
|
58042
|
+
iteration: number;
|
|
58043
|
+
/**
|
|
58044
|
+
* Server-generated outc\_ ID for this outcome.
|
|
58045
|
+
*/
|
|
58046
|
+
outcome_id: string;
|
|
58047
|
+
/**
|
|
58048
|
+
* Current evaluation state. `pending` before the agent begins work; `running`
|
|
58049
|
+
* while producing or revising; `evaluating` while the grader scores;
|
|
58050
|
+
* `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
|
|
58051
|
+
*/
|
|
58052
|
+
result: string;
|
|
58053
|
+
/**
|
|
58054
|
+
* Always `outcome_evaluation`. Record of one outcome evaluation.
|
|
58055
|
+
*/
|
|
58056
|
+
type: 'outcome_evaluation';
|
|
58057
|
+
}>;
|
|
58058
|
+
/**
|
|
58059
|
+
* Resources attached to the session, at most 500; each is a file reference mounted into the session's machine.
|
|
58060
|
+
*/
|
|
58061
|
+
resources: Array<{
|
|
58062
|
+
/**
|
|
58063
|
+
* Resource id, the resource_id of sessions.resources calls.
|
|
58064
|
+
*/
|
|
58065
|
+
id: string;
|
|
58066
|
+
/**
|
|
58067
|
+
* A timestamp in RFC 3339 format
|
|
58068
|
+
*/
|
|
58069
|
+
created_at: string;
|
|
58070
|
+
/**
|
|
58071
|
+
* Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
|
|
58072
|
+
*/
|
|
58073
|
+
mount_path: string;
|
|
58074
|
+
/**
|
|
58075
|
+
* Always `github_repository`. A GitHub repository resource; not supported on this platform.
|
|
58076
|
+
*/
|
|
58077
|
+
type: 'github_repository';
|
|
58078
|
+
/**
|
|
58079
|
+
* A timestamp in RFC 3339 format
|
|
58080
|
+
*/
|
|
58081
|
+
updated_at: string;
|
|
58082
|
+
/**
|
|
58083
|
+
* Repository URL.
|
|
58084
|
+
*/
|
|
58085
|
+
url: string;
|
|
58086
|
+
/**
|
|
58087
|
+
* Branch or commit to check out.
|
|
58088
|
+
*/
|
|
58089
|
+
checkout?: null | {
|
|
58090
|
+
/**
|
|
58091
|
+
* Branch name to check out.
|
|
58092
|
+
*/
|
|
58093
|
+
name: string;
|
|
58094
|
+
/**
|
|
58095
|
+
* Always `branch`. Check out the named branch.
|
|
58096
|
+
*/
|
|
58097
|
+
type: 'branch';
|
|
58098
|
+
} | {
|
|
58099
|
+
/**
|
|
58100
|
+
* Full commit SHA to check out.
|
|
58101
|
+
*/
|
|
58102
|
+
sha: string;
|
|
58103
|
+
/**
|
|
58104
|
+
* Always `commit`. Check out the commit with the given SHA.
|
|
58105
|
+
*/
|
|
58106
|
+
type: 'commit';
|
|
58107
|
+
};
|
|
58108
|
+
} | {
|
|
58109
|
+
/**
|
|
58110
|
+
* Resource id, the resource_id of sessions.resources calls.
|
|
58111
|
+
*/
|
|
58112
|
+
id: string;
|
|
58113
|
+
/**
|
|
58114
|
+
* A timestamp in RFC 3339 format
|
|
58115
|
+
*/
|
|
58116
|
+
created_at: string;
|
|
58117
|
+
/**
|
|
58118
|
+
* Id of the uploaded file; it must exist and belong to your tenant.
|
|
58119
|
+
*/
|
|
58120
|
+
file_id: string;
|
|
58121
|
+
/**
|
|
58122
|
+
* Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
|
|
58123
|
+
*/
|
|
58124
|
+
mount_path: string;
|
|
58125
|
+
/**
|
|
58126
|
+
* Always `file`. A file resource: an uploaded file mounted into the session's machine.
|
|
58127
|
+
*/
|
|
58128
|
+
type: 'file';
|
|
58129
|
+
/**
|
|
58130
|
+
* A timestamp in RFC 3339 format
|
|
58131
|
+
*/
|
|
58132
|
+
updated_at: string;
|
|
58133
|
+
} | {
|
|
58134
|
+
/**
|
|
58135
|
+
* The memory store ID (memstore\_...). Must belong to the caller's organization
|
|
58136
|
+
* and workspace.
|
|
58137
|
+
*/
|
|
58138
|
+
memory_store_id: string;
|
|
58139
|
+
/**
|
|
58140
|
+
* Always `memory_store`. A memory store resource; not supported on this platform.
|
|
56029
58141
|
*/
|
|
56030
|
-
|
|
56031
|
-
};
|
|
56032
|
-
/**
|
|
56033
|
-
* Equals the X-Request-Id response header.
|
|
56034
|
-
*/
|
|
56035
|
-
request_id: string;
|
|
56036
|
-
};
|
|
56037
|
-
/**
|
|
56038
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56039
|
-
*/
|
|
56040
|
-
429: {
|
|
56041
|
-
type: 'error';
|
|
56042
|
-
error: {
|
|
58142
|
+
type: 'memory_store';
|
|
56043
58143
|
/**
|
|
56044
|
-
*
|
|
58144
|
+
* Access mode for an attached memory store.
|
|
56045
58145
|
*/
|
|
56046
|
-
|
|
56047
|
-
message: string;
|
|
56048
|
-
code: string;
|
|
56049
|
-
retryable: boolean;
|
|
58146
|
+
access?: null | 'read_write' | 'read_only';
|
|
56050
58147
|
/**
|
|
56051
|
-
*
|
|
58148
|
+
* Description of the memory store, snapshotted at attach time. Rendered into the
|
|
58149
|
+
* agent's system prompt. Empty string when the store has no description.
|
|
56052
58150
|
*/
|
|
56053
|
-
|
|
56054
|
-
};
|
|
56055
|
-
/**
|
|
56056
|
-
* Equals the X-Request-Id response header.
|
|
56057
|
-
*/
|
|
56058
|
-
request_id: string;
|
|
56059
|
-
};
|
|
56060
|
-
/**
|
|
56061
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56062
|
-
*/
|
|
56063
|
-
500: {
|
|
56064
|
-
type: 'error';
|
|
56065
|
-
error: {
|
|
58151
|
+
description?: string;
|
|
56066
58152
|
/**
|
|
56067
|
-
*
|
|
58153
|
+
* Per-attachment guidance for the agent on how to use this store. Rendered into
|
|
58154
|
+
* the memory section of the system prompt. Max 4096 chars.
|
|
56068
58155
|
*/
|
|
56069
|
-
|
|
56070
|
-
message: string;
|
|
56071
|
-
code: string;
|
|
56072
|
-
retryable: boolean;
|
|
58156
|
+
instructions?: null | string;
|
|
56073
58157
|
/**
|
|
56074
|
-
*
|
|
58158
|
+
* Filesystem path where the store is mounted in the session container, e.g.
|
|
58159
|
+
* /mnt/memory/user-preferences. Derived from the store's name. Output-only.
|
|
56075
58160
|
*/
|
|
56076
|
-
|
|
56077
|
-
|
|
58161
|
+
mount_path?: null | string;
|
|
58162
|
+
/**
|
|
58163
|
+
* Display name of the memory store, snapshotted at attach time. Later edits to the
|
|
58164
|
+
* store's name do not propagate to this resource.
|
|
58165
|
+
*/
|
|
58166
|
+
name?: null | string;
|
|
58167
|
+
}>;
|
|
56078
58168
|
/**
|
|
56079
|
-
*
|
|
58169
|
+
* Timing statistics for a session.
|
|
56080
58170
|
*/
|
|
56081
|
-
|
|
56082
|
-
};
|
|
56083
|
-
/**
|
|
56084
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56085
|
-
*/
|
|
56086
|
-
503: {
|
|
56087
|
-
type: 'error';
|
|
56088
|
-
error: {
|
|
58171
|
+
stats: {
|
|
56089
58172
|
/**
|
|
56090
|
-
*
|
|
58173
|
+
* Cumulative time in seconds the session spent in `running` status. Excludes idle
|
|
58174
|
+
* time.
|
|
56091
58175
|
*/
|
|
56092
|
-
|
|
56093
|
-
message: string;
|
|
56094
|
-
code: string;
|
|
56095
|
-
retryable: boolean;
|
|
58176
|
+
active_seconds?: number;
|
|
56096
58177
|
/**
|
|
56097
|
-
*
|
|
58178
|
+
* Elapsed time since session creation in seconds. For terminated sessions, frozen
|
|
58179
|
+
* at the final update.
|
|
56098
58180
|
*/
|
|
56099
|
-
|
|
58181
|
+
duration_seconds?: number;
|
|
56100
58182
|
};
|
|
56101
58183
|
/**
|
|
56102
|
-
*
|
|
58184
|
+
* SessionStatus enum
|
|
58185
|
+
*
|
|
58186
|
+
* - `rescheduling` - Transient error occurred, retrying automatically.
|
|
58187
|
+
* - `running` - Agent is actively executing.
|
|
58188
|
+
* - `idle` - Agent is waiting for input, including user messages or tool
|
|
58189
|
+
* confirmations. Sessions start in idle.
|
|
58190
|
+
* - `terminated` - Session has ended, either due to an error or completion.
|
|
56103
58191
|
*/
|
|
56104
|
-
|
|
56105
|
-
};
|
|
56106
|
-
};
|
|
56107
|
-
export type ReleaseComputerLeaseError = ReleaseComputerLeaseErrors[keyof ReleaseComputerLeaseErrors];
|
|
56108
|
-
export type ReleaseComputerLeaseResponses = {
|
|
56109
|
-
/**
|
|
56110
|
-
* Computer result
|
|
56111
|
-
*/
|
|
56112
|
-
200: {
|
|
58192
|
+
status: 'rescheduling' | 'running' | 'idle' | 'terminated';
|
|
56113
58193
|
/**
|
|
56114
|
-
*
|
|
58194
|
+
* Title of the session, set on create or through sessions.update; null when none was set.
|
|
56115
58195
|
*/
|
|
56116
|
-
|
|
58196
|
+
title: null | string;
|
|
56117
58197
|
/**
|
|
56118
|
-
*
|
|
58198
|
+
* Always `session`. A session, one conversation of an agent on a machine.
|
|
56119
58199
|
*/
|
|
56120
|
-
type: '
|
|
56121
|
-
};
|
|
56122
|
-
};
|
|
56123
|
-
export type ReleaseComputerLeaseResponse = ReleaseComputerLeaseResponses[keyof ReleaseComputerLeaseResponses];
|
|
56124
|
-
export type ListToolsetsData = {
|
|
56125
|
-
body?: never;
|
|
56126
|
-
path?: never;
|
|
56127
|
-
query?: never;
|
|
56128
|
-
url: '/agent/v1/toolsets';
|
|
56129
|
-
};
|
|
56130
|
-
export type ListToolsetsErrors = {
|
|
56131
|
-
/**
|
|
56132
|
-
* Authentication required
|
|
56133
|
-
*/
|
|
56134
|
-
401: unknown;
|
|
56135
|
-
/**
|
|
56136
|
-
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56137
|
-
*/
|
|
56138
|
-
403: AgentError;
|
|
56139
|
-
/**
|
|
56140
|
-
* Toolset catalog unavailable
|
|
56141
|
-
*/
|
|
56142
|
-
502: unknown;
|
|
56143
|
-
/**
|
|
56144
|
-
* Agent service unavailable
|
|
56145
|
-
*/
|
|
56146
|
-
503: unknown;
|
|
56147
|
-
};
|
|
56148
|
-
export type ListToolsetsError = ListToolsetsErrors[keyof ListToolsetsErrors];
|
|
56149
|
-
export type ListToolsetsResponses = {
|
|
56150
|
-
/**
|
|
56151
|
-
* Available toolsets
|
|
56152
|
-
*/
|
|
56153
|
-
200: {
|
|
58200
|
+
type: 'session';
|
|
56154
58201
|
/**
|
|
56155
|
-
*
|
|
58202
|
+
* A timestamp in RFC 3339 format
|
|
56156
58203
|
*/
|
|
56157
|
-
|
|
58204
|
+
updated_at: string;
|
|
58205
|
+
/**
|
|
58206
|
+
* Cumulative token usage for a session across all turns.
|
|
58207
|
+
*/
|
|
58208
|
+
usage: {
|
|
56158
58209
|
/**
|
|
56159
|
-
*
|
|
58210
|
+
* Cumulative time in seconds during which the session had at least one thread in
|
|
58211
|
+
* running status. Overlapping activity from concurrent threads is counted once,
|
|
58212
|
+
* unlike `stats.active_seconds`, which sums each thread's own active time. This is
|
|
58213
|
+
* the duration the session's runtime cost is priced on.
|
|
56160
58214
|
*/
|
|
56161
|
-
|
|
58215
|
+
active_seconds?: number;
|
|
56162
58216
|
/**
|
|
56163
|
-
*
|
|
58217
|
+
* Prompt-cache creation token usage broken down by cache lifetime.
|
|
56164
58218
|
*/
|
|
56165
|
-
|
|
58219
|
+
cache_creation?: {
|
|
56166
58220
|
/**
|
|
56167
|
-
*
|
|
58221
|
+
* Tokens used to create 1-hour ephemeral cache entries.
|
|
56168
58222
|
*/
|
|
56169
|
-
|
|
58223
|
+
ephemeral_1h_input_tokens?: number;
|
|
56170
58224
|
/**
|
|
56171
|
-
*
|
|
58225
|
+
* Tokens used to create 5-minute ephemeral cache entries.
|
|
56172
58226
|
*/
|
|
56173
|
-
|
|
58227
|
+
ephemeral_5m_input_tokens?: number;
|
|
56174
58228
|
};
|
|
56175
58229
|
/**
|
|
56176
|
-
*
|
|
58230
|
+
* Total tokens read from prompt cache.
|
|
56177
58231
|
*/
|
|
56178
|
-
|
|
58232
|
+
cache_read_input_tokens?: number;
|
|
56179
58233
|
/**
|
|
56180
|
-
*
|
|
58234
|
+
* Total input tokens consumed across all turns.
|
|
56181
58235
|
*/
|
|
56182
|
-
|
|
58236
|
+
input_tokens?: number;
|
|
56183
58237
|
/**
|
|
56184
|
-
*
|
|
58238
|
+
* Session total list-price cost in USD as a decimal string with exactly 6 decimals. Includes models, runtime and all other charged products attributed to this session; child-thread model cost is already included. The budget reads the same total. In-flight work may finish after the limit is reached.
|
|
56185
58239
|
*/
|
|
56186
|
-
|
|
56187
|
-
/**
|
|
56188
|
-
* Name of the custom tool, as the model sees and calls it.
|
|
56189
|
-
*/
|
|
56190
|
-
name: string;
|
|
56191
|
-
/**
|
|
56192
|
-
* What the custom tool does and when the model should call it.
|
|
56193
|
-
*/
|
|
56194
|
-
description: string;
|
|
56195
|
-
/**
|
|
56196
|
-
* JSON Schema of the custom tool's input object, passed to the model as the tool's parameters.
|
|
56197
|
-
*/
|
|
56198
|
-
input_schema: {
|
|
56199
|
-
[key: string]: unknown;
|
|
56200
|
-
};
|
|
58240
|
+
list_cost?: null | {
|
|
56201
58241
|
/**
|
|
56202
|
-
*
|
|
58242
|
+
* Amount in minor units of the currency, as an integer decimal string with no
|
|
58243
|
+
* leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
|
|
58244
|
+
* number so no float rounding is ever applied.
|
|
56203
58245
|
*/
|
|
56204
|
-
|
|
58246
|
+
amount: string;
|
|
56205
58247
|
/**
|
|
56206
|
-
*
|
|
58248
|
+
* Uppercase ISO-4217 currency code. `USD` is the only currency currently
|
|
58249
|
+
* supported; the accepted set is closed and grows only when a new currency is
|
|
58250
|
+
* priced.
|
|
56207
58251
|
*/
|
|
56208
|
-
|
|
58252
|
+
currency: 'USD';
|
|
58253
|
+
};
|
|
58254
|
+
/**
|
|
58255
|
+
* Total output tokens generated across all turns.
|
|
58256
|
+
*/
|
|
58257
|
+
output_tokens?: number;
|
|
58258
|
+
/**
|
|
58259
|
+
* Cumulative count of server-executed tool invocations, broken down by tool.
|
|
58260
|
+
*/
|
|
58261
|
+
server_tool_use?: null | {
|
|
56209
58262
|
/**
|
|
56210
|
-
*
|
|
58263
|
+
* Number of server-executed web fetch requests.
|
|
56211
58264
|
*/
|
|
56212
|
-
|
|
58265
|
+
web_fetch_requests?: number;
|
|
56213
58266
|
/**
|
|
56214
|
-
*
|
|
58267
|
+
* Number of server-executed web search requests.
|
|
56215
58268
|
*/
|
|
56216
|
-
|
|
56217
|
-
}
|
|
56218
|
-
|
|
58269
|
+
web_search_requests?: number;
|
|
58270
|
+
};
|
|
58271
|
+
/**
|
|
58272
|
+
* USD list-price cost by product, as decimal strings with exactly 6 decimals. Values sum to list_cost.amount. router.llm is the larger of the live model meter and charged model facts; all other products use charged facts only.
|
|
58273
|
+
*/
|
|
58274
|
+
cost_by_product?: {
|
|
58275
|
+
[key: string]: string;
|
|
58276
|
+
};
|
|
58277
|
+
/**
|
|
58278
|
+
* Child-thread model cost in integer micro-USD, already included in list_cost. This is a subset, not an additional charge; it excludes child-thread runtime.
|
|
58279
|
+
*/
|
|
58280
|
+
subagent_cost_micro_usd?: number;
|
|
58281
|
+
};
|
|
56219
58282
|
/**
|
|
56220
|
-
*
|
|
58283
|
+
* Vault IDs attached to the session at creation. Empty when no vaults were
|
|
58284
|
+
* supplied.
|
|
56221
58285
|
*/
|
|
56222
|
-
|
|
56223
|
-
};
|
|
56224
|
-
};
|
|
56225
|
-
export type ListToolsetsResponse = ListToolsetsResponses[keyof ListToolsetsResponses];
|
|
56226
|
-
export type GetSessionContextData = {
|
|
56227
|
-
body?: never;
|
|
56228
|
-
path: {
|
|
58286
|
+
vault_ids: Array<string>;
|
|
56229
58287
|
/**
|
|
56230
|
-
*
|
|
58288
|
+
* Deployment ID when the session was created from a deployment reference. Null
|
|
58289
|
+
* otherwise.
|
|
56231
58290
|
*/
|
|
56232
|
-
|
|
56233
|
-
};
|
|
56234
|
-
query?: never;
|
|
56235
|
-
url: '/agent/v1/sessions/{session_id}/context';
|
|
56236
|
-
};
|
|
56237
|
-
export type GetSessionContextErrors = {
|
|
56238
|
-
/**
|
|
56239
|
-
* Authentication required
|
|
56240
|
-
*/
|
|
56241
|
-
401: unknown;
|
|
56242
|
-
/**
|
|
56243
|
-
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56244
|
-
*/
|
|
56245
|
-
403: AgentError;
|
|
56246
|
-
/**
|
|
56247
|
-
* Session not found
|
|
56248
|
-
*/
|
|
56249
|
-
404: unknown;
|
|
56250
|
-
/**
|
|
56251
|
-
* Model catalog unavailable
|
|
56252
|
-
*/
|
|
56253
|
-
502: unknown;
|
|
56254
|
-
/**
|
|
56255
|
-
* Agent service unavailable
|
|
56256
|
-
*/
|
|
56257
|
-
503: unknown;
|
|
56258
|
-
};
|
|
56259
|
-
export type GetSessionContextError = GetSessionContextErrors[keyof GetSessionContextErrors];
|
|
56260
|
-
export type GetSessionContextResponses = {
|
|
56261
|
-
/**
|
|
56262
|
-
* Current model and latest context measurement
|
|
56263
|
-
*/
|
|
56264
|
-
200: {
|
|
58291
|
+
deployment_id?: null | string;
|
|
56265
58292
|
/**
|
|
56266
|
-
*
|
|
58293
|
+
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
56267
58294
|
*/
|
|
56268
|
-
|
|
58295
|
+
cwd: string;
|
|
56269
58296
|
/**
|
|
56270
|
-
* Session
|
|
58297
|
+
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
56271
58298
|
*/
|
|
56272
|
-
|
|
58299
|
+
computer_id?: string;
|
|
56273
58300
|
/**
|
|
56274
|
-
*
|
|
58301
|
+
* Praxis extension: the currently selected session model.
|
|
56275
58302
|
*/
|
|
56276
|
-
model
|
|
58303
|
+
model?: {
|
|
56277
58304
|
/**
|
|
56278
58305
|
* Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource.
|
|
56279
58306
|
*/
|
|
56280
58307
|
id: string;
|
|
56281
58308
|
/**
|
|
56282
|
-
*
|
|
56283
|
-
*/
|
|
56284
|
-
display_name: string;
|
|
56285
|
-
/**
|
|
56286
|
-
* Thinking capability of the model: supported efforts, whether thinking can be disabled, and the default. Null when the capability is unknown.
|
|
58309
|
+
* Supported thinking controls, or null when capability is unknown or unavailable. efforts lists selectable strengths; can_disable permits none; default_effort is nullable.
|
|
56287
58310
|
*/
|
|
56288
58311
|
thinking: {
|
|
56289
58312
|
/**
|
|
@@ -56301,186 +58324,61 @@ export type GetSessionContextResponses = {
|
|
|
56301
58324
|
} | null;
|
|
56302
58325
|
};
|
|
56303
58326
|
/**
|
|
56304
|
-
*
|
|
56305
|
-
*/
|
|
56306
|
-
total_tokens: number | null;
|
|
56307
|
-
/**
|
|
56308
|
-
* Whether total_tokens is the provider-reported input usage (actual) or a local estimate (estimated); null before the first measurement.
|
|
56309
|
-
*/
|
|
56310
|
-
total_tokens_source: 'actual' | 'estimated' | null;
|
|
56311
|
-
/**
|
|
56312
|
-
* Context window of the model in tokens; null when the model does not state one.
|
|
56313
|
-
*/
|
|
56314
|
-
max_tokens: number | null;
|
|
56315
|
-
/**
|
|
56316
|
-
* Maximum input tokens the model accepts per request; null when not stated.
|
|
56317
|
-
*/
|
|
56318
|
-
max_input_tokens: number | null;
|
|
56319
|
-
/**
|
|
56320
|
-
* Share of the context window in use, as a whole-number percent; 0 when the window or usage is unknown.
|
|
56321
|
-
*/
|
|
56322
|
-
percentage: number;
|
|
56323
|
-
/**
|
|
56324
|
-
* Token count at which automatic compaction starts; null when the window is unknown.
|
|
56325
|
-
*/
|
|
56326
|
-
auto_compact_threshold: number | null;
|
|
56327
|
-
/**
|
|
56328
|
-
* Whether automatic compaction is enabled for this session.
|
|
56329
|
-
*/
|
|
56330
|
-
is_auto_compact_enabled: boolean;
|
|
56331
|
-
/**
|
|
56332
|
-
* Token count at which old tool results are cleared from the context.
|
|
56333
|
-
*/
|
|
56334
|
-
clear_tool_results_at: number;
|
|
56335
|
-
/**
|
|
56336
|
-
* Level of detail of the snapshot.
|
|
56337
|
-
*/
|
|
56338
|
-
detail: 'summary';
|
|
56339
|
-
/**
|
|
56340
|
-
* Context usage by category; each row has a stable key and a kind.
|
|
56341
|
-
*/
|
|
56342
|
-
categories: Array<{
|
|
56343
|
-
/**
|
|
56344
|
-
* Praxis extension: stable source identifier (system, tools, mcp:<server>, plugin:<id>, messages, summary, free, buffer). Clients must tolerate unknown keys and newly added sources; classify rows by kind, not key or name.
|
|
56345
|
-
*/
|
|
56346
|
-
key: string;
|
|
56347
|
-
/**
|
|
56348
|
-
* Display name of the category.
|
|
56349
|
-
*/
|
|
56350
|
-
name: string;
|
|
56351
|
-
/**
|
|
56352
|
-
* Tokens used by the category.
|
|
56353
|
-
*/
|
|
56354
|
-
tokens: number;
|
|
56355
|
-
/**
|
|
56356
|
-
* How the category counts against the window.
|
|
56357
|
-
*/
|
|
56358
|
-
kind: 'used' | 'free' | 'buffer' | 'deferred';
|
|
56359
|
-
}>;
|
|
56360
|
-
/**
|
|
56361
|
-
* Tokens spent on the tool definitions of each MCP server.
|
|
56362
|
-
*/
|
|
56363
|
-
mcp_tools: Array<{
|
|
56364
|
-
/**
|
|
56365
|
-
* Name of the MCP tool.
|
|
56366
|
-
*/
|
|
56367
|
-
name: string;
|
|
56368
|
-
/**
|
|
56369
|
-
* Name of the MCP server that provides the tool.
|
|
56370
|
-
*/
|
|
56371
|
-
server_name: string;
|
|
56372
|
-
/**
|
|
56373
|
-
* Tokens used by the tool definition.
|
|
56374
|
-
*/
|
|
56375
|
-
tokens: number;
|
|
56376
|
-
}>;
|
|
56377
|
-
/**
|
|
56378
|
-
* Tokens spent on context blocks injected by each mod.
|
|
58327
|
+
* Praxis extension: explicit session thinking effort; null inherits the pinned agent default, then the model default. none disables thinking only when model.thinking.can_disable is true. Unsupported efforts return 400 invalid_request_error.
|
|
56379
58328
|
*/
|
|
56380
|
-
|
|
56381
|
-
/**
|
|
56382
|
-
* Name of the mod that injected the block.
|
|
56383
|
-
*/
|
|
56384
|
-
name: string;
|
|
58329
|
+
thinking?: {
|
|
56385
58330
|
/**
|
|
56386
|
-
*
|
|
58331
|
+
* Thinking level saved for this session: low, medium, high, xhigh, max, or none to turn thinking off. Null or absent means the session inherits the agent default and then the model default.
|
|
56387
58332
|
*/
|
|
56388
|
-
|
|
56389
|
-
}
|
|
58333
|
+
effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
58334
|
+
} | null;
|
|
56390
58335
|
/**
|
|
56391
|
-
*
|
|
58336
|
+
* Praxis extension: source of a forked session; null for other sessions. Available only on /agent/v1.
|
|
56392
58337
|
*/
|
|
56393
|
-
|
|
56394
|
-
/**
|
|
56395
|
-
* Tokens of user messages.
|
|
56396
|
-
*/
|
|
56397
|
-
user_message_tokens: number;
|
|
56398
|
-
/**
|
|
56399
|
-
* Tokens of assistant text messages.
|
|
56400
|
-
*/
|
|
56401
|
-
assistant_message_tokens: number;
|
|
56402
|
-
/**
|
|
56403
|
-
* Tokens of tool-call arguments.
|
|
56404
|
-
*/
|
|
56405
|
-
tool_call_tokens: number;
|
|
56406
|
-
/**
|
|
56407
|
-
* Tokens of tool results.
|
|
56408
|
-
*/
|
|
56409
|
-
tool_result_tokens: number;
|
|
56410
|
-
/**
|
|
56411
|
-
* Tokens of reasoning content.
|
|
56412
|
-
*/
|
|
56413
|
-
reasoning_tokens: number;
|
|
58338
|
+
forked_from?: {
|
|
56414
58339
|
/**
|
|
56415
|
-
*
|
|
58340
|
+
* Id of the parent session this session was forked from; it is left unchanged by the fork.
|
|
56416
58341
|
*/
|
|
56417
|
-
|
|
56418
|
-
/**
|
|
56419
|
-
* Name of the tool.
|
|
56420
|
-
*/
|
|
56421
|
-
name: string;
|
|
56422
|
-
/**
|
|
56423
|
-
* Tokens of this tool's call arguments.
|
|
56424
|
-
*/
|
|
56425
|
-
call_tokens: number;
|
|
56426
|
-
/**
|
|
56427
|
-
* Tokens of this tool's results.
|
|
56428
|
-
*/
|
|
56429
|
-
result_tokens: number;
|
|
56430
|
-
}>;
|
|
56431
|
-
};
|
|
56432
|
-
/**
|
|
56433
|
-
* Tokens held by the latest compaction summary; null when the session was never compacted.
|
|
56434
|
-
*/
|
|
56435
|
-
compaction_summary: {
|
|
58342
|
+
session_id: string;
|
|
56436
58343
|
/**
|
|
56437
|
-
*
|
|
58344
|
+
* message_id of the agent message in the parent session up to which the conversation was copied.
|
|
56438
58345
|
*/
|
|
56439
|
-
|
|
58346
|
+
message_id: string;
|
|
56440
58347
|
} | null;
|
|
56441
58348
|
/**
|
|
56442
|
-
*
|
|
58349
|
+
* End-user identifier associated with the session, or null when none is recorded. Own-face extension; use external_user_id on sessions.list to find this user's sessions.
|
|
56443
58350
|
*/
|
|
56444
|
-
|
|
56445
|
-
/**
|
|
56446
|
-
* Number of excluded items.
|
|
56447
|
-
*/
|
|
56448
|
-
count: number;
|
|
56449
|
-
/**
|
|
56450
|
-
* Tokens of the excluded items.
|
|
56451
|
-
*/
|
|
56452
|
-
tokens: number;
|
|
56453
|
-
};
|
|
58351
|
+
readonly external_user_id: string | null;
|
|
56454
58352
|
/**
|
|
56455
|
-
*
|
|
58353
|
+
* Origin of the session: kit, iframe, hosted, api or automation; null when unavailable. Own-face extension; use source on sessions.list to filter by origin.
|
|
56456
58354
|
*/
|
|
56457
|
-
|
|
58355
|
+
readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
|
|
56458
58356
|
};
|
|
56459
58357
|
};
|
|
56460
|
-
export type
|
|
56461
|
-
export type
|
|
58358
|
+
export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
|
|
58359
|
+
export type RenameSessionData = {
|
|
56462
58360
|
body: {
|
|
56463
58361
|
/**
|
|
56464
|
-
*
|
|
58362
|
+
* The session's new short name: Han characters, lowercase ASCII letters, digits and hyphens, at most 32 columns (a Han character counts as two), never the reserved word main. Surrounding whitespace is trimmed and uppercase is folded to lowercase.
|
|
56465
58363
|
*/
|
|
56466
|
-
|
|
58364
|
+
name: string;
|
|
56467
58365
|
};
|
|
56468
58366
|
path: {
|
|
56469
58367
|
/**
|
|
56470
|
-
* Session id
|
|
58368
|
+
* Session id from session creation or listing. The reserved name main is not renameable.
|
|
56471
58369
|
*/
|
|
56472
58370
|
session_id: string;
|
|
56473
58371
|
};
|
|
56474
58372
|
query?: never;
|
|
56475
|
-
url: '/agent/v1/sessions/{session_id}/
|
|
58373
|
+
url: '/agent/v1/sessions/{session_id}/name';
|
|
56476
58374
|
};
|
|
56477
|
-
export type
|
|
58375
|
+
export type RenameSessionErrors = {
|
|
56478
58376
|
/**
|
|
56479
|
-
*
|
|
58377
|
+
* INVALID_PARAMS: name is missing or empty, wider than the limit, carries a character the rule drops, or is the reserved main; the main session is always main and cannot be renamed.
|
|
56480
58378
|
*/
|
|
56481
58379
|
400: unknown;
|
|
56482
58380
|
/**
|
|
56483
|
-
* Authentication required
|
|
58381
|
+
* Authentication required.
|
|
56484
58382
|
*/
|
|
56485
58383
|
401: unknown;
|
|
56486
58384
|
/**
|
|
@@ -56488,13 +58386,9 @@ export type ForkSessionErrors = {
|
|
|
56488
58386
|
*/
|
|
56489
58387
|
403: AgentError;
|
|
56490
58388
|
/**
|
|
56491
|
-
* Session not found
|
|
58389
|
+
* Session not found or not writable by this caller.
|
|
56492
58390
|
*/
|
|
56493
58391
|
404: unknown;
|
|
56494
|
-
/**
|
|
56495
|
-
* FORK_TARGET_INVALID: target is not the final assistant message in a successful turn
|
|
56496
|
-
*/
|
|
56497
|
-
409: unknown;
|
|
56498
58392
|
/**
|
|
56499
58393
|
* Agent service failed
|
|
56500
58394
|
*/
|
|
@@ -56504,12 +58398,12 @@ export type ForkSessionErrors = {
|
|
|
56504
58398
|
*/
|
|
56505
58399
|
503: unknown;
|
|
56506
58400
|
};
|
|
56507
|
-
export type
|
|
56508
|
-
export type
|
|
58401
|
+
export type RenameSessionError = RenameSessionErrors[keyof RenameSessionErrors];
|
|
58402
|
+
export type RenameSessionResponses = {
|
|
56509
58403
|
/**
|
|
56510
|
-
*
|
|
58404
|
+
* The session under its new name; a name another of this person's sessions already holds comes back with a numeric suffix.
|
|
56511
58405
|
*/
|
|
56512
|
-
|
|
58406
|
+
200: {
|
|
56513
58407
|
/**
|
|
56514
58408
|
* Session id (sesn_...). Pass it as session_id in every session call.
|
|
56515
58409
|
*/
|
|
@@ -58186,7 +60080,7 @@ export type ForkSessionResponses = {
|
|
|
58186
60080
|
readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
|
|
58187
60081
|
};
|
|
58188
60082
|
};
|
|
58189
|
-
export type
|
|
60083
|
+
export type RenameSessionResponse = RenameSessionResponses[keyof RenameSessionResponses];
|
|
58190
60084
|
export type UpdateSessionAgentVersionData = {
|
|
58191
60085
|
/**
|
|
58192
60086
|
* The version to move the session to; omit the body to move to the agent's active version.
|
|
@@ -72999,7 +74893,7 @@ export type AgentsListResponses = {
|
|
|
72999
74893
|
*/
|
|
73000
74894
|
note: string | null;
|
|
73001
74895
|
/**
|
|
73002
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
74896
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
73003
74897
|
*/
|
|
73004
74898
|
bindings: Array<{
|
|
73005
74899
|
/**
|
|
@@ -73014,6 +74908,10 @@ export type AgentsListResponses = {
|
|
|
73014
74908
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
73015
74909
|
*/
|
|
73016
74910
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
74911
|
+
/**
|
|
74912
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
74913
|
+
*/
|
|
74914
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
73017
74915
|
/**
|
|
73018
74916
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
73019
74917
|
*/
|
|
@@ -73438,6 +75336,10 @@ export type AgentsListResponses = {
|
|
|
73438
75336
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
73439
75337
|
*/
|
|
73440
75338
|
creation_source: string | null;
|
|
75339
|
+
/**
|
|
75340
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
75341
|
+
*/
|
|
75342
|
+
managed_by: string | null;
|
|
73441
75343
|
/**
|
|
73442
75344
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
73443
75345
|
*/
|
|
@@ -73560,7 +75462,7 @@ export type AgentsCreateData = {
|
|
|
73560
75462
|
*/
|
|
73561
75463
|
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
73562
75464
|
/**
|
|
73563
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
75465
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
73564
75466
|
*/
|
|
73565
75467
|
bindings?: Array<{
|
|
73566
75468
|
/**
|
|
@@ -73575,6 +75477,10 @@ export type AgentsCreateData = {
|
|
|
73575
75477
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
73576
75478
|
*/
|
|
73577
75479
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
75480
|
+
/**
|
|
75481
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
75482
|
+
*/
|
|
75483
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
73578
75484
|
/**
|
|
73579
75485
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
73580
75486
|
*/
|
|
@@ -73602,7 +75508,7 @@ export type AgentsCreateData = {
|
|
|
73602
75508
|
enabled?: boolean;
|
|
73603
75509
|
}>;
|
|
73604
75510
|
/**
|
|
73605
|
-
* Immutable agent kind. general
|
|
75511
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
73606
75512
|
*/
|
|
73607
75513
|
kind?: 'general' | 'service' | 'assume';
|
|
73608
75514
|
/**
|
|
@@ -74187,7 +76093,7 @@ export type AgentsCreateResponses = {
|
|
|
74187
76093
|
*/
|
|
74188
76094
|
note: string | null;
|
|
74189
76095
|
/**
|
|
74190
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
76096
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
74191
76097
|
*/
|
|
74192
76098
|
bindings: Array<{
|
|
74193
76099
|
/**
|
|
@@ -74202,6 +76108,10 @@ export type AgentsCreateResponses = {
|
|
|
74202
76108
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
74203
76109
|
*/
|
|
74204
76110
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
76111
|
+
/**
|
|
76112
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
76113
|
+
*/
|
|
76114
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
74205
76115
|
/**
|
|
74206
76116
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
74207
76117
|
*/
|
|
@@ -74626,6 +76536,10 @@ export type AgentsCreateResponses = {
|
|
|
74626
76536
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
74627
76537
|
*/
|
|
74628
76538
|
creation_source: string | null;
|
|
76539
|
+
/**
|
|
76540
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
76541
|
+
*/
|
|
76542
|
+
managed_by: string | null;
|
|
74629
76543
|
/**
|
|
74630
76544
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
74631
76545
|
*/
|
|
@@ -74837,7 +76751,7 @@ export type AgentsRetrieveResponses = {
|
|
|
74837
76751
|
*/
|
|
74838
76752
|
note: string | null;
|
|
74839
76753
|
/**
|
|
74840
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
76754
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
74841
76755
|
*/
|
|
74842
76756
|
bindings: Array<{
|
|
74843
76757
|
/**
|
|
@@ -74852,6 +76766,10 @@ export type AgentsRetrieveResponses = {
|
|
|
74852
76766
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
74853
76767
|
*/
|
|
74854
76768
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
76769
|
+
/**
|
|
76770
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
76771
|
+
*/
|
|
76772
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
74855
76773
|
/**
|
|
74856
76774
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
74857
76775
|
*/
|
|
@@ -75276,6 +77194,10 @@ export type AgentsRetrieveResponses = {
|
|
|
75276
77194
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
75277
77195
|
*/
|
|
75278
77196
|
creation_source: string | null;
|
|
77197
|
+
/**
|
|
77198
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
77199
|
+
*/
|
|
77200
|
+
managed_by: string | null;
|
|
75279
77201
|
/**
|
|
75280
77202
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
75281
77203
|
*/
|
|
@@ -75422,6 +77344,10 @@ export type AgentsUpdateData = {
|
|
|
75422
77344
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
75423
77345
|
*/
|
|
75424
77346
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
77347
|
+
/**
|
|
77348
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
77349
|
+
*/
|
|
77350
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
75425
77351
|
/**
|
|
75426
77352
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
75427
77353
|
*/
|
|
@@ -75449,7 +77375,7 @@ export type AgentsUpdateData = {
|
|
|
75449
77375
|
enabled?: boolean;
|
|
75450
77376
|
}> | null;
|
|
75451
77377
|
/**
|
|
75452
|
-
* Immutable agent kind. general
|
|
77378
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
75453
77379
|
*/
|
|
75454
77380
|
kind?: 'general' | 'service' | 'assume';
|
|
75455
77381
|
/**
|
|
@@ -76047,7 +77973,7 @@ export type AgentsUpdateResponses = {
|
|
|
76047
77973
|
*/
|
|
76048
77974
|
note: string | null;
|
|
76049
77975
|
/**
|
|
76050
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
77976
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
76051
77977
|
*/
|
|
76052
77978
|
bindings: Array<{
|
|
76053
77979
|
/**
|
|
@@ -76062,6 +77988,10 @@ export type AgentsUpdateResponses = {
|
|
|
76062
77988
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
76063
77989
|
*/
|
|
76064
77990
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
77991
|
+
/**
|
|
77992
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
77993
|
+
*/
|
|
77994
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
76065
77995
|
/**
|
|
76066
77996
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
76067
77997
|
*/
|
|
@@ -76486,6 +78416,10 @@ export type AgentsUpdateResponses = {
|
|
|
76486
78416
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
76487
78417
|
*/
|
|
76488
78418
|
creation_source: string | null;
|
|
78419
|
+
/**
|
|
78420
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
78421
|
+
*/
|
|
78422
|
+
managed_by: string | null;
|
|
76489
78423
|
/**
|
|
76490
78424
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
76491
78425
|
*/
|
|
@@ -76683,7 +78617,7 @@ export type AgentsArchiveResponses = {
|
|
|
76683
78617
|
*/
|
|
76684
78618
|
note: string | null;
|
|
76685
78619
|
/**
|
|
76686
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
78620
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
76687
78621
|
*/
|
|
76688
78622
|
bindings: Array<{
|
|
76689
78623
|
/**
|
|
@@ -76698,6 +78632,10 @@ export type AgentsArchiveResponses = {
|
|
|
76698
78632
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
76699
78633
|
*/
|
|
76700
78634
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
78635
|
+
/**
|
|
78636
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
78637
|
+
*/
|
|
78638
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
76701
78639
|
/**
|
|
76702
78640
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
76703
78641
|
*/
|
|
@@ -77100,6 +79038,10 @@ export type AgentsArchiveResponses = {
|
|
|
77100
79038
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
77101
79039
|
*/
|
|
77102
79040
|
creation_source: string | null;
|
|
79041
|
+
/**
|
|
79042
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
79043
|
+
*/
|
|
79044
|
+
managed_by: string | null;
|
|
77103
79045
|
/**
|
|
77104
79046
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
77105
79047
|
*/
|
|
@@ -77315,7 +79257,7 @@ export type AgentsVersionsListResponses = {
|
|
|
77315
79257
|
*/
|
|
77316
79258
|
note: string | null;
|
|
77317
79259
|
/**
|
|
77318
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
79260
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
77319
79261
|
*/
|
|
77320
79262
|
bindings: Array<{
|
|
77321
79263
|
/**
|
|
@@ -77330,6 +79272,10 @@ export type AgentsVersionsListResponses = {
|
|
|
77330
79272
|
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
77331
79273
|
*/
|
|
77332
79274
|
access: 'read_only' | 'read_write' | 'invoke';
|
|
79275
|
+
/**
|
|
79276
|
+
* What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
|
|
79277
|
+
*/
|
|
79278
|
+
customer_access?: 'read_only' | 'read_write' | 'invoke';
|
|
77333
79279
|
/**
|
|
77334
79280
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
77335
79281
|
*/
|
|
@@ -77754,6 +79700,10 @@ export type AgentsVersionsListResponses = {
|
|
|
77754
79700
|
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
77755
79701
|
*/
|
|
77756
79702
|
creation_source: string | null;
|
|
79703
|
+
/**
|
|
79704
|
+
* Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
|
|
79705
|
+
*/
|
|
79706
|
+
managed_by: string | null;
|
|
77757
79707
|
/**
|
|
77758
79708
|
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
77759
79709
|
*/
|
|
@@ -96996,7 +98946,7 @@ export type DevopsChangesGetData = {
|
|
|
96996
98946
|
body?: never;
|
|
96997
98947
|
path: {
|
|
96998
98948
|
/**
|
|
96999
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
98949
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
97000
98950
|
*/
|
|
97001
98951
|
id: string;
|
|
97002
98952
|
};
|
|
@@ -97033,7 +98983,7 @@ export type DevopsChangesAbandonData = {
|
|
|
97033
98983
|
body: DevopsChangeAbandonRequest;
|
|
97034
98984
|
path: {
|
|
97035
98985
|
/**
|
|
97036
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
98986
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
97037
98987
|
*/
|
|
97038
98988
|
id: string;
|
|
97039
98989
|
};
|
|
@@ -97074,7 +99024,7 @@ export type DevopsChangesMarkLastSliceData = {
|
|
|
97074
99024
|
body: DevopsChangeMarkLastSliceRequest;
|
|
97075
99025
|
path: {
|
|
97076
99026
|
/**
|
|
97077
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
99027
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
97078
99028
|
*/
|
|
97079
99029
|
id: string;
|
|
97080
99030
|
};
|
|
@@ -97115,7 +99065,7 @@ export type DevopsChangesOpenPullRequestData = {
|
|
|
97115
99065
|
body?: DevopsChangeOpenPullRequestRequest;
|
|
97116
99066
|
path: {
|
|
97117
99067
|
/**
|
|
97118
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
99068
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
97119
99069
|
*/
|
|
97120
99070
|
id: string;
|
|
97121
99071
|
};
|
|
@@ -97140,7 +99090,7 @@ export type DevopsChangesOpenPullRequestErrors = {
|
|
|
97140
99090
|
*/
|
|
97141
99091
|
404: DevopsDevOpsError;
|
|
97142
99092
|
/**
|
|
97143
|
-
* PULL_REQUEST_REFUSED when GitHub would not open it and the
|
|
99093
|
+
* PULL_REQUEST_REFUSED when GitHub would not open it and the head has no pull request at all (most often nothing has been pushed yet); the message carries GitHub's words. PULL_REQUEST_NOT_OPEN when the head's pull request is merged or closed — a description written for a pull request that already landed — with that pull request's number, its state and the branch in the message.
|
|
97144
99094
|
*/
|
|
97145
99095
|
409: DevopsDevOpsError;
|
|
97146
99096
|
/**
|
|
@@ -97160,7 +99110,7 @@ export type DevopsChangesGitCredentialData = {
|
|
|
97160
99110
|
body?: never;
|
|
97161
99111
|
path: {
|
|
97162
99112
|
/**
|
|
97163
|
-
* The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
99113
|
+
* The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
|
|
97164
99114
|
*/
|
|
97165
99115
|
id: string;
|
|
97166
99116
|
};
|
|
@@ -102834,7 +104784,7 @@ export type MediaEditAssetData = {
|
|
|
102834
104784
|
};
|
|
102835
104785
|
export type MediaEditAssetErrors = {
|
|
102836
104786
|
/**
|
|
102837
|
-
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase and
|
|
104787
|
+
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
|
|
102838
104788
|
*/
|
|
102839
104789
|
400: MediaMediaError;
|
|
102840
104790
|
/**
|
|
@@ -107309,9 +109259,9 @@ export type ShareListPermissionsData = {
|
|
|
107309
109259
|
path?: never;
|
|
107310
109260
|
query?: {
|
|
107311
109261
|
/**
|
|
107312
|
-
* Only shares of this object type; file, canvas and
|
|
109262
|
+
* Only shares of this object type; file, canvas, media_asset and agent create today.
|
|
107313
109263
|
*/
|
|
107314
|
-
resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset';
|
|
109264
|
+
resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
|
|
107315
109265
|
/**
|
|
107316
109266
|
* Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type.
|
|
107317
109267
|
*/
|
|
@@ -107372,7 +109322,7 @@ export type ShareCreatePermissionData = {
|
|
|
107372
109322
|
};
|
|
107373
109323
|
export type ShareCreatePermissionErrors = {
|
|
107374
109324
|
/**
|
|
107375
|
-
* INVALID_PARAMS means a body field
|
|
109325
|
+
* INVALID_PARAMS means a body field or identifier violates the documented format; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet; RESOURCE_NOT_SHAREABLE means the object exists but its owner keeps share links off — for an agent, turn share links on in its embed settings (share_links) first, which requires the agent to have a short number. Correct the indicated field; the message names it.
|
|
107376
109326
|
*/
|
|
107377
109327
|
400: ShareShareError;
|
|
107378
109328
|
/**
|