@deepraxis/sdk 0.1.1-dev.d61d469 → 0.1.1-dev.d6fe1a0
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 +58 -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 +95 -21
- package/dist/generated/sdk.gen.js +214 -20
- package/dist/generated/types.gen.d.ts +1737 -56
- 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.d.ts +2 -0
- package/dist/helpers/browser-connect.js +36 -42
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.js +508 -29
- package/dist/resources.generated.d.ts +123 -0
- package/dist/resources.generated.js +33 -0
- package/package.json +1 -1
|
@@ -2821,6 +2821,23 @@ export type AgentSseEvent = ({
|
|
|
2821
2821
|
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2822
2822
|
data: AgentSseData;
|
|
2823
2823
|
};
|
|
2824
|
+
/**
|
|
2825
|
+
* The price book in force at the moment of the read.
|
|
2826
|
+
*/
|
|
2827
|
+
export type BillingPriceList = {
|
|
2828
|
+
/**
|
|
2829
|
+
* The published catalog version this body was cut from; it changes on any price write.
|
|
2830
|
+
*/
|
|
2831
|
+
pricing_version: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* The latest effective_from among the listed entries; null when no item has a price in force yet.
|
|
2834
|
+
*/
|
|
2835
|
+
effective_at: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* One entry per amount in force, ordered by item id and then by the model's own tier/cell order.
|
|
2838
|
+
*/
|
|
2839
|
+
items: Array<BillingPriceEntry>;
|
|
2840
|
+
};
|
|
2824
2841
|
export type BrowserSessionCreateParams = {
|
|
2825
2842
|
/**
|
|
2826
2843
|
* 可省略;账户使用 default 项目。
|
|
@@ -17929,6 +17946,15 @@ export type DevopsPullRequestVerdictRequest = {
|
|
|
17929
17946
|
*/
|
|
17930
17947
|
reason?: string;
|
|
17931
17948
|
};
|
|
17949
|
+
/**
|
|
17950
|
+
* 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.
|
|
17951
|
+
*/
|
|
17952
|
+
export type DevopsPullRequestCloseRequest = {
|
|
17953
|
+
/**
|
|
17954
|
+
* 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.
|
|
17955
|
+
*/
|
|
17956
|
+
reason: string;
|
|
17957
|
+
};
|
|
17932
17958
|
/**
|
|
17933
17959
|
* One page of an organization's connections.
|
|
17934
17960
|
*/
|
|
@@ -18991,6 +19017,10 @@ export type MediaLibrary = {
|
|
|
18991
19017
|
* Resolved model call IDs used for new uploads and reprocessing.
|
|
18992
19018
|
*/
|
|
18993
19019
|
models: MediaMediaModels;
|
|
19020
|
+
/**
|
|
19021
|
+
* 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.
|
|
19022
|
+
*/
|
|
19023
|
+
readonly default_tier: MediaMediaTier;
|
|
18994
19024
|
/**
|
|
18995
19025
|
* Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
|
|
18996
19026
|
*/
|
|
@@ -19082,6 +19112,10 @@ export type MediaMediaModelsInput = {
|
|
|
19082
19112
|
*/
|
|
19083
19113
|
speech?: string | null;
|
|
19084
19114
|
} | null;
|
|
19115
|
+
/**
|
|
19116
|
+
* 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.
|
|
19117
|
+
*/
|
|
19118
|
+
export type MediaMediaTier = 'economy' | 'balanced' | 'quality';
|
|
19085
19119
|
/**
|
|
19086
19120
|
* Libraries in this page, ordered by creation time descending.
|
|
19087
19121
|
*/
|
|
@@ -19665,6 +19699,10 @@ export type MediaJob = {
|
|
|
19665
19699
|
* Model that produced the outputs of a generation job; omitted for batch jobs.
|
|
19666
19700
|
*/
|
|
19667
19701
|
model?: string;
|
|
19702
|
+
/**
|
|
19703
|
+
* 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.
|
|
19704
|
+
*/
|
|
19705
|
+
tier?: MediaMediaTier;
|
|
19668
19706
|
/**
|
|
19669
19707
|
* 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
19708
|
*/
|
|
@@ -19851,9 +19889,13 @@ export type MediaAssetReference = {
|
|
|
19851
19889
|
* 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
19890
|
*/
|
|
19853
19891
|
strength?: number;
|
|
19892
|
+
/**
|
|
19893
|
+
* 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.
|
|
19894
|
+
*/
|
|
19895
|
+
voice_asset_id?: MediaAssetId;
|
|
19854
19896
|
};
|
|
19855
19897
|
/**
|
|
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
|
|
19898
|
+
* 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
19899
|
*/
|
|
19858
19900
|
export type MediaEditOperation = {
|
|
19859
19901
|
/**
|
|
@@ -19882,9 +19924,10 @@ export type MediaEditOperation = {
|
|
|
19882
19924
|
*/
|
|
19883
19925
|
height?: 720 | 1080 | 1440 | 2160;
|
|
19884
19926
|
/**
|
|
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.
|
|
19927
|
+
* 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
19928
|
*/
|
|
19887
19929
|
model?: string;
|
|
19930
|
+
tier?: MediaMediaTier;
|
|
19888
19931
|
} | {
|
|
19889
19932
|
/**
|
|
19890
19933
|
* Edit operation discriminator; outpaint selects the outpaint branch of this union.
|
|
@@ -19961,9 +20004,10 @@ export type MediaEditOperation = {
|
|
|
19961
20004
|
*/
|
|
19962
20005
|
mute?: boolean;
|
|
19963
20006
|
/**
|
|
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.
|
|
20007
|
+
* 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
20008
|
*/
|
|
19966
20009
|
model?: string;
|
|
20010
|
+
tier?: MediaMediaTier;
|
|
19967
20011
|
} | {
|
|
19968
20012
|
/**
|
|
19969
20013
|
* Edit operation discriminator; replace_object selects the replace_object branch of this union.
|
|
@@ -20000,9 +20044,10 @@ export type MediaEditOperation = {
|
|
|
20000
20044
|
*/
|
|
20001
20045
|
output?: 'mask' | 'alpha';
|
|
20002
20046
|
/**
|
|
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.
|
|
20047
|
+
* 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
20048
|
*/
|
|
20005
20049
|
model?: string;
|
|
20050
|
+
tier?: MediaMediaTier;
|
|
20006
20051
|
} | {
|
|
20007
20052
|
/**
|
|
20008
20053
|
* Edit operation discriminator; replace_background selects the replace_background branch of this union.
|
|
@@ -20103,9 +20148,10 @@ export type MediaEditOperation = {
|
|
|
20103
20148
|
*/
|
|
20104
20149
|
speech?: MediaSpeechCreateInput;
|
|
20105
20150
|
/**
|
|
20106
|
-
* Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available.
|
|
20151
|
+
* 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
20152
|
*/
|
|
20108
20153
|
model?: string;
|
|
20154
|
+
tier?: MediaMediaTier;
|
|
20109
20155
|
} | {
|
|
20110
20156
|
/**
|
|
20111
20157
|
* Edit operation discriminator; frame selects the frame branch of this union.
|
|
@@ -20126,9 +20172,10 @@ export type MediaEditOperation = {
|
|
|
20126
20172
|
*/
|
|
20127
20173
|
type: 'enhance_voice';
|
|
20128
20174
|
/**
|
|
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.
|
|
20175
|
+
* 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
20176
|
*/
|
|
20131
20177
|
model?: string;
|
|
20178
|
+
tier?: MediaMediaTier;
|
|
20132
20179
|
} | {
|
|
20133
20180
|
/**
|
|
20134
20181
|
* Edit operation discriminator; reframe selects the reframe branch of this union.
|
|
@@ -20139,9 +20186,10 @@ export type MediaEditOperation = {
|
|
|
20139
20186
|
*/
|
|
20140
20187
|
aspect: '9:16' | '1:1' | '16:9';
|
|
20141
20188
|
/**
|
|
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.
|
|
20189
|
+
* 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
20190
|
*/
|
|
20144
20191
|
model?: string;
|
|
20192
|
+
tier?: MediaMediaTier;
|
|
20145
20193
|
} | {
|
|
20146
20194
|
/**
|
|
20147
20195
|
* Edit operation discriminator; redact selects the redact branch of this union.
|
|
@@ -20152,9 +20200,10 @@ export type MediaEditOperation = {
|
|
|
20152
20200
|
*/
|
|
20153
20201
|
targets: Array<'face' | 'qr' | 'text'>;
|
|
20154
20202
|
/**
|
|
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.
|
|
20203
|
+
* 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
20204
|
*/
|
|
20157
20205
|
model?: string;
|
|
20206
|
+
tier?: MediaMediaTier;
|
|
20158
20207
|
} | {
|
|
20159
20208
|
/**
|
|
20160
20209
|
* Edit operation discriminator; trim selects the trim branch of this union.
|
|
@@ -20169,18 +20218,20 @@ export type MediaEditOperation = {
|
|
|
20169
20218
|
*/
|
|
20170
20219
|
end_seconds?: number;
|
|
20171
20220
|
/**
|
|
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.
|
|
20221
|
+
* 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
20222
|
*/
|
|
20174
20223
|
model?: string;
|
|
20224
|
+
tier?: MediaMediaTier;
|
|
20175
20225
|
} | {
|
|
20176
20226
|
/**
|
|
20177
20227
|
* Edit operation discriminator; mute selects the mute branch of this union.
|
|
20178
20228
|
*/
|
|
20179
20229
|
type: 'mute';
|
|
20180
20230
|
/**
|
|
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.
|
|
20231
|
+
* 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
20232
|
*/
|
|
20183
20233
|
model?: string;
|
|
20234
|
+
tier?: MediaMediaTier;
|
|
20184
20235
|
} | {
|
|
20185
20236
|
/**
|
|
20186
20237
|
* Edit operation discriminator; crop selects the crop branch of this union.
|
|
@@ -20203,9 +20254,23 @@ export type MediaEditOperation = {
|
|
|
20203
20254
|
*/
|
|
20204
20255
|
left?: number;
|
|
20205
20256
|
/**
|
|
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.
|
|
20257
|
+
* 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
20258
|
*/
|
|
20208
20259
|
model?: string;
|
|
20260
|
+
tier?: MediaMediaTier;
|
|
20261
|
+
} | {
|
|
20262
|
+
/**
|
|
20263
|
+
* Edit operation discriminator; extract_audio selects the extract_audio branch of this union.
|
|
20264
|
+
*/
|
|
20265
|
+
type: 'extract_audio';
|
|
20266
|
+
/**
|
|
20267
|
+
* Seconds into the source video where the audio starts, 0 or more; omit it to begin at the start.
|
|
20268
|
+
*/
|
|
20269
|
+
start_seconds?: number;
|
|
20270
|
+
/**
|
|
20271
|
+
* 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.
|
|
20272
|
+
*/
|
|
20273
|
+
end_seconds?: number;
|
|
20209
20274
|
} | {
|
|
20210
20275
|
/**
|
|
20211
20276
|
* Edit operation discriminator; replace_person selects the replace_person branch of this union.
|
|
@@ -20216,9 +20281,10 @@ export type MediaEditOperation = {
|
|
|
20216
20281
|
*/
|
|
20217
20282
|
person_asset_id: MediaAssetId;
|
|
20218
20283
|
/**
|
|
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.
|
|
20284
|
+
* 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
20285
|
*/
|
|
20221
20286
|
model?: string;
|
|
20287
|
+
tier?: MediaMediaTier;
|
|
20222
20288
|
} | {
|
|
20223
20289
|
/**
|
|
20224
20290
|
* Edit operation discriminator; animate_person selects the animate_person branch of this union.
|
|
@@ -20229,9 +20295,10 @@ export type MediaEditOperation = {
|
|
|
20229
20295
|
*/
|
|
20230
20296
|
person_asset_id: MediaAssetId;
|
|
20231
20297
|
/**
|
|
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.
|
|
20298
|
+
* 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
20299
|
*/
|
|
20234
20300
|
model?: string;
|
|
20301
|
+
tier?: MediaMediaTier;
|
|
20235
20302
|
} | {
|
|
20236
20303
|
/**
|
|
20237
20304
|
* Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
|
|
@@ -20242,9 +20309,10 @@ export type MediaEditOperation = {
|
|
|
20242
20309
|
*/
|
|
20243
20310
|
audio_asset_id: MediaAssetId;
|
|
20244
20311
|
/**
|
|
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.
|
|
20312
|
+
* 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.
|
|
20246
20313
|
*/
|
|
20247
20314
|
model?: string;
|
|
20315
|
+
tier?: MediaMediaTier;
|
|
20248
20316
|
} | {
|
|
20249
20317
|
/**
|
|
20250
20318
|
* Edit operation discriminator; edit_video selects the edit_video branch of this union.
|
|
@@ -20263,9 +20331,10 @@ export type MediaEditOperation = {
|
|
|
20263
20331
|
*/
|
|
20264
20332
|
reference_asset_id?: MediaAssetId;
|
|
20265
20333
|
/**
|
|
20266
|
-
* 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.
|
|
20334
|
+
* 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.
|
|
20267
20335
|
*/
|
|
20268
20336
|
model?: string;
|
|
20337
|
+
tier?: MediaMediaTier;
|
|
20269
20338
|
} | {
|
|
20270
20339
|
/**
|
|
20271
20340
|
* Edit operation discriminator; voice_change selects the voice_change branch of this union.
|
|
@@ -20470,6 +20539,62 @@ export type MediaHlsLadder = {
|
|
|
20470
20539
|
*/
|
|
20471
20540
|
renditions: Array<MediaHlsRendition>;
|
|
20472
20541
|
};
|
|
20542
|
+
export type MediaVoiceCloneInput = {
|
|
20543
|
+
/**
|
|
20544
|
+
* Display name of the voice; a later rename keeps the same voice id.
|
|
20545
|
+
*/
|
|
20546
|
+
name: string;
|
|
20547
|
+
/**
|
|
20548
|
+
* 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.
|
|
20549
|
+
*/
|
|
20550
|
+
samples: Array<string>;
|
|
20551
|
+
/**
|
|
20552
|
+
* Consent id that authorises this clone, minted by the voice-consent endpoint of this same library.
|
|
20553
|
+
*/
|
|
20554
|
+
consent_id: MediaVoiceConsentId;
|
|
20555
|
+
/**
|
|
20556
|
+
* Language the voice speaks, used to tag the clone at the supplier; for example zh or en.
|
|
20557
|
+
*/
|
|
20558
|
+
language: string;
|
|
20559
|
+
/**
|
|
20560
|
+
* Free-form string labels carried onto the usage event for this voice.
|
|
20561
|
+
*/
|
|
20562
|
+
labels?: {
|
|
20563
|
+
[key: string]: string;
|
|
20564
|
+
};
|
|
20565
|
+
/**
|
|
20566
|
+
* Caller’s own note about the voice, stored on it and returned as description.
|
|
20567
|
+
*/
|
|
20568
|
+
description?: string;
|
|
20569
|
+
/**
|
|
20570
|
+
* Preferred cloning provider; the platform chooses one when omitted.
|
|
20571
|
+
*/
|
|
20572
|
+
provider?: string;
|
|
20573
|
+
};
|
|
20574
|
+
export type MediaVoiceDesignCreateInput = {
|
|
20575
|
+
/**
|
|
20576
|
+
* Display name of the voice; a later rename keeps the same voice id.
|
|
20577
|
+
*/
|
|
20578
|
+
name: string;
|
|
20579
|
+
/**
|
|
20580
|
+
* Language the voice speaks; use the language the preview was designed in.
|
|
20581
|
+
*/
|
|
20582
|
+
language: string;
|
|
20583
|
+
/**
|
|
20584
|
+
* 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.
|
|
20585
|
+
*/
|
|
20586
|
+
design_asset_id: MediaAssetId;
|
|
20587
|
+
/**
|
|
20588
|
+
* Free-form string labels carried onto the usage event for this voice.
|
|
20589
|
+
*/
|
|
20590
|
+
labels?: {
|
|
20591
|
+
[key: string]: string;
|
|
20592
|
+
};
|
|
20593
|
+
/**
|
|
20594
|
+
* Caller’s own note about the voice, stored on it and returned as description.
|
|
20595
|
+
*/
|
|
20596
|
+
description?: string;
|
|
20597
|
+
};
|
|
20473
20598
|
/**
|
|
20474
20599
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
20475
20600
|
*/
|
|
@@ -21184,6 +21309,77 @@ export type RegistryVersion = {
|
|
|
21184
21309
|
*/
|
|
21185
21310
|
create_time: string;
|
|
21186
21311
|
};
|
|
21312
|
+
/**
|
|
21313
|
+
* 一段提交历史。
|
|
21314
|
+
*/
|
|
21315
|
+
export type RegistryGitLog = {
|
|
21316
|
+
/**
|
|
21317
|
+
* 对象类型标记,固定为 registry.git.log。
|
|
21318
|
+
*/
|
|
21319
|
+
object: string;
|
|
21320
|
+
/**
|
|
21321
|
+
* 这次读的引用;省略时是包的默认分支。
|
|
21322
|
+
*/
|
|
21323
|
+
ref: string;
|
|
21324
|
+
/**
|
|
21325
|
+
* 这一页的提交,最新的在前;空数组表示这个引用没有提交。
|
|
21326
|
+
*/
|
|
21327
|
+
commits: Array<RegistryGitCommit>;
|
|
21328
|
+
/**
|
|
21329
|
+
* 是否还有下一页(用 offset 翻页)。
|
|
21330
|
+
*/
|
|
21331
|
+
has_more: boolean;
|
|
21332
|
+
};
|
|
21333
|
+
/**
|
|
21334
|
+
* 一个 git 提交。
|
|
21335
|
+
*/
|
|
21336
|
+
export type RegistryGitCommit = {
|
|
21337
|
+
/**
|
|
21338
|
+
* 对象类型标记,固定为 registry.git.commit。
|
|
21339
|
+
*/
|
|
21340
|
+
object: string;
|
|
21341
|
+
/**
|
|
21342
|
+
* 提交的对象 id。
|
|
21343
|
+
*/
|
|
21344
|
+
sha: string;
|
|
21345
|
+
/**
|
|
21346
|
+
* 提交信息原文,含换行。
|
|
21347
|
+
*/
|
|
21348
|
+
message: string;
|
|
21349
|
+
/**
|
|
21350
|
+
* 作者名;仓库没有给出名字时是空串。
|
|
21351
|
+
*/
|
|
21352
|
+
author: string;
|
|
21353
|
+
/**
|
|
21354
|
+
* 作者邮箱;仓库给了才有。
|
|
21355
|
+
*/
|
|
21356
|
+
author_email?: string;
|
|
21357
|
+
/**
|
|
21358
|
+
* 提交时间的 RFC 3339 时间戳;后端没给时是空串。
|
|
21359
|
+
*/
|
|
21360
|
+
committed_at: string;
|
|
21361
|
+
/**
|
|
21362
|
+
* 父提交的对象 id,按顺序。
|
|
21363
|
+
*/
|
|
21364
|
+
parents: Array<string>;
|
|
21365
|
+
};
|
|
21366
|
+
/**
|
|
21367
|
+
* 一个树的条目清单。
|
|
21368
|
+
*/
|
|
21369
|
+
export type RegistryGitTree = {
|
|
21370
|
+
/**
|
|
21371
|
+
* 对象类型标记,固定为 registry.git.tree。
|
|
21372
|
+
*/
|
|
21373
|
+
object: string;
|
|
21374
|
+
/**
|
|
21375
|
+
* 读的树对象 id。
|
|
21376
|
+
*/
|
|
21377
|
+
sha: string;
|
|
21378
|
+
/**
|
|
21379
|
+
* 这个树的条目,只列这一层,不递归。
|
|
21380
|
+
*/
|
|
21381
|
+
entries: Array<RegistryGitTreeEntry>;
|
|
21382
|
+
};
|
|
21187
21383
|
/**
|
|
21188
21384
|
* 一个版本的文件清单;文件不多,一次返回全部。
|
|
21189
21385
|
*/
|
|
@@ -21334,6 +21530,47 @@ export type SandboxNewSandboxV2 = {
|
|
|
21334
21530
|
* Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
|
|
21335
21531
|
*/
|
|
21336
21532
|
volumeMounts?: Array<SandboxSandboxVolumeMount>;
|
|
21533
|
+
/**
|
|
21534
|
+
* Own face, required: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
|
|
21535
|
+
*/
|
|
21536
|
+
ephemeral?: boolean;
|
|
21537
|
+
/**
|
|
21538
|
+
* Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
|
|
21539
|
+
*/
|
|
21540
|
+
size?: string;
|
|
21541
|
+
/**
|
|
21542
|
+
* Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
|
|
21543
|
+
*/
|
|
21544
|
+
name?: string;
|
|
21545
|
+
/**
|
|
21546
|
+
* Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
|
|
21547
|
+
*/
|
|
21548
|
+
waitForReady?: boolean;
|
|
21549
|
+
/**
|
|
21550
|
+
* Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
|
|
21551
|
+
*/
|
|
21552
|
+
onExpire?: 'kill' | 'pause';
|
|
21553
|
+
/**
|
|
21554
|
+
* Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
|
|
21555
|
+
*/
|
|
21556
|
+
idleTimeout?: number;
|
|
21557
|
+
/**
|
|
21558
|
+
* Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
|
|
21559
|
+
*/
|
|
21560
|
+
idleActivity?: 'traffic' | 'caller';
|
|
21561
|
+
/**
|
|
21562
|
+
* Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
|
|
21563
|
+
*/
|
|
21564
|
+
onLoss?: 'fail' | 'rebuild';
|
|
21565
|
+
/**
|
|
21566
|
+
* Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
|
|
21567
|
+
*/
|
|
21568
|
+
outputs?: Array<{
|
|
21569
|
+
/**
|
|
21570
|
+
* Absolute path of a directory or file inside the sandbox.
|
|
21571
|
+
*/
|
|
21572
|
+
path: string;
|
|
21573
|
+
}>;
|
|
21337
21574
|
};
|
|
21338
21575
|
/**
|
|
21339
21576
|
* Sandbox created from a template.
|
|
@@ -21376,7 +21613,7 @@ export type SandboxSandbox = {
|
|
|
21376
21613
|
machine?: 'light' | 'full' | 'none';
|
|
21377
21614
|
};
|
|
21378
21615
|
/**
|
|
21379
|
-
*
|
|
21616
|
+
* running while the sandbox's machine is up and drivable, paused while it is stopped and can be resumed. On the own face an android phone (templateID "android") has three device states of its own, because its machine running is not yet the phone program's readiness: starting while the vendor is still building the machine, booting while the machine runs but the phone program has not connected on the sandbox's control connection, and running once it has. Its detail and list rows also carry readyAt, the epoch-milliseconds instant the program said hello, null until it does; a linux sandbox only ever reads running or paused.
|
|
21380
21617
|
*/
|
|
21381
21618
|
export type SandboxSandboxState = 'running' | 'paused';
|
|
21382
21619
|
/**
|
|
@@ -24111,7 +24348,7 @@ export type VaultCreateSecretInput = {
|
|
|
24111
24348
|
*/
|
|
24112
24349
|
value: string;
|
|
24113
24350
|
/**
|
|
24114
|
-
* Allowed destinations for the secret.
|
|
24351
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24115
24352
|
*/
|
|
24116
24353
|
allowed_hosts?: Array<string>;
|
|
24117
24354
|
/**
|
|
@@ -24155,7 +24392,7 @@ export type VaultSecret = {
|
|
|
24155
24392
|
*/
|
|
24156
24393
|
kind: 'static' | 'oauth';
|
|
24157
24394
|
/**
|
|
24158
|
-
* Allowed destinations for the secret.
|
|
24395
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts.
|
|
24159
24396
|
*/
|
|
24160
24397
|
allowed_hosts: Array<string>;
|
|
24161
24398
|
/**
|
|
@@ -24248,7 +24485,7 @@ export type VaultUpdateSecretInput = {
|
|
|
24248
24485
|
*/
|
|
24249
24486
|
value?: string;
|
|
24250
24487
|
/**
|
|
24251
|
-
* Allowed destinations for the secret.
|
|
24488
|
+
* Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. 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. A service agent's session environment never receives a credential that declares hosts.
|
|
24252
24489
|
*/
|
|
24253
24490
|
allowed_hosts?: Array<string>;
|
|
24254
24491
|
/**
|
|
@@ -24477,6 +24714,10 @@ export type TicketRecord = {
|
|
|
24477
24714
|
* completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening.
|
|
24478
24715
|
*/
|
|
24479
24716
|
state_reason: 'completed' | 'not_planned' | 'duplicate' | 'reopened';
|
|
24717
|
+
/**
|
|
24718
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
24719
|
+
*/
|
|
24720
|
+
duplicate_of: number | null;
|
|
24480
24721
|
/**
|
|
24481
24722
|
* Built-in type name (console: bug 缺陷, feature 功能, task 任务; to a person say the console word), null when unset; the list is GET /ticket/v1/types.
|
|
24482
24723
|
*/
|
|
@@ -26804,6 +27045,76 @@ export type AgentSseData = {
|
|
|
26804
27045
|
message: string;
|
|
26805
27046
|
};
|
|
26806
27047
|
};
|
|
27048
|
+
/**
|
|
27049
|
+
* One amount in force for one price item.
|
|
27050
|
+
*/
|
|
27051
|
+
export type BillingPriceEntry = {
|
|
27052
|
+
/**
|
|
27053
|
+
* The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second.
|
|
27054
|
+
*/
|
|
27055
|
+
id: string;
|
|
27056
|
+
/**
|
|
27057
|
+
* The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this.
|
|
27058
|
+
*/
|
|
27059
|
+
product: string;
|
|
27060
|
+
/**
|
|
27061
|
+
* The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key.
|
|
27062
|
+
*/
|
|
27063
|
+
subject: string;
|
|
27064
|
+
/**
|
|
27065
|
+
* The item's display name from the price book.
|
|
27066
|
+
*/
|
|
27067
|
+
name: string;
|
|
27068
|
+
/**
|
|
27069
|
+
* The meter's unit as billing records it, for example token, cpu_second or request.
|
|
27070
|
+
*/
|
|
27071
|
+
unit: string;
|
|
27072
|
+
/**
|
|
27073
|
+
* How many units one amount covers, as a decimal integer string; 1000000 for per-million-token meters, 1 for a per-request or per-second meter.
|
|
27074
|
+
*/
|
|
27075
|
+
per: string;
|
|
27076
|
+
/**
|
|
27077
|
+
* When this amount took effect. It is at or before now by construction.
|
|
27078
|
+
*/
|
|
27079
|
+
effective_from: string;
|
|
27080
|
+
/**
|
|
27081
|
+
* Which amount of a multi-amount model this entry is; null when the item has exactly one amount.
|
|
27082
|
+
*/
|
|
27083
|
+
variant: {
|
|
27084
|
+
/**
|
|
27085
|
+
* This entry is one tier of a tiered price, chosen by the meter's tier selector.
|
|
27086
|
+
*/
|
|
27087
|
+
kind: 'tier';
|
|
27088
|
+
/**
|
|
27089
|
+
* The tier's upper bound of the selector; the last tier is null (no upper bound).
|
|
27090
|
+
*/
|
|
27091
|
+
up_to: string;
|
|
27092
|
+
} | {
|
|
27093
|
+
/**
|
|
27094
|
+
* This entry is one cell of a matrix price, priced for the dimension values in when.
|
|
27095
|
+
*/
|
|
27096
|
+
kind: 'cell';
|
|
27097
|
+
/**
|
|
27098
|
+
* The dimension values this cell prices, for example resolution 1080p.
|
|
27099
|
+
*/
|
|
27100
|
+
when: {
|
|
27101
|
+
[key: string]: string;
|
|
27102
|
+
};
|
|
27103
|
+
} | {
|
|
27104
|
+
/**
|
|
27105
|
+
* This entry is the matrix's default amount, used when no cell matches.
|
|
27106
|
+
*/
|
|
27107
|
+
kind: 'default';
|
|
27108
|
+
};
|
|
27109
|
+
/**
|
|
27110
|
+
* The stored USD amount in major units as a decimal string, or null when the item does not price USD; never 0 as a stand-in.
|
|
27111
|
+
*/
|
|
27112
|
+
usd: string;
|
|
27113
|
+
/**
|
|
27114
|
+
* The stored CNY amount in major units as a decimal string, or null when the item does not price CNY; it is what a CNY account is charged, never 0 as a stand-in.
|
|
27115
|
+
*/
|
|
27116
|
+
cny: string;
|
|
27117
|
+
};
|
|
26807
27118
|
/**
|
|
26808
27119
|
* File expiration policy
|
|
26809
27120
|
*
|
|
@@ -36669,6 +36980,10 @@ export type MediaProvenance = {
|
|
|
36669
36980
|
* Model that performed the operation, as the model identifier returned by the model API.
|
|
36670
36981
|
*/
|
|
36671
36982
|
model: string;
|
|
36983
|
+
/**
|
|
36984
|
+
* 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.
|
|
36985
|
+
*/
|
|
36986
|
+
tier?: MediaMediaTier;
|
|
36672
36987
|
/**
|
|
36673
36988
|
* 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.
|
|
36674
36989
|
*/
|
|
@@ -37328,7 +37643,7 @@ export type MediaLineageNode = {
|
|
|
37328
37643
|
/**
|
|
37329
37644
|
* What a reference asset contributes to the generated or edited result.
|
|
37330
37645
|
*/
|
|
37331
|
-
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
|
|
37646
|
+
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video' | 'voice';
|
|
37332
37647
|
/**
|
|
37333
37648
|
* One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
|
|
37334
37649
|
*/
|
|
@@ -37386,6 +37701,14 @@ export type MediaSpeechCreateInput = {
|
|
|
37386
37701
|
* Language of the text, when the voice supports several.
|
|
37387
37702
|
*/
|
|
37388
37703
|
language?: string;
|
|
37704
|
+
/**
|
|
37705
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). 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.
|
|
37706
|
+
*/
|
|
37707
|
+
model?: string;
|
|
37708
|
+
/**
|
|
37709
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
37710
|
+
*/
|
|
37711
|
+
tier?: MediaMediaTier;
|
|
37389
37712
|
};
|
|
37390
37713
|
/**
|
|
37391
37714
|
* Body of a character element.
|
|
@@ -37551,6 +37874,7 @@ export type MediaHlsRendition = {
|
|
|
37551
37874
|
*/
|
|
37552
37875
|
state: MediaHlsRenditionState;
|
|
37553
37876
|
};
|
|
37877
|
+
export type MediaVoiceConsentId = string;
|
|
37554
37878
|
/**
|
|
37555
37879
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
37556
37880
|
*/
|
|
@@ -37736,6 +38060,31 @@ export type RegistryRegistryError = {
|
|
|
37736
38060
|
};
|
|
37737
38061
|
};
|
|
37738
38062
|
};
|
|
38063
|
+
/**
|
|
38064
|
+
* 树里的一个条目。
|
|
38065
|
+
*/
|
|
38066
|
+
export type RegistryGitTreeEntry = {
|
|
38067
|
+
/**
|
|
38068
|
+
* 这一层里的条目名。
|
|
38069
|
+
*/
|
|
38070
|
+
name: string;
|
|
38071
|
+
/**
|
|
38072
|
+
* 条目指向的对象类型;commit 是子模块。
|
|
38073
|
+
*/
|
|
38074
|
+
type: 'blob' | 'tree' | 'commit';
|
|
38075
|
+
/**
|
|
38076
|
+
* git 的模式位,例如 100644 或 040000。
|
|
38077
|
+
*/
|
|
38078
|
+
mode: string;
|
|
38079
|
+
/**
|
|
38080
|
+
* 条目指向的对象 id。
|
|
38081
|
+
*/
|
|
38082
|
+
sha: string;
|
|
38083
|
+
/**
|
|
38084
|
+
* 对象大小(字节),后端给出时才有。
|
|
38085
|
+
*/
|
|
38086
|
+
size?: number;
|
|
38087
|
+
};
|
|
37739
38088
|
/**
|
|
37740
38089
|
* 一个版本解压后的一个文件条目。
|
|
37741
38090
|
*/
|
|
@@ -47743,6 +48092,26 @@ export type RegistrySort = 'updated' | 'downloads';
|
|
|
47743
48092
|
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
47744
48093
|
*/
|
|
47745
48094
|
export type RegistryPackageId = string;
|
|
48095
|
+
/**
|
|
48096
|
+
* 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
|
|
48097
|
+
*/
|
|
48098
|
+
export type RegistryGitRef = string;
|
|
48099
|
+
/**
|
|
48100
|
+
* 这一页最多返回多少个提交,1 到 100,默认 20。
|
|
48101
|
+
*/
|
|
48102
|
+
export type RegistryGitLogLimit = number;
|
|
48103
|
+
/**
|
|
48104
|
+
* 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
|
|
48105
|
+
*/
|
|
48106
|
+
export type RegistryGitLogOffset = number;
|
|
48107
|
+
/**
|
|
48108
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
48109
|
+
*/
|
|
48110
|
+
export type RegistryGitObjectId = string;
|
|
48111
|
+
/**
|
|
48112
|
+
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
48113
|
+
*/
|
|
48114
|
+
export type RegistryGitFilePath = string;
|
|
47746
48115
|
/**
|
|
47747
48116
|
* 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
|
|
47748
48117
|
*/
|
|
@@ -52615,6 +52984,178 @@ export type GetAgentAppearanceResponses = {
|
|
|
52615
52984
|
};
|
|
52616
52985
|
};
|
|
52617
52986
|
export type GetAgentAppearanceResponse = GetAgentAppearanceResponses[keyof GetAgentAppearanceResponses];
|
|
52987
|
+
export type AgentsPhoneRetrieveData = {
|
|
52988
|
+
body?: never;
|
|
52989
|
+
path: {
|
|
52990
|
+
/**
|
|
52991
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
52992
|
+
*/
|
|
52993
|
+
agent_id: string;
|
|
52994
|
+
};
|
|
52995
|
+
query?: never;
|
|
52996
|
+
url: '/agent/v1/agents/{agent_id}/phone';
|
|
52997
|
+
};
|
|
52998
|
+
export type AgentsPhoneRetrieveErrors = {
|
|
52999
|
+
/**
|
|
53000
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53001
|
+
*/
|
|
53002
|
+
400: unknown;
|
|
53003
|
+
/**
|
|
53004
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53005
|
+
*/
|
|
53006
|
+
401: AgentError;
|
|
53007
|
+
/**
|
|
53008
|
+
* 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.
|
|
53009
|
+
*/
|
|
53010
|
+
403: AgentError;
|
|
53011
|
+
/**
|
|
53012
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
53013
|
+
*/
|
|
53014
|
+
404: unknown;
|
|
53015
|
+
/**
|
|
53016
|
+
* Agent service failed
|
|
53017
|
+
*/
|
|
53018
|
+
502: unknown;
|
|
53019
|
+
/**
|
|
53020
|
+
* Agent service unavailable
|
|
53021
|
+
*/
|
|
53022
|
+
503: unknown;
|
|
53023
|
+
};
|
|
53024
|
+
export type AgentsPhoneRetrieveError = AgentsPhoneRetrieveErrors[keyof AgentsPhoneRetrieveErrors];
|
|
53025
|
+
export type AgentsPhoneRetrieveResponses = {
|
|
53026
|
+
/**
|
|
53027
|
+
* This agent's phone: whether one is configured, what it is doing, and the public sandbox id to take it over with.
|
|
53028
|
+
*/
|
|
53029
|
+
200: {
|
|
53030
|
+
/**
|
|
53031
|
+
* Object type, always agent_phone.
|
|
53032
|
+
*/
|
|
53033
|
+
object: 'agent_phone';
|
|
53034
|
+
/**
|
|
53035
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53036
|
+
*/
|
|
53037
|
+
agent_id: string;
|
|
53038
|
+
/**
|
|
53039
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
53040
|
+
*/
|
|
53041
|
+
configured: boolean;
|
|
53042
|
+
/**
|
|
53043
|
+
* What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
|
|
53044
|
+
*/
|
|
53045
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53046
|
+
/**
|
|
53047
|
+
* The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
|
|
53048
|
+
*/
|
|
53049
|
+
sku: string | null;
|
|
53050
|
+
/**
|
|
53051
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53052
|
+
*/
|
|
53053
|
+
name: string | null;
|
|
53054
|
+
/**
|
|
53055
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
53056
|
+
*/
|
|
53057
|
+
sandbox_id: string | null;
|
|
53058
|
+
/**
|
|
53059
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
53060
|
+
*/
|
|
53061
|
+
lease_ends_at: string | null;
|
|
53062
|
+
/**
|
|
53063
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
53064
|
+
*/
|
|
53065
|
+
archived_at: string | null;
|
|
53066
|
+
/**
|
|
53067
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
53068
|
+
*/
|
|
53069
|
+
archive_error: string | null;
|
|
53070
|
+
};
|
|
53071
|
+
};
|
|
53072
|
+
export type AgentsPhoneRetrieveResponse = AgentsPhoneRetrieveResponses[keyof AgentsPhoneRetrieveResponses];
|
|
53073
|
+
export type AgentsPhoneReleaseData = {
|
|
53074
|
+
body?: never;
|
|
53075
|
+
path: {
|
|
53076
|
+
/**
|
|
53077
|
+
* Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
53078
|
+
*/
|
|
53079
|
+
agent_id: string;
|
|
53080
|
+
};
|
|
53081
|
+
query?: never;
|
|
53082
|
+
url: '/agent/v1/agents/{agent_id}/phone/release';
|
|
53083
|
+
};
|
|
53084
|
+
export type AgentsPhoneReleaseErrors = {
|
|
53085
|
+
/**
|
|
53086
|
+
* INVALID_PARAMS: the agent_id is missing or malformed.
|
|
53087
|
+
*/
|
|
53088
|
+
400: unknown;
|
|
53089
|
+
/**
|
|
53090
|
+
* UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53091
|
+
*/
|
|
53092
|
+
401: AgentError;
|
|
53093
|
+
/**
|
|
53094
|
+
* 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.
|
|
53095
|
+
*/
|
|
53096
|
+
403: AgentError;
|
|
53097
|
+
/**
|
|
53098
|
+
* AGENT_NOT_FOUND: no agent with this reference belongs to your organization, this credential cannot see it, or it is a service agent (which never has a phone).
|
|
53099
|
+
*/
|
|
53100
|
+
404: unknown;
|
|
53101
|
+
/**
|
|
53102
|
+
* Agent service failed
|
|
53103
|
+
*/
|
|
53104
|
+
502: unknown;
|
|
53105
|
+
/**
|
|
53106
|
+
* Agent service unavailable
|
|
53107
|
+
*/
|
|
53108
|
+
503: unknown;
|
|
53109
|
+
};
|
|
53110
|
+
export type AgentsPhoneReleaseError = AgentsPhoneReleaseErrors[keyof AgentsPhoneReleaseErrors];
|
|
53111
|
+
export type AgentsPhoneReleaseResponses = {
|
|
53112
|
+
/**
|
|
53113
|
+
* The phone with the release recorded: state releasing, or none when there was nothing to release.
|
|
53114
|
+
*/
|
|
53115
|
+
200: {
|
|
53116
|
+
/**
|
|
53117
|
+
* Object type, always agent_phone.
|
|
53118
|
+
*/
|
|
53119
|
+
object: 'agent_phone';
|
|
53120
|
+
/**
|
|
53121
|
+
* The agent's public id (agent_…), the agent this phone belongs to.
|
|
53122
|
+
*/
|
|
53123
|
+
agent_id: string;
|
|
53124
|
+
/**
|
|
53125
|
+
* Whether this agent has a phone configured at all. false means no phone block is saved (the phone is off); it is not an error.
|
|
53126
|
+
*/
|
|
53127
|
+
configured: boolean;
|
|
53128
|
+
/**
|
|
53129
|
+
* What the phone is doing now. none: no phone built (or its instance is gone), so a later use builds one. starting: the sandbox is still creating the instance. booting: the instance is up and the phone program has not said hello yet. restoring: last time's app state is being put back on the instance. running: usable now. archiving: the app state is being packed before it is killed (a release begins here). releasing: a release was asked for and the cron has not finished archiving and killing it.
|
|
53130
|
+
*/
|
|
53131
|
+
state: 'none' | 'starting' | 'booting' | 'restoring' | 'running' | 'archiving' | 'releasing';
|
|
53132
|
+
/**
|
|
53133
|
+
* The sandbox SKU the phone is built from (for example android-2c4g), or null when no phone is configured. A configuration change of the SKU releases the old device.
|
|
53134
|
+
*/
|
|
53135
|
+
sku: string | null;
|
|
53136
|
+
/**
|
|
53137
|
+
* What people and the model call this phone, or null when no phone is configured.
|
|
53138
|
+
*/
|
|
53139
|
+
name: string | null;
|
|
53140
|
+
/**
|
|
53141
|
+
* The public sandbox id of the running instance, or null when there is no instance. Take the phone over with it: POST /sandbox/v1/sandboxes/{id}/act, or the Console sandbox page's screen tab.
|
|
53142
|
+
*/
|
|
53143
|
+
sandbox_id: string | null;
|
|
53144
|
+
/**
|
|
53145
|
+
* When the current instance's lease runs out, in RFC 3339; the sandbox kills the phone then. Null when there is no instance; every use extends the lease.
|
|
53146
|
+
*/
|
|
53147
|
+
lease_ends_at: string | null;
|
|
53148
|
+
/**
|
|
53149
|
+
* When the app state was last packed for this phone, in RFC 3339; null when it never was. The archive is what a fresh instance restores on the next use.
|
|
53150
|
+
*/
|
|
53151
|
+
archived_at: string | null;
|
|
53152
|
+
/**
|
|
53153
|
+
* Why the last app-state archive failed, or null. A phone that could not be packed is still released, but the last state is not kept.
|
|
53154
|
+
*/
|
|
53155
|
+
archive_error: string | null;
|
|
53156
|
+
};
|
|
53157
|
+
};
|
|
53158
|
+
export type AgentsPhoneReleaseResponse = AgentsPhoneReleaseResponses[keyof AgentsPhoneReleaseResponses];
|
|
52618
53159
|
export type GetAgentEmbedPolicyData = {
|
|
52619
53160
|
body?: never;
|
|
52620
53161
|
path: {
|
|
@@ -55291,6 +55832,288 @@ export type ComputersFilesContentResponses = {
|
|
|
55291
55832
|
206: Blob | File;
|
|
55292
55833
|
};
|
|
55293
55834
|
export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
|
|
55835
|
+
export type PreviewComputerFileData = {
|
|
55836
|
+
body?: never;
|
|
55837
|
+
path: {
|
|
55838
|
+
/**
|
|
55839
|
+
* Computer id from computer creation or listing; a computer another tenant owns is not found.
|
|
55840
|
+
*/
|
|
55841
|
+
computer_id: string;
|
|
55842
|
+
};
|
|
55843
|
+
query: {
|
|
55844
|
+
/**
|
|
55845
|
+
* Absolute path of the file on the computer, or a /workspace/ relative path.
|
|
55846
|
+
*/
|
|
55847
|
+
path: string;
|
|
55848
|
+
/**
|
|
55849
|
+
* 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.
|
|
55850
|
+
*/
|
|
55851
|
+
v?: string;
|
|
55852
|
+
/**
|
|
55853
|
+
* 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.
|
|
55854
|
+
*/
|
|
55855
|
+
variant?: 'auto' | 'image' | 'pdf' | 'text' | 'original';
|
|
55856
|
+
};
|
|
55857
|
+
url: '/agent/v1/computers/{computer_id}/files/preview';
|
|
55858
|
+
};
|
|
55859
|
+
export type PreviewComputerFileErrors = {
|
|
55860
|
+
/**
|
|
55861
|
+
* 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.
|
|
55862
|
+
*/
|
|
55863
|
+
400: {
|
|
55864
|
+
type: 'error';
|
|
55865
|
+
error: {
|
|
55866
|
+
/**
|
|
55867
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55868
|
+
*/
|
|
55869
|
+
type: string;
|
|
55870
|
+
message: string;
|
|
55871
|
+
code: string;
|
|
55872
|
+
retryable: boolean;
|
|
55873
|
+
/**
|
|
55874
|
+
* How to recover, for computer failures.
|
|
55875
|
+
*/
|
|
55876
|
+
hint?: string;
|
|
55877
|
+
};
|
|
55878
|
+
/**
|
|
55879
|
+
* Equals the X-Request-Id response header.
|
|
55880
|
+
*/
|
|
55881
|
+
request_id: string;
|
|
55882
|
+
};
|
|
55883
|
+
/**
|
|
55884
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55885
|
+
*/
|
|
55886
|
+
401: {
|
|
55887
|
+
type: 'error';
|
|
55888
|
+
error: {
|
|
55889
|
+
/**
|
|
55890
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55891
|
+
*/
|
|
55892
|
+
type: string;
|
|
55893
|
+
message: string;
|
|
55894
|
+
code: string;
|
|
55895
|
+
retryable: boolean;
|
|
55896
|
+
/**
|
|
55897
|
+
* How to recover, for computer failures.
|
|
55898
|
+
*/
|
|
55899
|
+
hint?: string;
|
|
55900
|
+
};
|
|
55901
|
+
/**
|
|
55902
|
+
* Equals the X-Request-Id response header.
|
|
55903
|
+
*/
|
|
55904
|
+
request_id: string;
|
|
55905
|
+
};
|
|
55906
|
+
/**
|
|
55907
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
55908
|
+
*/
|
|
55909
|
+
403: {
|
|
55910
|
+
type: 'error';
|
|
55911
|
+
error: {
|
|
55912
|
+
/**
|
|
55913
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55914
|
+
*/
|
|
55915
|
+
type: string;
|
|
55916
|
+
message: string;
|
|
55917
|
+
code: string;
|
|
55918
|
+
retryable: boolean;
|
|
55919
|
+
/**
|
|
55920
|
+
* How to recover, for computer failures.
|
|
55921
|
+
*/
|
|
55922
|
+
hint?: string;
|
|
55923
|
+
};
|
|
55924
|
+
/**
|
|
55925
|
+
* Equals the X-Request-Id response header.
|
|
55926
|
+
*/
|
|
55927
|
+
request_id: string;
|
|
55928
|
+
};
|
|
55929
|
+
/**
|
|
55930
|
+
* Computer or path not found; foreign computers are indistinguishable from absent computers.
|
|
55931
|
+
*/
|
|
55932
|
+
404: {
|
|
55933
|
+
type: 'error';
|
|
55934
|
+
error: {
|
|
55935
|
+
/**
|
|
55936
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55937
|
+
*/
|
|
55938
|
+
type: string;
|
|
55939
|
+
message: string;
|
|
55940
|
+
code: string;
|
|
55941
|
+
retryable: boolean;
|
|
55942
|
+
/**
|
|
55943
|
+
* How to recover, for computer failures.
|
|
55944
|
+
*/
|
|
55945
|
+
hint?: string;
|
|
55946
|
+
};
|
|
55947
|
+
/**
|
|
55948
|
+
* Equals the X-Request-Id response header.
|
|
55949
|
+
*/
|
|
55950
|
+
request_id: string;
|
|
55951
|
+
};
|
|
55952
|
+
/**
|
|
55953
|
+
* STALE_DIGEST: the file changed while its product was read; ask again.
|
|
55954
|
+
*/
|
|
55955
|
+
409: {
|
|
55956
|
+
type: 'error';
|
|
55957
|
+
error: {
|
|
55958
|
+
/**
|
|
55959
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55960
|
+
*/
|
|
55961
|
+
type: string;
|
|
55962
|
+
message: string;
|
|
55963
|
+
code: string;
|
|
55964
|
+
retryable: boolean;
|
|
55965
|
+
/**
|
|
55966
|
+
* How to recover, for computer failures.
|
|
55967
|
+
*/
|
|
55968
|
+
hint?: string;
|
|
55969
|
+
};
|
|
55970
|
+
/**
|
|
55971
|
+
* Equals the X-Request-Id response header.
|
|
55972
|
+
*/
|
|
55973
|
+
request_id: string;
|
|
55974
|
+
};
|
|
55975
|
+
/**
|
|
55976
|
+
* FILE_TOO_LARGE: the file exceeds the preview transfer limit; read it through the sandbox connection issued by connect, or use the content door.
|
|
55977
|
+
*/
|
|
55978
|
+
413: {
|
|
55979
|
+
type: 'error';
|
|
55980
|
+
error: {
|
|
55981
|
+
/**
|
|
55982
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
55983
|
+
*/
|
|
55984
|
+
type: string;
|
|
55985
|
+
message: string;
|
|
55986
|
+
code: string;
|
|
55987
|
+
retryable: boolean;
|
|
55988
|
+
/**
|
|
55989
|
+
* How to recover, for computer failures.
|
|
55990
|
+
*/
|
|
55991
|
+
hint?: string;
|
|
55992
|
+
};
|
|
55993
|
+
/**
|
|
55994
|
+
* Equals the X-Request-Id response header.
|
|
55995
|
+
*/
|
|
55996
|
+
request_id: string;
|
|
55997
|
+
};
|
|
55998
|
+
/**
|
|
55999
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56000
|
+
*/
|
|
56001
|
+
429: {
|
|
56002
|
+
type: 'error';
|
|
56003
|
+
error: {
|
|
56004
|
+
/**
|
|
56005
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56006
|
+
*/
|
|
56007
|
+
type: string;
|
|
56008
|
+
message: string;
|
|
56009
|
+
code: string;
|
|
56010
|
+
retryable: boolean;
|
|
56011
|
+
/**
|
|
56012
|
+
* How to recover, for computer failures.
|
|
56013
|
+
*/
|
|
56014
|
+
hint?: string;
|
|
56015
|
+
};
|
|
56016
|
+
/**
|
|
56017
|
+
* Equals the X-Request-Id response header.
|
|
56018
|
+
*/
|
|
56019
|
+
request_id: string;
|
|
56020
|
+
};
|
|
56021
|
+
/**
|
|
56022
|
+
* Platform error in the one /agent/v1 error body; computer failures add error.hint
|
|
56023
|
+
*/
|
|
56024
|
+
500: {
|
|
56025
|
+
type: 'error';
|
|
56026
|
+
error: {
|
|
56027
|
+
/**
|
|
56028
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56029
|
+
*/
|
|
56030
|
+
type: string;
|
|
56031
|
+
message: string;
|
|
56032
|
+
code: string;
|
|
56033
|
+
retryable: boolean;
|
|
56034
|
+
/**
|
|
56035
|
+
* How to recover, for computer failures.
|
|
56036
|
+
*/
|
|
56037
|
+
hint?: string;
|
|
56038
|
+
};
|
|
56039
|
+
/**
|
|
56040
|
+
* Equals the X-Request-Id response header.
|
|
56041
|
+
*/
|
|
56042
|
+
request_id: string;
|
|
56043
|
+
};
|
|
56044
|
+
/**
|
|
56045
|
+
* PREVIEW_UNAVAILABLE: preview products or image transformation are not configured for this deployment, or the File service could not be reached; retry later.
|
|
56046
|
+
*/
|
|
56047
|
+
503: {
|
|
56048
|
+
type: 'error';
|
|
56049
|
+
error: {
|
|
56050
|
+
/**
|
|
56051
|
+
* Anthropic error type, such as invalid_request_error or not_found_error.
|
|
56052
|
+
*/
|
|
56053
|
+
type: string;
|
|
56054
|
+
message: string;
|
|
56055
|
+
code: string;
|
|
56056
|
+
retryable: boolean;
|
|
56057
|
+
/**
|
|
56058
|
+
* How to recover, for computer failures.
|
|
56059
|
+
*/
|
|
56060
|
+
hint?: string;
|
|
56061
|
+
};
|
|
56062
|
+
/**
|
|
56063
|
+
* Equals the X-Request-Id response header.
|
|
56064
|
+
*/
|
|
56065
|
+
request_id: string;
|
|
56066
|
+
};
|
|
56067
|
+
};
|
|
56068
|
+
export type PreviewComputerFileError = PreviewComputerFileErrors[keyof PreviewComputerFileErrors];
|
|
56069
|
+
export type PreviewComputerFileResponses = {
|
|
56070
|
+
/**
|
|
56071
|
+
* The preview product, or the fallback that sends the caller to the content door.
|
|
56072
|
+
*/
|
|
56073
|
+
200: {
|
|
56074
|
+
/**
|
|
56075
|
+
* 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.
|
|
56076
|
+
*/
|
|
56077
|
+
variant: 'image' | 'pdf' | 'text' | 'original';
|
|
56078
|
+
/**
|
|
56079
|
+
* The product version (<size>-<mtimeMs>-<variant>-fmt<N>) this answer belongs to; absent when the file has no mtime, so nothing may be pinned.
|
|
56080
|
+
*/
|
|
56081
|
+
version?: string;
|
|
56082
|
+
/**
|
|
56083
|
+
* Media type of the product, or of the original bytes.
|
|
56084
|
+
*/
|
|
56085
|
+
mime_type?: string;
|
|
56086
|
+
/**
|
|
56087
|
+
* Size of the product in bytes.
|
|
56088
|
+
*/
|
|
56089
|
+
size?: number;
|
|
56090
|
+
/**
|
|
56091
|
+
* File id of the stored product in the File service, when the product was stored.
|
|
56092
|
+
*/
|
|
56093
|
+
file_id?: string;
|
|
56094
|
+
/**
|
|
56095
|
+
* Signed read address of the product; the caller streams it and caches by the version it pinned.
|
|
56096
|
+
*/
|
|
56097
|
+
url?: string;
|
|
56098
|
+
/**
|
|
56099
|
+
* When the signed read address stops working.
|
|
56100
|
+
*/
|
|
56101
|
+
expires_at?: string;
|
|
56102
|
+
/**
|
|
56103
|
+
* true when an existing product answered without regenerating it.
|
|
56104
|
+
*/
|
|
56105
|
+
cached: boolean;
|
|
56106
|
+
/**
|
|
56107
|
+
* 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.
|
|
56108
|
+
*/
|
|
56109
|
+
fallback?: 'content';
|
|
56110
|
+
/**
|
|
56111
|
+
* true only on a pre-generation request over the kind's threshold, where generation was skipped.
|
|
56112
|
+
*/
|
|
56113
|
+
skipped?: boolean;
|
|
56114
|
+
};
|
|
56115
|
+
};
|
|
56116
|
+
export type PreviewComputerFileResponse = PreviewComputerFileResponses[keyof PreviewComputerFileResponses];
|
|
55294
56117
|
export type ComputersFilesConvertData = {
|
|
55295
56118
|
body?: never;
|
|
55296
56119
|
path: {
|
|
@@ -58280,6 +59103,23 @@ export type ForkSessionResponses = {
|
|
|
58280
59103
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
58281
59104
|
*/
|
|
58282
59105
|
cwd: string;
|
|
59106
|
+
/**
|
|
59107
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
59108
|
+
*/
|
|
59109
|
+
workspace?: {
|
|
59110
|
+
/**
|
|
59111
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
59112
|
+
*/
|
|
59113
|
+
kind: 'shared' | 'isolated';
|
|
59114
|
+
/**
|
|
59115
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
59116
|
+
*/
|
|
59117
|
+
path?: string;
|
|
59118
|
+
/**
|
|
59119
|
+
* The worktree's branch; present only when kind is isolated.
|
|
59120
|
+
*/
|
|
59121
|
+
branch?: string;
|
|
59122
|
+
};
|
|
58283
59123
|
/**
|
|
58284
59124
|
* 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.
|
|
58285
59125
|
*/
|
|
@@ -60005,6 +60845,23 @@ export type RenameSessionResponses = {
|
|
|
60005
60845
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
60006
60846
|
*/
|
|
60007
60847
|
cwd: string;
|
|
60848
|
+
/**
|
|
60849
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
60850
|
+
*/
|
|
60851
|
+
workspace?: {
|
|
60852
|
+
/**
|
|
60853
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
60854
|
+
*/
|
|
60855
|
+
kind: 'shared' | 'isolated';
|
|
60856
|
+
/**
|
|
60857
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
60858
|
+
*/
|
|
60859
|
+
path?: string;
|
|
60860
|
+
/**
|
|
60861
|
+
* The worktree's branch; present only when kind is isolated.
|
|
60862
|
+
*/
|
|
60863
|
+
branch?: string;
|
|
60864
|
+
};
|
|
60008
60865
|
/**
|
|
60009
60866
|
* 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.
|
|
60010
60867
|
*/
|
|
@@ -61736,6 +62593,23 @@ export type UpdateSessionAgentVersionResponses = {
|
|
|
61736
62593
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
61737
62594
|
*/
|
|
61738
62595
|
cwd: string;
|
|
62596
|
+
/**
|
|
62597
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
62598
|
+
*/
|
|
62599
|
+
workspace?: {
|
|
62600
|
+
/**
|
|
62601
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
62602
|
+
*/
|
|
62603
|
+
kind: 'shared' | 'isolated';
|
|
62604
|
+
/**
|
|
62605
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
62606
|
+
*/
|
|
62607
|
+
path?: string;
|
|
62608
|
+
/**
|
|
62609
|
+
* The worktree's branch; present only when kind is isolated.
|
|
62610
|
+
*/
|
|
62611
|
+
branch?: string;
|
|
62612
|
+
};
|
|
61739
62613
|
/**
|
|
61740
62614
|
* 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.
|
|
61741
62615
|
*/
|
|
@@ -62872,6 +63746,29 @@ export type CreateAudioSpeechResponses = {
|
|
|
62872
63746
|
200: Blob | File;
|
|
62873
63747
|
};
|
|
62874
63748
|
export type CreateAudioSpeechResponse = CreateAudioSpeechResponses[keyof CreateAudioSpeechResponses];
|
|
63749
|
+
export type ListPublicPricesData = {
|
|
63750
|
+
body?: never;
|
|
63751
|
+
path?: never;
|
|
63752
|
+
query?: never;
|
|
63753
|
+
url: '/billing/v1/prices';
|
|
63754
|
+
};
|
|
63755
|
+
export type ListPublicPricesErrors = {
|
|
63756
|
+
/**
|
|
63757
|
+
* The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
|
|
63758
|
+
*/
|
|
63759
|
+
502: unknown;
|
|
63760
|
+
/**
|
|
63761
|
+
* The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.
|
|
63762
|
+
*/
|
|
63763
|
+
503: unknown;
|
|
63764
|
+
};
|
|
63765
|
+
export type ListPublicPricesResponses = {
|
|
63766
|
+
/**
|
|
63767
|
+
* The catalog in force. price_list.items is grouped by nothing — order by product and name to render a table; a null amount means the currency is not priced, not that it is free.
|
|
63768
|
+
*/
|
|
63769
|
+
200: BillingPriceList;
|
|
63770
|
+
};
|
|
63771
|
+
export type ListPublicPricesResponse = ListPublicPricesResponses[keyof ListPublicPricesResponses];
|
|
62875
63772
|
export type BrowserListSessionsData = {
|
|
62876
63773
|
body?: never;
|
|
62877
63774
|
path?: never;
|
|
@@ -63524,7 +64421,7 @@ export type BrowserRunPageActionData = {
|
|
|
63524
64421
|
*/
|
|
63525
64422
|
name: string;
|
|
63526
64423
|
/**
|
|
63527
|
-
* cookie 值,最多 4096
|
|
64424
|
+
* cookie 值,最多 4096 个字符,可为空字符串但字段必须出现(省略或传 null 会被拒绝,错误会说明是哪个字段、违反了什么规则);它是凭据,不会出现在动作结果、事件或日志里。
|
|
63528
64425
|
*/
|
|
63529
64426
|
value: string;
|
|
63530
64427
|
/**
|
|
@@ -65518,7 +66415,7 @@ export type ListModelsData = {
|
|
|
65518
66415
|
/**
|
|
65519
66416
|
* 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.
|
|
65520
66417
|
*/
|
|
65521
|
-
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'>;
|
|
66418
|
+
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'>;
|
|
65522
66419
|
/**
|
|
65523
66420
|
* Filter by one or more model types (comma-separated).
|
|
65524
66421
|
*/
|
|
@@ -73769,6 +74666,268 @@ export type RenameSandboxResponses = {
|
|
|
73769
74666
|
};
|
|
73770
74667
|
};
|
|
73771
74668
|
export type RenameSandboxResponse = RenameSandboxResponses[keyof RenameSandboxResponses];
|
|
74669
|
+
export type ActOnSandboxDisplayData = {
|
|
74670
|
+
body: {
|
|
74671
|
+
/**
|
|
74672
|
+
* Action kind; exactly "snapshot".
|
|
74673
|
+
*/
|
|
74674
|
+
type: 'snapshot';
|
|
74675
|
+
} | {
|
|
74676
|
+
/**
|
|
74677
|
+
* Action kind; exactly "screenshot".
|
|
74678
|
+
*/
|
|
74679
|
+
type: 'screenshot';
|
|
74680
|
+
} | {
|
|
74681
|
+
/**
|
|
74682
|
+
* Action kind; exactly "tap".
|
|
74683
|
+
*/
|
|
74684
|
+
type: 'tap';
|
|
74685
|
+
/**
|
|
74686
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74687
|
+
*/
|
|
74688
|
+
ref?: string;
|
|
74689
|
+
/**
|
|
74690
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74691
|
+
*/
|
|
74692
|
+
x?: number;
|
|
74693
|
+
/**
|
|
74694
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74695
|
+
*/
|
|
74696
|
+
y?: number;
|
|
74697
|
+
} | {
|
|
74698
|
+
/**
|
|
74699
|
+
* Action kind; exactly "long_press".
|
|
74700
|
+
*/
|
|
74701
|
+
type: 'long_press';
|
|
74702
|
+
/**
|
|
74703
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74704
|
+
*/
|
|
74705
|
+
ref?: string;
|
|
74706
|
+
/**
|
|
74707
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74708
|
+
*/
|
|
74709
|
+
x?: number;
|
|
74710
|
+
/**
|
|
74711
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74712
|
+
*/
|
|
74713
|
+
y?: number;
|
|
74714
|
+
/**
|
|
74715
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74716
|
+
*/
|
|
74717
|
+
durationMs?: number;
|
|
74718
|
+
} | {
|
|
74719
|
+
/**
|
|
74720
|
+
* Action kind; exactly "swipe".
|
|
74721
|
+
*/
|
|
74722
|
+
type: 'swipe';
|
|
74723
|
+
/**
|
|
74724
|
+
* Where the finger starts.
|
|
74725
|
+
*/
|
|
74726
|
+
from: {
|
|
74727
|
+
/**
|
|
74728
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74729
|
+
*/
|
|
74730
|
+
x: number;
|
|
74731
|
+
/**
|
|
74732
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74733
|
+
*/
|
|
74734
|
+
y: number;
|
|
74735
|
+
};
|
|
74736
|
+
/**
|
|
74737
|
+
* Where the finger ends.
|
|
74738
|
+
*/
|
|
74739
|
+
to: {
|
|
74740
|
+
/**
|
|
74741
|
+
* Screen x in pixels, 0 to 10000; 0 is the left edge.
|
|
74742
|
+
*/
|
|
74743
|
+
x: number;
|
|
74744
|
+
/**
|
|
74745
|
+
* Screen y in pixels, 0 to 10000; 0 is the top edge.
|
|
74746
|
+
*/
|
|
74747
|
+
y: number;
|
|
74748
|
+
};
|
|
74749
|
+
/**
|
|
74750
|
+
* How long the gesture lasts, in milliseconds, 1 to 10000; omitted uses a natural flick for swipe and 1000 for long_press.
|
|
74751
|
+
*/
|
|
74752
|
+
durationMs?: number;
|
|
74753
|
+
} | {
|
|
74754
|
+
/**
|
|
74755
|
+
* Action kind; exactly "scroll".
|
|
74756
|
+
*/
|
|
74757
|
+
type: 'scroll';
|
|
74758
|
+
/**
|
|
74759
|
+
* Which way the view moves, as on a scroll wheel: down shows what is below. The finger swipes the opposite way, a quarter screen each side of the start point.
|
|
74760
|
+
*/
|
|
74761
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
74762
|
+
/**
|
|
74763
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74764
|
+
*/
|
|
74765
|
+
ref?: string;
|
|
74766
|
+
} | {
|
|
74767
|
+
/**
|
|
74768
|
+
* Action kind; exactly "type".
|
|
74769
|
+
*/
|
|
74770
|
+
type: 'type';
|
|
74771
|
+
/**
|
|
74772
|
+
* Text to type, at most 10000 characters. ASCII only, because the phone types character by character; non-ASCII text is refused with INVALID_PARAMS.
|
|
74773
|
+
*/
|
|
74774
|
+
text: string;
|
|
74775
|
+
/**
|
|
74776
|
+
* Ref of a node in the latest snapshot, such as e5; a snapshot mints the refs and a later snapshot replaces them, so a ref from an older snapshot is refused with INVALID_PARAMS.
|
|
74777
|
+
*/
|
|
74778
|
+
ref?: string;
|
|
74779
|
+
} | {
|
|
74780
|
+
/**
|
|
74781
|
+
* Action kind; exactly "key".
|
|
74782
|
+
*/
|
|
74783
|
+
type: 'key';
|
|
74784
|
+
/**
|
|
74785
|
+
* Which key to press.
|
|
74786
|
+
*/
|
|
74787
|
+
key: 'back' | 'home' | 'recents' | 'enter' | 'delete' | 'power' | 'volume_up' | 'volume_down';
|
|
74788
|
+
} | {
|
|
74789
|
+
/**
|
|
74790
|
+
* Action kind; exactly "open_app".
|
|
74791
|
+
*/
|
|
74792
|
+
type: 'open_app';
|
|
74793
|
+
/**
|
|
74794
|
+
* Java package name of the app, such as com.android.settings.
|
|
74795
|
+
*/
|
|
74796
|
+
package: string;
|
|
74797
|
+
/**
|
|
74798
|
+
* Activity to open as android:name, such as com.example.app.MainActivity; omitted opens the package's launcher activity.
|
|
74799
|
+
*/
|
|
74800
|
+
activity?: string;
|
|
74801
|
+
} | {
|
|
74802
|
+
/**
|
|
74803
|
+
* Action kind; exactly "close_app".
|
|
74804
|
+
*/
|
|
74805
|
+
type: 'close_app';
|
|
74806
|
+
/**
|
|
74807
|
+
* Java package name of the app, such as com.android.settings.
|
|
74808
|
+
*/
|
|
74809
|
+
package: string;
|
|
74810
|
+
} | {
|
|
74811
|
+
/**
|
|
74812
|
+
* Action kind; exactly "open_url".
|
|
74813
|
+
*/
|
|
74814
|
+
type: 'open_url';
|
|
74815
|
+
/**
|
|
74816
|
+
* Absolute http or https URL to open in the phone's browser.
|
|
74817
|
+
*/
|
|
74818
|
+
url: string;
|
|
74819
|
+
} | {
|
|
74820
|
+
/**
|
|
74821
|
+
* Action kind; exactly "wait".
|
|
74822
|
+
*/
|
|
74823
|
+
type: 'wait';
|
|
74824
|
+
/**
|
|
74825
|
+
* How long to wait, in milliseconds, 1 to 10000, before the call returns.
|
|
74826
|
+
*/
|
|
74827
|
+
ms: number;
|
|
74828
|
+
};
|
|
74829
|
+
path: {
|
|
74830
|
+
/**
|
|
74831
|
+
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
74832
|
+
*/
|
|
74833
|
+
sandboxID: string;
|
|
74834
|
+
};
|
|
74835
|
+
query?: never;
|
|
74836
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/act';
|
|
74837
|
+
};
|
|
74838
|
+
export type ActOnSandboxDisplayErrors = {
|
|
74839
|
+
/**
|
|
74840
|
+
* INVALID_PARAMS: the body is not one known action, a field is missing, wrongly typed or outside its range, a target names both a ref and coordinates (or neither), a ref is not in the latest snapshot, or the text is not ASCII.
|
|
74841
|
+
*/
|
|
74842
|
+
400: unknown;
|
|
74843
|
+
/**
|
|
74844
|
+
* Authentication required: supply an organization API key.
|
|
74845
|
+
*/
|
|
74846
|
+
401: unknown;
|
|
74847
|
+
/**
|
|
74848
|
+
* NOT_FOUND: the sandbox is absent or belongs to another organization.
|
|
74849
|
+
*/
|
|
74850
|
+
404: unknown;
|
|
74851
|
+
/**
|
|
74852
|
+
* CAPABILITY_UNSUPPORTED: this sandbox is not a phone, so it has no screen; create one with templateID "android".
|
|
74853
|
+
*/
|
|
74854
|
+
501: unknown;
|
|
74855
|
+
/**
|
|
74856
|
+
* DEVICE_NOT_READY: the phone is not drivable yet, and the body names the state it is in — starting while its machine is still being built, booting while the machine runs but the phone program has not connected. Both carry retryable: true and Retry-After: 2; wait that long and send the action again. SERVICE_UNAVAILABLE: the phone is connected but answered nothing this time (its own timeout, or a connection that went away mid-action); retry the same way. The sandbox's state and readyAt on GET /sandbox/v1/sandboxes/{sandboxID} tell the same story: readyAt is the instant the phone program said hello, and its absence is booting.
|
|
74857
|
+
*/
|
|
74858
|
+
503: unknown;
|
|
74859
|
+
};
|
|
74860
|
+
export type ActOnSandboxDisplayResponses = {
|
|
74861
|
+
/**
|
|
74862
|
+
* The action's result: the UI hierarchy and refs for snapshot, image bytes for screenshot, the applied duration for a long press, or an acknowledgement with no data.
|
|
74863
|
+
*/
|
|
74864
|
+
200: {
|
|
74865
|
+
/**
|
|
74866
|
+
* Result kind; "snapshot" for this shape.
|
|
74867
|
+
*/
|
|
74868
|
+
type: 'snapshot';
|
|
74869
|
+
/**
|
|
74870
|
+
* The screen as an indented text list, one line per meaningful node: its role, its text in quotes and, for a node you can act on, its ref, such as - button "登录" [ref=e3]. Password text is masked.
|
|
74871
|
+
*/
|
|
74872
|
+
snapshot: string;
|
|
74873
|
+
/**
|
|
74874
|
+
* How many nodes received a ref that tap, long_press, scroll and type accept.
|
|
74875
|
+
*/
|
|
74876
|
+
refs: number;
|
|
74877
|
+
/**
|
|
74878
|
+
* True when the hierarchy was too large and was cut; the returned refs still name their nodes.
|
|
74879
|
+
*/
|
|
74880
|
+
truncated: boolean;
|
|
74881
|
+
/**
|
|
74882
|
+
* Package name of the app that was in the foreground at the snapshot, such as com.android.settings.
|
|
74883
|
+
*/
|
|
74884
|
+
package: string;
|
|
74885
|
+
} | {
|
|
74886
|
+
/**
|
|
74887
|
+
* Result kind; "screenshot" for this shape.
|
|
74888
|
+
*/
|
|
74889
|
+
type: 'screenshot';
|
|
74890
|
+
/**
|
|
74891
|
+
* Image MIME type of the encoded bytes; image/jpeg. In code mode, return "data:" + mediaType + ";base64," + data to see the image.
|
|
74892
|
+
*/
|
|
74893
|
+
mediaType: string;
|
|
74894
|
+
/**
|
|
74895
|
+
* Base64-encoded image bytes; decode before saving or viewing.
|
|
74896
|
+
*/
|
|
74897
|
+
data: string;
|
|
74898
|
+
/**
|
|
74899
|
+
* Image width in pixels.
|
|
74900
|
+
*/
|
|
74901
|
+
width: number;
|
|
74902
|
+
/**
|
|
74903
|
+
* Image height in pixels.
|
|
74904
|
+
*/
|
|
74905
|
+
height: number;
|
|
74906
|
+
/**
|
|
74907
|
+
* Decoded image size in bytes.
|
|
74908
|
+
*/
|
|
74909
|
+
bytes: number;
|
|
74910
|
+
} | {
|
|
74911
|
+
/**
|
|
74912
|
+
* Result kind; "ok" for an action with no result of its own.
|
|
74913
|
+
*/
|
|
74914
|
+
type: 'ok';
|
|
74915
|
+
/**
|
|
74916
|
+
* How long the phone took to run the action, in milliseconds.
|
|
74917
|
+
*/
|
|
74918
|
+
ms?: number;
|
|
74919
|
+
} | {
|
|
74920
|
+
/**
|
|
74921
|
+
* Result kind; "wait" for the wait action.
|
|
74922
|
+
*/
|
|
74923
|
+
type: 'wait';
|
|
74924
|
+
/**
|
|
74925
|
+
* How long the call waited, in milliseconds; echoes the requested ms.
|
|
74926
|
+
*/
|
|
74927
|
+
ms: number;
|
|
74928
|
+
};
|
|
74929
|
+
};
|
|
74930
|
+
export type ActOnSandboxDisplayResponse = ActOnSandboxDisplayResponses[keyof ActOnSandboxDisplayResponses];
|
|
73772
74931
|
export type RemoveSandboxFileData = {
|
|
73773
74932
|
body?: never;
|
|
73774
74933
|
path: {
|
|
@@ -74344,6 +75503,23 @@ export type SessionsRetrieveResponses = {
|
|
|
74344
75503
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74345
75504
|
*/
|
|
74346
75505
|
cwd: string;
|
|
75506
|
+
/**
|
|
75507
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75508
|
+
*/
|
|
75509
|
+
workspace?: {
|
|
75510
|
+
/**
|
|
75511
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75512
|
+
*/
|
|
75513
|
+
kind: 'shared' | 'isolated';
|
|
75514
|
+
/**
|
|
75515
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75516
|
+
*/
|
|
75517
|
+
path?: string;
|
|
75518
|
+
/**
|
|
75519
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75520
|
+
*/
|
|
75521
|
+
branch?: string;
|
|
75522
|
+
};
|
|
74347
75523
|
/**
|
|
74348
75524
|
* 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.
|
|
74349
75525
|
*/
|
|
@@ -74639,6 +75815,23 @@ export type SessionsUpdateResponses = {
|
|
|
74639
75815
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
74640
75816
|
*/
|
|
74641
75817
|
cwd: string;
|
|
75818
|
+
/**
|
|
75819
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
75820
|
+
*/
|
|
75821
|
+
workspace?: {
|
|
75822
|
+
/**
|
|
75823
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
75824
|
+
*/
|
|
75825
|
+
kind: 'shared' | 'isolated';
|
|
75826
|
+
/**
|
|
75827
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
75828
|
+
*/
|
|
75829
|
+
path?: string;
|
|
75830
|
+
/**
|
|
75831
|
+
* The worktree's branch; present only when kind is isolated.
|
|
75832
|
+
*/
|
|
75833
|
+
branch?: string;
|
|
75834
|
+
};
|
|
74642
75835
|
/**
|
|
74643
75836
|
* 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.
|
|
74644
75837
|
*/
|
|
@@ -75495,7 +76688,7 @@ export type AgentsCreateData = {
|
|
|
75495
76688
|
enabled?: boolean;
|
|
75496
76689
|
}>;
|
|
75497
76690
|
/**
|
|
75498
|
-
* Immutable agent kind. general
|
|
76691
|
+
* 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.
|
|
75499
76692
|
*/
|
|
75500
76693
|
kind?: 'general' | 'service' | 'assume';
|
|
75501
76694
|
/**
|
|
@@ -77362,7 +78555,7 @@ export type AgentsUpdateData = {
|
|
|
77362
78555
|
enabled?: boolean;
|
|
77363
78556
|
}> | null;
|
|
77364
78557
|
/**
|
|
77365
|
-
* Immutable agent kind. general
|
|
78558
|
+
* 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.
|
|
77366
78559
|
*/
|
|
77367
78560
|
kind?: 'general' | 'service' | 'assume';
|
|
77368
78561
|
/**
|
|
@@ -79988,6 +81181,23 @@ export type SessionsListResponses = {
|
|
|
79988
81181
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
79989
81182
|
*/
|
|
79990
81183
|
cwd: string;
|
|
81184
|
+
/**
|
|
81185
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81186
|
+
*/
|
|
81187
|
+
workspace?: {
|
|
81188
|
+
/**
|
|
81189
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81190
|
+
*/
|
|
81191
|
+
kind: 'shared' | 'isolated';
|
|
81192
|
+
/**
|
|
81193
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81194
|
+
*/
|
|
81195
|
+
path?: string;
|
|
81196
|
+
/**
|
|
81197
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81198
|
+
*/
|
|
81199
|
+
branch?: string;
|
|
81200
|
+
};
|
|
79991
81201
|
/**
|
|
79992
81202
|
* 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.
|
|
79993
81203
|
*/
|
|
@@ -80100,6 +81310,10 @@ export type SessionsCreateData = {
|
|
|
80100
81310
|
* Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd.
|
|
80101
81311
|
*/
|
|
80102
81312
|
cwd?: string;
|
|
81313
|
+
/**
|
|
81314
|
+
* Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared.
|
|
81315
|
+
*/
|
|
81316
|
+
workspace?: 'shared' | 'isolated';
|
|
80103
81317
|
/**
|
|
80104
81318
|
* 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.
|
|
80105
81319
|
*/
|
|
@@ -80322,6 +81536,23 @@ export type SessionsCreateResponses = {
|
|
|
80322
81536
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80323
81537
|
*/
|
|
80324
81538
|
cwd: string;
|
|
81539
|
+
/**
|
|
81540
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81541
|
+
*/
|
|
81542
|
+
workspace?: {
|
|
81543
|
+
/**
|
|
81544
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81545
|
+
*/
|
|
81546
|
+
kind: 'shared' | 'isolated';
|
|
81547
|
+
/**
|
|
81548
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81549
|
+
*/
|
|
81550
|
+
path?: string;
|
|
81551
|
+
/**
|
|
81552
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81553
|
+
*/
|
|
81554
|
+
branch?: string;
|
|
81555
|
+
};
|
|
80325
81556
|
/**
|
|
80326
81557
|
* 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.
|
|
80327
81558
|
*/
|
|
@@ -80576,6 +81807,23 @@ export type SessionsArchiveResponses = {
|
|
|
80576
81807
|
* Normalized session working directory; defaults to /home/user/workspace. Forks inherit this directory.
|
|
80577
81808
|
*/
|
|
80578
81809
|
cwd: string;
|
|
81810
|
+
/**
|
|
81811
|
+
* Praxis extension: where this session's work happens. shared and isolated are the two kinds; an isolated session also names its path and branch.
|
|
81812
|
+
*/
|
|
81813
|
+
workspace?: {
|
|
81814
|
+
/**
|
|
81815
|
+
* Kind of background task: bash for a command started with run_in_background, monitor for a monitor watch.
|
|
81816
|
+
*/
|
|
81817
|
+
kind: 'shared' | 'isolated';
|
|
81818
|
+
/**
|
|
81819
|
+
* The worktree's own folder; present only when kind is isolated.
|
|
81820
|
+
*/
|
|
81821
|
+
path?: string;
|
|
81822
|
+
/**
|
|
81823
|
+
* The worktree's branch; present only when kind is isolated.
|
|
81824
|
+
*/
|
|
81825
|
+
branch?: string;
|
|
81826
|
+
};
|
|
80579
81827
|
/**
|
|
80580
81828
|
* 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.
|
|
80581
81829
|
*/
|
|
@@ -85314,6 +86562,12 @@ export type ApplicationListVersionsResponses = {
|
|
|
85314
86562
|
export type ApplicationListVersionsResponse = ApplicationListVersionsResponses[keyof ApplicationListVersionsResponses];
|
|
85315
86563
|
export type ApplicationCreateVersionData = {
|
|
85316
86564
|
body: ApplicationCreateVersionInput;
|
|
86565
|
+
headers?: {
|
|
86566
|
+
/**
|
|
86567
|
+
* 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.
|
|
86568
|
+
*/
|
|
86569
|
+
'Idempotency-Key'?: string;
|
|
86570
|
+
};
|
|
85317
86571
|
path: {
|
|
85318
86572
|
/**
|
|
85319
86573
|
* Worker ID (wkr_…).
|
|
@@ -97609,7 +98863,7 @@ export type DevopsPromotionsRetryErrors = {
|
|
|
97609
98863
|
*/
|
|
97610
98864
|
404: DevopsDevOpsError;
|
|
97611
98865
|
/**
|
|
97612
|
-
*
|
|
98866
|
+
* PROMOTION_NOT_RETRYABLE means this promotion has nothing to continue (its message names the state and what to do instead: cancel a running one to stop it, or promote the release again). PROMOTION_RUN_STILL_RUNNING means the halted attempt's run has not stopped yet — it was asked to cancel and the retry created nothing, because planning its targets now would deploy them a second time; read the promotion again shortly, or wait for the queue's own deadline to end the halted run.
|
|
97613
98867
|
*/
|
|
97614
98868
|
409: DevopsDevOpsError;
|
|
97615
98869
|
/**
|
|
@@ -98979,7 +100233,7 @@ export type DevopsChangesAbandonData = {
|
|
|
98979
100233
|
};
|
|
98980
100234
|
export type DevopsChangesAbandonErrors = {
|
|
98981
100235
|
/**
|
|
98982
|
-
* INVALID_ARGUMENT means reason is missing or empty
|
|
100236
|
+
* INVALID_ARGUMENT means reason is missing or empty; nothing was abandoned.
|
|
98983
100237
|
*/
|
|
98984
100238
|
400: DevopsDevOpsError;
|
|
98985
100239
|
/**
|
|
@@ -99369,6 +100623,51 @@ export type DevopsPullRequestsRecordVerdictResponses = {
|
|
|
99369
100623
|
200: DevopsPullRequest;
|
|
99370
100624
|
};
|
|
99371
100625
|
export type DevopsPullRequestsRecordVerdictResponse = DevopsPullRequestsRecordVerdictResponses[keyof DevopsPullRequestsRecordVerdictResponses];
|
|
100626
|
+
export type DevopsPullRequestsCloseData = {
|
|
100627
|
+
body: DevopsPullRequestCloseRequest;
|
|
100628
|
+
path: {
|
|
100629
|
+
/**
|
|
100630
|
+
* 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.
|
|
100631
|
+
*/
|
|
100632
|
+
id: string;
|
|
100633
|
+
};
|
|
100634
|
+
query?: never;
|
|
100635
|
+
url: '/devops/v1/pull-requests/{id}:close';
|
|
100636
|
+
};
|
|
100637
|
+
export type DevopsPullRequestsCloseErrors = {
|
|
100638
|
+
/**
|
|
100639
|
+
* 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.
|
|
100640
|
+
*/
|
|
100641
|
+
400: DevopsDevOpsError;
|
|
100642
|
+
/**
|
|
100643
|
+
* The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
|
|
100644
|
+
*/
|
|
100645
|
+
401: DevopsDevOpsError;
|
|
100646
|
+
/**
|
|
100647
|
+
* 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.
|
|
100648
|
+
*/
|
|
100649
|
+
403: DevopsDevOpsError;
|
|
100650
|
+
/**
|
|
100651
|
+
* 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.
|
|
100652
|
+
*/
|
|
100653
|
+
404: DevopsDevOpsError;
|
|
100654
|
+
/**
|
|
100655
|
+
* 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.
|
|
100656
|
+
*/
|
|
100657
|
+
409: DevopsDevOpsError;
|
|
100658
|
+
/**
|
|
100659
|
+
* 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.
|
|
100660
|
+
*/
|
|
100661
|
+
500: DevopsDevOpsError;
|
|
100662
|
+
};
|
|
100663
|
+
export type DevopsPullRequestsCloseError = DevopsPullRequestsCloseErrors[keyof DevopsPullRequestsCloseErrors];
|
|
100664
|
+
export type DevopsPullRequestsCloseResponses = {
|
|
100665
|
+
/**
|
|
100666
|
+
* 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.
|
|
100667
|
+
*/
|
|
100668
|
+
200: DevopsPullRequest;
|
|
100669
|
+
};
|
|
100670
|
+
export type DevopsPullRequestsCloseResponse = DevopsPullRequestsCloseResponses[keyof DevopsPullRequestsCloseResponses];
|
|
99372
100671
|
export type DevopsConnectionsListData = {
|
|
99373
100672
|
body?: never;
|
|
99374
100673
|
path?: never;
|
|
@@ -101884,6 +103183,10 @@ export type MediaCreateLibraryData = {
|
|
|
101884
103183
|
* Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
|
|
101885
103184
|
*/
|
|
101886
103185
|
models?: MediaMediaModelsInput;
|
|
103186
|
+
/**
|
|
103187
|
+
* The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
|
|
103188
|
+
*/
|
|
103189
|
+
default_tier?: MediaMediaTier;
|
|
101887
103190
|
/**
|
|
101888
103191
|
* Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
|
|
101889
103192
|
*/
|
|
@@ -102211,6 +103514,10 @@ export type MediaUpdateLibraryData = {
|
|
|
102211
103514
|
* 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.
|
|
102212
103515
|
*/
|
|
102213
103516
|
models?: MediaMediaModelsInput;
|
|
103517
|
+
/**
|
|
103518
|
+
* 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.
|
|
103519
|
+
*/
|
|
103520
|
+
default_tier?: MediaMediaTier;
|
|
102214
103521
|
/**
|
|
102215
103522
|
* Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
|
|
102216
103523
|
*/
|
|
@@ -104484,9 +105791,10 @@ export type MediaGenerateImageData = {
|
|
|
104484
105791
|
*/
|
|
104485
105792
|
seed?: number;
|
|
104486
105793
|
/**
|
|
104487
|
-
* Model with image-generation capability; omit it to use the library default image model.
|
|
105794
|
+
* 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.
|
|
104488
105795
|
*/
|
|
104489
105796
|
model?: string;
|
|
105797
|
+
tier?: MediaMediaTier;
|
|
104490
105798
|
/**
|
|
104491
105799
|
* 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.
|
|
104492
105800
|
*/
|
|
@@ -104635,9 +105943,10 @@ export type MediaGenerateVideoData = {
|
|
|
104635
105943
|
*/
|
|
104636
105944
|
seed?: number;
|
|
104637
105945
|
/**
|
|
104638
|
-
* Model with video-generation capability; omit it to use the library default video model.
|
|
105946
|
+
* 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.
|
|
104639
105947
|
*/
|
|
104640
105948
|
model?: string;
|
|
105949
|
+
tier?: MediaMediaTier;
|
|
104641
105950
|
/**
|
|
104642
105951
|
* 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.
|
|
104643
105952
|
*/
|
|
@@ -104734,9 +106043,10 @@ export type MediaEditAssetData = {
|
|
|
104734
106043
|
*/
|
|
104735
106044
|
operation: MediaEditOperation;
|
|
104736
106045
|
/**
|
|
104737
|
-
* Model that performs the edit; omit it to use the library default image model.
|
|
106046
|
+
* 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.
|
|
104738
106047
|
*/
|
|
104739
106048
|
model?: string;
|
|
106049
|
+
tier?: MediaMediaTier;
|
|
104740
106050
|
/**
|
|
104741
106051
|
* 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.
|
|
104742
106052
|
*/
|
|
@@ -104856,6 +106166,14 @@ export type MediaCreateSpeechData = {
|
|
|
104856
106166
|
* Language of the text, when the voice supports several.
|
|
104857
106167
|
*/
|
|
104858
106168
|
language?: string;
|
|
106169
|
+
/**
|
|
106170
|
+
* Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). 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.
|
|
106171
|
+
*/
|
|
106172
|
+
model?: string;
|
|
106173
|
+
/**
|
|
106174
|
+
* Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced the best value, quality puts the result first. A tier picks among the speech models that carry the voice this request names, so a voice the chosen model does not offer is never selected and then refused, and a platform-designed voice is bound to its own model. Send tier or model, never both. Omitted, the library’s speech model answers, or its default tier once the media-tier-defaults switch is on.
|
|
106175
|
+
*/
|
|
106176
|
+
tier?: MediaMediaTier;
|
|
104859
106177
|
};
|
|
104860
106178
|
headers?: {
|
|
104861
106179
|
/**
|
|
@@ -104890,7 +106208,7 @@ export type MediaCreateSpeechErrors = {
|
|
|
104890
106208
|
*/
|
|
104891
106209
|
404: MediaMediaError;
|
|
104892
106210
|
/**
|
|
104893
|
-
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
106211
|
+
* MODEL_PENDING: neither the request nor the library settings name a speech model, so there is nothing to synthesise with; set models.speech on the library or name model or tier on the request. JOB_INVALID_STATE: the job cannot start from its current state; start a new job rather than resuming this one.
|
|
104894
106212
|
*/
|
|
104895
106213
|
409: MediaMediaError;
|
|
104896
106214
|
/**
|
|
@@ -105719,40 +107037,213 @@ export type MediaGetHlsRenditionsErrors = {
|
|
|
105719
107037
|
*/
|
|
105720
107038
|
503: MediaMediaError;
|
|
105721
107039
|
};
|
|
105722
|
-
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
105723
|
-
export type MediaGetHlsRenditionsResponses = {
|
|
107040
|
+
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
107041
|
+
export type MediaGetHlsRenditionsResponses = {
|
|
107042
|
+
/**
|
|
107043
|
+
* Successful response.
|
|
107044
|
+
*/
|
|
107045
|
+
200: MediaHlsLadder;
|
|
107046
|
+
};
|
|
107047
|
+
export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
|
|
107048
|
+
export type MediaRequestHlsRenditionsData = {
|
|
107049
|
+
/**
|
|
107050
|
+
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
107051
|
+
*/
|
|
107052
|
+
body: {
|
|
107053
|
+
/**
|
|
107054
|
+
* 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.
|
|
107055
|
+
*/
|
|
107056
|
+
heights?: Array<480 | 720 | 1080>;
|
|
107057
|
+
};
|
|
107058
|
+
path: {
|
|
107059
|
+
/**
|
|
107060
|
+
* Library ID returned by creation.
|
|
107061
|
+
*/
|
|
107062
|
+
library_id: string;
|
|
107063
|
+
/**
|
|
107064
|
+
* 32-character asset ID.
|
|
107065
|
+
*/
|
|
107066
|
+
asset_id: string;
|
|
107067
|
+
};
|
|
107068
|
+
query?: never;
|
|
107069
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
107070
|
+
};
|
|
107071
|
+
export type MediaRequestHlsRenditionsErrors = {
|
|
107072
|
+
/**
|
|
107073
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
107074
|
+
*/
|
|
107075
|
+
400: MediaMediaError;
|
|
107076
|
+
/**
|
|
107077
|
+
* Request failed; see the error code reference.
|
|
107078
|
+
*/
|
|
107079
|
+
402: MediaMediaError;
|
|
107080
|
+
/**
|
|
107081
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
107082
|
+
*/
|
|
107083
|
+
403: MediaMediaError;
|
|
107084
|
+
/**
|
|
107085
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
107086
|
+
*/
|
|
107087
|
+
404: MediaMediaError;
|
|
107088
|
+
/**
|
|
107089
|
+
* Request failed; see the error code reference.
|
|
107090
|
+
*/
|
|
107091
|
+
409: MediaMediaError;
|
|
107092
|
+
/**
|
|
107093
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
107094
|
+
*/
|
|
107095
|
+
413: MediaMediaError;
|
|
107096
|
+
/**
|
|
107097
|
+
* This media format is unsupported; provide a supported format.
|
|
107098
|
+
*/
|
|
107099
|
+
415: MediaMediaError;
|
|
107100
|
+
/**
|
|
107101
|
+
* Request failed; see the error code reference.
|
|
107102
|
+
*/
|
|
107103
|
+
422: MediaMediaError;
|
|
107104
|
+
/**
|
|
107105
|
+
* A rate limit was reached; wait before retrying.
|
|
107106
|
+
*/
|
|
107107
|
+
429: MediaMediaError;
|
|
107108
|
+
/**
|
|
107109
|
+
* The requested operation is unsupported; choose a supported method.
|
|
107110
|
+
*/
|
|
107111
|
+
501: MediaMediaError;
|
|
107112
|
+
/**
|
|
107113
|
+
* Request failed; see the error code reference.
|
|
107114
|
+
*/
|
|
107115
|
+
502: MediaMediaError;
|
|
107116
|
+
/**
|
|
107117
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
107118
|
+
*/
|
|
107119
|
+
503: MediaMediaError;
|
|
107120
|
+
};
|
|
107121
|
+
export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
|
|
107122
|
+
export type MediaRequestHlsRenditionsResponses = {
|
|
105724
107123
|
/**
|
|
105725
107124
|
* Successful response.
|
|
105726
107125
|
*/
|
|
105727
|
-
|
|
107126
|
+
202: MediaHlsLadder;
|
|
105728
107127
|
};
|
|
105729
|
-
export type
|
|
105730
|
-
export type
|
|
107128
|
+
export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
|
|
107129
|
+
export type MediaCreateVoiceData = {
|
|
105731
107130
|
/**
|
|
105732
|
-
*
|
|
107131
|
+
* Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
|
|
105733
107132
|
*/
|
|
105734
|
-
body:
|
|
107133
|
+
body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
|
|
107134
|
+
headers?: {
|
|
105735
107135
|
/**
|
|
105736
|
-
*
|
|
107136
|
+
* 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.
|
|
105737
107137
|
*/
|
|
105738
|
-
|
|
107138
|
+
'Idempotency-Key'?: string;
|
|
105739
107139
|
};
|
|
105740
107140
|
path: {
|
|
105741
107141
|
/**
|
|
105742
107142
|
* Library ID returned by creation.
|
|
105743
107143
|
*/
|
|
105744
107144
|
library_id: string;
|
|
107145
|
+
};
|
|
107146
|
+
query?: never;
|
|
107147
|
+
url: '/media/v1/libraries/{library_id}/voices';
|
|
107148
|
+
};
|
|
107149
|
+
export type MediaCreateVoiceErrors = {
|
|
107150
|
+
/**
|
|
107151
|
+
* Request failed; see the error code reference.
|
|
107152
|
+
*/
|
|
107153
|
+
400: MediaMediaError;
|
|
107154
|
+
/**
|
|
107155
|
+
* Request failed; see the error code reference.
|
|
107156
|
+
*/
|
|
107157
|
+
402: MediaMediaError;
|
|
107158
|
+
/**
|
|
107159
|
+
* Request failed; see the error code reference.
|
|
107160
|
+
*/
|
|
107161
|
+
403: MediaMediaError;
|
|
107162
|
+
/**
|
|
107163
|
+
* Request failed; see the error code reference.
|
|
107164
|
+
*/
|
|
107165
|
+
404: MediaMediaError;
|
|
107166
|
+
/**
|
|
107167
|
+
* Request failed; see the error code reference.
|
|
107168
|
+
*/
|
|
107169
|
+
409: MediaMediaError;
|
|
107170
|
+
/**
|
|
107171
|
+
* Request failed; see the error code reference.
|
|
107172
|
+
*/
|
|
107173
|
+
413: MediaMediaError;
|
|
107174
|
+
/**
|
|
107175
|
+
* Request failed; see the error code reference.
|
|
107176
|
+
*/
|
|
107177
|
+
415: MediaMediaError;
|
|
107178
|
+
/**
|
|
107179
|
+
* Request failed; see the error code reference.
|
|
107180
|
+
*/
|
|
107181
|
+
422: MediaMediaError;
|
|
107182
|
+
/**
|
|
107183
|
+
* Request failed; see the error code reference.
|
|
107184
|
+
*/
|
|
107185
|
+
429: MediaMediaError;
|
|
107186
|
+
/**
|
|
107187
|
+
* Request failed; see the error code reference.
|
|
107188
|
+
*/
|
|
107189
|
+
501: MediaMediaError;
|
|
107190
|
+
/**
|
|
107191
|
+
* Request failed; see the error code reference.
|
|
107192
|
+
*/
|
|
107193
|
+
502: MediaMediaError;
|
|
107194
|
+
/**
|
|
107195
|
+
* Request failed; see the error code reference.
|
|
107196
|
+
*/
|
|
107197
|
+
503: MediaMediaError;
|
|
107198
|
+
};
|
|
107199
|
+
export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
|
|
107200
|
+
export type MediaCreateVoiceResponses = {
|
|
107201
|
+
/**
|
|
107202
|
+
* Successful response.
|
|
107203
|
+
*/
|
|
107204
|
+
202: MediaJob;
|
|
107205
|
+
};
|
|
107206
|
+
export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
|
|
107207
|
+
export type MediaDesignVoiceData = {
|
|
107208
|
+
/**
|
|
107209
|
+
* One voice-design run: what the voice should sound like and the line the previews speak.
|
|
107210
|
+
*/
|
|
107211
|
+
body: {
|
|
105745
107212
|
/**
|
|
105746
|
-
*
|
|
107213
|
+
* 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.
|
|
105747
107214
|
*/
|
|
105748
|
-
|
|
107215
|
+
description: string;
|
|
107216
|
+
/**
|
|
107217
|
+
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
107218
|
+
*/
|
|
107219
|
+
preview_text: string;
|
|
107220
|
+
/**
|
|
107221
|
+
* Language the previews speak: zh or en only.
|
|
107222
|
+
*/
|
|
107223
|
+
language: 'zh' | 'en';
|
|
107224
|
+
/**
|
|
107225
|
+
* How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
|
|
107226
|
+
*/
|
|
107227
|
+
count?: number;
|
|
107228
|
+
};
|
|
107229
|
+
headers?: {
|
|
107230
|
+
/**
|
|
107231
|
+
* 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.
|
|
107232
|
+
*/
|
|
107233
|
+
'Idempotency-Key'?: string;
|
|
107234
|
+
};
|
|
107235
|
+
path: {
|
|
107236
|
+
/**
|
|
107237
|
+
* Library ID returned by creation.
|
|
107238
|
+
*/
|
|
107239
|
+
library_id: string;
|
|
105749
107240
|
};
|
|
105750
107241
|
query?: never;
|
|
105751
|
-
url: '/media/v1/libraries/{library_id}/
|
|
107242
|
+
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
105752
107243
|
};
|
|
105753
|
-
export type
|
|
107244
|
+
export type MediaDesignVoiceErrors = {
|
|
105754
107245
|
/**
|
|
105755
|
-
*
|
|
107246
|
+
* Request failed; see the error code reference.
|
|
105756
107247
|
*/
|
|
105757
107248
|
400: MediaMediaError;
|
|
105758
107249
|
/**
|
|
@@ -105760,11 +107251,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
105760
107251
|
*/
|
|
105761
107252
|
402: MediaMediaError;
|
|
105762
107253
|
/**
|
|
105763
|
-
*
|
|
107254
|
+
* Request failed; see the error code reference.
|
|
105764
107255
|
*/
|
|
105765
107256
|
403: MediaMediaError;
|
|
105766
107257
|
/**
|
|
105767
|
-
*
|
|
107258
|
+
* Request failed; see the error code reference.
|
|
105768
107259
|
*/
|
|
105769
107260
|
404: MediaMediaError;
|
|
105770
107261
|
/**
|
|
@@ -105772,11 +107263,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
105772
107263
|
*/
|
|
105773
107264
|
409: MediaMediaError;
|
|
105774
107265
|
/**
|
|
105775
|
-
*
|
|
107266
|
+
* Request failed; see the error code reference.
|
|
105776
107267
|
*/
|
|
105777
107268
|
413: MediaMediaError;
|
|
105778
107269
|
/**
|
|
105779
|
-
*
|
|
107270
|
+
* Request failed; see the error code reference.
|
|
105780
107271
|
*/
|
|
105781
107272
|
415: MediaMediaError;
|
|
105782
107273
|
/**
|
|
@@ -105784,11 +107275,11 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
105784
107275
|
*/
|
|
105785
107276
|
422: MediaMediaError;
|
|
105786
107277
|
/**
|
|
105787
|
-
*
|
|
107278
|
+
* Request failed; see the error code reference.
|
|
105788
107279
|
*/
|
|
105789
107280
|
429: MediaMediaError;
|
|
105790
107281
|
/**
|
|
105791
|
-
*
|
|
107282
|
+
* Request failed; see the error code reference.
|
|
105792
107283
|
*/
|
|
105793
107284
|
501: MediaMediaError;
|
|
105794
107285
|
/**
|
|
@@ -105796,18 +107287,18 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
105796
107287
|
*/
|
|
105797
107288
|
502: MediaMediaError;
|
|
105798
107289
|
/**
|
|
105799
|
-
*
|
|
107290
|
+
* Request failed; see the error code reference.
|
|
105800
107291
|
*/
|
|
105801
107292
|
503: MediaMediaError;
|
|
105802
107293
|
};
|
|
105803
|
-
export type
|
|
105804
|
-
export type
|
|
107294
|
+
export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
|
|
107295
|
+
export type MediaDesignVoiceResponses = {
|
|
105805
107296
|
/**
|
|
105806
107297
|
* Successful response.
|
|
105807
107298
|
*/
|
|
105808
|
-
202:
|
|
107299
|
+
202: MediaJob;
|
|
105809
107300
|
};
|
|
105810
|
-
export type
|
|
107301
|
+
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
105811
107302
|
export type OntologyListTypesData = {
|
|
105812
107303
|
body?: never;
|
|
105813
107304
|
path?: never;
|
|
@@ -106949,6 +108440,196 @@ export type RegistryPackagesVersionsCreateResponses = {
|
|
|
106949
108440
|
201: RegistryVersion;
|
|
106950
108441
|
};
|
|
106951
108442
|
export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
|
|
108443
|
+
export type RegistryGitLogData = {
|
|
108444
|
+
body?: never;
|
|
108445
|
+
path: {
|
|
108446
|
+
/**
|
|
108447
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
108448
|
+
*/
|
|
108449
|
+
package_id: string;
|
|
108450
|
+
};
|
|
108451
|
+
query?: {
|
|
108452
|
+
/**
|
|
108453
|
+
* 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
|
|
108454
|
+
*/
|
|
108455
|
+
ref?: string;
|
|
108456
|
+
/**
|
|
108457
|
+
* 这一页最多返回多少个提交,1 到 100,默认 20。
|
|
108458
|
+
*/
|
|
108459
|
+
limit?: number;
|
|
108460
|
+
/**
|
|
108461
|
+
* 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
|
|
108462
|
+
*/
|
|
108463
|
+
offset?: number;
|
|
108464
|
+
};
|
|
108465
|
+
url: '/registry/v1/packages/{package_id}/git/log';
|
|
108466
|
+
};
|
|
108467
|
+
export type RegistryGitLogErrors = {
|
|
108468
|
+
/**
|
|
108469
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
108470
|
+
*/
|
|
108471
|
+
400: RegistryRegistryError;
|
|
108472
|
+
/**
|
|
108473
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
108474
|
+
*/
|
|
108475
|
+
401: RegistryRegistryError;
|
|
108476
|
+
/**
|
|
108477
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
108478
|
+
*/
|
|
108479
|
+
404: RegistryRegistryError;
|
|
108480
|
+
/**
|
|
108481
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
108482
|
+
*/
|
|
108483
|
+
500: RegistryRegistryError;
|
|
108484
|
+
/**
|
|
108485
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
108486
|
+
*/
|
|
108487
|
+
503: RegistryRegistryError;
|
|
108488
|
+
};
|
|
108489
|
+
export type RegistryGitLogError = RegistryGitLogErrors[keyof RegistryGitLogErrors];
|
|
108490
|
+
export type RegistryGitLogResponses = {
|
|
108491
|
+
/**
|
|
108492
|
+
* 这个引用可达的提交,连同是否还有下一页。
|
|
108493
|
+
*/
|
|
108494
|
+
200: RegistryGitLog;
|
|
108495
|
+
};
|
|
108496
|
+
export type RegistryGitLogResponse = RegistryGitLogResponses[keyof RegistryGitLogResponses];
|
|
108497
|
+
export type RegistryGitCommitsRetrieveData = {
|
|
108498
|
+
body?: never;
|
|
108499
|
+
path: {
|
|
108500
|
+
/**
|
|
108501
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
108502
|
+
*/
|
|
108503
|
+
package_id: string;
|
|
108504
|
+
/**
|
|
108505
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
108506
|
+
*/
|
|
108507
|
+
sha: string;
|
|
108508
|
+
};
|
|
108509
|
+
query?: never;
|
|
108510
|
+
url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
|
|
108511
|
+
};
|
|
108512
|
+
export type RegistryGitCommitsRetrieveErrors = {
|
|
108513
|
+
/**
|
|
108514
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
108515
|
+
*/
|
|
108516
|
+
400: RegistryRegistryError;
|
|
108517
|
+
/**
|
|
108518
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
108519
|
+
*/
|
|
108520
|
+
401: RegistryRegistryError;
|
|
108521
|
+
/**
|
|
108522
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
108523
|
+
*/
|
|
108524
|
+
404: RegistryRegistryError;
|
|
108525
|
+
/**
|
|
108526
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
108527
|
+
*/
|
|
108528
|
+
500: RegistryRegistryError;
|
|
108529
|
+
/**
|
|
108530
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
108531
|
+
*/
|
|
108532
|
+
503: RegistryRegistryError;
|
|
108533
|
+
};
|
|
108534
|
+
export type RegistryGitCommitsRetrieveError = RegistryGitCommitsRetrieveErrors[keyof RegistryGitCommitsRetrieveErrors];
|
|
108535
|
+
export type RegistryGitCommitsRetrieveResponses = {
|
|
108536
|
+
/**
|
|
108537
|
+
* 这个提交。
|
|
108538
|
+
*/
|
|
108539
|
+
200: RegistryGitCommit;
|
|
108540
|
+
};
|
|
108541
|
+
export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
|
|
108542
|
+
export type RegistryGitTreesRetrieveData = {
|
|
108543
|
+
body?: never;
|
|
108544
|
+
path: {
|
|
108545
|
+
/**
|
|
108546
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
108547
|
+
*/
|
|
108548
|
+
package_id: string;
|
|
108549
|
+
/**
|
|
108550
|
+
* 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
|
|
108551
|
+
*/
|
|
108552
|
+
sha: string;
|
|
108553
|
+
};
|
|
108554
|
+
query?: never;
|
|
108555
|
+
url: '/registry/v1/packages/{package_id}/git/trees/{sha}';
|
|
108556
|
+
};
|
|
108557
|
+
export type RegistryGitTreesRetrieveErrors = {
|
|
108558
|
+
/**
|
|
108559
|
+
* INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
|
|
108560
|
+
*/
|
|
108561
|
+
400: RegistryRegistryError;
|
|
108562
|
+
/**
|
|
108563
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
108564
|
+
*/
|
|
108565
|
+
401: RegistryRegistryError;
|
|
108566
|
+
/**
|
|
108567
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
108568
|
+
*/
|
|
108569
|
+
404: RegistryRegistryError;
|
|
108570
|
+
/**
|
|
108571
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
108572
|
+
*/
|
|
108573
|
+
500: RegistryRegistryError;
|
|
108574
|
+
/**
|
|
108575
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
108576
|
+
*/
|
|
108577
|
+
503: RegistryRegistryError;
|
|
108578
|
+
};
|
|
108579
|
+
export type RegistryGitTreesRetrieveError = RegistryGitTreesRetrieveErrors[keyof RegistryGitTreesRetrieveErrors];
|
|
108580
|
+
export type RegistryGitTreesRetrieveResponses = {
|
|
108581
|
+
/**
|
|
108582
|
+
* 这个树的条目。
|
|
108583
|
+
*/
|
|
108584
|
+
200: RegistryGitTree;
|
|
108585
|
+
};
|
|
108586
|
+
export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
|
|
108587
|
+
export type RegistryGitFilesRetrieveData = {
|
|
108588
|
+
body?: never;
|
|
108589
|
+
path: {
|
|
108590
|
+
/**
|
|
108591
|
+
* 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
|
|
108592
|
+
*/
|
|
108593
|
+
package_id: string;
|
|
108594
|
+
/**
|
|
108595
|
+
* 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
|
|
108596
|
+
*/
|
|
108597
|
+
path: string;
|
|
108598
|
+
};
|
|
108599
|
+
query?: {
|
|
108600
|
+
/**
|
|
108601
|
+
* 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
|
|
108602
|
+
*/
|
|
108603
|
+
ref?: string;
|
|
108604
|
+
};
|
|
108605
|
+
url: '/registry/v1/packages/{package_id}/git/files/{path}';
|
|
108606
|
+
};
|
|
108607
|
+
export type RegistryGitFilesRetrieveErrors = {
|
|
108608
|
+
/**
|
|
108609
|
+
* UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
|
|
108610
|
+
*/
|
|
108611
|
+
401: RegistryRegistryError;
|
|
108612
|
+
/**
|
|
108613
|
+
* NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
|
|
108614
|
+
*/
|
|
108615
|
+
404: RegistryRegistryError;
|
|
108616
|
+
/**
|
|
108617
|
+
* INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
|
|
108618
|
+
*/
|
|
108619
|
+
500: RegistryRegistryError;
|
|
108620
|
+
/**
|
|
108621
|
+
* UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
|
|
108622
|
+
*/
|
|
108623
|
+
503: RegistryRegistryError;
|
|
108624
|
+
};
|
|
108625
|
+
export type RegistryGitFilesRetrieveError = RegistryGitFilesRetrieveErrors[keyof RegistryGitFilesRetrieveErrors];
|
|
108626
|
+
export type RegistryGitFilesRetrieveResponses = {
|
|
108627
|
+
/**
|
|
108628
|
+
* 文件内容,逐字节原样返回。
|
|
108629
|
+
*/
|
|
108630
|
+
200: Blob | File;
|
|
108631
|
+
};
|
|
108632
|
+
export type RegistryGitFilesRetrieveResponse = RegistryGitFilesRetrieveResponses[keyof RegistryGitFilesRetrieveResponses];
|
|
106952
108633
|
export type RegistryPackagesVersionsContentsData = {
|
|
106953
108634
|
body?: never;
|
|
106954
108635
|
path: {
|
|
@@ -113547,7 +115228,7 @@ export type TicketPatchTicketsNumberData = {
|
|
|
113547
115228
|
*/
|
|
113548
115229
|
state_reason?: 'completed' | 'not_planned' | 'duplicate';
|
|
113549
115230
|
/**
|
|
113550
|
-
*
|
|
115231
|
+
* The original ticket's number; required when state_reason is duplicate.
|
|
113551
115232
|
*/
|
|
113552
115233
|
duplicate_of?: number;
|
|
113553
115234
|
};
|