@deepraxis/sdk 0.1.1-dev.b0da55b → 0.1.1-dev.b191d44
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 +10 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +31 -11
- package/dist/generated/sdk.gen.js +74 -10
- package/dist/generated/types.gen.d.ts +2639 -665
- package/dist/operations.generated.js +137 -16
- package/dist/resources.generated.d.ts +553 -0
- package/dist/resources.generated.js +5 -0
- package/package.json +1 -1
|
@@ -17635,6 +17635,10 @@ export type DevopsChangePullRequestOpened = {
|
|
|
17635
17635
|
* True when this call opened it; false when the branch already had this open pull request.
|
|
17636
17636
|
*/
|
|
17637
17637
|
created: boolean;
|
|
17638
|
+
/**
|
|
17639
|
+
* True when this call rewrote the title and/or body of the pull request that was already open; false when it opened one or left the open one unchanged.
|
|
17640
|
+
*/
|
|
17641
|
+
updated: boolean;
|
|
17638
17642
|
};
|
|
17639
17643
|
/**
|
|
17640
17644
|
* A read-only git credential for one repository, for one git request.
|
|
@@ -19691,7 +19695,7 @@ export type MediaJob = {
|
|
|
19691
19695
|
viewer_url?: string;
|
|
19692
19696
|
}>;
|
|
19693
19697
|
/**
|
|
19694
|
-
* What this job has been charged, as US dollars in a decimal string with six decimals, for example 0.042300. It is the sum of what the model calls cost, so it can be partial while the job is in_progress and is final once the status is completed or failed. Tell the person this amount.
|
|
19698
|
+
* What this job has been charged, as US dollars in a decimal string with six decimals, for example 0.042300. It is the sum of what the model calls cost, so it can be partial while the job is in_progress and is final once the status is completed or failed. Tell the person this amount. Absent when nothing was charged: every output failed, was refused, or was canceled before a paid call finished. Failed and refused outputs are never charged, so in a job where some outputs failed it counts the succeeded ones only.
|
|
19695
19699
|
*/
|
|
19696
19700
|
usage?: {
|
|
19697
19701
|
/**
|
|
@@ -19845,7 +19849,7 @@ export type MediaAssetReference = {
|
|
|
19845
19849
|
strength?: number;
|
|
19846
19850
|
};
|
|
19847
19851
|
/**
|
|
19848
|
-
* 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 crop 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 and crop on a video), erase on a video 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.
|
|
19852
|
+
* 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 crop 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 and crop on a video), erase and replace_person on a video 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.
|
|
19849
19853
|
*/
|
|
19850
19854
|
export type MediaEditOperation = {
|
|
19851
19855
|
/**
|
|
@@ -20026,6 +20030,7 @@ export type MediaEditOperation = {
|
|
|
20026
20030
|
* Asset used as the final frame of the generated video.
|
|
20027
20031
|
*/
|
|
20028
20032
|
last_frame?: MediaAssetId;
|
|
20033
|
+
source?: MediaAssetId;
|
|
20029
20034
|
/**
|
|
20030
20035
|
* Existing assets the model may use, each with the role it plays.
|
|
20031
20036
|
*/
|
|
@@ -20193,6 +20198,23 @@ export type MediaEditOperation = {
|
|
|
20193
20198
|
* 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.
|
|
20194
20199
|
*/
|
|
20195
20200
|
model?: string;
|
|
20201
|
+
} | {
|
|
20202
|
+
/**
|
|
20203
|
+
* Edit operation discriminator; replace_person selects the replace_person branch of this union.
|
|
20204
|
+
*/
|
|
20205
|
+
type: 'replace_person';
|
|
20206
|
+
/**
|
|
20207
|
+
* Image asset in the same library showing the person to put into the video. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
|
|
20208
|
+
*/
|
|
20209
|
+
person_asset_id: MediaAssetId;
|
|
20210
|
+
/**
|
|
20211
|
+
* standard (the default: faster and cheaper) or pro (smoother and more detailed, slower and dearer).
|
|
20212
|
+
*/
|
|
20213
|
+
quality?: 'standard' | 'pro';
|
|
20214
|
+
/**
|
|
20215
|
+
* Processing model that performs the replacement, from the models the generation capabilities publish for the replace_person 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.
|
|
20216
|
+
*/
|
|
20217
|
+
model?: string;
|
|
20196
20218
|
} | {
|
|
20197
20219
|
/**
|
|
20198
20220
|
* Edit operation discriminator; voice_change selects the voice_change branch of this union.
|
|
@@ -37234,7 +37256,7 @@ export type MediaLineageNode = {
|
|
|
37234
37256
|
/**
|
|
37235
37257
|
* What a reference asset contributes to the generated or edited result.
|
|
37236
37258
|
*/
|
|
37237
|
-
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject';
|
|
37259
|
+
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
|
|
37238
37260
|
/**
|
|
37239
37261
|
* One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
|
|
37240
37262
|
*/
|
|
@@ -44086,7 +44108,7 @@ export type MediaGenerationParameters = {
|
|
|
44086
44108
|
/**
|
|
44087
44109
|
* What the video was anchored to: text only, a first frame image, a first and last frame, or reference pictures (listed in the provenance references, with any elements they came from in elements).
|
|
44088
44110
|
*/
|
|
44089
|
-
mode: 'text' | 'image' | 'first_last' | 'reference';
|
|
44111
|
+
mode: 'text' | 'image' | 'first_last' | 'reference' | 'edit';
|
|
44090
44112
|
/**
|
|
44091
44113
|
* Requested clip length in seconds. Omitted when the request named none and the model default applied.
|
|
44092
44114
|
*/
|
|
@@ -44302,9 +44324,9 @@ export type MediaGenerationCapabilityModel = {
|
|
|
44302
44324
|
*/
|
|
44303
44325
|
voices?: Array<MediaSpeechVoice>;
|
|
44304
44326
|
/**
|
|
44305
|
-
* Video and image models: how this model can be driven. text generates from the prompt alone. For a video model, image also accepts a first frame, first_last accepts a first and a last frame,
|
|
44327
|
+
* Video and image models: how this model can be driven. text generates from the prompt alone. For a video model, image also accepts a first frame, first_last accepts a first and a last frame, reference keeps the 1 to max_reference_images pictures named in references consistent (each with its own role) and takes no frames, and edit changes an existing video (source) and also takes reference videos in mode reference: send a mode only for a model that lists it. For an image model, image means the model takes a picture as input, which an edit and reference images both need: an edit, or a generation with references, on a model without image is refused with OPERATION_NOT_SUPPORTED or INVALID_PARAMS before any job or charge, naming the models that take one. The list comes from the platform model catalogue, so a mode absent here is a mode this model does not take.
|
|
44306
44328
|
*/
|
|
44307
|
-
modes?: Array<'text' | 'image' | 'first_last' | 'reference'>;
|
|
44329
|
+
modes?: Array<'text' | 'image' | 'first_last' | 'reference' | 'edit'>;
|
|
44308
44330
|
/**
|
|
44309
44331
|
* 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.
|
|
44310
44332
|
*/
|
|
@@ -52488,72 +52510,205 @@ export type GetAgentAppearanceResponses = {
|
|
|
52488
52510
|
};
|
|
52489
52511
|
};
|
|
52490
52512
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
52491
|
-
export type
|
|
52513
|
+
export type GetAgentEmbedPolicyData = {
|
|
52492
52514
|
body?: never;
|
|
52493
|
-
path
|
|
52494
|
-
query?: {
|
|
52515
|
+
path: {
|
|
52495
52516
|
/**
|
|
52496
|
-
*
|
|
52517
|
+
* Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
52497
52518
|
*/
|
|
52498
|
-
|
|
52519
|
+
agent_id: string;
|
|
52520
|
+
};
|
|
52521
|
+
query?: never;
|
|
52522
|
+
url: '/agent/v1/agents/{agent_id}/embed_policy';
|
|
52523
|
+
};
|
|
52524
|
+
export type GetAgentEmbedPolicyErrors = {
|
|
52525
|
+
/**
|
|
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.
|
|
52527
|
+
*/
|
|
52528
|
+
400: unknown;
|
|
52529
|
+
/**
|
|
52530
|
+
* Authenticate with your API key or a console session.
|
|
52531
|
+
*/
|
|
52532
|
+
401: unknown;
|
|
52533
|
+
/**
|
|
52534
|
+
* 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.
|
|
52535
|
+
*/
|
|
52536
|
+
403: AgentError;
|
|
52537
|
+
/**
|
|
52538
|
+
* AGENT_NOT_FOUND: no service agent with this reference belongs to your organization.
|
|
52539
|
+
*/
|
|
52540
|
+
404: unknown;
|
|
52541
|
+
/**
|
|
52542
|
+
* EMBED_POLICY_REQUIRED: this agent has no saved embed settings yet, so there is nothing to read or merge into; open the agent's 嵌入设置 page in the console once and save, then retry. EMBED_POLICY_CONFLICT: the settings changed while this request was in flight; read them again and resend, which is not automatic.
|
|
52543
|
+
*/
|
|
52544
|
+
409: unknown;
|
|
52545
|
+
/**
|
|
52546
|
+
* Agent service failed
|
|
52547
|
+
*/
|
|
52548
|
+
502: unknown;
|
|
52549
|
+
/**
|
|
52550
|
+
* Agent service unavailable
|
|
52551
|
+
*/
|
|
52552
|
+
503: unknown;
|
|
52553
|
+
};
|
|
52554
|
+
export type GetAgentEmbedPolicyError = GetAgentEmbedPolicyErrors[keyof GetAgentEmbedPolicyErrors];
|
|
52555
|
+
export type GetAgentEmbedPolicyResponses = {
|
|
52556
|
+
/**
|
|
52557
|
+
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
|
|
52558
|
+
*/
|
|
52559
|
+
200: {
|
|
52499
52560
|
/**
|
|
52500
|
-
*
|
|
52561
|
+
* The pages that may open this agent's Kit chat, each an https origin with no path, query or fragment (https://my-app.example.com). Adding the origin of an application is what lets that application embed the agent; a page whose origin is missing here answers ORIGIN_NOT_ALLOWED. http://localhost appears only when allow_localhost is true.
|
|
52501
52562
|
*/
|
|
52502
|
-
|
|
52563
|
+
allowed_origins: Array<string>;
|
|
52564
|
+
/**
|
|
52565
|
+
* Whether pages served from http://localhost or http://127.0.0.1 may open the chat during development. Off by default; turn it off again before going live.
|
|
52566
|
+
*/
|
|
52567
|
+
allow_localhost: boolean;
|
|
52568
|
+
/**
|
|
52569
|
+
* What an embedded end user may attach to their own conversation.
|
|
52570
|
+
*/
|
|
52571
|
+
uploads: {
|
|
52572
|
+
/**
|
|
52573
|
+
* Whether an embedded end user may attach files at all. On by default.
|
|
52574
|
+
*/
|
|
52575
|
+
enabled: boolean;
|
|
52576
|
+
/**
|
|
52577
|
+
* The largest single file, in bytes: 1 to 104857600 (100 MiB). Default 10485760 (10 MiB).
|
|
52578
|
+
*/
|
|
52579
|
+
max_file_bytes: number;
|
|
52580
|
+
/**
|
|
52581
|
+
* How many files one embedded end-user session may hold: 1 to 100. Default 20.
|
|
52582
|
+
*/
|
|
52583
|
+
max_files_per_session: number;
|
|
52584
|
+
};
|
|
52503
52585
|
};
|
|
52504
|
-
url: '/agent/v1/computers';
|
|
52505
52586
|
};
|
|
52506
|
-
export type
|
|
52587
|
+
export type GetAgentEmbedPolicyResponse = GetAgentEmbedPolicyResponses[keyof GetAgentEmbedPolicyResponses];
|
|
52588
|
+
export type UpdateAgentEmbedPolicyData = {
|
|
52507
52589
|
/**
|
|
52508
|
-
*
|
|
52590
|
+
* The embed settings to change; every field is optional and only the fields you send are written.
|
|
52509
52591
|
*/
|
|
52510
|
-
|
|
52511
|
-
|
|
52512
|
-
|
|
52592
|
+
body: {
|
|
52593
|
+
/**
|
|
52594
|
+
* Replaces the whole allow list: the https origins whose pages may open this agent's Kit chat, with no path, query or fragment. An origin is normalized before it is stored, and a leading wildcard label matches subdomains one label deep. Send the origin of the application you just deployed to let it embed the agent.
|
|
52595
|
+
*/
|
|
52596
|
+
allowed_origins?: Array<string>;
|
|
52597
|
+
/**
|
|
52598
|
+
* Whether http://localhost or http://127.0.0.1 pages may open the chat during development.
|
|
52599
|
+
*/
|
|
52600
|
+
allow_localhost?: boolean;
|
|
52601
|
+
/**
|
|
52602
|
+
* What an embedded end user may attach; only the fields you send are changed.
|
|
52603
|
+
*/
|
|
52604
|
+
uploads?: {
|
|
52513
52605
|
/**
|
|
52514
|
-
*
|
|
52606
|
+
* Whether an embedded end user may attach files.
|
|
52515
52607
|
*/
|
|
52516
|
-
|
|
52517
|
-
message: string;
|
|
52518
|
-
code: string;
|
|
52519
|
-
retryable: boolean;
|
|
52608
|
+
enabled?: boolean;
|
|
52520
52609
|
/**
|
|
52521
|
-
*
|
|
52610
|
+
* The largest single file, in bytes: 1 to 104857600 (100 MiB).
|
|
52522
52611
|
*/
|
|
52523
|
-
|
|
52612
|
+
max_file_bytes?: number;
|
|
52613
|
+
/**
|
|
52614
|
+
* How many files one embedded end-user session may hold: 1 to 100.
|
|
52615
|
+
*/
|
|
52616
|
+
max_files_per_session?: number;
|
|
52524
52617
|
};
|
|
52618
|
+
};
|
|
52619
|
+
path: {
|
|
52525
52620
|
/**
|
|
52526
|
-
*
|
|
52621
|
+
* Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
52527
52622
|
*/
|
|
52528
|
-
|
|
52623
|
+
agent_id: string;
|
|
52529
52624
|
};
|
|
52625
|
+
query?: never;
|
|
52626
|
+
url: '/agent/v1/agents/{agent_id}/embed_policy';
|
|
52627
|
+
};
|
|
52628
|
+
export type UpdateAgentEmbedPolicyErrors = {
|
|
52530
52629
|
/**
|
|
52531
|
-
*
|
|
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.
|
|
52532
52631
|
*/
|
|
52533
|
-
|
|
52534
|
-
|
|
52535
|
-
|
|
52632
|
+
400: unknown;
|
|
52633
|
+
/**
|
|
52634
|
+
* Authenticate with your API key or a console session.
|
|
52635
|
+
*/
|
|
52636
|
+
401: unknown;
|
|
52637
|
+
/**
|
|
52638
|
+
* 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.
|
|
52639
|
+
*/
|
|
52640
|
+
403: AgentError;
|
|
52641
|
+
/**
|
|
52642
|
+
* AGENT_NOT_FOUND: no service agent with this reference belongs to your organization.
|
|
52643
|
+
*/
|
|
52644
|
+
404: unknown;
|
|
52645
|
+
/**
|
|
52646
|
+
* EMBED_POLICY_REQUIRED: this agent has no saved embed settings yet, so there is nothing to read or merge into; open the agent's 嵌入设置 page in the console once and save, then retry. EMBED_POLICY_CONFLICT: the settings changed while this request was in flight; read them again and resend, which is not automatic.
|
|
52647
|
+
*/
|
|
52648
|
+
409: unknown;
|
|
52649
|
+
/**
|
|
52650
|
+
* Agent service failed
|
|
52651
|
+
*/
|
|
52652
|
+
502: unknown;
|
|
52653
|
+
/**
|
|
52654
|
+
* Agent service unavailable
|
|
52655
|
+
*/
|
|
52656
|
+
503: unknown;
|
|
52657
|
+
};
|
|
52658
|
+
export type UpdateAgentEmbedPolicyError = UpdateAgentEmbedPolicyErrors[keyof UpdateAgentEmbedPolicyErrors];
|
|
52659
|
+
export type UpdateAgentEmbedPolicyResponses = {
|
|
52660
|
+
/**
|
|
52661
|
+
* The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
|
|
52662
|
+
*/
|
|
52663
|
+
200: {
|
|
52664
|
+
/**
|
|
52665
|
+
* The pages that may open this agent's Kit chat, each an https origin with no path, query or fragment (https://my-app.example.com). Adding the origin of an application is what lets that application embed the agent; a page whose origin is missing here answers ORIGIN_NOT_ALLOWED. http://localhost appears only when allow_localhost is true.
|
|
52666
|
+
*/
|
|
52667
|
+
allowed_origins: Array<string>;
|
|
52668
|
+
/**
|
|
52669
|
+
* Whether pages served from http://localhost or http://127.0.0.1 may open the chat during development. Off by default; turn it off again before going live.
|
|
52670
|
+
*/
|
|
52671
|
+
allow_localhost: boolean;
|
|
52672
|
+
/**
|
|
52673
|
+
* What an embedded end user may attach to their own conversation.
|
|
52674
|
+
*/
|
|
52675
|
+
uploads: {
|
|
52536
52676
|
/**
|
|
52537
|
-
*
|
|
52677
|
+
* Whether an embedded end user may attach files at all. On by default.
|
|
52538
52678
|
*/
|
|
52539
|
-
|
|
52540
|
-
message: string;
|
|
52541
|
-
code: string;
|
|
52542
|
-
retryable: boolean;
|
|
52679
|
+
enabled: boolean;
|
|
52543
52680
|
/**
|
|
52544
|
-
*
|
|
52681
|
+
* The largest single file, in bytes: 1 to 104857600 (100 MiB). Default 10485760 (10 MiB).
|
|
52545
52682
|
*/
|
|
52546
|
-
|
|
52683
|
+
max_file_bytes: number;
|
|
52684
|
+
/**
|
|
52685
|
+
* How many files one embedded end-user session may hold: 1 to 100. Default 20.
|
|
52686
|
+
*/
|
|
52687
|
+
max_files_per_session: number;
|
|
52547
52688
|
};
|
|
52689
|
+
};
|
|
52690
|
+
};
|
|
52691
|
+
export type UpdateAgentEmbedPolicyResponse = UpdateAgentEmbedPolicyResponses[keyof UpdateAgentEmbedPolicyResponses];
|
|
52692
|
+
export type ComputersListData = {
|
|
52693
|
+
body?: never;
|
|
52694
|
+
path?: never;
|
|
52695
|
+
query?: {
|
|
52548
52696
|
/**
|
|
52549
|
-
*
|
|
52697
|
+
* Maximum number of items to return in this page: a positive integer, at most 100 (default 20; for session resources default and maximum are 1000). A larger value returns 400.
|
|
52550
52698
|
*/
|
|
52551
|
-
|
|
52699
|
+
limit?: number;
|
|
52700
|
+
/**
|
|
52701
|
+
* Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400.
|
|
52702
|
+
*/
|
|
52703
|
+
page?: string;
|
|
52552
52704
|
};
|
|
52705
|
+
url: '/agent/v1/computers';
|
|
52706
|
+
};
|
|
52707
|
+
export type ComputersListErrors = {
|
|
52553
52708
|
/**
|
|
52554
52709
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52555
52710
|
*/
|
|
52556
|
-
|
|
52711
|
+
400: {
|
|
52557
52712
|
type: 'error';
|
|
52558
52713
|
error: {
|
|
52559
52714
|
/**
|
|
@@ -52574,9 +52729,9 @@ export type ComputersListErrors = {
|
|
|
52574
52729
|
request_id: string;
|
|
52575
52730
|
};
|
|
52576
52731
|
/**
|
|
52577
|
-
*
|
|
52732
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52578
52733
|
*/
|
|
52579
|
-
|
|
52734
|
+
401: {
|
|
52580
52735
|
type: 'error';
|
|
52581
52736
|
error: {
|
|
52582
52737
|
/**
|
|
@@ -52599,7 +52754,7 @@ export type ComputersListErrors = {
|
|
|
52599
52754
|
/**
|
|
52600
52755
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52601
52756
|
*/
|
|
52602
|
-
|
|
52757
|
+
403: {
|
|
52603
52758
|
type: 'error';
|
|
52604
52759
|
error: {
|
|
52605
52760
|
/**
|
|
@@ -52620,9 +52775,9 @@ export type ComputersListErrors = {
|
|
|
52620
52775
|
request_id: string;
|
|
52621
52776
|
};
|
|
52622
52777
|
/**
|
|
52623
|
-
*
|
|
52778
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
52624
52779
|
*/
|
|
52625
|
-
|
|
52780
|
+
404: {
|
|
52626
52781
|
type: 'error';
|
|
52627
52782
|
error: {
|
|
52628
52783
|
/**
|
|
@@ -52645,7 +52800,7 @@ export type ComputersListErrors = {
|
|
|
52645
52800
|
/**
|
|
52646
52801
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52647
52802
|
*/
|
|
52648
|
-
|
|
52803
|
+
409: {
|
|
52649
52804
|
type: 'error';
|
|
52650
52805
|
error: {
|
|
52651
52806
|
/**
|
|
@@ -52668,7 +52823,7 @@ export type ComputersListErrors = {
|
|
|
52668
52823
|
/**
|
|
52669
52824
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52670
52825
|
*/
|
|
52671
|
-
|
|
52826
|
+
413: {
|
|
52672
52827
|
type: 'error';
|
|
52673
52828
|
error: {
|
|
52674
52829
|
/**
|
|
@@ -52691,7 +52846,7 @@ export type ComputersListErrors = {
|
|
|
52691
52846
|
/**
|
|
52692
52847
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52693
52848
|
*/
|
|
52694
|
-
|
|
52849
|
+
429: {
|
|
52695
52850
|
type: 'error';
|
|
52696
52851
|
error: {
|
|
52697
52852
|
/**
|
|
@@ -52711,89 +52866,10 @@ export type ComputersListErrors = {
|
|
|
52711
52866
|
*/
|
|
52712
52867
|
request_id: string;
|
|
52713
52868
|
};
|
|
52714
|
-
};
|
|
52715
|
-
export type ComputersListError = ComputersListErrors[keyof ComputersListErrors];
|
|
52716
|
-
export type ComputersListResponses = {
|
|
52717
|
-
/**
|
|
52718
|
-
* Computer result
|
|
52719
|
-
*/
|
|
52720
|
-
200: {
|
|
52721
|
-
/**
|
|
52722
|
-
* Items of this page, in the order requested by the call.
|
|
52723
|
-
*/
|
|
52724
|
-
data: Array<{
|
|
52725
|
-
/**
|
|
52726
|
-
* Always `computer`. A computer.
|
|
52727
|
-
*/
|
|
52728
|
-
type: 'computer';
|
|
52729
|
-
/**
|
|
52730
|
-
* Computer id (cmp_...), the computer_id of computer calls.
|
|
52731
|
-
*/
|
|
52732
|
-
id: string;
|
|
52733
|
-
/**
|
|
52734
|
-
* Display name of the computer, 1 to 255 characters.
|
|
52735
|
-
*/
|
|
52736
|
-
name: string;
|
|
52737
|
-
/**
|
|
52738
|
-
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
52739
|
-
*/
|
|
52740
|
-
sandbox_id: string | null;
|
|
52741
|
-
/**
|
|
52742
|
-
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
52743
|
-
*/
|
|
52744
|
-
machine_state: 'not_started' | 'provisioned';
|
|
52745
|
-
/**
|
|
52746
|
-
* Environment recipe the computer was created with; null when none.
|
|
52747
|
-
*/
|
|
52748
|
-
environment_id: string | null;
|
|
52749
|
-
/**
|
|
52750
|
-
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
52751
|
-
*/
|
|
52752
|
-
status: 'active' | 'archived';
|
|
52753
|
-
/**
|
|
52754
|
-
* RFC 3339 time at which the computer was created.
|
|
52755
|
-
*/
|
|
52756
|
-
created_at: string;
|
|
52757
|
-
/**
|
|
52758
|
-
* RFC 3339 time at which the computer was last modified.
|
|
52759
|
-
*/
|
|
52760
|
-
updated_at: string;
|
|
52761
|
-
/**
|
|
52762
|
-
* RFC 3339 time at which the computer was archived; null while active.
|
|
52763
|
-
*/
|
|
52764
|
-
archived_at: string | null;
|
|
52765
|
-
}>;
|
|
52766
|
-
/**
|
|
52767
|
-
* Whether more items exist beyond this page.
|
|
52768
|
-
*/
|
|
52769
|
-
has_more: boolean;
|
|
52770
|
-
/**
|
|
52771
|
-
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
52772
|
-
*/
|
|
52773
|
-
next_page: string | null;
|
|
52774
|
-
};
|
|
52775
|
-
};
|
|
52776
|
-
export type ComputersListResponse = ComputersListResponses[keyof ComputersListResponses];
|
|
52777
|
-
export type ComputersCreateData = {
|
|
52778
|
-
body: {
|
|
52779
|
-
/**
|
|
52780
|
-
* Name of the entry or object.
|
|
52781
|
-
*/
|
|
52782
|
-
name: string;
|
|
52783
|
-
/**
|
|
52784
|
-
* Environment recipe id; null or omitted when none was selected.
|
|
52785
|
-
*/
|
|
52786
|
-
environment_id?: string;
|
|
52787
|
-
};
|
|
52788
|
-
path?: never;
|
|
52789
|
-
query?: never;
|
|
52790
|
-
url: '/agent/v1/computers';
|
|
52791
|
-
};
|
|
52792
|
-
export type ComputersCreateErrors = {
|
|
52793
52869
|
/**
|
|
52794
52870
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52795
52871
|
*/
|
|
52796
|
-
|
|
52872
|
+
500: {
|
|
52797
52873
|
type: 'error';
|
|
52798
52874
|
error: {
|
|
52799
52875
|
/**
|
|
@@ -52816,7 +52892,7 @@ export type ComputersCreateErrors = {
|
|
|
52816
52892
|
/**
|
|
52817
52893
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52818
52894
|
*/
|
|
52819
|
-
|
|
52895
|
+
503: {
|
|
52820
52896
|
type: 'error';
|
|
52821
52897
|
error: {
|
|
52822
52898
|
/**
|
|
@@ -52836,229 +52912,85 @@ export type ComputersCreateErrors = {
|
|
|
52836
52912
|
*/
|
|
52837
52913
|
request_id: string;
|
|
52838
52914
|
};
|
|
52915
|
+
};
|
|
52916
|
+
export type ComputersListError = ComputersListErrors[keyof ComputersListErrors];
|
|
52917
|
+
export type ComputersListResponses = {
|
|
52839
52918
|
/**
|
|
52840
|
-
*
|
|
52919
|
+
* Computer result
|
|
52841
52920
|
*/
|
|
52842
|
-
|
|
52843
|
-
type: 'error';
|
|
52844
|
-
error: {
|
|
52845
|
-
/**
|
|
52846
|
-
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
52847
|
-
*/
|
|
52848
|
-
type: string;
|
|
52849
|
-
message: string;
|
|
52850
|
-
code: string;
|
|
52851
|
-
retryable: boolean;
|
|
52852
|
-
/**
|
|
52853
|
-
* How to recover, for computer failures.
|
|
52854
|
-
*/
|
|
52855
|
-
hint?: string;
|
|
52856
|
-
};
|
|
52921
|
+
200: {
|
|
52857
52922
|
/**
|
|
52858
|
-
*
|
|
52923
|
+
* Items of this page, in the order requested by the call.
|
|
52859
52924
|
*/
|
|
52860
|
-
|
|
52861
|
-
};
|
|
52862
|
-
/**
|
|
52863
|
-
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
52864
|
-
*/
|
|
52865
|
-
404: {
|
|
52866
|
-
type: 'error';
|
|
52867
|
-
error: {
|
|
52925
|
+
data: Array<{
|
|
52868
52926
|
/**
|
|
52869
|
-
*
|
|
52927
|
+
* Always `computer`. A computer.
|
|
52870
52928
|
*/
|
|
52871
|
-
type:
|
|
52872
|
-
message: string;
|
|
52873
|
-
code: string;
|
|
52874
|
-
retryable: boolean;
|
|
52929
|
+
type: 'computer';
|
|
52875
52930
|
/**
|
|
52876
|
-
*
|
|
52931
|
+
* Computer id (cmp_...), the computer_id of computer calls.
|
|
52877
52932
|
*/
|
|
52878
|
-
|
|
52879
|
-
};
|
|
52880
|
-
/**
|
|
52881
|
-
* Equals the X-Request-Id response header.
|
|
52882
|
-
*/
|
|
52883
|
-
request_id: string;
|
|
52884
|
-
};
|
|
52885
|
-
/**
|
|
52886
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52887
|
-
*/
|
|
52888
|
-
409: {
|
|
52889
|
-
type: 'error';
|
|
52890
|
-
error: {
|
|
52933
|
+
id: string;
|
|
52891
52934
|
/**
|
|
52892
|
-
*
|
|
52935
|
+
* Display name of the computer, 1 to 255 characters.
|
|
52893
52936
|
*/
|
|
52894
|
-
|
|
52895
|
-
message: string;
|
|
52896
|
-
code: string;
|
|
52897
|
-
retryable: boolean;
|
|
52937
|
+
name: string;
|
|
52898
52938
|
/**
|
|
52899
|
-
*
|
|
52939
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
52900
52940
|
*/
|
|
52901
|
-
|
|
52902
|
-
};
|
|
52903
|
-
/**
|
|
52904
|
-
* Equals the X-Request-Id response header.
|
|
52905
|
-
*/
|
|
52906
|
-
request_id: string;
|
|
52907
|
-
};
|
|
52908
|
-
/**
|
|
52909
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52910
|
-
*/
|
|
52911
|
-
413: {
|
|
52912
|
-
type: 'error';
|
|
52913
|
-
error: {
|
|
52941
|
+
sandbox_id: string | null;
|
|
52914
52942
|
/**
|
|
52915
|
-
*
|
|
52943
|
+
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
52916
52944
|
*/
|
|
52917
|
-
|
|
52918
|
-
message: string;
|
|
52919
|
-
code: string;
|
|
52920
|
-
retryable: boolean;
|
|
52945
|
+
machine_state: 'not_started' | 'provisioned';
|
|
52921
52946
|
/**
|
|
52922
|
-
*
|
|
52947
|
+
* Environment recipe the computer was created with; null when none.
|
|
52923
52948
|
*/
|
|
52924
|
-
|
|
52925
|
-
};
|
|
52926
|
-
/**
|
|
52927
|
-
* Equals the X-Request-Id response header.
|
|
52928
|
-
*/
|
|
52929
|
-
request_id: string;
|
|
52930
|
-
};
|
|
52931
|
-
/**
|
|
52932
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52933
|
-
*/
|
|
52934
|
-
429: {
|
|
52935
|
-
type: 'error';
|
|
52936
|
-
error: {
|
|
52949
|
+
environment_id: string | null;
|
|
52937
52950
|
/**
|
|
52938
|
-
*
|
|
52951
|
+
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
52939
52952
|
*/
|
|
52940
|
-
|
|
52941
|
-
message: string;
|
|
52942
|
-
code: string;
|
|
52943
|
-
retryable: boolean;
|
|
52953
|
+
status: 'active' | 'archived';
|
|
52944
52954
|
/**
|
|
52945
|
-
*
|
|
52955
|
+
* RFC 3339 time at which the computer was created.
|
|
52946
52956
|
*/
|
|
52947
|
-
|
|
52948
|
-
};
|
|
52949
|
-
/**
|
|
52950
|
-
* Equals the X-Request-Id response header.
|
|
52951
|
-
*/
|
|
52952
|
-
request_id: string;
|
|
52953
|
-
};
|
|
52954
|
-
/**
|
|
52955
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52956
|
-
*/
|
|
52957
|
-
500: {
|
|
52958
|
-
type: 'error';
|
|
52959
|
-
error: {
|
|
52957
|
+
created_at: string;
|
|
52960
52958
|
/**
|
|
52961
|
-
*
|
|
52959
|
+
* RFC 3339 time at which the computer was last modified.
|
|
52962
52960
|
*/
|
|
52963
|
-
|
|
52964
|
-
message: string;
|
|
52965
|
-
code: string;
|
|
52966
|
-
retryable: boolean;
|
|
52961
|
+
updated_at: string;
|
|
52967
52962
|
/**
|
|
52968
|
-
*
|
|
52963
|
+
* RFC 3339 time at which the computer was archived; null while active.
|
|
52969
52964
|
*/
|
|
52970
|
-
|
|
52971
|
-
}
|
|
52965
|
+
archived_at: string | null;
|
|
52966
|
+
}>;
|
|
52972
52967
|
/**
|
|
52973
|
-
*
|
|
52968
|
+
* Whether more items exist beyond this page.
|
|
52974
52969
|
*/
|
|
52975
|
-
|
|
52976
|
-
};
|
|
52977
|
-
/**
|
|
52978
|
-
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
52979
|
-
*/
|
|
52980
|
-
503: {
|
|
52981
|
-
type: 'error';
|
|
52982
|
-
error: {
|
|
52983
|
-
/**
|
|
52984
|
-
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
52985
|
-
*/
|
|
52986
|
-
type: string;
|
|
52987
|
-
message: string;
|
|
52988
|
-
code: string;
|
|
52989
|
-
retryable: boolean;
|
|
52990
|
-
/**
|
|
52991
|
-
* How to recover, for computer failures.
|
|
52992
|
-
*/
|
|
52993
|
-
hint?: string;
|
|
52994
|
-
};
|
|
52970
|
+
has_more: boolean;
|
|
52995
52971
|
/**
|
|
52996
|
-
*
|
|
52972
|
+
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
52997
52973
|
*/
|
|
52998
|
-
|
|
52974
|
+
next_page: string | null;
|
|
52999
52975
|
};
|
|
53000
52976
|
};
|
|
53001
|
-
export type
|
|
53002
|
-
export type
|
|
53003
|
-
|
|
53004
|
-
* Computer result
|
|
53005
|
-
*/
|
|
53006
|
-
201: {
|
|
53007
|
-
/**
|
|
53008
|
-
* Always `computer`. A computer.
|
|
53009
|
-
*/
|
|
53010
|
-
type: 'computer';
|
|
53011
|
-
/**
|
|
53012
|
-
* Computer id (cmp_...), the computer_id of computer calls.
|
|
53013
|
-
*/
|
|
53014
|
-
id: string;
|
|
52977
|
+
export type ComputersListResponse = ComputersListResponses[keyof ComputersListResponses];
|
|
52978
|
+
export type ComputersCreateData = {
|
|
52979
|
+
body: {
|
|
53015
52980
|
/**
|
|
53016
|
-
*
|
|
52981
|
+
* Name of the entry or object.
|
|
53017
52982
|
*/
|
|
53018
52983
|
name: string;
|
|
53019
52984
|
/**
|
|
53020
|
-
*
|
|
53021
|
-
*/
|
|
53022
|
-
sandbox_id: string | null;
|
|
53023
|
-
/**
|
|
53024
|
-
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
53025
|
-
*/
|
|
53026
|
-
machine_state: 'not_started' | 'provisioned';
|
|
53027
|
-
/**
|
|
53028
|
-
* Environment recipe the computer was created with; null when none.
|
|
53029
|
-
*/
|
|
53030
|
-
environment_id: string | null;
|
|
53031
|
-
/**
|
|
53032
|
-
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
53033
|
-
*/
|
|
53034
|
-
status: 'active' | 'archived';
|
|
53035
|
-
/**
|
|
53036
|
-
* RFC 3339 time at which the computer was created.
|
|
53037
|
-
*/
|
|
53038
|
-
created_at: string;
|
|
53039
|
-
/**
|
|
53040
|
-
* RFC 3339 time at which the computer was last modified.
|
|
53041
|
-
*/
|
|
53042
|
-
updated_at: string;
|
|
53043
|
-
/**
|
|
53044
|
-
* RFC 3339 time at which the computer was archived; null while active.
|
|
53045
|
-
*/
|
|
53046
|
-
archived_at: string | null;
|
|
53047
|
-
};
|
|
53048
|
-
};
|
|
53049
|
-
export type ComputersCreateResponse = ComputersCreateResponses[keyof ComputersCreateResponses];
|
|
53050
|
-
export type ComputersDeleteData = {
|
|
53051
|
-
body?: never;
|
|
53052
|
-
path: {
|
|
53053
|
-
/**
|
|
53054
|
-
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
52985
|
+
* Environment recipe id; null or omitted when none was selected.
|
|
53055
52986
|
*/
|
|
53056
|
-
|
|
52987
|
+
environment_id?: string;
|
|
53057
52988
|
};
|
|
52989
|
+
path?: never;
|
|
53058
52990
|
query?: never;
|
|
53059
|
-
url: '/agent/v1/computers
|
|
52991
|
+
url: '/agent/v1/computers';
|
|
53060
52992
|
};
|
|
53061
|
-
export type
|
|
52993
|
+
export type ComputersCreateErrors = {
|
|
53062
52994
|
/**
|
|
53063
52995
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
53064
52996
|
*/
|
|
@@ -53267,24 +53199,56 @@ export type ComputersDeleteErrors = {
|
|
|
53267
53199
|
request_id: string;
|
|
53268
53200
|
};
|
|
53269
53201
|
};
|
|
53270
|
-
export type
|
|
53271
|
-
export type
|
|
53202
|
+
export type ComputersCreateError = ComputersCreateErrors[keyof ComputersCreateErrors];
|
|
53203
|
+
export type ComputersCreateResponses = {
|
|
53272
53204
|
/**
|
|
53273
53205
|
* Computer result
|
|
53274
53206
|
*/
|
|
53275
|
-
|
|
53207
|
+
201: {
|
|
53276
53208
|
/**
|
|
53277
|
-
*
|
|
53209
|
+
* Always `computer`. A computer.
|
|
53210
|
+
*/
|
|
53211
|
+
type: 'computer';
|
|
53212
|
+
/**
|
|
53213
|
+
* Computer id (cmp_...), the computer_id of computer calls.
|
|
53278
53214
|
*/
|
|
53279
53215
|
id: string;
|
|
53280
53216
|
/**
|
|
53281
|
-
*
|
|
53217
|
+
* Display name of the computer, 1 to 255 characters.
|
|
53282
53218
|
*/
|
|
53283
|
-
|
|
53219
|
+
name: string;
|
|
53220
|
+
/**
|
|
53221
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
53222
|
+
*/
|
|
53223
|
+
sandbox_id: string | null;
|
|
53224
|
+
/**
|
|
53225
|
+
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
53226
|
+
*/
|
|
53227
|
+
machine_state: 'not_started' | 'provisioned';
|
|
53228
|
+
/**
|
|
53229
|
+
* Environment recipe the computer was created with; null when none.
|
|
53230
|
+
*/
|
|
53231
|
+
environment_id: string | null;
|
|
53232
|
+
/**
|
|
53233
|
+
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
53234
|
+
*/
|
|
53235
|
+
status: 'active' | 'archived';
|
|
53236
|
+
/**
|
|
53237
|
+
* RFC 3339 time at which the computer was created.
|
|
53238
|
+
*/
|
|
53239
|
+
created_at: string;
|
|
53240
|
+
/**
|
|
53241
|
+
* RFC 3339 time at which the computer was last modified.
|
|
53242
|
+
*/
|
|
53243
|
+
updated_at: string;
|
|
53244
|
+
/**
|
|
53245
|
+
* RFC 3339 time at which the computer was archived; null while active.
|
|
53246
|
+
*/
|
|
53247
|
+
archived_at: string | null;
|
|
53284
53248
|
};
|
|
53285
53249
|
};
|
|
53286
|
-
export type
|
|
53287
|
-
export type
|
|
53250
|
+
export type ComputersCreateResponse = ComputersCreateResponses[keyof ComputersCreateResponses];
|
|
53251
|
+
export type ComputersDeleteData = {
|
|
53288
53252
|
body?: never;
|
|
53289
53253
|
path: {
|
|
53290
53254
|
/**
|
|
@@ -53295,7 +53259,7 @@ export type ComputersRetrieveData = {
|
|
|
53295
53259
|
query?: never;
|
|
53296
53260
|
url: '/agent/v1/computers/{computer_id}';
|
|
53297
53261
|
};
|
|
53298
|
-
export type
|
|
53262
|
+
export type ComputersDeleteErrors = {
|
|
53299
53263
|
/**
|
|
53300
53264
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
53301
53265
|
*/
|
|
@@ -53504,82 +53468,25 @@ export type ComputersRetrieveErrors = {
|
|
|
53504
53468
|
request_id: string;
|
|
53505
53469
|
};
|
|
53506
53470
|
};
|
|
53507
|
-
export type
|
|
53508
|
-
export type
|
|
53471
|
+
export type ComputersDeleteError = ComputersDeleteErrors[keyof ComputersDeleteErrors];
|
|
53472
|
+
export type ComputersDeleteResponses = {
|
|
53509
53473
|
/**
|
|
53510
53474
|
* Computer result
|
|
53511
53475
|
*/
|
|
53512
53476
|
200: {
|
|
53513
53477
|
/**
|
|
53514
|
-
*
|
|
53515
|
-
*/
|
|
53516
|
-
type: 'computer';
|
|
53517
|
-
/**
|
|
53518
|
-
* Computer id (cmp_...), the computer_id of computer calls.
|
|
53478
|
+
* Id of the deleted computer.
|
|
53519
53479
|
*/
|
|
53520
53480
|
id: string;
|
|
53521
53481
|
/**
|
|
53522
|
-
*
|
|
53523
|
-
*/
|
|
53524
|
-
name: string;
|
|
53525
|
-
/**
|
|
53526
|
-
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
53527
|
-
*/
|
|
53528
|
-
sandbox_id: string | null;
|
|
53529
|
-
/**
|
|
53530
|
-
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
53531
|
-
*/
|
|
53532
|
-
machine_state: 'not_started' | 'provisioned';
|
|
53533
|
-
/**
|
|
53534
|
-
* Environment recipe the computer was created with; null when none.
|
|
53535
|
-
*/
|
|
53536
|
-
environment_id: string | null;
|
|
53537
|
-
/**
|
|
53538
|
-
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
53539
|
-
*/
|
|
53540
|
-
status: 'active' | 'archived';
|
|
53541
|
-
/**
|
|
53542
|
-
* RFC 3339 time at which the computer was created.
|
|
53543
|
-
*/
|
|
53544
|
-
created_at: string;
|
|
53545
|
-
/**
|
|
53546
|
-
* RFC 3339 time at which the computer was last modified.
|
|
53547
|
-
*/
|
|
53548
|
-
updated_at: string;
|
|
53549
|
-
/**
|
|
53550
|
-
* RFC 3339 time at which the computer was archived; null while active.
|
|
53551
|
-
*/
|
|
53552
|
-
archived_at: string | null;
|
|
53553
|
-
/**
|
|
53554
|
-
* Kind of machine backing this computer: light is the lightweight computer, full is a full sandbox with programs, background processes and media.
|
|
53555
|
-
*/
|
|
53556
|
-
machine: 'light' | 'full';
|
|
53557
|
-
/**
|
|
53558
|
-
* Deprecated: use machine instead (light = virtual, full = sandbox). Kept for compatibility.
|
|
53559
|
-
*/
|
|
53560
|
-
implementation: 'virtual' | 'sandbox';
|
|
53561
|
-
/**
|
|
53562
|
-
* Bytes stored on the computer.
|
|
53563
|
-
*/
|
|
53564
|
-
storage_bytes: number;
|
|
53565
|
-
/**
|
|
53566
|
-
* Number of files stored on the computer.
|
|
53567
|
-
*/
|
|
53568
|
-
file_count: number;
|
|
53569
|
-
/**
|
|
53570
|
-
* False when disk statistics are partial because the 20-second or 50,000-entry limit was reached. Tier-local directories are excluded.
|
|
53482
|
+
* Always `computer_deleted`. Confirms that a computer was deleted.
|
|
53571
53483
|
*/
|
|
53572
|
-
|
|
53484
|
+
type: 'computer_deleted';
|
|
53573
53485
|
};
|
|
53574
53486
|
};
|
|
53575
|
-
export type
|
|
53576
|
-
export type
|
|
53577
|
-
body
|
|
53578
|
-
/**
|
|
53579
|
-
* Name of the entry or object.
|
|
53580
|
-
*/
|
|
53581
|
-
name: string;
|
|
53582
|
-
};
|
|
53487
|
+
export type ComputersDeleteResponse = ComputersDeleteResponses[keyof ComputersDeleteResponses];
|
|
53488
|
+
export type ComputersRetrieveData = {
|
|
53489
|
+
body?: never;
|
|
53583
53490
|
path: {
|
|
53584
53491
|
/**
|
|
53585
53492
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
@@ -53589,7 +53496,7 @@ export type ComputersUpdateData = {
|
|
|
53589
53496
|
query?: never;
|
|
53590
53497
|
url: '/agent/v1/computers/{computer_id}';
|
|
53591
53498
|
};
|
|
53592
|
-
export type
|
|
53499
|
+
export type ComputersRetrieveErrors = {
|
|
53593
53500
|
/**
|
|
53594
53501
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
53595
53502
|
*/
|
|
@@ -53798,8 +53705,8 @@ export type ComputersUpdateErrors = {
|
|
|
53798
53705
|
request_id: string;
|
|
53799
53706
|
};
|
|
53800
53707
|
};
|
|
53801
|
-
export type
|
|
53802
|
-
export type
|
|
53708
|
+
export type ComputersRetrieveError = ComputersRetrieveErrors[keyof ComputersRetrieveErrors];
|
|
53709
|
+
export type ComputersRetrieveResponses = {
|
|
53803
53710
|
/**
|
|
53804
53711
|
* Computer result
|
|
53805
53712
|
*/
|
|
@@ -53844,11 +53751,36 @@ export type ComputersUpdateResponses = {
|
|
|
53844
53751
|
* RFC 3339 time at which the computer was archived; null while active.
|
|
53845
53752
|
*/
|
|
53846
53753
|
archived_at: string | null;
|
|
53754
|
+
/**
|
|
53755
|
+
* Kind of machine backing this computer: light is the lightweight computer, full is a full sandbox with programs, background processes and media.
|
|
53756
|
+
*/
|
|
53757
|
+
machine: 'light' | 'full';
|
|
53758
|
+
/**
|
|
53759
|
+
* Deprecated: use machine instead (light = virtual, full = sandbox). Kept for compatibility.
|
|
53760
|
+
*/
|
|
53761
|
+
implementation: 'virtual' | 'sandbox';
|
|
53762
|
+
/**
|
|
53763
|
+
* Bytes stored on the computer.
|
|
53764
|
+
*/
|
|
53765
|
+
storage_bytes: number;
|
|
53766
|
+
/**
|
|
53767
|
+
* Number of files stored on the computer.
|
|
53768
|
+
*/
|
|
53769
|
+
file_count: number;
|
|
53770
|
+
/**
|
|
53771
|
+
* False when disk statistics are partial because the 20-second or 50,000-entry limit was reached. Tier-local directories are excluded.
|
|
53772
|
+
*/
|
|
53773
|
+
stats_complete: boolean;
|
|
53847
53774
|
};
|
|
53848
53775
|
};
|
|
53849
|
-
export type
|
|
53850
|
-
export type
|
|
53851
|
-
body
|
|
53776
|
+
export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof ComputersRetrieveResponses];
|
|
53777
|
+
export type ComputersUpdateData = {
|
|
53778
|
+
body: {
|
|
53779
|
+
/**
|
|
53780
|
+
* Name of the entry or object.
|
|
53781
|
+
*/
|
|
53782
|
+
name: string;
|
|
53783
|
+
};
|
|
53852
53784
|
path: {
|
|
53853
53785
|
/**
|
|
53854
53786
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
@@ -53856,9 +53788,9 @@ export type ComputersArchiveData = {
|
|
|
53856
53788
|
computer_id: string;
|
|
53857
53789
|
};
|
|
53858
53790
|
query?: never;
|
|
53859
|
-
url: '/agent/v1/computers/{computer_id}
|
|
53791
|
+
url: '/agent/v1/computers/{computer_id}';
|
|
53860
53792
|
};
|
|
53861
|
-
export type
|
|
53793
|
+
export type ComputersUpdateErrors = {
|
|
53862
53794
|
/**
|
|
53863
53795
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
53864
53796
|
*/
|
|
@@ -54067,8 +53999,8 @@ export type ComputersArchiveErrors = {
|
|
|
54067
53999
|
request_id: string;
|
|
54068
54000
|
};
|
|
54069
54001
|
};
|
|
54070
|
-
export type
|
|
54071
|
-
export type
|
|
54002
|
+
export type ComputersUpdateError = ComputersUpdateErrors[keyof ComputersUpdateErrors];
|
|
54003
|
+
export type ComputersUpdateResponses = {
|
|
54072
54004
|
/**
|
|
54073
54005
|
* Computer result
|
|
54074
54006
|
*/
|
|
@@ -54115,27 +54047,19 @@ export type ComputersArchiveResponses = {
|
|
|
54115
54047
|
archived_at: string | null;
|
|
54116
54048
|
};
|
|
54117
54049
|
};
|
|
54118
|
-
export type
|
|
54119
|
-
export type
|
|
54120
|
-
|
|
54121
|
-
* Raw file content for the attachment named by the name query parameter.
|
|
54122
|
-
*/
|
|
54123
|
-
body: Blob | File;
|
|
54050
|
+
export type ComputersUpdateResponse = ComputersUpdateResponses[keyof ComputersUpdateResponses];
|
|
54051
|
+
export type ComputersArchiveData = {
|
|
54052
|
+
body?: never;
|
|
54124
54053
|
path: {
|
|
54125
54054
|
/**
|
|
54126
54055
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
54127
54056
|
*/
|
|
54128
54057
|
computer_id: string;
|
|
54129
54058
|
};
|
|
54130
|
-
query
|
|
54131
|
-
|
|
54132
|
-
* Single filename, at most 255 UTF-8 bytes, excluding slash, dot segments and control characters.
|
|
54133
|
-
*/
|
|
54134
|
-
name: string;
|
|
54135
|
-
};
|
|
54136
|
-
url: '/agent/v1/computers/{computer_id}/attachments';
|
|
54059
|
+
query?: never;
|
|
54060
|
+
url: '/agent/v1/computers/{computer_id}/archive';
|
|
54137
54061
|
};
|
|
54138
|
-
export type
|
|
54062
|
+
export type ComputersArchiveErrors = {
|
|
54139
54063
|
/**
|
|
54140
54064
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54141
54065
|
*/
|
|
@@ -54344,64 +54268,75 @@ export type ComputersAttachmentsCreateErrors = {
|
|
|
54344
54268
|
request_id: string;
|
|
54345
54269
|
};
|
|
54346
54270
|
};
|
|
54347
|
-
export type
|
|
54348
|
-
export type
|
|
54271
|
+
export type ComputersArchiveError = ComputersArchiveErrors[keyof ComputersArchiveErrors];
|
|
54272
|
+
export type ComputersArchiveResponses = {
|
|
54349
54273
|
/**
|
|
54350
54274
|
* Computer result
|
|
54351
54275
|
*/
|
|
54352
|
-
|
|
54276
|
+
200: {
|
|
54353
54277
|
/**
|
|
54354
|
-
*
|
|
54278
|
+
* Always `computer`. A computer.
|
|
54355
54279
|
*/
|
|
54356
|
-
|
|
54280
|
+
type: 'computer';
|
|
54357
54281
|
/**
|
|
54358
|
-
*
|
|
54282
|
+
* Computer id (cmp_...), the computer_id of computer calls.
|
|
54283
|
+
*/
|
|
54284
|
+
id: string;
|
|
54285
|
+
/**
|
|
54286
|
+
* Display name of the computer, 1 to 255 characters.
|
|
54359
54287
|
*/
|
|
54360
54288
|
name: string;
|
|
54361
54289
|
/**
|
|
54362
|
-
*
|
|
54290
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
54363
54291
|
*/
|
|
54364
|
-
|
|
54292
|
+
sandbox_id: string | null;
|
|
54365
54293
|
/**
|
|
54366
|
-
*
|
|
54294
|
+
* not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
|
|
54367
54295
|
*/
|
|
54368
|
-
|
|
54296
|
+
machine_state: 'not_started' | 'provisioned';
|
|
54369
54297
|
/**
|
|
54370
|
-
*
|
|
54298
|
+
* Environment recipe the computer was created with; null when none.
|
|
54371
54299
|
*/
|
|
54372
|
-
|
|
54300
|
+
environment_id: string | null;
|
|
54373
54301
|
/**
|
|
54374
|
-
*
|
|
54302
|
+
* active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
|
|
54375
54303
|
*/
|
|
54376
|
-
|
|
54304
|
+
status: 'active' | 'archived';
|
|
54377
54305
|
/**
|
|
54378
|
-
*
|
|
54306
|
+
* RFC 3339 time at which the computer was created.
|
|
54379
54307
|
*/
|
|
54380
|
-
|
|
54308
|
+
created_at: string;
|
|
54381
54309
|
/**
|
|
54382
|
-
* RFC 3339 time at which the
|
|
54310
|
+
* RFC 3339 time at which the computer was last modified.
|
|
54383
54311
|
*/
|
|
54384
|
-
updated_at: string
|
|
54312
|
+
updated_at: string;
|
|
54313
|
+
/**
|
|
54314
|
+
* RFC 3339 time at which the computer was archived; null while active.
|
|
54315
|
+
*/
|
|
54316
|
+
archived_at: string | null;
|
|
54385
54317
|
};
|
|
54386
54318
|
};
|
|
54387
|
-
export type
|
|
54388
|
-
export type
|
|
54389
|
-
|
|
54319
|
+
export type ComputersArchiveResponse = ComputersArchiveResponses[keyof ComputersArchiveResponses];
|
|
54320
|
+
export type ComputersAttachmentsCreateData = {
|
|
54321
|
+
/**
|
|
54322
|
+
* Raw file content for the attachment named by the name query parameter.
|
|
54323
|
+
*/
|
|
54324
|
+
body: Blob | File;
|
|
54390
54325
|
path: {
|
|
54391
54326
|
/**
|
|
54392
54327
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
54393
54328
|
*/
|
|
54394
54329
|
computer_id: string;
|
|
54395
54330
|
};
|
|
54396
|
-
query
|
|
54331
|
+
query: {
|
|
54397
54332
|
/**
|
|
54398
|
-
*
|
|
54333
|
+
* Single filename, at most 255 UTF-8 bytes, excluding slash, dot segments and control characters.
|
|
54399
54334
|
*/
|
|
54400
|
-
|
|
54335
|
+
name: string;
|
|
54401
54336
|
};
|
|
54402
|
-
url: '/agent/v1/computers/{computer_id}/
|
|
54337
|
+
url: '/agent/v1/computers/{computer_id}/attachments';
|
|
54403
54338
|
};
|
|
54404
|
-
export type
|
|
54339
|
+
export type ComputersAttachmentsCreateErrors = {
|
|
54405
54340
|
/**
|
|
54406
54341
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54407
54342
|
*/
|
|
@@ -54610,87 +54545,64 @@ export type ComputersFilesListErrors = {
|
|
|
54610
54545
|
request_id: string;
|
|
54611
54546
|
};
|
|
54612
54547
|
};
|
|
54613
|
-
export type
|
|
54614
|
-
export type
|
|
54548
|
+
export type ComputersAttachmentsCreateError = ComputersAttachmentsCreateErrors[keyof ComputersAttachmentsCreateErrors];
|
|
54549
|
+
export type ComputersAttachmentsCreateResponses = {
|
|
54615
54550
|
/**
|
|
54616
54551
|
* Computer result
|
|
54617
54552
|
*/
|
|
54618
|
-
|
|
54553
|
+
201: {
|
|
54619
54554
|
/**
|
|
54620
|
-
*
|
|
54555
|
+
* Absolute path of the entry on the computer.
|
|
54621
54556
|
*/
|
|
54622
|
-
|
|
54623
|
-
/**
|
|
54624
|
-
* Absolute path of the entry on the computer.
|
|
54625
|
-
*/
|
|
54626
|
-
path: string;
|
|
54627
|
-
/**
|
|
54628
|
-
* Name of the entry or object.
|
|
54629
|
-
*/
|
|
54630
|
-
name: string;
|
|
54631
|
-
/**
|
|
54632
|
-
* Kind of entry: a file, a directory or a symbolic link.
|
|
54633
|
-
*/
|
|
54634
|
-
type: 'file' | 'dir' | 'symlink';
|
|
54635
|
-
/**
|
|
54636
|
-
* Size in bytes.
|
|
54637
|
-
*/
|
|
54638
|
-
size: number;
|
|
54639
|
-
/**
|
|
54640
|
-
* MIME type of the file.
|
|
54641
|
-
*/
|
|
54642
|
-
mime_type: string;
|
|
54643
|
-
/**
|
|
54644
|
-
* True when the entry cannot be modified through the API.
|
|
54645
|
-
*/
|
|
54646
|
-
read_only: boolean;
|
|
54647
|
-
/**
|
|
54648
|
-
* Content digest of the file; null when not computed.
|
|
54649
|
-
*/
|
|
54650
|
-
digest?: string | null;
|
|
54651
|
-
/**
|
|
54652
|
-
* RFC 3339 time at which the object was last modified.
|
|
54653
|
-
*/
|
|
54654
|
-
updated_at: string | null;
|
|
54655
|
-
}>;
|
|
54557
|
+
path: string;
|
|
54656
54558
|
/**
|
|
54657
|
-
*
|
|
54559
|
+
* Name of the entry or object.
|
|
54658
54560
|
*/
|
|
54659
|
-
|
|
54561
|
+
name: string;
|
|
54660
54562
|
/**
|
|
54661
|
-
*
|
|
54563
|
+
* Kind of entry: a file, a directory or a symbolic link.
|
|
54662
54564
|
*/
|
|
54663
|
-
|
|
54664
|
-
};
|
|
54665
|
-
};
|
|
54666
|
-
export type ComputersFilesListResponse = ComputersFilesListResponses[keyof ComputersFilesListResponses];
|
|
54667
|
-
export type ComputersFilesContentData = {
|
|
54668
|
-
body?: never;
|
|
54669
|
-
headers?: {
|
|
54565
|
+
type: 'file' | 'dir' | 'symlink';
|
|
54670
54566
|
/**
|
|
54671
|
-
*
|
|
54567
|
+
* Size in bytes.
|
|
54672
54568
|
*/
|
|
54673
|
-
|
|
54569
|
+
size: number;
|
|
54674
54570
|
/**
|
|
54675
|
-
*
|
|
54571
|
+
* MIME type of the file.
|
|
54676
54572
|
*/
|
|
54677
|
-
|
|
54573
|
+
mime_type: string;
|
|
54574
|
+
/**
|
|
54575
|
+
* True when the entry cannot be modified through the API.
|
|
54576
|
+
*/
|
|
54577
|
+
read_only: boolean;
|
|
54578
|
+
/**
|
|
54579
|
+
* Content digest of the file; null when not computed.
|
|
54580
|
+
*/
|
|
54581
|
+
digest?: string | null;
|
|
54582
|
+
/**
|
|
54583
|
+
* RFC 3339 time at which the object was last modified.
|
|
54584
|
+
*/
|
|
54585
|
+
updated_at: string | null;
|
|
54678
54586
|
};
|
|
54587
|
+
};
|
|
54588
|
+
export type ComputersAttachmentsCreateResponse = ComputersAttachmentsCreateResponses[keyof ComputersAttachmentsCreateResponses];
|
|
54589
|
+
export type ComputersFilesListData = {
|
|
54590
|
+
body?: never;
|
|
54679
54591
|
path: {
|
|
54680
54592
|
/**
|
|
54681
54593
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
54682
54594
|
*/
|
|
54683
54595
|
computer_id: string;
|
|
54684
54596
|
};
|
|
54685
|
-
query
|
|
54597
|
+
query?: {
|
|
54686
54598
|
/**
|
|
54687
|
-
*
|
|
54599
|
+
* Directory on the computer to list; absolute path as returned in the path field of an earlier listing. Omit it to list from the computer's root.
|
|
54688
54600
|
*/
|
|
54689
|
-
path
|
|
54601
|
+
path?: string;
|
|
54690
54602
|
};
|
|
54691
|
-
url: '/agent/v1/computers/{computer_id}/files
|
|
54603
|
+
url: '/agent/v1/computers/{computer_id}/files';
|
|
54692
54604
|
};
|
|
54693
|
-
export type
|
|
54605
|
+
export type ComputersFilesListErrors = {
|
|
54694
54606
|
/**
|
|
54695
54607
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54696
54608
|
*/
|
|
@@ -54830,9 +54742,9 @@ export type ComputersFilesContentErrors = {
|
|
|
54830
54742
|
request_id: string;
|
|
54831
54743
|
};
|
|
54832
54744
|
/**
|
|
54833
|
-
*
|
|
54745
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54834
54746
|
*/
|
|
54835
|
-
|
|
54747
|
+
429: {
|
|
54836
54748
|
type: 'error';
|
|
54837
54749
|
error: {
|
|
54838
54750
|
/**
|
|
@@ -54855,7 +54767,7 @@ export type ComputersFilesContentErrors = {
|
|
|
54855
54767
|
/**
|
|
54856
54768
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54857
54769
|
*/
|
|
54858
|
-
|
|
54770
|
+
500: {
|
|
54859
54771
|
type: 'error';
|
|
54860
54772
|
error: {
|
|
54861
54773
|
/**
|
|
@@ -54878,7 +54790,7 @@ export type ComputersFilesContentErrors = {
|
|
|
54878
54790
|
/**
|
|
54879
54791
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54880
54792
|
*/
|
|
54881
|
-
|
|
54793
|
+
503: {
|
|
54882
54794
|
type: 'error';
|
|
54883
54795
|
error: {
|
|
54884
54796
|
/**
|
|
@@ -54898,44 +54810,73 @@ export type ComputersFilesContentErrors = {
|
|
|
54898
54810
|
*/
|
|
54899
54811
|
request_id: string;
|
|
54900
54812
|
};
|
|
54813
|
+
};
|
|
54814
|
+
export type ComputersFilesListError = ComputersFilesListErrors[keyof ComputersFilesListErrors];
|
|
54815
|
+
export type ComputersFilesListResponses = {
|
|
54901
54816
|
/**
|
|
54902
|
-
*
|
|
54817
|
+
* Computer result
|
|
54903
54818
|
*/
|
|
54904
|
-
|
|
54905
|
-
|
|
54906
|
-
|
|
54819
|
+
200: {
|
|
54820
|
+
/**
|
|
54821
|
+
* Items of this page, in the order requested by the call.
|
|
54822
|
+
*/
|
|
54823
|
+
data: Array<{
|
|
54907
54824
|
/**
|
|
54908
|
-
*
|
|
54825
|
+
* Absolute path of the entry on the computer.
|
|
54909
54826
|
*/
|
|
54910
|
-
|
|
54911
|
-
message: string;
|
|
54912
|
-
code: string;
|
|
54913
|
-
retryable: boolean;
|
|
54827
|
+
path: string;
|
|
54914
54828
|
/**
|
|
54915
|
-
*
|
|
54829
|
+
* Name of the entry or object.
|
|
54916
54830
|
*/
|
|
54917
|
-
|
|
54918
|
-
|
|
54831
|
+
name: string;
|
|
54832
|
+
/**
|
|
54833
|
+
* Kind of entry: a file, a directory or a symbolic link.
|
|
54834
|
+
*/
|
|
54835
|
+
type: 'file' | 'dir' | 'symlink';
|
|
54836
|
+
/**
|
|
54837
|
+
* Size in bytes.
|
|
54838
|
+
*/
|
|
54839
|
+
size: number;
|
|
54840
|
+
/**
|
|
54841
|
+
* MIME type of the file.
|
|
54842
|
+
*/
|
|
54843
|
+
mime_type: string;
|
|
54844
|
+
/**
|
|
54845
|
+
* True when the entry cannot be modified through the API.
|
|
54846
|
+
*/
|
|
54847
|
+
read_only: boolean;
|
|
54848
|
+
/**
|
|
54849
|
+
* Content digest of the file; null when not computed.
|
|
54850
|
+
*/
|
|
54851
|
+
digest?: string | null;
|
|
54852
|
+
/**
|
|
54853
|
+
* RFC 3339 time at which the object was last modified.
|
|
54854
|
+
*/
|
|
54855
|
+
updated_at: string | null;
|
|
54856
|
+
}>;
|
|
54919
54857
|
/**
|
|
54920
|
-
*
|
|
54858
|
+
* Whether more items exist beyond this page.
|
|
54921
54859
|
*/
|
|
54922
|
-
|
|
54860
|
+
has_more: false;
|
|
54861
|
+
/**
|
|
54862
|
+
* Machine tier used to read this directory: light is the lightweight computer; heavy is the full computer.
|
|
54863
|
+
*/
|
|
54864
|
+
tier: 'light' | 'heavy';
|
|
54923
54865
|
};
|
|
54924
54866
|
};
|
|
54925
|
-
export type
|
|
54926
|
-
export type
|
|
54927
|
-
/**
|
|
54928
|
-
* Raw file bytes (at most 16 MiB); Content-Type is inferred from the extension. ETag is present only when a digest is available. Larger files require the sandbox connection issued by connect.
|
|
54929
|
-
*/
|
|
54930
|
-
200: Blob | File;
|
|
54931
|
-
/**
|
|
54932
|
-
* Single byte range
|
|
54933
|
-
*/
|
|
54934
|
-
206: Blob | File;
|
|
54935
|
-
};
|
|
54936
|
-
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
54937
|
-
export type ComputersFilesConvertData = {
|
|
54867
|
+
export type ComputersFilesListResponse = ComputersFilesListResponses[keyof ComputersFilesListResponses];
|
|
54868
|
+
export type ComputersFilesContentData = {
|
|
54938
54869
|
body?: never;
|
|
54870
|
+
headers?: {
|
|
54871
|
+
/**
|
|
54872
|
+
* Quoted digest entity-tag; legacy unquoted digests are also accepted.
|
|
54873
|
+
*/
|
|
54874
|
+
'If-None-Match'?: string;
|
|
54875
|
+
/**
|
|
54876
|
+
* Single byte range, including open-ended and suffix ranges.
|
|
54877
|
+
*/
|
|
54878
|
+
Range?: string;
|
|
54879
|
+
};
|
|
54939
54880
|
path: {
|
|
54940
54881
|
/**
|
|
54941
54882
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
@@ -54944,13 +54885,13 @@ export type ComputersFilesConvertData = {
|
|
|
54944
54885
|
};
|
|
54945
54886
|
query: {
|
|
54946
54887
|
/**
|
|
54947
|
-
* Absolute path of the
|
|
54888
|
+
* Absolute path of the file whose content to download, as returned in the path field of computers.files.list.
|
|
54948
54889
|
*/
|
|
54949
54890
|
path: string;
|
|
54950
54891
|
};
|
|
54951
|
-
url: '/agent/v1/computers/{computer_id}/files/
|
|
54892
|
+
url: '/agent/v1/computers/{computer_id}/files/content';
|
|
54952
54893
|
};
|
|
54953
|
-
export type
|
|
54894
|
+
export type ComputersFilesContentErrors = {
|
|
54954
54895
|
/**
|
|
54955
54896
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
54956
54897
|
*/
|
|
@@ -55090,9 +55031,9 @@ export type ComputersFilesConvertErrors = {
|
|
|
55090
55031
|
request_id: string;
|
|
55091
55032
|
};
|
|
55092
55033
|
/**
|
|
55093
|
-
*
|
|
55034
|
+
* Range unavailable
|
|
55094
55035
|
*/
|
|
55095
|
-
|
|
55036
|
+
416: {
|
|
55096
55037
|
type: 'error';
|
|
55097
55038
|
error: {
|
|
55098
55039
|
/**
|
|
@@ -55115,7 +55056,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
55115
55056
|
/**
|
|
55116
55057
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55117
55058
|
*/
|
|
55118
|
-
|
|
55059
|
+
429: {
|
|
55119
55060
|
type: 'error';
|
|
55120
55061
|
error: {
|
|
55121
55062
|
/**
|
|
@@ -55138,7 +55079,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
55138
55079
|
/**
|
|
55139
55080
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55140
55081
|
*/
|
|
55141
|
-
|
|
55082
|
+
500: {
|
|
55142
55083
|
type: 'error';
|
|
55143
55084
|
error: {
|
|
55144
55085
|
/**
|
|
@@ -55158,49 +55099,10 @@ export type ComputersFilesConvertErrors = {
|
|
|
55158
55099
|
*/
|
|
55159
55100
|
request_id: string;
|
|
55160
55101
|
};
|
|
55161
|
-
};
|
|
55162
|
-
export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
|
|
55163
|
-
export type ComputersFilesConvertResponses = {
|
|
55164
55102
|
/**
|
|
55165
|
-
*
|
|
55166
|
-
*/
|
|
55167
|
-
200: {
|
|
55168
|
-
/**
|
|
55169
|
-
* The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
|
|
55170
|
-
*/
|
|
55171
|
-
data: string;
|
|
55172
|
-
/**
|
|
55173
|
-
* Media type of the decoded bytes; always application/pdf.
|
|
55174
|
-
*/
|
|
55175
|
-
mime: 'application/pdf';
|
|
55176
|
-
/**
|
|
55177
|
-
* true when an earlier conversion of the same file content was reused.
|
|
55178
|
-
*/
|
|
55179
|
-
cached: boolean;
|
|
55180
|
-
};
|
|
55181
|
-
};
|
|
55182
|
-
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
55183
|
-
export type ConnectComputerData = {
|
|
55184
|
-
body?: {
|
|
55185
|
-
/**
|
|
55186
|
-
* Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
|
|
55187
|
-
*/
|
|
55188
|
-
need?: 'light' | 'heavy';
|
|
55189
|
-
};
|
|
55190
|
-
path: {
|
|
55191
|
-
/**
|
|
55192
|
-
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55193
|
-
*/
|
|
55194
|
-
computer_id: string;
|
|
55195
|
-
};
|
|
55196
|
-
query?: never;
|
|
55197
|
-
url: '/agent/v1/computers/{computer_id}/connect';
|
|
55198
|
-
};
|
|
55199
|
-
export type ConnectComputerErrors = {
|
|
55200
|
-
/**
|
|
55201
|
-
* INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
|
|
55103
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55202
55104
|
*/
|
|
55203
|
-
|
|
55105
|
+
503: {
|
|
55204
55106
|
type: 'error';
|
|
55205
55107
|
error: {
|
|
55206
55108
|
/**
|
|
@@ -55220,33 +55122,40 @@ export type ConnectComputerErrors = {
|
|
|
55220
55122
|
*/
|
|
55221
55123
|
request_id: string;
|
|
55222
55124
|
};
|
|
55125
|
+
};
|
|
55126
|
+
export type ComputersFilesContentError = ComputersFilesContentErrors[keyof ComputersFilesContentErrors];
|
|
55127
|
+
export type ComputersFilesContentResponses = {
|
|
55223
55128
|
/**
|
|
55224
|
-
*
|
|
55129
|
+
* Raw file bytes (at most 16 MiB); Content-Type is inferred from the extension. ETag is present only when a digest is available. Larger files require the sandbox connection issued by connect.
|
|
55225
55130
|
*/
|
|
55226
|
-
|
|
55227
|
-
|
|
55228
|
-
|
|
55229
|
-
|
|
55230
|
-
|
|
55231
|
-
|
|
55232
|
-
|
|
55233
|
-
|
|
55234
|
-
|
|
55235
|
-
|
|
55236
|
-
/**
|
|
55237
|
-
* How to recover, for computer failures.
|
|
55238
|
-
*/
|
|
55239
|
-
hint?: string;
|
|
55240
|
-
};
|
|
55131
|
+
200: Blob | File;
|
|
55132
|
+
/**
|
|
55133
|
+
* Single byte range
|
|
55134
|
+
*/
|
|
55135
|
+
206: Blob | File;
|
|
55136
|
+
};
|
|
55137
|
+
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
55138
|
+
export type ComputersFilesConvertData = {
|
|
55139
|
+
body?: never;
|
|
55140
|
+
path: {
|
|
55241
55141
|
/**
|
|
55242
|
-
*
|
|
55142
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55243
55143
|
*/
|
|
55244
|
-
|
|
55144
|
+
computer_id: string;
|
|
55145
|
+
};
|
|
55146
|
+
query: {
|
|
55147
|
+
/**
|
|
55148
|
+
* Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
|
|
55149
|
+
*/
|
|
55150
|
+
path: string;
|
|
55245
55151
|
};
|
|
55152
|
+
url: '/agent/v1/computers/{computer_id}/files/convert';
|
|
55153
|
+
};
|
|
55154
|
+
export type ComputersFilesConvertErrors = {
|
|
55246
55155
|
/**
|
|
55247
55156
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55248
55157
|
*/
|
|
55249
|
-
|
|
55158
|
+
400: {
|
|
55250
55159
|
type: 'error';
|
|
55251
55160
|
error: {
|
|
55252
55161
|
/**
|
|
@@ -55267,9 +55176,9 @@ export type ConnectComputerErrors = {
|
|
|
55267
55176
|
request_id: string;
|
|
55268
55177
|
};
|
|
55269
55178
|
/**
|
|
55270
|
-
*
|
|
55179
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55271
55180
|
*/
|
|
55272
|
-
|
|
55181
|
+
401: {
|
|
55273
55182
|
type: 'error';
|
|
55274
55183
|
error: {
|
|
55275
55184
|
/**
|
|
@@ -55292,7 +55201,7 @@ export type ConnectComputerErrors = {
|
|
|
55292
55201
|
/**
|
|
55293
55202
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55294
55203
|
*/
|
|
55295
|
-
|
|
55204
|
+
403: {
|
|
55296
55205
|
type: 'error';
|
|
55297
55206
|
error: {
|
|
55298
55207
|
/**
|
|
@@ -55313,9 +55222,9 @@ export type ConnectComputerErrors = {
|
|
|
55313
55222
|
request_id: string;
|
|
55314
55223
|
};
|
|
55315
55224
|
/**
|
|
55316
|
-
*
|
|
55225
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
55317
55226
|
*/
|
|
55318
|
-
|
|
55227
|
+
404: {
|
|
55319
55228
|
type: 'error';
|
|
55320
55229
|
error: {
|
|
55321
55230
|
/**
|
|
@@ -55338,7 +55247,7 @@ export type ConnectComputerErrors = {
|
|
|
55338
55247
|
/**
|
|
55339
55248
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55340
55249
|
*/
|
|
55341
|
-
|
|
55250
|
+
409: {
|
|
55342
55251
|
type: 'error';
|
|
55343
55252
|
error: {
|
|
55344
55253
|
/**
|
|
@@ -55361,7 +55270,7 @@ export type ConnectComputerErrors = {
|
|
|
55361
55270
|
/**
|
|
55362
55271
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55363
55272
|
*/
|
|
55364
|
-
|
|
55273
|
+
413: {
|
|
55365
55274
|
type: 'error';
|
|
55366
55275
|
error: {
|
|
55367
55276
|
/**
|
|
@@ -55384,7 +55293,7 @@ export type ConnectComputerErrors = {
|
|
|
55384
55293
|
/**
|
|
55385
55294
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55386
55295
|
*/
|
|
55387
|
-
|
|
55296
|
+
429: {
|
|
55388
55297
|
type: 'error';
|
|
55389
55298
|
error: {
|
|
55390
55299
|
/**
|
|
@@ -55404,60 +55313,352 @@ export type ConnectComputerErrors = {
|
|
|
55404
55313
|
*/
|
|
55405
55314
|
request_id: string;
|
|
55406
55315
|
};
|
|
55407
|
-
};
|
|
55408
|
-
export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
|
|
55409
|
-
export type ConnectComputerResponses = {
|
|
55410
|
-
/**
|
|
55411
|
-
* Computer result
|
|
55412
|
-
*/
|
|
55413
|
-
200: {
|
|
55414
|
-
/**
|
|
55415
|
-
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
55416
|
-
*/
|
|
55417
|
-
sandbox_id: string;
|
|
55418
|
-
/**
|
|
55419
|
-
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
55420
|
-
*/
|
|
55421
|
-
envd_access_token: string;
|
|
55422
|
-
/**
|
|
55423
|
-
* Sandbox template the computer's sandbox was created from.
|
|
55424
|
-
*/
|
|
55425
|
-
template_id: string;
|
|
55426
|
-
/**
|
|
55427
|
-
* Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
|
|
55428
|
-
*/
|
|
55429
|
-
tier: 'light' | 'heavy';
|
|
55430
|
-
/**
|
|
55431
|
-
* Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
|
|
55432
|
-
*/
|
|
55433
|
-
lease_id: string | null;
|
|
55434
|
-
/**
|
|
55435
|
-
* Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
|
|
55436
|
-
*/
|
|
55437
|
-
lease_expires_at: string | null;
|
|
55438
|
-
};
|
|
55439
|
-
};
|
|
55440
|
-
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
55441
|
-
export type RenewComputerLeaseData = {
|
|
55442
|
-
body?: never;
|
|
55443
|
-
path: {
|
|
55444
|
-
/**
|
|
55445
|
-
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55446
|
-
*/
|
|
55447
|
-
computer_id: string;
|
|
55448
|
-
/**
|
|
55449
|
-
* lease_id from the connect response.
|
|
55450
|
-
*/
|
|
55451
|
-
lease_id: string;
|
|
55452
|
-
};
|
|
55453
|
-
query?: never;
|
|
55454
|
-
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
|
|
55455
|
-
};
|
|
55456
|
-
export type RenewComputerLeaseErrors = {
|
|
55457
55316
|
/**
|
|
55458
55317
|
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55459
55318
|
*/
|
|
55460
|
-
|
|
55319
|
+
500: {
|
|
55320
|
+
type: 'error';
|
|
55321
|
+
error: {
|
|
55322
|
+
/**
|
|
55323
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55324
|
+
*/
|
|
55325
|
+
type: string;
|
|
55326
|
+
message: string;
|
|
55327
|
+
code: string;
|
|
55328
|
+
retryable: boolean;
|
|
55329
|
+
/**
|
|
55330
|
+
* How to recover, for computer failures.
|
|
55331
|
+
*/
|
|
55332
|
+
hint?: string;
|
|
55333
|
+
};
|
|
55334
|
+
/**
|
|
55335
|
+
* Equals the X-Request-Id response header.
|
|
55336
|
+
*/
|
|
55337
|
+
request_id: string;
|
|
55338
|
+
};
|
|
55339
|
+
/**
|
|
55340
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55341
|
+
*/
|
|
55342
|
+
503: {
|
|
55343
|
+
type: 'error';
|
|
55344
|
+
error: {
|
|
55345
|
+
/**
|
|
55346
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55347
|
+
*/
|
|
55348
|
+
type: string;
|
|
55349
|
+
message: string;
|
|
55350
|
+
code: string;
|
|
55351
|
+
retryable: boolean;
|
|
55352
|
+
/**
|
|
55353
|
+
* How to recover, for computer failures.
|
|
55354
|
+
*/
|
|
55355
|
+
hint?: string;
|
|
55356
|
+
};
|
|
55357
|
+
/**
|
|
55358
|
+
* Equals the X-Request-Id response header.
|
|
55359
|
+
*/
|
|
55360
|
+
request_id: string;
|
|
55361
|
+
};
|
|
55362
|
+
};
|
|
55363
|
+
export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
|
|
55364
|
+
export type ComputersFilesConvertResponses = {
|
|
55365
|
+
/**
|
|
55366
|
+
* The converted PDF as base64
|
|
55367
|
+
*/
|
|
55368
|
+
200: {
|
|
55369
|
+
/**
|
|
55370
|
+
* The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
|
|
55371
|
+
*/
|
|
55372
|
+
data: string;
|
|
55373
|
+
/**
|
|
55374
|
+
* Media type of the decoded bytes; always application/pdf.
|
|
55375
|
+
*/
|
|
55376
|
+
mime: 'application/pdf';
|
|
55377
|
+
/**
|
|
55378
|
+
* true when an earlier conversion of the same file content was reused.
|
|
55379
|
+
*/
|
|
55380
|
+
cached: boolean;
|
|
55381
|
+
};
|
|
55382
|
+
};
|
|
55383
|
+
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
55384
|
+
export type ConnectComputerData = {
|
|
55385
|
+
body?: {
|
|
55386
|
+
/**
|
|
55387
|
+
* Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
|
|
55388
|
+
*/
|
|
55389
|
+
need?: 'light' | 'heavy';
|
|
55390
|
+
};
|
|
55391
|
+
path: {
|
|
55392
|
+
/**
|
|
55393
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55394
|
+
*/
|
|
55395
|
+
computer_id: string;
|
|
55396
|
+
};
|
|
55397
|
+
query?: never;
|
|
55398
|
+
url: '/agent/v1/computers/{computer_id}/connect';
|
|
55399
|
+
};
|
|
55400
|
+
export type ConnectComputerErrors = {
|
|
55401
|
+
/**
|
|
55402
|
+
* INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
|
|
55403
|
+
*/
|
|
55404
|
+
400: {
|
|
55405
|
+
type: 'error';
|
|
55406
|
+
error: {
|
|
55407
|
+
/**
|
|
55408
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55409
|
+
*/
|
|
55410
|
+
type: string;
|
|
55411
|
+
message: string;
|
|
55412
|
+
code: string;
|
|
55413
|
+
retryable: boolean;
|
|
55414
|
+
/**
|
|
55415
|
+
* How to recover, for computer failures.
|
|
55416
|
+
*/
|
|
55417
|
+
hint?: string;
|
|
55418
|
+
};
|
|
55419
|
+
/**
|
|
55420
|
+
* Equals the X-Request-Id response header.
|
|
55421
|
+
*/
|
|
55422
|
+
request_id: string;
|
|
55423
|
+
};
|
|
55424
|
+
/**
|
|
55425
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55426
|
+
*/
|
|
55427
|
+
401: {
|
|
55428
|
+
type: 'error';
|
|
55429
|
+
error: {
|
|
55430
|
+
/**
|
|
55431
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55432
|
+
*/
|
|
55433
|
+
type: string;
|
|
55434
|
+
message: string;
|
|
55435
|
+
code: string;
|
|
55436
|
+
retryable: boolean;
|
|
55437
|
+
/**
|
|
55438
|
+
* How to recover, for computer failures.
|
|
55439
|
+
*/
|
|
55440
|
+
hint?: string;
|
|
55441
|
+
};
|
|
55442
|
+
/**
|
|
55443
|
+
* Equals the X-Request-Id response header.
|
|
55444
|
+
*/
|
|
55445
|
+
request_id: string;
|
|
55446
|
+
};
|
|
55447
|
+
/**
|
|
55448
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55449
|
+
*/
|
|
55450
|
+
403: {
|
|
55451
|
+
type: 'error';
|
|
55452
|
+
error: {
|
|
55453
|
+
/**
|
|
55454
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55455
|
+
*/
|
|
55456
|
+
type: string;
|
|
55457
|
+
message: string;
|
|
55458
|
+
code: string;
|
|
55459
|
+
retryable: boolean;
|
|
55460
|
+
/**
|
|
55461
|
+
* How to recover, for computer failures.
|
|
55462
|
+
*/
|
|
55463
|
+
hint?: string;
|
|
55464
|
+
};
|
|
55465
|
+
/**
|
|
55466
|
+
* Equals the X-Request-Id response header.
|
|
55467
|
+
*/
|
|
55468
|
+
request_id: string;
|
|
55469
|
+
};
|
|
55470
|
+
/**
|
|
55471
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
55472
|
+
*/
|
|
55473
|
+
404: {
|
|
55474
|
+
type: 'error';
|
|
55475
|
+
error: {
|
|
55476
|
+
/**
|
|
55477
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55478
|
+
*/
|
|
55479
|
+
type: string;
|
|
55480
|
+
message: string;
|
|
55481
|
+
code: string;
|
|
55482
|
+
retryable: boolean;
|
|
55483
|
+
/**
|
|
55484
|
+
* How to recover, for computer failures.
|
|
55485
|
+
*/
|
|
55486
|
+
hint?: string;
|
|
55487
|
+
};
|
|
55488
|
+
/**
|
|
55489
|
+
* Equals the X-Request-Id response header.
|
|
55490
|
+
*/
|
|
55491
|
+
request_id: string;
|
|
55492
|
+
};
|
|
55493
|
+
/**
|
|
55494
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55495
|
+
*/
|
|
55496
|
+
409: {
|
|
55497
|
+
type: 'error';
|
|
55498
|
+
error: {
|
|
55499
|
+
/**
|
|
55500
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55501
|
+
*/
|
|
55502
|
+
type: string;
|
|
55503
|
+
message: string;
|
|
55504
|
+
code: string;
|
|
55505
|
+
retryable: boolean;
|
|
55506
|
+
/**
|
|
55507
|
+
* How to recover, for computer failures.
|
|
55508
|
+
*/
|
|
55509
|
+
hint?: string;
|
|
55510
|
+
};
|
|
55511
|
+
/**
|
|
55512
|
+
* Equals the X-Request-Id response header.
|
|
55513
|
+
*/
|
|
55514
|
+
request_id: string;
|
|
55515
|
+
};
|
|
55516
|
+
/**
|
|
55517
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55518
|
+
*/
|
|
55519
|
+
413: {
|
|
55520
|
+
type: 'error';
|
|
55521
|
+
error: {
|
|
55522
|
+
/**
|
|
55523
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55524
|
+
*/
|
|
55525
|
+
type: string;
|
|
55526
|
+
message: string;
|
|
55527
|
+
code: string;
|
|
55528
|
+
retryable: boolean;
|
|
55529
|
+
/**
|
|
55530
|
+
* How to recover, for computer failures.
|
|
55531
|
+
*/
|
|
55532
|
+
hint?: string;
|
|
55533
|
+
};
|
|
55534
|
+
/**
|
|
55535
|
+
* Equals the X-Request-Id response header.
|
|
55536
|
+
*/
|
|
55537
|
+
request_id: string;
|
|
55538
|
+
};
|
|
55539
|
+
/**
|
|
55540
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55541
|
+
*/
|
|
55542
|
+
429: {
|
|
55543
|
+
type: 'error';
|
|
55544
|
+
error: {
|
|
55545
|
+
/**
|
|
55546
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55547
|
+
*/
|
|
55548
|
+
type: string;
|
|
55549
|
+
message: string;
|
|
55550
|
+
code: string;
|
|
55551
|
+
retryable: boolean;
|
|
55552
|
+
/**
|
|
55553
|
+
* How to recover, for computer failures.
|
|
55554
|
+
*/
|
|
55555
|
+
hint?: string;
|
|
55556
|
+
};
|
|
55557
|
+
/**
|
|
55558
|
+
* Equals the X-Request-Id response header.
|
|
55559
|
+
*/
|
|
55560
|
+
request_id: string;
|
|
55561
|
+
};
|
|
55562
|
+
/**
|
|
55563
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55564
|
+
*/
|
|
55565
|
+
500: {
|
|
55566
|
+
type: 'error';
|
|
55567
|
+
error: {
|
|
55568
|
+
/**
|
|
55569
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55570
|
+
*/
|
|
55571
|
+
type: string;
|
|
55572
|
+
message: string;
|
|
55573
|
+
code: string;
|
|
55574
|
+
retryable: boolean;
|
|
55575
|
+
/**
|
|
55576
|
+
* How to recover, for computer failures.
|
|
55577
|
+
*/
|
|
55578
|
+
hint?: string;
|
|
55579
|
+
};
|
|
55580
|
+
/**
|
|
55581
|
+
* Equals the X-Request-Id response header.
|
|
55582
|
+
*/
|
|
55583
|
+
request_id: string;
|
|
55584
|
+
};
|
|
55585
|
+
/**
|
|
55586
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55587
|
+
*/
|
|
55588
|
+
503: {
|
|
55589
|
+
type: 'error';
|
|
55590
|
+
error: {
|
|
55591
|
+
/**
|
|
55592
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55593
|
+
*/
|
|
55594
|
+
type: string;
|
|
55595
|
+
message: string;
|
|
55596
|
+
code: string;
|
|
55597
|
+
retryable: boolean;
|
|
55598
|
+
/**
|
|
55599
|
+
* How to recover, for computer failures.
|
|
55600
|
+
*/
|
|
55601
|
+
hint?: string;
|
|
55602
|
+
};
|
|
55603
|
+
/**
|
|
55604
|
+
* Equals the X-Request-Id response header.
|
|
55605
|
+
*/
|
|
55606
|
+
request_id: string;
|
|
55607
|
+
};
|
|
55608
|
+
};
|
|
55609
|
+
export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
|
|
55610
|
+
export type ConnectComputerResponses = {
|
|
55611
|
+
/**
|
|
55612
|
+
* Computer result
|
|
55613
|
+
*/
|
|
55614
|
+
200: {
|
|
55615
|
+
/**
|
|
55616
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
55617
|
+
*/
|
|
55618
|
+
sandbox_id: string;
|
|
55619
|
+
/**
|
|
55620
|
+
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
55621
|
+
*/
|
|
55622
|
+
envd_access_token: string;
|
|
55623
|
+
/**
|
|
55624
|
+
* Sandbox template the computer's sandbox was created from.
|
|
55625
|
+
*/
|
|
55626
|
+
template_id: string;
|
|
55627
|
+
/**
|
|
55628
|
+
* Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
|
|
55629
|
+
*/
|
|
55630
|
+
tier: 'light' | 'heavy';
|
|
55631
|
+
/**
|
|
55632
|
+
* Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
|
|
55633
|
+
*/
|
|
55634
|
+
lease_id: string | null;
|
|
55635
|
+
/**
|
|
55636
|
+
* Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
|
|
55637
|
+
*/
|
|
55638
|
+
lease_expires_at: string | null;
|
|
55639
|
+
};
|
|
55640
|
+
};
|
|
55641
|
+
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
55642
|
+
export type RenewComputerLeaseData = {
|
|
55643
|
+
body?: never;
|
|
55644
|
+
path: {
|
|
55645
|
+
/**
|
|
55646
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55647
|
+
*/
|
|
55648
|
+
computer_id: string;
|
|
55649
|
+
/**
|
|
55650
|
+
* lease_id from the connect response.
|
|
55651
|
+
*/
|
|
55652
|
+
lease_id: string;
|
|
55653
|
+
};
|
|
55654
|
+
query?: never;
|
|
55655
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
|
|
55656
|
+
};
|
|
55657
|
+
export type RenewComputerLeaseErrors = {
|
|
55658
|
+
/**
|
|
55659
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55660
|
+
*/
|
|
55661
|
+
400: {
|
|
55461
55662
|
type: 'error';
|
|
55462
55663
|
error: {
|
|
55463
55664
|
/**
|
|
@@ -57986,6 +58187,1737 @@ export type ForkSessionResponses = {
|
|
|
57986
58187
|
};
|
|
57987
58188
|
};
|
|
57988
58189
|
export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
|
|
58190
|
+
export type UpdateSessionAgentVersionData = {
|
|
58191
|
+
/**
|
|
58192
|
+
* The version to move the session to; omit the body to move to the agent's active version.
|
|
58193
|
+
*/
|
|
58194
|
+
body?: {
|
|
58195
|
+
/**
|
|
58196
|
+
* An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version.
|
|
58197
|
+
*/
|
|
58198
|
+
version?: number;
|
|
58199
|
+
};
|
|
58200
|
+
path: {
|
|
58201
|
+
/**
|
|
58202
|
+
* Session id from session creation or listing, or the own face's session name for a main session.
|
|
58203
|
+
*/
|
|
58204
|
+
session_id: string;
|
|
58205
|
+
};
|
|
58206
|
+
query?: never;
|
|
58207
|
+
url: '/agent/v1/sessions/{session_id}/agent_version';
|
|
58208
|
+
};
|
|
58209
|
+
export type UpdateSessionAgentVersionErrors = {
|
|
58210
|
+
/**
|
|
58211
|
+
* INVALID_PARAMS: version is not a positive integer.
|
|
58212
|
+
*/
|
|
58213
|
+
400: unknown;
|
|
58214
|
+
/**
|
|
58215
|
+
* Authentication required.
|
|
58216
|
+
*/
|
|
58217
|
+
401: unknown;
|
|
58218
|
+
/**
|
|
58219
|
+
* FORBIDDEN: an embedded end user talks to an agent but never reconfigures the session it talks on, so it cannot change the agent version.
|
|
58220
|
+
*/
|
|
58221
|
+
403: unknown;
|
|
58222
|
+
/**
|
|
58223
|
+
* Session not found or not writable by this caller; AGENT_VERSION_NOT_FOUND when the agent has no such version.
|
|
58224
|
+
*/
|
|
58225
|
+
404: unknown;
|
|
58226
|
+
/**
|
|
58227
|
+
* SESSION_CONFLICT: the session is running a turn, so the version was not changed; retry once it is idle. SESSION_ARCHIVED: an archived session cannot be moved.
|
|
58228
|
+
*/
|
|
58229
|
+
409: unknown;
|
|
58230
|
+
/**
|
|
58231
|
+
* Agent service failed
|
|
58232
|
+
*/
|
|
58233
|
+
502: unknown;
|
|
58234
|
+
/**
|
|
58235
|
+
* Agent service unavailable
|
|
58236
|
+
*/
|
|
58237
|
+
503: unknown;
|
|
58238
|
+
};
|
|
58239
|
+
export type UpdateSessionAgentVersionResponses = {
|
|
58240
|
+
/**
|
|
58241
|
+
* The session, now on the requested version; an unchanged version answers the session as it stands and writes no event.
|
|
58242
|
+
*/
|
|
58243
|
+
200: {
|
|
58244
|
+
/**
|
|
58245
|
+
* Session id (sesn_...). Pass it as session_id in every session call.
|
|
58246
|
+
*/
|
|
58247
|
+
id: string;
|
|
58248
|
+
/**
|
|
58249
|
+
* Resolved `agent` definition for a `session`. Snapshot of the `agent` at
|
|
58250
|
+
* `session` creation time.
|
|
58251
|
+
*/
|
|
58252
|
+
agent: {
|
|
58253
|
+
/**
|
|
58254
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
58255
|
+
*/
|
|
58256
|
+
id: string;
|
|
58257
|
+
/**
|
|
58258
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
58259
|
+
*/
|
|
58260
|
+
description: null | string;
|
|
58261
|
+
/**
|
|
58262
|
+
* Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
|
|
58263
|
+
*/
|
|
58264
|
+
mcp_servers: Array<{
|
|
58265
|
+
/**
|
|
58266
|
+
* Streamable HTTP transport.
|
|
58267
|
+
*/
|
|
58268
|
+
type: 'url';
|
|
58269
|
+
/**
|
|
58270
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58271
|
+
*/
|
|
58272
|
+
name: string;
|
|
58273
|
+
/**
|
|
58274
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
58275
|
+
*/
|
|
58276
|
+
url: string;
|
|
58277
|
+
/**
|
|
58278
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
58279
|
+
*/
|
|
58280
|
+
headers?: {
|
|
58281
|
+
[key: string]: string;
|
|
58282
|
+
};
|
|
58283
|
+
/**
|
|
58284
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58285
|
+
*/
|
|
58286
|
+
timeout_ms?: number;
|
|
58287
|
+
} | {
|
|
58288
|
+
/**
|
|
58289
|
+
* Legacy SSE transport.
|
|
58290
|
+
*/
|
|
58291
|
+
type: 'sse';
|
|
58292
|
+
/**
|
|
58293
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58294
|
+
*/
|
|
58295
|
+
name: string;
|
|
58296
|
+
/**
|
|
58297
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
58298
|
+
*/
|
|
58299
|
+
url: string;
|
|
58300
|
+
/**
|
|
58301
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
58302
|
+
*/
|
|
58303
|
+
headers?: {
|
|
58304
|
+
[key: string]: string;
|
|
58305
|
+
};
|
|
58306
|
+
/**
|
|
58307
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58308
|
+
*/
|
|
58309
|
+
timeout_ms?: number;
|
|
58310
|
+
} | {
|
|
58311
|
+
/**
|
|
58312
|
+
* Run a command on the agent computer.
|
|
58313
|
+
*/
|
|
58314
|
+
type: 'stdio';
|
|
58315
|
+
/**
|
|
58316
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58317
|
+
*/
|
|
58318
|
+
name: string;
|
|
58319
|
+
/**
|
|
58320
|
+
* Executable command on the agent computer.
|
|
58321
|
+
*/
|
|
58322
|
+
command: string;
|
|
58323
|
+
/**
|
|
58324
|
+
* Command arguments; omitted means no arguments.
|
|
58325
|
+
*/
|
|
58326
|
+
args?: Array<string>;
|
|
58327
|
+
/**
|
|
58328
|
+
* Praxis extension: environment variables for the command on the agent computer.
|
|
58329
|
+
*/
|
|
58330
|
+
env?: {
|
|
58331
|
+
[key: string]: string;
|
|
58332
|
+
};
|
|
58333
|
+
/**
|
|
58334
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58335
|
+
*/
|
|
58336
|
+
timeout_ms?: number;
|
|
58337
|
+
}>;
|
|
58338
|
+
/**
|
|
58339
|
+
* Model identifier and configuration.
|
|
58340
|
+
*/
|
|
58341
|
+
model: {
|
|
58342
|
+
/**
|
|
58343
|
+
* 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.
|
|
58344
|
+
*/
|
|
58345
|
+
id: string;
|
|
58346
|
+
/**
|
|
58347
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
58348
|
+
* Messages call the session makes.
|
|
58349
|
+
*/
|
|
58350
|
+
effort?: {
|
|
58351
|
+
/**
|
|
58352
|
+
* Always `low`. Lowest reasoning effort of the supported levels.
|
|
58353
|
+
*/
|
|
58354
|
+
type: 'low';
|
|
58355
|
+
} | {
|
|
58356
|
+
/**
|
|
58357
|
+
* Always `medium`. Middle reasoning effort.
|
|
58358
|
+
*/
|
|
58359
|
+
type: 'medium';
|
|
58360
|
+
} | {
|
|
58361
|
+
/**
|
|
58362
|
+
* Always `high`. High reasoning effort.
|
|
58363
|
+
*/
|
|
58364
|
+
type: 'high';
|
|
58365
|
+
} | {
|
|
58366
|
+
/**
|
|
58367
|
+
* Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
|
|
58368
|
+
*/
|
|
58369
|
+
type: 'xhigh';
|
|
58370
|
+
} | {
|
|
58371
|
+
/**
|
|
58372
|
+
* Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
|
|
58373
|
+
*/
|
|
58374
|
+
type: 'max';
|
|
58375
|
+
};
|
|
58376
|
+
/**
|
|
58377
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
58378
|
+
* workspace's default_inference_geo.
|
|
58379
|
+
*/
|
|
58380
|
+
inference_geo?: string;
|
|
58381
|
+
/**
|
|
58382
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
58383
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
58384
|
+
* combinations are rejected at create time.
|
|
58385
|
+
*/
|
|
58386
|
+
speed?: 'standard' | 'fast';
|
|
58387
|
+
/**
|
|
58388
|
+
* Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
|
|
58389
|
+
*/
|
|
58390
|
+
settings?: {
|
|
58391
|
+
/**
|
|
58392
|
+
* Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
|
|
58393
|
+
*/
|
|
58394
|
+
reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
58395
|
+
/**
|
|
58396
|
+
* 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.
|
|
58397
|
+
*/
|
|
58398
|
+
max_output_tokens?: number;
|
|
58399
|
+
};
|
|
58400
|
+
};
|
|
58401
|
+
/**
|
|
58402
|
+
* Resolved coordinator topology with full agent definitions for each roster
|
|
58403
|
+
* member.
|
|
58404
|
+
*/
|
|
58405
|
+
multiagent: null | {
|
|
58406
|
+
/**
|
|
58407
|
+
* Full `agent` definitions the coordinator may spawn as session threads.
|
|
58408
|
+
*/
|
|
58409
|
+
agents: Array<{
|
|
58410
|
+
/**
|
|
58411
|
+
* The advisor model id.
|
|
58412
|
+
*/
|
|
58413
|
+
model: string;
|
|
58414
|
+
/**
|
|
58415
|
+
* Always `advisor`. An advisor whose model is consulted for advice in a separate thread (at most one per coordinator).
|
|
58416
|
+
*/
|
|
58417
|
+
type: 'advisor';
|
|
58418
|
+
} | {
|
|
58419
|
+
/**
|
|
58420
|
+
* Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
|
|
58421
|
+
*/
|
|
58422
|
+
id: string;
|
|
58423
|
+
/**
|
|
58424
|
+
* Free-text description of what the agent is for; null when none was set.
|
|
58425
|
+
*/
|
|
58426
|
+
description: null | string;
|
|
58427
|
+
/**
|
|
58428
|
+
* Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
|
|
58429
|
+
*/
|
|
58430
|
+
mcp_servers: Array<{
|
|
58431
|
+
/**
|
|
58432
|
+
* Streamable HTTP transport.
|
|
58433
|
+
*/
|
|
58434
|
+
type: 'url';
|
|
58435
|
+
/**
|
|
58436
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58437
|
+
*/
|
|
58438
|
+
name: string;
|
|
58439
|
+
/**
|
|
58440
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
58441
|
+
*/
|
|
58442
|
+
url: string;
|
|
58443
|
+
/**
|
|
58444
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
58445
|
+
*/
|
|
58446
|
+
headers?: {
|
|
58447
|
+
[key: string]: string;
|
|
58448
|
+
};
|
|
58449
|
+
/**
|
|
58450
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58451
|
+
*/
|
|
58452
|
+
timeout_ms?: number;
|
|
58453
|
+
} | {
|
|
58454
|
+
/**
|
|
58455
|
+
* Legacy SSE transport.
|
|
58456
|
+
*/
|
|
58457
|
+
type: 'sse';
|
|
58458
|
+
/**
|
|
58459
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58460
|
+
*/
|
|
58461
|
+
name: string;
|
|
58462
|
+
/**
|
|
58463
|
+
* HTTP or HTTPS MCP server endpoint.
|
|
58464
|
+
*/
|
|
58465
|
+
url: string;
|
|
58466
|
+
/**
|
|
58467
|
+
* Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
|
|
58468
|
+
*/
|
|
58469
|
+
headers?: {
|
|
58470
|
+
[key: string]: string;
|
|
58471
|
+
};
|
|
58472
|
+
/**
|
|
58473
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58474
|
+
*/
|
|
58475
|
+
timeout_ms?: number;
|
|
58476
|
+
} | {
|
|
58477
|
+
/**
|
|
58478
|
+
* Run a command on the agent computer.
|
|
58479
|
+
*/
|
|
58480
|
+
type: 'stdio';
|
|
58481
|
+
/**
|
|
58482
|
+
* Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
|
|
58483
|
+
*/
|
|
58484
|
+
name: string;
|
|
58485
|
+
/**
|
|
58486
|
+
* Executable command on the agent computer.
|
|
58487
|
+
*/
|
|
58488
|
+
command: string;
|
|
58489
|
+
/**
|
|
58490
|
+
* Command arguments; omitted means no arguments.
|
|
58491
|
+
*/
|
|
58492
|
+
args?: Array<string>;
|
|
58493
|
+
/**
|
|
58494
|
+
* Praxis extension: environment variables for the command on the agent computer.
|
|
58495
|
+
*/
|
|
58496
|
+
env?: {
|
|
58497
|
+
[key: string]: string;
|
|
58498
|
+
};
|
|
58499
|
+
/**
|
|
58500
|
+
* Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
|
|
58501
|
+
*/
|
|
58502
|
+
timeout_ms?: number;
|
|
58503
|
+
}>;
|
|
58504
|
+
/**
|
|
58505
|
+
* Model identifier and configuration.
|
|
58506
|
+
*/
|
|
58507
|
+
model: {
|
|
58508
|
+
/**
|
|
58509
|
+
* 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.
|
|
58510
|
+
*/
|
|
58511
|
+
id: string;
|
|
58512
|
+
/**
|
|
58513
|
+
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
58514
|
+
* Messages call the session makes.
|
|
58515
|
+
*/
|
|
58516
|
+
effort?: {
|
|
58517
|
+
/**
|
|
58518
|
+
* Always `low`. Lowest reasoning effort of the supported levels.
|
|
58519
|
+
*/
|
|
58520
|
+
type: 'low';
|
|
58521
|
+
} | {
|
|
58522
|
+
/**
|
|
58523
|
+
* Always `medium`. Middle reasoning effort.
|
|
58524
|
+
*/
|
|
58525
|
+
type: 'medium';
|
|
58526
|
+
} | {
|
|
58527
|
+
/**
|
|
58528
|
+
* Always `high`. High reasoning effort.
|
|
58529
|
+
*/
|
|
58530
|
+
type: 'high';
|
|
58531
|
+
} | {
|
|
58532
|
+
/**
|
|
58533
|
+
* Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
|
|
58534
|
+
*/
|
|
58535
|
+
type: 'xhigh';
|
|
58536
|
+
} | {
|
|
58537
|
+
/**
|
|
58538
|
+
* Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
|
|
58539
|
+
*/
|
|
58540
|
+
type: 'max';
|
|
58541
|
+
};
|
|
58542
|
+
/**
|
|
58543
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
58544
|
+
* workspace's default_inference_geo.
|
|
58545
|
+
*/
|
|
58546
|
+
inference_geo?: string;
|
|
58547
|
+
/**
|
|
58548
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
58549
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
58550
|
+
* combinations are rejected at create time.
|
|
58551
|
+
*/
|
|
58552
|
+
speed?: 'standard' | 'fast';
|
|
58553
|
+
};
|
|
58554
|
+
/**
|
|
58555
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
58556
|
+
*/
|
|
58557
|
+
name: string;
|
|
58558
|
+
/**
|
|
58559
|
+
* 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.
|
|
58560
|
+
*/
|
|
58561
|
+
skills: Array<{
|
|
58562
|
+
/**
|
|
58563
|
+
* Id of the skill to attach.
|
|
58564
|
+
*/
|
|
58565
|
+
skill_id: string;
|
|
58566
|
+
/**
|
|
58567
|
+
* Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
|
|
58568
|
+
*/
|
|
58569
|
+
type: 'anthropic';
|
|
58570
|
+
/**
|
|
58571
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
58572
|
+
*/
|
|
58573
|
+
version: string;
|
|
58574
|
+
} | {
|
|
58575
|
+
/**
|
|
58576
|
+
* Id of the skill to attach.
|
|
58577
|
+
*/
|
|
58578
|
+
skill_id: string;
|
|
58579
|
+
/**
|
|
58580
|
+
* Always `custom`. A skill created by you, identified by skill_id.
|
|
58581
|
+
*/
|
|
58582
|
+
type: 'custom';
|
|
58583
|
+
/**
|
|
58584
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
58585
|
+
*/
|
|
58586
|
+
version: string;
|
|
58587
|
+
}>;
|
|
58588
|
+
/**
|
|
58589
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
58590
|
+
*/
|
|
58591
|
+
system: null | string;
|
|
58592
|
+
/**
|
|
58593
|
+
* 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.
|
|
58594
|
+
*/
|
|
58595
|
+
tools: Array<{
|
|
58596
|
+
/**
|
|
58597
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
58598
|
+
*/
|
|
58599
|
+
configs: Array<{
|
|
58600
|
+
/**
|
|
58601
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58602
|
+
*/
|
|
58603
|
+
enabled: boolean;
|
|
58604
|
+
/**
|
|
58605
|
+
* Name of the native tool this entry configures.
|
|
58606
|
+
*/
|
|
58607
|
+
name: 'bash';
|
|
58608
|
+
/**
|
|
58609
|
+
* Permission policy for tool execution.
|
|
58610
|
+
*/
|
|
58611
|
+
permission_policy: {
|
|
58612
|
+
/**
|
|
58613
|
+
* Always `always_allow`. Calls run without asking.
|
|
58614
|
+
*/
|
|
58615
|
+
type: 'always_allow';
|
|
58616
|
+
} | {
|
|
58617
|
+
/**
|
|
58618
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58619
|
+
*/
|
|
58620
|
+
type: 'always_ask';
|
|
58621
|
+
} | {
|
|
58622
|
+
/**
|
|
58623
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58624
|
+
*/
|
|
58625
|
+
type: 'auto';
|
|
58626
|
+
};
|
|
58627
|
+
/**
|
|
58628
|
+
* Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
|
|
58629
|
+
*/
|
|
58630
|
+
type: 'bash';
|
|
58631
|
+
} | {
|
|
58632
|
+
/**
|
|
58633
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58634
|
+
*/
|
|
58635
|
+
enabled: boolean;
|
|
58636
|
+
/**
|
|
58637
|
+
* Name of the native tool this entry configures.
|
|
58638
|
+
*/
|
|
58639
|
+
name: 'edit';
|
|
58640
|
+
/**
|
|
58641
|
+
* Permission policy for tool execution.
|
|
58642
|
+
*/
|
|
58643
|
+
permission_policy: {
|
|
58644
|
+
/**
|
|
58645
|
+
* Always `always_allow`. Calls run without asking.
|
|
58646
|
+
*/
|
|
58647
|
+
type: 'always_allow';
|
|
58648
|
+
} | {
|
|
58649
|
+
/**
|
|
58650
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58651
|
+
*/
|
|
58652
|
+
type: 'always_ask';
|
|
58653
|
+
} | {
|
|
58654
|
+
/**
|
|
58655
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58656
|
+
*/
|
|
58657
|
+
type: 'auto';
|
|
58658
|
+
};
|
|
58659
|
+
/**
|
|
58660
|
+
* Always `edit`. Selects the edit tool, which changes an existing file.
|
|
58661
|
+
*/
|
|
58662
|
+
type: 'edit';
|
|
58663
|
+
} | {
|
|
58664
|
+
/**
|
|
58665
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58666
|
+
*/
|
|
58667
|
+
enabled: boolean;
|
|
58668
|
+
/**
|
|
58669
|
+
* Name of the native tool this entry configures.
|
|
58670
|
+
*/
|
|
58671
|
+
name: 'read';
|
|
58672
|
+
/**
|
|
58673
|
+
* Permission policy for tool execution.
|
|
58674
|
+
*/
|
|
58675
|
+
permission_policy: {
|
|
58676
|
+
/**
|
|
58677
|
+
* Always `always_allow`. Calls run without asking.
|
|
58678
|
+
*/
|
|
58679
|
+
type: 'always_allow';
|
|
58680
|
+
} | {
|
|
58681
|
+
/**
|
|
58682
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58683
|
+
*/
|
|
58684
|
+
type: 'always_ask';
|
|
58685
|
+
} | {
|
|
58686
|
+
/**
|
|
58687
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58688
|
+
*/
|
|
58689
|
+
type: 'auto';
|
|
58690
|
+
};
|
|
58691
|
+
/**
|
|
58692
|
+
* Always `read`. Selects the read tool, which reads a file.
|
|
58693
|
+
*/
|
|
58694
|
+
type: 'read';
|
|
58695
|
+
} | {
|
|
58696
|
+
/**
|
|
58697
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58698
|
+
*/
|
|
58699
|
+
enabled: boolean;
|
|
58700
|
+
/**
|
|
58701
|
+
* Name of the native tool this entry configures.
|
|
58702
|
+
*/
|
|
58703
|
+
name: 'write';
|
|
58704
|
+
/**
|
|
58705
|
+
* Permission policy for tool execution.
|
|
58706
|
+
*/
|
|
58707
|
+
permission_policy: {
|
|
58708
|
+
/**
|
|
58709
|
+
* Always `always_allow`. Calls run without asking.
|
|
58710
|
+
*/
|
|
58711
|
+
type: 'always_allow';
|
|
58712
|
+
} | {
|
|
58713
|
+
/**
|
|
58714
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58715
|
+
*/
|
|
58716
|
+
type: 'always_ask';
|
|
58717
|
+
} | {
|
|
58718
|
+
/**
|
|
58719
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58720
|
+
*/
|
|
58721
|
+
type: 'auto';
|
|
58722
|
+
};
|
|
58723
|
+
/**
|
|
58724
|
+
* Always `write`. Selects the write tool, which writes a file.
|
|
58725
|
+
*/
|
|
58726
|
+
type: 'write';
|
|
58727
|
+
} | {
|
|
58728
|
+
/**
|
|
58729
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58730
|
+
*/
|
|
58731
|
+
enabled: boolean;
|
|
58732
|
+
/**
|
|
58733
|
+
* Name of the native tool this entry configures.
|
|
58734
|
+
*/
|
|
58735
|
+
name: 'glob';
|
|
58736
|
+
/**
|
|
58737
|
+
* Permission policy for tool execution.
|
|
58738
|
+
*/
|
|
58739
|
+
permission_policy: {
|
|
58740
|
+
/**
|
|
58741
|
+
* Always `always_allow`. Calls run without asking.
|
|
58742
|
+
*/
|
|
58743
|
+
type: 'always_allow';
|
|
58744
|
+
} | {
|
|
58745
|
+
/**
|
|
58746
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58747
|
+
*/
|
|
58748
|
+
type: 'always_ask';
|
|
58749
|
+
} | {
|
|
58750
|
+
/**
|
|
58751
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58752
|
+
*/
|
|
58753
|
+
type: 'auto';
|
|
58754
|
+
};
|
|
58755
|
+
/**
|
|
58756
|
+
* Always `glob`. Selects the glob tool, which finds files by name pattern.
|
|
58757
|
+
*/
|
|
58758
|
+
type: 'glob';
|
|
58759
|
+
} | {
|
|
58760
|
+
/**
|
|
58761
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58762
|
+
*/
|
|
58763
|
+
enabled: boolean;
|
|
58764
|
+
/**
|
|
58765
|
+
* Name of the native tool this entry configures.
|
|
58766
|
+
*/
|
|
58767
|
+
name: 'grep';
|
|
58768
|
+
/**
|
|
58769
|
+
* Permission policy for tool execution.
|
|
58770
|
+
*/
|
|
58771
|
+
permission_policy: {
|
|
58772
|
+
/**
|
|
58773
|
+
* Always `always_allow`. Calls run without asking.
|
|
58774
|
+
*/
|
|
58775
|
+
type: 'always_allow';
|
|
58776
|
+
} | {
|
|
58777
|
+
/**
|
|
58778
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58779
|
+
*/
|
|
58780
|
+
type: 'always_ask';
|
|
58781
|
+
} | {
|
|
58782
|
+
/**
|
|
58783
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58784
|
+
*/
|
|
58785
|
+
type: 'auto';
|
|
58786
|
+
};
|
|
58787
|
+
/**
|
|
58788
|
+
* Always `grep`. Selects the grep tool, which searches file contents.
|
|
58789
|
+
*/
|
|
58790
|
+
type: 'grep';
|
|
58791
|
+
} | {
|
|
58792
|
+
/**
|
|
58793
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58794
|
+
*/
|
|
58795
|
+
enabled: boolean;
|
|
58796
|
+
/**
|
|
58797
|
+
* Name of the native tool this entry configures.
|
|
58798
|
+
*/
|
|
58799
|
+
name: 'web_fetch';
|
|
58800
|
+
/**
|
|
58801
|
+
* Permission policy for tool execution.
|
|
58802
|
+
*/
|
|
58803
|
+
permission_policy: {
|
|
58804
|
+
/**
|
|
58805
|
+
* Always `always_allow`. Calls run without asking.
|
|
58806
|
+
*/
|
|
58807
|
+
type: 'always_allow';
|
|
58808
|
+
} | {
|
|
58809
|
+
/**
|
|
58810
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58811
|
+
*/
|
|
58812
|
+
type: 'always_ask';
|
|
58813
|
+
} | {
|
|
58814
|
+
/**
|
|
58815
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58816
|
+
*/
|
|
58817
|
+
type: 'auto';
|
|
58818
|
+
};
|
|
58819
|
+
/**
|
|
58820
|
+
* Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
|
|
58821
|
+
*/
|
|
58822
|
+
type: 'web_fetch';
|
|
58823
|
+
/**
|
|
58824
|
+
* 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.
|
|
58825
|
+
*/
|
|
58826
|
+
allowed_domains?: Array<string>;
|
|
58827
|
+
/**
|
|
58828
|
+
* 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.
|
|
58829
|
+
*/
|
|
58830
|
+
blocked_domains?: Array<string>;
|
|
58831
|
+
/**
|
|
58832
|
+
* 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.
|
|
58833
|
+
*/
|
|
58834
|
+
max_content_tokens?: null | number;
|
|
58835
|
+
} | {
|
|
58836
|
+
/**
|
|
58837
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58838
|
+
*/
|
|
58839
|
+
enabled: boolean;
|
|
58840
|
+
/**
|
|
58841
|
+
* Name of the native tool this entry configures.
|
|
58842
|
+
*/
|
|
58843
|
+
name: 'web_search';
|
|
58844
|
+
/**
|
|
58845
|
+
* Permission policy for tool execution.
|
|
58846
|
+
*/
|
|
58847
|
+
permission_policy: {
|
|
58848
|
+
/**
|
|
58849
|
+
* Always `always_allow`. Calls run without asking.
|
|
58850
|
+
*/
|
|
58851
|
+
type: 'always_allow';
|
|
58852
|
+
} | {
|
|
58853
|
+
/**
|
|
58854
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58855
|
+
*/
|
|
58856
|
+
type: 'always_ask';
|
|
58857
|
+
} | {
|
|
58858
|
+
/**
|
|
58859
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58860
|
+
*/
|
|
58861
|
+
type: 'auto';
|
|
58862
|
+
};
|
|
58863
|
+
/**
|
|
58864
|
+
* Always `web_search`. Selects the web_search tool, which searches the web.
|
|
58865
|
+
*/
|
|
58866
|
+
type: 'web_search';
|
|
58867
|
+
/**
|
|
58868
|
+
* 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.
|
|
58869
|
+
*/
|
|
58870
|
+
allowed_domains?: Array<string>;
|
|
58871
|
+
/**
|
|
58872
|
+
* 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.
|
|
58873
|
+
*/
|
|
58874
|
+
blocked_domains?: Array<string>;
|
|
58875
|
+
/**
|
|
58876
|
+
* Approximate user location for search result localization.
|
|
58877
|
+
*/
|
|
58878
|
+
user_location?: null | {
|
|
58879
|
+
/**
|
|
58880
|
+
* Location precision. Only "approximate" is supported.
|
|
58881
|
+
*/
|
|
58882
|
+
type: 'approximate';
|
|
58883
|
+
/**
|
|
58884
|
+
* City name.
|
|
58885
|
+
*/
|
|
58886
|
+
city?: null | string;
|
|
58887
|
+
/**
|
|
58888
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
58889
|
+
*/
|
|
58890
|
+
country?: null | string;
|
|
58891
|
+
/**
|
|
58892
|
+
* Region or state name.
|
|
58893
|
+
*/
|
|
58894
|
+
region?: null | string;
|
|
58895
|
+
/**
|
|
58896
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
58897
|
+
*/
|
|
58898
|
+
timezone?: null | string;
|
|
58899
|
+
};
|
|
58900
|
+
} | {
|
|
58901
|
+
/**
|
|
58902
|
+
* Name of the native tool this entry configures.
|
|
58903
|
+
*/
|
|
58904
|
+
name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
|
|
58905
|
+
/**
|
|
58906
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58907
|
+
*/
|
|
58908
|
+
enabled: boolean;
|
|
58909
|
+
/**
|
|
58910
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
58911
|
+
*/
|
|
58912
|
+
permission_policy: {
|
|
58913
|
+
/**
|
|
58914
|
+
* Permission policy kind.
|
|
58915
|
+
*/
|
|
58916
|
+
type: 'always_allow' | 'always_ask';
|
|
58917
|
+
};
|
|
58918
|
+
}>;
|
|
58919
|
+
/**
|
|
58920
|
+
* Resolved default configuration for agent tools.
|
|
58921
|
+
*/
|
|
58922
|
+
default_config: {
|
|
58923
|
+
/**
|
|
58924
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
58925
|
+
*/
|
|
58926
|
+
enabled: boolean;
|
|
58927
|
+
/**
|
|
58928
|
+
* Permission policy for tool execution.
|
|
58929
|
+
*/
|
|
58930
|
+
permission_policy: {
|
|
58931
|
+
/**
|
|
58932
|
+
* Always `always_allow`. Calls run without asking.
|
|
58933
|
+
*/
|
|
58934
|
+
type: 'always_allow';
|
|
58935
|
+
} | {
|
|
58936
|
+
/**
|
|
58937
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
58938
|
+
*/
|
|
58939
|
+
type: 'always_ask';
|
|
58940
|
+
} | {
|
|
58941
|
+
/**
|
|
58942
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
58943
|
+
*/
|
|
58944
|
+
type: 'auto';
|
|
58945
|
+
};
|
|
58946
|
+
};
|
|
58947
|
+
/**
|
|
58948
|
+
* 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).
|
|
58949
|
+
*/
|
|
58950
|
+
type: 'agent_toolset_20260401';
|
|
58951
|
+
} | {
|
|
58952
|
+
/**
|
|
58953
|
+
* Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
|
|
58954
|
+
*/
|
|
58955
|
+
type: 'mcp_toolset';
|
|
58956
|
+
/**
|
|
58957
|
+
* Name of the MCP server in mcp_servers whose tools this entry exposes.
|
|
58958
|
+
*/
|
|
58959
|
+
mcp_server_name: string;
|
|
58960
|
+
/**
|
|
58961
|
+
* Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
|
|
58962
|
+
*/
|
|
58963
|
+
default_config?: {
|
|
58964
|
+
/**
|
|
58965
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
58966
|
+
*/
|
|
58967
|
+
enabled?: boolean | null;
|
|
58968
|
+
/**
|
|
58969
|
+
* Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
|
|
58970
|
+
*/
|
|
58971
|
+
permission_policy?: null | {
|
|
58972
|
+
/**
|
|
58973
|
+
* Permission policy kind.
|
|
58974
|
+
*/
|
|
58975
|
+
type: 'always_allow' | 'always_ask';
|
|
58976
|
+
};
|
|
58977
|
+
} | null;
|
|
58978
|
+
/**
|
|
58979
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
58980
|
+
*/
|
|
58981
|
+
configs?: Array<{
|
|
58982
|
+
/**
|
|
58983
|
+
* Bare tool name reported by the MCP server.
|
|
58984
|
+
*/
|
|
58985
|
+
name: string;
|
|
58986
|
+
/**
|
|
58987
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
58988
|
+
*/
|
|
58989
|
+
enabled?: boolean | null;
|
|
58990
|
+
/**
|
|
58991
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
58992
|
+
*/
|
|
58993
|
+
permission_policy?: null | {
|
|
58994
|
+
/**
|
|
58995
|
+
* Permission policy kind.
|
|
58996
|
+
*/
|
|
58997
|
+
type: 'always_allow' | 'always_ask';
|
|
58998
|
+
};
|
|
58999
|
+
}> | null;
|
|
59000
|
+
} | {
|
|
59001
|
+
/**
|
|
59002
|
+
* What the custom tool does and when the model should call it.
|
|
59003
|
+
*/
|
|
59004
|
+
description: string;
|
|
59005
|
+
/**
|
|
59006
|
+
* JSON Schema for custom tool input parameters.
|
|
59007
|
+
*/
|
|
59008
|
+
input_schema: {
|
|
59009
|
+
/**
|
|
59010
|
+
* Always `object`. The input is a JSON object.
|
|
59011
|
+
*/
|
|
59012
|
+
type: 'object';
|
|
59013
|
+
/**
|
|
59014
|
+
* JSON Schema of each input property, keyed by property name.
|
|
59015
|
+
*/
|
|
59016
|
+
properties?: null | {
|
|
59017
|
+
[key: string]: unknown;
|
|
59018
|
+
};
|
|
59019
|
+
/**
|
|
59020
|
+
* Names of the input properties the model must supply.
|
|
59021
|
+
*/
|
|
59022
|
+
required?: null | Array<string>;
|
|
59023
|
+
[key: string]: unknown;
|
|
59024
|
+
};
|
|
59025
|
+
/**
|
|
59026
|
+
* Name of the custom tool, as the model sees and calls it.
|
|
59027
|
+
*/
|
|
59028
|
+
name: string;
|
|
59029
|
+
/**
|
|
59030
|
+
* Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
|
|
59031
|
+
*/
|
|
59032
|
+
type: 'custom';
|
|
59033
|
+
}>;
|
|
59034
|
+
/**
|
|
59035
|
+
* Always `agent`. A roster member that refers to an agent by id and pinned version.
|
|
59036
|
+
*/
|
|
59037
|
+
type: 'agent';
|
|
59038
|
+
/**
|
|
59039
|
+
* 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.
|
|
59040
|
+
*/
|
|
59041
|
+
version: number;
|
|
59042
|
+
}>;
|
|
59043
|
+
/**
|
|
59044
|
+
* Always `coordinator`. The agent coordinates the roster in agents and can delegate to its members.
|
|
59045
|
+
*/
|
|
59046
|
+
type: 'coordinator';
|
|
59047
|
+
};
|
|
59048
|
+
/**
|
|
59049
|
+
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
59050
|
+
*/
|
|
59051
|
+
name: string;
|
|
59052
|
+
/**
|
|
59053
|
+
* 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.
|
|
59054
|
+
*/
|
|
59055
|
+
skills: Array<{
|
|
59056
|
+
/**
|
|
59057
|
+
* Id of the skill to attach.
|
|
59058
|
+
*/
|
|
59059
|
+
skill_id: string;
|
|
59060
|
+
/**
|
|
59061
|
+
* Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
|
|
59062
|
+
*/
|
|
59063
|
+
type: 'anthropic';
|
|
59064
|
+
/**
|
|
59065
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
59066
|
+
*/
|
|
59067
|
+
version: string;
|
|
59068
|
+
} | {
|
|
59069
|
+
/**
|
|
59070
|
+
* Id of the skill to attach.
|
|
59071
|
+
*/
|
|
59072
|
+
skill_id: string;
|
|
59073
|
+
/**
|
|
59074
|
+
* Always `custom`. A skill created by you, identified by skill_id.
|
|
59075
|
+
*/
|
|
59076
|
+
type: 'custom';
|
|
59077
|
+
/**
|
|
59078
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
59079
|
+
*/
|
|
59080
|
+
version: string;
|
|
59081
|
+
}>;
|
|
59082
|
+
/**
|
|
59083
|
+
* System prompt given to the model at the start of every session of this agent; null when none was set.
|
|
59084
|
+
*/
|
|
59085
|
+
system: null | string;
|
|
59086
|
+
/**
|
|
59087
|
+
* 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.
|
|
59088
|
+
*/
|
|
59089
|
+
tools: Array<{
|
|
59090
|
+
/**
|
|
59091
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
59092
|
+
*/
|
|
59093
|
+
configs: Array<{
|
|
59094
|
+
/**
|
|
59095
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59096
|
+
*/
|
|
59097
|
+
enabled: boolean;
|
|
59098
|
+
/**
|
|
59099
|
+
* Name of the native tool this entry configures.
|
|
59100
|
+
*/
|
|
59101
|
+
name: 'bash';
|
|
59102
|
+
/**
|
|
59103
|
+
* Permission policy for tool execution.
|
|
59104
|
+
*/
|
|
59105
|
+
permission_policy: {
|
|
59106
|
+
/**
|
|
59107
|
+
* Always `always_allow`. Calls run without asking.
|
|
59108
|
+
*/
|
|
59109
|
+
type: 'always_allow';
|
|
59110
|
+
} | {
|
|
59111
|
+
/**
|
|
59112
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59113
|
+
*/
|
|
59114
|
+
type: 'always_ask';
|
|
59115
|
+
} | {
|
|
59116
|
+
/**
|
|
59117
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59118
|
+
*/
|
|
59119
|
+
type: 'auto';
|
|
59120
|
+
};
|
|
59121
|
+
/**
|
|
59122
|
+
* Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
|
|
59123
|
+
*/
|
|
59124
|
+
type: 'bash';
|
|
59125
|
+
} | {
|
|
59126
|
+
/**
|
|
59127
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59128
|
+
*/
|
|
59129
|
+
enabled: boolean;
|
|
59130
|
+
/**
|
|
59131
|
+
* Name of the native tool this entry configures.
|
|
59132
|
+
*/
|
|
59133
|
+
name: 'edit';
|
|
59134
|
+
/**
|
|
59135
|
+
* Permission policy for tool execution.
|
|
59136
|
+
*/
|
|
59137
|
+
permission_policy: {
|
|
59138
|
+
/**
|
|
59139
|
+
* Always `always_allow`. Calls run without asking.
|
|
59140
|
+
*/
|
|
59141
|
+
type: 'always_allow';
|
|
59142
|
+
} | {
|
|
59143
|
+
/**
|
|
59144
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59145
|
+
*/
|
|
59146
|
+
type: 'always_ask';
|
|
59147
|
+
} | {
|
|
59148
|
+
/**
|
|
59149
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59150
|
+
*/
|
|
59151
|
+
type: 'auto';
|
|
59152
|
+
};
|
|
59153
|
+
/**
|
|
59154
|
+
* Always `edit`. Selects the edit tool, which changes an existing file.
|
|
59155
|
+
*/
|
|
59156
|
+
type: 'edit';
|
|
59157
|
+
} | {
|
|
59158
|
+
/**
|
|
59159
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59160
|
+
*/
|
|
59161
|
+
enabled: boolean;
|
|
59162
|
+
/**
|
|
59163
|
+
* Name of the native tool this entry configures.
|
|
59164
|
+
*/
|
|
59165
|
+
name: 'read';
|
|
59166
|
+
/**
|
|
59167
|
+
* Permission policy for tool execution.
|
|
59168
|
+
*/
|
|
59169
|
+
permission_policy: {
|
|
59170
|
+
/**
|
|
59171
|
+
* Always `always_allow`. Calls run without asking.
|
|
59172
|
+
*/
|
|
59173
|
+
type: 'always_allow';
|
|
59174
|
+
} | {
|
|
59175
|
+
/**
|
|
59176
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59177
|
+
*/
|
|
59178
|
+
type: 'always_ask';
|
|
59179
|
+
} | {
|
|
59180
|
+
/**
|
|
59181
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59182
|
+
*/
|
|
59183
|
+
type: 'auto';
|
|
59184
|
+
};
|
|
59185
|
+
/**
|
|
59186
|
+
* Always `read`. Selects the read tool, which reads a file.
|
|
59187
|
+
*/
|
|
59188
|
+
type: 'read';
|
|
59189
|
+
} | {
|
|
59190
|
+
/**
|
|
59191
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59192
|
+
*/
|
|
59193
|
+
enabled: boolean;
|
|
59194
|
+
/**
|
|
59195
|
+
* Name of the native tool this entry configures.
|
|
59196
|
+
*/
|
|
59197
|
+
name: 'write';
|
|
59198
|
+
/**
|
|
59199
|
+
* Permission policy for tool execution.
|
|
59200
|
+
*/
|
|
59201
|
+
permission_policy: {
|
|
59202
|
+
/**
|
|
59203
|
+
* Always `always_allow`. Calls run without asking.
|
|
59204
|
+
*/
|
|
59205
|
+
type: 'always_allow';
|
|
59206
|
+
} | {
|
|
59207
|
+
/**
|
|
59208
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59209
|
+
*/
|
|
59210
|
+
type: 'always_ask';
|
|
59211
|
+
} | {
|
|
59212
|
+
/**
|
|
59213
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59214
|
+
*/
|
|
59215
|
+
type: 'auto';
|
|
59216
|
+
};
|
|
59217
|
+
/**
|
|
59218
|
+
* Always `write`. Selects the write tool, which writes a file.
|
|
59219
|
+
*/
|
|
59220
|
+
type: 'write';
|
|
59221
|
+
} | {
|
|
59222
|
+
/**
|
|
59223
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59224
|
+
*/
|
|
59225
|
+
enabled: boolean;
|
|
59226
|
+
/**
|
|
59227
|
+
* Name of the native tool this entry configures.
|
|
59228
|
+
*/
|
|
59229
|
+
name: 'glob';
|
|
59230
|
+
/**
|
|
59231
|
+
* Permission policy for tool execution.
|
|
59232
|
+
*/
|
|
59233
|
+
permission_policy: {
|
|
59234
|
+
/**
|
|
59235
|
+
* Always `always_allow`. Calls run without asking.
|
|
59236
|
+
*/
|
|
59237
|
+
type: 'always_allow';
|
|
59238
|
+
} | {
|
|
59239
|
+
/**
|
|
59240
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59241
|
+
*/
|
|
59242
|
+
type: 'always_ask';
|
|
59243
|
+
} | {
|
|
59244
|
+
/**
|
|
59245
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59246
|
+
*/
|
|
59247
|
+
type: 'auto';
|
|
59248
|
+
};
|
|
59249
|
+
/**
|
|
59250
|
+
* Always `glob`. Selects the glob tool, which finds files by name pattern.
|
|
59251
|
+
*/
|
|
59252
|
+
type: 'glob';
|
|
59253
|
+
} | {
|
|
59254
|
+
/**
|
|
59255
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59256
|
+
*/
|
|
59257
|
+
enabled: boolean;
|
|
59258
|
+
/**
|
|
59259
|
+
* Name of the native tool this entry configures.
|
|
59260
|
+
*/
|
|
59261
|
+
name: 'grep';
|
|
59262
|
+
/**
|
|
59263
|
+
* Permission policy for tool execution.
|
|
59264
|
+
*/
|
|
59265
|
+
permission_policy: {
|
|
59266
|
+
/**
|
|
59267
|
+
* Always `always_allow`. Calls run without asking.
|
|
59268
|
+
*/
|
|
59269
|
+
type: 'always_allow';
|
|
59270
|
+
} | {
|
|
59271
|
+
/**
|
|
59272
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59273
|
+
*/
|
|
59274
|
+
type: 'always_ask';
|
|
59275
|
+
} | {
|
|
59276
|
+
/**
|
|
59277
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59278
|
+
*/
|
|
59279
|
+
type: 'auto';
|
|
59280
|
+
};
|
|
59281
|
+
/**
|
|
59282
|
+
* Always `grep`. Selects the grep tool, which searches file contents.
|
|
59283
|
+
*/
|
|
59284
|
+
type: 'grep';
|
|
59285
|
+
} | {
|
|
59286
|
+
/**
|
|
59287
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59288
|
+
*/
|
|
59289
|
+
enabled: boolean;
|
|
59290
|
+
/**
|
|
59291
|
+
* Name of the native tool this entry configures.
|
|
59292
|
+
*/
|
|
59293
|
+
name: 'web_fetch';
|
|
59294
|
+
/**
|
|
59295
|
+
* Permission policy for tool execution.
|
|
59296
|
+
*/
|
|
59297
|
+
permission_policy: {
|
|
59298
|
+
/**
|
|
59299
|
+
* Always `always_allow`. Calls run without asking.
|
|
59300
|
+
*/
|
|
59301
|
+
type: 'always_allow';
|
|
59302
|
+
} | {
|
|
59303
|
+
/**
|
|
59304
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59305
|
+
*/
|
|
59306
|
+
type: 'always_ask';
|
|
59307
|
+
} | {
|
|
59308
|
+
/**
|
|
59309
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59310
|
+
*/
|
|
59311
|
+
type: 'auto';
|
|
59312
|
+
};
|
|
59313
|
+
/**
|
|
59314
|
+
* Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
|
|
59315
|
+
*/
|
|
59316
|
+
type: 'web_fetch';
|
|
59317
|
+
/**
|
|
59318
|
+
* 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.
|
|
59319
|
+
*/
|
|
59320
|
+
allowed_domains?: Array<string>;
|
|
59321
|
+
/**
|
|
59322
|
+
* 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.
|
|
59323
|
+
*/
|
|
59324
|
+
blocked_domains?: Array<string>;
|
|
59325
|
+
/**
|
|
59326
|
+
* 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.
|
|
59327
|
+
*/
|
|
59328
|
+
max_content_tokens?: null | number;
|
|
59329
|
+
} | {
|
|
59330
|
+
/**
|
|
59331
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59332
|
+
*/
|
|
59333
|
+
enabled: boolean;
|
|
59334
|
+
/**
|
|
59335
|
+
* Name of the native tool this entry configures.
|
|
59336
|
+
*/
|
|
59337
|
+
name: 'web_search';
|
|
59338
|
+
/**
|
|
59339
|
+
* Permission policy for tool execution.
|
|
59340
|
+
*/
|
|
59341
|
+
permission_policy: {
|
|
59342
|
+
/**
|
|
59343
|
+
* Always `always_allow`. Calls run without asking.
|
|
59344
|
+
*/
|
|
59345
|
+
type: 'always_allow';
|
|
59346
|
+
} | {
|
|
59347
|
+
/**
|
|
59348
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59349
|
+
*/
|
|
59350
|
+
type: 'always_ask';
|
|
59351
|
+
} | {
|
|
59352
|
+
/**
|
|
59353
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59354
|
+
*/
|
|
59355
|
+
type: 'auto';
|
|
59356
|
+
};
|
|
59357
|
+
/**
|
|
59358
|
+
* Always `web_search`. Selects the web_search tool, which searches the web.
|
|
59359
|
+
*/
|
|
59360
|
+
type: 'web_search';
|
|
59361
|
+
/**
|
|
59362
|
+
* 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.
|
|
59363
|
+
*/
|
|
59364
|
+
allowed_domains?: Array<string>;
|
|
59365
|
+
/**
|
|
59366
|
+
* 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.
|
|
59367
|
+
*/
|
|
59368
|
+
blocked_domains?: Array<string>;
|
|
59369
|
+
/**
|
|
59370
|
+
* Approximate user location for search result localization.
|
|
59371
|
+
*/
|
|
59372
|
+
user_location?: null | {
|
|
59373
|
+
/**
|
|
59374
|
+
* Location precision. Only "approximate" is supported.
|
|
59375
|
+
*/
|
|
59376
|
+
type: 'approximate';
|
|
59377
|
+
/**
|
|
59378
|
+
* City name.
|
|
59379
|
+
*/
|
|
59380
|
+
city?: null | string;
|
|
59381
|
+
/**
|
|
59382
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
59383
|
+
*/
|
|
59384
|
+
country?: null | string;
|
|
59385
|
+
/**
|
|
59386
|
+
* Region or state name.
|
|
59387
|
+
*/
|
|
59388
|
+
region?: null | string;
|
|
59389
|
+
/**
|
|
59390
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
59391
|
+
*/
|
|
59392
|
+
timezone?: null | string;
|
|
59393
|
+
};
|
|
59394
|
+
} | {
|
|
59395
|
+
/**
|
|
59396
|
+
* Name of the native tool this entry configures.
|
|
59397
|
+
*/
|
|
59398
|
+
name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
|
|
59399
|
+
/**
|
|
59400
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59401
|
+
*/
|
|
59402
|
+
enabled: boolean;
|
|
59403
|
+
/**
|
|
59404
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
59405
|
+
*/
|
|
59406
|
+
permission_policy: {
|
|
59407
|
+
/**
|
|
59408
|
+
* Permission policy kind.
|
|
59409
|
+
*/
|
|
59410
|
+
type: 'always_allow' | 'always_ask';
|
|
59411
|
+
};
|
|
59412
|
+
}>;
|
|
59413
|
+
/**
|
|
59414
|
+
* Resolved default configuration for agent tools.
|
|
59415
|
+
*/
|
|
59416
|
+
default_config: {
|
|
59417
|
+
/**
|
|
59418
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
59419
|
+
*/
|
|
59420
|
+
enabled: boolean;
|
|
59421
|
+
/**
|
|
59422
|
+
* Permission policy for tool execution.
|
|
59423
|
+
*/
|
|
59424
|
+
permission_policy: {
|
|
59425
|
+
/**
|
|
59426
|
+
* Always `always_allow`. Calls run without asking.
|
|
59427
|
+
*/
|
|
59428
|
+
type: 'always_allow';
|
|
59429
|
+
} | {
|
|
59430
|
+
/**
|
|
59431
|
+
* Always `always_ask`. Calls wait for user.tool_confirmation before running.
|
|
59432
|
+
*/
|
|
59433
|
+
type: 'always_ask';
|
|
59434
|
+
} | {
|
|
59435
|
+
/**
|
|
59436
|
+
* Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
|
|
59437
|
+
*/
|
|
59438
|
+
type: 'auto';
|
|
59439
|
+
};
|
|
59440
|
+
};
|
|
59441
|
+
/**
|
|
59442
|
+
* 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).
|
|
59443
|
+
*/
|
|
59444
|
+
type: 'agent_toolset_20260401';
|
|
59445
|
+
} | {
|
|
59446
|
+
/**
|
|
59447
|
+
* Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
|
|
59448
|
+
*/
|
|
59449
|
+
type: 'mcp_toolset';
|
|
59450
|
+
/**
|
|
59451
|
+
* Name of the MCP server in mcp_servers whose tools this entry exposes.
|
|
59452
|
+
*/
|
|
59453
|
+
mcp_server_name: string;
|
|
59454
|
+
/**
|
|
59455
|
+
* Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
|
|
59456
|
+
*/
|
|
59457
|
+
default_config?: {
|
|
59458
|
+
/**
|
|
59459
|
+
* Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
|
|
59460
|
+
*/
|
|
59461
|
+
enabled?: boolean | null;
|
|
59462
|
+
/**
|
|
59463
|
+
* Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
|
|
59464
|
+
*/
|
|
59465
|
+
permission_policy?: null | {
|
|
59466
|
+
/**
|
|
59467
|
+
* Permission policy kind.
|
|
59468
|
+
*/
|
|
59469
|
+
type: 'always_allow' | 'always_ask';
|
|
59470
|
+
};
|
|
59471
|
+
} | null;
|
|
59472
|
+
/**
|
|
59473
|
+
* Per-tool settings that override default_config. Tools that are not listed follow default_config.
|
|
59474
|
+
*/
|
|
59475
|
+
configs?: Array<{
|
|
59476
|
+
/**
|
|
59477
|
+
* Bare tool name reported by the MCP server.
|
|
59478
|
+
*/
|
|
59479
|
+
name: string;
|
|
59480
|
+
/**
|
|
59481
|
+
* Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
|
|
59482
|
+
*/
|
|
59483
|
+
enabled?: boolean | null;
|
|
59484
|
+
/**
|
|
59485
|
+
* Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
|
|
59486
|
+
*/
|
|
59487
|
+
permission_policy?: null | {
|
|
59488
|
+
/**
|
|
59489
|
+
* Permission policy kind.
|
|
59490
|
+
*/
|
|
59491
|
+
type: 'always_allow' | 'always_ask';
|
|
59492
|
+
};
|
|
59493
|
+
}> | null;
|
|
59494
|
+
} | {
|
|
59495
|
+
/**
|
|
59496
|
+
* What the custom tool does and when the model should call it.
|
|
59497
|
+
*/
|
|
59498
|
+
description: string;
|
|
59499
|
+
/**
|
|
59500
|
+
* JSON Schema for custom tool input parameters.
|
|
59501
|
+
*/
|
|
59502
|
+
input_schema: {
|
|
59503
|
+
/**
|
|
59504
|
+
* Always `object`. The input is a JSON object.
|
|
59505
|
+
*/
|
|
59506
|
+
type: 'object';
|
|
59507
|
+
/**
|
|
59508
|
+
* JSON Schema of each input property, keyed by property name.
|
|
59509
|
+
*/
|
|
59510
|
+
properties?: null | {
|
|
59511
|
+
[key: string]: unknown;
|
|
59512
|
+
};
|
|
59513
|
+
/**
|
|
59514
|
+
* Names of the input properties the model must supply.
|
|
59515
|
+
*/
|
|
59516
|
+
required?: null | Array<string>;
|
|
59517
|
+
[key: string]: unknown;
|
|
59518
|
+
};
|
|
59519
|
+
/**
|
|
59520
|
+
* Name of the custom tool, as the model sees and calls it.
|
|
59521
|
+
*/
|
|
59522
|
+
name: string;
|
|
59523
|
+
/**
|
|
59524
|
+
* Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
|
|
59525
|
+
*/
|
|
59526
|
+
type: 'custom';
|
|
59527
|
+
}>;
|
|
59528
|
+
/**
|
|
59529
|
+
* Always `agent`. An agent definition.
|
|
59530
|
+
*/
|
|
59531
|
+
type: 'agent';
|
|
59532
|
+
/**
|
|
59533
|
+
* 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.
|
|
59534
|
+
*/
|
|
59535
|
+
version: number;
|
|
59536
|
+
};
|
|
59537
|
+
/**
|
|
59538
|
+
* A timestamp in RFC 3339 format
|
|
59539
|
+
*/
|
|
59540
|
+
archived_at: null | string;
|
|
59541
|
+
/**
|
|
59542
|
+
* A hard spend ceiling. The session stops issuing new model requests once the
|
|
59543
|
+
* tracked list cost reaches `max_list_cost`.
|
|
59544
|
+
*/
|
|
59545
|
+
budget: null | {
|
|
59546
|
+
/**
|
|
59547
|
+
* A monetary amount in a specific currency.
|
|
59548
|
+
*/
|
|
59549
|
+
max_list_cost: {
|
|
59550
|
+
/**
|
|
59551
|
+
* Amount in minor units of the currency, as an integer decimal string with no
|
|
59552
|
+
* leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
|
|
59553
|
+
* number so no float rounding is ever applied.
|
|
59554
|
+
*/
|
|
59555
|
+
amount: string;
|
|
59556
|
+
/**
|
|
59557
|
+
* Uppercase ISO-4217 currency code. `USD` is the only currency currently
|
|
59558
|
+
* supported; the accepted set is closed and grows only when a new currency is
|
|
59559
|
+
* priced.
|
|
59560
|
+
*/
|
|
59561
|
+
currency: 'USD';
|
|
59562
|
+
};
|
|
59563
|
+
/**
|
|
59564
|
+
* Always `limit`. A spending limit.
|
|
59565
|
+
*/
|
|
59566
|
+
type: 'limit';
|
|
59567
|
+
};
|
|
59568
|
+
/**
|
|
59569
|
+
* A timestamp in RFC 3339 format
|
|
59570
|
+
*/
|
|
59571
|
+
created_at: string;
|
|
59572
|
+
/**
|
|
59573
|
+
* 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.
|
|
59574
|
+
*/
|
|
59575
|
+
environment_id?: string;
|
|
59576
|
+
/**
|
|
59577
|
+
* Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
|
|
59578
|
+
*/
|
|
59579
|
+
metadata: {
|
|
59580
|
+
[key: string]: string;
|
|
59581
|
+
};
|
|
59582
|
+
/**
|
|
59583
|
+
* Per-outcome evaluation state. One entry per `define_outcome` event sent to the
|
|
59584
|
+
* session.
|
|
59585
|
+
*/
|
|
59586
|
+
outcome_evaluations: Array<{
|
|
59587
|
+
/**
|
|
59588
|
+
* A timestamp in RFC 3339 format
|
|
59589
|
+
*/
|
|
59590
|
+
completed_at: null | string;
|
|
59591
|
+
/**
|
|
59592
|
+
* What the agent should produce.
|
|
59593
|
+
*/
|
|
59594
|
+
description: string;
|
|
59595
|
+
/**
|
|
59596
|
+
* Grader's verdict text from the most recent evaluation. For `satisfied`, explains
|
|
59597
|
+
* why criteria are met; for `needs_revision` (intermediate), what's missing; for
|
|
59598
|
+
* `failed`, why unrecoverable.
|
|
59599
|
+
*/
|
|
59600
|
+
explanation: null | string;
|
|
59601
|
+
/**
|
|
59602
|
+
* 0-indexed revision cycle the outcome is currently on.
|
|
59603
|
+
*/
|
|
59604
|
+
iteration: number;
|
|
59605
|
+
/**
|
|
59606
|
+
* Server-generated outc\_ ID for this outcome.
|
|
59607
|
+
*/
|
|
59608
|
+
outcome_id: string;
|
|
59609
|
+
/**
|
|
59610
|
+
* Current evaluation state. `pending` before the agent begins work; `running`
|
|
59611
|
+
* while producing or revising; `evaluating` while the grader scores;
|
|
59612
|
+
* `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
|
|
59613
|
+
*/
|
|
59614
|
+
result: string;
|
|
59615
|
+
/**
|
|
59616
|
+
* Always `outcome_evaluation`. Record of one outcome evaluation.
|
|
59617
|
+
*/
|
|
59618
|
+
type: 'outcome_evaluation';
|
|
59619
|
+
}>;
|
|
59620
|
+
/**
|
|
59621
|
+
* Resources attached to the session, at most 500; each is a file reference mounted into the session's machine.
|
|
59622
|
+
*/
|
|
59623
|
+
resources: Array<{
|
|
59624
|
+
/**
|
|
59625
|
+
* Resource id, the resource_id of sessions.resources calls.
|
|
59626
|
+
*/
|
|
59627
|
+
id: string;
|
|
59628
|
+
/**
|
|
59629
|
+
* A timestamp in RFC 3339 format
|
|
59630
|
+
*/
|
|
59631
|
+
created_at: string;
|
|
59632
|
+
/**
|
|
59633
|
+
* Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
|
|
59634
|
+
*/
|
|
59635
|
+
mount_path: string;
|
|
59636
|
+
/**
|
|
59637
|
+
* Always `github_repository`. A GitHub repository resource; not supported on this platform.
|
|
59638
|
+
*/
|
|
59639
|
+
type: 'github_repository';
|
|
59640
|
+
/**
|
|
59641
|
+
* A timestamp in RFC 3339 format
|
|
59642
|
+
*/
|
|
59643
|
+
updated_at: string;
|
|
59644
|
+
/**
|
|
59645
|
+
* Repository URL.
|
|
59646
|
+
*/
|
|
59647
|
+
url: string;
|
|
59648
|
+
/**
|
|
59649
|
+
* Branch or commit to check out.
|
|
59650
|
+
*/
|
|
59651
|
+
checkout?: null | {
|
|
59652
|
+
/**
|
|
59653
|
+
* Branch name to check out.
|
|
59654
|
+
*/
|
|
59655
|
+
name: string;
|
|
59656
|
+
/**
|
|
59657
|
+
* Always `branch`. Check out the named branch.
|
|
59658
|
+
*/
|
|
59659
|
+
type: 'branch';
|
|
59660
|
+
} | {
|
|
59661
|
+
/**
|
|
59662
|
+
* Full commit SHA to check out.
|
|
59663
|
+
*/
|
|
59664
|
+
sha: string;
|
|
59665
|
+
/**
|
|
59666
|
+
* Always `commit`. Check out the commit with the given SHA.
|
|
59667
|
+
*/
|
|
59668
|
+
type: 'commit';
|
|
59669
|
+
};
|
|
59670
|
+
} | {
|
|
59671
|
+
/**
|
|
59672
|
+
* Resource id, the resource_id of sessions.resources calls.
|
|
59673
|
+
*/
|
|
59674
|
+
id: string;
|
|
59675
|
+
/**
|
|
59676
|
+
* A timestamp in RFC 3339 format
|
|
59677
|
+
*/
|
|
59678
|
+
created_at: string;
|
|
59679
|
+
/**
|
|
59680
|
+
* Id of the uploaded file; it must exist and belong to your tenant.
|
|
59681
|
+
*/
|
|
59682
|
+
file_id: string;
|
|
59683
|
+
/**
|
|
59684
|
+
* Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
|
|
59685
|
+
*/
|
|
59686
|
+
mount_path: string;
|
|
59687
|
+
/**
|
|
59688
|
+
* Always `file`. A file resource: an uploaded file mounted into the session's machine.
|
|
59689
|
+
*/
|
|
59690
|
+
type: 'file';
|
|
59691
|
+
/**
|
|
59692
|
+
* A timestamp in RFC 3339 format
|
|
59693
|
+
*/
|
|
59694
|
+
updated_at: string;
|
|
59695
|
+
} | {
|
|
59696
|
+
/**
|
|
59697
|
+
* The memory store ID (memstore\_...). Must belong to the caller's organization
|
|
59698
|
+
* and workspace.
|
|
59699
|
+
*/
|
|
59700
|
+
memory_store_id: string;
|
|
59701
|
+
/**
|
|
59702
|
+
* Always `memory_store`. A memory store resource; not supported on this platform.
|
|
59703
|
+
*/
|
|
59704
|
+
type: 'memory_store';
|
|
59705
|
+
/**
|
|
59706
|
+
* Access mode for an attached memory store.
|
|
59707
|
+
*/
|
|
59708
|
+
access?: null | 'read_write' | 'read_only';
|
|
59709
|
+
/**
|
|
59710
|
+
* Description of the memory store, snapshotted at attach time. Rendered into the
|
|
59711
|
+
* agent's system prompt. Empty string when the store has no description.
|
|
59712
|
+
*/
|
|
59713
|
+
description?: string;
|
|
59714
|
+
/**
|
|
59715
|
+
* Per-attachment guidance for the agent on how to use this store. Rendered into
|
|
59716
|
+
* the memory section of the system prompt. Max 4096 chars.
|
|
59717
|
+
*/
|
|
59718
|
+
instructions?: null | string;
|
|
59719
|
+
/**
|
|
59720
|
+
* Filesystem path where the store is mounted in the session container, e.g.
|
|
59721
|
+
* /mnt/memory/user-preferences. Derived from the store's name. Output-only.
|
|
59722
|
+
*/
|
|
59723
|
+
mount_path?: null | string;
|
|
59724
|
+
/**
|
|
59725
|
+
* Display name of the memory store, snapshotted at attach time. Later edits to the
|
|
59726
|
+
* store's name do not propagate to this resource.
|
|
59727
|
+
*/
|
|
59728
|
+
name?: null | string;
|
|
59729
|
+
}>;
|
|
59730
|
+
/**
|
|
59731
|
+
* Timing statistics for a session.
|
|
59732
|
+
*/
|
|
59733
|
+
stats: {
|
|
59734
|
+
/**
|
|
59735
|
+
* Cumulative time in seconds the session spent in `running` status. Excludes idle
|
|
59736
|
+
* time.
|
|
59737
|
+
*/
|
|
59738
|
+
active_seconds?: number;
|
|
59739
|
+
/**
|
|
59740
|
+
* Elapsed time since session creation in seconds. For terminated sessions, frozen
|
|
59741
|
+
* at the final update.
|
|
59742
|
+
*/
|
|
59743
|
+
duration_seconds?: number;
|
|
59744
|
+
};
|
|
59745
|
+
/**
|
|
59746
|
+
* SessionStatus enum
|
|
59747
|
+
*
|
|
59748
|
+
* - `rescheduling` - Transient error occurred, retrying automatically.
|
|
59749
|
+
* - `running` - Agent is actively executing.
|
|
59750
|
+
* - `idle` - Agent is waiting for input, including user messages or tool
|
|
59751
|
+
* confirmations. Sessions start in idle.
|
|
59752
|
+
* - `terminated` - Session has ended, either due to an error or completion.
|
|
59753
|
+
*/
|
|
59754
|
+
status: 'rescheduling' | 'running' | 'idle' | 'terminated';
|
|
59755
|
+
/**
|
|
59756
|
+
* Title of the session, set on create or through sessions.update; null when none was set.
|
|
59757
|
+
*/
|
|
59758
|
+
title: null | string;
|
|
59759
|
+
/**
|
|
59760
|
+
* Always `session`. A session, one conversation of an agent on a machine.
|
|
59761
|
+
*/
|
|
59762
|
+
type: 'session';
|
|
59763
|
+
/**
|
|
59764
|
+
* A timestamp in RFC 3339 format
|
|
59765
|
+
*/
|
|
59766
|
+
updated_at: string;
|
|
59767
|
+
/**
|
|
59768
|
+
* Cumulative token usage for a session across all turns.
|
|
59769
|
+
*/
|
|
59770
|
+
usage: {
|
|
59771
|
+
/**
|
|
59772
|
+
* Cumulative time in seconds during which the session had at least one thread in
|
|
59773
|
+
* running status. Overlapping activity from concurrent threads is counted once,
|
|
59774
|
+
* unlike `stats.active_seconds`, which sums each thread's own active time. This is
|
|
59775
|
+
* the duration the session's runtime cost is priced on.
|
|
59776
|
+
*/
|
|
59777
|
+
active_seconds?: number;
|
|
59778
|
+
/**
|
|
59779
|
+
* Prompt-cache creation token usage broken down by cache lifetime.
|
|
59780
|
+
*/
|
|
59781
|
+
cache_creation?: {
|
|
59782
|
+
/**
|
|
59783
|
+
* Tokens used to create 1-hour ephemeral cache entries.
|
|
59784
|
+
*/
|
|
59785
|
+
ephemeral_1h_input_tokens?: number;
|
|
59786
|
+
/**
|
|
59787
|
+
* Tokens used to create 5-minute ephemeral cache entries.
|
|
59788
|
+
*/
|
|
59789
|
+
ephemeral_5m_input_tokens?: number;
|
|
59790
|
+
};
|
|
59791
|
+
/**
|
|
59792
|
+
* Total tokens read from prompt cache.
|
|
59793
|
+
*/
|
|
59794
|
+
cache_read_input_tokens?: number;
|
|
59795
|
+
/**
|
|
59796
|
+
* Total input tokens consumed across all turns.
|
|
59797
|
+
*/
|
|
59798
|
+
input_tokens?: number;
|
|
59799
|
+
/**
|
|
59800
|
+
* 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.
|
|
59801
|
+
*/
|
|
59802
|
+
list_cost?: null | {
|
|
59803
|
+
/**
|
|
59804
|
+
* Amount in minor units of the currency, as an integer decimal string with no
|
|
59805
|
+
* leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
|
|
59806
|
+
* number so no float rounding is ever applied.
|
|
59807
|
+
*/
|
|
59808
|
+
amount: string;
|
|
59809
|
+
/**
|
|
59810
|
+
* Uppercase ISO-4217 currency code. `USD` is the only currency currently
|
|
59811
|
+
* supported; the accepted set is closed and grows only when a new currency is
|
|
59812
|
+
* priced.
|
|
59813
|
+
*/
|
|
59814
|
+
currency: 'USD';
|
|
59815
|
+
};
|
|
59816
|
+
/**
|
|
59817
|
+
* Total output tokens generated across all turns.
|
|
59818
|
+
*/
|
|
59819
|
+
output_tokens?: number;
|
|
59820
|
+
/**
|
|
59821
|
+
* Cumulative count of server-executed tool invocations, broken down by tool.
|
|
59822
|
+
*/
|
|
59823
|
+
server_tool_use?: null | {
|
|
59824
|
+
/**
|
|
59825
|
+
* Number of server-executed web fetch requests.
|
|
59826
|
+
*/
|
|
59827
|
+
web_fetch_requests?: number;
|
|
59828
|
+
/**
|
|
59829
|
+
* Number of server-executed web search requests.
|
|
59830
|
+
*/
|
|
59831
|
+
web_search_requests?: number;
|
|
59832
|
+
};
|
|
59833
|
+
/**
|
|
59834
|
+
* 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.
|
|
59835
|
+
*/
|
|
59836
|
+
cost_by_product?: {
|
|
59837
|
+
[key: string]: string;
|
|
59838
|
+
};
|
|
59839
|
+
/**
|
|
59840
|
+
* 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.
|
|
59841
|
+
*/
|
|
59842
|
+
subagent_cost_micro_usd?: number;
|
|
59843
|
+
};
|
|
59844
|
+
/**
|
|
59845
|
+
* Vault IDs attached to the session at creation. Empty when no vaults were
|
|
59846
|
+
* supplied.
|
|
59847
|
+
*/
|
|
59848
|
+
vault_ids: Array<string>;
|
|
59849
|
+
/**
|
|
59850
|
+
* Deployment ID when the session was created from a deployment reference. Null
|
|
59851
|
+
* otherwise.
|
|
59852
|
+
*/
|
|
59853
|
+
deployment_id?: null | string;
|
|
59854
|
+
/**
|
|
59855
|
+
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
59856
|
+
*/
|
|
59857
|
+
cwd: string;
|
|
59858
|
+
/**
|
|
59859
|
+
* 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.
|
|
59860
|
+
*/
|
|
59861
|
+
computer_id?: string;
|
|
59862
|
+
/**
|
|
59863
|
+
* Praxis extension: the currently selected session model.
|
|
59864
|
+
*/
|
|
59865
|
+
model?: {
|
|
59866
|
+
/**
|
|
59867
|
+
* Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource.
|
|
59868
|
+
*/
|
|
59869
|
+
id: string;
|
|
59870
|
+
/**
|
|
59871
|
+
* Supported thinking controls, or null when capability is unknown or unavailable. efforts lists selectable strengths; can_disable permits none; default_effort is nullable.
|
|
59872
|
+
*/
|
|
59873
|
+
thinking: {
|
|
59874
|
+
/**
|
|
59875
|
+
* Thinking levels the model accepts as effort, in ascending order.
|
|
59876
|
+
*/
|
|
59877
|
+
efforts: Array<'low' | 'medium' | 'high' | 'xhigh' | 'max'>;
|
|
59878
|
+
/**
|
|
59879
|
+
* Whether effort none (thinking off) is allowed for this model.
|
|
59880
|
+
*/
|
|
59881
|
+
can_disable: boolean;
|
|
59882
|
+
/**
|
|
59883
|
+
* Thinking level used when neither the session nor the agent selects one; null when the model states no default.
|
|
59884
|
+
*/
|
|
59885
|
+
default_effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
59886
|
+
} | null;
|
|
59887
|
+
};
|
|
59888
|
+
/**
|
|
59889
|
+
* 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.
|
|
59890
|
+
*/
|
|
59891
|
+
thinking?: {
|
|
59892
|
+
/**
|
|
59893
|
+
* 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.
|
|
59894
|
+
*/
|
|
59895
|
+
effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
|
|
59896
|
+
} | null;
|
|
59897
|
+
/**
|
|
59898
|
+
* Praxis extension: source of a forked session; null for other sessions. Available only on /agent/v1.
|
|
59899
|
+
*/
|
|
59900
|
+
forked_from?: {
|
|
59901
|
+
/**
|
|
59902
|
+
* Id of the parent session this session was forked from; it is left unchanged by the fork.
|
|
59903
|
+
*/
|
|
59904
|
+
session_id: string;
|
|
59905
|
+
/**
|
|
59906
|
+
* message_id of the agent message in the parent session up to which the conversation was copied.
|
|
59907
|
+
*/
|
|
59908
|
+
message_id: string;
|
|
59909
|
+
} | null;
|
|
59910
|
+
/**
|
|
59911
|
+
* 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.
|
|
59912
|
+
*/
|
|
59913
|
+
readonly external_user_id: string | null;
|
|
59914
|
+
/**
|
|
59915
|
+
* 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.
|
|
59916
|
+
*/
|
|
59917
|
+
readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
|
|
59918
|
+
};
|
|
59919
|
+
};
|
|
59920
|
+
export type UpdateSessionAgentVersionResponse = UpdateSessionAgentVersionResponses[keyof UpdateSessionAgentVersionResponses];
|
|
57989
59921
|
export type ListSessionArtifactsData = {
|
|
57990
59922
|
body?: never;
|
|
57991
59923
|
path: {
|
|
@@ -62240,9 +64172,13 @@ export type ListVideosResponses = {
|
|
|
62240
64172
|
*/
|
|
62241
64173
|
usage?: {
|
|
62242
64174
|
/**
|
|
62243
|
-
* Cost of the job in USD:
|
|
64175
|
+
* Cost of the job in USD: billed seconds times the per-second price once completed, 0 while running. Billed seconds are the delivered seconds, except for a job with `input_videos` (see `billed_seconds`).
|
|
62244
64176
|
*/
|
|
62245
64177
|
cost: number;
|
|
64178
|
+
/**
|
|
64179
|
+
* Only on a completed job with `input_videos`: the seconds it is billed for. The model meters input plus output seconds at a lower rate, converted here to seconds of the delivered resolution, so it can exceed `seconds`.
|
|
64180
|
+
*/
|
|
64181
|
+
billed_seconds?: number;
|
|
62246
64182
|
};
|
|
62247
64183
|
}>;
|
|
62248
64184
|
/**
|
|
@@ -62310,6 +64246,24 @@ export type CreateVideoData = {
|
|
|
62310
64246
|
url: string;
|
|
62311
64247
|
};
|
|
62312
64248
|
}>;
|
|
64249
|
+
/**
|
|
64250
|
+
* Platform extension (the OpenAI videos API has no input video): reference videos as HTTP(S) URLs, or objects with `video_url.url`. Only models that declare it take them (Doubao Seedance 2.5: up to 10 clips totalling 30 s; 2.0: up to 3 totalling 15 s; mp4 or mov, each 2 s or longer and at most 200 MB); any other model answers 400 `input_videos is not supported by this model.` They combine with `input_references` but not with `frame_images` or `input_reference`. In the prompt, name them `@video1`, `@video2`… and the pictures `@image1`, `@image2`… in request order. A clip showing a real human face is refused by the model.
|
|
64251
|
+
*/
|
|
64252
|
+
input_videos?: Array<string | {
|
|
64253
|
+
/**
|
|
64254
|
+
* The reference video, as an object with `url`.
|
|
64255
|
+
*/
|
|
64256
|
+
video_url: {
|
|
64257
|
+
/**
|
|
64258
|
+
* HTTP(S) URL of the video; the model fetches it, so it must stay readable until the job finishes.
|
|
64259
|
+
*/
|
|
64260
|
+
url: string;
|
|
64261
|
+
};
|
|
64262
|
+
}>;
|
|
64263
|
+
/**
|
|
64264
|
+
* Platform extension, only with input_videos: reference (default) makes a new video that follows the inputs; edit keeps the first video and changes what the prompt names, with the source's ratio and length (send no seconds or size; source 4 to 30 s).
|
|
64265
|
+
*/
|
|
64266
|
+
video_task?: 'reference' | 'edit';
|
|
62313
64267
|
/**
|
|
62314
64268
|
* Images that pin the first and last frame; at most 2 entries.
|
|
62315
64269
|
*/
|
|
@@ -62464,9 +64418,13 @@ export type CreateVideoResponses = {
|
|
|
62464
64418
|
*/
|
|
62465
64419
|
usage?: {
|
|
62466
64420
|
/**
|
|
62467
|
-
* Cost of the job in USD:
|
|
64421
|
+
* Cost of the job in USD: billed seconds times the per-second price once completed, 0 while running. Billed seconds are the delivered seconds, except for a job with `input_videos` (see `billed_seconds`).
|
|
62468
64422
|
*/
|
|
62469
64423
|
cost: number;
|
|
64424
|
+
/**
|
|
64425
|
+
* Only on a completed job with `input_videos`: the seconds it is billed for. The model meters input plus output seconds at a lower rate, converted here to seconds of the delivered resolution, so it can exceed `seconds`.
|
|
64426
|
+
*/
|
|
64427
|
+
billed_seconds?: number;
|
|
62470
64428
|
};
|
|
62471
64429
|
};
|
|
62472
64430
|
};
|
|
@@ -62628,9 +64586,13 @@ export type RetrieveVideoResponses = {
|
|
|
62628
64586
|
*/
|
|
62629
64587
|
usage?: {
|
|
62630
64588
|
/**
|
|
62631
|
-
* Cost of the job in USD:
|
|
64589
|
+
* Cost of the job in USD: billed seconds times the per-second price once completed, 0 while running. Billed seconds are the delivered seconds, except for a job with `input_videos` (see `billed_seconds`).
|
|
62632
64590
|
*/
|
|
62633
64591
|
cost: number;
|
|
64592
|
+
/**
|
|
64593
|
+
* Only on a completed job with `input_videos`: the seconds it is billed for. The model meters input plus output seconds at a lower rate, converted here to seconds of the delivered resolution, so it can exceed `seconds`.
|
|
64594
|
+
*/
|
|
64595
|
+
billed_seconds?: number;
|
|
62634
64596
|
};
|
|
62635
64597
|
};
|
|
62636
64598
|
};
|
|
@@ -68528,6 +70490,10 @@ export type HireOrganizationPositionErrors = {
|
|
|
68528
70490
|
* POSITION_FROZEN, POSITION_CLOSED, POSITION_OCCUPIED or PRIMARY_ASSIGNMENT_REQUIRED; pick an active vacant position, and leave primary out or true for an actor that holds nothing yet.
|
|
68529
70491
|
*/
|
|
68530
70492
|
409: OrganizationProblem;
|
|
70493
|
+
/**
|
|
70494
|
+
* ACTOR_SYNCING; the agent exists but is still being synced into the organization roster. Wait retry_after seconds (also sent as Retry-After) and call again with the same request_id.
|
|
70495
|
+
*/
|
|
70496
|
+
503: OrganizationProblem;
|
|
68531
70497
|
};
|
|
68532
70498
|
export type HireOrganizationPositionError = HireOrganizationPositionErrors[keyof HireOrganizationPositionErrors];
|
|
68533
70499
|
export type HireOrganizationPositionResponses = {
|
|
@@ -68569,6 +70535,10 @@ export type ReplaceOrganizationPositionHolderErrors = {
|
|
|
68569
70535
|
* POSITION_VACANT; the position has no holder to replace, so hire into it.
|
|
68570
70536
|
*/
|
|
68571
70537
|
409: OrganizationProblem;
|
|
70538
|
+
/**
|
|
70539
|
+
* ACTOR_SYNCING; the successor agent exists but is still being synced into the organization roster. Wait retry_after seconds (also sent as Retry-After) and call again with the same request_id.
|
|
70540
|
+
*/
|
|
70541
|
+
503: OrganizationProblem;
|
|
68572
70542
|
};
|
|
68573
70543
|
export type ReplaceOrganizationPositionHolderError = ReplaceOrganizationPositionHolderErrors[keyof ReplaceOrganizationPositionHolderErrors];
|
|
68574
70544
|
export type ReplaceOrganizationPositionHolderResponses = {
|
|
@@ -95181,7 +97151,7 @@ export type DevopsChangesOpenPullRequestErrors = {
|
|
|
95181
97151
|
export type DevopsChangesOpenPullRequestError = DevopsChangesOpenPullRequestErrors[keyof DevopsChangesOpenPullRequestErrors];
|
|
95182
97152
|
export type DevopsChangesOpenPullRequestResponses = {
|
|
95183
97153
|
/**
|
|
95184
|
-
* The pull request for the change's branch: its number, its link,
|
|
97154
|
+
* The pull request for the change's branch: its number, its link, whether this call opened it, and whether it rewrote an already open one.
|
|
95185
97155
|
*/
|
|
95186
97156
|
200: DevopsChangePullRequestOpened;
|
|
95187
97157
|
};
|
|
@@ -97988,7 +99958,7 @@ export type MediaCreateLibraryData = {
|
|
|
97988
99958
|
[key: string]: string;
|
|
97989
99959
|
};
|
|
97990
99960
|
/**
|
|
97991
|
-
* Understanding tasks enabled for new assets; omitted
|
|
99961
|
+
* Understanding tasks enabled for new assets; omitted visual and transcript default to true, embedding to false.
|
|
97992
99962
|
*/
|
|
97993
99963
|
understanding?: {
|
|
97994
99964
|
/**
|
|
@@ -98000,7 +99970,7 @@ export type MediaCreateLibraryData = {
|
|
|
98000
99970
|
*/
|
|
98001
99971
|
transcript?: boolean;
|
|
98002
99972
|
/**
|
|
98003
|
-
* Enable generation of vectors for semantic search. Defaults to
|
|
99973
|
+
* Enable generation of vectors for semantic search. Defaults to false: vectorization is opt-in.
|
|
98004
99974
|
*/
|
|
98005
99975
|
embedding?: boolean;
|
|
98006
99976
|
};
|
|
@@ -100680,9 +102650,13 @@ export type MediaGenerateVideoData = {
|
|
|
100680
102650
|
*/
|
|
100681
102651
|
negative_prompt?: string;
|
|
100682
102652
|
/**
|
|
100683
|
-
* What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures named in references consistent and takes no frames.
|
|
102653
|
+
* What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures (and videos) named in references consistent and takes no frames; edit keeps the video named by source and changes what the prompt says, such as replacing its person with a subject picture.
|
|
102654
|
+
*/
|
|
102655
|
+
mode: 'text' | 'image' | 'first_last' | 'reference' | 'edit';
|
|
102656
|
+
/**
|
|
102657
|
+
* Video to edit; required by mode edit and refused by every other mode. It must be a video asset of this library, at least 4 seconds long (Doubao Seedance edits 4 to 30 s; a longer one is refused by the model before any charge). The produced video is as long as the source. Name its parts in the prompt as @video1 for the source and @image1, @image2… for the references in order, for example "把 @video1 的人物换成 @image1". Sources and pictures showing a real human face are refused by the model: the job fails with CONTENT_REJECTED and nothing is charged.
|
|
100684
102658
|
*/
|
|
100685
|
-
|
|
102659
|
+
source?: MediaAssetId;
|
|
100686
102660
|
/**
|
|
100687
102661
|
* Asset to use as the opening frame; required by mode image and first_last. The asset must be an image or a sticker of this library, otherwise REFERENCE_TYPE_MISMATCH.
|
|
100688
102662
|
*/
|
|
@@ -100692,11 +102666,11 @@ export type MediaGenerateVideoData = {
|
|
|
100692
102666
|
*/
|
|
100693
102667
|
last_frame?: MediaAssetId;
|
|
100694
102668
|
/**
|
|
100695
|
-
* Existing assets the model may use, each with the role it plays. Required with mode reference and refused with every other mode: 1 to 9
|
|
102669
|
+
* Existing assets the model may use, each with the role it plays. Required with mode reference, optional with mode edit, and refused with every other mode: 1 to 9 assets of the same library, each once. Pictures (image or sticker) take role subject (the person, product or scene to keep) or style (the look to follow); with mode reference a video asset may take role video (camera, motion and framing to follow; Doubao Seedance 2.5 takes up to 10 such videos totalling 30 s, 2.0 up to 3 totalling 15 s, each at least 2 s). With mode edit the references are pictures only, and the edited video is source. A model may accept fewer than 9 pictures; Doubao Seedance 2.0 takes up to 9. An entry may also name an element of this library (a character, product, scene or brand made with POST /media/v1/libraries/{library_id}/materials): the service replaces it with the element’s own pictures, keeping this entry’s role and strength, and appends the element’s description to the prompt; a brand adds only its description, colours and banned words and never a picture. Do not expand an element yourself. The pictures after expansion count against the limit, the same element twice is refused with INVALID_PARAMS, and the produced asset records the element and the version it used in provenance.elements. At most 9 pictures after expansion; a list of brands alone leaves no picture and is refused.
|
|
100696
102670
|
*/
|
|
100697
102671
|
references?: Array<MediaAssetReference>;
|
|
100698
102672
|
/**
|
|
100699
|
-
* Requested video length in seconds. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS.
|
|
102673
|
+
* Requested video length in seconds; refused with mode edit, whose output is as long as its source. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS.
|
|
100700
102674
|
*/
|
|
100701
102675
|
duration_seconds?: number;
|
|
100702
102676
|
/**
|
|
@@ -100860,7 +102834,7 @@ export type MediaEditAssetData = {
|
|
|
100860
102834
|
};
|
|
100861
102835
|
export type MediaEditAssetErrors = {
|
|
100862
102836
|
/**
|
|
100863
|
-
* 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
|
|
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 replace_person on a video. 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.
|
|
100864
102838
|
*/
|
|
100865
102839
|
400: MediaMediaError;
|
|
100866
102840
|
/**
|