@deepraxis/sdk 0.1.1-dev.2efda8a → 0.1.1-dev.3266b68

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.
@@ -290,6 +290,10 @@ export type BrowserSessionCreateParams = {
290
290
  * 可省略;账户使用 default 项目。
291
291
  */
292
292
  projectId?: string;
293
+ /**
294
+ * 谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。
295
+ */
296
+ visibility?: 'private' | 'organization';
293
297
  /**
294
298
  * false 时最后一个客户端断开且无人观看后结束会话;true 时保留至关闭或超时。
295
299
  */
@@ -471,6 +475,14 @@ export type BrowserSessionCreateResult = {
471
475
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
472
476
  */
473
477
  origin: 'api' | 'connect' | 'console';
478
+ /**
479
+ * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
480
+ */
481
+ createdBy?: string;
482
+ /**
483
+ * 谁能看到这个会话:private 只有创建者,organization 同组织成员可只读观看画面。
484
+ */
485
+ visibility: 'private' | 'organization';
474
486
  /**
475
487
  * 会话释放原因;未开始释放时省略。
476
488
  */
@@ -605,6 +617,14 @@ export type BrowserSession = {
605
617
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
606
618
  */
607
619
  origin: 'api' | 'connect' | 'console';
620
+ /**
621
+ * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
622
+ */
623
+ createdBy?: string;
624
+ /**
625
+ * 谁能看到这个会话:private 只有创建者,organization 同组织成员可只读观看画面。
626
+ */
627
+ visibility: 'private' | 'organization';
608
628
  /**
609
629
  * 会话释放原因;未开始释放时省略。
610
630
  */
@@ -721,6 +741,14 @@ export type BrowserSessionGetResult = {
721
741
  * 会话创建入口;api 为 API 创建,connect 为一步连接创建,console 为 Console 创建。
722
742
  */
723
743
  origin: 'api' | 'connect' | 'console';
744
+ /**
745
+ * 创建这个会话的用户或智能体标识;通过能力 URL 创建、或在引入创建者之前创建的会话省略此字段。
746
+ */
747
+ createdBy?: string;
748
+ /**
749
+ * 谁能看到这个会话:private 只有创建者,organization 同组织成员可只读观看画面。
750
+ */
751
+ visibility: 'private' | 'organization';
724
752
  /**
725
753
  * 会话释放原因;未开始释放时省略。
726
754
  */
@@ -1014,6 +1042,29 @@ export type BrowserStreamMessage = {
1014
1042
  event: 'end';
1015
1043
  data: BrowserSession;
1016
1044
  };
1045
+ export type BrowserFrameStreamMessage = {
1046
+ event: 'frame';
1047
+ data: {
1048
+ /**
1049
+ * 画面格式,固定为 image/jpeg。
1050
+ */
1051
+ mediaType: 'image/jpeg';
1052
+ /**
1053
+ * JPEG 画面的 base64 编码;解码后最多 2 MiB。
1054
+ */
1055
+ data: string;
1056
+ /**
1057
+ * 浏览器产生这一帧的时刻,epoch 毫秒。
1058
+ */
1059
+ ts: number;
1060
+ };
1061
+ } | {
1062
+ event: 'end';
1063
+ /**
1064
+ * 会话已结束,画面通道关闭。
1065
+ */
1066
+ data: null;
1067
+ };
1017
1068
  export type OwnFileCreateFileRequest = {
1018
1069
  /**
1019
1070
  * File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.
@@ -16209,6 +16260,10 @@ export type MediaMediaModelsInput = {
16209
16260
  * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
16210
16261
  */
16211
16262
  audio?: string | null;
16263
+ /**
16264
+ * Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech. Null restores this role’s default.
16265
+ */
16266
+ speech?: string | null;
16212
16267
  } | null;
16213
16268
  /**
16214
16269
  * Libraries in this page, ordered by creation time descending.
@@ -16260,9 +16315,9 @@ export type MediaPurgedLibrary = {
16260
16315
  purged: true;
16261
16316
  };
16262
16317
  /**
16263
- * What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials.
16318
+ * What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file.
16264
16319
  */
16265
- export type MediaMaterialType = 'image' | 'video' | 'audio' | 'voice' | 'sticker' | 'font' | 'text_style' | 'text_template' | 'animation_preset' | 'lut' | 'transition_map';
16320
+ export type MediaMaterialType = 'image' | 'video' | 'audio' | 'voice' | 'sticker' | 'font' | 'text_style' | 'text_template' | 'animation_preset' | 'lut' | 'transition_map' | 'file';
16266
16321
  /**
16267
16322
  * Assets in this page, ordered by creation time descending.
16268
16323
  */
@@ -16279,11 +16334,7 @@ export type MediaAssetPage = MediaPage & {
16279
16334
  /**
16280
16335
  * Upload response: a resource for a normal upload, an acknowledgement for an incomplete chunk, or a resource with done=true for the final chunk.
16281
16336
  */
16282
- export type MediaUploadResult = MediaCloudinaryResource | MediaChunkPending | MediaChunkComplete;
16283
- /**
16284
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
16285
- */
16286
- export type MediaResourceType = 'image' | 'video' | 'raw';
16337
+ export type MediaUploadResult = MediaAsset | MediaChunkPending | MediaChunkComplete;
16287
16338
  /**
16288
16339
  * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
16289
16340
  */
@@ -16308,10 +16359,6 @@ export type MediaAsset = {
16308
16359
  * Organizational folder path; the empty string denotes the root folder.
16309
16360
  */
16310
16361
  asset_folder: string;
16311
- /**
16312
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
16313
- */
16314
- resource_type: MediaResourceType;
16315
16362
  /**
16316
16363
  * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
16317
16364
  */
@@ -16352,10 +16399,6 @@ export type MediaAsset = {
16352
16399
  * Number of pages recorded for the asset; omitted when no page count is stored.
16353
16400
  */
16354
16401
  pages?: number;
16355
- /**
16356
- * True for audio-only media, which uses resource_type video.
16357
- */
16358
- is_audio?: boolean;
16359
16402
  /**
16360
16403
  * Detected audio track metadata, omitted when no audio track information is available.
16361
16404
  */
@@ -16416,10 +16459,6 @@ export type MediaAsset = {
16416
16459
  * True when overwrite is false and the public_id already exists; the existing resource is returned.
16417
16460
  */
16418
16461
  existing?: boolean;
16419
- /**
16420
- * Progress of understanding and embedding tasks for the asset.
16421
- */
16422
- processing: MediaProcessing;
16423
16462
  /**
16424
16463
  * Identifier of the library containing this asset.
16425
16464
  */
@@ -16432,6 +16471,10 @@ export type MediaAsset = {
16432
16471
  * Resource status; active identifies an asset that has not been deleted.
16433
16472
  */
16434
16473
  status: 'active';
16474
+ /**
16475
+ * Progress of understanding and embedding tasks for the asset.
16476
+ */
16477
+ processing: MediaProcessing;
16435
16478
  /**
16436
16479
  * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
16437
16480
  */
@@ -16509,14 +16552,14 @@ export type MediaAsset = {
16509
16552
  */
16510
16553
  prompt: string;
16511
16554
  /**
16512
- * Router video-generation model that produced the asset.
16555
+ * Video-generation model that produced the asset.
16513
16556
  */
16514
16557
  model: string;
16515
16558
  };
16516
16559
  /**
16517
- * What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
16560
+ * What this asset is as a reusable material. Always present; a file whose specific kind cannot be identified is file.
16518
16561
  */
16519
- material_type?: MediaMaterialType;
16562
+ material_type: MediaMaterialType;
16520
16563
  /**
16521
16564
  * What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
16522
16565
  */
@@ -16610,9 +16653,9 @@ export type MediaExpressionSearchResult = {
16610
16653
  aggregations_exact?: boolean;
16611
16654
  };
16612
16655
  /**
16613
- * Facet to count: resource_type groups media categories, format groups file formats, asset_folder groups exact folders, and processing_state groups aggregate processing states.
16656
+ * Facet to count: material_type groups materials by what they are, format groups file formats, asset_folder groups exact folders, and processing_state groups aggregate processing states.
16614
16657
  */
16615
- export type MediaAggregateField = 'resource_type' | 'format' | 'asset_folder' | 'processing_state';
16658
+ export type MediaAggregateField = 'material_type' | 'format' | 'asset_folder' | 'processing_state';
16616
16659
  /**
16617
16660
  * Ranked search hits and the embedding producer used for the query.
16618
16661
  */
@@ -16742,7 +16785,7 @@ export type MediaJob = {
16742
16785
  */
16743
16786
  intent?: string;
16744
16787
  /**
16745
- * Router video-generation model used for the outputs.
16788
+ * Video-generation model used for the outputs.
16746
16789
  */
16747
16790
  model?: string;
16748
16791
  /**
@@ -16762,7 +16805,7 @@ export type MediaJob = {
16762
16805
  */
16763
16806
  preview_url?: string;
16764
16807
  /**
16765
- * Router seed for this video, when returned; it may be absent.
16808
+ * Seed for this video, when returned; it may be absent.
16766
16809
  */
16767
16810
  seed?: number | null;
16768
16811
  /**
@@ -16775,7 +16818,7 @@ export type MediaJob = {
16775
16818
  asset_id?: MediaAssetId;
16776
16819
  }>;
16777
16820
  /**
16778
- * Router-reported generation charge for the job.
16821
+ * Generation charge recorded for the job.
16779
16822
  */
16780
16823
  usage?: {
16781
16824
  /**
@@ -17083,7 +17126,7 @@ export type MediaEditOperation = {
17083
17126
  */
17084
17127
  references?: Array<MediaAssetReference>;
17085
17128
  /**
17086
- * Requested video length in seconds; Router validates the model’s supported durations.
17129
+ * Requested video length in seconds, validated against the model’s supported durations.
17087
17130
  */
17088
17131
  duration_seconds?: number;
17089
17132
  /**
@@ -17091,7 +17134,7 @@ export type MediaEditOperation = {
17091
17134
  */
17092
17135
  resolution?: '480p' | '720p' | '1080p' | '4k';
17093
17136
  /**
17094
- * Requested output aspect ratio; Router validates model support.
17137
+ * Requested output aspect ratio, validated against model support.
17095
17138
  */
17096
17139
  aspect_ratio?: string;
17097
17140
  /**
@@ -17255,7 +17298,7 @@ export type MediaGenerationCapabilities = {
17255
17298
  */
17256
17299
  concurrency_per_library: number;
17257
17300
  /**
17258
- * Unit used to charge video generation; generated duration is billed per second by Router.
17301
+ * Unit used to charge video generation; generated duration is billed per second.
17259
17302
  */
17260
17303
  price_unit: 'per second';
17261
17304
  /**
@@ -18087,6 +18130,65 @@ export type SandboxSandboxLogsV2Response = {
18087
18130
  */
18088
18131
  logs: Array<SandboxSandboxLogEntry>;
18089
18132
  };
18133
+ /**
18134
+ * Sandbox event
18135
+ */
18136
+ export type SandboxSandboxEvent = {
18137
+ /**
18138
+ * Event unique identifier
18139
+ */
18140
+ id: string;
18141
+ /**
18142
+ * Event structure version
18143
+ */
18144
+ version: string;
18145
+ /**
18146
+ * Event name
18147
+ */
18148
+ type: string;
18149
+ /**
18150
+ * Category of the event (e.g., 'lifecycle', 'process', etc.)
18151
+ *
18152
+ * @deprecated
18153
+ */
18154
+ eventCategory?: string;
18155
+ /**
18156
+ * Label for the specific event type (e.g., 'sandbox_started', 'process_oom', etc.)
18157
+ *
18158
+ * @deprecated
18159
+ */
18160
+ eventLabel?: string;
18161
+ /**
18162
+ * Optional JSON data associated with the event
18163
+ */
18164
+ eventData?: {
18165
+ [key: string]: unknown;
18166
+ };
18167
+ /**
18168
+ * Timestamp of the event
18169
+ */
18170
+ timestamp: string;
18171
+ /**
18172
+ * Unique identifier for the sandbox
18173
+ */
18174
+ sandboxId: string;
18175
+ /**
18176
+ * Unique identifier for the sandbox execution
18177
+ */
18178
+ sandboxExecutionId: string;
18179
+ /**
18180
+ * Unique identifier for the sandbox template
18181
+ */
18182
+ sandboxTemplateId: string;
18183
+ /**
18184
+ * Unique identifier for the sandbox build
18185
+ */
18186
+ sandboxBuildId: string;
18187
+ /**
18188
+ * Team identifier associated with the sandbox
18189
+ */
18190
+ sandboxTeamId: string;
18191
+ };
18090
18192
  export type SandboxAwsRegistry = {
18091
18193
  /**
18092
18194
  * aws is an upstream plaintext credential variant and is rejected; use a vault reference on /sandbox.
@@ -19154,6 +19256,10 @@ export type StudioEntryCreateInput = {
19154
19256
  * Name as the text will mention it; it must be unique inside this library after normalization, and it is what a unit claims when it links this entry.
19155
19257
  */
19156
19258
  name: string;
19259
+ /**
19260
+ * Free-text group to file this entry under, such as a layer of the setting, a faction or a cast, so people and later sessions find related entries together; leave it out or send an empty string for no group. At most 60 characters.
19261
+ */
19262
+ group?: string;
19157
19263
  /**
19158
19264
  * Other spellings the text may use, each matched like the name; use them instead of adding a second entry for the same thing.
19159
19265
  */
@@ -19229,6 +19335,10 @@ export type StudioEntry = {
19229
19335
  * Name as the text mentions it, unique inside this library after normalization; detection matches this and the aliases by word boundary.
19230
19336
  */
19231
19337
  name: string;
19338
+ /**
19339
+ * Free-text group the person or agent chose for this entry, such as a layer of the setting, a faction or a cast; the Console lists entries under it, and an empty string means ungrouped. At most 60 characters.
19340
+ */
19341
+ group: string;
19232
19342
  /**
19233
19343
  * Other spellings or short forms the text may use for this entry, each matched like the name itself.
19234
19344
  */
@@ -19297,6 +19407,10 @@ export type StudioEntryUpdateInput = {
19297
19407
  * New name for this entry, which also changes what the text has to mention for detection to find it.
19298
19408
  */
19299
19409
  name?: string;
19410
+ /**
19411
+ * New group, replacing the previous one when group is named in the update mask; an empty string removes the entry from its group. At most 60 characters.
19412
+ */
19413
+ group?: string;
19300
19414
  /**
19301
19415
  * Complete set of aliases, replacing the previous ones.
19302
19416
  */
@@ -31576,6 +31690,10 @@ export type MediaMediaModels = {
31576
31690
  * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
31577
31691
  */
31578
31692
  readonly audio: string;
31693
+ /**
31694
+ * Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
31695
+ */
31696
+ readonly speech: string;
31579
31697
  };
31580
31698
  /**
31581
31699
  * Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
@@ -31615,139 +31733,6 @@ export type MediaPage = {
31615
31733
  */
31616
31734
  next_cursor: string | null;
31617
31735
  };
31618
- /**
31619
- * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
31620
- */
31621
- export type MediaCloudinaryResource = {
31622
- /**
31623
- * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
31624
- */
31625
- asset_id: MediaAssetId;
31626
- /**
31627
- * Delivery identifier unique within this library, used in asset URLs.
31628
- */
31629
- public_id: string;
31630
- /**
31631
- * Human-readable asset name, independent of its delivery identifier.
31632
- */
31633
- display_name: string;
31634
- /**
31635
- * Organizational folder path; the empty string denotes the root folder.
31636
- */
31637
- asset_folder: string;
31638
- /**
31639
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
31640
- */
31641
- resource_type: MediaResourceType;
31642
- /**
31643
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
31644
- */
31645
- type: MediaDeliveryType;
31646
- /**
31647
- * Detected file format used as the delivery URL extension.
31648
- */
31649
- format: string;
31650
- /**
31651
- * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
31652
- */
31653
- version: number;
31654
- /**
31655
- * Identifier for this asset version, regenerated on overwrite.
31656
- */
31657
- version_id: string;
31658
- /**
31659
- * Size of the original source content, in bytes.
31660
- */
31661
- bytes: number;
31662
- /**
31663
- * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
31664
- */
31665
- etag: string;
31666
- /**
31667
- * Source image or video width in pixels, when known.
31668
- */
31669
- width?: number;
31670
- /**
31671
- * Source image or video height in pixels, when known.
31672
- */
31673
- height?: number;
31674
- /**
31675
- * Source audio or video duration in seconds, when known.
31676
- */
31677
- duration?: number;
31678
- /**
31679
- * Number of pages recorded for the asset; omitted when no page count is stored.
31680
- */
31681
- pages?: number;
31682
- /**
31683
- * True for audio-only media, which uses resource_type video.
31684
- */
31685
- is_audio?: boolean;
31686
- /**
31687
- * Detected audio track metadata, omitted when no audio track information is available.
31688
- */
31689
- audio?: {
31690
- /**
31691
- * Detected audio codec identifier, when known.
31692
- */
31693
- codec?: string;
31694
- /**
31695
- * Number of audio channels in the detected track, when known.
31696
- */
31697
- channels?: number;
31698
- /**
31699
- * Audio sampling frequency in hertz, when known.
31700
- */
31701
- frequency?: number;
31702
- };
31703
- /**
31704
- * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
31705
- */
31706
- has_audio?: false;
31707
- /**
31708
- * Original or overridden source filename with its final extension removed.
31709
- */
31710
- original_filename?: string;
31711
- /**
31712
- * Labels attached to the asset.
31713
- */
31714
- tags: Array<string>;
31715
- /**
31716
- * Custom string metadata; omitted when empty or excluded by the search projection.
31717
- */
31718
- context?: {
31719
- /**
31720
- * Caller-supplied metadata entries with string values.
31721
- */
31722
- custom: {
31723
- [key: string]: string;
31724
- };
31725
- };
31726
- /**
31727
- * Time this asset identity was created, in UTC.
31728
- */
31729
- created_at: MediaIsoTimestamp;
31730
- /**
31731
- * URL for retrieving this version of the asset’s original content.
31732
- */
31733
- url: string;
31734
- /**
31735
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
31736
- */
31737
- secure_url: string;
31738
- /**
31739
- * False because this response represents stored source content.
31740
- */
31741
- placeholder: false;
31742
- /**
31743
- * True when overwrite=false returns the asset already stored under the requested public_id.
31744
- */
31745
- existing?: boolean;
31746
- /**
31747
- * Processing progress, included when auto_tagging was requested.
31748
- */
31749
- processing?: MediaProcessing;
31750
- };
31751
31736
  /**
31752
31737
  * Acknowledgement of an accepted upload chunk before the complete asset is available.
31753
31738
  */
@@ -31761,7 +31746,7 @@ export type MediaChunkPending = {
31761
31746
  */
31762
31747
  upload_id: string;
31763
31748
  };
31764
- export type MediaChunkComplete = MediaCloudinaryResource & {
31749
+ export type MediaChunkComplete = MediaAsset & {
31765
31750
  /**
31766
31751
  * True when the final chunk has completed the asset upload.
31767
31752
  */
@@ -31837,7 +31822,7 @@ export type MediaProvenance = {
31837
31822
  */
31838
31823
  references: Array<MediaAssetReference>;
31839
31824
  /**
31840
- * Model that performed the operation, as the model identifier Router reports.
31825
+ * Model that performed the operation, as the model identifier returned by the model API.
31841
31826
  */
31842
31827
  model: string;
31843
31828
  /**
@@ -32007,10 +31992,6 @@ export type MediaSearchAsset = {
32007
31992
  * Organizational folder path; the empty string denotes the root folder.
32008
31993
  */
32009
31994
  asset_folder: string;
32010
- /**
32011
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
32012
- */
32013
- resource_type: MediaResourceType;
32014
31995
  /**
32015
31996
  * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
32016
31997
  */
@@ -32051,10 +32032,6 @@ export type MediaSearchAsset = {
32051
32032
  * Number of pages recorded for the asset; omitted when no page count is stored.
32052
32033
  */
32053
32034
  pages?: number;
32054
- /**
32055
- * True for audio-only media, which uses resource_type video.
32056
- */
32057
- is_audio?: boolean;
32058
32035
  /**
32059
32036
  * Detected audio track metadata, omitted when no audio track information is available.
32060
32037
  */
@@ -32115,10 +32092,6 @@ export type MediaSearchAsset = {
32115
32092
  * True when overwrite is false and the public_id already exists; the existing resource is returned.
32116
32093
  */
32117
32094
  existing?: boolean;
32118
- /**
32119
- * Progress of understanding and embedding tasks for the asset.
32120
- */
32121
- processing: MediaProcessing;
32122
32095
  /**
32123
32096
  * Identifier of the library containing this asset.
32124
32097
  */
@@ -32131,6 +32104,10 @@ export type MediaSearchAsset = {
32131
32104
  * Resource status; active identifies an asset that has not been deleted.
32132
32105
  */
32133
32106
  status: 'active';
32107
+ /**
32108
+ * Progress of understanding and embedding tasks for the asset.
32109
+ */
32110
+ processing: MediaProcessing;
32134
32111
  /**
32135
32112
  * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
32136
32113
  */
@@ -32208,14 +32185,14 @@ export type MediaSearchAsset = {
32208
32185
  */
32209
32186
  prompt: string;
32210
32187
  /**
32211
- * Router video-generation model that produced the asset.
32188
+ * Video-generation model that produced the asset.
32212
32189
  */
32213
32190
  model: string;
32214
32191
  };
32215
32192
  /**
32216
- * What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
32193
+ * What this asset is as a reusable material. Always present; a file whose specific kind cannot be identified is file.
32217
32194
  */
32218
- material_type?: MediaMaterialType;
32195
+ material_type: MediaMaterialType;
32219
32196
  /**
32220
32197
  * What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
32221
32198
  */
@@ -40535,6 +40512,7 @@ export type MediaShotFlag = {
40535
40512
  readonly confidence: number;
40536
40513
  };
40537
40514
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
40515
+ export type PraxisSdkSseGetBrowserV1SessionsSessionIdFrames = BrowserFrameStreamMessage;
40538
40516
  /**
40539
40517
  * One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
40540
40518
  */
@@ -40935,7 +40913,7 @@ export type MediaAssetPageWritable = MediaPage & {
40935
40913
  /**
40936
40914
  * Upload response: a resource for a normal upload, an acknowledgement for an incomplete chunk, or a resource with done=true for the final chunk.
40937
40915
  */
40938
- export type MediaUploadResultWritable = MediaCloudinaryResourceWritable | MediaChunkPending | MediaChunkCompleteWritable;
40916
+ export type MediaUploadResultWritable = MediaAssetWritable | MediaChunkPending | MediaChunkCompleteWritable;
40939
40917
  /**
40940
40918
  * A media resource with its library, content hash, processing progress and semantic-search availability.
40941
40919
  */
@@ -40956,10 +40934,6 @@ export type MediaAssetWritable = {
40956
40934
  * Organizational folder path; the empty string denotes the root folder.
40957
40935
  */
40958
40936
  asset_folder: string;
40959
- /**
40960
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
40961
- */
40962
- resource_type: MediaResourceType;
40963
40937
  /**
40964
40938
  * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
40965
40939
  */
@@ -41000,10 +40974,6 @@ export type MediaAssetWritable = {
41000
40974
  * Number of pages recorded for the asset; omitted when no page count is stored.
41001
40975
  */
41002
40976
  pages?: number;
41003
- /**
41004
- * True for audio-only media, which uses resource_type video.
41005
- */
41006
- is_audio?: boolean;
41007
40977
  /**
41008
40978
  * Detected audio track metadata, omitted when no audio track information is available.
41009
40979
  */
@@ -41064,10 +41034,6 @@ export type MediaAssetWritable = {
41064
41034
  * True when overwrite is false and the public_id already exists; the existing resource is returned.
41065
41035
  */
41066
41036
  existing?: boolean;
41067
- /**
41068
- * Progress of understanding and embedding tasks for the asset.
41069
- */
41070
- processing: MediaProcessingWritable;
41071
41037
  /**
41072
41038
  * Identifier of the library containing this asset.
41073
41039
  */
@@ -41080,6 +41046,10 @@ export type MediaAssetWritable = {
41080
41046
  * Resource status; active identifies an asset that has not been deleted.
41081
41047
  */
41082
41048
  status: 'active';
41049
+ /**
41050
+ * Progress of understanding and embedding tasks for the asset.
41051
+ */
41052
+ processing: MediaProcessingWritable;
41083
41053
  /**
41084
41054
  * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
41085
41055
  */
@@ -41157,14 +41127,14 @@ export type MediaAssetWritable = {
41157
41127
  */
41158
41128
  prompt: string;
41159
41129
  /**
41160
- * Router video-generation model that produced the asset.
41130
+ * Video-generation model that produced the asset.
41161
41131
  */
41162
41132
  model: string;
41163
41133
  };
41164
41134
  /**
41165
- * What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
41135
+ * What this asset is as a reusable material. Always present; a file whose specific kind cannot be identified is file.
41166
41136
  */
41167
- material_type?: MediaMaterialType;
41137
+ material_type: MediaMaterialType;
41168
41138
  /**
41169
41139
  * What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
41170
41140
  */
@@ -41365,140 +41335,7 @@ export type MediaMediaModelsWritable = {
41365
41335
  */
41366
41336
  transcription: string;
41367
41337
  };
41368
- /**
41369
- * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
41370
- */
41371
- export type MediaCloudinaryResourceWritable = {
41372
- /**
41373
- * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
41374
- */
41375
- asset_id: MediaAssetId;
41376
- /**
41377
- * Delivery identifier unique within this library, used in asset URLs.
41378
- */
41379
- public_id: string;
41380
- /**
41381
- * Human-readable asset name, independent of its delivery identifier.
41382
- */
41383
- display_name: string;
41384
- /**
41385
- * Organizational folder path; the empty string denotes the root folder.
41386
- */
41387
- asset_folder: string;
41388
- /**
41389
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
41390
- */
41391
- resource_type: MediaResourceType;
41392
- /**
41393
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
41394
- */
41395
- type: MediaDeliveryType;
41396
- /**
41397
- * Detected file format used as the delivery URL extension.
41398
- */
41399
- format: string;
41400
- /**
41401
- * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
41402
- */
41403
- version: number;
41404
- /**
41405
- * Identifier for this asset version, regenerated on overwrite.
41406
- */
41407
- version_id: string;
41408
- /**
41409
- * Size of the original source content, in bytes.
41410
- */
41411
- bytes: number;
41412
- /**
41413
- * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
41414
- */
41415
- etag: string;
41416
- /**
41417
- * Source image or video width in pixels, when known.
41418
- */
41419
- width?: number;
41420
- /**
41421
- * Source image or video height in pixels, when known.
41422
- */
41423
- height?: number;
41424
- /**
41425
- * Source audio or video duration in seconds, when known.
41426
- */
41427
- duration?: number;
41428
- /**
41429
- * Number of pages recorded for the asset; omitted when no page count is stored.
41430
- */
41431
- pages?: number;
41432
- /**
41433
- * True for audio-only media, which uses resource_type video.
41434
- */
41435
- is_audio?: boolean;
41436
- /**
41437
- * Detected audio track metadata, omitted when no audio track information is available.
41438
- */
41439
- audio?: {
41440
- /**
41441
- * Detected audio codec identifier, when known.
41442
- */
41443
- codec?: string;
41444
- /**
41445
- * Number of audio channels in the detected track, when known.
41446
- */
41447
- channels?: number;
41448
- /**
41449
- * Audio sampling frequency in hertz, when known.
41450
- */
41451
- frequency?: number;
41452
- };
41453
- /**
41454
- * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
41455
- */
41456
- has_audio?: false;
41457
- /**
41458
- * Original or overridden source filename with its final extension removed.
41459
- */
41460
- original_filename?: string;
41461
- /**
41462
- * Labels attached to the asset.
41463
- */
41464
- tags: Array<string>;
41465
- /**
41466
- * Custom string metadata; omitted when empty or excluded by the search projection.
41467
- */
41468
- context?: {
41469
- /**
41470
- * Caller-supplied metadata entries with string values.
41471
- */
41472
- custom: {
41473
- [key: string]: string;
41474
- };
41475
- };
41476
- /**
41477
- * Time this asset identity was created, in UTC.
41478
- */
41479
- created_at: MediaIsoTimestamp;
41480
- /**
41481
- * URL for retrieving this version of the asset’s original content.
41482
- */
41483
- url: string;
41484
- /**
41485
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
41486
- */
41487
- secure_url: string;
41488
- /**
41489
- * False because this response represents stored source content.
41490
- */
41491
- placeholder: false;
41492
- /**
41493
- * True when overwrite=false returns the asset already stored under the requested public_id.
41494
- */
41495
- existing?: boolean;
41496
- /**
41497
- * Processing progress, included when auto_tagging was requested.
41498
- */
41499
- processing?: MediaProcessingWritable;
41500
- };
41501
- export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
41338
+ export type MediaChunkCompleteWritable = MediaAssetWritable & {
41502
41339
  /**
41503
41340
  * True when the final chunk has completed the asset upload.
41504
41341
  */
@@ -41610,10 +41447,6 @@ export type MediaSearchAssetWritable = {
41610
41447
  * Organizational folder path; the empty string denotes the root folder.
41611
41448
  */
41612
41449
  asset_folder: string;
41613
- /**
41614
- * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
41615
- */
41616
- resource_type: MediaResourceType;
41617
41450
  /**
41618
41451
  * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
41619
41452
  */
@@ -41654,10 +41487,6 @@ export type MediaSearchAssetWritable = {
41654
41487
  * Number of pages recorded for the asset; omitted when no page count is stored.
41655
41488
  */
41656
41489
  pages?: number;
41657
- /**
41658
- * True for audio-only media, which uses resource_type video.
41659
- */
41660
- is_audio?: boolean;
41661
41490
  /**
41662
41491
  * Detected audio track metadata, omitted when no audio track information is available.
41663
41492
  */
@@ -41718,10 +41547,6 @@ export type MediaSearchAssetWritable = {
41718
41547
  * True when overwrite is false and the public_id already exists; the existing resource is returned.
41719
41548
  */
41720
41549
  existing?: boolean;
41721
- /**
41722
- * Progress of understanding and embedding tasks for the asset.
41723
- */
41724
- processing: MediaProcessingWritable;
41725
41550
  /**
41726
41551
  * Identifier of the library containing this asset.
41727
41552
  */
@@ -41734,6 +41559,10 @@ export type MediaSearchAssetWritable = {
41734
41559
  * Resource status; active identifies an asset that has not been deleted.
41735
41560
  */
41736
41561
  status: 'active';
41562
+ /**
41563
+ * Progress of understanding and embedding tasks for the asset.
41564
+ */
41565
+ processing: MediaProcessingWritable;
41737
41566
  /**
41738
41567
  * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
41739
41568
  */
@@ -41811,14 +41640,14 @@ export type MediaSearchAssetWritable = {
41811
41640
  */
41812
41641
  prompt: string;
41813
41642
  /**
41814
- * Router video-generation model that produced the asset.
41643
+ * Video-generation model that produced the asset.
41815
41644
  */
41816
41645
  model: string;
41817
41646
  };
41818
41647
  /**
41819
- * What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
41648
+ * What this asset is as a reusable material. Always present; a file whose specific kind cannot be identified is file.
41820
41649
  */
41821
- material_type?: MediaMaterialType;
41650
+ material_type: MediaMaterialType;
41822
41651
  /**
41823
41652
  * What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
41824
41653
  */
@@ -42280,7 +42109,7 @@ export type ApplyAgentVersionResponses = {
42280
42109
  */
42281
42110
  note: string | null;
42282
42111
  /**
42283
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
42112
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
42284
42113
  */
42285
42114
  bindings: Array<{
42286
42115
  /**
@@ -43497,7 +43326,7 @@ export type UnarchiveAgentResponses = {
43497
43326
  */
43498
43327
  note: string | null;
43499
43328
  /**
43500
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
43329
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
43501
43330
  */
43502
43331
  bindings: Array<{
43503
43332
  /**
@@ -52212,94 +52041,176 @@ export type BrowserRequestHandoffErrors = {
52212
52041
  */
52213
52042
  504: BrowserError;
52214
52043
  };
52215
- export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
52216
- export type BrowserRequestHandoffResponses = {
52044
+ export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
52045
+ export type BrowserRequestHandoffResponses = {
52046
+ /**
52047
+ * 请求成功。
52048
+ */
52049
+ 201: BrowserEventRecord;
52050
+ };
52051
+ export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
52052
+ export type BrowserCompleteHandoffData = {
52053
+ body?: never;
52054
+ path: {
52055
+ /**
52056
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
52057
+ */
52058
+ sessionId: string;
52059
+ };
52060
+ query?: never;
52061
+ url: '/browser/v1/sessions/{sessionId}/handoff/complete';
52062
+ };
52063
+ export type BrowserCompleteHandoffErrors = {
52064
+ /**
52065
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
52066
+ */
52067
+ 400: BrowserError;
52068
+ /**
52069
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
52070
+ */
52071
+ 401: BrowserError;
52072
+ /**
52073
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
52074
+ */
52075
+ 402: BrowserError;
52076
+ /**
52077
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
52078
+ */
52079
+ 403: BrowserError;
52080
+ /**
52081
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
52082
+ */
52083
+ 404: BrowserError;
52084
+ /**
52085
+ * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
52086
+ */
52087
+ 409: BrowserError;
52088
+ /**
52089
+ * ACTION_RESULT_TOO_LARGE
52090
+ */
52091
+ 413: BrowserError;
52092
+ /**
52093
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
52094
+ */
52095
+ 429: BrowserError;
52096
+ /**
52097
+ * INTERNAL
52098
+ */
52099
+ 500: BrowserError;
52100
+ /**
52101
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
52102
+ */
52103
+ 501: BrowserError;
52104
+ /**
52105
+ * PROVIDER_FAILED
52106
+ */
52107
+ 502: BrowserError;
52108
+ /**
52109
+ * SERVICE_UNAVAILABLE
52110
+ */
52111
+ 503: BrowserError;
52112
+ /**
52113
+ * ACTION_TIMEOUT
52114
+ */
52115
+ 504: BrowserError;
52116
+ };
52117
+ export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
52118
+ export type BrowserCompleteHandoffResponses = {
52119
+ /**
52120
+ * 请求成功。
52121
+ */
52122
+ 200: BrowserEventRecord;
52123
+ };
52124
+ export type BrowserCompleteHandoffResponse = BrowserCompleteHandoffResponses[keyof BrowserCompleteHandoffResponses];
52125
+ export type BrowserViewerHeartbeatData = {
52126
+ body: {
52127
+ /**
52128
+ * 当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。
52129
+ */
52130
+ viewerId: string;
52131
+ /**
52132
+ * 观看者类型:control 是需要控制浏览器的客户端,readonly 是只读观看者。只读观看者发送 control 也会按 readonly 记录。
52133
+ */
52134
+ kind?: 'control' | 'readonly';
52135
+ };
52136
+ path: {
52137
+ /**
52138
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
52139
+ */
52140
+ sessionId: string;
52141
+ };
52142
+ query?: never;
52143
+ url: '/browser/v1/sessions/{sessionId}/viewer';
52144
+ };
52145
+ export type BrowserViewerHeartbeatErrors = {
52146
+ /**
52147
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
52148
+ */
52149
+ 400: BrowserError;
52150
+ /**
52151
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
52152
+ */
52153
+ 401: BrowserError;
52154
+ /**
52155
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
52156
+ */
52157
+ 402: BrowserError;
52158
+ /**
52159
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
52160
+ */
52161
+ 403: BrowserError;
52162
+ /**
52163
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
52164
+ */
52165
+ 404: BrowserError;
52166
+ /**
52167
+ * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
52168
+ */
52169
+ 409: BrowserError;
52170
+ /**
52171
+ * ACTION_RESULT_TOO_LARGE
52172
+ */
52173
+ 413: BrowserError;
52174
+ /**
52175
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
52176
+ */
52177
+ 429: BrowserError;
52178
+ /**
52179
+ * INTERNAL
52180
+ */
52181
+ 500: BrowserError;
52182
+ /**
52183
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
52184
+ */
52185
+ 501: BrowserError;
52186
+ /**
52187
+ * PROVIDER_FAILED
52188
+ */
52189
+ 502: BrowserError;
52190
+ /**
52191
+ * SERVICE_UNAVAILABLE
52192
+ */
52193
+ 503: BrowserError;
52194
+ /**
52195
+ * ACTION_TIMEOUT
52196
+ */
52197
+ 504: BrowserError;
52198
+ };
52199
+ export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
52200
+ export type BrowserViewerHeartbeatResponses = {
52217
52201
  /**
52218
52202
  * 请求成功。
52219
52203
  */
52220
- 201: BrowserEventRecord;
52221
- };
52222
- export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
52223
- export type BrowserCompleteHandoffData = {
52224
- body?: never;
52225
- path: {
52204
+ 200: {
52226
52205
  /**
52227
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
52206
+ * 心跳已被接受,成功时固定返回 true。
52228
52207
  */
52229
- sessionId: string;
52208
+ ok: true;
52230
52209
  };
52231
- query?: never;
52232
- url: '/browser/v1/sessions/{sessionId}/handoff/complete';
52233
- };
52234
- export type BrowserCompleteHandoffErrors = {
52235
- /**
52236
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
52237
- */
52238
- 400: BrowserError;
52239
- /**
52240
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
52241
- */
52242
- 401: BrowserError;
52243
- /**
52244
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
52245
- */
52246
- 402: BrowserError;
52247
- /**
52248
- * PERMISSION_DENIED / ACCOUNT_SUSPENDED
52249
- */
52250
- 403: BrowserError;
52251
- /**
52252
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
52253
- */
52254
- 404: BrowserError;
52255
- /**
52256
- * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
52257
- */
52258
- 409: BrowserError;
52259
- /**
52260
- * ACTION_RESULT_TOO_LARGE
52261
- */
52262
- 413: BrowserError;
52263
- /**
52264
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
52265
- */
52266
- 429: BrowserError;
52267
- /**
52268
- * INTERNAL
52269
- */
52270
- 500: BrowserError;
52271
- /**
52272
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
52273
- */
52274
- 501: BrowserError;
52275
- /**
52276
- * PROVIDER_FAILED
52277
- */
52278
- 502: BrowserError;
52279
- /**
52280
- * SERVICE_UNAVAILABLE
52281
- */
52282
- 503: BrowserError;
52283
- /**
52284
- * ACTION_TIMEOUT
52285
- */
52286
- 504: BrowserError;
52287
52210
  };
52288
- export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
52289
- export type BrowserCompleteHandoffResponses = {
52290
- /**
52291
- * 请求成功。
52292
- */
52293
- 200: BrowserEventRecord;
52294
- };
52295
- export type BrowserCompleteHandoffResponse = BrowserCompleteHandoffResponses[keyof BrowserCompleteHandoffResponses];
52296
- export type BrowserViewerHeartbeatData = {
52297
- body: {
52298
- /**
52299
- * 当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。
52300
- */
52301
- viewerId: string;
52302
- };
52211
+ export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
52212
+ export type BrowserGetSessionFrameData = {
52213
+ body?: never;
52303
52214
  path: {
52304
52215
  /**
52305
52216
  * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
@@ -52307,9 +52218,9 @@ export type BrowserViewerHeartbeatData = {
52307
52218
  sessionId: string;
52308
52219
  };
52309
52220
  query?: never;
52310
- url: '/browser/v1/sessions/{sessionId}/viewer';
52221
+ url: '/browser/v1/sessions/{sessionId}/frame';
52311
52222
  };
52312
- export type BrowserViewerHeartbeatErrors = {
52223
+ export type BrowserGetSessionFrameErrors = {
52313
52224
  /**
52314
52225
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
52315
52226
  */
@@ -52363,19 +52274,14 @@ export type BrowserViewerHeartbeatErrors = {
52363
52274
  */
52364
52275
  504: BrowserError;
52365
52276
  };
52366
- export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
52367
- export type BrowserViewerHeartbeatResponses = {
52277
+ export type BrowserGetSessionFrameError = BrowserGetSessionFrameErrors[keyof BrowserGetSessionFrameErrors];
52278
+ export type BrowserGetSessionFrameResponses = {
52368
52279
  /**
52369
- * 请求成功。
52280
+ * JPEG 画面帧,最多 2 MiB。
52370
52281
  */
52371
- 200: {
52372
- /**
52373
- * 心跳已被接受,成功时固定返回 true。
52374
- */
52375
- ok: true;
52376
- };
52282
+ 200: Blob | File;
52377
52283
  };
52378
- export type BrowserViewerHeartbeatResponse = BrowserViewerHeartbeatResponses[keyof BrowserViewerHeartbeatResponses];
52284
+ export type BrowserGetSessionFrameResponse = BrowserGetSessionFrameResponses[keyof BrowserGetSessionFrameResponses];
52379
52285
  export type BrowserListContextsData = {
52380
52286
  body?: never;
52381
52287
  path?: never;
@@ -53030,6 +52936,79 @@ export type BrowserStreamSessionResponses = {
53030
52936
  200: BrowserStreamMessage;
53031
52937
  };
53032
52938
  export type BrowserStreamSessionResponse = BrowserStreamSessionResponses[keyof BrowserStreamSessionResponses];
52939
+ export type BrowserStreamSessionFramesData = {
52940
+ body?: never;
52941
+ path: {
52942
+ /**
52943
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
52944
+ */
52945
+ sessionId: string;
52946
+ };
52947
+ query?: never;
52948
+ url: '/browser/v1/sessions/{sessionId}/frames';
52949
+ };
52950
+ export type BrowserStreamSessionFramesErrors = {
52951
+ /**
52952
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
52953
+ */
52954
+ 400: BrowserError;
52955
+ /**
52956
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
52957
+ */
52958
+ 401: BrowserError;
52959
+ /**
52960
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
52961
+ */
52962
+ 402: BrowserError;
52963
+ /**
52964
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
52965
+ */
52966
+ 403: BrowserError;
52967
+ /**
52968
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
52969
+ */
52970
+ 404: BrowserError;
52971
+ /**
52972
+ * SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
52973
+ */
52974
+ 409: BrowserError;
52975
+ /**
52976
+ * ACTION_RESULT_TOO_LARGE
52977
+ */
52978
+ 413: BrowserError;
52979
+ /**
52980
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
52981
+ */
52982
+ 429: BrowserError;
52983
+ /**
52984
+ * INTERNAL
52985
+ */
52986
+ 500: BrowserError;
52987
+ /**
52988
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
52989
+ */
52990
+ 501: BrowserError;
52991
+ /**
52992
+ * PROVIDER_FAILED
52993
+ */
52994
+ 502: BrowserError;
52995
+ /**
52996
+ * SERVICE_UNAVAILABLE
52997
+ */
52998
+ 503: BrowserError;
52999
+ /**
53000
+ * ACTION_TIMEOUT
53001
+ */
53002
+ 504: BrowserError;
53003
+ };
53004
+ export type BrowserStreamSessionFramesError = BrowserStreamSessionFramesErrors[keyof BrowserStreamSessionFramesErrors];
53005
+ export type BrowserStreamSessionFramesResponses = {
53006
+ /**
53007
+ * 持续推送只读画面帧。
53008
+ */
53009
+ 200: BrowserFrameStreamMessage;
53010
+ };
53011
+ export type BrowserStreamSessionFramesResponse = BrowserStreamSessionFramesResponses[keyof BrowserStreamSessionFramesResponses];
53033
53012
  export type BrowserSeleniumUnsupportedData = {
53034
53013
  body?: never;
53035
53014
  path?: never;
@@ -53734,7 +53713,7 @@ export type ListModelsData = {
53734
53713
  /**
53735
53714
  * 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.
53736
53715
  */
53737
- 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' | 'typesafe.systemone'>;
53716
+ 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' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.voice_clone'>;
53738
53717
  /**
53739
53718
  * Filter by one or more model types (comma-separated).
53740
53719
  */
@@ -60018,6 +59997,10 @@ export type RunSandboxCommandData = {
60018
59997
  * Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes). In background mode this limits process runtime; expiry records exit code 124.
60019
59998
  */
60020
59999
  timeoutMs?: number;
60000
+ /**
60001
+ * Foreground commands only, off by default: end this command once it goes this many milliseconds (1000 to 3600000) without writing a single byte to stdout or stderr, and answer COMMAND_NO_PROGRESS (504) with the output received so far and lastOutputAt. The sandbox itself keeps running, so decide afterwards whether to read what it produced or stop it with DELETE. A slow command that keeps producing output is never ended by it; if the program buffers its output, turn buffering off first, for example PYTHONUNBUFFERED=1 or stdbuf -oL. Passing it together with background true is refused with INVALID_PARAMS.
60002
+ */
60003
+ progressTimeoutMs?: number;
60021
60004
  };
60022
60005
  path: {
60023
60006
  /**
@@ -60826,7 +60809,7 @@ export type AgentsListResponses = {
60826
60809
  */
60827
60810
  note: string | null;
60828
60811
  /**
60829
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
60812
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
60830
60813
  */
60831
60814
  bindings: Array<{
60832
60815
  /**
@@ -61365,7 +61348,7 @@ export type AgentsCreateData = {
61365
61348
  */
61366
61349
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
61367
61350
  /**
61368
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
61351
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
61369
61352
  */
61370
61353
  bindings?: Array<{
61371
61354
  /**
@@ -61966,7 +61949,7 @@ export type AgentsCreateResponses = {
61966
61949
  */
61967
61950
  note: string | null;
61968
61951
  /**
61969
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
61952
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
61970
61953
  */
61971
61954
  bindings: Array<{
61972
61955
  /**
@@ -62594,7 +62577,7 @@ export type AgentsRetrieveResponses = {
62594
62577
  */
62595
62578
  note: string | null;
62596
62579
  /**
62597
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
62580
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
62598
62581
  */
62599
62582
  bindings: Array<{
62600
62583
  /**
@@ -63756,7 +63739,7 @@ export type AgentsUpdateResponses = {
63756
63739
  */
63757
63740
  note: string | null;
63758
63741
  /**
63759
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
63742
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
63760
63743
  */
63761
63744
  bindings: Array<{
63762
63745
  /**
@@ -64370,7 +64353,7 @@ export type AgentsArchiveResponses = {
64370
64353
  */
64371
64354
  note: string | null;
64372
64355
  /**
64373
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
64356
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
64374
64357
  */
64375
64358
  bindings: Array<{
64376
64359
  /**
@@ -65002,7 +64985,7 @@ export type AgentsVersionsListResponses = {
65002
64985
  */
65003
64986
  note: string | null;
65004
64987
  /**
65005
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
64988
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
65006
64989
  */
65007
64990
  bindings: Array<{
65008
64991
  /**
@@ -85022,11 +85005,7 @@ export type MediaListAssetsData = {
85022
85005
  */
85023
85006
  asset_folder?: string;
85024
85007
  /**
85025
- * image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400.
85026
- */
85027
- resource_type?: 'image' | 'video' | 'raw';
85028
- /**
85029
- * Filter assets to one kind of material, independent of the stored resource_type. Omit to list every material type. Assets stored before this field existed match no material_type filter.
85008
+ * Filter assets to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to list every material type.
85030
85009
  */
85031
85010
  material_type?: MediaMaterialType;
85032
85011
  /**
@@ -85158,11 +85137,7 @@ export type MediaUploadAssetData = {
85158
85137
  */
85159
85138
  auto_tagging?: number;
85160
85139
  /**
85161
- * Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.
85162
- */
85163
- resource_type?: 'image' | 'video' | 'raw' | 'auto';
85164
- /**
85165
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
85140
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Public delivery requires an explicit type=upload.
85166
85141
  */
85167
85142
  type?: MediaDeliveryType;
85168
85143
  };
@@ -85303,11 +85278,7 @@ export type MediaImportAssetData = {
85303
85278
  */
85304
85279
  auto_tagging?: number;
85305
85280
  /**
85306
- * Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.
85307
- */
85308
- resource_type?: 'image' | 'video' | 'raw' | 'auto';
85309
- /**
85310
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
85281
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Public delivery requires an explicit type=upload.
85311
85282
  */
85312
85283
  type?: MediaDeliveryType;
85313
85284
  };
@@ -86006,7 +85977,7 @@ export type MediaSemanticSearchData = {
86006
85977
  */
86007
85978
  mode?: 'hybrid' | 'semantic';
86008
85979
  /**
86009
- * Filter results to one kind of material, independent of the Cloudinary-face resource_type inside filter. Omit to search every material type.
85980
+ * Filter results to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to search every material type.
86010
85981
  */
86011
85982
  material_type?: MediaMaterialType;
86012
85983
  };
@@ -86099,7 +86070,7 @@ export type MediaSearchData = {
86099
86070
  */
86100
86071
  mode?: 'hybrid' | 'semantic';
86101
86072
  /**
86102
- * Filter results to one kind of material, independent of the Cloudinary-face resource_type inside filter. Omit to search every material type.
86073
+ * Filter results to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to search every material type.
86103
86074
  */
86104
86075
  material_type?: MediaMaterialType;
86105
86076
  };
@@ -86934,7 +86905,7 @@ export type MediaGenerateImageData = {
86934
86905
  */
86935
86906
  body: {
86936
86907
  /**
86937
- * Text prompt describing the image to generate; Router forwards it to the image model unchanged.
86908
+ * Text prompt describing the image to generate; the image model receives it unchanged.
86938
86909
  */
86939
86910
  prompt: string;
86940
86911
  /**
@@ -86946,7 +86917,7 @@ export type MediaGenerateImageData = {
86946
86917
  */
86947
86918
  n?: number;
86948
86919
  /**
86949
- * Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS.
86920
+ * Requested pixel size written as width x height. The chosen model is validated against it and an unsupported size is rejected with INVALID_PARAMS.
86950
86921
  */
86951
86922
  size?: string;
86952
86923
  /**
@@ -86962,7 +86933,7 @@ export type MediaGenerateImageData = {
86962
86933
  */
86963
86934
  output?: 'image' | 'sticker';
86964
86935
  /**
86965
- * Existing assets the model may use, each with the role it plays. Router answers REFERENCE_TYPE_MISMATCH when the chosen model cannot honour a role.
86936
+ * Existing assets the model may use, each with the role it plays. A chosen model that cannot honour a role answers REFERENCE_TYPE_MISMATCH.
86966
86937
  */
86967
86938
  references?: Array<MediaAssetReference>;
86968
86939
  /**
@@ -86970,7 +86941,7 @@ export type MediaGenerateImageData = {
86970
86941
  */
86971
86942
  seed?: number;
86972
86943
  /**
86973
- * Router model with image-generation capability; omit it to use the library default image model.
86944
+ * Model with image-generation capability; omit it to use the library default image model.
86974
86945
  */
86975
86946
  model?: string;
86976
86947
  /**
@@ -87065,7 +87036,7 @@ export type MediaGenerateVideoData = {
87065
87036
  */
87066
87037
  body: {
87067
87038
  /**
87068
- * Text prompt describing the video to generate; Router forwards it to the video model unchanged.
87039
+ * Text prompt describing the video to generate; the video model receives it unchanged.
87069
87040
  */
87070
87041
  prompt: string;
87071
87042
  /**
@@ -87089,15 +87060,15 @@ export type MediaGenerateVideoData = {
87089
87060
  */
87090
87061
  references?: Array<MediaAssetReference>;
87091
87062
  /**
87092
- * Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS.
87063
+ * Requested video length in seconds. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS.
87093
87064
  */
87094
87065
  duration_seconds?: number;
87095
87066
  /**
87096
- * Requested output resolution; Router validates it against the chosen model.
87067
+ * Requested output resolution, validated against the chosen model.
87097
87068
  */
87098
87069
  resolution?: '480p' | '720p' | '1080p' | '4k';
87099
87070
  /**
87100
- * Output aspect ratio written as width:height; defaults to 16:9. Router validates it against the chosen model and rejects an unsupported ratio with INVALID_PARAMS.
87071
+ * Output aspect ratio written as width:height; defaults to 16:9. The chosen model is validated against it and an unsupported ratio is rejected with INVALID_PARAMS.
87101
87072
  */
87102
87073
  aspect_ratio?: string;
87103
87074
  /**
@@ -87117,7 +87088,7 @@ export type MediaGenerateVideoData = {
87117
87088
  */
87118
87089
  seed?: number;
87119
87090
  /**
87120
- * Router model with video-generation capability; omit it to use the library default video model.
87091
+ * Model with video-generation capability; omit it to use the library default video model.
87121
87092
  */
87122
87093
  model?: string;
87123
87094
  /**
@@ -87216,7 +87187,7 @@ export type MediaEditAssetData = {
87216
87187
  */
87217
87188
  operation: MediaEditOperation;
87218
87189
  /**
87219
- * Router model that performs the edit; omit it to use the library default image model.
87190
+ * Model that performs the edit; omit it to use the library default image model.
87220
87191
  */
87221
87192
  model?: string;
87222
87193
  /**
@@ -89356,6 +89327,60 @@ export type GetSandboxV1SandboxesBySandboxIdLogsResponses = {
89356
89327
  200: SandboxSandboxLogsV2Response;
89357
89328
  };
89358
89329
  export type GetSandboxV1SandboxesBySandboxIdLogsResponse = GetSandboxV1SandboxesBySandboxIdLogsResponses[keyof GetSandboxV1SandboxesBySandboxIdLogsResponses];
89330
+ export type GetSandboxEventsData = {
89331
+ body?: never;
89332
+ path: {
89333
+ /**
89334
+ * 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.
89335
+ */
89336
+ sandboxID: string;
89337
+ };
89338
+ query?: {
89339
+ /**
89340
+ * Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit.
89341
+ */
89342
+ offset?: number;
89343
+ /**
89344
+ * Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped.
89345
+ */
89346
+ limit?: number;
89347
+ /**
89348
+ * true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted.
89349
+ */
89350
+ orderAsc?: boolean;
89351
+ /**
89352
+ * Filter events to the provided event types
89353
+ */
89354
+ types?: Array<string>;
89355
+ };
89356
+ url: '/sandbox/v1/events/sandboxes/{sandboxID}';
89357
+ };
89358
+ export type GetSandboxEventsErrors = {
89359
+ /**
89360
+ * The request is invalid: a path, query or body value is malformed or out of range. The error message names the problem; fix it and resend. Retrying unchanged fails the same way.
89361
+ */
89362
+ 400: SandboxError;
89363
+ /**
89364
+ * Authentication error
89365
+ */
89366
+ 401: SandboxError;
89367
+ /**
89368
+ * The sandbox, volume or snapshot does not exist, was already deleted, or belongs to another team (the two cases are indistinguishable). Check the id against the list or create call and the team of your API key.
89369
+ */
89370
+ 404: SandboxError;
89371
+ /**
89372
+ * Server error
89373
+ */
89374
+ 500: SandboxError;
89375
+ };
89376
+ export type GetSandboxEventsError = GetSandboxEventsErrors[keyof GetSandboxEventsErrors];
89377
+ export type GetSandboxEventsResponses = {
89378
+ /**
89379
+ * Successfully returned the sandbox events
89380
+ */
89381
+ 200: Array<SandboxSandboxEvent>;
89382
+ };
89383
+ export type GetSandboxEventsResponse = GetSandboxEventsResponses[keyof GetSandboxEventsResponses];
89359
89384
  export type StartTemplateBuildData = {
89360
89385
  /**
89361
89386
  * Exactly one of fromImage or fromTemplate must be given and non-empty.
@@ -96514,3 +96539,56 @@ export type TicketGetRepositoriesResponses = {
96514
96539
  };
96515
96540
  };
96516
96541
  export type TicketGetRepositoriesResponse = TicketGetRepositoriesResponses[keyof TicketGetRepositoriesResponses];
96542
+ export type TicketPatchRepositoriesIdData = {
96543
+ body?: never;
96544
+ path: {
96545
+ /**
96546
+ * Resource path value.
96547
+ */
96548
+ id: string;
96549
+ };
96550
+ query?: {
96551
+ /**
96552
+ * Opaque repository id.
96553
+ */
96554
+ repository?: string;
96555
+ };
96556
+ url: '/ticket/v1/repositories/{id}';
96557
+ };
96558
+ export type TicketPatchRepositoriesIdErrors = {
96559
+ /**
96560
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
96561
+ */
96562
+ 400: unknown;
96563
+ /**
96564
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
96565
+ */
96566
+ 401: unknown;
96567
+ /**
96568
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
96569
+ */
96570
+ 403: unknown;
96571
+ /**
96572
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
96573
+ */
96574
+ 404: unknown;
96575
+ /**
96576
+ * Ticket is gone; refresh the repository's ticket list.
96577
+ */
96578
+ 410: unknown;
96579
+ /**
96580
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
96581
+ */
96582
+ 422: unknown;
96583
+ /**
96584
+ * Native rate limit; wait for retry-after before retrying.
96585
+ */
96586
+ 429: unknown;
96587
+ };
96588
+ export type TicketPatchRepositoriesIdResponses = {
96589
+ /**
96590
+ * The operation succeeded; the body contains the requested resource or page.
96591
+ */
96592
+ 200: TicketRecord;
96593
+ };
96594
+ export type TicketPatchRepositoriesIdResponse = TicketPatchRepositoriesIdResponses[keyof TicketPatchRepositoriesIdResponses];