@deepraxis/sdk 0.1.1-dev.d76350c → 0.1.1-dev.d774271

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.
@@ -17929,6 +17929,15 @@ export type DevopsPullRequestVerdictRequest = {
17929
17929
  */
17930
17930
  reason?: string;
17931
17931
  };
17932
+ /**
17933
+ * Why the pull request is being closed. The reason is written on the pull request itself, so a reader of it does not need the platform to learn why.
17934
+ */
17935
+ export type DevopsPullRequestCloseRequest = {
17936
+ /**
17937
+ * Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one.
17938
+ */
17939
+ reason: string;
17940
+ };
17932
17941
  /**
17933
17942
  * One page of an organization's connections.
17934
17943
  */
@@ -18991,6 +19000,10 @@ export type MediaLibrary = {
18991
19000
  * Resolved model call IDs used for new uploads and reprocessing.
18992
19001
  */
18993
19002
  models: MediaMediaModels;
19003
+ /**
19004
+ * The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
19005
+ */
19006
+ readonly default_tier: MediaMediaTier;
18994
19007
  /**
18995
19008
  * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
18996
19009
  */
@@ -19082,6 +19095,10 @@ export type MediaMediaModelsInput = {
19082
19095
  */
19083
19096
  speech?: string | null;
19084
19097
  } | null;
19098
+ /**
19099
+ * Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request.
19100
+ */
19101
+ export type MediaMediaTier = 'economy' | 'balanced' | 'quality';
19085
19102
  /**
19086
19103
  * Libraries in this page, ordered by creation time descending.
19087
19104
  */
@@ -19665,6 +19682,10 @@ export type MediaJob = {
19665
19682
  * Model that produced the outputs of a generation job; omitted for batch jobs.
19666
19683
  */
19667
19684
  model?: string;
19685
+ /**
19686
+ * The performance tier that actually served this job’s model, present only when the request named a tier instead of a model. It is the tier that ran: a balanced request that a capability answers with its economy model reports economy, so a caller can see what it got. model keeps its own meaning and value alongside it.
19687
+ */
19688
+ tier?: MediaMediaTier;
19668
19689
  /**
19669
19690
  * Per-output results of a generation job, in index order: one entry per requested image or video, and one per text segment for speech. Every successful output is already a library asset, and its viewer_url opens it in the Console.
19670
19691
  */
@@ -19851,9 +19872,13 @@ export type MediaAssetReference = {
19851
19872
  * How strongly the reference asset influenced the result, from 0 to 1 on the Stability scale. Omitted when the model treats every reference equally.
19852
19873
  */
19853
19874
  strength?: number;
19875
+ /**
19876
+ * Video generation, mode reference only: the voice this picture’s subject speaks with. Name an audio asset of the same library (mp3 or wav, 1–10 s) or a voice of the library (a Voice — its first sample then speaks). The model reads the timbre alone, so what is said belongs in prompt. Send it on a picture reference (role subject or style), never on a role video reference and never on another mode; refused with INVALID_PARAMS when the source is not in this library, when the recording is not 1–10 s of mp3 or wav, or when the field is used outside mode reference, with REFERENCE_TYPE_MISMATCH when the named asset is neither audio nor a voice. Only wan2.7-r2v reads it: a request that carries a voice on any other model is refused, naming the field. Omit it to send no voice, and the request is what it was before the field existed.
19877
+ */
19878
+ voice_asset_id?: MediaAssetId;
19854
19879
  };
19855
19880
  /**
19856
- * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and 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, replace_person, lip_sync and animate_person on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
19881
+ * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
19857
19882
  */
19858
19883
  export type MediaEditOperation = {
19859
19884
  /**
@@ -19882,9 +19907,10 @@ export type MediaEditOperation = {
19882
19907
  */
19883
19908
  height?: 720 | 1080 | 1440 | 2160;
19884
19909
  /**
19885
- * Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
19910
+ * Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
19886
19911
  */
19887
19912
  model?: string;
19913
+ tier?: MediaMediaTier;
19888
19914
  } | {
19889
19915
  /**
19890
19916
  * Edit operation discriminator; outpaint selects the outpaint branch of this union.
@@ -19961,9 +19987,10 @@ export type MediaEditOperation = {
19961
19987
  */
19962
19988
  mute?: boolean;
19963
19989
  /**
19964
- * Video only: processing model that performs the erase, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
19990
+ * Video only: processing model that performs the erase, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
19965
19991
  */
19966
19992
  model?: string;
19993
+ tier?: MediaMediaTier;
19967
19994
  } | {
19968
19995
  /**
19969
19996
  * Edit operation discriminator; replace_object selects the replace_object branch of this union.
@@ -20000,9 +20027,10 @@ export type MediaEditOperation = {
20000
20027
  */
20001
20028
  output?: 'mask' | 'alpha';
20002
20029
  /**
20003
- * Video model that performs the matting, from the types.matting.models list of the generation capabilities; omit it to use the first available matting model. Video sources only — for an image it is refused with INVALID_PARAMS.
20030
+ * Video model that performs the matting, from the types.matting.models list of the generation capabilities; omit it to use the first available matting model. Video sources only — for an image it is refused with INVALID_PARAMS. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20004
20031
  */
20005
20032
  model?: string;
20033
+ tier?: MediaMediaTier;
20006
20034
  } | {
20007
20035
  /**
20008
20036
  * Edit operation discriminator; replace_background selects the replace_background branch of this union.
@@ -20103,9 +20131,10 @@ export type MediaEditOperation = {
20103
20131
  */
20104
20132
  speech?: MediaSpeechCreateInput;
20105
20133
  /**
20106
- * Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available.
20134
+ * Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20107
20135
  */
20108
20136
  model?: string;
20137
+ tier?: MediaMediaTier;
20109
20138
  } | {
20110
20139
  /**
20111
20140
  * Edit operation discriminator; frame selects the frame branch of this union.
@@ -20126,9 +20155,10 @@ export type MediaEditOperation = {
20126
20155
  */
20127
20156
  type: 'enhance_voice';
20128
20157
  /**
20129
- * Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
20158
+ * Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20130
20159
  */
20131
20160
  model?: string;
20161
+ tier?: MediaMediaTier;
20132
20162
  } | {
20133
20163
  /**
20134
20164
  * Edit operation discriminator; reframe selects the reframe branch of this union.
@@ -20139,9 +20169,10 @@ export type MediaEditOperation = {
20139
20169
  */
20140
20170
  aspect: '9:16' | '1:1' | '16:9';
20141
20171
  /**
20142
- * Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
20172
+ * Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20143
20173
  */
20144
20174
  model?: string;
20175
+ tier?: MediaMediaTier;
20145
20176
  } | {
20146
20177
  /**
20147
20178
  * Edit operation discriminator; redact selects the redact branch of this union.
@@ -20152,9 +20183,10 @@ export type MediaEditOperation = {
20152
20183
  */
20153
20184
  targets: Array<'face' | 'qr' | 'text'>;
20154
20185
  /**
20155
- * Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
20186
+ * Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20156
20187
  */
20157
20188
  model?: string;
20189
+ tier?: MediaMediaTier;
20158
20190
  } | {
20159
20191
  /**
20160
20192
  * Edit operation discriminator; trim selects the trim branch of this union.
@@ -20169,18 +20201,20 @@ export type MediaEditOperation = {
20169
20201
  */
20170
20202
  end_seconds?: number;
20171
20203
  /**
20172
- * 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.
20204
+ * 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. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20173
20205
  */
20174
20206
  model?: string;
20207
+ tier?: MediaMediaTier;
20175
20208
  } | {
20176
20209
  /**
20177
20210
  * Edit operation discriminator; mute selects the mute branch of this union.
20178
20211
  */
20179
20212
  type: 'mute';
20180
20213
  /**
20181
- * 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.
20214
+ * 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. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20182
20215
  */
20183
20216
  model?: string;
20217
+ tier?: MediaMediaTier;
20184
20218
  } | {
20185
20219
  /**
20186
20220
  * Edit operation discriminator; crop selects the crop branch of this union.
@@ -20203,9 +20237,23 @@ export type MediaEditOperation = {
20203
20237
  */
20204
20238
  left?: number;
20205
20239
  /**
20206
- * Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
20240
+ * 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. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20207
20241
  */
20208
20242
  model?: string;
20243
+ tier?: MediaMediaTier;
20244
+ } | {
20245
+ /**
20246
+ * Edit operation discriminator; extract_audio selects the extract_audio branch of this union.
20247
+ */
20248
+ type: 'extract_audio';
20249
+ /**
20250
+ * Seconds into the source video where the audio starts, 0 or more; omit it to begin at the start.
20251
+ */
20252
+ start_seconds?: number;
20253
+ /**
20254
+ * Seconds into the source video where the audio ends, after start_seconds; omit it to keep to the source’s end. A value past the end is the end.
20255
+ */
20256
+ end_seconds?: number;
20209
20257
  } | {
20210
20258
  /**
20211
20259
  * Edit operation discriminator; replace_person selects the replace_person branch of this union.
@@ -20216,9 +20264,10 @@ export type MediaEditOperation = {
20216
20264
  */
20217
20265
  person_asset_id: MediaAssetId;
20218
20266
  /**
20219
- * Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
20267
+ * Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20220
20268
  */
20221
20269
  model?: string;
20270
+ tier?: MediaMediaTier;
20222
20271
  } | {
20223
20272
  /**
20224
20273
  * Edit operation discriminator; animate_person selects the animate_person branch of this union.
@@ -20229,9 +20278,10 @@ export type MediaEditOperation = {
20229
20278
  */
20230
20279
  person_asset_id: MediaAssetId;
20231
20280
  /**
20232
- * Which tier: video-animate-person-flash or video-animate-person-pro, as the generation capabilities publish them for animate_person with their prices; omit it to use the first available.
20281
+ * Which tier: video-animate-person-flash or video-animate-person-pro, as the generation capabilities publish them for animate_person with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20233
20282
  */
20234
20283
  model?: string;
20284
+ tier?: MediaMediaTier;
20235
20285
  } | {
20236
20286
  /**
20237
20287
  * Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
@@ -20242,9 +20292,32 @@ export type MediaEditOperation = {
20242
20292
  */
20243
20293
  audio_asset_id: MediaAssetId;
20244
20294
  /**
20245
- * Which tier: video-talking-avatar-flash (480P) or video-talking-avatar-pro (720P), as the generation capabilities publish them for talking_avatar with their prices; omit it to use the first available.
20295
+ * Which tier: video-talking-avatar-flash (480P) or video-talking-avatar-pro (720P), as the generation capabilities publish them for talking_avatar with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20296
+ */
20297
+ model?: string;
20298
+ tier?: MediaMediaTier;
20299
+ } | {
20300
+ /**
20301
+ * Edit operation discriminator; edit_video selects the edit_video branch of this union.
20302
+ */
20303
+ type: 'edit_video';
20304
+ /**
20305
+ * One instruction describing the change to make, up to 5000 characters; the video keeps its own length and aspect ratio.
20306
+ */
20307
+ prompt: string;
20308
+ /**
20309
+ * What the edit should avoid, up to 500 characters.
20310
+ */
20311
+ negative_prompt?: string;
20312
+ /**
20313
+ * Optional image asset in the same library to guide the edit. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
20314
+ */
20315
+ reference_asset_id?: MediaAssetId;
20316
+ /**
20317
+ * Which tier: the Flash model (720P) or the Pro model (1080P), as the generation capabilities publish them for the video_edit capability with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
20246
20318
  */
20247
20319
  model?: string;
20320
+ tier?: MediaMediaTier;
20248
20321
  } | {
20249
20322
  /**
20250
20323
  * Edit operation discriminator; voice_change selects the voice_change branch of this union.
@@ -20415,7 +20488,7 @@ export type MediaGenerationCapabilities = {
20415
20488
  matting: MediaGenerationTypeCapability;
20416
20489
  };
20417
20490
  /**
20418
- * The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person and talking_avatar. Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
20491
+ * The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person, talking_avatar and edit_video (video_edit). Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
20419
20492
  */
20420
20493
  processes: {
20421
20494
  upscale: MediaGenerationProcessCapability;
@@ -20429,6 +20502,7 @@ export type MediaGenerationCapabilities = {
20429
20502
  lip_sync: MediaGenerationProcessCapability;
20430
20503
  animate_person: MediaGenerationProcessCapability;
20431
20504
  talking_avatar: MediaGenerationProcessCapability;
20505
+ video_edit: MediaGenerationProcessCapability;
20432
20506
  };
20433
20507
  };
20434
20508
  /**
@@ -20448,6 +20522,62 @@ export type MediaHlsLadder = {
20448
20522
  */
20449
20523
  renditions: Array<MediaHlsRendition>;
20450
20524
  };
20525
+ export type MediaVoiceCloneInput = {
20526
+ /**
20527
+ * Display name of the voice; a later rename keeps the same voice id.
20528
+ */
20529
+ name: string;
20530
+ /**
20531
+ * Recording file ids this voice is cloned from, in order; the first is the clone’s own recording. Each must be an audio format the supplier accepts.
20532
+ */
20533
+ samples: Array<string>;
20534
+ /**
20535
+ * Consent id that authorises this clone, minted by the voice-consent endpoint of this same library.
20536
+ */
20537
+ consent_id: MediaVoiceConsentId;
20538
+ /**
20539
+ * Language the voice speaks, used to tag the clone at the supplier; for example zh or en.
20540
+ */
20541
+ language: string;
20542
+ /**
20543
+ * Free-form string labels carried onto the usage event for this voice.
20544
+ */
20545
+ labels?: {
20546
+ [key: string]: string;
20547
+ };
20548
+ /**
20549
+ * Caller’s own note about the voice, stored on it and returned as description.
20550
+ */
20551
+ description?: string;
20552
+ /**
20553
+ * Preferred cloning provider; the platform chooses one when omitted.
20554
+ */
20555
+ provider?: string;
20556
+ };
20557
+ export type MediaVoiceDesignCreateInput = {
20558
+ /**
20559
+ * Display name of the voice; a later rename keeps the same voice id.
20560
+ */
20561
+ name: string;
20562
+ /**
20563
+ * Language the voice speaks; use the language the preview was designed in.
20564
+ */
20565
+ language: string;
20566
+ /**
20567
+ * Preview audio asset id produced by a voice-design run of this library. Its voice.design generation record is what makes the voice generated; an uploaded recording is refused here.
20568
+ */
20569
+ design_asset_id: MediaAssetId;
20570
+ /**
20571
+ * Free-form string labels carried onto the usage event for this voice.
20572
+ */
20573
+ labels?: {
20574
+ [key: string]: string;
20575
+ };
20576
+ /**
20577
+ * Caller’s own note about the voice, stored on it and returned as description.
20578
+ */
20579
+ description?: string;
20580
+ };
20451
20581
  /**
20452
20582
  * One page of type registrations; types are few enough that this face returns them in a single page.
20453
20583
  */
@@ -21162,6 +21292,77 @@ export type RegistryVersion = {
21162
21292
  */
21163
21293
  create_time: string;
21164
21294
  };
21295
+ /**
21296
+ * 一段提交历史。
21297
+ */
21298
+ export type RegistryGitLog = {
21299
+ /**
21300
+ * 对象类型标记,固定为 registry.git.log。
21301
+ */
21302
+ object: string;
21303
+ /**
21304
+ * 这次读的引用;省略时是包的默认分支。
21305
+ */
21306
+ ref: string;
21307
+ /**
21308
+ * 这一页的提交,最新的在前;空数组表示这个引用没有提交。
21309
+ */
21310
+ commits: Array<RegistryGitCommit>;
21311
+ /**
21312
+ * 是否还有下一页(用 offset 翻页)。
21313
+ */
21314
+ has_more: boolean;
21315
+ };
21316
+ /**
21317
+ * 一个 git 提交。
21318
+ */
21319
+ export type RegistryGitCommit = {
21320
+ /**
21321
+ * 对象类型标记,固定为 registry.git.commit。
21322
+ */
21323
+ object: string;
21324
+ /**
21325
+ * 提交的对象 id。
21326
+ */
21327
+ sha: string;
21328
+ /**
21329
+ * 提交信息原文,含换行。
21330
+ */
21331
+ message: string;
21332
+ /**
21333
+ * 作者名;仓库没有给出名字时是空串。
21334
+ */
21335
+ author: string;
21336
+ /**
21337
+ * 作者邮箱;仓库给了才有。
21338
+ */
21339
+ author_email?: string;
21340
+ /**
21341
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
21342
+ */
21343
+ committed_at: string;
21344
+ /**
21345
+ * 父提交的对象 id,按顺序。
21346
+ */
21347
+ parents: Array<string>;
21348
+ };
21349
+ /**
21350
+ * 一个树的条目清单。
21351
+ */
21352
+ export type RegistryGitTree = {
21353
+ /**
21354
+ * 对象类型标记,固定为 registry.git.tree。
21355
+ */
21356
+ object: string;
21357
+ /**
21358
+ * 读的树对象 id。
21359
+ */
21360
+ sha: string;
21361
+ /**
21362
+ * 这个树的条目,只列这一层,不递归。
21363
+ */
21364
+ entries: Array<RegistryGitTreeEntry>;
21365
+ };
21165
21366
  /**
21166
21367
  * 一个版本的文件清单;文件不多,一次返回全部。
21167
21368
  */
@@ -24226,7 +24427,7 @@ export type VaultUpdateSecretInput = {
24226
24427
  */
24227
24428
  value?: string;
24228
24429
  /**
24229
- * Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
24430
+ * Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration, leaving the credential for name-based resolution only — host-based redemption never matches. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
24230
24431
  */
24231
24432
  allowed_hosts?: Array<string>;
24232
24433
  /**
@@ -24455,6 +24656,10 @@ export type TicketRecord = {
24455
24656
  * completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening.
24456
24657
  */
24457
24658
  state_reason: 'completed' | 'not_planned' | 'duplicate' | 'reopened';
24659
+ /**
24660
+ * The original ticket's number; required when state_reason is duplicate.
24661
+ */
24662
+ duplicate_of: number | null;
24458
24663
  /**
24459
24664
  * Built-in type name (console: bug 缺陷, feature 功能, task 任务; to a person say the console word), null when unset; the list is GET /ticket/v1/types.
24460
24665
  */
@@ -36647,6 +36852,10 @@ export type MediaProvenance = {
36647
36852
  * Model that performed the operation, as the model identifier returned by the model API.
36648
36853
  */
36649
36854
  model: string;
36855
+ /**
36856
+ * The performance tier that actually performed the operation, present only when the request named a tier instead of a model: the tier that really served it, paired with model.
36857
+ */
36858
+ tier?: MediaMediaTier;
36650
36859
  /**
36651
36860
  * Reusable elements (characters, products, scenes, brands) this generation expanded, each with the version read when the job was created. The service replaced each element in references with its own pictures and appended its written guidance to the prompt; references above lists the pictures the model actually received. Omitted when the request named no element.
36652
36861
  */
@@ -37306,7 +37515,7 @@ export type MediaLineageNode = {
37306
37515
  /**
37307
37516
  * What a reference asset contributes to the generated or edited result.
37308
37517
  */
37309
- export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
37518
+ export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video' | 'voice';
37310
37519
  /**
37311
37520
  * One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
37312
37521
  */
@@ -37529,6 +37738,7 @@ export type MediaHlsRendition = {
37529
37738
  */
37530
37739
  state: MediaHlsRenditionState;
37531
37740
  };
37741
+ export type MediaVoiceConsentId = string;
37532
37742
  /**
37533
37743
  * A kind of entity the graph accepts, for example a file or a customer.
37534
37744
  */
@@ -37714,6 +37924,31 @@ export type RegistryRegistryError = {
37714
37924
  };
37715
37925
  };
37716
37926
  };
37927
+ /**
37928
+ * 树里的一个条目。
37929
+ */
37930
+ export type RegistryGitTreeEntry = {
37931
+ /**
37932
+ * 这一层里的条目名。
37933
+ */
37934
+ name: string;
37935
+ /**
37936
+ * 条目指向的对象类型;commit 是子模块。
37937
+ */
37938
+ type: 'blob' | 'tree' | 'commit';
37939
+ /**
37940
+ * git 的模式位,例如 100644 或 040000。
37941
+ */
37942
+ mode: string;
37943
+ /**
37944
+ * 条目指向的对象 id。
37945
+ */
37946
+ sha: string;
37947
+ /**
37948
+ * 对象大小(字节),后端给出时才有。
37949
+ */
37950
+ size?: number;
37951
+ };
37717
37952
  /**
37718
37953
  * 一个版本解压后的一个文件条目。
37719
37954
  */
@@ -47721,6 +47956,26 @@ export type RegistrySort = 'updated' | 'downloads';
47721
47956
  * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
47722
47957
  */
47723
47958
  export type RegistryPackageId = string;
47959
+ /**
47960
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
47961
+ */
47962
+ export type RegistryGitRef = string;
47963
+ /**
47964
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
47965
+ */
47966
+ export type RegistryGitLogLimit = number;
47967
+ /**
47968
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
47969
+ */
47970
+ export type RegistryGitLogOffset = number;
47971
+ /**
47972
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
47973
+ */
47974
+ export type RegistryGitObjectId = string;
47975
+ /**
47976
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
47977
+ */
47978
+ export type RegistryGitFilePath = string;
47724
47979
  /**
47725
47980
  * 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
47726
47981
  */
@@ -50370,6 +50625,10 @@ export type ApplyAgentVersionResponses = {
50370
50625
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
50371
50626
  */
50372
50627
  creation_source: string | null;
50628
+ /**
50629
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
50630
+ */
50631
+ managed_by: string | null;
50373
50632
  /**
50374
50633
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
50375
50634
  */
@@ -51613,6 +51872,10 @@ export type UnarchiveAgentResponses = {
51613
51872
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
51614
51873
  */
51615
51874
  creation_source: string | null;
51875
+ /**
51876
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
51877
+ */
51878
+ managed_by: string | null;
51616
51879
  /**
51617
51880
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
51618
51881
  */
@@ -55261,25 +55524,33 @@ export type ComputersFilesContentResponses = {
55261
55524
  206: Blob | File;
55262
55525
  };
55263
55526
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
55264
- export type ComputersFilesConvertData = {
55527
+ export type PreviewComputerFileData = {
55265
55528
  body?: never;
55266
55529
  path: {
55267
55530
  /**
55268
- * Computer id (cmp_...), as returned by computers.create or computers.list.
55531
+ * Computer id from computer creation or listing; a computer another tenant owns is not found.
55269
55532
  */
55270
55533
  computer_id: string;
55271
55534
  };
55272
55535
  query: {
55273
55536
  /**
55274
- * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
55537
+ * Absolute path of the file on the computer, or a /workspace/ relative path.
55275
55538
  */
55276
55539
  path: string;
55540
+ /**
55541
+ * The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake.
55542
+ */
55543
+ v?: string;
55544
+ /**
55545
+ * The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE.
55546
+ */
55547
+ variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
55277
55548
  };
55278
- url: '/agent/v1/computers/{computer_id}/files/convert';
55549
+ url: '/agent/v1/computers/{computer_id}/files/preview';
55279
55550
  };
55280
- export type ComputersFilesConvertErrors = {
55551
+ export type PreviewComputerFileErrors = {
55281
55552
  /**
55282
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55553
+ * INVALID_PARAMS: path is missing, a query parameter is unsupported, the pinned version is malformed, or PREVIEW_VARIANT_UNAVAILABLE: this file has no such variant.
55283
55554
  */
55284
55555
  400: {
55285
55556
  type: 'error';
@@ -55371,7 +55642,7 @@ export type ComputersFilesConvertErrors = {
55371
55642
  request_id: string;
55372
55643
  };
55373
55644
  /**
55374
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55645
+ * STALE_DIGEST: the file changed while its product was read; ask again.
55375
55646
  */
55376
55647
  409: {
55377
55648
  type: 'error';
@@ -55394,7 +55665,7 @@ export type ComputersFilesConvertErrors = {
55394
55665
  request_id: string;
55395
55666
  };
55396
55667
  /**
55397
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55668
+ * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
55398
55669
  */
55399
55670
  413: {
55400
55671
  type: 'error';
@@ -55463,7 +55734,7 @@ export type ComputersFilesConvertErrors = {
55463
55734
  request_id: string;
55464
55735
  };
55465
55736
  /**
55466
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55737
+ * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
55467
55738
  */
55468
55739
  503: {
55469
55740
  type: 'error';
@@ -55486,46 +55757,74 @@ export type ComputersFilesConvertErrors = {
55486
55757
  request_id: string;
55487
55758
  };
55488
55759
  };
55489
- export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
55490
- export type ComputersFilesConvertResponses = {
55760
+ export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
55761
+ export type PreviewComputerFileResponses = {
55491
55762
  /**
55492
- * The converted PDF as base64
55763
+ * The preview product, or the fallback that sends the caller to the content door.
55493
55764
  */
55494
55765
  200: {
55495
55766
  /**
55496
- * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
55767
+ * The product answered: image is a 1600 px WebP, pdf a linearized PDF, text the first 64 KiB of text or source, original the file's own bytes.
55497
55768
  */
55498
- data: string;
55769
+ variant: 'image' | 'pdf' | 'text' | 'original';
55499
55770
  /**
55500
- * Media type of the decoded bytes; always application/pdf.
55771
+ * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
55501
55772
  */
55502
- mime: 'application/pdf';
55773
+ version?: string;
55503
55774
  /**
55504
- * true when an earlier conversion of the same file content was reused.
55775
+ * Media type of the product, or of the original bytes.
55776
+ */
55777
+ mime_type?: string;
55778
+ /**
55779
+ * Size of the product in bytes.
55780
+ */
55781
+ size?: number;
55782
+ /**
55783
+ * File id of the stored product in the File service, when the product was stored.
55784
+ */
55785
+ file_id?: string;
55786
+ /**
55787
+ * Signed read address of the product; the caller streams it and caches by the version it pinned.
55788
+ */
55789
+ url?: string;
55790
+ /**
55791
+ * When the signed read address stops working.
55792
+ */
55793
+ expires_at?: string;
55794
+ /**
55795
+ * true when an existing product answered without regenerating it.
55505
55796
  */
55506
55797
  cached: boolean;
55507
- };
55508
- };
55509
- export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
55510
- export type ConnectComputerData = {
55511
- body?: {
55512
55798
  /**
55513
- * 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.
55799
+ * Present as content when no product was produced: the file is over the size threshold or the deployment has no File service. The caller reads the file through the content door.
55514
55800
  */
55515
- need?: 'light' | 'heavy';
55801
+ fallback?: 'content';
55802
+ /**
55803
+ * true only on a pre-generation request over the kind's threshold, where generation was skipped.
55804
+ */
55805
+ skipped?: boolean;
55516
55806
  };
55807
+ };
55808
+ export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
55809
+ export type ComputersFilesConvertData = {
55810
+ body?: never;
55517
55811
  path: {
55518
55812
  /**
55519
55813
  * Computer id (cmp_...), as returned by computers.create or computers.list.
55520
55814
  */
55521
55815
  computer_id: string;
55522
55816
  };
55523
- query?: never;
55524
- url: '/agent/v1/computers/{computer_id}/connect';
55817
+ query: {
55818
+ /**
55819
+ * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
55820
+ */
55821
+ path: string;
55822
+ };
55823
+ url: '/agent/v1/computers/{computer_id}/files/convert';
55525
55824
  };
55526
- export type ConnectComputerErrors = {
55825
+ export type ComputersFilesConvertErrors = {
55527
55826
  /**
55528
- * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
55827
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55529
55828
  */
55530
55829
  400: {
55531
55830
  type: 'error';
@@ -55732,57 +56031,303 @@ export type ConnectComputerErrors = {
55732
56031
  request_id: string;
55733
56032
  };
55734
56033
  };
55735
- export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
55736
- export type ConnectComputerResponses = {
56034
+ export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
56035
+ export type ComputersFilesConvertResponses = {
55737
56036
  /**
55738
- * Computer result
56037
+ * The converted PDF as base64
55739
56038
  */
55740
56039
  200: {
55741
56040
  /**
55742
- * Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
55743
- */
55744
- sandbox_id: string;
55745
- /**
55746
- * Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
55747
- */
55748
- envd_access_token: string;
55749
- /**
55750
- * Sandbox template the computer's sandbox was created from.
56041
+ * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
55751
56042
  */
55752
- template_id: string;
56043
+ data: string;
55753
56044
  /**
55754
- * Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
56045
+ * Media type of the decoded bytes; always application/pdf.
55755
56046
  */
55756
- tier: 'light' | 'heavy';
56047
+ mime: 'application/pdf';
55757
56048
  /**
55758
- * 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.
56049
+ * true when an earlier conversion of the same file content was reused.
55759
56050
  */
55760
- lease_id: string | null;
56051
+ cached: boolean;
56052
+ };
56053
+ };
56054
+ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
56055
+ export type ConnectComputerData = {
56056
+ body?: {
55761
56057
  /**
55762
- * Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
56058
+ * 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.
55763
56059
  */
55764
- lease_expires_at: string | null;
56060
+ need?: 'light' | 'heavy';
55765
56061
  };
55766
- };
55767
- export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
55768
- export type RenewComputerLeaseData = {
55769
- body?: never;
55770
56062
  path: {
55771
56063
  /**
55772
56064
  * Computer id (cmp_...), as returned by computers.create or computers.list.
55773
56065
  */
55774
56066
  computer_id: string;
55775
- /**
55776
- * lease_id from the connect response.
55777
- */
55778
- lease_id: string;
55779
56067
  };
55780
56068
  query?: never;
55781
- url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
56069
+ url: '/agent/v1/computers/{computer_id}/connect';
55782
56070
  };
55783
- export type RenewComputerLeaseErrors = {
56071
+ export type ConnectComputerErrors = {
55784
56072
  /**
55785
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
56073
+ * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
56074
+ */
56075
+ 400: {
56076
+ type: 'error';
56077
+ error: {
56078
+ /**
56079
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56080
+ */
56081
+ type: string;
56082
+ message: string;
56083
+ code: string;
56084
+ retryable: boolean;
56085
+ /**
56086
+ * How to recover, for computer failures.
56087
+ */
56088
+ hint?: string;
56089
+ };
56090
+ /**
56091
+ * Equals the X-Request-Id response header.
56092
+ */
56093
+ request_id: string;
56094
+ };
56095
+ /**
56096
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56097
+ */
56098
+ 401: {
56099
+ type: 'error';
56100
+ error: {
56101
+ /**
56102
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56103
+ */
56104
+ type: string;
56105
+ message: string;
56106
+ code: string;
56107
+ retryable: boolean;
56108
+ /**
56109
+ * How to recover, for computer failures.
56110
+ */
56111
+ hint?: string;
56112
+ };
56113
+ /**
56114
+ * Equals the X-Request-Id response header.
56115
+ */
56116
+ request_id: string;
56117
+ };
56118
+ /**
56119
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56120
+ */
56121
+ 403: {
56122
+ type: 'error';
56123
+ error: {
56124
+ /**
56125
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56126
+ */
56127
+ type: string;
56128
+ message: string;
56129
+ code: string;
56130
+ retryable: boolean;
56131
+ /**
56132
+ * How to recover, for computer failures.
56133
+ */
56134
+ hint?: string;
56135
+ };
56136
+ /**
56137
+ * Equals the X-Request-Id response header.
56138
+ */
56139
+ request_id: string;
56140
+ };
56141
+ /**
56142
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
56143
+ */
56144
+ 404: {
56145
+ type: 'error';
56146
+ error: {
56147
+ /**
56148
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56149
+ */
56150
+ type: string;
56151
+ message: string;
56152
+ code: string;
56153
+ retryable: boolean;
56154
+ /**
56155
+ * How to recover, for computer failures.
56156
+ */
56157
+ hint?: string;
56158
+ };
56159
+ /**
56160
+ * Equals the X-Request-Id response header.
56161
+ */
56162
+ request_id: string;
56163
+ };
56164
+ /**
56165
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56166
+ */
56167
+ 409: {
56168
+ type: 'error';
56169
+ error: {
56170
+ /**
56171
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56172
+ */
56173
+ type: string;
56174
+ message: string;
56175
+ code: string;
56176
+ retryable: boolean;
56177
+ /**
56178
+ * How to recover, for computer failures.
56179
+ */
56180
+ hint?: string;
56181
+ };
56182
+ /**
56183
+ * Equals the X-Request-Id response header.
56184
+ */
56185
+ request_id: string;
56186
+ };
56187
+ /**
56188
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56189
+ */
56190
+ 413: {
56191
+ type: 'error';
56192
+ error: {
56193
+ /**
56194
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56195
+ */
56196
+ type: string;
56197
+ message: string;
56198
+ code: string;
56199
+ retryable: boolean;
56200
+ /**
56201
+ * How to recover, for computer failures.
56202
+ */
56203
+ hint?: string;
56204
+ };
56205
+ /**
56206
+ * Equals the X-Request-Id response header.
56207
+ */
56208
+ request_id: string;
56209
+ };
56210
+ /**
56211
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56212
+ */
56213
+ 429: {
56214
+ type: 'error';
56215
+ error: {
56216
+ /**
56217
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56218
+ */
56219
+ type: string;
56220
+ message: string;
56221
+ code: string;
56222
+ retryable: boolean;
56223
+ /**
56224
+ * How to recover, for computer failures.
56225
+ */
56226
+ hint?: string;
56227
+ };
56228
+ /**
56229
+ * Equals the X-Request-Id response header.
56230
+ */
56231
+ request_id: string;
56232
+ };
56233
+ /**
56234
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56235
+ */
56236
+ 500: {
56237
+ type: 'error';
56238
+ error: {
56239
+ /**
56240
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56241
+ */
56242
+ type: string;
56243
+ message: string;
56244
+ code: string;
56245
+ retryable: boolean;
56246
+ /**
56247
+ * How to recover, for computer failures.
56248
+ */
56249
+ hint?: string;
56250
+ };
56251
+ /**
56252
+ * Equals the X-Request-Id response header.
56253
+ */
56254
+ request_id: string;
56255
+ };
56256
+ /**
56257
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56258
+ */
56259
+ 503: {
56260
+ type: 'error';
56261
+ error: {
56262
+ /**
56263
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56264
+ */
56265
+ type: string;
56266
+ message: string;
56267
+ code: string;
56268
+ retryable: boolean;
56269
+ /**
56270
+ * How to recover, for computer failures.
56271
+ */
56272
+ hint?: string;
56273
+ };
56274
+ /**
56275
+ * Equals the X-Request-Id response header.
56276
+ */
56277
+ request_id: string;
56278
+ };
56279
+ };
56280
+ export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
56281
+ export type ConnectComputerResponses = {
56282
+ /**
56283
+ * Computer result
56284
+ */
56285
+ 200: {
56286
+ /**
56287
+ * Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
56288
+ */
56289
+ sandbox_id: string;
56290
+ /**
56291
+ * Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
56292
+ */
56293
+ envd_access_token: string;
56294
+ /**
56295
+ * Sandbox template the computer's sandbox was created from.
56296
+ */
56297
+ template_id: string;
56298
+ /**
56299
+ * Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
56300
+ */
56301
+ tier: 'light' | 'heavy';
56302
+ /**
56303
+ * 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.
56304
+ */
56305
+ lease_id: string | null;
56306
+ /**
56307
+ * Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
56308
+ */
56309
+ lease_expires_at: string | null;
56310
+ };
56311
+ };
56312
+ export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
56313
+ export type RenewComputerLeaseData = {
56314
+ body?: never;
56315
+ path: {
56316
+ /**
56317
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
56318
+ */
56319
+ computer_id: string;
56320
+ /**
56321
+ * lease_id from the connect response.
56322
+ */
56323
+ lease_id: string;
56324
+ };
56325
+ query?: never;
56326
+ url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
56327
+ };
56328
+ export type RenewComputerLeaseErrors = {
56329
+ /**
56330
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55786
56331
  */
55787
56332
  400: {
55788
56333
  type: 'error';
@@ -58250,6 +58795,1765 @@ export type ForkSessionResponses = {
58250
58795
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
58251
58796
  */
58252
58797
  cwd: string;
58798
+ /**
58799
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
58800
+ */
58801
+ workspace?: {
58802
+ /**
58803
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
58804
+ */
58805
+ kind: 'shared' | 'isolated';
58806
+ /**
58807
+ * The worktree's own folder; present only when kind is isolated.
58808
+ */
58809
+ path?: string;
58810
+ /**
58811
+ * The worktree's branch; present only when kind is isolated.
58812
+ */
58813
+ branch?: string;
58814
+ };
58815
+ /**
58816
+ * 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.
58817
+ */
58818
+ computer_id?: string;
58819
+ /**
58820
+ * Praxis extension: the currently selected session model.
58821
+ */
58822
+ model?: {
58823
+ /**
58824
+ * Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource.
58825
+ */
58826
+ id: string;
58827
+ /**
58828
+ * Supported thinking controls, or null when capability is unknown or unavailable. efforts lists selectable strengths; can_disable permits none; default_effort is nullable.
58829
+ */
58830
+ thinking: {
58831
+ /**
58832
+ * Thinking levels the model accepts as effort, in ascending order.
58833
+ */
58834
+ efforts: Array<'low' | 'medium' | 'high' | 'xhigh' | 'max'>;
58835
+ /**
58836
+ * Whether effort none (thinking off) is allowed for this model.
58837
+ */
58838
+ can_disable: boolean;
58839
+ /**
58840
+ * Thinking level used when neither the session nor the agent selects one; null when the model states no default.
58841
+ */
58842
+ default_effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
58843
+ } | null;
58844
+ };
58845
+ /**
58846
+ * 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.
58847
+ */
58848
+ thinking?: {
58849
+ /**
58850
+ * 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.
58851
+ */
58852
+ effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
58853
+ } | null;
58854
+ /**
58855
+ * Praxis extension: source of a forked session; null for other sessions. Available only on /agent/v1.
58856
+ */
58857
+ forked_from?: {
58858
+ /**
58859
+ * Id of the parent session this session was forked from; it is left unchanged by the fork.
58860
+ */
58861
+ session_id: string;
58862
+ /**
58863
+ * message_id of the agent message in the parent session up to which the conversation was copied.
58864
+ */
58865
+ message_id: string;
58866
+ } | null;
58867
+ /**
58868
+ * 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.
58869
+ */
58870
+ readonly external_user_id: string | null;
58871
+ /**
58872
+ * 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.
58873
+ */
58874
+ readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
58875
+ };
58876
+ };
58877
+ export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
58878
+ export type RenameSessionData = {
58879
+ body: {
58880
+ /**
58881
+ * The session's new short name: Han characters, lowercase ASCII letters, digits and hyphens, at most 32 columns (a Han character counts as two), never the reserved word main. Surrounding whitespace is trimmed and uppercase is folded to lowercase.
58882
+ */
58883
+ name: string;
58884
+ };
58885
+ path: {
58886
+ /**
58887
+ * Session id from session creation or listing. The reserved name main is not renameable.
58888
+ */
58889
+ session_id: string;
58890
+ };
58891
+ query?: never;
58892
+ url: '/agent/v1/sessions/{session_id}/name';
58893
+ };
58894
+ export type RenameSessionErrors = {
58895
+ /**
58896
+ * INVALID_PARAMS: name is missing or empty, wider than the limit, carries a character the rule drops, or is the reserved main; the main session is always main and cannot be renamed.
58897
+ */
58898
+ 400: unknown;
58899
+ /**
58900
+ * Authentication required.
58901
+ */
58902
+ 401: unknown;
58903
+ /**
58904
+ * 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.
58905
+ */
58906
+ 403: AgentError;
58907
+ /**
58908
+ * Session not found or not writable by this caller.
58909
+ */
58910
+ 404: unknown;
58911
+ /**
58912
+ * Agent service failed
58913
+ */
58914
+ 502: unknown;
58915
+ /**
58916
+ * Agent service unavailable
58917
+ */
58918
+ 503: unknown;
58919
+ };
58920
+ export type RenameSessionError = RenameSessionErrors[keyof RenameSessionErrors];
58921
+ export type RenameSessionResponses = {
58922
+ /**
58923
+ * The session under its new name; a name another of this person's sessions already holds comes back with a numeric suffix.
58924
+ */
58925
+ 200: {
58926
+ /**
58927
+ * Session id (sesn_...). Pass it as session_id in every session call.
58928
+ */
58929
+ id: string;
58930
+ /**
58931
+ * Resolved `agent` definition for a `session`. Snapshot of the `agent` at
58932
+ * `session` creation time.
58933
+ */
58934
+ agent: {
58935
+ /**
58936
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
58937
+ */
58938
+ id: string;
58939
+ /**
58940
+ * Free-text description of what the agent is for; null when none was set.
58941
+ */
58942
+ description: null | string;
58943
+ /**
58944
+ * Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
58945
+ */
58946
+ mcp_servers: Array<{
58947
+ /**
58948
+ * Streamable HTTP transport.
58949
+ */
58950
+ type: 'url';
58951
+ /**
58952
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58953
+ */
58954
+ name: string;
58955
+ /**
58956
+ * HTTP or HTTPS MCP server endpoint.
58957
+ */
58958
+ url: string;
58959
+ /**
58960
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
58961
+ */
58962
+ headers?: {
58963
+ [key: string]: string;
58964
+ };
58965
+ /**
58966
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
58967
+ */
58968
+ timeout_ms?: number;
58969
+ } | {
58970
+ /**
58971
+ * Legacy SSE transport.
58972
+ */
58973
+ type: 'sse';
58974
+ /**
58975
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58976
+ */
58977
+ name: string;
58978
+ /**
58979
+ * HTTP or HTTPS MCP server endpoint.
58980
+ */
58981
+ url: string;
58982
+ /**
58983
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
58984
+ */
58985
+ headers?: {
58986
+ [key: string]: string;
58987
+ };
58988
+ /**
58989
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
58990
+ */
58991
+ timeout_ms?: number;
58992
+ } | {
58993
+ /**
58994
+ * Run a command on the agent computer.
58995
+ */
58996
+ type: 'stdio';
58997
+ /**
58998
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58999
+ */
59000
+ name: string;
59001
+ /**
59002
+ * Executable command on the agent computer.
59003
+ */
59004
+ command: string;
59005
+ /**
59006
+ * Command arguments; omitted means no arguments.
59007
+ */
59008
+ args?: Array<string>;
59009
+ /**
59010
+ * Praxis extension: environment variables for the command on the agent computer.
59011
+ */
59012
+ env?: {
59013
+ [key: string]: string;
59014
+ };
59015
+ /**
59016
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59017
+ */
59018
+ timeout_ms?: number;
59019
+ }>;
59020
+ /**
59021
+ * Model identifier and configuration.
59022
+ */
59023
+ model: {
59024
+ /**
59025
+ * 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.
59026
+ */
59027
+ id: string;
59028
+ /**
59029
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
59030
+ * Messages call the session makes.
59031
+ */
59032
+ effort?: {
59033
+ /**
59034
+ * Always `low`. Lowest reasoning effort of the supported levels.
59035
+ */
59036
+ type: 'low';
59037
+ } | {
59038
+ /**
59039
+ * Always `medium`. Middle reasoning effort.
59040
+ */
59041
+ type: 'medium';
59042
+ } | {
59043
+ /**
59044
+ * Always `high`. High reasoning effort.
59045
+ */
59046
+ type: 'high';
59047
+ } | {
59048
+ /**
59049
+ * Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
59050
+ */
59051
+ type: 'xhigh';
59052
+ } | {
59053
+ /**
59054
+ * Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
59055
+ */
59056
+ type: 'max';
59057
+ };
59058
+ /**
59059
+ * Geographic region for model inference. When unset, requests fall through to the
59060
+ * workspace's default_inference_geo.
59061
+ */
59062
+ inference_geo?: string;
59063
+ /**
59064
+ * Inference speed mode. `fast` provides significantly faster output token
59065
+ * generation at premium pricing. Not all models support `fast`; invalid
59066
+ * combinations are rejected at create time.
59067
+ */
59068
+ speed?: 'standard' | 'fast';
59069
+ /**
59070
+ * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
59071
+ */
59072
+ settings?: {
59073
+ /**
59074
+ * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
59075
+ */
59076
+ reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
59077
+ /**
59078
+ * 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.
59079
+ */
59080
+ max_output_tokens?: number;
59081
+ };
59082
+ };
59083
+ /**
59084
+ * Resolved coordinator topology with full agent definitions for each roster
59085
+ * member.
59086
+ */
59087
+ multiagent: null | {
59088
+ /**
59089
+ * Full `agent` definitions the coordinator may spawn as session threads.
59090
+ */
59091
+ agents: Array<{
59092
+ /**
59093
+ * The advisor model id.
59094
+ */
59095
+ model: string;
59096
+ /**
59097
+ * Always `advisor`. An advisor whose model is consulted for advice in a separate thread (at most one per coordinator).
59098
+ */
59099
+ type: 'advisor';
59100
+ } | {
59101
+ /**
59102
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
59103
+ */
59104
+ id: string;
59105
+ /**
59106
+ * Free-text description of what the agent is for; null when none was set.
59107
+ */
59108
+ description: null | string;
59109
+ /**
59110
+ * Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
59111
+ */
59112
+ mcp_servers: Array<{
59113
+ /**
59114
+ * Streamable HTTP transport.
59115
+ */
59116
+ type: 'url';
59117
+ /**
59118
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59119
+ */
59120
+ name: string;
59121
+ /**
59122
+ * HTTP or HTTPS MCP server endpoint.
59123
+ */
59124
+ url: string;
59125
+ /**
59126
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
59127
+ */
59128
+ headers?: {
59129
+ [key: string]: string;
59130
+ };
59131
+ /**
59132
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59133
+ */
59134
+ timeout_ms?: number;
59135
+ } | {
59136
+ /**
59137
+ * Legacy SSE transport.
59138
+ */
59139
+ type: 'sse';
59140
+ /**
59141
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59142
+ */
59143
+ name: string;
59144
+ /**
59145
+ * HTTP or HTTPS MCP server endpoint.
59146
+ */
59147
+ url: string;
59148
+ /**
59149
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
59150
+ */
59151
+ headers?: {
59152
+ [key: string]: string;
59153
+ };
59154
+ /**
59155
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59156
+ */
59157
+ timeout_ms?: number;
59158
+ } | {
59159
+ /**
59160
+ * Run a command on the agent computer.
59161
+ */
59162
+ type: 'stdio';
59163
+ /**
59164
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59165
+ */
59166
+ name: string;
59167
+ /**
59168
+ * Executable command on the agent computer.
59169
+ */
59170
+ command: string;
59171
+ /**
59172
+ * Command arguments; omitted means no arguments.
59173
+ */
59174
+ args?: Array<string>;
59175
+ /**
59176
+ * Praxis extension: environment variables for the command on the agent computer.
59177
+ */
59178
+ env?: {
59179
+ [key: string]: string;
59180
+ };
59181
+ /**
59182
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59183
+ */
59184
+ timeout_ms?: number;
59185
+ }>;
59186
+ /**
59187
+ * Model identifier and configuration.
59188
+ */
59189
+ model: {
59190
+ /**
59191
+ * 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.
59192
+ */
59193
+ id: string;
59194
+ /**
59195
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
59196
+ * Messages call the session makes.
59197
+ */
59198
+ effort?: {
59199
+ /**
59200
+ * Always `low`. Lowest reasoning effort of the supported levels.
59201
+ */
59202
+ type: 'low';
59203
+ } | {
59204
+ /**
59205
+ * Always `medium`. Middle reasoning effort.
59206
+ */
59207
+ type: 'medium';
59208
+ } | {
59209
+ /**
59210
+ * Always `high`. High reasoning effort.
59211
+ */
59212
+ type: 'high';
59213
+ } | {
59214
+ /**
59215
+ * Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
59216
+ */
59217
+ type: 'xhigh';
59218
+ } | {
59219
+ /**
59220
+ * Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
59221
+ */
59222
+ type: 'max';
59223
+ };
59224
+ /**
59225
+ * Geographic region for model inference. When unset, requests fall through to the
59226
+ * workspace's default_inference_geo.
59227
+ */
59228
+ inference_geo?: string;
59229
+ /**
59230
+ * Inference speed mode. `fast` provides significantly faster output token
59231
+ * generation at premium pricing. Not all models support `fast`; invalid
59232
+ * combinations are rejected at create time.
59233
+ */
59234
+ speed?: 'standard' | 'fast';
59235
+ };
59236
+ /**
59237
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
59238
+ */
59239
+ name: string;
59240
+ /**
59241
+ * 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.
59242
+ */
59243
+ skills: Array<{
59244
+ /**
59245
+ * Id of the skill to attach.
59246
+ */
59247
+ skill_id: string;
59248
+ /**
59249
+ * Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
59250
+ */
59251
+ type: 'anthropic';
59252
+ /**
59253
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59254
+ */
59255
+ version: string;
59256
+ } | {
59257
+ /**
59258
+ * Id of the skill to attach.
59259
+ */
59260
+ skill_id: string;
59261
+ /**
59262
+ * Always `custom`. A skill created by you, identified by skill_id.
59263
+ */
59264
+ type: 'custom';
59265
+ /**
59266
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59267
+ */
59268
+ version: string;
59269
+ }>;
59270
+ /**
59271
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
59272
+ */
59273
+ system: null | string;
59274
+ /**
59275
+ * 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.
59276
+ */
59277
+ tools: Array<{
59278
+ /**
59279
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59280
+ */
59281
+ configs: Array<{
59282
+ /**
59283
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59284
+ */
59285
+ enabled: boolean;
59286
+ /**
59287
+ * Name of the native tool this entry configures.
59288
+ */
59289
+ name: 'bash';
59290
+ /**
59291
+ * Permission policy for tool execution.
59292
+ */
59293
+ permission_policy: {
59294
+ /**
59295
+ * Always `always_allow`. Calls run without asking.
59296
+ */
59297
+ type: 'always_allow';
59298
+ } | {
59299
+ /**
59300
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59301
+ */
59302
+ type: 'always_ask';
59303
+ } | {
59304
+ /**
59305
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59306
+ */
59307
+ type: 'auto';
59308
+ };
59309
+ /**
59310
+ * Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
59311
+ */
59312
+ type: 'bash';
59313
+ } | {
59314
+ /**
59315
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59316
+ */
59317
+ enabled: boolean;
59318
+ /**
59319
+ * Name of the native tool this entry configures.
59320
+ */
59321
+ name: 'edit';
59322
+ /**
59323
+ * Permission policy for tool execution.
59324
+ */
59325
+ permission_policy: {
59326
+ /**
59327
+ * Always `always_allow`. Calls run without asking.
59328
+ */
59329
+ type: 'always_allow';
59330
+ } | {
59331
+ /**
59332
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59333
+ */
59334
+ type: 'always_ask';
59335
+ } | {
59336
+ /**
59337
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59338
+ */
59339
+ type: 'auto';
59340
+ };
59341
+ /**
59342
+ * Always `edit`. Selects the edit tool, which changes an existing file.
59343
+ */
59344
+ type: 'edit';
59345
+ } | {
59346
+ /**
59347
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59348
+ */
59349
+ enabled: boolean;
59350
+ /**
59351
+ * Name of the native tool this entry configures.
59352
+ */
59353
+ name: 'read';
59354
+ /**
59355
+ * Permission policy for tool execution.
59356
+ */
59357
+ permission_policy: {
59358
+ /**
59359
+ * Always `always_allow`. Calls run without asking.
59360
+ */
59361
+ type: 'always_allow';
59362
+ } | {
59363
+ /**
59364
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59365
+ */
59366
+ type: 'always_ask';
59367
+ } | {
59368
+ /**
59369
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59370
+ */
59371
+ type: 'auto';
59372
+ };
59373
+ /**
59374
+ * Always `read`. Selects the read tool, which reads a file.
59375
+ */
59376
+ type: 'read';
59377
+ } | {
59378
+ /**
59379
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59380
+ */
59381
+ enabled: boolean;
59382
+ /**
59383
+ * Name of the native tool this entry configures.
59384
+ */
59385
+ name: 'write';
59386
+ /**
59387
+ * Permission policy for tool execution.
59388
+ */
59389
+ permission_policy: {
59390
+ /**
59391
+ * Always `always_allow`. Calls run without asking.
59392
+ */
59393
+ type: 'always_allow';
59394
+ } | {
59395
+ /**
59396
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59397
+ */
59398
+ type: 'always_ask';
59399
+ } | {
59400
+ /**
59401
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59402
+ */
59403
+ type: 'auto';
59404
+ };
59405
+ /**
59406
+ * Always `write`. Selects the write tool, which writes a file.
59407
+ */
59408
+ type: 'write';
59409
+ } | {
59410
+ /**
59411
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59412
+ */
59413
+ enabled: boolean;
59414
+ /**
59415
+ * Name of the native tool this entry configures.
59416
+ */
59417
+ name: 'glob';
59418
+ /**
59419
+ * Permission policy for tool execution.
59420
+ */
59421
+ permission_policy: {
59422
+ /**
59423
+ * Always `always_allow`. Calls run without asking.
59424
+ */
59425
+ type: 'always_allow';
59426
+ } | {
59427
+ /**
59428
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59429
+ */
59430
+ type: 'always_ask';
59431
+ } | {
59432
+ /**
59433
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59434
+ */
59435
+ type: 'auto';
59436
+ };
59437
+ /**
59438
+ * Always `glob`. Selects the glob tool, which finds files by name pattern.
59439
+ */
59440
+ type: 'glob';
59441
+ } | {
59442
+ /**
59443
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59444
+ */
59445
+ enabled: boolean;
59446
+ /**
59447
+ * Name of the native tool this entry configures.
59448
+ */
59449
+ name: 'grep';
59450
+ /**
59451
+ * Permission policy for tool execution.
59452
+ */
59453
+ permission_policy: {
59454
+ /**
59455
+ * Always `always_allow`. Calls run without asking.
59456
+ */
59457
+ type: 'always_allow';
59458
+ } | {
59459
+ /**
59460
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59461
+ */
59462
+ type: 'always_ask';
59463
+ } | {
59464
+ /**
59465
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59466
+ */
59467
+ type: 'auto';
59468
+ };
59469
+ /**
59470
+ * Always `grep`. Selects the grep tool, which searches file contents.
59471
+ */
59472
+ type: 'grep';
59473
+ } | {
59474
+ /**
59475
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59476
+ */
59477
+ enabled: boolean;
59478
+ /**
59479
+ * Name of the native tool this entry configures.
59480
+ */
59481
+ name: 'web_fetch';
59482
+ /**
59483
+ * Permission policy for tool execution.
59484
+ */
59485
+ permission_policy: {
59486
+ /**
59487
+ * Always `always_allow`. Calls run without asking.
59488
+ */
59489
+ type: 'always_allow';
59490
+ } | {
59491
+ /**
59492
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59493
+ */
59494
+ type: 'always_ask';
59495
+ } | {
59496
+ /**
59497
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59498
+ */
59499
+ type: 'auto';
59500
+ };
59501
+ /**
59502
+ * Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
59503
+ */
59504
+ type: 'web_fetch';
59505
+ /**
59506
+ * 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.
59507
+ */
59508
+ allowed_domains?: Array<string>;
59509
+ /**
59510
+ * 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.
59511
+ */
59512
+ blocked_domains?: Array<string>;
59513
+ /**
59514
+ * 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.
59515
+ */
59516
+ max_content_tokens?: null | number;
59517
+ } | {
59518
+ /**
59519
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59520
+ */
59521
+ enabled: boolean;
59522
+ /**
59523
+ * Name of the native tool this entry configures.
59524
+ */
59525
+ name: 'web_search';
59526
+ /**
59527
+ * Permission policy for tool execution.
59528
+ */
59529
+ permission_policy: {
59530
+ /**
59531
+ * Always `always_allow`. Calls run without asking.
59532
+ */
59533
+ type: 'always_allow';
59534
+ } | {
59535
+ /**
59536
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59537
+ */
59538
+ type: 'always_ask';
59539
+ } | {
59540
+ /**
59541
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59542
+ */
59543
+ type: 'auto';
59544
+ };
59545
+ /**
59546
+ * Always `web_search`. Selects the web_search tool, which searches the web.
59547
+ */
59548
+ type: 'web_search';
59549
+ /**
59550
+ * 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.
59551
+ */
59552
+ allowed_domains?: Array<string>;
59553
+ /**
59554
+ * 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.
59555
+ */
59556
+ blocked_domains?: Array<string>;
59557
+ /**
59558
+ * Approximate user location for search result localization.
59559
+ */
59560
+ user_location?: null | {
59561
+ /**
59562
+ * Location precision. Only "approximate" is supported.
59563
+ */
59564
+ type: 'approximate';
59565
+ /**
59566
+ * City name.
59567
+ */
59568
+ city?: null | string;
59569
+ /**
59570
+ * Two-letter ISO 3166-1 country code, uppercase.
59571
+ */
59572
+ country?: null | string;
59573
+ /**
59574
+ * Region or state name.
59575
+ */
59576
+ region?: null | string;
59577
+ /**
59578
+ * IANA timezone identifier, e.g. "America/Los_Angeles".
59579
+ */
59580
+ timezone?: null | string;
59581
+ };
59582
+ } | {
59583
+ /**
59584
+ * Name of the native tool this entry configures.
59585
+ */
59586
+ name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
59587
+ /**
59588
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59589
+ */
59590
+ enabled: boolean;
59591
+ /**
59592
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
59593
+ */
59594
+ permission_policy: {
59595
+ /**
59596
+ * Permission policy kind.
59597
+ */
59598
+ type: 'always_allow' | 'always_ask';
59599
+ };
59600
+ }>;
59601
+ /**
59602
+ * Resolved default configuration for agent tools.
59603
+ */
59604
+ default_config: {
59605
+ /**
59606
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
59607
+ */
59608
+ enabled: boolean;
59609
+ /**
59610
+ * Permission policy for tool execution.
59611
+ */
59612
+ permission_policy: {
59613
+ /**
59614
+ * Always `always_allow`. Calls run without asking.
59615
+ */
59616
+ type: 'always_allow';
59617
+ } | {
59618
+ /**
59619
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59620
+ */
59621
+ type: 'always_ask';
59622
+ } | {
59623
+ /**
59624
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59625
+ */
59626
+ type: 'auto';
59627
+ };
59628
+ };
59629
+ /**
59630
+ * 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).
59631
+ */
59632
+ type: 'agent_toolset_20260401';
59633
+ } | {
59634
+ /**
59635
+ * Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
59636
+ */
59637
+ type: 'mcp_toolset';
59638
+ /**
59639
+ * Name of the MCP server in mcp_servers whose tools this entry exposes.
59640
+ */
59641
+ mcp_server_name: string;
59642
+ /**
59643
+ * Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
59644
+ */
59645
+ default_config?: {
59646
+ /**
59647
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
59648
+ */
59649
+ enabled?: boolean | null;
59650
+ /**
59651
+ * Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
59652
+ */
59653
+ permission_policy?: null | {
59654
+ /**
59655
+ * Permission policy kind.
59656
+ */
59657
+ type: 'always_allow' | 'always_ask';
59658
+ };
59659
+ } | null;
59660
+ /**
59661
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59662
+ */
59663
+ configs?: Array<{
59664
+ /**
59665
+ * Bare tool name reported by the MCP server.
59666
+ */
59667
+ name: string;
59668
+ /**
59669
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59670
+ */
59671
+ enabled?: boolean | null;
59672
+ /**
59673
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
59674
+ */
59675
+ permission_policy?: null | {
59676
+ /**
59677
+ * Permission policy kind.
59678
+ */
59679
+ type: 'always_allow' | 'always_ask';
59680
+ };
59681
+ }> | null;
59682
+ } | {
59683
+ /**
59684
+ * What the custom tool does and when the model should call it.
59685
+ */
59686
+ description: string;
59687
+ /**
59688
+ * JSON Schema for custom tool input parameters.
59689
+ */
59690
+ input_schema: {
59691
+ /**
59692
+ * Always `object`. The input is a JSON object.
59693
+ */
59694
+ type: 'object';
59695
+ /**
59696
+ * JSON Schema of each input property, keyed by property name.
59697
+ */
59698
+ properties?: null | {
59699
+ [key: string]: unknown;
59700
+ };
59701
+ /**
59702
+ * Names of the input properties the model must supply.
59703
+ */
59704
+ required?: null | Array<string>;
59705
+ [key: string]: unknown;
59706
+ };
59707
+ /**
59708
+ * Name of the custom tool, as the model sees and calls it.
59709
+ */
59710
+ name: string;
59711
+ /**
59712
+ * Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
59713
+ */
59714
+ type: 'custom';
59715
+ }>;
59716
+ /**
59717
+ * Always `agent`. A roster member that refers to an agent by id and pinned version.
59718
+ */
59719
+ type: 'agent';
59720
+ /**
59721
+ * 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.
59722
+ */
59723
+ version: number;
59724
+ }>;
59725
+ /**
59726
+ * Always `coordinator`. The agent coordinates the roster in agents and can delegate to its members.
59727
+ */
59728
+ type: 'coordinator';
59729
+ };
59730
+ /**
59731
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
59732
+ */
59733
+ name: string;
59734
+ /**
59735
+ * 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.
59736
+ */
59737
+ skills: Array<{
59738
+ /**
59739
+ * Id of the skill to attach.
59740
+ */
59741
+ skill_id: string;
59742
+ /**
59743
+ * Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
59744
+ */
59745
+ type: 'anthropic';
59746
+ /**
59747
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59748
+ */
59749
+ version: string;
59750
+ } | {
59751
+ /**
59752
+ * Id of the skill to attach.
59753
+ */
59754
+ skill_id: string;
59755
+ /**
59756
+ * Always `custom`. A skill created by you, identified by skill_id.
59757
+ */
59758
+ type: 'custom';
59759
+ /**
59760
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59761
+ */
59762
+ version: string;
59763
+ }>;
59764
+ /**
59765
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
59766
+ */
59767
+ system: null | string;
59768
+ /**
59769
+ * 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.
59770
+ */
59771
+ tools: Array<{
59772
+ /**
59773
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59774
+ */
59775
+ configs: Array<{
59776
+ /**
59777
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59778
+ */
59779
+ enabled: boolean;
59780
+ /**
59781
+ * Name of the native tool this entry configures.
59782
+ */
59783
+ name: 'bash';
59784
+ /**
59785
+ * Permission policy for tool execution.
59786
+ */
59787
+ permission_policy: {
59788
+ /**
59789
+ * Always `always_allow`. Calls run without asking.
59790
+ */
59791
+ type: 'always_allow';
59792
+ } | {
59793
+ /**
59794
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59795
+ */
59796
+ type: 'always_ask';
59797
+ } | {
59798
+ /**
59799
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59800
+ */
59801
+ type: 'auto';
59802
+ };
59803
+ /**
59804
+ * Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
59805
+ */
59806
+ type: 'bash';
59807
+ } | {
59808
+ /**
59809
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59810
+ */
59811
+ enabled: boolean;
59812
+ /**
59813
+ * Name of the native tool this entry configures.
59814
+ */
59815
+ name: 'edit';
59816
+ /**
59817
+ * Permission policy for tool execution.
59818
+ */
59819
+ permission_policy: {
59820
+ /**
59821
+ * Always `always_allow`. Calls run without asking.
59822
+ */
59823
+ type: 'always_allow';
59824
+ } | {
59825
+ /**
59826
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59827
+ */
59828
+ type: 'always_ask';
59829
+ } | {
59830
+ /**
59831
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59832
+ */
59833
+ type: 'auto';
59834
+ };
59835
+ /**
59836
+ * Always `edit`. Selects the edit tool, which changes an existing file.
59837
+ */
59838
+ type: 'edit';
59839
+ } | {
59840
+ /**
59841
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59842
+ */
59843
+ enabled: boolean;
59844
+ /**
59845
+ * Name of the native tool this entry configures.
59846
+ */
59847
+ name: 'read';
59848
+ /**
59849
+ * Permission policy for tool execution.
59850
+ */
59851
+ permission_policy: {
59852
+ /**
59853
+ * Always `always_allow`. Calls run without asking.
59854
+ */
59855
+ type: 'always_allow';
59856
+ } | {
59857
+ /**
59858
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59859
+ */
59860
+ type: 'always_ask';
59861
+ } | {
59862
+ /**
59863
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59864
+ */
59865
+ type: 'auto';
59866
+ };
59867
+ /**
59868
+ * Always `read`. Selects the read tool, which reads a file.
59869
+ */
59870
+ type: 'read';
59871
+ } | {
59872
+ /**
59873
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59874
+ */
59875
+ enabled: boolean;
59876
+ /**
59877
+ * Name of the native tool this entry configures.
59878
+ */
59879
+ name: 'write';
59880
+ /**
59881
+ * Permission policy for tool execution.
59882
+ */
59883
+ permission_policy: {
59884
+ /**
59885
+ * Always `always_allow`. Calls run without asking.
59886
+ */
59887
+ type: 'always_allow';
59888
+ } | {
59889
+ /**
59890
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59891
+ */
59892
+ type: 'always_ask';
59893
+ } | {
59894
+ /**
59895
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59896
+ */
59897
+ type: 'auto';
59898
+ };
59899
+ /**
59900
+ * Always `write`. Selects the write tool, which writes a file.
59901
+ */
59902
+ type: 'write';
59903
+ } | {
59904
+ /**
59905
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59906
+ */
59907
+ enabled: boolean;
59908
+ /**
59909
+ * Name of the native tool this entry configures.
59910
+ */
59911
+ name: 'glob';
59912
+ /**
59913
+ * Permission policy for tool execution.
59914
+ */
59915
+ permission_policy: {
59916
+ /**
59917
+ * Always `always_allow`. Calls run without asking.
59918
+ */
59919
+ type: 'always_allow';
59920
+ } | {
59921
+ /**
59922
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59923
+ */
59924
+ type: 'always_ask';
59925
+ } | {
59926
+ /**
59927
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59928
+ */
59929
+ type: 'auto';
59930
+ };
59931
+ /**
59932
+ * Always `glob`. Selects the glob tool, which finds files by name pattern.
59933
+ */
59934
+ type: 'glob';
59935
+ } | {
59936
+ /**
59937
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59938
+ */
59939
+ enabled: boolean;
59940
+ /**
59941
+ * Name of the native tool this entry configures.
59942
+ */
59943
+ name: 'grep';
59944
+ /**
59945
+ * Permission policy for tool execution.
59946
+ */
59947
+ permission_policy: {
59948
+ /**
59949
+ * Always `always_allow`. Calls run without asking.
59950
+ */
59951
+ type: 'always_allow';
59952
+ } | {
59953
+ /**
59954
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59955
+ */
59956
+ type: 'always_ask';
59957
+ } | {
59958
+ /**
59959
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59960
+ */
59961
+ type: 'auto';
59962
+ };
59963
+ /**
59964
+ * Always `grep`. Selects the grep tool, which searches file contents.
59965
+ */
59966
+ type: 'grep';
59967
+ } | {
59968
+ /**
59969
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59970
+ */
59971
+ enabled: boolean;
59972
+ /**
59973
+ * Name of the native tool this entry configures.
59974
+ */
59975
+ name: 'web_fetch';
59976
+ /**
59977
+ * Permission policy for tool execution.
59978
+ */
59979
+ permission_policy: {
59980
+ /**
59981
+ * Always `always_allow`. Calls run without asking.
59982
+ */
59983
+ type: 'always_allow';
59984
+ } | {
59985
+ /**
59986
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59987
+ */
59988
+ type: 'always_ask';
59989
+ } | {
59990
+ /**
59991
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59992
+ */
59993
+ type: 'auto';
59994
+ };
59995
+ /**
59996
+ * Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
59997
+ */
59998
+ type: 'web_fetch';
59999
+ /**
60000
+ * 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.
60001
+ */
60002
+ allowed_domains?: Array<string>;
60003
+ /**
60004
+ * 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.
60005
+ */
60006
+ blocked_domains?: Array<string>;
60007
+ /**
60008
+ * 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.
60009
+ */
60010
+ max_content_tokens?: null | number;
60011
+ } | {
60012
+ /**
60013
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
60014
+ */
60015
+ enabled: boolean;
60016
+ /**
60017
+ * Name of the native tool this entry configures.
60018
+ */
60019
+ name: 'web_search';
60020
+ /**
60021
+ * Permission policy for tool execution.
60022
+ */
60023
+ permission_policy: {
60024
+ /**
60025
+ * Always `always_allow`. Calls run without asking.
60026
+ */
60027
+ type: 'always_allow';
60028
+ } | {
60029
+ /**
60030
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
60031
+ */
60032
+ type: 'always_ask';
60033
+ } | {
60034
+ /**
60035
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
60036
+ */
60037
+ type: 'auto';
60038
+ };
60039
+ /**
60040
+ * Always `web_search`. Selects the web_search tool, which searches the web.
60041
+ */
60042
+ type: 'web_search';
60043
+ /**
60044
+ * 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.
60045
+ */
60046
+ allowed_domains?: Array<string>;
60047
+ /**
60048
+ * 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.
60049
+ */
60050
+ blocked_domains?: Array<string>;
60051
+ /**
60052
+ * Approximate user location for search result localization.
60053
+ */
60054
+ user_location?: null | {
60055
+ /**
60056
+ * Location precision. Only "approximate" is supported.
60057
+ */
60058
+ type: 'approximate';
60059
+ /**
60060
+ * City name.
60061
+ */
60062
+ city?: null | string;
60063
+ /**
60064
+ * Two-letter ISO 3166-1 country code, uppercase.
60065
+ */
60066
+ country?: null | string;
60067
+ /**
60068
+ * Region or state name.
60069
+ */
60070
+ region?: null | string;
60071
+ /**
60072
+ * IANA timezone identifier, e.g. "America/Los_Angeles".
60073
+ */
60074
+ timezone?: null | string;
60075
+ };
60076
+ } | {
60077
+ /**
60078
+ * Name of the native tool this entry configures.
60079
+ */
60080
+ name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
60081
+ /**
60082
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
60083
+ */
60084
+ enabled: boolean;
60085
+ /**
60086
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
60087
+ */
60088
+ permission_policy: {
60089
+ /**
60090
+ * Permission policy kind.
60091
+ */
60092
+ type: 'always_allow' | 'always_ask';
60093
+ };
60094
+ }>;
60095
+ /**
60096
+ * Resolved default configuration for agent tools.
60097
+ */
60098
+ default_config: {
60099
+ /**
60100
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
60101
+ */
60102
+ enabled: boolean;
60103
+ /**
60104
+ * Permission policy for tool execution.
60105
+ */
60106
+ permission_policy: {
60107
+ /**
60108
+ * Always `always_allow`. Calls run without asking.
60109
+ */
60110
+ type: 'always_allow';
60111
+ } | {
60112
+ /**
60113
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
60114
+ */
60115
+ type: 'always_ask';
60116
+ } | {
60117
+ /**
60118
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
60119
+ */
60120
+ type: 'auto';
60121
+ };
60122
+ };
60123
+ /**
60124
+ * 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).
60125
+ */
60126
+ type: 'agent_toolset_20260401';
60127
+ } | {
60128
+ /**
60129
+ * Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
60130
+ */
60131
+ type: 'mcp_toolset';
60132
+ /**
60133
+ * Name of the MCP server in mcp_servers whose tools this entry exposes.
60134
+ */
60135
+ mcp_server_name: string;
60136
+ /**
60137
+ * Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
60138
+ */
60139
+ default_config?: {
60140
+ /**
60141
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
60142
+ */
60143
+ enabled?: boolean | null;
60144
+ /**
60145
+ * Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
60146
+ */
60147
+ permission_policy?: null | {
60148
+ /**
60149
+ * Permission policy kind.
60150
+ */
60151
+ type: 'always_allow' | 'always_ask';
60152
+ };
60153
+ } | null;
60154
+ /**
60155
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
60156
+ */
60157
+ configs?: Array<{
60158
+ /**
60159
+ * Bare tool name reported by the MCP server.
60160
+ */
60161
+ name: string;
60162
+ /**
60163
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
60164
+ */
60165
+ enabled?: boolean | null;
60166
+ /**
60167
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
60168
+ */
60169
+ permission_policy?: null | {
60170
+ /**
60171
+ * Permission policy kind.
60172
+ */
60173
+ type: 'always_allow' | 'always_ask';
60174
+ };
60175
+ }> | null;
60176
+ } | {
60177
+ /**
60178
+ * What the custom tool does and when the model should call it.
60179
+ */
60180
+ description: string;
60181
+ /**
60182
+ * JSON Schema for custom tool input parameters.
60183
+ */
60184
+ input_schema: {
60185
+ /**
60186
+ * Always `object`. The input is a JSON object.
60187
+ */
60188
+ type: 'object';
60189
+ /**
60190
+ * JSON Schema of each input property, keyed by property name.
60191
+ */
60192
+ properties?: null | {
60193
+ [key: string]: unknown;
60194
+ };
60195
+ /**
60196
+ * Names of the input properties the model must supply.
60197
+ */
60198
+ required?: null | Array<string>;
60199
+ [key: string]: unknown;
60200
+ };
60201
+ /**
60202
+ * Name of the custom tool, as the model sees and calls it.
60203
+ */
60204
+ name: string;
60205
+ /**
60206
+ * Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
60207
+ */
60208
+ type: 'custom';
60209
+ }>;
60210
+ /**
60211
+ * Always `agent`. An agent definition.
60212
+ */
60213
+ type: 'agent';
60214
+ /**
60215
+ * 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.
60216
+ */
60217
+ version: number;
60218
+ };
60219
+ /**
60220
+ * A timestamp in RFC 3339 format
60221
+ */
60222
+ archived_at: null | string;
60223
+ /**
60224
+ * A hard spend ceiling. The session stops issuing new model requests once the
60225
+ * tracked list cost reaches `max_list_cost`.
60226
+ */
60227
+ budget: null | {
60228
+ /**
60229
+ * A monetary amount in a specific currency.
60230
+ */
60231
+ max_list_cost: {
60232
+ /**
60233
+ * Amount in minor units of the currency, as an integer decimal string with no
60234
+ * leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
60235
+ * number so no float rounding is ever applied.
60236
+ */
60237
+ amount: string;
60238
+ /**
60239
+ * Uppercase ISO-4217 currency code. `USD` is the only currency currently
60240
+ * supported; the accepted set is closed and grows only when a new currency is
60241
+ * priced.
60242
+ */
60243
+ currency: 'USD';
60244
+ };
60245
+ /**
60246
+ * Always `limit`. A spending limit.
60247
+ */
60248
+ type: 'limit';
60249
+ };
60250
+ /**
60251
+ * A timestamp in RFC 3339 format
60252
+ */
60253
+ created_at: string;
60254
+ /**
60255
+ * 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.
60256
+ */
60257
+ environment_id?: string;
60258
+ /**
60259
+ * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
60260
+ */
60261
+ metadata: {
60262
+ [key: string]: string;
60263
+ };
60264
+ /**
60265
+ * Per-outcome evaluation state. One entry per `define_outcome` event sent to the
60266
+ * session.
60267
+ */
60268
+ outcome_evaluations: Array<{
60269
+ /**
60270
+ * A timestamp in RFC 3339 format
60271
+ */
60272
+ completed_at: null | string;
60273
+ /**
60274
+ * What the agent should produce.
60275
+ */
60276
+ description: string;
60277
+ /**
60278
+ * Grader's verdict text from the most recent evaluation. For `satisfied`, explains
60279
+ * why criteria are met; for `needs_revision` (intermediate), what's missing; for
60280
+ * `failed`, why unrecoverable.
60281
+ */
60282
+ explanation: null | string;
60283
+ /**
60284
+ * 0-indexed revision cycle the outcome is currently on.
60285
+ */
60286
+ iteration: number;
60287
+ /**
60288
+ * Server-generated outc\_ ID for this outcome.
60289
+ */
60290
+ outcome_id: string;
60291
+ /**
60292
+ * Current evaluation state. `pending` before the agent begins work; `running`
60293
+ * while producing or revising; `evaluating` while the grader scores;
60294
+ * `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
60295
+ */
60296
+ result: string;
60297
+ /**
60298
+ * Always `outcome_evaluation`. Record of one outcome evaluation.
60299
+ */
60300
+ type: 'outcome_evaluation';
60301
+ }>;
60302
+ /**
60303
+ * Resources attached to the session, at most 500; each is a file reference mounted into the session's machine.
60304
+ */
60305
+ resources: Array<{
60306
+ /**
60307
+ * Resource id, the resource_id of sessions.resources calls.
60308
+ */
60309
+ id: string;
60310
+ /**
60311
+ * A timestamp in RFC 3339 format
60312
+ */
60313
+ created_at: string;
60314
+ /**
60315
+ * Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
60316
+ */
60317
+ mount_path: string;
60318
+ /**
60319
+ * Always `github_repository`. A GitHub repository resource; not supported on this platform.
60320
+ */
60321
+ type: 'github_repository';
60322
+ /**
60323
+ * A timestamp in RFC 3339 format
60324
+ */
60325
+ updated_at: string;
60326
+ /**
60327
+ * Repository URL.
60328
+ */
60329
+ url: string;
60330
+ /**
60331
+ * Branch or commit to check out.
60332
+ */
60333
+ checkout?: null | {
60334
+ /**
60335
+ * Branch name to check out.
60336
+ */
60337
+ name: string;
60338
+ /**
60339
+ * Always `branch`. Check out the named branch.
60340
+ */
60341
+ type: 'branch';
60342
+ } | {
60343
+ /**
60344
+ * Full commit SHA to check out.
60345
+ */
60346
+ sha: string;
60347
+ /**
60348
+ * Always `commit`. Check out the commit with the given SHA.
60349
+ */
60350
+ type: 'commit';
60351
+ };
60352
+ } | {
60353
+ /**
60354
+ * Resource id, the resource_id of sessions.resources calls.
60355
+ */
60356
+ id: string;
60357
+ /**
60358
+ * A timestamp in RFC 3339 format
60359
+ */
60360
+ created_at: string;
60361
+ /**
60362
+ * Id of the uploaded file; it must exist and belong to your tenant.
60363
+ */
60364
+ file_id: string;
60365
+ /**
60366
+ * Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
60367
+ */
60368
+ mount_path: string;
60369
+ /**
60370
+ * Always `file`. A file resource: an uploaded file mounted into the session's machine.
60371
+ */
60372
+ type: 'file';
60373
+ /**
60374
+ * A timestamp in RFC 3339 format
60375
+ */
60376
+ updated_at: string;
60377
+ } | {
60378
+ /**
60379
+ * The memory store ID (memstore\_...). Must belong to the caller's organization
60380
+ * and workspace.
60381
+ */
60382
+ memory_store_id: string;
60383
+ /**
60384
+ * Always `memory_store`. A memory store resource; not supported on this platform.
60385
+ */
60386
+ type: 'memory_store';
60387
+ /**
60388
+ * Access mode for an attached memory store.
60389
+ */
60390
+ access?: null | 'read_write' | 'read_only';
60391
+ /**
60392
+ * Description of the memory store, snapshotted at attach time. Rendered into the
60393
+ * agent's system prompt. Empty string when the store has no description.
60394
+ */
60395
+ description?: string;
60396
+ /**
60397
+ * Per-attachment guidance for the agent on how to use this store. Rendered into
60398
+ * the memory section of the system prompt. Max 4096 chars.
60399
+ */
60400
+ instructions?: null | string;
60401
+ /**
60402
+ * Filesystem path where the store is mounted in the session container, e.g.
60403
+ * /mnt/memory/user-preferences. Derived from the store's name. Output-only.
60404
+ */
60405
+ mount_path?: null | string;
60406
+ /**
60407
+ * Display name of the memory store, snapshotted at attach time. Later edits to the
60408
+ * store's name do not propagate to this resource.
60409
+ */
60410
+ name?: null | string;
60411
+ }>;
60412
+ /**
60413
+ * Timing statistics for a session.
60414
+ */
60415
+ stats: {
60416
+ /**
60417
+ * Cumulative time in seconds the session spent in `running` status. Excludes idle
60418
+ * time.
60419
+ */
60420
+ active_seconds?: number;
60421
+ /**
60422
+ * Elapsed time since session creation in seconds. For terminated sessions, frozen
60423
+ * at the final update.
60424
+ */
60425
+ duration_seconds?: number;
60426
+ };
60427
+ /**
60428
+ * SessionStatus enum
60429
+ *
60430
+ * - `rescheduling` - Transient error occurred, retrying automatically.
60431
+ * - `running` - Agent is actively executing.
60432
+ * - `idle` - Agent is waiting for input, including user messages or tool
60433
+ * confirmations. Sessions start in idle.
60434
+ * - `terminated` - Session has ended, either due to an error or completion.
60435
+ */
60436
+ status: 'rescheduling' | 'running' | 'idle' | 'terminated';
60437
+ /**
60438
+ * Title of the session, set on create or through sessions.update; null when none was set.
60439
+ */
60440
+ title: null | string;
60441
+ /**
60442
+ * Always `session`. A session, one conversation of an agent on a machine.
60443
+ */
60444
+ type: 'session';
60445
+ /**
60446
+ * A timestamp in RFC 3339 format
60447
+ */
60448
+ updated_at: string;
60449
+ /**
60450
+ * Cumulative token usage for a session across all turns.
60451
+ */
60452
+ usage: {
60453
+ /**
60454
+ * Cumulative time in seconds during which the session had at least one thread in
60455
+ * running status. Overlapping activity from concurrent threads is counted once,
60456
+ * unlike `stats.active_seconds`, which sums each thread's own active time. This is
60457
+ * the duration the session's runtime cost is priced on.
60458
+ */
60459
+ active_seconds?: number;
60460
+ /**
60461
+ * Prompt-cache creation token usage broken down by cache lifetime.
60462
+ */
60463
+ cache_creation?: {
60464
+ /**
60465
+ * Tokens used to create 1-hour ephemeral cache entries.
60466
+ */
60467
+ ephemeral_1h_input_tokens?: number;
60468
+ /**
60469
+ * Tokens used to create 5-minute ephemeral cache entries.
60470
+ */
60471
+ ephemeral_5m_input_tokens?: number;
60472
+ };
60473
+ /**
60474
+ * Total tokens read from prompt cache.
60475
+ */
60476
+ cache_read_input_tokens?: number;
60477
+ /**
60478
+ * Total input tokens consumed across all turns.
60479
+ */
60480
+ input_tokens?: number;
60481
+ /**
60482
+ * 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.
60483
+ */
60484
+ list_cost?: null | {
60485
+ /**
60486
+ * Amount in minor units of the currency, as an integer decimal string with no
60487
+ * leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
60488
+ * number so no float rounding is ever applied.
60489
+ */
60490
+ amount: string;
60491
+ /**
60492
+ * Uppercase ISO-4217 currency code. `USD` is the only currency currently
60493
+ * supported; the accepted set is closed and grows only when a new currency is
60494
+ * priced.
60495
+ */
60496
+ currency: 'USD';
60497
+ };
60498
+ /**
60499
+ * Total output tokens generated across all turns.
60500
+ */
60501
+ output_tokens?: number;
60502
+ /**
60503
+ * Cumulative count of server-executed tool invocations, broken down by tool.
60504
+ */
60505
+ server_tool_use?: null | {
60506
+ /**
60507
+ * Number of server-executed web fetch requests.
60508
+ */
60509
+ web_fetch_requests?: number;
60510
+ /**
60511
+ * Number of server-executed web search requests.
60512
+ */
60513
+ web_search_requests?: number;
60514
+ };
60515
+ /**
60516
+ * 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.
60517
+ */
60518
+ cost_by_product?: {
60519
+ [key: string]: string;
60520
+ };
60521
+ /**
60522
+ * 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.
60523
+ */
60524
+ subagent_cost_micro_usd?: number;
60525
+ };
60526
+ /**
60527
+ * Vault IDs attached to the session at creation. Empty when no vaults were
60528
+ * supplied.
60529
+ */
60530
+ vault_ids: Array<string>;
60531
+ /**
60532
+ * Deployment ID when the session was created from a deployment reference. Null
60533
+ * otherwise.
60534
+ */
60535
+ deployment_id?: null | string;
60536
+ /**
60537
+ * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
60538
+ */
60539
+ cwd: string;
60540
+ /**
60541
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
60542
+ */
60543
+ workspace?: {
60544
+ /**
60545
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
60546
+ */
60547
+ kind: 'shared' | 'isolated';
60548
+ /**
60549
+ * The worktree's own folder; present only when kind is isolated.
60550
+ */
60551
+ path?: string;
60552
+ /**
60553
+ * The worktree's branch; present only when kind is isolated.
60554
+ */
60555
+ branch?: string;
60556
+ };
58253
60557
  /**
58254
60558
  * 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.
58255
60559
  */
@@ -58312,7 +60616,7 @@ export type ForkSessionResponses = {
58312
60616
  readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
58313
60617
  };
58314
60618
  };
58315
- export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
60619
+ export type RenameSessionResponse = RenameSessionResponses[keyof RenameSessionResponses];
58316
60620
  export type UpdateSessionAgentVersionData = {
58317
60621
  /**
58318
60622
  * The version to move the session to; omit the body to move to the agent's active version.
@@ -59981,6 +62285,23 @@ export type UpdateSessionAgentVersionResponses = {
59981
62285
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
59982
62286
  */
59983
62287
  cwd: string;
62288
+ /**
62289
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
62290
+ */
62291
+ workspace?: {
62292
+ /**
62293
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
62294
+ */
62295
+ kind: 'shared' | 'isolated';
62296
+ /**
62297
+ * The worktree's own folder; present only when kind is isolated.
62298
+ */
62299
+ path?: string;
62300
+ /**
62301
+ * The worktree's branch; present only when kind is isolated.
62302
+ */
62303
+ branch?: string;
62304
+ };
59984
62305
  /**
59985
62306
  * 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.
59986
62307
  */
@@ -63763,7 +66084,7 @@ export type ListModelsData = {
63763
66084
  /**
63764
66085
  * Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values.
63765
66086
  */
63766
- supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.media.process' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
66087
+ supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'dashscope.voice_design' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.media.process' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
63767
66088
  /**
63768
66089
  * Filter by one or more model types (comma-separated).
63769
66090
  */
@@ -72014,6 +74335,268 @@ export type RenameSandboxResponses = {
72014
74335
  };
72015
74336
  };
72016
74337
  export type RenameSandboxResponse = RenameSandboxResponses[keyof RenameSandboxResponses];
74338
+ export type ActOnSandboxDisplayData = {
74339
+ body: {
74340
+ /**
74341
+ * Action kind; exactly "snapshot".
74342
+ */
74343
+ type: 'snapshot';
74344
+ } | {
74345
+ /**
74346
+ * Action kind; exactly "screenshot".
74347
+ */
74348
+ type: 'screenshot';
74349
+ } | {
74350
+ /**
74351
+ * Action kind; exactly "tap".
74352
+ */
74353
+ type: 'tap';
74354
+ /**
74355
+ * Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
74356
+ */
74357
+ ref?: string;
74358
+ /**
74359
+ * Screen x in pixels, 0 to 10000; 0 is the left edge.
74360
+ */
74361
+ x?: number;
74362
+ /**
74363
+ * Screen y in pixels, 0 to 10000; 0 is the top edge.
74364
+ */
74365
+ y?: number;
74366
+ } | {
74367
+ /**
74368
+ * Action kind; exactly "long_press".
74369
+ */
74370
+ type: 'long_press';
74371
+ /**
74372
+ * Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
74373
+ */
74374
+ ref?: string;
74375
+ /**
74376
+ * Screen x in pixels, 0 to 10000; 0 is the left edge.
74377
+ */
74378
+ x?: number;
74379
+ /**
74380
+ * Screen y in pixels, 0 to 10000; 0 is the top edge.
74381
+ */
74382
+ y?: number;
74383
+ /**
74384
+ * How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
74385
+ */
74386
+ durationMs?: number;
74387
+ } | {
74388
+ /**
74389
+ * Action kind; exactly "swipe".
74390
+ */
74391
+ type: 'swipe';
74392
+ /**
74393
+ * Where the finger starts.
74394
+ */
74395
+ from: {
74396
+ /**
74397
+ * Screen x in pixels, 0 to 10000; 0 is the left edge.
74398
+ */
74399
+ x: number;
74400
+ /**
74401
+ * Screen y in pixels, 0 to 10000; 0 is the top edge.
74402
+ */
74403
+ y: number;
74404
+ };
74405
+ /**
74406
+ * Where the finger ends.
74407
+ */
74408
+ to: {
74409
+ /**
74410
+ * Screen x in pixels, 0 to 10000; 0 is the left edge.
74411
+ */
74412
+ x: number;
74413
+ /**
74414
+ * Screen y in pixels, 0 to 10000; 0 is the top edge.
74415
+ */
74416
+ y: number;
74417
+ };
74418
+ /**
74419
+ * How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
74420
+ */
74421
+ durationMs?: number;
74422
+ } | {
74423
+ /**
74424
+ * Action kind; exactly "scroll".
74425
+ */
74426
+ type: 'scroll';
74427
+ /**
74428
+ * Which way the content moves.
74429
+ */
74430
+ direction: 'up' | 'down' | 'left' | 'right';
74431
+ /**
74432
+ * Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
74433
+ */
74434
+ ref?: string;
74435
+ } | {
74436
+ /**
74437
+ * Action kind; exactly "type".
74438
+ */
74439
+ type: 'type';
74440
+ /**
74441
+ * Text to type, at most 10000 characters. ASCII only, because the phone types character by character; non-ASCII text is refused with INVALID_PARAMS.
74442
+ */
74443
+ text: string;
74444
+ /**
74445
+ * Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
74446
+ */
74447
+ ref?: string;
74448
+ } | {
74449
+ /**
74450
+ * Action kind; exactly "key".
74451
+ */
74452
+ type: 'key';
74453
+ /**
74454
+ * Which key to press.
74455
+ */
74456
+ key: 'back' | 'home' | 'recents' | 'enter' | 'delete' | 'power' | 'volume_up' | 'volume_down';
74457
+ } | {
74458
+ /**
74459
+ * Action kind; exactly "open_app".
74460
+ */
74461
+ type: 'open_app';
74462
+ /**
74463
+ * Java package name of the app, such as com.android.settings.
74464
+ */
74465
+ package: string;
74466
+ /**
74467
+ * Activity to open as android:name, such as com.example.app.MainActivity; omitted opens the package's launcher activity.
74468
+ */
74469
+ activity?: string;
74470
+ } | {
74471
+ /**
74472
+ * Action kind; exactly "close_app".
74473
+ */
74474
+ type: 'close_app';
74475
+ /**
74476
+ * Java package name of the app, such as com.android.settings.
74477
+ */
74478
+ package: string;
74479
+ } | {
74480
+ /**
74481
+ * Action kind; exactly "open_url".
74482
+ */
74483
+ type: 'open_url';
74484
+ /**
74485
+ * Absolute http or https URL to open in the phone's browser.
74486
+ */
74487
+ url: string;
74488
+ } | {
74489
+ /**
74490
+ * Action kind; exactly "wait".
74491
+ */
74492
+ type: 'wait';
74493
+ /**
74494
+ * How long to wait, in milliseconds, 1 to 10000, before the call returns.
74495
+ */
74496
+ ms: number;
74497
+ };
74498
+ path: {
74499
+ /**
74500
+ * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
74501
+ */
74502
+ sandboxID: string;
74503
+ };
74504
+ query?: never;
74505
+ url: '/sandbox/v1/sandboxes/{sandboxID}/act';
74506
+ };
74507
+ export type ActOnSandboxDisplayErrors = {
74508
+ /**
74509
+ * INVALID_PARAMS: the body is not one known action, a field is missing, wrongly typed or outside its range, a target names both a ref and coordinates (or neither), a ref is not in the latest snapshot, or the text is not ASCII.
74510
+ */
74511
+ 400: unknown;
74512
+ /**
74513
+ * Authentication required: supply an organization API key.
74514
+ */
74515
+ 401: unknown;
74516
+ /**
74517
+ * NOT_FOUND: the sandbox is absent or belongs to another organization.
74518
+ */
74519
+ 404: unknown;
74520
+ /**
74521
+ * CAPABILITY_UNSUPPORTED: this sandbox is not a phone, so it has no screen; create one with templateID "android".
74522
+ */
74523
+ 501: unknown;
74524
+ /**
74525
+ * SERVICE_UNAVAILABLE: the phone has not connected to the sandbox yet; wait the seconds in the Retry-After header and send the action again.
74526
+ */
74527
+ 503: unknown;
74528
+ };
74529
+ export type ActOnSandboxDisplayResponses = {
74530
+ /**
74531
+ * The action's result: the UI hierarchy and refs for snapshot, image bytes for screenshot, the applied duration for a long press, or an acknowledgement with no data.
74532
+ */
74533
+ 200: {
74534
+ /**
74535
+ * Result kind; "snapshot" for this shape.
74536
+ */
74537
+ type: 'snapshot';
74538
+ /**
74539
+ * The phone's UI hierarchy as XML: one element per node with its bounds, text and other attributes.
74540
+ */
74541
+ snapshot: string;
74542
+ /**
74543
+ * How many nodes received a ref that tap, long_press, scroll and type accept.
74544
+ */
74545
+ refs: number;
74546
+ /**
74547
+ * True when the hierarchy was too large and was cut; the returned refs still name their nodes.
74548
+ */
74549
+ truncated: boolean;
74550
+ /**
74551
+ * Package name of the app that was in the foreground at the snapshot, such as com.android.settings.
74552
+ */
74553
+ package: string;
74554
+ } | {
74555
+ /**
74556
+ * Result kind; "screenshot" for this shape.
74557
+ */
74558
+ type: 'screenshot';
74559
+ /**
74560
+ * Image MIME type of the encoded bytes; image/png.
74561
+ */
74562
+ mediaType: string;
74563
+ /**
74564
+ * Base64-encoded image bytes; decode before saving or viewing.
74565
+ */
74566
+ data: string;
74567
+ /**
74568
+ * Image width in pixels.
74569
+ */
74570
+ width: number;
74571
+ /**
74572
+ * Image height in pixels.
74573
+ */
74574
+ height: number;
74575
+ /**
74576
+ * Decoded image size in bytes.
74577
+ */
74578
+ bytes: number;
74579
+ } | {
74580
+ /**
74581
+ * Result kind; "ok" for an action with no result of its own.
74582
+ */
74583
+ type: 'ok';
74584
+ /**
74585
+ * For a long press, the duration that was applied, in milliseconds; absent for the other actions.
74586
+ */
74587
+ ms?: number;
74588
+ } | {
74589
+ /**
74590
+ * Result kind; "wait" for the wait action.
74591
+ */
74592
+ type: 'wait';
74593
+ /**
74594
+ * How long the call waited, in milliseconds; echoes the requested ms.
74595
+ */
74596
+ ms: number;
74597
+ };
74598
+ };
74599
+ export type ActOnSandboxDisplayResponse = ActOnSandboxDisplayResponses[keyof ActOnSandboxDisplayResponses];
72017
74600
  export type RemoveSandboxFileData = {
72018
74601
  body?: never;
72019
74602
  path: {
@@ -72589,6 +75172,23 @@ export type SessionsRetrieveResponses = {
72589
75172
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
72590
75173
  */
72591
75174
  cwd: string;
75175
+ /**
75176
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
75177
+ */
75178
+ workspace?: {
75179
+ /**
75180
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
75181
+ */
75182
+ kind: 'shared' | 'isolated';
75183
+ /**
75184
+ * The worktree's own folder; present only when kind is isolated.
75185
+ */
75186
+ path?: string;
75187
+ /**
75188
+ * The worktree's branch; present only when kind is isolated.
75189
+ */
75190
+ branch?: string;
75191
+ };
72592
75192
  /**
72593
75193
  * 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.
72594
75194
  */
@@ -72884,6 +75484,23 @@ export type SessionsUpdateResponses = {
72884
75484
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
72885
75485
  */
72886
75486
  cwd: string;
75487
+ /**
75488
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
75489
+ */
75490
+ workspace?: {
75491
+ /**
75492
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
75493
+ */
75494
+ kind: 'shared' | 'isolated';
75495
+ /**
75496
+ * The worktree's own folder; present only when kind is isolated.
75497
+ */
75498
+ path?: string;
75499
+ /**
75500
+ * The worktree's branch; present only when kind is isolated.
75501
+ */
75502
+ branch?: string;
75503
+ };
72887
75504
  /**
72888
75505
  * 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.
72889
75506
  */
@@ -73568,6 +76185,10 @@ export type AgentsListResponses = {
73568
76185
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
73569
76186
  */
73570
76187
  creation_source: string | null;
76188
+ /**
76189
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
76190
+ */
76191
+ managed_by: string | null;
73571
76192
  /**
73572
76193
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
73573
76194
  */
@@ -73736,7 +76357,7 @@ export type AgentsCreateData = {
73736
76357
  enabled?: boolean;
73737
76358
  }>;
73738
76359
  /**
73739
- * Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
76360
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
73740
76361
  */
73741
76362
  kind?: 'general' | 'service' | 'assume';
73742
76363
  /**
@@ -74764,6 +77385,10 @@ export type AgentsCreateResponses = {
74764
77385
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
74765
77386
  */
74766
77387
  creation_source: string | null;
77388
+ /**
77389
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
77390
+ */
77391
+ managed_by: string | null;
74767
77392
  /**
74768
77393
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
74769
77394
  */
@@ -75418,6 +78043,10 @@ export type AgentsRetrieveResponses = {
75418
78043
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
75419
78044
  */
75420
78045
  creation_source: string | null;
78046
+ /**
78047
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
78048
+ */
78049
+ managed_by: string | null;
75421
78050
  /**
75422
78051
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
75423
78052
  */
@@ -75595,7 +78224,7 @@ export type AgentsUpdateData = {
75595
78224
  enabled?: boolean;
75596
78225
  }> | null;
75597
78226
  /**
75598
- * Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
78227
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
75599
78228
  */
75600
78229
  kind?: 'general' | 'service' | 'assume';
75601
78230
  /**
@@ -76636,6 +79265,10 @@ export type AgentsUpdateResponses = {
76636
79265
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
76637
79266
  */
76638
79267
  creation_source: string | null;
79268
+ /**
79269
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
79270
+ */
79271
+ managed_by: string | null;
76639
79272
  /**
76640
79273
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
76641
79274
  */
@@ -77254,6 +79887,10 @@ export type AgentsArchiveResponses = {
77254
79887
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
77255
79888
  */
77256
79889
  creation_source: string | null;
79890
+ /**
79891
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
79892
+ */
79893
+ managed_by: string | null;
77257
79894
  /**
77258
79895
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
77259
79896
  */
@@ -77912,6 +80549,10 @@ export type AgentsVersionsListResponses = {
77912
80549
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
77913
80550
  */
77914
80551
  creation_source: string | null;
80552
+ /**
80553
+ * Application that manages this agent (for example praxis-work); null when no application does. Set when the agent is created, or claimed once by an update that sends the same value in the Praxis-Managed-By header; never changes after. Archiving a managed agent without the managing application's Praxis-Managed-By header returns 409 AGENT_MANAGED_BY_APPLICATION; configuration stays changeable. An accident guard, not a security boundary. /agent/v1 only; /anthropic neither returns it.
80554
+ */
80555
+ managed_by: string | null;
77915
80556
  /**
77916
80557
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
77917
80558
  */
@@ -78209,6 +80850,23 @@ export type SessionsListResponses = {
78209
80850
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
78210
80851
  */
78211
80852
  cwd: string;
80853
+ /**
80854
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
80855
+ */
80856
+ workspace?: {
80857
+ /**
80858
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
80859
+ */
80860
+ kind: 'shared' | 'isolated';
80861
+ /**
80862
+ * The worktree's own folder; present only when kind is isolated.
80863
+ */
80864
+ path?: string;
80865
+ /**
80866
+ * The worktree's branch; present only when kind is isolated.
80867
+ */
80868
+ branch?: string;
80869
+ };
78212
80870
  /**
78213
80871
  * 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.
78214
80872
  */
@@ -78321,6 +80979,10 @@ export type SessionsCreateData = {
78321
80979
  * Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd.
78322
80980
  */
78323
80981
  cwd?: string;
80982
+ /**
80983
+ * Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared.
80984
+ */
80985
+ workspace?: 'shared' | 'isolated';
78324
80986
  /**
78325
80987
  * 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.
78326
80988
  */
@@ -78543,6 +81205,23 @@ export type SessionsCreateResponses = {
78543
81205
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
78544
81206
  */
78545
81207
  cwd: string;
81208
+ /**
81209
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
81210
+ */
81211
+ workspace?: {
81212
+ /**
81213
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
81214
+ */
81215
+ kind: 'shared' | 'isolated';
81216
+ /**
81217
+ * The worktree's own folder; present only when kind is isolated.
81218
+ */
81219
+ path?: string;
81220
+ /**
81221
+ * The worktree's branch; present only when kind is isolated.
81222
+ */
81223
+ branch?: string;
81224
+ };
78546
81225
  /**
78547
81226
  * 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.
78548
81227
  */
@@ -78797,6 +81476,23 @@ export type SessionsArchiveResponses = {
78797
81476
  * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
78798
81477
  */
78799
81478
  cwd: string;
81479
+ /**
81480
+ * Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
81481
+ */
81482
+ workspace?: {
81483
+ /**
81484
+ * Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
81485
+ */
81486
+ kind: 'shared' | 'isolated';
81487
+ /**
81488
+ * The worktree's own folder; present only when kind is isolated.
81489
+ */
81490
+ path?: string;
81491
+ /**
81492
+ * The worktree's branch; present only when kind is isolated.
81493
+ */
81494
+ branch?: string;
81495
+ };
78800
81496
  /**
78801
81497
  * 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.
78802
81498
  */
@@ -83535,6 +86231,12 @@ export type ApplicationListVersionsResponses = {
83535
86231
  export type ApplicationListVersionsResponse = ApplicationListVersionsResponses[keyof ApplicationListVersionsResponses];
83536
86232
  export type ApplicationCreateVersionData = {
83537
86233
  body: ApplicationCreateVersionInput;
86234
+ headers?: {
86235
+ /**
86236
+ * Optional; 1-256 characters. Within 24 hours, the same key with the same body replays the first answer (same version, same deployment) instead of creating a second version; the same key with a different body is refused with INVALID_PARAMS. A create still in progress answers 409 IDEMPOTENCY_IN_FLIGHT, so retry it shortly.
86237
+ */
86238
+ 'Idempotency-Key'?: string;
86239
+ };
83538
86240
  path: {
83539
86241
  /**
83540
86242
  * Worker ID (wkr_…).
@@ -97200,7 +99902,7 @@ export type DevopsChangesAbandonData = {
97200
99902
  };
97201
99903
  export type DevopsChangesAbandonErrors = {
97202
99904
  /**
97203
- * INVALID_ARGUMENT means reason is missing or empty, or the change is already abandoned; read the change to see its stage before deciding again.
99905
+ * INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
97204
99906
  */
97205
99907
  400: DevopsDevOpsError;
97206
99908
  /**
@@ -97590,6 +100292,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
97590
100292
  200: DevopsPullRequest;
97591
100293
  };
97592
100294
  export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
100295
+ export type DevopsPullRequestsCloseData = {
100296
+ body: DevopsPullRequestCloseRequest;
100297
+ path: {
100298
+ /**
100299
+ * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
100300
+ */
100301
+ id: string;
100302
+ };
100303
+ query?: never;
100304
+ url: '/devops/v1/pull-requests/{id}:close';
100305
+ };
100306
+ export type DevopsPullRequestsCloseErrors = {
100307
+ /**
100308
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
100309
+ */
100310
+ 400: DevopsDevOpsError;
100311
+ /**
100312
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
100313
+ */
100314
+ 401: DevopsDevOpsError;
100315
+ /**
100316
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
100317
+ */
100318
+ 403: DevopsDevOpsError;
100319
+ /**
100320
+ * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
100321
+ */
100322
+ 404: DevopsDevOpsError;
100323
+ /**
100324
+ * PULL_REQUEST_NOT_OPEN when the pull request is merged or is not open on GitHub: nothing was closed, and the message says which state GitHub reported.
100325
+ */
100326
+ 409: DevopsDevOpsError;
100327
+ /**
100328
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
100329
+ */
100330
+ 500: DevopsDevOpsError;
100331
+ };
100332
+ export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
100333
+ export type DevopsPullRequestsCloseResponses = {
100334
+ /**
100335
+ * The pull request as it now stands: state closed with its closeTime, or, for one that was already closed, the answer it had before this call.
100336
+ */
100337
+ 200: DevopsPullRequest;
100338
+ };
100339
+ export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
97593
100340
  export type DevopsConnectionsListData = {
97594
100341
  body?: never;
97595
100342
  path?: never;
@@ -100105,6 +102852,10 @@ export type MediaCreateLibraryData = {
100105
102852
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
100106
102853
  */
100107
102854
  models?: MediaMediaModelsInput;
102855
+ /**
102856
+ * The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
102857
+ */
102858
+ default_tier?: MediaMediaTier;
100108
102859
  /**
100109
102860
  * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
100110
102861
  */
@@ -100432,6 +103183,10 @@ export type MediaUpdateLibraryData = {
100432
103183
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
100433
103184
  */
100434
103185
  models?: MediaMediaModelsInput;
103186
+ /**
103187
+ * The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
103188
+ */
103189
+ default_tier?: MediaMediaTier;
100435
103190
  /**
100436
103191
  * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
100437
103192
  */
@@ -102705,9 +105460,10 @@ export type MediaGenerateImageData = {
102705
105460
  */
102706
105461
  seed?: number;
102707
105462
  /**
102708
- * Model with image-generation capability; omit it to use the library default image model.
105463
+ * Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
102709
105464
  */
102710
105465
  model?: string;
105466
+ tier?: MediaMediaTier;
102711
105467
  /**
102712
105468
  * Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
102713
105469
  */
@@ -102856,9 +105612,10 @@ export type MediaGenerateVideoData = {
102856
105612
  */
102857
105613
  seed?: number;
102858
105614
  /**
102859
- * Model with video-generation capability; omit it to use the library default video model.
105615
+ * Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
102860
105616
  */
102861
105617
  model?: string;
105618
+ tier?: MediaMediaTier;
102862
105619
  /**
102863
105620
  * Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
102864
105621
  */
@@ -102955,9 +105712,10 @@ export type MediaEditAssetData = {
102955
105712
  */
102956
105713
  operation: MediaEditOperation;
102957
105714
  /**
102958
- * Model that performs the edit; omit it to use the library default image model.
105715
+ * Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
102959
105716
  */
102960
105717
  model?: string;
105718
+ tier?: MediaMediaTier;
102961
105719
  /**
102962
105720
  * Folder the produced asset is filed under; defaults to the source asset’s folder. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
102963
105721
  */
@@ -102992,7 +105750,7 @@ export type MediaEditAssetData = {
102992
105750
  };
102993
105751
  export type MediaEditAssetErrors = {
102994
105752
  /**
102995
- * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync and animate_person on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
105753
+ * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
102996
105754
  */
102997
105755
  400: MediaMediaError;
102998
105756
  /**
@@ -103940,40 +106698,213 @@ export type MediaGetHlsRenditionsErrors = {
103940
106698
  */
103941
106699
  503: MediaMediaError;
103942
106700
  };
103943
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
103944
- export type MediaGetHlsRenditionsResponses = {
106701
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
106702
+ export type MediaGetHlsRenditionsResponses = {
106703
+ /**
106704
+ * Successful response.
106705
+ */
106706
+ 200: MediaHlsLadder;
106707
+ };
106708
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
106709
+ export type MediaRequestHlsRenditionsData = {
106710
+ /**
106711
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
106712
+ */
106713
+ body: {
106714
+ /**
106715
+ * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
106716
+ */
106717
+ heights?: Array<480 | 720 | 1080>;
106718
+ };
106719
+ path: {
106720
+ /**
106721
+ * Library ID returned by creation.
106722
+ */
106723
+ library_id: string;
106724
+ /**
106725
+ * 32-character asset ID.
106726
+ */
106727
+ asset_id: string;
106728
+ };
106729
+ query?: never;
106730
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
106731
+ };
106732
+ export type MediaRequestHlsRenditionsErrors = {
106733
+ /**
106734
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
106735
+ */
106736
+ 400: MediaMediaError;
106737
+ /**
106738
+ * Request failed; see the error code reference.
106739
+ */
106740
+ 402: MediaMediaError;
106741
+ /**
106742
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
106743
+ */
106744
+ 403: MediaMediaError;
106745
+ /**
106746
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
106747
+ */
106748
+ 404: MediaMediaError;
106749
+ /**
106750
+ * Request failed; see the error code reference.
106751
+ */
106752
+ 409: MediaMediaError;
106753
+ /**
106754
+ * The file exceeds an input limit; provide a smaller source file.
106755
+ */
106756
+ 413: MediaMediaError;
106757
+ /**
106758
+ * This media format is unsupported; provide a supported format.
106759
+ */
106760
+ 415: MediaMediaError;
106761
+ /**
106762
+ * Request failed; see the error code reference.
106763
+ */
106764
+ 422: MediaMediaError;
106765
+ /**
106766
+ * A rate limit was reached; wait before retrying.
106767
+ */
106768
+ 429: MediaMediaError;
106769
+ /**
106770
+ * The requested operation is unsupported; choose a supported method.
106771
+ */
106772
+ 501: MediaMediaError;
106773
+ /**
106774
+ * Request failed; see the error code reference.
106775
+ */
106776
+ 502: MediaMediaError;
106777
+ /**
106778
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
106779
+ */
106780
+ 503: MediaMediaError;
106781
+ };
106782
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
106783
+ export type MediaRequestHlsRenditionsResponses = {
103945
106784
  /**
103946
106785
  * Successful response.
103947
106786
  */
103948
- 200: MediaHlsLadder;
106787
+ 202: MediaHlsLadder;
103949
106788
  };
103950
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
103951
- export type MediaRequestHlsRenditionsData = {
106789
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
106790
+ export type MediaCreateVoiceData = {
103952
106791
  /**
103953
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
106792
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
103954
106793
  */
103955
- body: {
106794
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
106795
+ headers?: {
103956
106796
  /**
103957
- * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
106797
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
103958
106798
  */
103959
- heights?: Array<480 | 720 | 1080>;
106799
+ 'Idempotency-Key'?: string;
103960
106800
  };
103961
106801
  path: {
103962
106802
  /**
103963
106803
  * Library ID returned by creation.
103964
106804
  */
103965
106805
  library_id: string;
106806
+ };
106807
+ query?: never;
106808
+ url: '/media/v1/libraries/{library_id}/voices';
106809
+ };
106810
+ export type MediaCreateVoiceErrors = {
106811
+ /**
106812
+ * Request failed; see the error code reference.
106813
+ */
106814
+ 400: MediaMediaError;
106815
+ /**
106816
+ * Request failed; see the error code reference.
106817
+ */
106818
+ 402: MediaMediaError;
106819
+ /**
106820
+ * Request failed; see the error code reference.
106821
+ */
106822
+ 403: MediaMediaError;
106823
+ /**
106824
+ * Request failed; see the error code reference.
106825
+ */
106826
+ 404: MediaMediaError;
106827
+ /**
106828
+ * Request failed; see the error code reference.
106829
+ */
106830
+ 409: MediaMediaError;
106831
+ /**
106832
+ * Request failed; see the error code reference.
106833
+ */
106834
+ 413: MediaMediaError;
106835
+ /**
106836
+ * Request failed; see the error code reference.
106837
+ */
106838
+ 415: MediaMediaError;
106839
+ /**
106840
+ * Request failed; see the error code reference.
106841
+ */
106842
+ 422: MediaMediaError;
106843
+ /**
106844
+ * Request failed; see the error code reference.
106845
+ */
106846
+ 429: MediaMediaError;
106847
+ /**
106848
+ * Request failed; see the error code reference.
106849
+ */
106850
+ 501: MediaMediaError;
106851
+ /**
106852
+ * Request failed; see the error code reference.
106853
+ */
106854
+ 502: MediaMediaError;
106855
+ /**
106856
+ * Request failed; see the error code reference.
106857
+ */
106858
+ 503: MediaMediaError;
106859
+ };
106860
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
106861
+ export type MediaCreateVoiceResponses = {
106862
+ /**
106863
+ * Successful response.
106864
+ */
106865
+ 202: MediaJob;
106866
+ };
106867
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
106868
+ export type MediaDesignVoiceData = {
106869
+ /**
106870
+ * One voice-design run: what the voice should sound like and the line the previews speak.
106871
+ */
106872
+ body: {
103966
106873
  /**
103967
- * 32-character asset ID.
106874
+ * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
103968
106875
  */
103969
- asset_id: string;
106876
+ description: string;
106877
+ /**
106878
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
106879
+ */
106880
+ preview_text: string;
106881
+ /**
106882
+ * Language the previews speak: zh or en only.
106883
+ */
106884
+ language: 'zh' | 'en';
106885
+ /**
106886
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
106887
+ */
106888
+ count?: number;
106889
+ };
106890
+ headers?: {
106891
+ /**
106892
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
106893
+ */
106894
+ 'Idempotency-Key'?: string;
106895
+ };
106896
+ path: {
106897
+ /**
106898
+ * Library ID returned by creation.
106899
+ */
106900
+ library_id: string;
103970
106901
  };
103971
106902
  query?: never;
103972
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
106903
+ url: '/media/v1/libraries/{library_id}/voices/designs';
103973
106904
  };
103974
- export type MediaRequestHlsRenditionsErrors = {
106905
+ export type MediaDesignVoiceErrors = {
103975
106906
  /**
103976
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
106907
+ * Request failed; see the error code reference.
103977
106908
  */
103978
106909
  400: MediaMediaError;
103979
106910
  /**
@@ -103981,11 +106912,11 @@ export type MediaRequestHlsRenditionsErrors = {
103981
106912
  */
103982
106913
  402: MediaMediaError;
103983
106914
  /**
103984
- * This credential has read-only access to the library; use a write-capable binding for mutations.
106915
+ * Request failed; see the error code reference.
103985
106916
  */
103986
106917
  403: MediaMediaError;
103987
106918
  /**
103988
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
106919
+ * Request failed; see the error code reference.
103989
106920
  */
103990
106921
  404: MediaMediaError;
103991
106922
  /**
@@ -103993,11 +106924,11 @@ export type MediaRequestHlsRenditionsErrors = {
103993
106924
  */
103994
106925
  409: MediaMediaError;
103995
106926
  /**
103996
- * The file exceeds an input limit; provide a smaller source file.
106927
+ * Request failed; see the error code reference.
103997
106928
  */
103998
106929
  413: MediaMediaError;
103999
106930
  /**
104000
- * This media format is unsupported; provide a supported format.
106931
+ * Request failed; see the error code reference.
104001
106932
  */
104002
106933
  415: MediaMediaError;
104003
106934
  /**
@@ -104005,11 +106936,11 @@ export type MediaRequestHlsRenditionsErrors = {
104005
106936
  */
104006
106937
  422: MediaMediaError;
104007
106938
  /**
104008
- * A rate limit was reached; wait before retrying.
106939
+ * Request failed; see the error code reference.
104009
106940
  */
104010
106941
  429: MediaMediaError;
104011
106942
  /**
104012
- * The requested operation is unsupported; choose a supported method.
106943
+ * Request failed; see the error code reference.
104013
106944
  */
104014
106945
  501: MediaMediaError;
104015
106946
  /**
@@ -104017,18 +106948,18 @@ export type MediaRequestHlsRenditionsErrors = {
104017
106948
  */
104018
106949
  502: MediaMediaError;
104019
106950
  /**
104020
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
106951
+ * Request failed; see the error code reference.
104021
106952
  */
104022
106953
  503: MediaMediaError;
104023
106954
  };
104024
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
104025
- export type MediaRequestHlsRenditionsResponses = {
106955
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
106956
+ export type MediaDesignVoiceResponses = {
104026
106957
  /**
104027
106958
  * Successful response.
104028
106959
  */
104029
- 202: MediaHlsLadder;
106960
+ 202: MediaJob;
104030
106961
  };
104031
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
106962
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
104032
106963
  export type OntologyListTypesData = {
104033
106964
  body?: never;
104034
106965
  path?: never;
@@ -105170,6 +108101,196 @@ export type RegistryPackagesVersionsCreateResponses = {
105170
108101
  201: RegistryVersion;
105171
108102
  };
105172
108103
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
108104
+ export type RegistryGitLogData = {
108105
+ body?: never;
108106
+ path: {
108107
+ /**
108108
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
108109
+ */
108110
+ package_id: string;
108111
+ };
108112
+ query?: {
108113
+ /**
108114
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
108115
+ */
108116
+ ref?: string;
108117
+ /**
108118
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
108119
+ */
108120
+ limit?: number;
108121
+ /**
108122
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
108123
+ */
108124
+ offset?: number;
108125
+ };
108126
+ url: '/registry/v1/packages/{package_id}/git/log';
108127
+ };
108128
+ export type RegistryGitLogErrors = {
108129
+ /**
108130
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
108131
+ */
108132
+ 400: RegistryRegistryError;
108133
+ /**
108134
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
108135
+ */
108136
+ 401: RegistryRegistryError;
108137
+ /**
108138
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
108139
+ */
108140
+ 404: RegistryRegistryError;
108141
+ /**
108142
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
108143
+ */
108144
+ 500: RegistryRegistryError;
108145
+ /**
108146
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
108147
+ */
108148
+ 503: RegistryRegistryError;
108149
+ };
108150
+ export type RegistryGitLogError = RegistryGitLogErrors[keyof RegistryGitLogErrors];
108151
+ export type RegistryGitLogResponses = {
108152
+ /**
108153
+ * 这个引用可达的提交,连同是否还有下一页。
108154
+ */
108155
+ 200: RegistryGitLog;
108156
+ };
108157
+ export type RegistryGitLogResponse = RegistryGitLogResponses[keyof RegistryGitLogResponses];
108158
+ export type RegistryGitCommitsRetrieveData = {
108159
+ body?: never;
108160
+ path: {
108161
+ /**
108162
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
108163
+ */
108164
+ package_id: string;
108165
+ /**
108166
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
108167
+ */
108168
+ sha: string;
108169
+ };
108170
+ query?: never;
108171
+ url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
108172
+ };
108173
+ export type RegistryGitCommitsRetrieveErrors = {
108174
+ /**
108175
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
108176
+ */
108177
+ 400: RegistryRegistryError;
108178
+ /**
108179
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
108180
+ */
108181
+ 401: RegistryRegistryError;
108182
+ /**
108183
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
108184
+ */
108185
+ 404: RegistryRegistryError;
108186
+ /**
108187
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
108188
+ */
108189
+ 500: RegistryRegistryError;
108190
+ /**
108191
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
108192
+ */
108193
+ 503: RegistryRegistryError;
108194
+ };
108195
+ export type RegistryGitCommitsRetrieveError = RegistryGitCommitsRetrieveErrors[keyof RegistryGitCommitsRetrieveErrors];
108196
+ export type RegistryGitCommitsRetrieveResponses = {
108197
+ /**
108198
+ * 这个提交。
108199
+ */
108200
+ 200: RegistryGitCommit;
108201
+ };
108202
+ export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
108203
+ export type RegistryGitTreesRetrieveData = {
108204
+ body?: never;
108205
+ path: {
108206
+ /**
108207
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
108208
+ */
108209
+ package_id: string;
108210
+ /**
108211
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
108212
+ */
108213
+ sha: string;
108214
+ };
108215
+ query?: never;
108216
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}';
108217
+ };
108218
+ export type RegistryGitTreesRetrieveErrors = {
108219
+ /**
108220
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
108221
+ */
108222
+ 400: RegistryRegistryError;
108223
+ /**
108224
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
108225
+ */
108226
+ 401: RegistryRegistryError;
108227
+ /**
108228
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
108229
+ */
108230
+ 404: RegistryRegistryError;
108231
+ /**
108232
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
108233
+ */
108234
+ 500: RegistryRegistryError;
108235
+ /**
108236
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
108237
+ */
108238
+ 503: RegistryRegistryError;
108239
+ };
108240
+ export type RegistryGitTreesRetrieveError = RegistryGitTreesRetrieveErrors[keyof RegistryGitTreesRetrieveErrors];
108241
+ export type RegistryGitTreesRetrieveResponses = {
108242
+ /**
108243
+ * 这个树的条目。
108244
+ */
108245
+ 200: RegistryGitTree;
108246
+ };
108247
+ export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
108248
+ export type RegistryGitFilesRetrieveData = {
108249
+ body?: never;
108250
+ path: {
108251
+ /**
108252
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
108253
+ */
108254
+ package_id: string;
108255
+ /**
108256
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
108257
+ */
108258
+ path: string;
108259
+ };
108260
+ query?: {
108261
+ /**
108262
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
108263
+ */
108264
+ ref?: string;
108265
+ };
108266
+ url: '/registry/v1/packages/{package_id}/git/files/{path}';
108267
+ };
108268
+ export type RegistryGitFilesRetrieveErrors = {
108269
+ /**
108270
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
108271
+ */
108272
+ 401: RegistryRegistryError;
108273
+ /**
108274
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
108275
+ */
108276
+ 404: RegistryRegistryError;
108277
+ /**
108278
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
108279
+ */
108280
+ 500: RegistryRegistryError;
108281
+ /**
108282
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
108283
+ */
108284
+ 503: RegistryRegistryError;
108285
+ };
108286
+ export type RegistryGitFilesRetrieveError = RegistryGitFilesRetrieveErrors[keyof RegistryGitFilesRetrieveErrors];
108287
+ export type RegistryGitFilesRetrieveResponses = {
108288
+ /**
108289
+ * 文件内容,逐字节原样返回。
108290
+ */
108291
+ 200: Blob | File;
108292
+ };
108293
+ export type RegistryGitFilesRetrieveResponse = RegistryGitFilesRetrieveResponses[keyof RegistryGitFilesRetrieveResponses];
105173
108294
  export type RegistryPackagesVersionsContentsData = {
105174
108295
  body?: never;
105175
108296
  path: {
@@ -111768,7 +114889,7 @@ export type TicketPatchTicketsNumberData = {
111768
114889
  */
111769
114890
  state_reason?: 'completed' | 'not_planned' | 'duplicate';
111770
114891
  /**
111771
- * Repository-local number returned by create or list; distinct from the object's id.
114892
+ * The original ticket's number; required when state_reason is duplicate.
111772
114893
  */
111773
114894
  duplicate_of?: number;
111774
114895
  };