@deepraxis/sdk 0.1.1-dev.0327eec → 0.1.1-dev.05a4ae7

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
  */
@@ -19611,7 +19628,7 @@ export type MediaJob = {
19611
19628
  /**
19612
19629
  * Why a queued generation job has not started yet. queue_reason is omitted once the job starts.
19613
19630
  */
19614
- queue_reason?: 'concurrency' | 'provider_throttled';
19631
+ queue_reason?: 'concurrency' | 'provider_throttled' | 'provider_queue';
19615
19632
  /**
19616
19633
  * Present while the job waits for a slot (queue_reason concurrency): its place in line among the waiting jobs of its type in this library, 1 for the next to start. Waiting jobs start oldest first; keep polling the job, there is nothing to resubmit.
19617
19634
  */
@@ -19652,6 +19669,10 @@ export type MediaJob = {
19652
19669
  * Request id of the model call that failed, the same id shown in the model request log, so the failure can be traced there. Present only when the failure came from a model call.
19653
19670
  */
19654
19671
  model_request_id?: string;
19672
+ /**
19673
+ * The model service’s own words for this failure, for a person to read, for example why moderation refused an input. Present only when the failure came from a model call; branch on code, not on this text.
19674
+ */
19675
+ message?: string;
19655
19676
  }>;
19656
19677
  /**
19657
19678
  * Generation intent recorded on the earliest video jobs; newer generation jobs describe themselves with type and operation instead.
@@ -19661,6 +19682,10 @@ export type MediaJob = {
19661
19682
  * Model that produced the outputs of a generation job; omitted for batch jobs.
19662
19683
  */
19663
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;
19664
19689
  /**
19665
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.
19666
19691
  */
@@ -19847,9 +19872,13 @@ export type MediaAssetReference = {
19847
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.
19848
19873
  */
19849
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;
19850
19879
  };
19851
19880
  /**
19852
- * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute and crop on a video), erase and replace_person on a video through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
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.
19853
19882
  */
19854
19883
  export type MediaEditOperation = {
19855
19884
  /**
@@ -19878,9 +19907,10 @@ export type MediaEditOperation = {
19878
19907
  */
19879
19908
  height?: 720 | 1080 | 1440 | 2160;
19880
19909
  /**
19881
- * 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.
19882
19911
  */
19883
19912
  model?: string;
19913
+ tier?: MediaMediaTier;
19884
19914
  } | {
19885
19915
  /**
19886
19916
  * Edit operation discriminator; outpaint selects the outpaint branch of this union.
@@ -19957,9 +19987,10 @@ export type MediaEditOperation = {
19957
19987
  */
19958
19988
  mute?: boolean;
19959
19989
  /**
19960
- * 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.
19961
19991
  */
19962
19992
  model?: string;
19993
+ tier?: MediaMediaTier;
19963
19994
  } | {
19964
19995
  /**
19965
19996
  * Edit operation discriminator; replace_object selects the replace_object branch of this union.
@@ -19996,9 +20027,10 @@ export type MediaEditOperation = {
19996
20027
  */
19997
20028
  output?: 'mask' | 'alpha';
19998
20029
  /**
19999
- * 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.
20000
20031
  */
20001
20032
  model?: string;
20033
+ tier?: MediaMediaTier;
20002
20034
  } | {
20003
20035
  /**
20004
20036
  * Edit operation discriminator; replace_background selects the replace_background branch of this union.
@@ -20091,13 +20123,18 @@ export type MediaEditOperation = {
20091
20123
  */
20092
20124
  type: 'lip_sync';
20093
20125
  /**
20094
- * Audio asset whose speech should drive the speaker’s lips.
20126
+ * Audio or voice asset in the same library whose speech the lips should follow. Anything else is refused with the field named.
20095
20127
  */
20096
20128
  audio_asset_id?: MediaAssetId;
20097
20129
  /**
20098
- * Speech to synthesize for the speaker instead of an existing audio asset.
20130
+ * Not carried out yet: synthesize the recording first with POST /media/v1/libraries/{library_id}/speech and name it in audio_asset_id.
20099
20131
  */
20100
20132
  speech?: MediaSpeechCreateInput;
20133
+ /**
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.
20135
+ */
20136
+ model?: string;
20137
+ tier?: MediaMediaTier;
20101
20138
  } | {
20102
20139
  /**
20103
20140
  * Edit operation discriminator; frame selects the frame branch of this union.
@@ -20118,9 +20155,10 @@ export type MediaEditOperation = {
20118
20155
  */
20119
20156
  type: 'enhance_voice';
20120
20157
  /**
20121
- * 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.
20122
20159
  */
20123
20160
  model?: string;
20161
+ tier?: MediaMediaTier;
20124
20162
  } | {
20125
20163
  /**
20126
20164
  * Edit operation discriminator; reframe selects the reframe branch of this union.
@@ -20131,9 +20169,10 @@ export type MediaEditOperation = {
20131
20169
  */
20132
20170
  aspect: '9:16' | '1:1' | '16:9';
20133
20171
  /**
20134
- * 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.
20135
20173
  */
20136
20174
  model?: string;
20175
+ tier?: MediaMediaTier;
20137
20176
  } | {
20138
20177
  /**
20139
20178
  * Edit operation discriminator; redact selects the redact branch of this union.
@@ -20144,9 +20183,10 @@ export type MediaEditOperation = {
20144
20183
  */
20145
20184
  targets: Array<'face' | 'qr' | 'text'>;
20146
20185
  /**
20147
- * 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.
20148
20187
  */
20149
20188
  model?: string;
20189
+ tier?: MediaMediaTier;
20150
20190
  } | {
20151
20191
  /**
20152
20192
  * Edit operation discriminator; trim selects the trim branch of this union.
@@ -20161,18 +20201,20 @@ export type MediaEditOperation = {
20161
20201
  */
20162
20202
  end_seconds?: number;
20163
20203
  /**
20164
- * 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.
20165
20205
  */
20166
20206
  model?: string;
20207
+ tier?: MediaMediaTier;
20167
20208
  } | {
20168
20209
  /**
20169
20210
  * Edit operation discriminator; mute selects the mute branch of this union.
20170
20211
  */
20171
20212
  type: 'mute';
20172
20213
  /**
20173
- * 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.
20174
20215
  */
20175
20216
  model?: string;
20217
+ tier?: MediaMediaTier;
20176
20218
  } | {
20177
20219
  /**
20178
20220
  * Edit operation discriminator; crop selects the crop branch of this union.
@@ -20195,9 +20237,23 @@ export type MediaEditOperation = {
20195
20237
  */
20196
20238
  left?: number;
20197
20239
  /**
20198
- * Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
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.
20199
20241
  */
20200
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;
20201
20257
  } | {
20202
20258
  /**
20203
20259
  * Edit operation discriminator; replace_person selects the replace_person branch of this union.
@@ -20208,13 +20264,60 @@ export type MediaEditOperation = {
20208
20264
  */
20209
20265
  person_asset_id: MediaAssetId;
20210
20266
  /**
20211
- * standard (the default: faster and cheaper) or pro (smoother and more detailed, slower and dearer).
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.
20212
20268
  */
20213
- quality?: 'standard' | 'pro';
20269
+ model?: string;
20270
+ tier?: MediaMediaTier;
20271
+ } | {
20272
+ /**
20273
+ * Edit operation discriminator; animate_person selects the animate_person branch of this union.
20274
+ */
20275
+ type: 'animate_person';
20276
+ /**
20277
+ * Image asset in the same library showing the person or character to animate. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
20278
+ */
20279
+ person_asset_id: MediaAssetId;
20214
20280
  /**
20215
- * Processing model that performs the replacement, from the models the generation capabilities publish for the replace_person capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
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.
20216
20282
  */
20217
20283
  model?: string;
20284
+ tier?: MediaMediaTier;
20285
+ } | {
20286
+ /**
20287
+ * Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
20288
+ */
20289
+ type: 'talking_avatar';
20290
+ /**
20291
+ * Audio or voice asset in the same library with the speech or song, at most 20 seconds.
20292
+ */
20293
+ audio_asset_id: MediaAssetId;
20294
+ /**
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.
20318
+ */
20319
+ model?: string;
20320
+ tier?: MediaMediaTier;
20218
20321
  } | {
20219
20322
  /**
20220
20323
  * Edit operation discriminator; voice_change selects the voice_change branch of this union.
@@ -20384,6 +20487,23 @@ export type MediaGenerationCapabilities = {
20384
20487
  speech: MediaGenerationTypeCapability;
20385
20488
  matting: MediaGenerationTypeCapability;
20386
20489
  };
20490
+ /**
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.
20492
+ */
20493
+ processes: {
20494
+ upscale: MediaGenerationProcessCapability;
20495
+ voice_enhance: MediaGenerationProcessCapability;
20496
+ reframe: MediaGenerationProcessCapability;
20497
+ redact: MediaGenerationProcessCapability;
20498
+ align: MediaGenerationProcessCapability;
20499
+ clip: MediaGenerationProcessCapability;
20500
+ erase: MediaGenerationProcessCapability;
20501
+ replace_person: MediaGenerationProcessCapability;
20502
+ lip_sync: MediaGenerationProcessCapability;
20503
+ animate_person: MediaGenerationProcessCapability;
20504
+ talking_avatar: MediaGenerationProcessCapability;
20505
+ video_edit: MediaGenerationProcessCapability;
20506
+ };
20387
20507
  };
20388
20508
  /**
20389
20509
  * A video asset’s on-demand HLS ladder for its current version: the asset, the version, and one summary per recorded rung.
@@ -20402,6 +20522,62 @@ export type MediaHlsLadder = {
20402
20522
  */
20403
20523
  renditions: Array<MediaHlsRendition>;
20404
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
+ };
20405
20581
  /**
20406
20582
  * One page of type registrations; types are few enough that this face returns them in a single page.
20407
20583
  */
@@ -21116,6 +21292,77 @@ export type RegistryVersion = {
21116
21292
  */
21117
21293
  create_time: string;
21118
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
+ };
21119
21366
  /**
21120
21367
  * 一个版本的文件清单;文件不多,一次返回全部。
21121
21368
  */
@@ -24180,7 +24427,7 @@ export type VaultUpdateSecretInput = {
24180
24427
  */
24181
24428
  value?: string;
24182
24429
  /**
24183
- * 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.
24184
24431
  */
24185
24432
  allowed_hosts?: Array<string>;
24186
24433
  /**
@@ -24566,6 +24813,10 @@ export type TicketComment = {
24566
24813
  * Last edit timestamp.
24567
24814
  */
24568
24815
  update_time: string;
24816
+ /**
24817
+ * Present only when something in the body could not be resolved; absent when it all resolved.
24818
+ */
24819
+ warnings?: Array<string>;
24569
24820
  };
24570
24821
  /**
24571
24822
  * A repository label.
@@ -36597,6 +36848,10 @@ export type MediaProvenance = {
36597
36848
  * Model that performed the operation, as the model identifier returned by the model API.
36598
36849
  */
36599
36850
  model: string;
36851
+ /**
36852
+ * 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.
36853
+ */
36854
+ tier?: MediaMediaTier;
36600
36855
  /**
36601
36856
  * 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.
36602
36857
  */
@@ -37256,7 +37511,7 @@ export type MediaLineageNode = {
37256
37511
  /**
37257
37512
  * What a reference asset contributes to the generated or edited result.
37258
37513
  */
37259
- export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
37514
+ export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video' | 'voice';
37260
37515
  /**
37261
37516
  * One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
37262
37517
  */
@@ -37444,6 +37699,15 @@ export type MediaGenerationTypeCapability = {
37444
37699
  */
37445
37700
  models: Array<MediaGenerationCapabilityModel>;
37446
37701
  };
37702
+ /**
37703
+ * The models one processing capability offers.
37704
+ */
37705
+ export type MediaGenerationProcessCapability = {
37706
+ /**
37707
+ * Every model the platform catalogue offers for this processing capability, in a stable order, with available and price. A processing model is charged per second it produces (price.unit second); a model with no published rate has no price.
37708
+ */
37709
+ models: Array<MediaGenerationCapabilityModel>;
37710
+ };
37447
37711
  export type MediaHlsRendition = {
37448
37712
  /**
37449
37713
  * Clarity rung as its playlist calls it; the height with a p, so 480p is the short side at 480 pixels.
@@ -37470,6 +37734,7 @@ export type MediaHlsRendition = {
37470
37734
  */
37471
37735
  state: MediaHlsRenditionState;
37472
37736
  };
37737
+ export type MediaVoiceConsentId = string;
37473
37738
  /**
37474
37739
  * A kind of entity the graph accepts, for example a file or a customer.
37475
37740
  */
@@ -37655,6 +37920,31 @@ export type RegistryRegistryError = {
37655
37920
  };
37656
37921
  };
37657
37922
  };
37923
+ /**
37924
+ * 树里的一个条目。
37925
+ */
37926
+ export type RegistryGitTreeEntry = {
37927
+ /**
37928
+ * 这一层里的条目名。
37929
+ */
37930
+ name: string;
37931
+ /**
37932
+ * 条目指向的对象类型;commit 是子模块。
37933
+ */
37934
+ type: 'blob' | 'tree' | 'commit';
37935
+ /**
37936
+ * git 的模式位,例如 100644 或 040000。
37937
+ */
37938
+ mode: string;
37939
+ /**
37940
+ * 条目指向的对象 id。
37941
+ */
37942
+ sha: string;
37943
+ /**
37944
+ * 对象大小(字节),后端给出时才有。
37945
+ */
37946
+ size?: number;
37947
+ };
37658
37948
  /**
37659
37949
  * 一个版本解压后的一个文件条目。
37660
37950
  */
@@ -37820,9 +38110,9 @@ export type SandboxTemplateBuild = {
37820
38110
  */
37821
38111
  export type ShareShareResource = {
37822
38112
  /**
37823
- * What kind of object is shared; file, canvas and media_asset create today.
38113
+ * What kind of object is shared; file, canvas, media_asset and agent create today.
37824
38114
  */
37825
- type: 'file' | 'artifact' | 'canvas' | 'media_asset';
38115
+ type: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
37826
38116
  /**
37827
38117
  * Id of the object within its type. For a file, the id from the File API; for a canvas, the canvas id (cvs_...); for a media_asset, library_id/asset_id with a real library id (lib_...), never the default alias. An object that does not exist in this organization answers 404 RESOURCE_NOT_FOUND.
37828
38118
  */
@@ -44331,6 +44621,14 @@ export type MediaGenerationCapabilityModel = {
44331
44621
  * Video models that take reference pictures only: the most reference pictures one request with mode reference may name on this model, counted after any element is expanded. Present exactly when modes includes reference, and absent on every other model — a model without this key cannot be driven in reference mode and a request naming it is refused with OPERATION_NOT_SUPPORTED before any job. A request naming more pictures than this is refused with INVALID_PARAMS; every model is also capped at the platform’s own 9, so this value is never greater than 9.
44332
44622
  */
44333
44623
  max_reference_images?: number;
44624
+ /**
44625
+ * Video models whose modes include edit only: the most input videos one request may carry on this model, an edit’s source counting as one (Doubao Seedance 2.5 takes 10, the 2.0 series 3).
44626
+ */
44627
+ max_reference_videos?: number;
44628
+ /**
44629
+ * Video models whose modes include edit only: the shortest source video an edit accepts, in seconds; a shorter source is refused with INVALID_PARAMS before any job or charge.
44630
+ */
44631
+ min_edit_source_seconds?: number;
44334
44632
  /**
44335
44633
  * Video models only: the durations in seconds the platform has registered for this model, ascending. Read it before requesting and pass one of these as duration_seconds; an empty list means the platform has not registered durations for the model yet, so omit duration_seconds and the model’s own default applies. It is never a substituted default: an empty list is not a claim that any duration works.
44336
44634
  */
@@ -47579,7 +47877,7 @@ export type DevopsTargetPath = string;
47579
47877
  */
47580
47878
  export type DevopsLockId = string;
47581
47879
  /**
47582
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
47880
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
47583
47881
  */
47584
47882
  export type DevopsChangeIdPath = string;
47585
47883
  /**
@@ -47654,6 +47952,26 @@ export type RegistrySort = 'updated' | 'downloads';
47654
47952
  * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
47655
47953
  */
47656
47954
  export type RegistryPackageId = string;
47955
+ /**
47956
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
47957
+ */
47958
+ export type RegistryGitRef = string;
47959
+ /**
47960
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
47961
+ */
47962
+ export type RegistryGitLogLimit = number;
47963
+ /**
47964
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
47965
+ */
47966
+ export type RegistryGitLogOffset = number;
47967
+ /**
47968
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
47969
+ */
47970
+ export type RegistryGitObjectId = string;
47971
+ /**
47972
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
47973
+ */
47974
+ export type RegistryGitFilePath = string;
47657
47975
  /**
47658
47976
  * 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
47659
47977
  */
@@ -49860,7 +50178,7 @@ export type ApplyAgentVersionResponses = {
49860
50178
  */
49861
50179
  note: string | null;
49862
50180
  /**
49863
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
50181
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
49864
50182
  */
49865
50183
  bindings: Array<{
49866
50184
  /**
@@ -49875,6 +50193,10 @@ export type ApplyAgentVersionResponses = {
49875
50193
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
49876
50194
  */
49877
50195
  access: 'read_only' | 'read_write' | 'invoke';
50196
+ /**
50197
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
50198
+ */
50199
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
49878
50200
  /**
49879
50201
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
49880
50202
  */
@@ -50299,6 +50621,10 @@ export type ApplyAgentVersionResponses = {
50299
50621
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
50300
50622
  */
50301
50623
  creation_source: string | null;
50624
+ /**
50625
+ * 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.
50626
+ */
50627
+ managed_by: string | null;
50302
50628
  /**
50303
50629
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
50304
50630
  */
@@ -51099,7 +51425,7 @@ export type UnarchiveAgentResponses = {
51099
51425
  */
51100
51426
  note: string | null;
51101
51427
  /**
51102
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51428
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51103
51429
  */
51104
51430
  bindings: Array<{
51105
51431
  /**
@@ -51114,6 +51440,10 @@ export type UnarchiveAgentResponses = {
51114
51440
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
51115
51441
  */
51116
51442
  access: 'read_only' | 'read_write' | 'invoke';
51443
+ /**
51444
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
51445
+ */
51446
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
51117
51447
  /**
51118
51448
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
51119
51449
  */
@@ -51538,6 +51868,10 @@ export type UnarchiveAgentResponses = {
51538
51868
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
51539
51869
  */
51540
51870
  creation_source: string | null;
51871
+ /**
51872
+ * 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.
51873
+ */
51874
+ managed_by: string | null;
51541
51875
  /**
51542
51876
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
51543
51877
  */
@@ -52523,7 +52857,7 @@ export type GetAgentEmbedPolicyData = {
52523
52857
  };
52524
52858
  export type GetAgentEmbedPolicyErrors = {
52525
52859
  /**
52526
- * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
52860
+ * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
52527
52861
  */
52528
52862
  400: unknown;
52529
52863
  /**
@@ -52554,7 +52888,7 @@ export type GetAgentEmbedPolicyErrors = {
52554
52888
  export type GetAgentEmbedPolicyError = GetAgentEmbedPolicyErrors[keyof GetAgentEmbedPolicyErrors];
52555
52889
  export type GetAgentEmbedPolicyResponses = {
52556
52890
  /**
52557
- * The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52891
+ * The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52558
52892
  */
52559
52893
  200: {
52560
52894
  /**
@@ -52582,6 +52916,23 @@ export type GetAgentEmbedPolicyResponses = {
52582
52916
  */
52583
52917
  max_files_per_session: number;
52584
52918
  };
52919
+ /**
52920
+ * Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
52921
+ */
52922
+ share_links: {
52923
+ /**
52924
+ * Whether this agent may be shared by link. Off by default.
52925
+ */
52926
+ enabled: boolean;
52927
+ /**
52928
+ * The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
52929
+ */
52930
+ daily_session_cap: number | null;
52931
+ /**
52932
+ * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
52933
+ */
52934
+ daily_spend_cap_micro_usd: number | null;
52935
+ };
52585
52936
  };
52586
52937
  };
52587
52938
  export type GetAgentEmbedPolicyResponse = GetAgentEmbedPolicyResponses[keyof GetAgentEmbedPolicyResponses];
@@ -52615,6 +52966,23 @@ export type UpdateAgentEmbedPolicyData = {
52615
52966
  */
52616
52967
  max_files_per_session?: number;
52617
52968
  };
52969
+ /**
52970
+ * Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number.
52971
+ */
52972
+ share_links?: {
52973
+ /**
52974
+ * Whether this agent may be shared by link.
52975
+ */
52976
+ enabled?: boolean;
52977
+ /**
52978
+ * The most primary sessions the agent's share links may start in one UTC day, a whole number, or null for no session cap.
52979
+ */
52980
+ daily_session_cap?: number | null;
52981
+ /**
52982
+ * The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
52983
+ */
52984
+ daily_spend_cap_micro_usd?: number | null;
52985
+ };
52618
52986
  };
52619
52987
  path: {
52620
52988
  /**
@@ -52627,7 +52995,7 @@ export type UpdateAgentEmbedPolicyData = {
52627
52995
  };
52628
52996
  export type UpdateAgentEmbedPolicyErrors = {
52629
52997
  /**
52630
- * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
52998
+ * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
52631
52999
  */
52632
53000
  400: unknown;
52633
53001
  /**
@@ -52658,7 +53026,7 @@ export type UpdateAgentEmbedPolicyErrors = {
52658
53026
  export type UpdateAgentEmbedPolicyError = UpdateAgentEmbedPolicyErrors[keyof UpdateAgentEmbedPolicyErrors];
52659
53027
  export type UpdateAgentEmbedPolicyResponses = {
52660
53028
  /**
52661
- * The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
53029
+ * The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52662
53030
  */
52663
53031
  200: {
52664
53032
  /**
@@ -52686,6 +53054,23 @@ export type UpdateAgentEmbedPolicyResponses = {
52686
53054
  */
52687
53055
  max_files_per_session: number;
52688
53056
  };
53057
+ /**
53058
+ * Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
53059
+ */
53060
+ share_links: {
53061
+ /**
53062
+ * Whether this agent may be shared by link. Off by default.
53063
+ */
53064
+ enabled: boolean;
53065
+ /**
53066
+ * The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
53067
+ */
53068
+ daily_session_cap: number | null;
53069
+ /**
53070
+ * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
53071
+ */
53072
+ daily_spend_cap_micro_usd: number | null;
53073
+ };
52689
53074
  };
52690
53075
  };
52691
53076
  export type UpdateAgentEmbedPolicyResponse = UpdateAgentEmbedPolicyResponses[keyof UpdateAgentEmbedPolicyResponses];
@@ -55135,25 +55520,33 @@ export type ComputersFilesContentResponses = {
55135
55520
  206: Blob | File;
55136
55521
  };
55137
55522
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
55138
- export type ComputersFilesConvertData = {
55523
+ export type PreviewComputerFileData = {
55139
55524
  body?: never;
55140
55525
  path: {
55141
55526
  /**
55142
- * Computer id (cmp_...), as returned by computers.create or computers.list.
55527
+ * Computer id from computer creation or listing; a computer another tenant owns is not found.
55143
55528
  */
55144
55529
  computer_id: string;
55145
55530
  };
55146
55531
  query: {
55147
55532
  /**
55148
- * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
55533
+ * Absolute path of the file on the computer, or a /workspace/ relative path.
55149
55534
  */
55150
55535
  path: string;
55536
+ /**
55537
+ * 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.
55538
+ */
55539
+ v?: string;
55540
+ /**
55541
+ * 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.
55542
+ */
55543
+ variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
55151
55544
  };
55152
- url: '/agent/v1/computers/{computer_id}/files/convert';
55545
+ url: '/agent/v1/computers/{computer_id}/files/preview';
55153
55546
  };
55154
- export type ComputersFilesConvertErrors = {
55547
+ export type PreviewComputerFileErrors = {
55155
55548
  /**
55156
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55549
+ * 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.
55157
55550
  */
55158
55551
  400: {
55159
55552
  type: 'error';
@@ -55245,7 +55638,7 @@ export type ComputersFilesConvertErrors = {
55245
55638
  request_id: string;
55246
55639
  };
55247
55640
  /**
55248
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55641
+ * STALE_DIGEST: the file changed while its product was read; ask again.
55249
55642
  */
55250
55643
  409: {
55251
55644
  type: 'error';
@@ -55268,7 +55661,7 @@ export type ComputersFilesConvertErrors = {
55268
55661
  request_id: string;
55269
55662
  };
55270
55663
  /**
55271
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55664
+ * FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
55272
55665
  */
55273
55666
  413: {
55274
55667
  type: 'error';
@@ -55337,7 +55730,7 @@ export type ComputersFilesConvertErrors = {
55337
55730
  request_id: string;
55338
55731
  };
55339
55732
  /**
55340
- * Platform error in the one /agent/v1 error body; computer failures add error.hint
55733
+ * PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
55341
55734
  */
55342
55735
  503: {
55343
55736
  type: 'error';
@@ -55360,46 +55753,320 @@ export type ComputersFilesConvertErrors = {
55360
55753
  request_id: string;
55361
55754
  };
55362
55755
  };
55363
- export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
55364
- export type ComputersFilesConvertResponses = {
55756
+ export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
55757
+ export type PreviewComputerFileResponses = {
55365
55758
  /**
55366
- * The converted PDF as base64
55759
+ * The preview product, or the fallback that sends the caller to the content door.
55367
55760
  */
55368
55761
  200: {
55369
55762
  /**
55370
- * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
55763
+ * 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.
55371
55764
  */
55372
- data: string;
55765
+ variant: 'image' | 'pdf' | 'text' | 'original';
55373
55766
  /**
55374
- * Media type of the decoded bytes; always application/pdf.
55767
+ * The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
55375
55768
  */
55376
- mime: 'application/pdf';
55769
+ version?: string;
55377
55770
  /**
55378
- * true when an earlier conversion of the same file content was reused.
55771
+ * Media type of the product, or of the original bytes.
55772
+ */
55773
+ mime_type?: string;
55774
+ /**
55775
+ * Size of the product in bytes.
55776
+ */
55777
+ size?: number;
55778
+ /**
55779
+ * File id of the stored product in the File service, when the product was stored.
55780
+ */
55781
+ file_id?: string;
55782
+ /**
55783
+ * Signed read address of the product; the caller streams it and caches by the version it pinned.
55784
+ */
55785
+ url?: string;
55786
+ /**
55787
+ * When the signed read address stops working.
55788
+ */
55789
+ expires_at?: string;
55790
+ /**
55791
+ * true when an existing product answered without regenerating it.
55379
55792
  */
55380
55793
  cached: boolean;
55381
- };
55382
- };
55383
- export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
55384
- export type ConnectComputerData = {
55385
- body?: {
55386
55794
  /**
55387
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
55795
+ * 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.
55388
55796
  */
55389
- need?: 'light' | 'heavy';
55797
+ fallback?: 'content';
55798
+ /**
55799
+ * true only on a pre-generation request over the kind's threshold, where generation was skipped.
55800
+ */
55801
+ skipped?: boolean;
55390
55802
  };
55803
+ };
55804
+ export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
55805
+ export type ComputersFilesConvertData = {
55806
+ body?: never;
55391
55807
  path: {
55392
55808
  /**
55393
55809
  * Computer id (cmp_...), as returned by computers.create or computers.list.
55394
55810
  */
55395
55811
  computer_id: string;
55396
55812
  };
55397
- query?: never;
55398
- url: '/agent/v1/computers/{computer_id}/connect';
55813
+ query: {
55814
+ /**
55815
+ * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
55816
+ */
55817
+ path: string;
55818
+ };
55819
+ url: '/agent/v1/computers/{computer_id}/files/convert';
55399
55820
  };
55400
- export type ConnectComputerErrors = {
55821
+ export type ComputersFilesConvertErrors = {
55401
55822
  /**
55402
- * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
55823
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55824
+ */
55825
+ 400: {
55826
+ type: 'error';
55827
+ error: {
55828
+ /**
55829
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55830
+ */
55831
+ type: string;
55832
+ message: string;
55833
+ code: string;
55834
+ retryable: boolean;
55835
+ /**
55836
+ * How to recover, for computer failures.
55837
+ */
55838
+ hint?: string;
55839
+ };
55840
+ /**
55841
+ * Equals the X-Request-Id response header.
55842
+ */
55843
+ request_id: string;
55844
+ };
55845
+ /**
55846
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55847
+ */
55848
+ 401: {
55849
+ type: 'error';
55850
+ error: {
55851
+ /**
55852
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55853
+ */
55854
+ type: string;
55855
+ message: string;
55856
+ code: string;
55857
+ retryable: boolean;
55858
+ /**
55859
+ * How to recover, for computer failures.
55860
+ */
55861
+ hint?: string;
55862
+ };
55863
+ /**
55864
+ * Equals the X-Request-Id response header.
55865
+ */
55866
+ request_id: string;
55867
+ };
55868
+ /**
55869
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55870
+ */
55871
+ 403: {
55872
+ type: 'error';
55873
+ error: {
55874
+ /**
55875
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55876
+ */
55877
+ type: string;
55878
+ message: string;
55879
+ code: string;
55880
+ retryable: boolean;
55881
+ /**
55882
+ * How to recover, for computer failures.
55883
+ */
55884
+ hint?: string;
55885
+ };
55886
+ /**
55887
+ * Equals the X-Request-Id response header.
55888
+ */
55889
+ request_id: string;
55890
+ };
55891
+ /**
55892
+ * Computer or path not found; foreign computers are indistinguishable from absent computers.
55893
+ */
55894
+ 404: {
55895
+ type: 'error';
55896
+ error: {
55897
+ /**
55898
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55899
+ */
55900
+ type: string;
55901
+ message: string;
55902
+ code: string;
55903
+ retryable: boolean;
55904
+ /**
55905
+ * How to recover, for computer failures.
55906
+ */
55907
+ hint?: string;
55908
+ };
55909
+ /**
55910
+ * Equals the X-Request-Id response header.
55911
+ */
55912
+ request_id: string;
55913
+ };
55914
+ /**
55915
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55916
+ */
55917
+ 409: {
55918
+ type: 'error';
55919
+ error: {
55920
+ /**
55921
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55922
+ */
55923
+ type: string;
55924
+ message: string;
55925
+ code: string;
55926
+ retryable: boolean;
55927
+ /**
55928
+ * How to recover, for computer failures.
55929
+ */
55930
+ hint?: string;
55931
+ };
55932
+ /**
55933
+ * Equals the X-Request-Id response header.
55934
+ */
55935
+ request_id: string;
55936
+ };
55937
+ /**
55938
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55939
+ */
55940
+ 413: {
55941
+ type: 'error';
55942
+ error: {
55943
+ /**
55944
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55945
+ */
55946
+ type: string;
55947
+ message: string;
55948
+ code: string;
55949
+ retryable: boolean;
55950
+ /**
55951
+ * How to recover, for computer failures.
55952
+ */
55953
+ hint?: string;
55954
+ };
55955
+ /**
55956
+ * Equals the X-Request-Id response header.
55957
+ */
55958
+ request_id: string;
55959
+ };
55960
+ /**
55961
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55962
+ */
55963
+ 429: {
55964
+ type: 'error';
55965
+ error: {
55966
+ /**
55967
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55968
+ */
55969
+ type: string;
55970
+ message: string;
55971
+ code: string;
55972
+ retryable: boolean;
55973
+ /**
55974
+ * How to recover, for computer failures.
55975
+ */
55976
+ hint?: string;
55977
+ };
55978
+ /**
55979
+ * Equals the X-Request-Id response header.
55980
+ */
55981
+ request_id: string;
55982
+ };
55983
+ /**
55984
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
55985
+ */
55986
+ 500: {
55987
+ type: 'error';
55988
+ error: {
55989
+ /**
55990
+ * Anthropic error type, such as invalid_request_error or not_found_error.
55991
+ */
55992
+ type: string;
55993
+ message: string;
55994
+ code: string;
55995
+ retryable: boolean;
55996
+ /**
55997
+ * How to recover, for computer failures.
55998
+ */
55999
+ hint?: string;
56000
+ };
56001
+ /**
56002
+ * Equals the X-Request-Id response header.
56003
+ */
56004
+ request_id: string;
56005
+ };
56006
+ /**
56007
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
56008
+ */
56009
+ 503: {
56010
+ type: 'error';
56011
+ error: {
56012
+ /**
56013
+ * Anthropic error type, such as invalid_request_error or not_found_error.
56014
+ */
56015
+ type: string;
56016
+ message: string;
56017
+ code: string;
56018
+ retryable: boolean;
56019
+ /**
56020
+ * How to recover, for computer failures.
56021
+ */
56022
+ hint?: string;
56023
+ };
56024
+ /**
56025
+ * Equals the X-Request-Id response header.
56026
+ */
56027
+ request_id: string;
56028
+ };
56029
+ };
56030
+ export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
56031
+ export type ComputersFilesConvertResponses = {
56032
+ /**
56033
+ * The converted PDF as base64
56034
+ */
56035
+ 200: {
56036
+ /**
56037
+ * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
56038
+ */
56039
+ data: string;
56040
+ /**
56041
+ * Media type of the decoded bytes; always application/pdf.
56042
+ */
56043
+ mime: 'application/pdf';
56044
+ /**
56045
+ * true when an earlier conversion of the same file content was reused.
56046
+ */
56047
+ cached: boolean;
56048
+ };
56049
+ };
56050
+ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
56051
+ export type ConnectComputerData = {
56052
+ body?: {
56053
+ /**
56054
+ * 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.
56055
+ */
56056
+ need?: 'light' | 'heavy';
56057
+ };
56058
+ path: {
56059
+ /**
56060
+ * Computer id (cmp_...), as returned by computers.create or computers.list.
56061
+ */
56062
+ computer_id: string;
56063
+ };
56064
+ query?: never;
56065
+ url: '/agent/v1/computers/{computer_id}/connect';
56066
+ };
56067
+ export type ConnectComputerErrors = {
56068
+ /**
56069
+ * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
55403
56070
  */
55404
56071
  400: {
55405
56072
  type: 'error';
@@ -58187,28 +58854,25 @@ export type ForkSessionResponses = {
58187
58854
  };
58188
58855
  };
58189
58856
  export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
58190
- export type UpdateSessionAgentVersionData = {
58191
- /**
58192
- * The version to move the session to; omit the body to move to the agent's active version.
58193
- */
58194
- body?: {
58857
+ export type RenameSessionData = {
58858
+ body: {
58195
58859
  /**
58196
- * An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version.
58860
+ * 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.
58197
58861
  */
58198
- version?: number;
58862
+ name: string;
58199
58863
  };
58200
58864
  path: {
58201
58865
  /**
58202
- * Session id from session creation or listing, or the own face's session name for a main session.
58866
+ * Session id from session creation or listing. The reserved name main is not renameable.
58203
58867
  */
58204
58868
  session_id: string;
58205
58869
  };
58206
58870
  query?: never;
58207
- url: '/agent/v1/sessions/{session_id}/agent_version';
58871
+ url: '/agent/v1/sessions/{session_id}/name';
58208
58872
  };
58209
- export type UpdateSessionAgentVersionErrors = {
58873
+ export type RenameSessionErrors = {
58210
58874
  /**
58211
- * INVALID_PARAMS: version is not a positive integer.
58875
+ * 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.
58212
58876
  */
58213
58877
  400: unknown;
58214
58878
  /**
@@ -58216,17 +58880,13 @@ export type UpdateSessionAgentVersionErrors = {
58216
58880
  */
58217
58881
  401: unknown;
58218
58882
  /**
58219
- * FORBIDDEN: an embedded end user talks to an agent but never reconfigures the session it talks on, so it cannot change the agent version.
58883
+ * 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.
58220
58884
  */
58221
- 403: unknown;
58885
+ 403: AgentError;
58222
58886
  /**
58223
- * Session not found or not writable by this caller; AGENT_VERSION_NOT_FOUND when the agent has no such version.
58887
+ * Session not found or not writable by this caller.
58224
58888
  */
58225
58889
  404: unknown;
58226
- /**
58227
- * SESSION_CONFLICT: the session is running a turn, so the version was not changed; retry once it is idle. SESSION_ARCHIVED: an archived session cannot be moved.
58228
- */
58229
- 409: unknown;
58230
58890
  /**
58231
58891
  * Agent service failed
58232
58892
  */
@@ -58236,9 +58896,1741 @@ export type UpdateSessionAgentVersionErrors = {
58236
58896
  */
58237
58897
  503: unknown;
58238
58898
  };
58239
- export type UpdateSessionAgentVersionResponses = {
58899
+ export type RenameSessionError = RenameSessionErrors[keyof RenameSessionErrors];
58900
+ export type RenameSessionResponses = {
58240
58901
  /**
58241
- * The session, now on the requested version; an unchanged version answers the session as it stands and writes no event.
58902
+ * The session under its new name; a name another of this person's sessions already holds comes back with a numeric suffix.
58903
+ */
58904
+ 200: {
58905
+ /**
58906
+ * Session id (sesn_...). Pass it as session_id in every session call.
58907
+ */
58908
+ id: string;
58909
+ /**
58910
+ * Resolved `agent` definition for a `session`. Snapshot of the `agent` at
58911
+ * `session` creation time.
58912
+ */
58913
+ agent: {
58914
+ /**
58915
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
58916
+ */
58917
+ id: string;
58918
+ /**
58919
+ * Free-text description of what the agent is for; null when none was set.
58920
+ */
58921
+ description: null | string;
58922
+ /**
58923
+ * Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
58924
+ */
58925
+ mcp_servers: Array<{
58926
+ /**
58927
+ * Streamable HTTP transport.
58928
+ */
58929
+ type: 'url';
58930
+ /**
58931
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58932
+ */
58933
+ name: string;
58934
+ /**
58935
+ * HTTP or HTTPS MCP server endpoint.
58936
+ */
58937
+ url: string;
58938
+ /**
58939
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
58940
+ */
58941
+ headers?: {
58942
+ [key: string]: string;
58943
+ };
58944
+ /**
58945
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
58946
+ */
58947
+ timeout_ms?: number;
58948
+ } | {
58949
+ /**
58950
+ * Legacy SSE transport.
58951
+ */
58952
+ type: 'sse';
58953
+ /**
58954
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58955
+ */
58956
+ name: string;
58957
+ /**
58958
+ * HTTP or HTTPS MCP server endpoint.
58959
+ */
58960
+ url: string;
58961
+ /**
58962
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
58963
+ */
58964
+ headers?: {
58965
+ [key: string]: string;
58966
+ };
58967
+ /**
58968
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
58969
+ */
58970
+ timeout_ms?: number;
58971
+ } | {
58972
+ /**
58973
+ * Run a command on the agent computer.
58974
+ */
58975
+ type: 'stdio';
58976
+ /**
58977
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
58978
+ */
58979
+ name: string;
58980
+ /**
58981
+ * Executable command on the agent computer.
58982
+ */
58983
+ command: string;
58984
+ /**
58985
+ * Command arguments; omitted means no arguments.
58986
+ */
58987
+ args?: Array<string>;
58988
+ /**
58989
+ * Praxis extension: environment variables for the command on the agent computer.
58990
+ */
58991
+ env?: {
58992
+ [key: string]: string;
58993
+ };
58994
+ /**
58995
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
58996
+ */
58997
+ timeout_ms?: number;
58998
+ }>;
58999
+ /**
59000
+ * Model identifier and configuration.
59001
+ */
59002
+ model: {
59003
+ /**
59004
+ * 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.
59005
+ */
59006
+ id: string;
59007
+ /**
59008
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
59009
+ * Messages call the session makes.
59010
+ */
59011
+ effort?: {
59012
+ /**
59013
+ * Always `low`. Lowest reasoning effort of the supported levels.
59014
+ */
59015
+ type: 'low';
59016
+ } | {
59017
+ /**
59018
+ * Always `medium`. Middle reasoning effort.
59019
+ */
59020
+ type: 'medium';
59021
+ } | {
59022
+ /**
59023
+ * Always `high`. High reasoning effort.
59024
+ */
59025
+ type: 'high';
59026
+ } | {
59027
+ /**
59028
+ * Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
59029
+ */
59030
+ type: 'xhigh';
59031
+ } | {
59032
+ /**
59033
+ * Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
59034
+ */
59035
+ type: 'max';
59036
+ };
59037
+ /**
59038
+ * Geographic region for model inference. When unset, requests fall through to the
59039
+ * workspace's default_inference_geo.
59040
+ */
59041
+ inference_geo?: string;
59042
+ /**
59043
+ * Inference speed mode. `fast` provides significantly faster output token
59044
+ * generation at premium pricing. Not all models support `fast`; invalid
59045
+ * combinations are rejected at create time.
59046
+ */
59047
+ speed?: 'standard' | 'fast';
59048
+ /**
59049
+ * Platform model settings: reasoning (default thinking level) and max_output_tokens (output cap). Other model controls return 400.
59050
+ */
59051
+ settings?: {
59052
+ /**
59053
+ * Default thinking effort for sessions without an explicit selection. Unsupported defaults fall back to the selected model default.
59054
+ */
59055
+ reasoning?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
59056
+ /**
59057
+ * 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.
59058
+ */
59059
+ max_output_tokens?: number;
59060
+ };
59061
+ };
59062
+ /**
59063
+ * Resolved coordinator topology with full agent definitions for each roster
59064
+ * member.
59065
+ */
59066
+ multiagent: null | {
59067
+ /**
59068
+ * Full `agent` definitions the coordinator may spawn as session threads.
59069
+ */
59070
+ agents: Array<{
59071
+ /**
59072
+ * The advisor model id.
59073
+ */
59074
+ model: string;
59075
+ /**
59076
+ * Always `advisor`. An advisor whose model is consulted for advice in a separate thread (at most one per coordinator).
59077
+ */
59078
+ type: 'advisor';
59079
+ } | {
59080
+ /**
59081
+ * Agent id (agent_...). Pass it as agent when creating a session and as agent_id in agent calls.
59082
+ */
59083
+ id: string;
59084
+ /**
59085
+ * Free-text description of what the agent is for; null when none was set.
59086
+ */
59087
+ description: null | string;
59088
+ /**
59089
+ * Praxis extension: Streamable HTTP, SSE or trusted stdio MCP servers, persisted with the agent version. Optional fields remain omitted when not supplied.
59090
+ */
59091
+ mcp_servers: Array<{
59092
+ /**
59093
+ * Streamable HTTP transport.
59094
+ */
59095
+ type: 'url';
59096
+ /**
59097
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59098
+ */
59099
+ name: string;
59100
+ /**
59101
+ * HTTP or HTTPS MCP server endpoint.
59102
+ */
59103
+ url: string;
59104
+ /**
59105
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
59106
+ */
59107
+ headers?: {
59108
+ [key: string]: string;
59109
+ };
59110
+ /**
59111
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59112
+ */
59113
+ timeout_ms?: number;
59114
+ } | {
59115
+ /**
59116
+ * Legacy SSE transport.
59117
+ */
59118
+ type: 'sse';
59119
+ /**
59120
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59121
+ */
59122
+ name: string;
59123
+ /**
59124
+ * HTTP or HTTPS MCP server endpoint.
59125
+ */
59126
+ url: string;
59127
+ /**
59128
+ * Praxis extension: request headers. Platform identity headers take precedence, case-insensitively.
59129
+ */
59130
+ headers?: {
59131
+ [key: string]: string;
59132
+ };
59133
+ /**
59134
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59135
+ */
59136
+ timeout_ms?: number;
59137
+ } | {
59138
+ /**
59139
+ * Run a command on the agent computer.
59140
+ */
59141
+ type: 'stdio';
59142
+ /**
59143
+ * Name of the MCP server; the mcp_toolset entry that refers to it uses the same name in mcp_server_name.
59144
+ */
59145
+ name: string;
59146
+ /**
59147
+ * Executable command on the agent computer.
59148
+ */
59149
+ command: string;
59150
+ /**
59151
+ * Command arguments; omitted means no arguments.
59152
+ */
59153
+ args?: Array<string>;
59154
+ /**
59155
+ * Praxis extension: environment variables for the command on the agent computer.
59156
+ */
59157
+ env?: {
59158
+ [key: string]: string;
59159
+ };
59160
+ /**
59161
+ * Praxis extension: timeout in milliseconds. Applied to stdio; HTTP/SSE currently use the connection SDK default.
59162
+ */
59163
+ timeout_ms?: number;
59164
+ }>;
59165
+ /**
59166
+ * Model identifier and configuration.
59167
+ */
59168
+ model: {
59169
+ /**
59170
+ * 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.
59171
+ */
59172
+ id: string;
59173
+ /**
59174
+ * How hard Claude works on each turn. Sets `output_config.effort` on every
59175
+ * Messages call the session makes.
59176
+ */
59177
+ effort?: {
59178
+ /**
59179
+ * Always `low`. Lowest reasoning effort of the supported levels.
59180
+ */
59181
+ type: 'low';
59182
+ } | {
59183
+ /**
59184
+ * Always `medium`. Middle reasoning effort.
59185
+ */
59186
+ type: 'medium';
59187
+ } | {
59188
+ /**
59189
+ * Always `high`. High reasoning effort.
59190
+ */
59191
+ type: 'high';
59192
+ } | {
59193
+ /**
59194
+ * Always `xhigh`. Extra-high reasoning effort, above high; only models that list it in thinking.efforts accept it.
59195
+ */
59196
+ type: 'xhigh';
59197
+ } | {
59198
+ /**
59199
+ * Always `max`. Maximum effort level of the Managed Agents shape, above xhigh.
59200
+ */
59201
+ type: 'max';
59202
+ };
59203
+ /**
59204
+ * Geographic region for model inference. When unset, requests fall through to the
59205
+ * workspace's default_inference_geo.
59206
+ */
59207
+ inference_geo?: string;
59208
+ /**
59209
+ * Inference speed mode. `fast` provides significantly faster output token
59210
+ * generation at premium pricing. Not all models support `fast`; invalid
59211
+ * combinations are rejected at create time.
59212
+ */
59213
+ speed?: 'standard' | 'fast';
59214
+ };
59215
+ /**
59216
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
59217
+ */
59218
+ name: string;
59219
+ /**
59220
+ * 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.
59221
+ */
59222
+ skills: Array<{
59223
+ /**
59224
+ * Id of the skill to attach.
59225
+ */
59226
+ skill_id: string;
59227
+ /**
59228
+ * Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
59229
+ */
59230
+ type: 'anthropic';
59231
+ /**
59232
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59233
+ */
59234
+ version: string;
59235
+ } | {
59236
+ /**
59237
+ * Id of the skill to attach.
59238
+ */
59239
+ skill_id: string;
59240
+ /**
59241
+ * Always `custom`. A skill created by you, identified by skill_id.
59242
+ */
59243
+ type: 'custom';
59244
+ /**
59245
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59246
+ */
59247
+ version: string;
59248
+ }>;
59249
+ /**
59250
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
59251
+ */
59252
+ system: null | string;
59253
+ /**
59254
+ * 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.
59255
+ */
59256
+ tools: Array<{
59257
+ /**
59258
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59259
+ */
59260
+ configs: Array<{
59261
+ /**
59262
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59263
+ */
59264
+ enabled: boolean;
59265
+ /**
59266
+ * Name of the native tool this entry configures.
59267
+ */
59268
+ name: 'bash';
59269
+ /**
59270
+ * Permission policy for tool execution.
59271
+ */
59272
+ permission_policy: {
59273
+ /**
59274
+ * Always `always_allow`. Calls run without asking.
59275
+ */
59276
+ type: 'always_allow';
59277
+ } | {
59278
+ /**
59279
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59280
+ */
59281
+ type: 'always_ask';
59282
+ } | {
59283
+ /**
59284
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59285
+ */
59286
+ type: 'auto';
59287
+ };
59288
+ /**
59289
+ * Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
59290
+ */
59291
+ type: 'bash';
59292
+ } | {
59293
+ /**
59294
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59295
+ */
59296
+ enabled: boolean;
59297
+ /**
59298
+ * Name of the native tool this entry configures.
59299
+ */
59300
+ name: 'edit';
59301
+ /**
59302
+ * Permission policy for tool execution.
59303
+ */
59304
+ permission_policy: {
59305
+ /**
59306
+ * Always `always_allow`. Calls run without asking.
59307
+ */
59308
+ type: 'always_allow';
59309
+ } | {
59310
+ /**
59311
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59312
+ */
59313
+ type: 'always_ask';
59314
+ } | {
59315
+ /**
59316
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59317
+ */
59318
+ type: 'auto';
59319
+ };
59320
+ /**
59321
+ * Always `edit`. Selects the edit tool, which changes an existing file.
59322
+ */
59323
+ type: 'edit';
59324
+ } | {
59325
+ /**
59326
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59327
+ */
59328
+ enabled: boolean;
59329
+ /**
59330
+ * Name of the native tool this entry configures.
59331
+ */
59332
+ name: 'read';
59333
+ /**
59334
+ * Permission policy for tool execution.
59335
+ */
59336
+ permission_policy: {
59337
+ /**
59338
+ * Always `always_allow`. Calls run without asking.
59339
+ */
59340
+ type: 'always_allow';
59341
+ } | {
59342
+ /**
59343
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59344
+ */
59345
+ type: 'always_ask';
59346
+ } | {
59347
+ /**
59348
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59349
+ */
59350
+ type: 'auto';
59351
+ };
59352
+ /**
59353
+ * Always `read`. Selects the read tool, which reads a file.
59354
+ */
59355
+ type: 'read';
59356
+ } | {
59357
+ /**
59358
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59359
+ */
59360
+ enabled: boolean;
59361
+ /**
59362
+ * Name of the native tool this entry configures.
59363
+ */
59364
+ name: 'write';
59365
+ /**
59366
+ * Permission policy for tool execution.
59367
+ */
59368
+ permission_policy: {
59369
+ /**
59370
+ * Always `always_allow`. Calls run without asking.
59371
+ */
59372
+ type: 'always_allow';
59373
+ } | {
59374
+ /**
59375
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59376
+ */
59377
+ type: 'always_ask';
59378
+ } | {
59379
+ /**
59380
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59381
+ */
59382
+ type: 'auto';
59383
+ };
59384
+ /**
59385
+ * Always `write`. Selects the write tool, which writes a file.
59386
+ */
59387
+ type: 'write';
59388
+ } | {
59389
+ /**
59390
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59391
+ */
59392
+ enabled: boolean;
59393
+ /**
59394
+ * Name of the native tool this entry configures.
59395
+ */
59396
+ name: 'glob';
59397
+ /**
59398
+ * Permission policy for tool execution.
59399
+ */
59400
+ permission_policy: {
59401
+ /**
59402
+ * Always `always_allow`. Calls run without asking.
59403
+ */
59404
+ type: 'always_allow';
59405
+ } | {
59406
+ /**
59407
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59408
+ */
59409
+ type: 'always_ask';
59410
+ } | {
59411
+ /**
59412
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59413
+ */
59414
+ type: 'auto';
59415
+ };
59416
+ /**
59417
+ * Always `glob`. Selects the glob tool, which finds files by name pattern.
59418
+ */
59419
+ type: 'glob';
59420
+ } | {
59421
+ /**
59422
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59423
+ */
59424
+ enabled: boolean;
59425
+ /**
59426
+ * Name of the native tool this entry configures.
59427
+ */
59428
+ name: 'grep';
59429
+ /**
59430
+ * Permission policy for tool execution.
59431
+ */
59432
+ permission_policy: {
59433
+ /**
59434
+ * Always `always_allow`. Calls run without asking.
59435
+ */
59436
+ type: 'always_allow';
59437
+ } | {
59438
+ /**
59439
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59440
+ */
59441
+ type: 'always_ask';
59442
+ } | {
59443
+ /**
59444
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59445
+ */
59446
+ type: 'auto';
59447
+ };
59448
+ /**
59449
+ * Always `grep`. Selects the grep tool, which searches file contents.
59450
+ */
59451
+ type: 'grep';
59452
+ } | {
59453
+ /**
59454
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59455
+ */
59456
+ enabled: boolean;
59457
+ /**
59458
+ * Name of the native tool this entry configures.
59459
+ */
59460
+ name: 'web_fetch';
59461
+ /**
59462
+ * Permission policy for tool execution.
59463
+ */
59464
+ permission_policy: {
59465
+ /**
59466
+ * Always `always_allow`. Calls run without asking.
59467
+ */
59468
+ type: 'always_allow';
59469
+ } | {
59470
+ /**
59471
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59472
+ */
59473
+ type: 'always_ask';
59474
+ } | {
59475
+ /**
59476
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59477
+ */
59478
+ type: 'auto';
59479
+ };
59480
+ /**
59481
+ * Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
59482
+ */
59483
+ type: 'web_fetch';
59484
+ /**
59485
+ * 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.
59486
+ */
59487
+ allowed_domains?: Array<string>;
59488
+ /**
59489
+ * 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.
59490
+ */
59491
+ blocked_domains?: Array<string>;
59492
+ /**
59493
+ * 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.
59494
+ */
59495
+ max_content_tokens?: null | number;
59496
+ } | {
59497
+ /**
59498
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59499
+ */
59500
+ enabled: boolean;
59501
+ /**
59502
+ * Name of the native tool this entry configures.
59503
+ */
59504
+ name: 'web_search';
59505
+ /**
59506
+ * Permission policy for tool execution.
59507
+ */
59508
+ permission_policy: {
59509
+ /**
59510
+ * Always `always_allow`. Calls run without asking.
59511
+ */
59512
+ type: 'always_allow';
59513
+ } | {
59514
+ /**
59515
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59516
+ */
59517
+ type: 'always_ask';
59518
+ } | {
59519
+ /**
59520
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59521
+ */
59522
+ type: 'auto';
59523
+ };
59524
+ /**
59525
+ * Always `web_search`. Selects the web_search tool, which searches the web.
59526
+ */
59527
+ type: 'web_search';
59528
+ /**
59529
+ * 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.
59530
+ */
59531
+ allowed_domains?: Array<string>;
59532
+ /**
59533
+ * 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.
59534
+ */
59535
+ blocked_domains?: Array<string>;
59536
+ /**
59537
+ * Approximate user location for search result localization.
59538
+ */
59539
+ user_location?: null | {
59540
+ /**
59541
+ * Location precision. Only "approximate" is supported.
59542
+ */
59543
+ type: 'approximate';
59544
+ /**
59545
+ * City name.
59546
+ */
59547
+ city?: null | string;
59548
+ /**
59549
+ * Two-letter ISO 3166-1 country code, uppercase.
59550
+ */
59551
+ country?: null | string;
59552
+ /**
59553
+ * Region or state name.
59554
+ */
59555
+ region?: null | string;
59556
+ /**
59557
+ * IANA timezone identifier, e.g. "America/Los_Angeles".
59558
+ */
59559
+ timezone?: null | string;
59560
+ };
59561
+ } | {
59562
+ /**
59563
+ * Name of the native tool this entry configures.
59564
+ */
59565
+ name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
59566
+ /**
59567
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59568
+ */
59569
+ enabled: boolean;
59570
+ /**
59571
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
59572
+ */
59573
+ permission_policy: {
59574
+ /**
59575
+ * Permission policy kind.
59576
+ */
59577
+ type: 'always_allow' | 'always_ask';
59578
+ };
59579
+ }>;
59580
+ /**
59581
+ * Resolved default configuration for agent tools.
59582
+ */
59583
+ default_config: {
59584
+ /**
59585
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
59586
+ */
59587
+ enabled: boolean;
59588
+ /**
59589
+ * Permission policy for tool execution.
59590
+ */
59591
+ permission_policy: {
59592
+ /**
59593
+ * Always `always_allow`. Calls run without asking.
59594
+ */
59595
+ type: 'always_allow';
59596
+ } | {
59597
+ /**
59598
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59599
+ */
59600
+ type: 'always_ask';
59601
+ } | {
59602
+ /**
59603
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59604
+ */
59605
+ type: 'auto';
59606
+ };
59607
+ };
59608
+ /**
59609
+ * 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).
59610
+ */
59611
+ type: 'agent_toolset_20260401';
59612
+ } | {
59613
+ /**
59614
+ * Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
59615
+ */
59616
+ type: 'mcp_toolset';
59617
+ /**
59618
+ * Name of the MCP server in mcp_servers whose tools this entry exposes.
59619
+ */
59620
+ mcp_server_name: string;
59621
+ /**
59622
+ * Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
59623
+ */
59624
+ default_config?: {
59625
+ /**
59626
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
59627
+ */
59628
+ enabled?: boolean | null;
59629
+ /**
59630
+ * Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
59631
+ */
59632
+ permission_policy?: null | {
59633
+ /**
59634
+ * Permission policy kind.
59635
+ */
59636
+ type: 'always_allow' | 'always_ask';
59637
+ };
59638
+ } | null;
59639
+ /**
59640
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59641
+ */
59642
+ configs?: Array<{
59643
+ /**
59644
+ * Bare tool name reported by the MCP server.
59645
+ */
59646
+ name: string;
59647
+ /**
59648
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59649
+ */
59650
+ enabled?: boolean | null;
59651
+ /**
59652
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
59653
+ */
59654
+ permission_policy?: null | {
59655
+ /**
59656
+ * Permission policy kind.
59657
+ */
59658
+ type: 'always_allow' | 'always_ask';
59659
+ };
59660
+ }> | null;
59661
+ } | {
59662
+ /**
59663
+ * What the custom tool does and when the model should call it.
59664
+ */
59665
+ description: string;
59666
+ /**
59667
+ * JSON Schema for custom tool input parameters.
59668
+ */
59669
+ input_schema: {
59670
+ /**
59671
+ * Always `object`. The input is a JSON object.
59672
+ */
59673
+ type: 'object';
59674
+ /**
59675
+ * JSON Schema of each input property, keyed by property name.
59676
+ */
59677
+ properties?: null | {
59678
+ [key: string]: unknown;
59679
+ };
59680
+ /**
59681
+ * Names of the input properties the model must supply.
59682
+ */
59683
+ required?: null | Array<string>;
59684
+ [key: string]: unknown;
59685
+ };
59686
+ /**
59687
+ * Name of the custom tool, as the model sees and calls it.
59688
+ */
59689
+ name: string;
59690
+ /**
59691
+ * Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
59692
+ */
59693
+ type: 'custom';
59694
+ }>;
59695
+ /**
59696
+ * Always `agent`. A roster member that refers to an agent by id and pinned version.
59697
+ */
59698
+ type: 'agent';
59699
+ /**
59700
+ * 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.
59701
+ */
59702
+ version: number;
59703
+ }>;
59704
+ /**
59705
+ * Always `coordinator`. The agent coordinates the roster in agents and can delegate to its members.
59706
+ */
59707
+ type: 'coordinator';
59708
+ };
59709
+ /**
59710
+ * Display name of the agent, as set on create or update. It is a label, not a unique key.
59711
+ */
59712
+ name: string;
59713
+ /**
59714
+ * 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.
59715
+ */
59716
+ skills: Array<{
59717
+ /**
59718
+ * Id of the skill to attach.
59719
+ */
59720
+ skill_id: string;
59721
+ /**
59722
+ * Always `anthropic`. A skill provided by Anthropic, identified by skill_id.
59723
+ */
59724
+ type: 'anthropic';
59725
+ /**
59726
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59727
+ */
59728
+ version: string;
59729
+ } | {
59730
+ /**
59731
+ * Id of the skill to attach.
59732
+ */
59733
+ skill_id: string;
59734
+ /**
59735
+ * Always `custom`. A skill created by you, identified by skill_id.
59736
+ */
59737
+ type: 'custom';
59738
+ /**
59739
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
59740
+ */
59741
+ version: string;
59742
+ }>;
59743
+ /**
59744
+ * System prompt given to the model at the start of every session of this agent; null when none was set.
59745
+ */
59746
+ system: null | string;
59747
+ /**
59748
+ * 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.
59749
+ */
59750
+ tools: Array<{
59751
+ /**
59752
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
59753
+ */
59754
+ configs: Array<{
59755
+ /**
59756
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59757
+ */
59758
+ enabled: boolean;
59759
+ /**
59760
+ * Name of the native tool this entry configures.
59761
+ */
59762
+ name: 'bash';
59763
+ /**
59764
+ * Permission policy for tool execution.
59765
+ */
59766
+ permission_policy: {
59767
+ /**
59768
+ * Always `always_allow`. Calls run without asking.
59769
+ */
59770
+ type: 'always_allow';
59771
+ } | {
59772
+ /**
59773
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59774
+ */
59775
+ type: 'always_ask';
59776
+ } | {
59777
+ /**
59778
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59779
+ */
59780
+ type: 'auto';
59781
+ };
59782
+ /**
59783
+ * Always `bash`. Selects the bash tool, which runs shell commands in the session's machine.
59784
+ */
59785
+ type: 'bash';
59786
+ } | {
59787
+ /**
59788
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59789
+ */
59790
+ enabled: boolean;
59791
+ /**
59792
+ * Name of the native tool this entry configures.
59793
+ */
59794
+ name: 'edit';
59795
+ /**
59796
+ * Permission policy for tool execution.
59797
+ */
59798
+ permission_policy: {
59799
+ /**
59800
+ * Always `always_allow`. Calls run without asking.
59801
+ */
59802
+ type: 'always_allow';
59803
+ } | {
59804
+ /**
59805
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59806
+ */
59807
+ type: 'always_ask';
59808
+ } | {
59809
+ /**
59810
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59811
+ */
59812
+ type: 'auto';
59813
+ };
59814
+ /**
59815
+ * Always `edit`. Selects the edit tool, which changes an existing file.
59816
+ */
59817
+ type: 'edit';
59818
+ } | {
59819
+ /**
59820
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59821
+ */
59822
+ enabled: boolean;
59823
+ /**
59824
+ * Name of the native tool this entry configures.
59825
+ */
59826
+ name: 'read';
59827
+ /**
59828
+ * Permission policy for tool execution.
59829
+ */
59830
+ permission_policy: {
59831
+ /**
59832
+ * Always `always_allow`. Calls run without asking.
59833
+ */
59834
+ type: 'always_allow';
59835
+ } | {
59836
+ /**
59837
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59838
+ */
59839
+ type: 'always_ask';
59840
+ } | {
59841
+ /**
59842
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59843
+ */
59844
+ type: 'auto';
59845
+ };
59846
+ /**
59847
+ * Always `read`. Selects the read tool, which reads a file.
59848
+ */
59849
+ type: 'read';
59850
+ } | {
59851
+ /**
59852
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59853
+ */
59854
+ enabled: boolean;
59855
+ /**
59856
+ * Name of the native tool this entry configures.
59857
+ */
59858
+ name: 'write';
59859
+ /**
59860
+ * Permission policy for tool execution.
59861
+ */
59862
+ permission_policy: {
59863
+ /**
59864
+ * Always `always_allow`. Calls run without asking.
59865
+ */
59866
+ type: 'always_allow';
59867
+ } | {
59868
+ /**
59869
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59870
+ */
59871
+ type: 'always_ask';
59872
+ } | {
59873
+ /**
59874
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59875
+ */
59876
+ type: 'auto';
59877
+ };
59878
+ /**
59879
+ * Always `write`. Selects the write tool, which writes a file.
59880
+ */
59881
+ type: 'write';
59882
+ } | {
59883
+ /**
59884
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59885
+ */
59886
+ enabled: boolean;
59887
+ /**
59888
+ * Name of the native tool this entry configures.
59889
+ */
59890
+ name: 'glob';
59891
+ /**
59892
+ * Permission policy for tool execution.
59893
+ */
59894
+ permission_policy: {
59895
+ /**
59896
+ * Always `always_allow`. Calls run without asking.
59897
+ */
59898
+ type: 'always_allow';
59899
+ } | {
59900
+ /**
59901
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59902
+ */
59903
+ type: 'always_ask';
59904
+ } | {
59905
+ /**
59906
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59907
+ */
59908
+ type: 'auto';
59909
+ };
59910
+ /**
59911
+ * Always `glob`. Selects the glob tool, which finds files by name pattern.
59912
+ */
59913
+ type: 'glob';
59914
+ } | {
59915
+ /**
59916
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59917
+ */
59918
+ enabled: boolean;
59919
+ /**
59920
+ * Name of the native tool this entry configures.
59921
+ */
59922
+ name: 'grep';
59923
+ /**
59924
+ * Permission policy for tool execution.
59925
+ */
59926
+ permission_policy: {
59927
+ /**
59928
+ * Always `always_allow`. Calls run without asking.
59929
+ */
59930
+ type: 'always_allow';
59931
+ } | {
59932
+ /**
59933
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59934
+ */
59935
+ type: 'always_ask';
59936
+ } | {
59937
+ /**
59938
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59939
+ */
59940
+ type: 'auto';
59941
+ };
59942
+ /**
59943
+ * Always `grep`. Selects the grep tool, which searches file contents.
59944
+ */
59945
+ type: 'grep';
59946
+ } | {
59947
+ /**
59948
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59949
+ */
59950
+ enabled: boolean;
59951
+ /**
59952
+ * Name of the native tool this entry configures.
59953
+ */
59954
+ name: 'web_fetch';
59955
+ /**
59956
+ * Permission policy for tool execution.
59957
+ */
59958
+ permission_policy: {
59959
+ /**
59960
+ * Always `always_allow`. Calls run without asking.
59961
+ */
59962
+ type: 'always_allow';
59963
+ } | {
59964
+ /**
59965
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
59966
+ */
59967
+ type: 'always_ask';
59968
+ } | {
59969
+ /**
59970
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
59971
+ */
59972
+ type: 'auto';
59973
+ };
59974
+ /**
59975
+ * Always `web_fetch`. Selects the web_fetch tool, which fetches a web page.
59976
+ */
59977
+ type: 'web_fetch';
59978
+ /**
59979
+ * 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.
59980
+ */
59981
+ allowed_domains?: Array<string>;
59982
+ /**
59983
+ * 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.
59984
+ */
59985
+ blocked_domains?: Array<string>;
59986
+ /**
59987
+ * 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.
59988
+ */
59989
+ max_content_tokens?: null | number;
59990
+ } | {
59991
+ /**
59992
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
59993
+ */
59994
+ enabled: boolean;
59995
+ /**
59996
+ * Name of the native tool this entry configures.
59997
+ */
59998
+ name: 'web_search';
59999
+ /**
60000
+ * Permission policy for tool execution.
60001
+ */
60002
+ permission_policy: {
60003
+ /**
60004
+ * Always `always_allow`. Calls run without asking.
60005
+ */
60006
+ type: 'always_allow';
60007
+ } | {
60008
+ /**
60009
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
60010
+ */
60011
+ type: 'always_ask';
60012
+ } | {
60013
+ /**
60014
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
60015
+ */
60016
+ type: 'auto';
60017
+ };
60018
+ /**
60019
+ * Always `web_search`. Selects the web_search tool, which searches the web.
60020
+ */
60021
+ type: 'web_search';
60022
+ /**
60023
+ * 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.
60024
+ */
60025
+ allowed_domains?: Array<string>;
60026
+ /**
60027
+ * 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.
60028
+ */
60029
+ blocked_domains?: Array<string>;
60030
+ /**
60031
+ * Approximate user location for search result localization.
60032
+ */
60033
+ user_location?: null | {
60034
+ /**
60035
+ * Location precision. Only "approximate" is supported.
60036
+ */
60037
+ type: 'approximate';
60038
+ /**
60039
+ * City name.
60040
+ */
60041
+ city?: null | string;
60042
+ /**
60043
+ * Two-letter ISO 3166-1 country code, uppercase.
60044
+ */
60045
+ country?: null | string;
60046
+ /**
60047
+ * Region or state name.
60048
+ */
60049
+ region?: null | string;
60050
+ /**
60051
+ * IANA timezone identifier, e.g. "America/Los_Angeles".
60052
+ */
60053
+ timezone?: null | string;
60054
+ };
60055
+ } | {
60056
+ /**
60057
+ * Name of the native tool this entry configures.
60058
+ */
60059
+ name: 'task_output' | 'task_stop' | 'monitor' | 'agent' | 'send_message' | 'codemode' | 'skill';
60060
+ /**
60061
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
60062
+ */
60063
+ enabled: boolean;
60064
+ /**
60065
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
60066
+ */
60067
+ permission_policy: {
60068
+ /**
60069
+ * Permission policy kind.
60070
+ */
60071
+ type: 'always_allow' | 'always_ask';
60072
+ };
60073
+ }>;
60074
+ /**
60075
+ * Resolved default configuration for agent tools.
60076
+ */
60077
+ default_config: {
60078
+ /**
60079
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
60080
+ */
60081
+ enabled: boolean;
60082
+ /**
60083
+ * Permission policy for tool execution.
60084
+ */
60085
+ permission_policy: {
60086
+ /**
60087
+ * Always `always_allow`. Calls run without asking.
60088
+ */
60089
+ type: 'always_allow';
60090
+ } | {
60091
+ /**
60092
+ * Always `always_ask`. Calls wait for user.tool_confirmation before running.
60093
+ */
60094
+ type: 'always_ask';
60095
+ } | {
60096
+ /**
60097
+ * Always `auto`. Reserved: a server-side judgement per call. Not yet supported; sending it returns 400.
60098
+ */
60099
+ type: 'auto';
60100
+ };
60101
+ };
60102
+ /**
60103
+ * 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).
60104
+ */
60105
+ type: 'agent_toolset_20260401';
60106
+ } | {
60107
+ /**
60108
+ * Always `mcp_toolset`. An entry that exposes the tools of one MCP server from mcp_servers.
60109
+ */
60110
+ type: 'mcp_toolset';
60111
+ /**
60112
+ * Name of the MCP server in mcp_servers whose tools this entry exposes.
60113
+ */
60114
+ mcp_server_name: string;
60115
+ /**
60116
+ * Settings applied to every tool of this toolset that configs does not name. When omitted, tools are enabled with the always_allow policy.
60117
+ */
60118
+ default_config?: {
60119
+ /**
60120
+ * Whether tools of the toolset are offered to the model when configs does not name them. Null or omitted means enabled.
60121
+ */
60122
+ enabled?: boolean | null;
60123
+ /**
60124
+ * Permission policy for tools that configs does not name: always_allow runs calls automatically, always_ask waits for user.tool_confirmation.
60125
+ */
60126
+ permission_policy?: null | {
60127
+ /**
60128
+ * Permission policy kind.
60129
+ */
60130
+ type: 'always_allow' | 'always_ask';
60131
+ };
60132
+ } | null;
60133
+ /**
60134
+ * Per-tool settings that override default_config. Tools that are not listed follow default_config.
60135
+ */
60136
+ configs?: Array<{
60137
+ /**
60138
+ * Bare tool name reported by the MCP server.
60139
+ */
60140
+ name: string;
60141
+ /**
60142
+ * Whether the tool is offered to the model. Null or omitted means the toolset default applies (enabled unless default_config says otherwise).
60143
+ */
60144
+ enabled?: boolean | null;
60145
+ /**
60146
+ * Whether a call to this tool runs automatically (always_allow) or waits for user.tool_confirmation (always_ask). Omitted means the toolset default.
60147
+ */
60148
+ permission_policy?: null | {
60149
+ /**
60150
+ * Permission policy kind.
60151
+ */
60152
+ type: 'always_allow' | 'always_ask';
60153
+ };
60154
+ }> | null;
60155
+ } | {
60156
+ /**
60157
+ * What the custom tool does and when the model should call it.
60158
+ */
60159
+ description: string;
60160
+ /**
60161
+ * JSON Schema for custom tool input parameters.
60162
+ */
60163
+ input_schema: {
60164
+ /**
60165
+ * Always `object`. The input is a JSON object.
60166
+ */
60167
+ type: 'object';
60168
+ /**
60169
+ * JSON Schema of each input property, keyed by property name.
60170
+ */
60171
+ properties?: null | {
60172
+ [key: string]: unknown;
60173
+ };
60174
+ /**
60175
+ * Names of the input properties the model must supply.
60176
+ */
60177
+ required?: null | Array<string>;
60178
+ [key: string]: unknown;
60179
+ };
60180
+ /**
60181
+ * Name of the custom tool, as the model sees and calls it.
60182
+ */
60183
+ name: string;
60184
+ /**
60185
+ * Always `custom`. A custom tool defined by name, description and input_schema; its calls are answered by the client with user.custom_tool_result.
60186
+ */
60187
+ type: 'custom';
60188
+ }>;
60189
+ /**
60190
+ * Always `agent`. An agent definition.
60191
+ */
60192
+ type: 'agent';
60193
+ /**
60194
+ * 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.
60195
+ */
60196
+ version: number;
60197
+ };
60198
+ /**
60199
+ * A timestamp in RFC 3339 format
60200
+ */
60201
+ archived_at: null | string;
60202
+ /**
60203
+ * A hard spend ceiling. The session stops issuing new model requests once the
60204
+ * tracked list cost reaches `max_list_cost`.
60205
+ */
60206
+ budget: null | {
60207
+ /**
60208
+ * A monetary amount in a specific currency.
60209
+ */
60210
+ max_list_cost: {
60211
+ /**
60212
+ * Amount in minor units of the currency, as an integer decimal string with no
60213
+ * leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
60214
+ * number so no float rounding is ever applied.
60215
+ */
60216
+ amount: string;
60217
+ /**
60218
+ * Uppercase ISO-4217 currency code. `USD` is the only currency currently
60219
+ * supported; the accepted set is closed and grows only when a new currency is
60220
+ * priced.
60221
+ */
60222
+ currency: 'USD';
60223
+ };
60224
+ /**
60225
+ * Always `limit`. A spending limit.
60226
+ */
60227
+ type: 'limit';
60228
+ };
60229
+ /**
60230
+ * A timestamp in RFC 3339 format
60231
+ */
60232
+ created_at: string;
60233
+ /**
60234
+ * 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.
60235
+ */
60236
+ environment_id?: string;
60237
+ /**
60238
+ * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
60239
+ */
60240
+ metadata: {
60241
+ [key: string]: string;
60242
+ };
60243
+ /**
60244
+ * Per-outcome evaluation state. One entry per `define_outcome` event sent to the
60245
+ * session.
60246
+ */
60247
+ outcome_evaluations: Array<{
60248
+ /**
60249
+ * A timestamp in RFC 3339 format
60250
+ */
60251
+ completed_at: null | string;
60252
+ /**
60253
+ * What the agent should produce.
60254
+ */
60255
+ description: string;
60256
+ /**
60257
+ * Grader's verdict text from the most recent evaluation. For `satisfied`, explains
60258
+ * why criteria are met; for `needs_revision` (intermediate), what's missing; for
60259
+ * `failed`, why unrecoverable.
60260
+ */
60261
+ explanation: null | string;
60262
+ /**
60263
+ * 0-indexed revision cycle the outcome is currently on.
60264
+ */
60265
+ iteration: number;
60266
+ /**
60267
+ * Server-generated outc\_ ID for this outcome.
60268
+ */
60269
+ outcome_id: string;
60270
+ /**
60271
+ * Current evaluation state. `pending` before the agent begins work; `running`
60272
+ * while producing or revising; `evaluating` while the grader scores;
60273
+ * `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
60274
+ */
60275
+ result: string;
60276
+ /**
60277
+ * Always `outcome_evaluation`. Record of one outcome evaluation.
60278
+ */
60279
+ type: 'outcome_evaluation';
60280
+ }>;
60281
+ /**
60282
+ * Resources attached to the session, at most 500; each is a file reference mounted into the session's machine.
60283
+ */
60284
+ resources: Array<{
60285
+ /**
60286
+ * Resource id, the resource_id of sessions.resources calls.
60287
+ */
60288
+ id: string;
60289
+ /**
60290
+ * A timestamp in RFC 3339 format
60291
+ */
60292
+ created_at: string;
60293
+ /**
60294
+ * Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
60295
+ */
60296
+ mount_path: string;
60297
+ /**
60298
+ * Always `github_repository`. A GitHub repository resource; not supported on this platform.
60299
+ */
60300
+ type: 'github_repository';
60301
+ /**
60302
+ * A timestamp in RFC 3339 format
60303
+ */
60304
+ updated_at: string;
60305
+ /**
60306
+ * Repository URL.
60307
+ */
60308
+ url: string;
60309
+ /**
60310
+ * Branch or commit to check out.
60311
+ */
60312
+ checkout?: null | {
60313
+ /**
60314
+ * Branch name to check out.
60315
+ */
60316
+ name: string;
60317
+ /**
60318
+ * Always `branch`. Check out the named branch.
60319
+ */
60320
+ type: 'branch';
60321
+ } | {
60322
+ /**
60323
+ * Full commit SHA to check out.
60324
+ */
60325
+ sha: string;
60326
+ /**
60327
+ * Always `commit`. Check out the commit with the given SHA.
60328
+ */
60329
+ type: 'commit';
60330
+ };
60331
+ } | {
60332
+ /**
60333
+ * Resource id, the resource_id of sessions.resources calls.
60334
+ */
60335
+ id: string;
60336
+ /**
60337
+ * A timestamp in RFC 3339 format
60338
+ */
60339
+ created_at: string;
60340
+ /**
60341
+ * Id of the uploaded file; it must exist and belong to your tenant.
60342
+ */
60343
+ file_id: string;
60344
+ /**
60345
+ * Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there.
60346
+ */
60347
+ mount_path: string;
60348
+ /**
60349
+ * Always `file`. A file resource: an uploaded file mounted into the session's machine.
60350
+ */
60351
+ type: 'file';
60352
+ /**
60353
+ * A timestamp in RFC 3339 format
60354
+ */
60355
+ updated_at: string;
60356
+ } | {
60357
+ /**
60358
+ * The memory store ID (memstore\_...). Must belong to the caller's organization
60359
+ * and workspace.
60360
+ */
60361
+ memory_store_id: string;
60362
+ /**
60363
+ * Always `memory_store`. A memory store resource; not supported on this platform.
60364
+ */
60365
+ type: 'memory_store';
60366
+ /**
60367
+ * Access mode for an attached memory store.
60368
+ */
60369
+ access?: null | 'read_write' | 'read_only';
60370
+ /**
60371
+ * Description of the memory store, snapshotted at attach time. Rendered into the
60372
+ * agent's system prompt. Empty string when the store has no description.
60373
+ */
60374
+ description?: string;
60375
+ /**
60376
+ * Per-attachment guidance for the agent on how to use this store. Rendered into
60377
+ * the memory section of the system prompt. Max 4096 chars.
60378
+ */
60379
+ instructions?: null | string;
60380
+ /**
60381
+ * Filesystem path where the store is mounted in the session container, e.g.
60382
+ * /mnt/memory/user-preferences. Derived from the store's name. Output-only.
60383
+ */
60384
+ mount_path?: null | string;
60385
+ /**
60386
+ * Display name of the memory store, snapshotted at attach time. Later edits to the
60387
+ * store's name do not propagate to this resource.
60388
+ */
60389
+ name?: null | string;
60390
+ }>;
60391
+ /**
60392
+ * Timing statistics for a session.
60393
+ */
60394
+ stats: {
60395
+ /**
60396
+ * Cumulative time in seconds the session spent in `running` status. Excludes idle
60397
+ * time.
60398
+ */
60399
+ active_seconds?: number;
60400
+ /**
60401
+ * Elapsed time since session creation in seconds. For terminated sessions, frozen
60402
+ * at the final update.
60403
+ */
60404
+ duration_seconds?: number;
60405
+ };
60406
+ /**
60407
+ * SessionStatus enum
60408
+ *
60409
+ * - `rescheduling` - Transient error occurred, retrying automatically.
60410
+ * - `running` - Agent is actively executing.
60411
+ * - `idle` - Agent is waiting for input, including user messages or tool
60412
+ * confirmations. Sessions start in idle.
60413
+ * - `terminated` - Session has ended, either due to an error or completion.
60414
+ */
60415
+ status: 'rescheduling' | 'running' | 'idle' | 'terminated';
60416
+ /**
60417
+ * Title of the session, set on create or through sessions.update; null when none was set.
60418
+ */
60419
+ title: null | string;
60420
+ /**
60421
+ * Always `session`. A session, one conversation of an agent on a machine.
60422
+ */
60423
+ type: 'session';
60424
+ /**
60425
+ * A timestamp in RFC 3339 format
60426
+ */
60427
+ updated_at: string;
60428
+ /**
60429
+ * Cumulative token usage for a session across all turns.
60430
+ */
60431
+ usage: {
60432
+ /**
60433
+ * Cumulative time in seconds during which the session had at least one thread in
60434
+ * running status. Overlapping activity from concurrent threads is counted once,
60435
+ * unlike `stats.active_seconds`, which sums each thread's own active time. This is
60436
+ * the duration the session's runtime cost is priced on.
60437
+ */
60438
+ active_seconds?: number;
60439
+ /**
60440
+ * Prompt-cache creation token usage broken down by cache lifetime.
60441
+ */
60442
+ cache_creation?: {
60443
+ /**
60444
+ * Tokens used to create 1-hour ephemeral cache entries.
60445
+ */
60446
+ ephemeral_1h_input_tokens?: number;
60447
+ /**
60448
+ * Tokens used to create 5-minute ephemeral cache entries.
60449
+ */
60450
+ ephemeral_5m_input_tokens?: number;
60451
+ };
60452
+ /**
60453
+ * Total tokens read from prompt cache.
60454
+ */
60455
+ cache_read_input_tokens?: number;
60456
+ /**
60457
+ * Total input tokens consumed across all turns.
60458
+ */
60459
+ input_tokens?: number;
60460
+ /**
60461
+ * 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.
60462
+ */
60463
+ list_cost?: null | {
60464
+ /**
60465
+ * Amount in minor units of the currency, as an integer decimal string with no
60466
+ * leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
60467
+ * number so no float rounding is ever applied.
60468
+ */
60469
+ amount: string;
60470
+ /**
60471
+ * Uppercase ISO-4217 currency code. `USD` is the only currency currently
60472
+ * supported; the accepted set is closed and grows only when a new currency is
60473
+ * priced.
60474
+ */
60475
+ currency: 'USD';
60476
+ };
60477
+ /**
60478
+ * Total output tokens generated across all turns.
60479
+ */
60480
+ output_tokens?: number;
60481
+ /**
60482
+ * Cumulative count of server-executed tool invocations, broken down by tool.
60483
+ */
60484
+ server_tool_use?: null | {
60485
+ /**
60486
+ * Number of server-executed web fetch requests.
60487
+ */
60488
+ web_fetch_requests?: number;
60489
+ /**
60490
+ * Number of server-executed web search requests.
60491
+ */
60492
+ web_search_requests?: number;
60493
+ };
60494
+ /**
60495
+ * 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.
60496
+ */
60497
+ cost_by_product?: {
60498
+ [key: string]: string;
60499
+ };
60500
+ /**
60501
+ * 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.
60502
+ */
60503
+ subagent_cost_micro_usd?: number;
60504
+ };
60505
+ /**
60506
+ * Vault IDs attached to the session at creation. Empty when no vaults were
60507
+ * supplied.
60508
+ */
60509
+ vault_ids: Array<string>;
60510
+ /**
60511
+ * Deployment ID when the session was created from a deployment reference. Null
60512
+ * otherwise.
60513
+ */
60514
+ deployment_id?: null | string;
60515
+ /**
60516
+ * Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
60517
+ */
60518
+ cwd: string;
60519
+ /**
60520
+ * 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.
60521
+ */
60522
+ computer_id?: string;
60523
+ /**
60524
+ * Praxis extension: the currently selected session model.
60525
+ */
60526
+ model?: {
60527
+ /**
60528
+ * Identifier of the object, as returned by the API; pass it in the path of follow-up calls on the same resource.
60529
+ */
60530
+ id: string;
60531
+ /**
60532
+ * Supported thinking controls, or null when capability is unknown or unavailable. efforts lists selectable strengths; can_disable permits none; default_effort is nullable.
60533
+ */
60534
+ thinking: {
60535
+ /**
60536
+ * Thinking levels the model accepts as effort, in ascending order.
60537
+ */
60538
+ efforts: Array<'low' | 'medium' | 'high' | 'xhigh' | 'max'>;
60539
+ /**
60540
+ * Whether effort none (thinking off) is allowed for this model.
60541
+ */
60542
+ can_disable: boolean;
60543
+ /**
60544
+ * Thinking level used when neither the session nor the agent selects one; null when the model states no default.
60545
+ */
60546
+ default_effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
60547
+ } | null;
60548
+ };
60549
+ /**
60550
+ * 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.
60551
+ */
60552
+ thinking?: {
60553
+ /**
60554
+ * 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.
60555
+ */
60556
+ effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'none';
60557
+ } | null;
60558
+ /**
60559
+ * Praxis extension: source of a forked session; null for other sessions. Available only on /agent/v1.
60560
+ */
60561
+ forked_from?: {
60562
+ /**
60563
+ * Id of the parent session this session was forked from; it is left unchanged by the fork.
60564
+ */
60565
+ session_id: string;
60566
+ /**
60567
+ * message_id of the agent message in the parent session up to which the conversation was copied.
60568
+ */
60569
+ message_id: string;
60570
+ } | null;
60571
+ /**
60572
+ * 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.
60573
+ */
60574
+ readonly external_user_id: string | null;
60575
+ /**
60576
+ * 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.
60577
+ */
60578
+ readonly source: 'kit' | 'iframe' | 'hosted' | 'api' | 'automation' | null;
60579
+ };
60580
+ };
60581
+ export type RenameSessionResponse = RenameSessionResponses[keyof RenameSessionResponses];
60582
+ export type UpdateSessionAgentVersionData = {
60583
+ /**
60584
+ * The version to move the session to; omit the body to move to the agent's active version.
60585
+ */
60586
+ body?: {
60587
+ /**
60588
+ * An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version.
60589
+ */
60590
+ version?: number;
60591
+ };
60592
+ path: {
60593
+ /**
60594
+ * Session id from session creation or listing, or the own face's session name for a main session.
60595
+ */
60596
+ session_id: string;
60597
+ };
60598
+ query?: never;
60599
+ url: '/agent/v1/sessions/{session_id}/agent_version';
60600
+ };
60601
+ export type UpdateSessionAgentVersionErrors = {
60602
+ /**
60603
+ * INVALID_PARAMS: version is not a positive integer.
60604
+ */
60605
+ 400: unknown;
60606
+ /**
60607
+ * Authentication required.
60608
+ */
60609
+ 401: unknown;
60610
+ /**
60611
+ * FORBIDDEN: an embedded end user talks to an agent but never reconfigures the session it talks on, so it cannot change the agent version.
60612
+ */
60613
+ 403: unknown;
60614
+ /**
60615
+ * Session not found or not writable by this caller; AGENT_VERSION_NOT_FOUND when the agent has no such version.
60616
+ */
60617
+ 404: unknown;
60618
+ /**
60619
+ * SESSION_CONFLICT: the session is running a turn, so the version was not changed; retry once it is idle. SESSION_ARCHIVED: an archived session cannot be moved.
60620
+ */
60621
+ 409: unknown;
60622
+ /**
60623
+ * Agent service failed
60624
+ */
60625
+ 502: unknown;
60626
+ /**
60627
+ * Agent service unavailable
60628
+ */
60629
+ 503: unknown;
60630
+ };
60631
+ export type UpdateSessionAgentVersionResponses = {
60632
+ /**
60633
+ * The session, now on the requested version; an unchanged version answers the session as it stands and writes no event.
58242
60634
  */
58243
60635
  200: {
58244
60636
  /**
@@ -63637,7 +66029,7 @@ export type ListModelsData = {
63637
66029
  /**
63638
66030
  * 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.
63639
66031
  */
63640
- 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'>;
66032
+ 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'>;
63641
66033
  /**
63642
66034
  * Filter by one or more model types (comma-separated).
63643
66035
  */
@@ -72999,7 +75391,7 @@ export type AgentsListResponses = {
72999
75391
  */
73000
75392
  note: string | null;
73001
75393
  /**
73002
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
75394
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
73003
75395
  */
73004
75396
  bindings: Array<{
73005
75397
  /**
@@ -73014,6 +75406,10 @@ export type AgentsListResponses = {
73014
75406
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
73015
75407
  */
73016
75408
  access: 'read_only' | 'read_write' | 'invoke';
75409
+ /**
75410
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
75411
+ */
75412
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
73017
75413
  /**
73018
75414
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
73019
75415
  */
@@ -73438,6 +75834,10 @@ export type AgentsListResponses = {
73438
75834
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
73439
75835
  */
73440
75836
  creation_source: string | null;
75837
+ /**
75838
+ * 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.
75839
+ */
75840
+ managed_by: string | null;
73441
75841
  /**
73442
75842
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
73443
75843
  */
@@ -73560,7 +75960,7 @@ export type AgentsCreateData = {
73560
75960
  */
73561
75961
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
73562
75962
  /**
73563
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
75963
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
73564
75964
  */
73565
75965
  bindings?: Array<{
73566
75966
  /**
@@ -73575,6 +75975,10 @@ export type AgentsCreateData = {
73575
75975
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
73576
75976
  */
73577
75977
  access: 'read_only' | 'read_write' | 'invoke';
75978
+ /**
75979
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
75980
+ */
75981
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
73578
75982
  /**
73579
75983
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
73580
75984
  */
@@ -73602,7 +76006,7 @@ export type AgentsCreateData = {
73602
76006
  enabled?: boolean;
73603
76007
  }>;
73604
76008
  /**
73605
- * 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.
76009
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
73606
76010
  */
73607
76011
  kind?: 'general' | 'service' | 'assume';
73608
76012
  /**
@@ -74187,7 +76591,7 @@ export type AgentsCreateResponses = {
74187
76591
  */
74188
76592
  note: string | null;
74189
76593
  /**
74190
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
76594
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
74191
76595
  */
74192
76596
  bindings: Array<{
74193
76597
  /**
@@ -74202,6 +76606,10 @@ export type AgentsCreateResponses = {
74202
76606
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
74203
76607
  */
74204
76608
  access: 'read_only' | 'read_write' | 'invoke';
76609
+ /**
76610
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
76611
+ */
76612
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
74205
76613
  /**
74206
76614
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
74207
76615
  */
@@ -74626,6 +77034,10 @@ export type AgentsCreateResponses = {
74626
77034
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
74627
77035
  */
74628
77036
  creation_source: string | null;
77037
+ /**
77038
+ * 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.
77039
+ */
77040
+ managed_by: string | null;
74629
77041
  /**
74630
77042
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
74631
77043
  */
@@ -74837,7 +77249,7 @@ export type AgentsRetrieveResponses = {
74837
77249
  */
74838
77250
  note: string | null;
74839
77251
  /**
74840
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
77252
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
74841
77253
  */
74842
77254
  bindings: Array<{
74843
77255
  /**
@@ -74852,6 +77264,10 @@ export type AgentsRetrieveResponses = {
74852
77264
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
74853
77265
  */
74854
77266
  access: 'read_only' | 'read_write' | 'invoke';
77267
+ /**
77268
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
77269
+ */
77270
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
74855
77271
  /**
74856
77272
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
74857
77273
  */
@@ -75276,6 +77692,10 @@ export type AgentsRetrieveResponses = {
75276
77692
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
75277
77693
  */
75278
77694
  creation_source: string | null;
77695
+ /**
77696
+ * 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.
77697
+ */
77698
+ managed_by: string | null;
75279
77699
  /**
75280
77700
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
75281
77701
  */
@@ -75422,6 +77842,10 @@ export type AgentsUpdateData = {
75422
77842
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
75423
77843
  */
75424
77844
  access: 'read_only' | 'read_write' | 'invoke';
77845
+ /**
77846
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
77847
+ */
77848
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
75425
77849
  /**
75426
77850
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
75427
77851
  */
@@ -75449,7 +77873,7 @@ export type AgentsUpdateData = {
75449
77873
  enabled?: boolean;
75450
77874
  }> | null;
75451
77875
  /**
75452
- * 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.
77876
+ * Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
75453
77877
  */
75454
77878
  kind?: 'general' | 'service' | 'assume';
75455
77879
  /**
@@ -76047,7 +78471,7 @@ export type AgentsUpdateResponses = {
76047
78471
  */
76048
78472
  note: string | null;
76049
78473
  /**
76050
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
78474
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
76051
78475
  */
76052
78476
  bindings: Array<{
76053
78477
  /**
@@ -76062,6 +78486,10 @@ export type AgentsUpdateResponses = {
76062
78486
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
76063
78487
  */
76064
78488
  access: 'read_only' | 'read_write' | 'invoke';
78489
+ /**
78490
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
78491
+ */
78492
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
76065
78493
  /**
76066
78494
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
76067
78495
  */
@@ -76486,6 +78914,10 @@ export type AgentsUpdateResponses = {
76486
78914
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
76487
78915
  */
76488
78916
  creation_source: string | null;
78917
+ /**
78918
+ * 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.
78919
+ */
78920
+ managed_by: string | null;
76489
78921
  /**
76490
78922
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
76491
78923
  */
@@ -76683,7 +79115,7 @@ export type AgentsArchiveResponses = {
76683
79115
  */
76684
79116
  note: string | null;
76685
79117
  /**
76686
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
79118
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
76687
79119
  */
76688
79120
  bindings: Array<{
76689
79121
  /**
@@ -76698,6 +79130,10 @@ export type AgentsArchiveResponses = {
76698
79130
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
76699
79131
  */
76700
79132
  access: 'read_only' | 'read_write' | 'invoke';
79133
+ /**
79134
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
79135
+ */
79136
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
76701
79137
  /**
76702
79138
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
76703
79139
  */
@@ -77100,6 +79536,10 @@ export type AgentsArchiveResponses = {
77100
79536
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
77101
79537
  */
77102
79538
  creation_source: string | null;
79539
+ /**
79540
+ * 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.
79541
+ */
79542
+ managed_by: string | null;
77103
79543
  /**
77104
79544
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
77105
79545
  */
@@ -77315,7 +79755,7 @@ export type AgentsVersionsListResponses = {
77315
79755
  */
77316
79756
  note: string | null;
77317
79757
  /**
77318
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
79758
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
77319
79759
  */
77320
79760
  bindings: Array<{
77321
79761
  /**
@@ -77330,6 +79770,10 @@ export type AgentsVersionsListResponses = {
77330
79770
  * database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
77331
79771
  */
77332
79772
  access: 'read_only' | 'read_write' | 'invoke';
79773
+ /**
79774
+ * What a visitor's session (a terminal customer, ADR-163 §3) may do with this resource: read_only, read_write or invoke. Its scope is the intersection of this value and the binding's own access, so invoke needs both to be invoke. Limited to the accesses the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, read_only or invoke for model, workflow and script. Defaults to read_only. A member's session ignores it entirely; a visitor's session never receives a whole-service binding or an agent resource.
79775
+ */
79776
+ customer_access?: 'read_only' | 'read_write' | 'invoke';
77333
79777
  /**
77334
79778
  * Optional guidance for using this resource, up to 4096 characters; does not expand access.
77335
79779
  */
@@ -77754,6 +80198,10 @@ export type AgentsVersionsListResponses = {
77754
80198
  * Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
77755
80199
  */
77756
80200
  creation_source: string | null;
80201
+ /**
80202
+ * 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.
80203
+ */
80204
+ managed_by: string | null;
77757
80205
  /**
77758
80206
  * Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
77759
80207
  */
@@ -96996,7 +99444,7 @@ export type DevopsChangesGetData = {
96996
99444
  body?: never;
96997
99445
  path: {
96998
99446
  /**
96999
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
99447
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
97000
99448
  */
97001
99449
  id: string;
97002
99450
  };
@@ -97033,7 +99481,7 @@ export type DevopsChangesAbandonData = {
97033
99481
  body: DevopsChangeAbandonRequest;
97034
99482
  path: {
97035
99483
  /**
97036
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
99484
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
97037
99485
  */
97038
99486
  id: string;
97039
99487
  };
@@ -97042,7 +99490,7 @@ export type DevopsChangesAbandonData = {
97042
99490
  };
97043
99491
  export type DevopsChangesAbandonErrors = {
97044
99492
  /**
97045
- * INVALID_ARGUMENT means reason is missing or empty, or the change is already abandoned; read the change to see its stage before deciding again.
99493
+ * INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
97046
99494
  */
97047
99495
  400: DevopsDevOpsError;
97048
99496
  /**
@@ -97074,7 +99522,7 @@ export type DevopsChangesMarkLastSliceData = {
97074
99522
  body: DevopsChangeMarkLastSliceRequest;
97075
99523
  path: {
97076
99524
  /**
97077
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
99525
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
97078
99526
  */
97079
99527
  id: string;
97080
99528
  };
@@ -97115,7 +99563,7 @@ export type DevopsChangesOpenPullRequestData = {
97115
99563
  body?: DevopsChangeOpenPullRequestRequest;
97116
99564
  path: {
97117
99565
  /**
97118
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
99566
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
97119
99567
  */
97120
99568
  id: string;
97121
99569
  };
@@ -97140,7 +99588,7 @@ export type DevopsChangesOpenPullRequestErrors = {
97140
99588
  */
97141
99589
  404: DevopsDevOpsError;
97142
99590
  /**
97143
- * PULL_REQUEST_REFUSED when GitHub would not open it and the branch has no open pull request (most often nothing has been pushed yet); the message carries GitHub's words.
99591
+ * PULL_REQUEST_REFUSED when GitHub would not open it and the head has no pull request at all (most often nothing has been pushed yet); the message carries GitHub's words. PULL_REQUEST_NOT_OPEN when the head's pull request is merged or closed — a description written for a pull request that already landed — with that pull request's number, its state and the branch in the message.
97144
99592
  */
97145
99593
  409: DevopsDevOpsError;
97146
99594
  /**
@@ -97160,7 +99608,7 @@ export type DevopsChangesGitCredentialData = {
97160
99608
  body?: never;
97161
99609
  path: {
97162
99610
  /**
97163
- * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
99611
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
97164
99612
  */
97165
99613
  id: string;
97166
99614
  };
@@ -97432,6 +99880,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
97432
99880
  200: DevopsPullRequest;
97433
99881
  };
97434
99882
  export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
99883
+ export type DevopsPullRequestsCloseData = {
99884
+ body: DevopsPullRequestCloseRequest;
99885
+ path: {
99886
+ /**
99887
+ * 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.
99888
+ */
99889
+ id: string;
99890
+ };
99891
+ query?: never;
99892
+ url: '/devops/v1/pull-requests/{id}:close';
99893
+ };
99894
+ export type DevopsPullRequestsCloseErrors = {
99895
+ /**
99896
+ * 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.
99897
+ */
99898
+ 400: DevopsDevOpsError;
99899
+ /**
99900
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
99901
+ */
99902
+ 401: DevopsDevOpsError;
99903
+ /**
99904
+ * 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.
99905
+ */
99906
+ 403: DevopsDevOpsError;
99907
+ /**
99908
+ * 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.
99909
+ */
99910
+ 404: DevopsDevOpsError;
99911
+ /**
99912
+ * 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.
99913
+ */
99914
+ 409: DevopsDevOpsError;
99915
+ /**
99916
+ * 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.
99917
+ */
99918
+ 500: DevopsDevOpsError;
99919
+ };
99920
+ export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
99921
+ export type DevopsPullRequestsCloseResponses = {
99922
+ /**
99923
+ * 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.
99924
+ */
99925
+ 200: DevopsPullRequest;
99926
+ };
99927
+ export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
97435
99928
  export type DevopsConnectionsListData = {
97436
99929
  body?: never;
97437
99930
  path?: never;
@@ -99947,6 +102440,10 @@ export type MediaCreateLibraryData = {
99947
102440
  * 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.
99948
102441
  */
99949
102442
  models?: MediaMediaModelsInput;
102443
+ /**
102444
+ * 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.
102445
+ */
102446
+ default_tier?: MediaMediaTier;
99950
102447
  /**
99951
102448
  * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
99952
102449
  */
@@ -100274,6 +102771,10 @@ export type MediaUpdateLibraryData = {
100274
102771
  * 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.
100275
102772
  */
100276
102773
  models?: MediaMediaModelsInput;
102774
+ /**
102775
+ * 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.
102776
+ */
102777
+ default_tier?: MediaMediaTier;
100277
102778
  /**
100278
102779
  * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
100279
102780
  */
@@ -102547,9 +105048,10 @@ export type MediaGenerateImageData = {
102547
105048
  */
102548
105049
  seed?: number;
102549
105050
  /**
102550
- * Model with image-generation capability; omit it to use the library default image model.
105051
+ * 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.
102551
105052
  */
102552
105053
  model?: string;
105054
+ tier?: MediaMediaTier;
102553
105055
  /**
102554
105056
  * 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.
102555
105057
  */
@@ -102698,9 +105200,10 @@ export type MediaGenerateVideoData = {
102698
105200
  */
102699
105201
  seed?: number;
102700
105202
  /**
102701
- * Model with video-generation capability; omit it to use the library default video model.
105203
+ * 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.
102702
105204
  */
102703
105205
  model?: string;
105206
+ tier?: MediaMediaTier;
102704
105207
  /**
102705
105208
  * 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.
102706
105209
  */
@@ -102797,9 +105300,10 @@ export type MediaEditAssetData = {
102797
105300
  */
102798
105301
  operation: MediaEditOperation;
102799
105302
  /**
102800
- * Model that performs the edit; omit it to use the library default image model.
105303
+ * 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.
102801
105304
  */
102802
105305
  model?: string;
105306
+ tier?: MediaMediaTier;
102803
105307
  /**
102804
105308
  * 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.
102805
105309
  */
@@ -102834,7 +105338,7 @@ export type MediaEditAssetData = {
102834
105338
  };
102835
105339
  export type MediaEditAssetErrors = {
102836
105340
  /**
102837
- * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase and replace_person on a video. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
105341
+ * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
102838
105342
  */
102839
105343
  400: MediaMediaError;
102840
105344
  /**
@@ -103782,40 +106286,213 @@ export type MediaGetHlsRenditionsErrors = {
103782
106286
  */
103783
106287
  503: MediaMediaError;
103784
106288
  };
103785
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
103786
- export type MediaGetHlsRenditionsResponses = {
106289
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
106290
+ export type MediaGetHlsRenditionsResponses = {
106291
+ /**
106292
+ * Successful response.
106293
+ */
106294
+ 200: MediaHlsLadder;
106295
+ };
106296
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
106297
+ export type MediaRequestHlsRenditionsData = {
106298
+ /**
106299
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
106300
+ */
106301
+ body: {
106302
+ /**
106303
+ * 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.
106304
+ */
106305
+ heights?: Array<480 | 720 | 1080>;
106306
+ };
106307
+ path: {
106308
+ /**
106309
+ * Library ID returned by creation.
106310
+ */
106311
+ library_id: string;
106312
+ /**
106313
+ * 32-character asset ID.
106314
+ */
106315
+ asset_id: string;
106316
+ };
106317
+ query?: never;
106318
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
106319
+ };
106320
+ export type MediaRequestHlsRenditionsErrors = {
106321
+ /**
106322
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
106323
+ */
106324
+ 400: MediaMediaError;
106325
+ /**
106326
+ * Request failed; see the error code reference.
106327
+ */
106328
+ 402: MediaMediaError;
106329
+ /**
106330
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
106331
+ */
106332
+ 403: MediaMediaError;
106333
+ /**
106334
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
106335
+ */
106336
+ 404: MediaMediaError;
106337
+ /**
106338
+ * Request failed; see the error code reference.
106339
+ */
106340
+ 409: MediaMediaError;
106341
+ /**
106342
+ * The file exceeds an input limit; provide a smaller source file.
106343
+ */
106344
+ 413: MediaMediaError;
106345
+ /**
106346
+ * This media format is unsupported; provide a supported format.
106347
+ */
106348
+ 415: MediaMediaError;
106349
+ /**
106350
+ * Request failed; see the error code reference.
106351
+ */
106352
+ 422: MediaMediaError;
106353
+ /**
106354
+ * A rate limit was reached; wait before retrying.
106355
+ */
106356
+ 429: MediaMediaError;
106357
+ /**
106358
+ * The requested operation is unsupported; choose a supported method.
106359
+ */
106360
+ 501: MediaMediaError;
106361
+ /**
106362
+ * Request failed; see the error code reference.
106363
+ */
106364
+ 502: MediaMediaError;
106365
+ /**
106366
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
106367
+ */
106368
+ 503: MediaMediaError;
106369
+ };
106370
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
106371
+ export type MediaRequestHlsRenditionsResponses = {
103787
106372
  /**
103788
106373
  * Successful response.
103789
106374
  */
103790
- 200: MediaHlsLadder;
106375
+ 202: MediaHlsLadder;
103791
106376
  };
103792
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
103793
- export type MediaRequestHlsRenditionsData = {
106377
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
106378
+ export type MediaCreateVoiceData = {
103794
106379
  /**
103795
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
106380
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
103796
106381
  */
103797
- body: {
106382
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
106383
+ headers?: {
103798
106384
  /**
103799
- * 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.
106385
+ * 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.
103800
106386
  */
103801
- heights?: Array<480 | 720 | 1080>;
106387
+ 'Idempotency-Key'?: string;
103802
106388
  };
103803
106389
  path: {
103804
106390
  /**
103805
106391
  * Library ID returned by creation.
103806
106392
  */
103807
106393
  library_id: string;
106394
+ };
106395
+ query?: never;
106396
+ url: '/media/v1/libraries/{library_id}/voices';
106397
+ };
106398
+ export type MediaCreateVoiceErrors = {
106399
+ /**
106400
+ * Request failed; see the error code reference.
106401
+ */
106402
+ 400: MediaMediaError;
106403
+ /**
106404
+ * Request failed; see the error code reference.
106405
+ */
106406
+ 402: MediaMediaError;
106407
+ /**
106408
+ * Request failed; see the error code reference.
106409
+ */
106410
+ 403: MediaMediaError;
106411
+ /**
106412
+ * Request failed; see the error code reference.
106413
+ */
106414
+ 404: MediaMediaError;
106415
+ /**
106416
+ * Request failed; see the error code reference.
106417
+ */
106418
+ 409: MediaMediaError;
106419
+ /**
106420
+ * Request failed; see the error code reference.
106421
+ */
106422
+ 413: MediaMediaError;
106423
+ /**
106424
+ * Request failed; see the error code reference.
106425
+ */
106426
+ 415: MediaMediaError;
106427
+ /**
106428
+ * Request failed; see the error code reference.
106429
+ */
106430
+ 422: MediaMediaError;
106431
+ /**
106432
+ * Request failed; see the error code reference.
106433
+ */
106434
+ 429: MediaMediaError;
106435
+ /**
106436
+ * Request failed; see the error code reference.
106437
+ */
106438
+ 501: MediaMediaError;
106439
+ /**
106440
+ * Request failed; see the error code reference.
106441
+ */
106442
+ 502: MediaMediaError;
106443
+ /**
106444
+ * Request failed; see the error code reference.
106445
+ */
106446
+ 503: MediaMediaError;
106447
+ };
106448
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
106449
+ export type MediaCreateVoiceResponses = {
106450
+ /**
106451
+ * Successful response.
106452
+ */
106453
+ 202: MediaJob;
106454
+ };
106455
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
106456
+ export type MediaDesignVoiceData = {
106457
+ /**
106458
+ * One voice-design run: what the voice should sound like and the line the previews speak.
106459
+ */
106460
+ body: {
103808
106461
  /**
103809
- * 32-character asset ID.
106462
+ * 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.
103810
106463
  */
103811
- asset_id: string;
106464
+ description: string;
106465
+ /**
106466
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
106467
+ */
106468
+ preview_text: string;
106469
+ /**
106470
+ * Language the previews speak: zh or en only.
106471
+ */
106472
+ language: 'zh' | 'en';
106473
+ /**
106474
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
106475
+ */
106476
+ count?: number;
106477
+ };
106478
+ headers?: {
106479
+ /**
106480
+ * 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.
106481
+ */
106482
+ 'Idempotency-Key'?: string;
106483
+ };
106484
+ path: {
106485
+ /**
106486
+ * Library ID returned by creation.
106487
+ */
106488
+ library_id: string;
103812
106489
  };
103813
106490
  query?: never;
103814
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
106491
+ url: '/media/v1/libraries/{library_id}/voices/designs';
103815
106492
  };
103816
- export type MediaRequestHlsRenditionsErrors = {
106493
+ export type MediaDesignVoiceErrors = {
103817
106494
  /**
103818
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
106495
+ * Request failed; see the error code reference.
103819
106496
  */
103820
106497
  400: MediaMediaError;
103821
106498
  /**
@@ -103823,11 +106500,11 @@ export type MediaRequestHlsRenditionsErrors = {
103823
106500
  */
103824
106501
  402: MediaMediaError;
103825
106502
  /**
103826
- * This credential has read-only access to the library; use a write-capable binding for mutations.
106503
+ * Request failed; see the error code reference.
103827
106504
  */
103828
106505
  403: MediaMediaError;
103829
106506
  /**
103830
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
106507
+ * Request failed; see the error code reference.
103831
106508
  */
103832
106509
  404: MediaMediaError;
103833
106510
  /**
@@ -103835,11 +106512,11 @@ export type MediaRequestHlsRenditionsErrors = {
103835
106512
  */
103836
106513
  409: MediaMediaError;
103837
106514
  /**
103838
- * The file exceeds an input limit; provide a smaller source file.
106515
+ * Request failed; see the error code reference.
103839
106516
  */
103840
106517
  413: MediaMediaError;
103841
106518
  /**
103842
- * This media format is unsupported; provide a supported format.
106519
+ * Request failed; see the error code reference.
103843
106520
  */
103844
106521
  415: MediaMediaError;
103845
106522
  /**
@@ -103847,11 +106524,11 @@ export type MediaRequestHlsRenditionsErrors = {
103847
106524
  */
103848
106525
  422: MediaMediaError;
103849
106526
  /**
103850
- * A rate limit was reached; wait before retrying.
106527
+ * Request failed; see the error code reference.
103851
106528
  */
103852
106529
  429: MediaMediaError;
103853
106530
  /**
103854
- * The requested operation is unsupported; choose a supported method.
106531
+ * Request failed; see the error code reference.
103855
106532
  */
103856
106533
  501: MediaMediaError;
103857
106534
  /**
@@ -103859,18 +106536,18 @@ export type MediaRequestHlsRenditionsErrors = {
103859
106536
  */
103860
106537
  502: MediaMediaError;
103861
106538
  /**
103862
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
106539
+ * Request failed; see the error code reference.
103863
106540
  */
103864
106541
  503: MediaMediaError;
103865
106542
  };
103866
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
103867
- export type MediaRequestHlsRenditionsResponses = {
106543
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
106544
+ export type MediaDesignVoiceResponses = {
103868
106545
  /**
103869
106546
  * Successful response.
103870
106547
  */
103871
- 202: MediaHlsLadder;
106548
+ 202: MediaJob;
103872
106549
  };
103873
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
106550
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
103874
106551
  export type OntologyListTypesData = {
103875
106552
  body?: never;
103876
106553
  path?: never;
@@ -105012,6 +107689,200 @@ export type RegistryPackagesVersionsCreateResponses = {
105012
107689
  201: RegistryVersion;
105013
107690
  };
105014
107691
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
107692
+ export type RegistryGitLogData = {
107693
+ body?: never;
107694
+ path: {
107695
+ /**
107696
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107697
+ */
107698
+ package_id: string;
107699
+ };
107700
+ query?: {
107701
+ /**
107702
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
107703
+ */
107704
+ ref?: string;
107705
+ /**
107706
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
107707
+ */
107708
+ limit?: number;
107709
+ /**
107710
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
107711
+ */
107712
+ offset?: number;
107713
+ };
107714
+ url: '/registry/v1/packages/{package_id}/git/log';
107715
+ };
107716
+ export type RegistryGitLogErrors = {
107717
+ /**
107718
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107719
+ */
107720
+ 400: RegistryRegistryError;
107721
+ /**
107722
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107723
+ */
107724
+ 401: RegistryRegistryError;
107725
+ /**
107726
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107727
+ */
107728
+ 404: RegistryRegistryError;
107729
+ /**
107730
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107731
+ */
107732
+ 500: RegistryRegistryError;
107733
+ /**
107734
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107735
+ */
107736
+ 503: RegistryRegistryError;
107737
+ };
107738
+ export type RegistryGitLogError = RegistryGitLogErrors[keyof RegistryGitLogErrors];
107739
+ export type RegistryGitLogResponses = {
107740
+ /**
107741
+ * 这个引用可达的提交,连同是否还有下一页。
107742
+ */
107743
+ 200: RegistryGitLog;
107744
+ };
107745
+ export type RegistryGitLogResponse = RegistryGitLogResponses[keyof RegistryGitLogResponses];
107746
+ export type RegistryGitCommitsRetrieveData = {
107747
+ body?: never;
107748
+ path: {
107749
+ /**
107750
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107751
+ */
107752
+ package_id: string;
107753
+ /**
107754
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
107755
+ */
107756
+ sha: string;
107757
+ };
107758
+ query?: never;
107759
+ url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
107760
+ };
107761
+ export type RegistryGitCommitsRetrieveErrors = {
107762
+ /**
107763
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107764
+ */
107765
+ 400: RegistryRegistryError;
107766
+ /**
107767
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107768
+ */
107769
+ 401: RegistryRegistryError;
107770
+ /**
107771
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107772
+ */
107773
+ 404: RegistryRegistryError;
107774
+ /**
107775
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107776
+ */
107777
+ 500: RegistryRegistryError;
107778
+ /**
107779
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107780
+ */
107781
+ 503: RegistryRegistryError;
107782
+ };
107783
+ export type RegistryGitCommitsRetrieveError = RegistryGitCommitsRetrieveErrors[keyof RegistryGitCommitsRetrieveErrors];
107784
+ export type RegistryGitCommitsRetrieveResponses = {
107785
+ /**
107786
+ * 这个提交。
107787
+ */
107788
+ 200: RegistryGitCommit;
107789
+ };
107790
+ export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
107791
+ export type RegistryGitTreesRetrieveData = {
107792
+ body?: never;
107793
+ path: {
107794
+ /**
107795
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107796
+ */
107797
+ package_id: string;
107798
+ /**
107799
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
107800
+ */
107801
+ sha: string;
107802
+ };
107803
+ query?: never;
107804
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}';
107805
+ };
107806
+ export type RegistryGitTreesRetrieveErrors = {
107807
+ /**
107808
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107809
+ */
107810
+ 400: RegistryRegistryError;
107811
+ /**
107812
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107813
+ */
107814
+ 401: RegistryRegistryError;
107815
+ /**
107816
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107817
+ */
107818
+ 404: RegistryRegistryError;
107819
+ /**
107820
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107821
+ */
107822
+ 500: RegistryRegistryError;
107823
+ /**
107824
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107825
+ */
107826
+ 503: RegistryRegistryError;
107827
+ };
107828
+ export type RegistryGitTreesRetrieveError = RegistryGitTreesRetrieveErrors[keyof RegistryGitTreesRetrieveErrors];
107829
+ export type RegistryGitTreesRetrieveResponses = {
107830
+ /**
107831
+ * 这个树的条目。
107832
+ */
107833
+ 200: RegistryGitTree;
107834
+ };
107835
+ export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
107836
+ export type RegistryGitFilesRetrieveData = {
107837
+ body?: never;
107838
+ path: {
107839
+ /**
107840
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107841
+ */
107842
+ package_id: string;
107843
+ /**
107844
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
107845
+ */
107846
+ path: string;
107847
+ };
107848
+ query?: {
107849
+ /**
107850
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
107851
+ */
107852
+ ref?: string;
107853
+ };
107854
+ url: '/registry/v1/packages/{package_id}/git/files/{path}';
107855
+ };
107856
+ export type RegistryGitFilesRetrieveErrors = {
107857
+ /**
107858
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107859
+ */
107860
+ 401: RegistryRegistryError;
107861
+ /**
107862
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107863
+ */
107864
+ 404: RegistryRegistryError;
107865
+ /**
107866
+ * PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
107867
+ */
107868
+ 413: RegistryRegistryError;
107869
+ /**
107870
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107871
+ */
107872
+ 500: RegistryRegistryError;
107873
+ /**
107874
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107875
+ */
107876
+ 503: RegistryRegistryError;
107877
+ };
107878
+ export type RegistryGitFilesRetrieveError = RegistryGitFilesRetrieveErrors[keyof RegistryGitFilesRetrieveErrors];
107879
+ export type RegistryGitFilesRetrieveResponses = {
107880
+ /**
107881
+ * 文件内容,逐字节原样返回。
107882
+ */
107883
+ 200: Blob | File;
107884
+ };
107885
+ export type RegistryGitFilesRetrieveResponse = RegistryGitFilesRetrieveResponses[keyof RegistryGitFilesRetrieveResponses];
105015
107886
  export type RegistryPackagesVersionsContentsData = {
105016
107887
  body?: never;
105017
107888
  path: {
@@ -107309,9 +110180,9 @@ export type ShareListPermissionsData = {
107309
110180
  path?: never;
107310
110181
  query?: {
107311
110182
  /**
107312
- * Only shares of this object type; file, canvas and media_asset create today.
110183
+ * Only shares of this object type; file, canvas, media_asset and agent create today.
107313
110184
  */
107314
- resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset';
110185
+ resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
107315
110186
  /**
107316
110187
  * Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type.
107317
110188
  */
@@ -107372,7 +110243,7 @@ export type ShareCreatePermissionData = {
107372
110243
  };
107373
110244
  export type ShareCreatePermissionErrors = {
107374
110245
  /**
107375
- * INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
110246
+ * INVALID_PARAMS means a body field or identifier violates the documented format; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet; RESOURCE_NOT_SHAREABLE means the object exists but its owner keeps share links off — for an agent, turn share links on in its embed settings (share_links) first, which requires the agent to have a short number. Correct the indicated field; the message names it.
107376
110247
  */
107377
110248
  400: ShareShareError;
107378
110249
  /**