@deepraxis/sdk 0.1.1-dev.53bfbed → 0.1.1-dev.54060c3

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.
@@ -19665,6 +19665,10 @@ export type MediaJob = {
19665
19665
  * Model that produced the outputs of a generation job; omitted for batch jobs.
19666
19666
  */
19667
19667
  model?: string;
19668
+ /**
19669
+ * 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.
19670
+ */
19671
+ tier?: MediaMediaTier;
19668
19672
  /**
19669
19673
  * 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
19674
  */
@@ -19851,9 +19855,17 @@ export type MediaAssetReference = {
19851
19855
  * 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
19856
  */
19853
19857
  strength?: number;
19858
+ /**
19859
+ * 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.
19860
+ */
19861
+ voice_asset_id?: MediaAssetId;
19854
19862
  };
19855
19863
  /**
19856
- * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute and crop on a video), erase, replace_person, lip_sync and animate_person on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
19864
+ * 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.
19865
+ */
19866
+ export type MediaMediaTier = 'economy' | 'balanced' | 'quality';
19867
+ /**
19868
+ * 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
19869
  */
19858
19870
  export type MediaEditOperation = {
19859
19871
  /**
@@ -19882,9 +19894,10 @@ export type MediaEditOperation = {
19882
19894
  */
19883
19895
  height?: 720 | 1080 | 1440 | 2160;
19884
19896
  /**
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.
19897
+ * 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.
19886
19898
  */
19887
19899
  model?: string;
19900
+ tier?: MediaMediaTier;
19888
19901
  } | {
19889
19902
  /**
19890
19903
  * Edit operation discriminator; outpaint selects the outpaint branch of this union.
@@ -19961,9 +19974,10 @@ export type MediaEditOperation = {
19961
19974
  */
19962
19975
  mute?: boolean;
19963
19976
  /**
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.
19977
+ * 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.
19965
19978
  */
19966
19979
  model?: string;
19980
+ tier?: MediaMediaTier;
19967
19981
  } | {
19968
19982
  /**
19969
19983
  * Edit operation discriminator; replace_object selects the replace_object branch of this union.
@@ -20000,9 +20014,10 @@ export type MediaEditOperation = {
20000
20014
  */
20001
20015
  output?: 'mask' | 'alpha';
20002
20016
  /**
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.
20017
+ * 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.
20004
20018
  */
20005
20019
  model?: string;
20020
+ tier?: MediaMediaTier;
20006
20021
  } | {
20007
20022
  /**
20008
20023
  * Edit operation discriminator; replace_background selects the replace_background branch of this union.
@@ -20103,9 +20118,10 @@ export type MediaEditOperation = {
20103
20118
  */
20104
20119
  speech?: MediaSpeechCreateInput;
20105
20120
  /**
20106
- * Lip-sync model, from the models the generation capabilities publish for the lip_sync capability; omit it to use the first available.
20121
+ * 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.
20107
20122
  */
20108
20123
  model?: string;
20124
+ tier?: MediaMediaTier;
20109
20125
  } | {
20110
20126
  /**
20111
20127
  * Edit operation discriminator; frame selects the frame branch of this union.
@@ -20126,9 +20142,10 @@ export type MediaEditOperation = {
20126
20142
  */
20127
20143
  type: 'enhance_voice';
20128
20144
  /**
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.
20145
+ * 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.
20130
20146
  */
20131
20147
  model?: string;
20148
+ tier?: MediaMediaTier;
20132
20149
  } | {
20133
20150
  /**
20134
20151
  * Edit operation discriminator; reframe selects the reframe branch of this union.
@@ -20139,9 +20156,10 @@ export type MediaEditOperation = {
20139
20156
  */
20140
20157
  aspect: '9:16' | '1:1' | '16:9';
20141
20158
  /**
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.
20159
+ * 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.
20143
20160
  */
20144
20161
  model?: string;
20162
+ tier?: MediaMediaTier;
20145
20163
  } | {
20146
20164
  /**
20147
20165
  * Edit operation discriminator; redact selects the redact branch of this union.
@@ -20152,9 +20170,10 @@ export type MediaEditOperation = {
20152
20170
  */
20153
20171
  targets: Array<'face' | 'qr' | 'text'>;
20154
20172
  /**
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.
20173
+ * 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.
20156
20174
  */
20157
20175
  model?: string;
20176
+ tier?: MediaMediaTier;
20158
20177
  } | {
20159
20178
  /**
20160
20179
  * Edit operation discriminator; trim selects the trim branch of this union.
@@ -20169,18 +20188,20 @@ export type MediaEditOperation = {
20169
20188
  */
20170
20189
  end_seconds?: number;
20171
20190
  /**
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.
20191
+ * 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.
20173
20192
  */
20174
20193
  model?: string;
20194
+ tier?: MediaMediaTier;
20175
20195
  } | {
20176
20196
  /**
20177
20197
  * Edit operation discriminator; mute selects the mute branch of this union.
20178
20198
  */
20179
20199
  type: 'mute';
20180
20200
  /**
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.
20201
+ * 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.
20182
20202
  */
20183
20203
  model?: string;
20204
+ tier?: MediaMediaTier;
20184
20205
  } | {
20185
20206
  /**
20186
20207
  * Edit operation discriminator; crop selects the crop branch of this union.
@@ -20203,9 +20224,23 @@ export type MediaEditOperation = {
20203
20224
  */
20204
20225
  left?: number;
20205
20226
  /**
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.
20227
+ * 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.
20207
20228
  */
20208
20229
  model?: string;
20230
+ tier?: MediaMediaTier;
20231
+ } | {
20232
+ /**
20233
+ * Edit operation discriminator; extract_audio selects the extract_audio branch of this union.
20234
+ */
20235
+ type: 'extract_audio';
20236
+ /**
20237
+ * Seconds into the source video where the audio starts, 0 or more; omit it to begin at the start.
20238
+ */
20239
+ start_seconds?: number;
20240
+ /**
20241
+ * 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.
20242
+ */
20243
+ end_seconds?: number;
20209
20244
  } | {
20210
20245
  /**
20211
20246
  * Edit operation discriminator; replace_person selects the replace_person branch of this union.
@@ -20216,9 +20251,10 @@ export type MediaEditOperation = {
20216
20251
  */
20217
20252
  person_asset_id: MediaAssetId;
20218
20253
  /**
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.
20254
+ * 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.
20220
20255
  */
20221
20256
  model?: string;
20257
+ tier?: MediaMediaTier;
20222
20258
  } | {
20223
20259
  /**
20224
20260
  * Edit operation discriminator; animate_person selects the animate_person branch of this union.
@@ -20229,9 +20265,10 @@ export type MediaEditOperation = {
20229
20265
  */
20230
20266
  person_asset_id: MediaAssetId;
20231
20267
  /**
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.
20268
+ * 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.
20233
20269
  */
20234
20270
  model?: string;
20271
+ tier?: MediaMediaTier;
20235
20272
  } | {
20236
20273
  /**
20237
20274
  * Edit operation discriminator; talking_avatar selects the talking_avatar branch of this union.
@@ -20242,9 +20279,32 @@ export type MediaEditOperation = {
20242
20279
  */
20243
20280
  audio_asset_id: MediaAssetId;
20244
20281
  /**
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.
20282
+ * 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.
20246
20283
  */
20247
20284
  model?: string;
20285
+ tier?: MediaMediaTier;
20286
+ } | {
20287
+ /**
20288
+ * Edit operation discriminator; edit_video selects the edit_video branch of this union.
20289
+ */
20290
+ type: 'edit_video';
20291
+ /**
20292
+ * One instruction describing the change to make, up to 5000 characters; the video keeps its own length and aspect ratio.
20293
+ */
20294
+ prompt: string;
20295
+ /**
20296
+ * What the edit should avoid, up to 500 characters.
20297
+ */
20298
+ negative_prompt?: string;
20299
+ /**
20300
+ * Optional image asset in the same library to guide the edit. A video, a sticker, the source itself or an asset outside this library is refused with the field named.
20301
+ */
20302
+ reference_asset_id?: MediaAssetId;
20303
+ /**
20304
+ * 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.
20305
+ */
20306
+ model?: string;
20307
+ tier?: MediaMediaTier;
20248
20308
  } | {
20249
20309
  /**
20250
20310
  * Edit operation discriminator; voice_change selects the voice_change branch of this union.
@@ -20415,7 +20475,7 @@ export type MediaGenerationCapabilities = {
20415
20475
  matting: MediaGenerationTypeCapability;
20416
20476
  };
20417
20477
  /**
20418
- * The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person and talking_avatar. Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
20478
+ * The models each processing capability offers, for the edit operations that run on one: upscale, enhance_voice (voice_enhance), reframe, redact, align, trim, mute and crop (clip), erase on a video, replace_person, lip_sync, animate_person, talking_avatar and edit_video (video_edit). Name one as the operation’s model, or omit model to use the first available. A capability whose models list is empty has no model published yet, and its operation is refused with OPERATION_NOT_SUPPORTED; when the catalogue cannot be read every list is empty.
20419
20479
  */
20420
20480
  processes: {
20421
20481
  upscale: MediaGenerationProcessCapability;
@@ -20429,6 +20489,7 @@ export type MediaGenerationCapabilities = {
20429
20489
  lip_sync: MediaGenerationProcessCapability;
20430
20490
  animate_person: MediaGenerationProcessCapability;
20431
20491
  talking_avatar: MediaGenerationProcessCapability;
20492
+ video_edit: MediaGenerationProcessCapability;
20432
20493
  };
20433
20494
  };
20434
20495
  /**
@@ -20448,6 +20509,62 @@ export type MediaHlsLadder = {
20448
20509
  */
20449
20510
  renditions: Array<MediaHlsRendition>;
20450
20511
  };
20512
+ export type MediaVoiceCloneInput = {
20513
+ /**
20514
+ * Display name of the voice; a later rename keeps the same voice id.
20515
+ */
20516
+ name: string;
20517
+ /**
20518
+ * 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.
20519
+ */
20520
+ samples: Array<string>;
20521
+ /**
20522
+ * Consent id that authorises this clone, minted by the voice-consent endpoint of this same library.
20523
+ */
20524
+ consent_id: MediaVoiceConsentId;
20525
+ /**
20526
+ * Language the voice speaks, used to tag the clone at the supplier; for example zh or en.
20527
+ */
20528
+ language: string;
20529
+ /**
20530
+ * Free-form string labels carried onto the usage event for this voice.
20531
+ */
20532
+ labels?: {
20533
+ [key: string]: string;
20534
+ };
20535
+ /**
20536
+ * Caller’s own note about the voice, stored on it and returned as description.
20537
+ */
20538
+ description?: string;
20539
+ /**
20540
+ * Preferred cloning provider; the platform chooses one when omitted.
20541
+ */
20542
+ provider?: string;
20543
+ };
20544
+ export type MediaVoiceDesignCreateInput = {
20545
+ /**
20546
+ * Display name of the voice; a later rename keeps the same voice id.
20547
+ */
20548
+ name: string;
20549
+ /**
20550
+ * Language the voice speaks; use the language the preview was designed in.
20551
+ */
20552
+ language: string;
20553
+ /**
20554
+ * 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.
20555
+ */
20556
+ design_asset_id: MediaAssetId;
20557
+ /**
20558
+ * Free-form string labels carried onto the usage event for this voice.
20559
+ */
20560
+ labels?: {
20561
+ [key: string]: string;
20562
+ };
20563
+ /**
20564
+ * Caller’s own note about the voice, stored on it and returned as description.
20565
+ */
20566
+ description?: string;
20567
+ };
20451
20568
  /**
20452
20569
  * One page of type registrations; types are few enough that this face returns them in a single page.
20453
20570
  */
@@ -21162,6 +21279,77 @@ export type RegistryVersion = {
21162
21279
  */
21163
21280
  create_time: string;
21164
21281
  };
21282
+ /**
21283
+ * 一段提交历史。
21284
+ */
21285
+ export type RegistryGitLog = {
21286
+ /**
21287
+ * 对象类型标记,固定为 registry.git.log。
21288
+ */
21289
+ object: string;
21290
+ /**
21291
+ * 这次读的引用;省略时是包的默认分支。
21292
+ */
21293
+ ref: string;
21294
+ /**
21295
+ * 这一页的提交,最新的在前;空数组表示这个引用没有提交。
21296
+ */
21297
+ commits: Array<RegistryGitCommit>;
21298
+ /**
21299
+ * 是否还有下一页(用 offset 翻页)。
21300
+ */
21301
+ has_more: boolean;
21302
+ };
21303
+ /**
21304
+ * 一个 git 提交。
21305
+ */
21306
+ export type RegistryGitCommit = {
21307
+ /**
21308
+ * 对象类型标记,固定为 registry.git.commit。
21309
+ */
21310
+ object: string;
21311
+ /**
21312
+ * 提交的对象 id。
21313
+ */
21314
+ sha: string;
21315
+ /**
21316
+ * 提交信息原文,含换行。
21317
+ */
21318
+ message: string;
21319
+ /**
21320
+ * 作者名;仓库没有给出名字时是空串。
21321
+ */
21322
+ author: string;
21323
+ /**
21324
+ * 作者邮箱;仓库给了才有。
21325
+ */
21326
+ author_email?: string;
21327
+ /**
21328
+ * 提交时间的 RFC 3339 时间戳;后端没给时是空串。
21329
+ */
21330
+ committed_at: string;
21331
+ /**
21332
+ * 父提交的对象 id,按顺序。
21333
+ */
21334
+ parents: Array<string>;
21335
+ };
21336
+ /**
21337
+ * 一个树的条目清单。
21338
+ */
21339
+ export type RegistryGitTree = {
21340
+ /**
21341
+ * 对象类型标记,固定为 registry.git.tree。
21342
+ */
21343
+ object: string;
21344
+ /**
21345
+ * 读的树对象 id。
21346
+ */
21347
+ sha: string;
21348
+ /**
21349
+ * 这个树的条目,只列这一层,不递归。
21350
+ */
21351
+ entries: Array<RegistryGitTreeEntry>;
21352
+ };
21165
21353
  /**
21166
21354
  * 一个版本的文件清单;文件不多,一次返回全部。
21167
21355
  */
@@ -36647,6 +36835,10 @@ export type MediaProvenance = {
36647
36835
  * Model that performed the operation, as the model identifier returned by the model API.
36648
36836
  */
36649
36837
  model: string;
36838
+ /**
36839
+ * 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.
36840
+ */
36841
+ tier?: MediaMediaTier;
36650
36842
  /**
36651
36843
  * Reusable elements (characters, products, scenes, brands) this generation expanded, each with the version read when the job was created. The service replaced each element in references with its own pictures and appended its written guidance to the prompt; references above lists the pictures the model actually received. Omitted when the request named no element.
36652
36844
  */
@@ -37306,7 +37498,7 @@ export type MediaLineageNode = {
37306
37498
  /**
37307
37499
  * What a reference asset contributes to the generated or edited result.
37308
37500
  */
37309
- export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video';
37501
+ export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject' | 'video' | 'voice';
37310
37502
  /**
37311
37503
  * One rectangle a video erase covers, as fractions of the frame, optionally limited to a time range.
37312
37504
  */
@@ -37529,6 +37721,7 @@ export type MediaHlsRendition = {
37529
37721
  */
37530
37722
  state: MediaHlsRenditionState;
37531
37723
  };
37724
+ export type MediaVoiceConsentId = string;
37532
37725
  /**
37533
37726
  * A kind of entity the graph accepts, for example a file or a customer.
37534
37727
  */
@@ -37714,6 +37907,31 @@ export type RegistryRegistryError = {
37714
37907
  };
37715
37908
  };
37716
37909
  };
37910
+ /**
37911
+ * 树里的一个条目。
37912
+ */
37913
+ export type RegistryGitTreeEntry = {
37914
+ /**
37915
+ * 这一层里的条目名。
37916
+ */
37917
+ name: string;
37918
+ /**
37919
+ * 条目指向的对象类型;commit 是子模块。
37920
+ */
37921
+ type: 'blob' | 'tree' | 'commit';
37922
+ /**
37923
+ * git 的模式位,例如 100644 或 040000。
37924
+ */
37925
+ mode: string;
37926
+ /**
37927
+ * 条目指向的对象 id。
37928
+ */
37929
+ sha: string;
37930
+ /**
37931
+ * 对象大小(字节),后端给出时才有。
37932
+ */
37933
+ size?: number;
37934
+ };
37717
37935
  /**
37718
37936
  * 一个版本解压后的一个文件条目。
37719
37937
  */
@@ -47721,6 +47939,26 @@ export type RegistrySort = 'updated' | 'downloads';
47721
47939
  * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
47722
47940
  */
47723
47941
  export type RegistryPackageId = string;
47942
+ /**
47943
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
47944
+ */
47945
+ export type RegistryGitRef = string;
47946
+ /**
47947
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
47948
+ */
47949
+ export type RegistryGitLogLimit = number;
47950
+ /**
47951
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
47952
+ */
47953
+ export type RegistryGitLogOffset = number;
47954
+ /**
47955
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
47956
+ */
47957
+ export type RegistryGitObjectId = string;
47958
+ /**
47959
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
47960
+ */
47961
+ export type RegistryGitFilePath = string;
47724
47962
  /**
47725
47963
  * 要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。
47726
47964
  */
@@ -65496,7 +65734,7 @@ export type ListModelsData = {
65496
65734
  /**
65497
65735
  * 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.
65498
65736
  */
65499
- 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'>;
65737
+ 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'>;
65500
65738
  /**
65501
65739
  * Filter by one or more model types (comma-separated).
65502
65740
  */
@@ -75473,7 +75711,7 @@ export type AgentsCreateData = {
75473
75711
  enabled?: boolean;
75474
75712
  }>;
75475
75713
  /**
75476
- * Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
75714
+ * 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.
75477
75715
  */
75478
75716
  kind?: 'general' | 'service' | 'assume';
75479
75717
  /**
@@ -77340,7 +77578,7 @@ export type AgentsUpdateData = {
77340
77578
  enabled?: boolean;
77341
77579
  }> | null;
77342
77580
  /**
77343
- * Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
77581
+ * 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.
77344
77582
  */
77345
77583
  kind?: 'general' | 'service' | 'assume';
77346
77584
  /**
@@ -104462,9 +104700,10 @@ export type MediaGenerateImageData = {
104462
104700
  */
104463
104701
  seed?: number;
104464
104702
  /**
104465
- * Model with image-generation capability; omit it to use the library default image model.
104703
+ * 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.
104466
104704
  */
104467
104705
  model?: string;
104706
+ tier?: MediaMediaTier;
104468
104707
  /**
104469
104708
  * 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.
104470
104709
  */
@@ -104613,9 +104852,10 @@ export type MediaGenerateVideoData = {
104613
104852
  */
104614
104853
  seed?: number;
104615
104854
  /**
104616
- * Model with video-generation capability; omit it to use the library default video model.
104855
+ * 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.
104617
104856
  */
104618
104857
  model?: string;
104858
+ tier?: MediaMediaTier;
104619
104859
  /**
104620
104860
  * 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.
104621
104861
  */
@@ -104712,9 +104952,10 @@ export type MediaEditAssetData = {
104712
104952
  */
104713
104953
  operation: MediaEditOperation;
104714
104954
  /**
104715
- * Model that performs the edit; omit it to use the library default image model.
104955
+ * 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.
104716
104956
  */
104717
104957
  model?: string;
104958
+ tier?: MediaMediaTier;
104718
104959
  /**
104719
104960
  * 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.
104720
104961
  */
@@ -104749,7 +104990,7 @@ export type MediaEditAssetData = {
104749
104990
  };
104750
104991
  export type MediaEditAssetErrors = {
104751
104992
  /**
104752
- * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync and animate_person on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
104993
+ * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe, redact, trim, mute and crop run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe, redact, trim, mute and crop on a video), as do erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image. An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
104753
104994
  */
104754
104995
  400: MediaMediaError;
104755
104996
  /**
@@ -105786,6 +106027,179 @@ export type MediaRequestHlsRenditionsResponses = {
105786
106027
  202: MediaHlsLadder;
105787
106028
  };
105788
106029
  export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
106030
+ export type MediaCreateVoiceData = {
106031
+ /**
106032
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
106033
+ */
106034
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
106035
+ headers?: {
106036
+ /**
106037
+ * 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.
106038
+ */
106039
+ 'Idempotency-Key'?: string;
106040
+ };
106041
+ path: {
106042
+ /**
106043
+ * Library ID returned by creation.
106044
+ */
106045
+ library_id: string;
106046
+ };
106047
+ query?: never;
106048
+ url: '/media/v1/libraries/{library_id}/voices';
106049
+ };
106050
+ export type MediaCreateVoiceErrors = {
106051
+ /**
106052
+ * Request failed; see the error code reference.
106053
+ */
106054
+ 400: MediaMediaError;
106055
+ /**
106056
+ * Request failed; see the error code reference.
106057
+ */
106058
+ 402: MediaMediaError;
106059
+ /**
106060
+ * Request failed; see the error code reference.
106061
+ */
106062
+ 403: MediaMediaError;
106063
+ /**
106064
+ * Request failed; see the error code reference.
106065
+ */
106066
+ 404: MediaMediaError;
106067
+ /**
106068
+ * Request failed; see the error code reference.
106069
+ */
106070
+ 409: MediaMediaError;
106071
+ /**
106072
+ * Request failed; see the error code reference.
106073
+ */
106074
+ 413: MediaMediaError;
106075
+ /**
106076
+ * Request failed; see the error code reference.
106077
+ */
106078
+ 415: MediaMediaError;
106079
+ /**
106080
+ * Request failed; see the error code reference.
106081
+ */
106082
+ 422: MediaMediaError;
106083
+ /**
106084
+ * Request failed; see the error code reference.
106085
+ */
106086
+ 429: MediaMediaError;
106087
+ /**
106088
+ * Request failed; see the error code reference.
106089
+ */
106090
+ 501: MediaMediaError;
106091
+ /**
106092
+ * Request failed; see the error code reference.
106093
+ */
106094
+ 502: MediaMediaError;
106095
+ /**
106096
+ * Request failed; see the error code reference.
106097
+ */
106098
+ 503: MediaMediaError;
106099
+ };
106100
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
106101
+ export type MediaCreateVoiceResponses = {
106102
+ /**
106103
+ * Successful response.
106104
+ */
106105
+ 202: MediaJob;
106106
+ };
106107
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
106108
+ export type MediaDesignVoiceData = {
106109
+ /**
106110
+ * One voice-design run: what the voice should sound like and the line the previews speak.
106111
+ */
106112
+ body: {
106113
+ /**
106114
+ * 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.
106115
+ */
106116
+ description: string;
106117
+ /**
106118
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
106119
+ */
106120
+ preview_text: string;
106121
+ /**
106122
+ * Language the previews speak: zh or en only.
106123
+ */
106124
+ language: 'zh' | 'en';
106125
+ /**
106126
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
106127
+ */
106128
+ count?: number;
106129
+ };
106130
+ headers?: {
106131
+ /**
106132
+ * 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.
106133
+ */
106134
+ 'Idempotency-Key'?: string;
106135
+ };
106136
+ path: {
106137
+ /**
106138
+ * Library ID returned by creation.
106139
+ */
106140
+ library_id: string;
106141
+ };
106142
+ query?: never;
106143
+ url: '/media/v1/libraries/{library_id}/voices/designs';
106144
+ };
106145
+ export type MediaDesignVoiceErrors = {
106146
+ /**
106147
+ * Request failed; see the error code reference.
106148
+ */
106149
+ 400: MediaMediaError;
106150
+ /**
106151
+ * Request failed; see the error code reference.
106152
+ */
106153
+ 402: MediaMediaError;
106154
+ /**
106155
+ * Request failed; see the error code reference.
106156
+ */
106157
+ 403: MediaMediaError;
106158
+ /**
106159
+ * Request failed; see the error code reference.
106160
+ */
106161
+ 404: MediaMediaError;
106162
+ /**
106163
+ * Request failed; see the error code reference.
106164
+ */
106165
+ 409: MediaMediaError;
106166
+ /**
106167
+ * Request failed; see the error code reference.
106168
+ */
106169
+ 413: MediaMediaError;
106170
+ /**
106171
+ * Request failed; see the error code reference.
106172
+ */
106173
+ 415: MediaMediaError;
106174
+ /**
106175
+ * Request failed; see the error code reference.
106176
+ */
106177
+ 422: MediaMediaError;
106178
+ /**
106179
+ * Request failed; see the error code reference.
106180
+ */
106181
+ 429: MediaMediaError;
106182
+ /**
106183
+ * Request failed; see the error code reference.
106184
+ */
106185
+ 501: MediaMediaError;
106186
+ /**
106187
+ * Request failed; see the error code reference.
106188
+ */
106189
+ 502: MediaMediaError;
106190
+ /**
106191
+ * Request failed; see the error code reference.
106192
+ */
106193
+ 503: MediaMediaError;
106194
+ };
106195
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
106196
+ export type MediaDesignVoiceResponses = {
106197
+ /**
106198
+ * Successful response.
106199
+ */
106200
+ 202: MediaJob;
106201
+ };
106202
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
105789
106203
  export type OntologyListTypesData = {
105790
106204
  body?: never;
105791
106205
  path?: never;
@@ -106927,6 +107341,200 @@ export type RegistryPackagesVersionsCreateResponses = {
106927
107341
  201: RegistryVersion;
106928
107342
  };
106929
107343
  export type RegistryPackagesVersionsCreateResponse = RegistryPackagesVersionsCreateResponses[keyof RegistryPackagesVersionsCreateResponses];
107344
+ export type RegistryGitLogData = {
107345
+ body?: never;
107346
+ path: {
107347
+ /**
107348
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107349
+ */
107350
+ package_id: string;
107351
+ };
107352
+ query?: {
107353
+ /**
107354
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
107355
+ */
107356
+ ref?: string;
107357
+ /**
107358
+ * 这一页最多返回多少个提交,1 到 100,默认 20。
107359
+ */
107360
+ limit?: number;
107361
+ /**
107362
+ * 从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。
107363
+ */
107364
+ offset?: number;
107365
+ };
107366
+ url: '/registry/v1/packages/{package_id}/git/log';
107367
+ };
107368
+ export type RegistryGitLogErrors = {
107369
+ /**
107370
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107371
+ */
107372
+ 400: RegistryRegistryError;
107373
+ /**
107374
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107375
+ */
107376
+ 401: RegistryRegistryError;
107377
+ /**
107378
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107379
+ */
107380
+ 404: RegistryRegistryError;
107381
+ /**
107382
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107383
+ */
107384
+ 500: RegistryRegistryError;
107385
+ /**
107386
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107387
+ */
107388
+ 503: RegistryRegistryError;
107389
+ };
107390
+ export type RegistryGitLogError = RegistryGitLogErrors[keyof RegistryGitLogErrors];
107391
+ export type RegistryGitLogResponses = {
107392
+ /**
107393
+ * 这个引用可达的提交,连同是否还有下一页。
107394
+ */
107395
+ 200: RegistryGitLog;
107396
+ };
107397
+ export type RegistryGitLogResponse = RegistryGitLogResponses[keyof RegistryGitLogResponses];
107398
+ export type RegistryGitCommitsRetrieveData = {
107399
+ body?: never;
107400
+ path: {
107401
+ /**
107402
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107403
+ */
107404
+ package_id: string;
107405
+ /**
107406
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
107407
+ */
107408
+ sha: string;
107409
+ };
107410
+ query?: never;
107411
+ url: '/registry/v1/packages/{package_id}/git/commits/{sha}';
107412
+ };
107413
+ export type RegistryGitCommitsRetrieveErrors = {
107414
+ /**
107415
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107416
+ */
107417
+ 400: RegistryRegistryError;
107418
+ /**
107419
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107420
+ */
107421
+ 401: RegistryRegistryError;
107422
+ /**
107423
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107424
+ */
107425
+ 404: RegistryRegistryError;
107426
+ /**
107427
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107428
+ */
107429
+ 500: RegistryRegistryError;
107430
+ /**
107431
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107432
+ */
107433
+ 503: RegistryRegistryError;
107434
+ };
107435
+ export type RegistryGitCommitsRetrieveError = RegistryGitCommitsRetrieveErrors[keyof RegistryGitCommitsRetrieveErrors];
107436
+ export type RegistryGitCommitsRetrieveResponses = {
107437
+ /**
107438
+ * 这个提交。
107439
+ */
107440
+ 200: RegistryGitCommit;
107441
+ };
107442
+ export type RegistryGitCommitsRetrieveResponse = RegistryGitCommitsRetrieveResponses[keyof RegistryGitCommitsRetrieveResponses];
107443
+ export type RegistryGitTreesRetrieveData = {
107444
+ body?: never;
107445
+ path: {
107446
+ /**
107447
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107448
+ */
107449
+ package_id: string;
107450
+ /**
107451
+ * 完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。
107452
+ */
107453
+ sha: string;
107454
+ };
107455
+ query?: never;
107456
+ url: '/registry/v1/packages/{package_id}/git/trees/{sha}';
107457
+ };
107458
+ export type RegistryGitTreesRetrieveErrors = {
107459
+ /**
107460
+ * INVALID_PARAMS 表示字段、查询值或标识不符合文档的格式或范围——库名不合法、版本号不是 semver、archive 与 files 同时给了或缺了、page_size 不在 1 到 100。按消息指出的字段改正后重发。
107461
+ */
107462
+ 400: RegistryRegistryError;
107463
+ /**
107464
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107465
+ */
107466
+ 401: RegistryRegistryError;
107467
+ /**
107468
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107469
+ */
107470
+ 404: RegistryRegistryError;
107471
+ /**
107472
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107473
+ */
107474
+ 500: RegistryRegistryError;
107475
+ /**
107476
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107477
+ */
107478
+ 503: RegistryRegistryError;
107479
+ };
107480
+ export type RegistryGitTreesRetrieveError = RegistryGitTreesRetrieveErrors[keyof RegistryGitTreesRetrieveErrors];
107481
+ export type RegistryGitTreesRetrieveResponses = {
107482
+ /**
107483
+ * 这个树的条目。
107484
+ */
107485
+ 200: RegistryGitTree;
107486
+ };
107487
+ export type RegistryGitTreesRetrieveResponse = RegistryGitTreesRetrieveResponses[keyof RegistryGitTreesRetrieveResponses];
107488
+ export type RegistryGitFilesRetrieveData = {
107489
+ body?: never;
107490
+ path: {
107491
+ /**
107492
+ * 包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。
107493
+ */
107494
+ package_id: string;
107495
+ /**
107496
+ * 仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。
107497
+ */
107498
+ path: string;
107499
+ };
107500
+ query?: {
107501
+ /**
107502
+ * 分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。
107503
+ */
107504
+ ref?: string;
107505
+ };
107506
+ url: '/registry/v1/packages/{package_id}/git/files/{path}';
107507
+ };
107508
+ export type RegistryGitFilesRetrieveErrors = {
107509
+ /**
107510
+ * UNAUTHENTICATED 表示缺少或无效的 API key;先带上拥有这个组织的 Praxis API key 再重试。
107511
+ */
107512
+ 401: RegistryRegistryError;
107513
+ /**
107514
+ * NOT_FOUND 表示这个库、包或版本不存在,或属于另一个组织——两种情况故意不区分;用 list 拿到的 id 重试,删除后的资源也会回到这个答案。
107515
+ */
107516
+ 404: RegistryRegistryError;
107517
+ /**
107518
+ * PAYLOAD_TOO_LARGE 表示上传超过限额:单次上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。精简内容后重发。
107519
+ */
107520
+ 413: RegistryRegistryError;
107521
+ /**
107522
+ * INTERNAL 表示服务没能完成请求;写操作重试前先读一次,确认上一次没有部分生效。
107523
+ */
107524
+ 500: RegistryRegistryError;
107525
+ /**
107526
+ * UNAVAILABLE 表示平台暂时没能完成请求(例如 git 后端不可达),请求没有生效;稍后重试。
107527
+ */
107528
+ 503: RegistryRegistryError;
107529
+ };
107530
+ export type RegistryGitFilesRetrieveError = RegistryGitFilesRetrieveErrors[keyof RegistryGitFilesRetrieveErrors];
107531
+ export type RegistryGitFilesRetrieveResponses = {
107532
+ /**
107533
+ * 文件内容,逐字节原样返回。
107534
+ */
107535
+ 200: Blob | File;
107536
+ };
107537
+ export type RegistryGitFilesRetrieveResponse = RegistryGitFilesRetrieveResponses[keyof RegistryGitFilesRetrieveResponses];
106930
107538
  export type RegistryPackagesVersionsContentsData = {
106931
107539
  body?: never;
106932
107540
  path: {