@deepraxis/sdk 0.1.1-dev.75f07a9 → 0.1.1-dev.77dc43d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +45 -1
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +69 -13
- package/dist/generated/sdk.gen.js +164 -12
- package/dist/generated/types.gen.d.ts +2823 -108
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.js +5 -33
- package/dist/operations.generated.js +363 -19
- package/dist/resources.generated.d.ts +718 -147
- package/dist/resources.generated.js +23 -0
- package/package.json +1 -1
|
@@ -17929,6 +17929,15 @@ export type DevopsPullRequestVerdictRequest = {
|
|
|
17929
17929
|
*/
|
|
17930
17930
|
reason?: string;
|
|
17931
17931
|
};
|
|
17932
|
+
/**
|
|
17933
|
+
* Why the pull request is being closed. The reason is written on the pull request itself, so a reader of it does not need the platform to learn why.
|
|
17934
|
+
*/
|
|
17935
|
+
export type DevopsPullRequestCloseRequest = {
|
|
17936
|
+
/**
|
|
17937
|
+
* Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one.
|
|
17938
|
+
*/
|
|
17939
|
+
reason: string;
|
|
17940
|
+
};
|
|
17932
17941
|
/**
|
|
17933
17942
|
* One page of an organization's connections.
|
|
17934
17943
|
*/
|
|
@@ -18991,6 +19000,10 @@ export type MediaLibrary = {
|
|
|
18991
19000
|
* Resolved model call IDs used for new uploads and reprocessing.
|
|
18992
19001
|
*/
|
|
18993
19002
|
models: MediaMediaModels;
|
|
19003
|
+
/**
|
|
19004
|
+
* The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
|
|
19005
|
+
*/
|
|
19006
|
+
readonly default_tier: MediaMediaTier;
|
|
18994
19007
|
/**
|
|
18995
19008
|
* Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
|
|
18996
19009
|
*/
|
|
@@ -19082,6 +19095,10 @@ export type MediaMediaModelsInput = {
|
|
|
19082
19095
|
*/
|
|
19083
19096
|
speech?: string | null;
|
|
19084
19097
|
} | null;
|
|
19098
|
+
/**
|
|
19099
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request.
|
|
19100
|
+
*/
|
|
19101
|
+
export type MediaMediaTier = 'economy' | 'balanced' | 'quality';
|
|
19085
19102
|
/**
|
|
19086
19103
|
* Libraries in this page, ordered by creation time descending.
|
|
19087
19104
|
*/
|
|
@@ -19665,6 +19682,10 @@ export type MediaJob = {
|
|
|
19665
19682
|
* Model that produced the outputs of a generation job; omitted for batch jobs.
|
|
19666
19683
|
*/
|
|
19667
19684
|
model?: string;
|
|
19685
|
+
/**
|
|
19686
|
+
* The performance tier that actually served this job’s model, present only when the request named a tier instead of a model. It is the tier that ran: a balanced request that a capability answers with its economy model reports economy, so a caller can see what it got. model keeps its own meaning and value alongside it.
|
|
19687
|
+
*/
|
|
19688
|
+
tier?: MediaMediaTier;
|
|
19668
19689
|
/**
|
|
19669
19690
|
* Per-output results of a generation job, in index order: one entry per requested image or video, and one per text segment for speech. Every successful output is already a library asset, and its viewer_url opens it in the Console.
|
|
19670
19691
|
*/
|
|
@@ -19851,9 +19872,13 @@ export type MediaAssetReference = {
|
|
|
19851
19872
|
* How strongly the reference asset influenced the result, from 0 to 1 on the Stability scale. Omitted when the model treats every reference equally.
|
|
19852
19873
|
*/
|
|
19853
19874
|
strength?: number;
|
|
19875
|
+
/**
|
|
19876
|
+
* Video generation, mode reference only: the voice this picture’s subject speaks with. Name an audio asset of the same library (mp3 or wav, 1–10 s) or a voice of the library (a Voice — its first sample then speaks). The model reads the timbre alone, so what is said belongs in prompt. Send it on a picture reference (role subject or style), never on a role video reference and never on another mode; refused with INVALID_PARAMS when the source is not in this library, when the recording is not 1–10 s of mp3 or wav, or when the field is used outside mode reference, with REFERENCE_TYPE_MISMATCH when the named asset is neither audio nor a voice. Only wan2.7-r2v reads it: a request that carries a voice on any other model is refused, naming the field. Omit it to send no voice, and the request is what it was before the field existed.
|
|
19877
|
+
*/
|
|
19878
|
+
voice_asset_id?: MediaAssetId;
|
|
19854
19879
|
};
|
|
19855
19880
|
/**
|
|
19856
|
-
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and
|
|
19881
|
+
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
|
|
19857
19882
|
*/
|
|
19858
19883
|
export type MediaEditOperation = {
|
|
19859
19884
|
/**
|
|
@@ -19882,9 +19907,10 @@ export type MediaEditOperation = {
|
|
|
19882
19907
|
*/
|
|
19883
19908
|
height?: 720 | 1080 | 1440 | 2160;
|
|
19884
19909
|
/**
|
|
19885
|
-
* Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
19910
|
+
* Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
19886
19911
|
*/
|
|
19887
19912
|
model?: string;
|
|
19913
|
+
tier?: MediaMediaTier;
|
|
19888
19914
|
} | {
|
|
19889
19915
|
/**
|
|
19890
19916
|
* Edit operation discriminator; outpaint selects the outpaint branch of this union.
|
|
@@ -19961,9 +19987,10 @@ export type MediaEditOperation = {
|
|
|
19961
19987
|
*/
|
|
19962
19988
|
mute?: boolean;
|
|
19963
19989
|
/**
|
|
19964
|
-
* Video only: processing model that performs the erase, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
19990
|
+
* Video only: processing model that performs the erase, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
19965
19991
|
*/
|
|
19966
19992
|
model?: string;
|
|
19993
|
+
tier?: MediaMediaTier;
|
|
19967
19994
|
} | {
|
|
19968
19995
|
/**
|
|
19969
19996
|
* Edit operation discriminator; replace_object selects the replace_object branch of this union.
|
|
@@ -20000,9 +20027,10 @@ export type MediaEditOperation = {
|
|
|
20000
20027
|
*/
|
|
20001
20028
|
output?: 'mask' | 'alpha';
|
|
20002
20029
|
/**
|
|
20003
|
-
* Video model that performs the matting, from the types.matting.models list of the generation capabilities; omit it to use the first available matting model. Video sources only — for an image it is refused with INVALID_PARAMS.
|
|
20030
|
+
* Video model that performs the matting, from the types.matting.models list of the generation capabilities; omit it to use the first available matting model. Video sources only — for an image it is refused with INVALID_PARAMS. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20004
20031
|
*/
|
|
20005
20032
|
model?: string;
|
|
20033
|
+
tier?: MediaMediaTier;
|
|
20006
20034
|
} | {
|
|
20007
20035
|
/**
|
|
20008
20036
|
* Edit operation discriminator; replace_background selects the replace_background branch of this union.
|
|
@@ -20103,9 +20131,10 @@ export type MediaEditOperation = {
|
|
|
20103
20131
|
*/
|
|
20104
20132
|
speech?: MediaSpeechCreateInput;
|
|
20105
20133
|
/**
|
|
20106
|
-
* Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available.
|
|
20134
|
+
* Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20107
20135
|
*/
|
|
20108
20136
|
model?: string;
|
|
20137
|
+
tier?: MediaMediaTier;
|
|
20109
20138
|
} | {
|
|
20110
20139
|
/**
|
|
20111
20140
|
* Edit operation discriminator; frame selects the frame branch of this union.
|
|
@@ -20126,9 +20155,10 @@ export type MediaEditOperation = {
|
|
|
20126
20155
|
*/
|
|
20127
20156
|
type: 'enhance_voice';
|
|
20128
20157
|
/**
|
|
20129
|
-
* Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
20158
|
+
* Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20130
20159
|
*/
|
|
20131
20160
|
model?: string;
|
|
20161
|
+
tier?: MediaMediaTier;
|
|
20132
20162
|
} | {
|
|
20133
20163
|
/**
|
|
20134
20164
|
* Edit operation discriminator; reframe selects the reframe branch of this union.
|
|
@@ -20139,9 +20169,10 @@ export type MediaEditOperation = {
|
|
|
20139
20169
|
*/
|
|
20140
20170
|
aspect: '9:16' | '1:1' | '16:9';
|
|
20141
20171
|
/**
|
|
20142
|
-
* Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
20172
|
+
* Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20143
20173
|
*/
|
|
20144
20174
|
model?: string;
|
|
20175
|
+
tier?: MediaMediaTier;
|
|
20145
20176
|
} | {
|
|
20146
20177
|
/**
|
|
20147
20178
|
* Edit operation discriminator; redact selects the redact branch of this union.
|
|
@@ -20152,9 +20183,10 @@ export type MediaEditOperation = {
|
|
|
20152
20183
|
*/
|
|
20153
20184
|
targets: Array<'face' | 'qr' | 'text'>;
|
|
20154
20185
|
/**
|
|
20155
|
-
* Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
20186
|
+
* Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20156
20187
|
*/
|
|
20157
20188
|
model?: string;
|
|
20189
|
+
tier?: MediaMediaTier;
|
|
20158
20190
|
} | {
|
|
20159
20191
|
/**
|
|
20160
20192
|
* Edit operation discriminator; trim selects the trim branch of this union.
|
|
@@ -20169,18 +20201,20 @@ export type MediaEditOperation = {
|
|
|
20169
20201
|
*/
|
|
20170
20202
|
end_seconds?: number;
|
|
20171
20203
|
/**
|
|
20172
|
-
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20204
|
+
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20173
20205
|
*/
|
|
20174
20206
|
model?: string;
|
|
20207
|
+
tier?: MediaMediaTier;
|
|
20175
20208
|
} | {
|
|
20176
20209
|
/**
|
|
20177
20210
|
* Edit operation discriminator; mute selects the mute branch of this union.
|
|
20178
20211
|
*/
|
|
20179
20212
|
type: 'mute';
|
|
20180
20213
|
/**
|
|
20181
|
-
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20214
|
+
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20182
20215
|
*/
|
|
20183
20216
|
model?: string;
|
|
20217
|
+
tier?: MediaMediaTier;
|
|
20184
20218
|
} | {
|
|
20185
20219
|
/**
|
|
20186
20220
|
* Edit operation discriminator; crop selects the crop branch of this union.
|
|
@@ -20203,9 +20237,23 @@ export type MediaEditOperation = {
|
|
|
20203
20237
|
*/
|
|
20204
20238
|
left?: number;
|
|
20205
20239
|
/**
|
|
20206
|
-
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20240
|
+
* Processing model that performs the edit, from the models the generation capabilities publish for the clip capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20207
20241
|
*/
|
|
20208
20242
|
model?: string;
|
|
20243
|
+
tier?: MediaMediaTier;
|
|
20244
|
+
} | {
|
|
20245
|
+
/**
|
|
20246
|
+
* Edit operation discriminator; extract_audio selects the extract_audio branch of this union.
|
|
20247
|
+
*/
|
|
20248
|
+
type: 'extract_audio';
|
|
20249
|
+
/**
|
|
20250
|
+
* Seconds into the source video where the audio starts, 0 or more; omit it to begin at the start.
|
|
20251
|
+
*/
|
|
20252
|
+
start_seconds?: number;
|
|
20253
|
+
/**
|
|
20254
|
+
* Seconds into the source video where the audio ends, after start_seconds; omit it to keep to the source’s end. A value past the end is the end.
|
|
20255
|
+
*/
|
|
20256
|
+
end_seconds?: number;
|
|
20209
20257
|
} | {
|
|
20210
20258
|
/**
|
|
20211
20259
|
* Edit operation discriminator; replace_person selects the replace_person branch of this union.
|
|
@@ -20216,9 +20264,10 @@ export type MediaEditOperation = {
|
|
|
20216
20264
|
*/
|
|
20217
20265
|
person_asset_id: MediaAssetId;
|
|
20218
20266
|
/**
|
|
20219
|
-
* Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
|
|
20267
|
+
* Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20220
20268
|
*/
|
|
20221
20269
|
model?: string;
|
|
20270
|
+
tier?: MediaMediaTier;
|
|
20222
20271
|
} | {
|
|
20223
20272
|
/**
|
|
20224
20273
|
* Edit operation discriminator; animate_person selects the animate_person branch of this union.
|
|
@@ -20229,9 +20278,10 @@ export type MediaEditOperation = {
|
|
|
20229
20278
|
*/
|
|
20230
20279
|
person_asset_id: MediaAssetId;
|
|
20231
20280
|
/**
|
|
20232
|
-
* Which tier: video-animate-person-flash or video-animate-person-pro, as the generation capabilities publish them for animate_person with their prices; omit it to use the first available.
|
|
20281
|
+
* Which tier: video-animate-person-flash or video-animate-person-pro, as the generation capabilities publish them for animate_person with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20233
20282
|
*/
|
|
20234
20283
|
model?: string;
|
|
20284
|
+
tier?: MediaMediaTier;
|
|
20235
20285
|
} | {
|
|
20236
20286
|
/**
|
|
20237
20287
|
* Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
|
|
@@ -20242,9 +20292,32 @@ export type MediaEditOperation = {
|
|
|
20242
20292
|
*/
|
|
20243
20293
|
audio_asset_id: MediaAssetId;
|
|
20244
20294
|
/**
|
|
20245
|
-
* Which tier: video-talking-avatar-flash (480P) or video-talking-avatar-pro (720P), as the generation capabilities publish them for talking_avatar with their prices; omit it to use the first available.
|
|
20295
|
+
* Which tier: video-talking-avatar-flash (480P) or video-talking-avatar-pro (720P), as the generation capabilities publish them for talking_avatar with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20296
|
+
*/
|
|
20297
|
+
model?: string;
|
|
20298
|
+
tier?: MediaMediaTier;
|
|
20299
|
+
} | {
|
|
20300
|
+
/**
|
|
20301
|
+
* Edit operation discriminator; edit_video selects the edit_video branch of this union.
|
|
20302
|
+
*/
|
|
20303
|
+
type: 'edit_video';
|
|
20304
|
+
/**
|
|
20305
|
+
* One instruction describing the change to make, up to 5000 characters; the video keeps its own length and aspect ratio.
|
|
20306
|
+
*/
|
|
20307
|
+
prompt: string;
|
|
20308
|
+
/**
|
|
20309
|
+
* What the edit should avoid, up to 500 characters.
|
|
20310
|
+
*/
|
|
20311
|
+
negative_prompt?: string;
|
|
20312
|
+
/**
|
|
20313
|
+
* Optional image asset in the same library to guide the edit. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
|
|
20314
|
+
*/
|
|
20315
|
+
reference_asset_id?: MediaAssetId;
|
|
20316
|
+
/**
|
|
20317
|
+
* Which tier: the Flash model (720P) or the Pro model (1080P), as the generation capabilities publish them for the video_edit capability with their prices; omit it to use the first available. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
20246
20318
|
*/
|
|
20247
20319
|
model?: string;
|
|
20320
|
+
tier?: MediaMediaTier;
|
|
20248
20321
|
} | {
|
|
20249
20322
|
/**
|
|
20250
20323
|
* Edit operation discriminator; voice_change selects the voice_change branch of this union.
|
|
@@ -20415,7 +20488,7 @@ export type MediaGenerationCapabilities = {
|
|
|
20415
20488
|
matting: MediaGenerationTypeCapability;
|
|
20416
20489
|
};
|
|
20417
20490
|
/**
|
|
20418
|
-
* The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person and
|
|
20491
|
+
* The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person, talking_avatar and edit_video (video_edit). Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
|
|
20419
20492
|
*/
|
|
20420
20493
|
processes: {
|
|
20421
20494
|
upscale: MediaGenerationProcessCapability;
|
|
@@ -20429,6 +20502,7 @@ export type MediaGenerationCapabilities = {
|
|
|
20429
20502
|
lip_sync: MediaGenerationProcessCapability;
|
|
20430
20503
|
animate_person: MediaGenerationProcessCapability;
|
|
20431
20504
|
talking_avatar: MediaGenerationProcessCapability;
|
|
20505
|
+
video_edit: MediaGenerationProcessCapability;
|
|
20432
20506
|
};
|
|
20433
20507
|
};
|
|
20434
20508
|
/**
|
|
@@ -20448,6 +20522,62 @@ export type MediaHlsLadder = {
|
|
|
20448
20522
|
*/
|
|
20449
20523
|
renditions: Array<MediaHlsRendition>;
|
|
20450
20524
|
};
|
|
20525
|
+
export type MediaVoiceCloneInput = {
|
|
20526
|
+
/**
|
|
20527
|
+
* Display name of the voice; a later rename keeps the same voice id.
|
|
20528
|
+
*/
|
|
20529
|
+
name: string;
|
|
20530
|
+
/**
|
|
20531
|
+
* Recording file ids this voice is cloned from, in order; the first is the clone’s own recording. Each must be an audio format the supplier accepts.
|
|
20532
|
+
*/
|
|
20533
|
+
samples: Array<string>;
|
|
20534
|
+
/**
|
|
20535
|
+
* Consent id that authorises this clone, minted by the voice-consent endpoint of this same library.
|
|
20536
|
+
*/
|
|
20537
|
+
consent_id: MediaVoiceConsentId;
|
|
20538
|
+
/**
|
|
20539
|
+
* Language the voice speaks, used to tag the clone at the supplier; for example zh or en.
|
|
20540
|
+
*/
|
|
20541
|
+
language: string;
|
|
20542
|
+
/**
|
|
20543
|
+
* Free-form string labels carried onto the usage event for this voice.
|
|
20544
|
+
*/
|
|
20545
|
+
labels?: {
|
|
20546
|
+
[key: string]: string;
|
|
20547
|
+
};
|
|
20548
|
+
/**
|
|
20549
|
+
* Caller’s own note about the voice, stored on it and returned as description.
|
|
20550
|
+
*/
|
|
20551
|
+
description?: string;
|
|
20552
|
+
/**
|
|
20553
|
+
* Preferred cloning provider; the platform chooses one when omitted.
|
|
20554
|
+
*/
|
|
20555
|
+
provider?: string;
|
|
20556
|
+
};
|
|
20557
|
+
export type MediaVoiceDesignCreateInput = {
|
|
20558
|
+
/**
|
|
20559
|
+
* Display name of the voice; a later rename keeps the same voice id.
|
|
20560
|
+
*/
|
|
20561
|
+
name: string;
|
|
20562
|
+
/**
|
|
20563
|
+
* Language the voice speaks; use the language the preview was designed in.
|
|
20564
|
+
*/
|
|
20565
|
+
language: string;
|
|
20566
|
+
/**
|
|
20567
|
+
* Preview audio asset id produced by a voice-design run of this library. Its voice.design generation record is what makes the voice generated; an uploaded recording is refused here.
|
|
20568
|
+
*/
|
|
20569
|
+
design_asset_id: MediaAssetId;
|
|
20570
|
+
/**
|
|
20571
|
+
* Free-form string labels carried onto the usage event for this voice.
|
|
20572
|
+
*/
|
|
20573
|
+
labels?: {
|
|
20574
|
+
[key: string]: string;
|
|
20575
|
+
};
|
|
20576
|
+
/**
|
|
20577
|
+
* Caller’s own note about the voice, stored on it and returned as description.
|
|
20578
|
+
*/
|
|
20579
|
+
description?: string;
|
|
20580
|
+
};
|
|
20451
20581
|
/**
|
|
20452
20582
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
20453
20583
|
*/
|
|
@@ -21162,6 +21292,77 @@ export type RegistryVersion = {
|
|
|
21162
21292
|
*/
|
|
21163
21293
|
create_time: string;
|
|
21164
21294
|
};
|
|
21295
|
+
/**
|
|
21296
|
+
* 一段提交历史。
|
|
21297
|
+
*/
|
|
21298
|
+
export type RegistryGitLog = {
|
|
21299
|
+
/**
|
|
21300
|
+
* 对象类型标记,固定为 registry.git.log。
|
|
21301
|
+
*/
|
|
21302
|
+
object: string;
|
|
21303
|
+
/**
|
|
21304
|
+
* 这次读的引用;省略时是包的默认分支。
|
|
21305
|
+
*/
|
|
21306
|
+
ref: string;
|
|
21307
|
+
/**
|
|
21308
|
+
* 这一页的提交,最新的在前;空数组表示这个引用没有提交。
|
|
21309
|
+
*/
|
|
21310
|
+
commits: Array<RegistryGitCommit>;
|
|
21311
|
+
/**
|
|
21312
|
+
* 是否还有下一页(用 offset 翻页)。
|
|
21313
|
+
*/
|
|
21314
|
+
has_more: boolean;
|
|
21315
|
+
};
|
|
21316
|
+
/**
|
|
21317
|
+
* 一个 git 提交。
|
|
21318
|
+
*/
|
|
21319
|
+
export type RegistryGitCommit = {
|
|
21320
|
+
/**
|
|
21321
|
+
* 对象类型标记,固定为 registry.git.commit。
|
|
21322
|
+
*/
|
|
21323
|
+
object: string;
|
|
21324
|
+
/**
|
|
21325
|
+
* 提交的对象 id。
|
|
21326
|
+
*/
|
|
21327
|
+
sha: string;
|
|
21328
|
+
/**
|
|
21329
|
+
* 提交信息原文,含换行。
|
|
21330
|
+
*/
|
|
21331
|
+
message: string;
|
|
21332
|
+
/**
|
|
21333
|
+
* 作者名;仓库没有给出名字时是空串。
|
|
21334
|
+
*/
|
|
21335
|
+
author: string;
|
|
21336
|
+
/**
|
|
21337
|
+
* 作者邮箱;仓库给了才有。
|
|
21338
|
+
*/
|
|
21339
|
+
author_email?: string;
|
|
21340
|
+
/**
|
|
21341
|
+
* 提交时间的 RFC 3339 时间戳;后端没给时是空串。
|
|
21342
|
+
*/
|
|
21343
|
+
committed_at: string;
|
|
21344
|
+
/**
|
|
21345
|
+
* 父提交的对象 id,按顺序。
|
|
21346
|
+
*/
|
|
21347
|
+
parents: Array<string>;
|
|
21348
|
+
};
|
|
21349
|
+
/**
|
|
21350
|
+
* 一个树的条目清单。
|
|
21351
|
+
*/
|
|
21352
|
+
export type RegistryGitTree = {
|
|
21353
|
+
/**
|
|
21354
|
+
* 对象类型标记,固定为 registry.git.tree。
|
|
21355
|
+
*/
|
|
21356
|
+
object: string;
|
|
21357
|
+
/**
|
|
21358
|
+
* 读的树对象 id。
|
|
21359
|
+
*/
|
|
21360
|
+
sha: string;
|
|
21361
|
+
/**
|
|
21362
|
+
* 这个树的条目,只列这一层,不递归。
|
|
21363
|
+
*/
|
|
21364
|
+
entries: Array<RegistryGitTreeEntry>;
|
|
21365
|
+
};
|
|
21165
21366
|
/**
|
|
21166
21367
|
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
21167
21368
|
*/
|
|
@@ -24226,7 +24427,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24226
24427
|
*/
|
|
24227
24428
|
value?: string;
|
|
24228
24429
|
/**
|
|
24229
|
-
* Allowed destinations for the secret.
|
|
24430
|
+
* Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration, leaving the credential for name-based resolution only — host-based redemption never matches. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.
|
|
24230
24431
|
*/
|
|
24231
24432
|
allowed_hosts?: Array<string>;
|
|
24232
24433
|
/**
|
|
@@ -36647,6 +36848,10 @@ export type MediaProvenance = {
|
|
|
36647
36848
|
* Model that performed the operation, as the model identifier returned by the model API.
|
|
36648
36849
|
*/
|
|
36649
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;
|
|
36650
36855
|
/**
|
|
36651
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.
|
|
36652
36857
|
*/
|
|
@@ -37306,7 +37511,7 @@ export type MediaLineageNode = {
|
|
|
37306
37511
|
/**
|
|
37307
37512
|
* What a reference asset contributes to the generated or edited result.
|
|
37308
37513
|
*/
|
|
37309
|
-
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
|
|
37514
|
+
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video' | 'voice';
|
|
37310
37515
|
/**
|
|
37311
37516
|
* One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
|
|
37312
37517
|
*/
|
|
@@ -37529,6 +37734,7 @@ export type MediaHlsRendition = {
|
|
|
37529
37734
|
*/
|
|
37530
37735
|
state: MediaHlsRenditionState;
|
|
37531
37736
|
};
|
|
37737
|
+
export type MediaVoiceConsentId = string;
|
|
37532
37738
|
/**
|
|
37533
37739
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
37534
37740
|
*/
|
|
@@ -37714,6 +37920,31 @@ export type RegistryRegistryError = {
|
|
|
37714
37920
|
};
|
|
37715
37921
|
};
|
|
37716
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
|
+
};
|
|
37717
37948
|
/**
|
|
37718
37949
|
* 一个版本解压后的一个文件条目。
|
|
37719
37950
|
*/
|
|
@@ -47721,6 +47952,26 @@ export type RegistrySort = 'updated' | 'downloads';
|
|
|
47721
47952
|
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
47722
47953
|
*/
|
|
47723
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;
|
|
47724
47975
|
/**
|
|
47725
47976
|
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
47726
47977
|
*/
|
|
@@ -50370,6 +50621,10 @@ export type ApplyAgentVersionResponses = {
|
|
|
50370
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.
|
|
50371
50622
|
*/
|
|
50372
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;
|
|
50373
50628
|
/**
|
|
50374
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.
|
|
50375
50630
|
*/
|
|
@@ -51613,6 +51868,10 @@ export type UnarchiveAgentResponses = {
|
|
|
51613
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.
|
|
51614
51869
|
*/
|
|
51615
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;
|
|
51616
51875
|
/**
|
|
51617
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.
|
|
51618
51877
|
*/
|
|
@@ -55261,25 +55520,33 @@ export type ComputersFilesContentResponses = {
|
|
|
55261
55520
|
206: Blob | File;
|
|
55262
55521
|
};
|
|
55263
55522
|
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
55264
|
-
export type
|
|
55523
|
+
export type PreviewComputerFileData = {
|
|
55265
55524
|
body?: never;
|
|
55266
55525
|
path: {
|
|
55267
55526
|
/**
|
|
55268
|
-
* Computer id
|
|
55527
|
+
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
55269
55528
|
*/
|
|
55270
55529
|
computer_id: string;
|
|
55271
55530
|
};
|
|
55272
55531
|
query: {
|
|
55273
55532
|
/**
|
|
55274
|
-
* Absolute path of the
|
|
55533
|
+
* Absolute path of the file on the computer, or a /workspace/ relative path.
|
|
55275
55534
|
*/
|
|
55276
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';
|
|
55277
55544
|
};
|
|
55278
|
-
url: '/agent/v1/computers/{computer_id}/files/
|
|
55545
|
+
url: '/agent/v1/computers/{computer_id}/files/preview';
|
|
55279
55546
|
};
|
|
55280
|
-
export type
|
|
55547
|
+
export type PreviewComputerFileErrors = {
|
|
55281
55548
|
/**
|
|
55282
|
-
*
|
|
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.
|
|
55283
55550
|
*/
|
|
55284
55551
|
400: {
|
|
55285
55552
|
type: 'error';
|
|
@@ -55371,7 +55638,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
55371
55638
|
request_id: string;
|
|
55372
55639
|
};
|
|
55373
55640
|
/**
|
|
55374
|
-
*
|
|
55641
|
+
* STALE_DIGEST: the file changed while its product was read; ask again.
|
|
55375
55642
|
*/
|
|
55376
55643
|
409: {
|
|
55377
55644
|
type: 'error';
|
|
@@ -55394,7 +55661,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
55394
55661
|
request_id: string;
|
|
55395
55662
|
};
|
|
55396
55663
|
/**
|
|
55397
|
-
*
|
|
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.
|
|
55398
55665
|
*/
|
|
55399
55666
|
413: {
|
|
55400
55667
|
type: 'error';
|
|
@@ -55463,7 +55730,7 @@ export type ComputersFilesConvertErrors = {
|
|
|
55463
55730
|
request_id: string;
|
|
55464
55731
|
};
|
|
55465
55732
|
/**
|
|
55466
|
-
*
|
|
55733
|
+
* PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
|
|
55467
55734
|
*/
|
|
55468
55735
|
503: {
|
|
55469
55736
|
type: 'error';
|
|
@@ -55486,46 +55753,74 @@ export type ComputersFilesConvertErrors = {
|
|
|
55486
55753
|
request_id: string;
|
|
55487
55754
|
};
|
|
55488
55755
|
};
|
|
55489
|
-
export type
|
|
55490
|
-
export type
|
|
55756
|
+
export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
|
|
55757
|
+
export type PreviewComputerFileResponses = {
|
|
55491
55758
|
/**
|
|
55492
|
-
* The
|
|
55759
|
+
* The preview product, or the fallback that sends the caller to the content door.
|
|
55493
55760
|
*/
|
|
55494
55761
|
200: {
|
|
55495
55762
|
/**
|
|
55496
|
-
* The
|
|
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.
|
|
55497
55764
|
*/
|
|
55498
|
-
|
|
55765
|
+
variant: 'image' | 'pdf' | 'text' | 'original';
|
|
55499
55766
|
/**
|
|
55500
|
-
*
|
|
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.
|
|
55501
55768
|
*/
|
|
55502
|
-
|
|
55769
|
+
version?: string;
|
|
55503
55770
|
/**
|
|
55504
|
-
*
|
|
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.
|
|
55505
55792
|
*/
|
|
55506
55793
|
cached: boolean;
|
|
55507
|
-
};
|
|
55508
|
-
};
|
|
55509
|
-
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
55510
|
-
export type ConnectComputerData = {
|
|
55511
|
-
body?: {
|
|
55512
55794
|
/**
|
|
55513
|
-
*
|
|
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.
|
|
55514
55796
|
*/
|
|
55515
|
-
|
|
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;
|
|
55516
55802
|
};
|
|
55803
|
+
};
|
|
55804
|
+
export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
|
|
55805
|
+
export type ComputersFilesConvertData = {
|
|
55806
|
+
body?: never;
|
|
55517
55807
|
path: {
|
|
55518
55808
|
/**
|
|
55519
55809
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55520
55810
|
*/
|
|
55521
55811
|
computer_id: string;
|
|
55522
55812
|
};
|
|
55523
|
-
query
|
|
55524
|
-
|
|
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';
|
|
55525
55820
|
};
|
|
55526
|
-
export type
|
|
55821
|
+
export type ComputersFilesConvertErrors = {
|
|
55527
55822
|
/**
|
|
55528
|
-
*
|
|
55823
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55529
55824
|
*/
|
|
55530
55825
|
400: {
|
|
55531
55826
|
type: 'error';
|
|
@@ -55732,57 +56027,303 @@ export type ConnectComputerErrors = {
|
|
|
55732
56027
|
request_id: string;
|
|
55733
56028
|
};
|
|
55734
56029
|
};
|
|
55735
|
-
export type
|
|
55736
|
-
export type
|
|
56030
|
+
export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
|
|
56031
|
+
export type ComputersFilesConvertResponses = {
|
|
55737
56032
|
/**
|
|
55738
|
-
*
|
|
56033
|
+
* The converted PDF as base64
|
|
55739
56034
|
*/
|
|
55740
56035
|
200: {
|
|
55741
56036
|
/**
|
|
55742
|
-
*
|
|
55743
|
-
*/
|
|
55744
|
-
sandbox_id: string;
|
|
55745
|
-
/**
|
|
55746
|
-
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
55747
|
-
*/
|
|
55748
|
-
envd_access_token: string;
|
|
55749
|
-
/**
|
|
55750
|
-
* Sandbox template the computer's sandbox was created from.
|
|
56037
|
+
* The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
|
|
55751
56038
|
*/
|
|
55752
|
-
|
|
56039
|
+
data: string;
|
|
55753
56040
|
/**
|
|
55754
|
-
*
|
|
56041
|
+
* Media type of the decoded bytes; always application/pdf.
|
|
55755
56042
|
*/
|
|
55756
|
-
|
|
56043
|
+
mime: 'application/pdf';
|
|
55757
56044
|
/**
|
|
55758
|
-
*
|
|
56045
|
+
* true when an earlier conversion of the same file content was reused.
|
|
55759
56046
|
*/
|
|
55760
|
-
|
|
56047
|
+
cached: boolean;
|
|
56048
|
+
};
|
|
56049
|
+
};
|
|
56050
|
+
export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
|
|
56051
|
+
export type ConnectComputerData = {
|
|
56052
|
+
body?: {
|
|
55761
56053
|
/**
|
|
55762
|
-
*
|
|
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.
|
|
55763
56055
|
*/
|
|
55764
|
-
|
|
56056
|
+
need?: 'light' | 'heavy';
|
|
55765
56057
|
};
|
|
55766
|
-
};
|
|
55767
|
-
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
55768
|
-
export type RenewComputerLeaseData = {
|
|
55769
|
-
body?: never;
|
|
55770
56058
|
path: {
|
|
55771
56059
|
/**
|
|
55772
56060
|
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
55773
56061
|
*/
|
|
55774
56062
|
computer_id: string;
|
|
55775
|
-
/**
|
|
55776
|
-
* lease_id from the connect response.
|
|
55777
|
-
*/
|
|
55778
|
-
lease_id: string;
|
|
55779
56063
|
};
|
|
55780
56064
|
query?: never;
|
|
55781
|
-
url: '/agent/v1/computers/{computer_id}/
|
|
56065
|
+
url: '/agent/v1/computers/{computer_id}/connect';
|
|
55782
56066
|
};
|
|
55783
|
-
export type
|
|
56067
|
+
export type ConnectComputerErrors = {
|
|
55784
56068
|
/**
|
|
55785
|
-
*
|
|
56069
|
+
* INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
|
|
56070
|
+
*/
|
|
56071
|
+
400: {
|
|
56072
|
+
type: 'error';
|
|
56073
|
+
error: {
|
|
56074
|
+
/**
|
|
56075
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56076
|
+
*/
|
|
56077
|
+
type: string;
|
|
56078
|
+
message: string;
|
|
56079
|
+
code: string;
|
|
56080
|
+
retryable: boolean;
|
|
56081
|
+
/**
|
|
56082
|
+
* How to recover, for computer failures.
|
|
56083
|
+
*/
|
|
56084
|
+
hint?: string;
|
|
56085
|
+
};
|
|
56086
|
+
/**
|
|
56087
|
+
* Equals the X-Request-Id response header.
|
|
56088
|
+
*/
|
|
56089
|
+
request_id: string;
|
|
56090
|
+
};
|
|
56091
|
+
/**
|
|
56092
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56093
|
+
*/
|
|
56094
|
+
401: {
|
|
56095
|
+
type: 'error';
|
|
56096
|
+
error: {
|
|
56097
|
+
/**
|
|
56098
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56099
|
+
*/
|
|
56100
|
+
type: string;
|
|
56101
|
+
message: string;
|
|
56102
|
+
code: string;
|
|
56103
|
+
retryable: boolean;
|
|
56104
|
+
/**
|
|
56105
|
+
* How to recover, for computer failures.
|
|
56106
|
+
*/
|
|
56107
|
+
hint?: string;
|
|
56108
|
+
};
|
|
56109
|
+
/**
|
|
56110
|
+
* Equals the X-Request-Id response header.
|
|
56111
|
+
*/
|
|
56112
|
+
request_id: string;
|
|
56113
|
+
};
|
|
56114
|
+
/**
|
|
56115
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56116
|
+
*/
|
|
56117
|
+
403: {
|
|
56118
|
+
type: 'error';
|
|
56119
|
+
error: {
|
|
56120
|
+
/**
|
|
56121
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56122
|
+
*/
|
|
56123
|
+
type: string;
|
|
56124
|
+
message: string;
|
|
56125
|
+
code: string;
|
|
56126
|
+
retryable: boolean;
|
|
56127
|
+
/**
|
|
56128
|
+
* How to recover, for computer failures.
|
|
56129
|
+
*/
|
|
56130
|
+
hint?: string;
|
|
56131
|
+
};
|
|
56132
|
+
/**
|
|
56133
|
+
* Equals the X-Request-Id response header.
|
|
56134
|
+
*/
|
|
56135
|
+
request_id: string;
|
|
56136
|
+
};
|
|
56137
|
+
/**
|
|
56138
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
56139
|
+
*/
|
|
56140
|
+
404: {
|
|
56141
|
+
type: 'error';
|
|
56142
|
+
error: {
|
|
56143
|
+
/**
|
|
56144
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56145
|
+
*/
|
|
56146
|
+
type: string;
|
|
56147
|
+
message: string;
|
|
56148
|
+
code: string;
|
|
56149
|
+
retryable: boolean;
|
|
56150
|
+
/**
|
|
56151
|
+
* How to recover, for computer failures.
|
|
56152
|
+
*/
|
|
56153
|
+
hint?: string;
|
|
56154
|
+
};
|
|
56155
|
+
/**
|
|
56156
|
+
* Equals the X-Request-Id response header.
|
|
56157
|
+
*/
|
|
56158
|
+
request_id: string;
|
|
56159
|
+
};
|
|
56160
|
+
/**
|
|
56161
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56162
|
+
*/
|
|
56163
|
+
409: {
|
|
56164
|
+
type: 'error';
|
|
56165
|
+
error: {
|
|
56166
|
+
/**
|
|
56167
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56168
|
+
*/
|
|
56169
|
+
type: string;
|
|
56170
|
+
message: string;
|
|
56171
|
+
code: string;
|
|
56172
|
+
retryable: boolean;
|
|
56173
|
+
/**
|
|
56174
|
+
* How to recover, for computer failures.
|
|
56175
|
+
*/
|
|
56176
|
+
hint?: string;
|
|
56177
|
+
};
|
|
56178
|
+
/**
|
|
56179
|
+
* Equals the X-Request-Id response header.
|
|
56180
|
+
*/
|
|
56181
|
+
request_id: string;
|
|
56182
|
+
};
|
|
56183
|
+
/**
|
|
56184
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56185
|
+
*/
|
|
56186
|
+
413: {
|
|
56187
|
+
type: 'error';
|
|
56188
|
+
error: {
|
|
56189
|
+
/**
|
|
56190
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56191
|
+
*/
|
|
56192
|
+
type: string;
|
|
56193
|
+
message: string;
|
|
56194
|
+
code: string;
|
|
56195
|
+
retryable: boolean;
|
|
56196
|
+
/**
|
|
56197
|
+
* How to recover, for computer failures.
|
|
56198
|
+
*/
|
|
56199
|
+
hint?: string;
|
|
56200
|
+
};
|
|
56201
|
+
/**
|
|
56202
|
+
* Equals the X-Request-Id response header.
|
|
56203
|
+
*/
|
|
56204
|
+
request_id: string;
|
|
56205
|
+
};
|
|
56206
|
+
/**
|
|
56207
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56208
|
+
*/
|
|
56209
|
+
429: {
|
|
56210
|
+
type: 'error';
|
|
56211
|
+
error: {
|
|
56212
|
+
/**
|
|
56213
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56214
|
+
*/
|
|
56215
|
+
type: string;
|
|
56216
|
+
message: string;
|
|
56217
|
+
code: string;
|
|
56218
|
+
retryable: boolean;
|
|
56219
|
+
/**
|
|
56220
|
+
* How to recover, for computer failures.
|
|
56221
|
+
*/
|
|
56222
|
+
hint?: string;
|
|
56223
|
+
};
|
|
56224
|
+
/**
|
|
56225
|
+
* Equals the X-Request-Id response header.
|
|
56226
|
+
*/
|
|
56227
|
+
request_id: string;
|
|
56228
|
+
};
|
|
56229
|
+
/**
|
|
56230
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56231
|
+
*/
|
|
56232
|
+
500: {
|
|
56233
|
+
type: 'error';
|
|
56234
|
+
error: {
|
|
56235
|
+
/**
|
|
56236
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56237
|
+
*/
|
|
56238
|
+
type: string;
|
|
56239
|
+
message: string;
|
|
56240
|
+
code: string;
|
|
56241
|
+
retryable: boolean;
|
|
56242
|
+
/**
|
|
56243
|
+
* How to recover, for computer failures.
|
|
56244
|
+
*/
|
|
56245
|
+
hint?: string;
|
|
56246
|
+
};
|
|
56247
|
+
/**
|
|
56248
|
+
* Equals the X-Request-Id response header.
|
|
56249
|
+
*/
|
|
56250
|
+
request_id: string;
|
|
56251
|
+
};
|
|
56252
|
+
/**
|
|
56253
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56254
|
+
*/
|
|
56255
|
+
503: {
|
|
56256
|
+
type: 'error';
|
|
56257
|
+
error: {
|
|
56258
|
+
/**
|
|
56259
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56260
|
+
*/
|
|
56261
|
+
type: string;
|
|
56262
|
+
message: string;
|
|
56263
|
+
code: string;
|
|
56264
|
+
retryable: boolean;
|
|
56265
|
+
/**
|
|
56266
|
+
* How to recover, for computer failures.
|
|
56267
|
+
*/
|
|
56268
|
+
hint?: string;
|
|
56269
|
+
};
|
|
56270
|
+
/**
|
|
56271
|
+
* Equals the X-Request-Id response header.
|
|
56272
|
+
*/
|
|
56273
|
+
request_id: string;
|
|
56274
|
+
};
|
|
56275
|
+
};
|
|
56276
|
+
export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
|
|
56277
|
+
export type ConnectComputerResponses = {
|
|
56278
|
+
/**
|
|
56279
|
+
* Computer result
|
|
56280
|
+
*/
|
|
56281
|
+
200: {
|
|
56282
|
+
/**
|
|
56283
|
+
* Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
|
|
56284
|
+
*/
|
|
56285
|
+
sandbox_id: string;
|
|
56286
|
+
/**
|
|
56287
|
+
* Access token for the sandbox's environment daemon, returned by the connect call; treat it as a secret.
|
|
56288
|
+
*/
|
|
56289
|
+
envd_access_token: string;
|
|
56290
|
+
/**
|
|
56291
|
+
* Sandbox template the computer's sandbox was created from.
|
|
56292
|
+
*/
|
|
56293
|
+
template_id: string;
|
|
56294
|
+
/**
|
|
56295
|
+
* Machine the connection reached: light (the always-present file machine) or heavy (the full machine started on demand and kept while leases are held).
|
|
56296
|
+
*/
|
|
56297
|
+
tier: 'light' | 'heavy';
|
|
56298
|
+
/**
|
|
56299
|
+
* Id of the lease that keeps this connection's machine in service; renew it while the connection is open and release it on close. Null when no lease exists.
|
|
56300
|
+
*/
|
|
56301
|
+
lease_id: string | null;
|
|
56302
|
+
/**
|
|
56303
|
+
* Time the lease lapses unless renewed, as an ISO 8601 timestamp; renew at about a third of the time remaining.
|
|
56304
|
+
*/
|
|
56305
|
+
lease_expires_at: string | null;
|
|
56306
|
+
};
|
|
56307
|
+
};
|
|
56308
|
+
export type ConnectComputerResponse = ConnectComputerResponses[keyof ConnectComputerResponses];
|
|
56309
|
+
export type RenewComputerLeaseData = {
|
|
56310
|
+
body?: never;
|
|
56311
|
+
path: {
|
|
56312
|
+
/**
|
|
56313
|
+
* Computer id (cmp_...), as returned by computers.create or computers.list.
|
|
56314
|
+
*/
|
|
56315
|
+
computer_id: string;
|
|
56316
|
+
/**
|
|
56317
|
+
* lease_id from the connect response.
|
|
56318
|
+
*/
|
|
56319
|
+
lease_id: string;
|
|
56320
|
+
};
|
|
56321
|
+
query?: never;
|
|
56322
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew';
|
|
56323
|
+
};
|
|
56324
|
+
export type RenewComputerLeaseErrors = {
|
|
56325
|
+
/**
|
|
56326
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55786
56327
|
*/
|
|
55787
56328
|
400: {
|
|
55788
56329
|
type: 'error';
|
|
@@ -58313,6 +58854,1731 @@ export type ForkSessionResponses = {
|
|
|
58313
58854
|
};
|
|
58314
58855
|
};
|
|
58315
58856
|
export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
|
|
58857
|
+
export type RenameSessionData = {
|
|
58858
|
+
body: {
|
|
58859
|
+
/**
|
|
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.
|
|
58861
|
+
*/
|
|
58862
|
+
name: string;
|
|
58863
|
+
};
|
|
58864
|
+
path: {
|
|
58865
|
+
/**
|
|
58866
|
+
* Session id from session creation or listing. The reserved name main is not renameable.
|
|
58867
|
+
*/
|
|
58868
|
+
session_id: string;
|
|
58869
|
+
};
|
|
58870
|
+
query?: never;
|
|
58871
|
+
url: '/agent/v1/sessions/{session_id}/name';
|
|
58872
|
+
};
|
|
58873
|
+
export type RenameSessionErrors = {
|
|
58874
|
+
/**
|
|
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.
|
|
58876
|
+
*/
|
|
58877
|
+
400: unknown;
|
|
58878
|
+
/**
|
|
58879
|
+
* Authentication required.
|
|
58880
|
+
*/
|
|
58881
|
+
401: unknown;
|
|
58882
|
+
/**
|
|
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.
|
|
58884
|
+
*/
|
|
58885
|
+
403: AgentError;
|
|
58886
|
+
/**
|
|
58887
|
+
* Session not found or not writable by this caller.
|
|
58888
|
+
*/
|
|
58889
|
+
404: unknown;
|
|
58890
|
+
/**
|
|
58891
|
+
* Agent service failed
|
|
58892
|
+
*/
|
|
58893
|
+
502: unknown;
|
|
58894
|
+
/**
|
|
58895
|
+
* Agent service unavailable
|
|
58896
|
+
*/
|
|
58897
|
+
503: unknown;
|
|
58898
|
+
};
|
|
58899
|
+
export type RenameSessionError = RenameSessionErrors[keyof RenameSessionErrors];
|
|
58900
|
+
export type RenameSessionResponses = {
|
|
58901
|
+
/**
|
|
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];
|
|
58316
60582
|
export type UpdateSessionAgentVersionData = {
|
|
58317
60583
|
/**
|
|
58318
60584
|
* The version to move the session to; omit the body to move to the agent's active version.
|
|
@@ -63763,7 +66029,7 @@ export type ListModelsData = {
|
|
|
63763
66029
|
/**
|
|
63764
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.
|
|
63765
66031
|
*/
|
|
63766
|
-
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.media.process' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
|
|
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'>;
|
|
63767
66033
|
/**
|
|
63768
66034
|
* Filter by one or more model types (comma-separated).
|
|
63769
66035
|
*/
|
|
@@ -73568,6 +75834,10 @@ export type AgentsListResponses = {
|
|
|
73568
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.
|
|
73569
75835
|
*/
|
|
73570
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;
|
|
73571
75841
|
/**
|
|
73572
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.
|
|
73573
75843
|
*/
|
|
@@ -73736,7 +76006,7 @@ export type AgentsCreateData = {
|
|
|
73736
76006
|
enabled?: boolean;
|
|
73737
76007
|
}>;
|
|
73738
76008
|
/**
|
|
73739
|
-
* Immutable agent kind. general
|
|
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.
|
|
73740
76010
|
*/
|
|
73741
76011
|
kind?: 'general' | 'service' | 'assume';
|
|
73742
76012
|
/**
|
|
@@ -74764,6 +77034,10 @@ export type AgentsCreateResponses = {
|
|
|
74764
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.
|
|
74765
77035
|
*/
|
|
74766
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;
|
|
74767
77041
|
/**
|
|
74768
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.
|
|
74769
77043
|
*/
|
|
@@ -75418,6 +77692,10 @@ export type AgentsRetrieveResponses = {
|
|
|
75418
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.
|
|
75419
77693
|
*/
|
|
75420
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;
|
|
75421
77699
|
/**
|
|
75422
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.
|
|
75423
77701
|
*/
|
|
@@ -75595,7 +77873,7 @@ export type AgentsUpdateData = {
|
|
|
75595
77873
|
enabled?: boolean;
|
|
75596
77874
|
}> | null;
|
|
75597
77875
|
/**
|
|
75598
|
-
* Immutable agent kind. general
|
|
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.
|
|
75599
77877
|
*/
|
|
75600
77878
|
kind?: 'general' | 'service' | 'assume';
|
|
75601
77879
|
/**
|
|
@@ -76636,6 +78914,10 @@ export type AgentsUpdateResponses = {
|
|
|
76636
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.
|
|
76637
78915
|
*/
|
|
76638
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;
|
|
76639
78921
|
/**
|
|
76640
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.
|
|
76641
78923
|
*/
|
|
@@ -77254,6 +79536,10 @@ export type AgentsArchiveResponses = {
|
|
|
77254
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.
|
|
77255
79537
|
*/
|
|
77256
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;
|
|
77257
79543
|
/**
|
|
77258
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.
|
|
77259
79545
|
*/
|
|
@@ -77912,6 +80198,10 @@ export type AgentsVersionsListResponses = {
|
|
|
77912
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.
|
|
77913
80199
|
*/
|
|
77914
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;
|
|
77915
80205
|
/**
|
|
77916
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.
|
|
77917
80207
|
*/
|
|
@@ -83535,6 +85825,12 @@ export type ApplicationListVersionsResponses = {
|
|
|
83535
85825
|
export type ApplicationListVersionsResponse = ApplicationListVersionsResponses[keyof ApplicationListVersionsResponses];
|
|
83536
85826
|
export type ApplicationCreateVersionData = {
|
|
83537
85827
|
body: ApplicationCreateVersionInput;
|
|
85828
|
+
headers?: {
|
|
85829
|
+
/**
|
|
85830
|
+
* Optional; 1-256 characters. Within 24 hours, the same key with the same body replays the first answer (same version, same deployment) instead of creating a second version; the same key with a different body is refused with INVALID_PARAMS. A create still in progress answers 409 IDEMPOTENCY_IN_FLIGHT, so retry it shortly.
|
|
85831
|
+
*/
|
|
85832
|
+
'Idempotency-Key'?: string;
|
|
85833
|
+
};
|
|
83538
85834
|
path: {
|
|
83539
85835
|
/**
|
|
83540
85836
|
* Worker ID (wkr_…).
|
|
@@ -97200,7 +99496,7 @@ export type DevopsChangesAbandonData = {
|
|
|
97200
99496
|
};
|
|
97201
99497
|
export type DevopsChangesAbandonErrors = {
|
|
97202
99498
|
/**
|
|
97203
|
-
* INVALID_ARGUMENT means reason is missing or empty
|
|
99499
|
+
* INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
|
|
97204
99500
|
*/
|
|
97205
99501
|
400: DevopsDevOpsError;
|
|
97206
99502
|
/**
|
|
@@ -97590,6 +99886,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
|
|
|
97590
99886
|
200: DevopsPullRequest;
|
|
97591
99887
|
};
|
|
97592
99888
|
export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
|
|
99889
|
+
export type DevopsPullRequestsCloseData = {
|
|
99890
|
+
body: DevopsPullRequestCloseRequest;
|
|
99891
|
+
path: {
|
|
99892
|
+
/**
|
|
99893
|
+
* 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.
|
|
99894
|
+
*/
|
|
99895
|
+
id: string;
|
|
99896
|
+
};
|
|
99897
|
+
query?: never;
|
|
99898
|
+
url: '/devops/v1/pull-requests/{id}:close';
|
|
99899
|
+
};
|
|
99900
|
+
export type DevopsPullRequestsCloseErrors = {
|
|
99901
|
+
/**
|
|
99902
|
+
* 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.
|
|
99903
|
+
*/
|
|
99904
|
+
400: DevopsDevOpsError;
|
|
99905
|
+
/**
|
|
99906
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
99907
|
+
*/
|
|
99908
|
+
401: DevopsDevOpsError;
|
|
99909
|
+
/**
|
|
99910
|
+
* 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.
|
|
99911
|
+
*/
|
|
99912
|
+
403: DevopsDevOpsError;
|
|
99913
|
+
/**
|
|
99914
|
+
* 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.
|
|
99915
|
+
*/
|
|
99916
|
+
404: DevopsDevOpsError;
|
|
99917
|
+
/**
|
|
99918
|
+
* 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.
|
|
99919
|
+
*/
|
|
99920
|
+
409: DevopsDevOpsError;
|
|
99921
|
+
/**
|
|
99922
|
+
* 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.
|
|
99923
|
+
*/
|
|
99924
|
+
500: DevopsDevOpsError;
|
|
99925
|
+
};
|
|
99926
|
+
export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
|
|
99927
|
+
export type DevopsPullRequestsCloseResponses = {
|
|
99928
|
+
/**
|
|
99929
|
+
* 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.
|
|
99930
|
+
*/
|
|
99931
|
+
200: DevopsPullRequest;
|
|
99932
|
+
};
|
|
99933
|
+
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
97593
99934
|
export type DevopsConnectionsListData = {
|
|
97594
99935
|
body?: never;
|
|
97595
99936
|
path?: never;
|
|
@@ -100105,6 +102446,10 @@ export type MediaCreateLibraryData = {
|
|
|
100105
102446
|
* Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
|
|
100106
102447
|
*/
|
|
100107
102448
|
models?: MediaMediaModelsInput;
|
|
102449
|
+
/**
|
|
102450
|
+
* 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.
|
|
102451
|
+
*/
|
|
102452
|
+
default_tier?: MediaMediaTier;
|
|
100108
102453
|
/**
|
|
100109
102454
|
* Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
|
|
100110
102455
|
*/
|
|
@@ -100432,6 +102777,10 @@ export type MediaUpdateLibraryData = {
|
|
|
100432
102777
|
* Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
|
|
100433
102778
|
*/
|
|
100434
102779
|
models?: MediaMediaModelsInput;
|
|
102780
|
+
/**
|
|
102781
|
+
* 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.
|
|
102782
|
+
*/
|
|
102783
|
+
default_tier?: MediaMediaTier;
|
|
100435
102784
|
/**
|
|
100436
102785
|
* Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
|
|
100437
102786
|
*/
|
|
@@ -102705,9 +105054,10 @@ export type MediaGenerateImageData = {
|
|
|
102705
105054
|
*/
|
|
102706
105055
|
seed?: number;
|
|
102707
105056
|
/**
|
|
102708
|
-
* Model with image-generation capability; omit it to use the library default image model.
|
|
105057
|
+
* Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
102709
105058
|
*/
|
|
102710
105059
|
model?: string;
|
|
105060
|
+
tier?: MediaMediaTier;
|
|
102711
105061
|
/**
|
|
102712
105062
|
* Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
102713
105063
|
*/
|
|
@@ -102856,9 +105206,10 @@ export type MediaGenerateVideoData = {
|
|
|
102856
105206
|
*/
|
|
102857
105207
|
seed?: number;
|
|
102858
105208
|
/**
|
|
102859
|
-
* Model with video-generation capability; omit it to use the library default video model.
|
|
105209
|
+
* Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
102860
105210
|
*/
|
|
102861
105211
|
model?: string;
|
|
105212
|
+
tier?: MediaMediaTier;
|
|
102862
105213
|
/**
|
|
102863
105214
|
* Folder the produced asset is filed under; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
102864
105215
|
*/
|
|
@@ -102955,9 +105306,10 @@ export type MediaEditAssetData = {
|
|
|
102955
105306
|
*/
|
|
102956
105307
|
operation: MediaEditOperation;
|
|
102957
105308
|
/**
|
|
102958
|
-
* Model that performs the edit; omit it to use the library default image model.
|
|
105309
|
+
* Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter.
|
|
102959
105310
|
*/
|
|
102960
105311
|
model?: string;
|
|
105312
|
+
tier?: MediaMediaTier;
|
|
102961
105313
|
/**
|
|
102962
105314
|
* Folder the produced asset is filed under; defaults to the source asset’s folder. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
102963
105315
|
*/
|
|
@@ -102992,7 +105344,7 @@ export type MediaEditAssetData = {
|
|
|
102992
105344
|
};
|
|
102993
105345
|
export type MediaEditAssetErrors = {
|
|
102994
105346
|
/**
|
|
102995
|
-
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync and
|
|
105347
|
+
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
|
|
102996
105348
|
*/
|
|
102997
105349
|
400: MediaMediaError;
|
|
102998
105350
|
/**
|
|
@@ -103940,40 +106292,213 @@ export type MediaGetHlsRenditionsErrors = {
|
|
|
103940
106292
|
*/
|
|
103941
106293
|
503: MediaMediaError;
|
|
103942
106294
|
};
|
|
103943
|
-
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
103944
|
-
export type MediaGetHlsRenditionsResponses = {
|
|
106295
|
+
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
106296
|
+
export type MediaGetHlsRenditionsResponses = {
|
|
106297
|
+
/**
|
|
106298
|
+
* Successful response.
|
|
106299
|
+
*/
|
|
106300
|
+
200: MediaHlsLadder;
|
|
106301
|
+
};
|
|
106302
|
+
export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
|
|
106303
|
+
export type MediaRequestHlsRenditionsData = {
|
|
106304
|
+
/**
|
|
106305
|
+
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
106306
|
+
*/
|
|
106307
|
+
body: {
|
|
106308
|
+
/**
|
|
106309
|
+
* 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.
|
|
106310
|
+
*/
|
|
106311
|
+
heights?: Array<480 | 720 | 1080>;
|
|
106312
|
+
};
|
|
106313
|
+
path: {
|
|
106314
|
+
/**
|
|
106315
|
+
* Library ID returned by creation.
|
|
106316
|
+
*/
|
|
106317
|
+
library_id: string;
|
|
106318
|
+
/**
|
|
106319
|
+
* 32-character asset ID.
|
|
106320
|
+
*/
|
|
106321
|
+
asset_id: string;
|
|
106322
|
+
};
|
|
106323
|
+
query?: never;
|
|
106324
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
106325
|
+
};
|
|
106326
|
+
export type MediaRequestHlsRenditionsErrors = {
|
|
106327
|
+
/**
|
|
106328
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
106329
|
+
*/
|
|
106330
|
+
400: MediaMediaError;
|
|
106331
|
+
/**
|
|
106332
|
+
* Request failed; see the error code reference.
|
|
106333
|
+
*/
|
|
106334
|
+
402: MediaMediaError;
|
|
106335
|
+
/**
|
|
106336
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
106337
|
+
*/
|
|
106338
|
+
403: MediaMediaError;
|
|
106339
|
+
/**
|
|
106340
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
106341
|
+
*/
|
|
106342
|
+
404: MediaMediaError;
|
|
106343
|
+
/**
|
|
106344
|
+
* Request failed; see the error code reference.
|
|
106345
|
+
*/
|
|
106346
|
+
409: MediaMediaError;
|
|
106347
|
+
/**
|
|
106348
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
106349
|
+
*/
|
|
106350
|
+
413: MediaMediaError;
|
|
106351
|
+
/**
|
|
106352
|
+
* This media format is unsupported; provide a supported format.
|
|
106353
|
+
*/
|
|
106354
|
+
415: MediaMediaError;
|
|
106355
|
+
/**
|
|
106356
|
+
* Request failed; see the error code reference.
|
|
106357
|
+
*/
|
|
106358
|
+
422: MediaMediaError;
|
|
106359
|
+
/**
|
|
106360
|
+
* A rate limit was reached; wait before retrying.
|
|
106361
|
+
*/
|
|
106362
|
+
429: MediaMediaError;
|
|
106363
|
+
/**
|
|
106364
|
+
* The requested operation is unsupported; choose a supported method.
|
|
106365
|
+
*/
|
|
106366
|
+
501: MediaMediaError;
|
|
106367
|
+
/**
|
|
106368
|
+
* Request failed; see the error code reference.
|
|
106369
|
+
*/
|
|
106370
|
+
502: MediaMediaError;
|
|
106371
|
+
/**
|
|
106372
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
106373
|
+
*/
|
|
106374
|
+
503: MediaMediaError;
|
|
106375
|
+
};
|
|
106376
|
+
export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
|
|
106377
|
+
export type MediaRequestHlsRenditionsResponses = {
|
|
103945
106378
|
/**
|
|
103946
106379
|
* Successful response.
|
|
103947
106380
|
*/
|
|
103948
|
-
|
|
106381
|
+
202: MediaHlsLadder;
|
|
103949
106382
|
};
|
|
103950
|
-
export type
|
|
103951
|
-
export type
|
|
106383
|
+
export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
|
|
106384
|
+
export type MediaCreateVoiceData = {
|
|
103952
106385
|
/**
|
|
103953
|
-
*
|
|
106386
|
+
* Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
|
|
103954
106387
|
*/
|
|
103955
|
-
body:
|
|
106388
|
+
body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
|
|
106389
|
+
headers?: {
|
|
103956
106390
|
/**
|
|
103957
|
-
*
|
|
106391
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
103958
106392
|
*/
|
|
103959
|
-
|
|
106393
|
+
'Idempotency-Key'?: string;
|
|
103960
106394
|
};
|
|
103961
106395
|
path: {
|
|
103962
106396
|
/**
|
|
103963
106397
|
* Library ID returned by creation.
|
|
103964
106398
|
*/
|
|
103965
106399
|
library_id: string;
|
|
106400
|
+
};
|
|
106401
|
+
query?: never;
|
|
106402
|
+
url: '/media/v1/libraries/{library_id}/voices';
|
|
106403
|
+
};
|
|
106404
|
+
export type MediaCreateVoiceErrors = {
|
|
106405
|
+
/**
|
|
106406
|
+
* Request failed; see the error code reference.
|
|
106407
|
+
*/
|
|
106408
|
+
400: MediaMediaError;
|
|
106409
|
+
/**
|
|
106410
|
+
* Request failed; see the error code reference.
|
|
106411
|
+
*/
|
|
106412
|
+
402: MediaMediaError;
|
|
106413
|
+
/**
|
|
106414
|
+
* Request failed; see the error code reference.
|
|
106415
|
+
*/
|
|
106416
|
+
403: MediaMediaError;
|
|
106417
|
+
/**
|
|
106418
|
+
* Request failed; see the error code reference.
|
|
106419
|
+
*/
|
|
106420
|
+
404: MediaMediaError;
|
|
106421
|
+
/**
|
|
106422
|
+
* Request failed; see the error code reference.
|
|
106423
|
+
*/
|
|
106424
|
+
409: MediaMediaError;
|
|
106425
|
+
/**
|
|
106426
|
+
* Request failed; see the error code reference.
|
|
106427
|
+
*/
|
|
106428
|
+
413: MediaMediaError;
|
|
106429
|
+
/**
|
|
106430
|
+
* Request failed; see the error code reference.
|
|
106431
|
+
*/
|
|
106432
|
+
415: MediaMediaError;
|
|
106433
|
+
/**
|
|
106434
|
+
* Request failed; see the error code reference.
|
|
106435
|
+
*/
|
|
106436
|
+
422: MediaMediaError;
|
|
106437
|
+
/**
|
|
106438
|
+
* Request failed; see the error code reference.
|
|
106439
|
+
*/
|
|
106440
|
+
429: MediaMediaError;
|
|
106441
|
+
/**
|
|
106442
|
+
* Request failed; see the error code reference.
|
|
106443
|
+
*/
|
|
106444
|
+
501: MediaMediaError;
|
|
106445
|
+
/**
|
|
106446
|
+
* Request failed; see the error code reference.
|
|
106447
|
+
*/
|
|
106448
|
+
502: MediaMediaError;
|
|
106449
|
+
/**
|
|
106450
|
+
* Request failed; see the error code reference.
|
|
106451
|
+
*/
|
|
106452
|
+
503: MediaMediaError;
|
|
106453
|
+
};
|
|
106454
|
+
export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
|
|
106455
|
+
export type MediaCreateVoiceResponses = {
|
|
106456
|
+
/**
|
|
106457
|
+
* Successful response.
|
|
106458
|
+
*/
|
|
106459
|
+
202: MediaJob;
|
|
106460
|
+
};
|
|
106461
|
+
export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
|
|
106462
|
+
export type MediaDesignVoiceData = {
|
|
106463
|
+
/**
|
|
106464
|
+
* One voice-design run: what the voice should sound like and the line the previews speak.
|
|
106465
|
+
*/
|
|
106466
|
+
body: {
|
|
103966
106467
|
/**
|
|
103967
|
-
*
|
|
106468
|
+
* Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
|
|
103968
106469
|
*/
|
|
103969
|
-
|
|
106470
|
+
description: string;
|
|
106471
|
+
/**
|
|
106472
|
+
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
106473
|
+
*/
|
|
106474
|
+
preview_text: string;
|
|
106475
|
+
/**
|
|
106476
|
+
* Language the previews speak: zh or en only.
|
|
106477
|
+
*/
|
|
106478
|
+
language: 'zh' | 'en';
|
|
106479
|
+
/**
|
|
106480
|
+
* How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
|
|
106481
|
+
*/
|
|
106482
|
+
count?: number;
|
|
106483
|
+
};
|
|
106484
|
+
headers?: {
|
|
106485
|
+
/**
|
|
106486
|
+
* 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.
|
|
106487
|
+
*/
|
|
106488
|
+
'Idempotency-Key'?: string;
|
|
106489
|
+
};
|
|
106490
|
+
path: {
|
|
106491
|
+
/**
|
|
106492
|
+
* Library ID returned by creation.
|
|
106493
|
+
*/
|
|
106494
|
+
library_id: string;
|
|
103970
106495
|
};
|
|
103971
106496
|
query?: never;
|
|
103972
|
-
url: '/media/v1/libraries/{library_id}/
|
|
106497
|
+
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
103973
106498
|
};
|
|
103974
|
-
export type
|
|
106499
|
+
export type MediaDesignVoiceErrors = {
|
|
103975
106500
|
/**
|
|
103976
|
-
*
|
|
106501
|
+
* Request failed; see the error code reference.
|
|
103977
106502
|
*/
|
|
103978
106503
|
400: MediaMediaError;
|
|
103979
106504
|
/**
|
|
@@ -103981,11 +106506,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
103981
106506
|
*/
|
|
103982
106507
|
402: MediaMediaError;
|
|
103983
106508
|
/**
|
|
103984
|
-
*
|
|
106509
|
+
* Request failed; see the error code reference.
|
|
103985
106510
|
*/
|
|
103986
106511
|
403: MediaMediaError;
|
|
103987
106512
|
/**
|
|
103988
|
-
*
|
|
106513
|
+
* Request failed; see the error code reference.
|
|
103989
106514
|
*/
|
|
103990
106515
|
404: MediaMediaError;
|
|
103991
106516
|
/**
|
|
@@ -103993,11 +106518,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
103993
106518
|
*/
|
|
103994
106519
|
409: MediaMediaError;
|
|
103995
106520
|
/**
|
|
103996
|
-
*
|
|
106521
|
+
* Request failed; see the error code reference.
|
|
103997
106522
|
*/
|
|
103998
106523
|
413: MediaMediaError;
|
|
103999
106524
|
/**
|
|
104000
|
-
*
|
|
106525
|
+
* Request failed; see the error code reference.
|
|
104001
106526
|
*/
|
|
104002
106527
|
415: MediaMediaError;
|
|
104003
106528
|
/**
|
|
@@ -104005,11 +106530,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
104005
106530
|
*/
|
|
104006
106531
|
422: MediaMediaError;
|
|
104007
106532
|
/**
|
|
104008
|
-
*
|
|
106533
|
+
* Request failed; see the error code reference.
|
|
104009
106534
|
*/
|
|
104010
106535
|
429: MediaMediaError;
|
|
104011
106536
|
/**
|
|
104012
|
-
*
|
|
106537
|
+
* Request failed; see the error code reference.
|
|
104013
106538
|
*/
|
|
104014
106539
|
501: MediaMediaError;
|
|
104015
106540
|
/**
|
|
@@ -104017,18 +106542,18 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
104017
106542
|
*/
|
|
104018
106543
|
502: MediaMediaError;
|
|
104019
106544
|
/**
|
|
104020
|
-
*
|
|
106545
|
+
* Request failed; see the error code reference.
|
|
104021
106546
|
*/
|
|
104022
106547
|
503: MediaMediaError;
|
|
104023
106548
|
};
|
|
104024
|
-
export type
|
|
104025
|
-
export type
|
|
106549
|
+
export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
|
|
106550
|
+
export type MediaDesignVoiceResponses = {
|
|
104026
106551
|
/**
|
|
104027
106552
|
* Successful response.
|
|
104028
106553
|
*/
|
|
104029
|
-
202:
|
|
106554
|
+
202: MediaJob;
|
|
104030
106555
|
};
|
|
104031
|
-
export type
|
|
106556
|
+
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
104032
106557
|
export type OntologyListTypesData = {
|
|
104033
106558
|
body?: never;
|
|
104034
106559
|
path?: never;
|
|
@@ -105170,6 +107695,196 @@ export type RegistryPackagesVersionsCreateResponses = {
|
|
|
105170
107695
|
201: RegistryVersion;
|
|
105171
107696
|
};
|
|
105172
107697
|
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
107698
|
+
export type RegistryGitLogData = {
|
|
107699
|
+
body?: never;
|
|
107700
|
+
path: {
|
|
107701
|
+
/**
|
|
107702
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
107703
|
+
*/
|
|
107704
|
+
package_id: string;
|
|
107705
|
+
};
|
|
107706
|
+
query?: {
|
|
107707
|
+
/**
|
|
107708
|
+
* 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
|
|
107709
|
+
*/
|
|
107710
|
+
ref?: string;
|
|
107711
|
+
/**
|
|
107712
|
+
* 这一页最多返回多少个提交,1 到 100,默认 20。
|
|
107713
|
+
*/
|
|
107714
|
+
limit?: number;
|
|
107715
|
+
/**
|
|
107716
|
+
* 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
|
|
107717
|
+
*/
|
|
107718
|
+
offset?: number;
|
|
107719
|
+
};
|
|
107720
|
+
url: '/registry/v1/packages/{package_id}/git/log';
|
|
107721
|
+
};
|
|
107722
|
+
export type RegistryGitLogErrors = {
|
|
107723
|
+
/**
|
|
107724
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
107725
|
+
*/
|
|
107726
|
+
400: RegistryRegistryError;
|
|
107727
|
+
/**
|
|
107728
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
107729
|
+
*/
|
|
107730
|
+
401: RegistryRegistryError;
|
|
107731
|
+
/**
|
|
107732
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107733
|
+
*/
|
|
107734
|
+
404: RegistryRegistryError;
|
|
107735
|
+
/**
|
|
107736
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107737
|
+
*/
|
|
107738
|
+
500: RegistryRegistryError;
|
|
107739
|
+
/**
|
|
107740
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
107741
|
+
*/
|
|
107742
|
+
503: RegistryRegistryError;
|
|
107743
|
+
};
|
|
107744
|
+
export type RegistryGitLogError = RegistryGitLogErrors[keyof RegistryGitLogErrors];
|
|
107745
|
+
export type RegistryGitLogResponses = {
|
|
107746
|
+
/**
|
|
107747
|
+
* 这个引用可达的提交,连同是否还有下一页。
|
|
107748
|
+
*/
|
|
107749
|
+
200: RegistryGitLog;
|
|
107750
|
+
};
|
|
107751
|
+
export type RegistryGitLogResponse = RegistryGitLogResponses[keyof RegistryGitLogResponses];
|
|
107752
|
+
export type RegistryGitCommitsRetrieveData = {
|
|
107753
|
+
body?: never;
|
|
107754
|
+
path: {
|
|
107755
|
+
/**
|
|
107756
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
107757
|
+
*/
|
|
107758
|
+
package_id: string;
|
|
107759
|
+
/**
|
|
107760
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
107761
|
+
*/
|
|
107762
|
+
sha: string;
|
|
107763
|
+
};
|
|
107764
|
+
query?: never;
|
|
107765
|
+
url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
|
|
107766
|
+
};
|
|
107767
|
+
export type RegistryGitCommitsRetrieveErrors = {
|
|
107768
|
+
/**
|
|
107769
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
107770
|
+
*/
|
|
107771
|
+
400: RegistryRegistryError;
|
|
107772
|
+
/**
|
|
107773
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
107774
|
+
*/
|
|
107775
|
+
401: RegistryRegistryError;
|
|
107776
|
+
/**
|
|
107777
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107778
|
+
*/
|
|
107779
|
+
404: RegistryRegistryError;
|
|
107780
|
+
/**
|
|
107781
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107782
|
+
*/
|
|
107783
|
+
500: RegistryRegistryError;
|
|
107784
|
+
/**
|
|
107785
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
107786
|
+
*/
|
|
107787
|
+
503: RegistryRegistryError;
|
|
107788
|
+
};
|
|
107789
|
+
export type RegistryGitCommitsRetrieveError = RegistryGitCommitsRetrieveErrors[keyof RegistryGitCommitsRetrieveErrors];
|
|
107790
|
+
export type RegistryGitCommitsRetrieveResponses = {
|
|
107791
|
+
/**
|
|
107792
|
+
* 这个提交。
|
|
107793
|
+
*/
|
|
107794
|
+
200: RegistryGitCommit;
|
|
107795
|
+
};
|
|
107796
|
+
export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
|
|
107797
|
+
export type RegistryGitTreesRetrieveData = {
|
|
107798
|
+
body?: never;
|
|
107799
|
+
path: {
|
|
107800
|
+
/**
|
|
107801
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
107802
|
+
*/
|
|
107803
|
+
package_id: string;
|
|
107804
|
+
/**
|
|
107805
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
107806
|
+
*/
|
|
107807
|
+
sha: string;
|
|
107808
|
+
};
|
|
107809
|
+
query?: never;
|
|
107810
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}';
|
|
107811
|
+
};
|
|
107812
|
+
export type RegistryGitTreesRetrieveErrors = {
|
|
107813
|
+
/**
|
|
107814
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
107815
|
+
*/
|
|
107816
|
+
400: RegistryRegistryError;
|
|
107817
|
+
/**
|
|
107818
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
107819
|
+
*/
|
|
107820
|
+
401: RegistryRegistryError;
|
|
107821
|
+
/**
|
|
107822
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107823
|
+
*/
|
|
107824
|
+
404: RegistryRegistryError;
|
|
107825
|
+
/**
|
|
107826
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107827
|
+
*/
|
|
107828
|
+
500: RegistryRegistryError;
|
|
107829
|
+
/**
|
|
107830
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
107831
|
+
*/
|
|
107832
|
+
503: RegistryRegistryError;
|
|
107833
|
+
};
|
|
107834
|
+
export type RegistryGitTreesRetrieveError = RegistryGitTreesRetrieveErrors[keyof RegistryGitTreesRetrieveErrors];
|
|
107835
|
+
export type RegistryGitTreesRetrieveResponses = {
|
|
107836
|
+
/**
|
|
107837
|
+
* 这个树的条目。
|
|
107838
|
+
*/
|
|
107839
|
+
200: RegistryGitTree;
|
|
107840
|
+
};
|
|
107841
|
+
export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
|
|
107842
|
+
export type RegistryGitFilesRetrieveData = {
|
|
107843
|
+
body?: never;
|
|
107844
|
+
path: {
|
|
107845
|
+
/**
|
|
107846
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
107847
|
+
*/
|
|
107848
|
+
package_id: string;
|
|
107849
|
+
/**
|
|
107850
|
+
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
107851
|
+
*/
|
|
107852
|
+
path: string;
|
|
107853
|
+
};
|
|
107854
|
+
query?: {
|
|
107855
|
+
/**
|
|
107856
|
+
* 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
|
|
107857
|
+
*/
|
|
107858
|
+
ref?: string;
|
|
107859
|
+
};
|
|
107860
|
+
url: '/registry/v1/packages/{package_id}/git/files/{path}';
|
|
107861
|
+
};
|
|
107862
|
+
export type RegistryGitFilesRetrieveErrors = {
|
|
107863
|
+
/**
|
|
107864
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
107865
|
+
*/
|
|
107866
|
+
401: RegistryRegistryError;
|
|
107867
|
+
/**
|
|
107868
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
107869
|
+
*/
|
|
107870
|
+
404: RegistryRegistryError;
|
|
107871
|
+
/**
|
|
107872
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
107873
|
+
*/
|
|
107874
|
+
500: RegistryRegistryError;
|
|
107875
|
+
/**
|
|
107876
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
107877
|
+
*/
|
|
107878
|
+
503: RegistryRegistryError;
|
|
107879
|
+
};
|
|
107880
|
+
export type RegistryGitFilesRetrieveError = RegistryGitFilesRetrieveErrors[keyof RegistryGitFilesRetrieveErrors];
|
|
107881
|
+
export type RegistryGitFilesRetrieveResponses = {
|
|
107882
|
+
/**
|
|
107883
|
+
* 文件内容,逐字节原样返回。
|
|
107884
|
+
*/
|
|
107885
|
+
200: Blob | File;
|
|
107886
|
+
};
|
|
107887
|
+
export type RegistryGitFilesRetrieveResponse = RegistryGitFilesRetrieveResponses[keyof RegistryGitFilesRetrieveResponses];
|
|
105173
107888
|
export type RegistryPackagesVersionsContentsData = {
|
|
105174
107889
|
body?: never;
|
|
105175
107890
|
path: {
|