@pointcosm/sdk 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,2969 @@
1
+ /** A sensitive string that stays out of logs, JSON and string conversion. */
2
+ declare class Secret {
3
+ #private;
4
+ constructor(value: string);
5
+ /** Return the raw value. Never log or persist the result. */
6
+ reveal(): string;
7
+ toString(): string;
8
+ toJSON(): string;
9
+ }
10
+
11
+ interface components {
12
+ schemas: {
13
+ /** AdmissionReasonOut */
14
+ AdmissionReasonOut: {
15
+ /**
16
+ * Code
17
+ * @description 没通过训练预检的原因代码。
18
+ */
19
+ code: string;
20
+ /**
21
+ * Message
22
+ * @description 没通过预检的原因说明,按请求的语言返回。
23
+ */
24
+ message: string;
25
+ };
26
+ ApiError: {
27
+ /** @description Stable machine-readable error code. */
28
+ code: string;
29
+ /** @description English developer message that does not vary by locale. */
30
+ message: string;
31
+ /** @description Optional caller-safe structured context. */
32
+ details: {
33
+ [key: string]: unknown;
34
+ } | null;
35
+ /** @description Optional end-user message in the response locale. */
36
+ localized_message?: components["schemas"]["LocalizedMessage"] | null;
37
+ };
38
+ ApiFailureResponse: {
39
+ /**
40
+ * @description 请求失败时固定是 false。
41
+ * @constant
42
+ */
43
+ success: false;
44
+ /** @description 请求失败时没有数据,固定为空。 */
45
+ data: null;
46
+ /** @description 错误信息,包含错误代码和失败原因。 */
47
+ error: components["schemas"]["ApiError"];
48
+ };
49
+ /**
50
+ * ArtifactDownloadOut
51
+ * @description A short-lived URL issued after a successful artifact download check.
52
+ */
53
+ ArtifactDownloadOut: {
54
+ /**
55
+ * Url
56
+ * Format: pointcosm-secret
57
+ * @description 短期有效的 OSS 下载地址。
58
+ */
59
+ url: Secret;
60
+ };
61
+ /** ArtifactListOut */
62
+ ArtifactListOut: {
63
+ /**
64
+ * Items
65
+ * @description 当前分页返回的资源列表。
66
+ */
67
+ items: components["schemas"]["ArtifactOut"][];
68
+ /**
69
+ * Total
70
+ * @description 符合查询条件的资源总数。
71
+ */
72
+ total: number;
73
+ /**
74
+ * Offset
75
+ * @description 当前分页相对结果集起点的偏移量。
76
+ */
77
+ offset: number;
78
+ /**
79
+ * Limit
80
+ * @description 本次请求允许返回的最大记录数。
81
+ */
82
+ limit: number;
83
+ /**
84
+ * Task Id
85
+ * Format: uuid
86
+ * @description 产物所属 Task UUID。
87
+ */
88
+ task_id: string;
89
+ /**
90
+ * Pipeline Code
91
+ * @description 产出这些产物的管线定义编号,例如 PP9-V3;无法确定时为空。
92
+ */
93
+ pipeline_code?: string | null;
94
+ };
95
+ /** ArtifactOut */
96
+ ArtifactOut: {
97
+ /**
98
+ * Artifact Id
99
+ * @description Artifact 的稳定唯一标识;历史身份原样保留。
100
+ */
101
+ artifact_id: string;
102
+ /**
103
+ * Kind
104
+ * @description 统一的客户输出文件。
105
+ * @constant
106
+ */
107
+ kind: "file";
108
+ /**
109
+ * Name
110
+ * @description 客户可见的文件名;新文件为直属相对键。
111
+ */
112
+ name: string;
113
+ /**
114
+ * Size Bytes
115
+ * @description 产物对象大小,单位 byte,允许零字节。
116
+ */
117
+ size_bytes: number;
118
+ /**
119
+ * Download Url
120
+ * @description 签发下载地址的接口路径;受频率限制,不限次数。
121
+ */
122
+ download_url: string;
123
+ /**
124
+ * Download Count
125
+ * @description 累计下载次数(同一文件短时间内重复签发只计一次)。
126
+ */
127
+ download_count: number;
128
+ /**
129
+ * Max Downloads
130
+ * @description 固定为 -1,表示不限下载次数;保留字段兼容既有 SDK。
131
+ */
132
+ max_downloads: number;
133
+ /**
134
+ * Asset Id
135
+ * @description 产物所在的 Asset 通用标识,可用于登记 LiveCosm 场景等平台能力;历史报告为空。
136
+ */
137
+ asset_id?: string | null;
138
+ /**
139
+ * Key
140
+ * @description 产物在该 Asset 封存清单中的相对键;历史报告为空。
141
+ */
142
+ key?: string | null;
143
+ /**
144
+ * Stream Registerable
145
+ * @description 文件为可用的已封存 PointCosm 场景,可登记为 LiveCosm 模型。
146
+ * @default false
147
+ */
148
+ stream_registerable: boolean;
149
+ };
150
+ /**
151
+ * AssetAdmissionOut
152
+ * @description 088 T037 / compatibility.md §5: 本地适用性评估通过后实时复核 netdisk 训练资格。
153
+ */
154
+ AssetAdmissionOut: {
155
+ /**
156
+ * Asset Id
157
+ * Format: uuid
158
+ * @description 做预检的素材 UUID。
159
+ */
160
+ asset_id: string;
161
+ /**
162
+ * Product Id
163
+ * Format: uuid
164
+ * @description 按哪个产品的规则做的预检,这里是它的 UUID。
165
+ */
166
+ product_id: string;
167
+ /**
168
+ * Admissible
169
+ * @description 素材能不能用于所选产品的训练。
170
+ */
171
+ admissible: boolean;
172
+ /**
173
+ * Input Digest
174
+ * @description 这次检查的输入内容指纹;没有时为空。
175
+ */
176
+ input_digest?: string | null;
177
+ /**
178
+ * Policy Digest
179
+ * @description 预检所用产品规则的指纹。
180
+ */
181
+ policy_digest: string;
182
+ /**
183
+ * Reasons
184
+ * @description 没通过预检的原因,每条带原因代码和说明。
185
+ */
186
+ reasons?: components["schemas"]["AdmissionReasonOut"][];
187
+ };
188
+ /** AssetCreateIn */
189
+ AssetCreateIn: {
190
+ /**
191
+ * Product Id
192
+ * Format: uuid
193
+ * @description 按哪个产品的规则来限制这次上传;之后创建训练任务时可以换别的产品。
194
+ */
195
+ product_id: string;
196
+ /**
197
+ * Name
198
+ * @description 资源的展示名称。
199
+ */
200
+ name: string;
201
+ /**
202
+ * Upload Mode
203
+ * @description 素材怎么提供:direct_upload 直接上传到平台,oss_copy 从对象存储复制,netdisk 用网盘里的文件,datasource 用已配置数据源里的数据集。不填默认 direct_upload。
204
+ * @default direct_upload
205
+ * @enum {string}
206
+ */
207
+ upload_mode?: "direct_upload";
208
+ /**
209
+ * Auto Train
210
+ * @description 本次素材校验就绪后自动创建一次训练任务。
211
+ * @default false
212
+ */
213
+ auto_train?: boolean;
214
+ };
215
+ /** AssetCreateOut */
216
+ AssetCreateOut: {
217
+ /** @description 这个素材的上传流程,能看到进行到哪一步和上传限制。 */
218
+ flow: components["schemas"]["AssetUploadFlowOut"];
219
+ /** @description 新建的素材;拿去训练前先看一下它的状态。 */
220
+ asset: components["schemas"]["AssetOut"];
221
+ /** @description 直接上传文件用的临时存储凭证;不需要你自己上传文件的方式不返回。 */
222
+ storage_credentials?: components["schemas"]["StorageCredentialsOut"] | null;
223
+ };
224
+ /** AssetDetailOut */
225
+ AssetDetailOut: {
226
+ /**
227
+ * Extension Stats
228
+ * @description 按扩展名统计的媒体文件数量;还没分析出来时为空。每项里的 count 是数量,bytes 目前固定是 0,不代表文件大小。
229
+ */
230
+ extension_stats?: {
231
+ [key: string]: {
232
+ [key: string]: number;
233
+ };
234
+ } | null;
235
+ /**
236
+ * Validation Strength
237
+ * @description 素材做过哪个级别的校验;没有时为空。
238
+ */
239
+ validation_strength?: string | null;
240
+ /**
241
+ * Digest Verification
242
+ * @description 文件摘要有没有校验过:verified 或 unverified;没有结果时为空。
243
+ */
244
+ digest_verification?: string | null;
245
+ /**
246
+ * Id
247
+ * Format: uuid
248
+ * @description 资源的 UUID 唯一标识。
249
+ */
250
+ id: string;
251
+ /**
252
+ * Upload Flow Id
253
+ * @description 对应的上传流程 UUID;没有时为空。
254
+ */
255
+ upload_flow_id?: string | null;
256
+ /**
257
+ * Name
258
+ * @description 资源的展示名称。
259
+ */
260
+ name: string | null;
261
+ /** @description 素材文件从哪来:平台上传、平台复制、网盘或数据源。 */
262
+ source_type: components["schemas"]["AssetSourceType"] | null;
263
+ /**
264
+ * Asset Type
265
+ * @description 素材里有什么:只有图片、只有视频,或两者都有;还没分析出来时为空。
266
+ */
267
+ asset_type: ("images" | "video" | "mixed") | null;
268
+ /**
269
+ * Status
270
+ * @description 资源当前状态。
271
+ * @enum {string}
272
+ */
273
+ status: "pending" | "validating" | "ready" | "invalid" | "failed" | "expired";
274
+ /**
275
+ * Upload Mode
276
+ * @description 素材是怎么提供的:直接上传、对象存储复制、网盘或数据源。
277
+ * @enum {string}
278
+ */
279
+ upload_mode: "direct_upload" | "oss_copy" | "netdisk" | "datasource";
280
+ /**
281
+ * Object Count
282
+ * @description 素材里的文件数量;还不知道时为空。
283
+ */
284
+ object_count?: number | null;
285
+ /**
286
+ * Image Count
287
+ * @description 其中图片的数量;还没分析出来时为空。
288
+ */
289
+ image_count?: number | null;
290
+ /**
291
+ * Video Count
292
+ * @description 其中视频的数量;还没分析出来时为空。
293
+ */
294
+ video_count?: number | null;
295
+ /**
296
+ * Logical Bytes
297
+ * @description 素材里所有文件的大小之和,单位字节;还不知道时为空。
298
+ */
299
+ logical_bytes?: number | null;
300
+ /**
301
+ * Duration Seconds
302
+ * @description 按 pipeline 时间基准的时长(秒);含延时摄影时为真实拍摄时长,普通视频为回放时长
303
+ */
304
+ duration_seconds?: number | null;
305
+ /**
306
+ * Timelapse Video Count
307
+ * @description 被识别为延时摄影的视频文件数;null 表示未判定(Profile 未就绪或历史素材)
308
+ */
309
+ timelapse_video_count?: number | null;
310
+ /**
311
+ * Error Code
312
+ * @description 失败时返回的稳定错误码。
313
+ */
314
+ error_code?: string | null;
315
+ /**
316
+ * Error Message
317
+ * @description 失败时返回的安全错误摘要。
318
+ */
319
+ error_message?: string | null;
320
+ /**
321
+ * Ready At
322
+ * @description 素材可以使用的时间;还没准备好时为空。
323
+ */
324
+ ready_at?: string | null;
325
+ /**
326
+ * Retention Until
327
+ * @description 平台保证此前不删除;之后可开始清理
328
+ */
329
+ retention_until?: string | null;
330
+ /**
331
+ * Created At
332
+ * Format: date-time
333
+ * @description 资源创建时间。
334
+ */
335
+ created_at: string;
336
+ /** @description 对应的上传流程详情;没有时为空。 */
337
+ flow: components["schemas"]["AssetUploadFlowOut"] | null;
338
+ };
339
+ /** AssetFileListOut */
340
+ AssetFileListOut: {
341
+ /**
342
+ * Items
343
+ * @description 当前分页返回的资源列表。
344
+ */
345
+ items: components["schemas"]["AssetFileOut"][];
346
+ /**
347
+ * Total
348
+ * @description 符合查询条件的资源总数。
349
+ */
350
+ total: number;
351
+ /**
352
+ * Offset
353
+ * @description 当前分页相对结果集起点的偏移量。
354
+ */
355
+ offset: number;
356
+ /**
357
+ * Limit
358
+ * @description 本次请求允许返回的最大记录数。
359
+ */
360
+ limit: number;
361
+ /**
362
+ * Files Available
363
+ * @description 素材是否有可读取的冻结文件清单。
364
+ */
365
+ files_available: boolean;
366
+ };
367
+ /** AssetFileOut */
368
+ AssetFileOut: {
369
+ /**
370
+ * Path
371
+ * @description 素材内的相对路径。
372
+ */
373
+ path: string;
374
+ /**
375
+ * Size Bytes
376
+ * @description 文件大小(字节)。
377
+ */
378
+ size_bytes: number;
379
+ /**
380
+ * Media Type
381
+ * @description 文件的媒体类别。
382
+ * @enum {string}
383
+ */
384
+ media_type: "image" | "video" | "other";
385
+ /**
386
+ * Duration Seconds
387
+ * @description 已确认的视频时长(秒);其他情况为空。
388
+ */
389
+ duration_seconds: number | null;
390
+ /**
391
+ * Video Track Count
392
+ * @description 已确认的视频轨数;其他情况为空。
393
+ */
394
+ video_track_count: number | null;
395
+ /**
396
+ * Lens Track Count
397
+ * @description 已确认的 HEVC 镜头轨数;其他情况为空。
398
+ */
399
+ lens_track_count: number | null;
400
+ /**
401
+ * Frame Count
402
+ * @description 已确认的第一条镜头轨帧数;其他情况为空。
403
+ */
404
+ frame_count: number | null;
405
+ /**
406
+ * Timelapse Interval Ms
407
+ * @description 已确认的延时拍摄间隔(毫秒);非延时或未确认为空。
408
+ */
409
+ timelapse_interval_ms: number | null;
410
+ };
411
+ /** AssetListOut */
412
+ AssetListOut: {
413
+ /**
414
+ * Items
415
+ * @description 当前分页返回的资源列表。
416
+ */
417
+ items: components["schemas"]["AssetOut"][];
418
+ /**
419
+ * Total
420
+ * @description 符合查询条件的资源总数。
421
+ */
422
+ total: number;
423
+ /**
424
+ * Offset
425
+ * @description 当前分页相对结果集起点的偏移量。
426
+ */
427
+ offset: number;
428
+ /**
429
+ * Limit
430
+ * @description 本次请求允许返回的最大记录数。
431
+ */
432
+ limit: number;
433
+ };
434
+ /** AssetOut */
435
+ AssetOut: {
436
+ /**
437
+ * Extension Stats
438
+ * @description 按扩展名统计的媒体文件数量;还没分析出来时为空。每项里的 count 是数量,bytes 目前固定是 0,不代表文件大小。
439
+ */
440
+ extension_stats?: {
441
+ [key: string]: {
442
+ [key: string]: number;
443
+ };
444
+ } | null;
445
+ /**
446
+ * Validation Strength
447
+ * @description 素材做过哪个级别的校验;没有时为空。
448
+ */
449
+ validation_strength?: string | null;
450
+ /**
451
+ * Digest Verification
452
+ * @description 文件摘要有没有校验过:verified 或 unverified;没有结果时为空。
453
+ */
454
+ digest_verification?: string | null;
455
+ /**
456
+ * Id
457
+ * Format: uuid
458
+ * @description 资源的 UUID 唯一标识。
459
+ */
460
+ id: string;
461
+ /**
462
+ * Upload Flow Id
463
+ * @description 对应的上传流程 UUID;没有时为空。
464
+ */
465
+ upload_flow_id?: string | null;
466
+ /**
467
+ * Name
468
+ * @description 资源的展示名称。
469
+ */
470
+ name: string | null;
471
+ /** @description 素材文件从哪来:平台上传、平台复制、网盘或数据源。 */
472
+ source_type: components["schemas"]["AssetSourceType"] | null;
473
+ /**
474
+ * Asset Type
475
+ * @description 素材里有什么:只有图片、只有视频,或两者都有;还没分析出来时为空。
476
+ */
477
+ asset_type: ("images" | "video" | "mixed") | null;
478
+ /**
479
+ * Status
480
+ * @description 资源当前状态。
481
+ * @enum {string}
482
+ */
483
+ status: "pending" | "validating" | "ready" | "invalid" | "failed" | "expired";
484
+ /**
485
+ * Upload Mode
486
+ * @description 素材是怎么提供的:直接上传、对象存储复制、网盘或数据源。
487
+ * @enum {string}
488
+ */
489
+ upload_mode: "direct_upload" | "oss_copy" | "netdisk" | "datasource";
490
+ /**
491
+ * Object Count
492
+ * @description 素材里的文件数量;还不知道时为空。
493
+ */
494
+ object_count?: number | null;
495
+ /**
496
+ * Image Count
497
+ * @description 其中图片的数量;还没分析出来时为空。
498
+ */
499
+ image_count?: number | null;
500
+ /**
501
+ * Video Count
502
+ * @description 其中视频的数量;还没分析出来时为空。
503
+ */
504
+ video_count?: number | null;
505
+ /**
506
+ * Logical Bytes
507
+ * @description 素材里所有文件的大小之和,单位字节;还不知道时为空。
508
+ */
509
+ logical_bytes?: number | null;
510
+ /**
511
+ * Duration Seconds
512
+ * @description 按 pipeline 时间基准的时长(秒);含延时摄影时为真实拍摄时长,普通视频为回放时长
513
+ */
514
+ duration_seconds?: number | null;
515
+ /**
516
+ * Timelapse Video Count
517
+ * @description 被识别为延时摄影的视频文件数;null 表示未判定(Profile 未就绪或历史素材)
518
+ */
519
+ timelapse_video_count?: number | null;
520
+ /**
521
+ * Error Code
522
+ * @description 失败时返回的稳定错误码。
523
+ */
524
+ error_code?: string | null;
525
+ /**
526
+ * Error Message
527
+ * @description 失败时返回的安全错误摘要。
528
+ */
529
+ error_message?: string | null;
530
+ /**
531
+ * Ready At
532
+ * @description 素材可以使用的时间;还没准备好时为空。
533
+ */
534
+ ready_at?: string | null;
535
+ /**
536
+ * Retention Until
537
+ * @description 平台保证此前不删除;之后可开始清理
538
+ */
539
+ retention_until?: string | null;
540
+ /**
541
+ * Created At
542
+ * Format: date-time
543
+ * @description 资源创建时间。
544
+ */
545
+ created_at: string;
546
+ };
547
+ /**
548
+ * AssetSourceType
549
+ * @enum {string}
550
+ */
551
+ AssetSourceType: "platform_upload" | "platform_copy" | "netdisk" | "datasource";
552
+ /** AssetUploadFlowOut */
553
+ AssetUploadFlowOut: {
554
+ /**
555
+ * Id
556
+ * Format: uuid
557
+ * @description 资源的 UUID 唯一标识。
558
+ */
559
+ id: string;
560
+ /**
561
+ * Asset Id
562
+ * @description 这个上传流程对应的素材 UUID;没有时为空。
563
+ */
564
+ asset_id: string | null;
565
+ /**
566
+ * Product Id
567
+ * @description 创建上传时选的产品 UUID;没有时为空。
568
+ */
569
+ product_id: string | null;
570
+ /**
571
+ * Auto Train
572
+ * @description 本次上传已接受的自动训练选择,不随结果改变。
573
+ * @default false
574
+ */
575
+ auto_train?: boolean;
576
+ /**
577
+ * Auto Train Task Id
578
+ * @description 自动创建成功的真实 Task UUID;未创建时为空。
579
+ */
580
+ auto_train_task_id?: string | null;
581
+ /**
582
+ * Auto Train Error Code
583
+ * @description 自动创建的安全失败码;不改变素材接收状态。
584
+ */
585
+ auto_train_error_code?: string | null;
586
+ /**
587
+ * Input Mode
588
+ * @description 创建上传时所选产品允许拿来训练的媒体组合:图片、视频或混合。它不决定能不能上传。
589
+ */
590
+ input_mode: ("images" | "video" | "mixed") | null;
591
+ /**
592
+ * Input Limits
593
+ * @description 创建上传时所选产品对训练输入的要求,按媒体类型给出;实际的上传限制看 limits。
594
+ */
595
+ input_limits: {
596
+ [key: string]: components["schemas"]["ProductUploadInputLimit"];
597
+ } | null;
598
+ /**
599
+ * Status
600
+ * @description 资源当前状态。
601
+ * @enum {string}
602
+ */
603
+ status: "preparing" | "uploading" | "ingesting" | "validating" | "completed" | "failed";
604
+ /**
605
+ * Processing Status
606
+ * @description 摄取或校验的当前处理状态:排队、处理中;其他流程阶段为空。
607
+ */
608
+ processing_status?: ("queued" | "running") | null;
609
+ /** @description 这次上传实际生效的限制;能不能用于训练另有规则。 */
610
+ limits: components["schemas"]["InputLimitsOut"];
611
+ /**
612
+ * Error Code
613
+ * @description 失败时返回的稳定错误码。
614
+ */
615
+ error_code: ("validation_failed_state" | "validation_failed_type" | "validation_failed_path" | "validation_failed_count" | "validation_failed_size" | "validation_failed_integrity" | "validation_failed_duration" | "SOURCE_AUTHORIZATION_INVALID" | "SOURCE_CONTENT_CHANGED" | "SOURCE_DISABLED" | "SOURCE_UNAVAILABLE" | "SOURCE_CONTRACT_INVALID" | "SOURCE_ACCESS_DENIED" | "SOURCE_DATASET_NOT_FOUND" | "NETDISK_BINDING_NOT_FOUND" | "UPLOAD_LIMIT_EXCEEDED" | "ASSET_RETIRED" | "asset_ingestion_failed" | "asset_storage_finalization_timeout") | null;
616
+ /**
617
+ * Error Message
618
+ * @description 失败时返回的安全错误摘要。
619
+ */
620
+ error_message: string | null;
621
+ /**
622
+ * Completed At
623
+ * @description 上传完成或失败的时间;还在进行时为空。
624
+ */
625
+ completed_at: string | null;
626
+ };
627
+ /**
628
+ * CustomerFailureCode
629
+ * @enum {string}
630
+ */
631
+ CustomerFailureCode: "input_invalid" | "input_source_unavailable" | "insufficient_balance" | "scheduling_failed" | "preparation_failed" | "training_failed" | "runtime_exceeded" | "output_failed" | "platform_error";
632
+ /** CustomerFinalizationData */
633
+ CustomerFinalizationData: {
634
+ /**
635
+ * Mode
636
+ * @description 收尾方式:agent_handoff 表示任务已下发执行、由执行端交接结果;not_started 表示收尾还没开始。
637
+ * @enum {string}
638
+ */
639
+ mode: "agent_handoff" | "not_started";
640
+ /**
641
+ * Stage
642
+ * @description 收尾进行到哪一步,从等待执行端到上传、校验。交接完成不等于任务成功。
643
+ * @enum {string}
644
+ */
645
+ stage: "waiting_worker" | "uploading" | "verifying" | "finished" | "interrupted" | "not_supported";
646
+ /** @description 任务当前的状态;以任务详情里的为准。 */
647
+ task_status: components["schemas"]["TaskStatus"];
648
+ /**
649
+ * Handoff Accepted
650
+ * @description 平台确认收到交接后才是 true;收到交接不等于任务成功。
651
+ */
652
+ handoff_accepted: boolean;
653
+ /** @description 输出文件的交付状态和数量;这里不代表可以下载。 */
654
+ output_files: components["schemas"]["OutputFilesView"];
655
+ /** @description 执行摘要的状态,以及系统日志归档是否完整。 */
656
+ system_logs: components["schemas"]["SystemLogsView"];
657
+ /**
658
+ * Files Pending
659
+ * @description agent_handoff 方式下,输出文件还在等待、上传或收尾时为 true;not_started 方式下固定是 false。
660
+ */
661
+ files_pending: boolean;
662
+ /**
663
+ * Updated At
664
+ * Format: date-time
665
+ * @description 收尾状态最近一次更新的时间,不是这次查询的时间。
666
+ */
667
+ updated_at: string;
668
+ };
669
+ /** CustomerFinalizationEnvelope */
670
+ CustomerFinalizationEnvelope: {
671
+ /**
672
+ * Success
673
+ * @description 查询成功时固定是 true。
674
+ * @constant
675
+ */
676
+ success: true;
677
+ /** @description 这个任务当前的收尾情况。 */
678
+ data: components["schemas"]["CustomerFinalizationData"];
679
+ /**
680
+ * Error
681
+ * @description 查询成功时固定为空。
682
+ */
683
+ error: null;
684
+ };
685
+ /** DiscountMoney */
686
+ DiscountMoney: {
687
+ /**
688
+ * Currency
689
+ * @description 货币代码,三位大写字母。
690
+ */
691
+ currency: string;
692
+ /**
693
+ * Currency Exponent
694
+ * @description 最小单位换算成主单位要移几位小数(0–9);例如 2 表示 100 分等于 1 元。
695
+ */
696
+ currency_exponent: number;
697
+ /**
698
+ * Amount Minor
699
+ * @description 折扣金额,用货币的最小单位表示;可能是 0,例如升级抵扣取整后为 0。
700
+ */
701
+ amount_minor: number;
702
+ };
703
+ /** GreenPointCustomerLedgerEntryOut */
704
+ GreenPointCustomerLedgerEntryOut: {
705
+ /**
706
+ * Id
707
+ * Format: uuid
708
+ * @description 资源的 UUID 唯一标识。
709
+ */
710
+ id: string;
711
+ /**
712
+ * Entry Type
713
+ * @description 这条流水的类型,例如入账或任务预占。
714
+ */
715
+ entry_type: string;
716
+ /**
717
+ * Available Delta
718
+ * @description 可用绿点变了多少,增加为正、减少为负。
719
+ */
720
+ available_delta: number;
721
+ /**
722
+ * Reserved Delta
723
+ * @description 预占绿点变了多少,增加为正、减少为负。
724
+ */
725
+ reserved_delta: number;
726
+ /**
727
+ * Available Balance After
728
+ * @description 这条流水之后的可用绿点余额。
729
+ */
730
+ available_balance_after: number;
731
+ /**
732
+ * Reserved Balance After
733
+ * @description 这条流水之后的预占绿点余额。
734
+ */
735
+ reserved_balance_after: number;
736
+ /**
737
+ * Points
738
+ * @description 这条流水涉及的绿点数量。
739
+ */
740
+ points: number;
741
+ /**
742
+ * Business Type
743
+ * @description 这条流水是哪类业务产生的,例如购买绿点到账。
744
+ */
745
+ business_type: string;
746
+ /**
747
+ * Task Id
748
+ * @description 关联的任务 UUID;和任务无关时为空。
749
+ */
750
+ task_id?: string | null;
751
+ /**
752
+ * Description
753
+ * @description 资源的用途说明。
754
+ */
755
+ description: string;
756
+ /**
757
+ * Created At
758
+ * Format: date-time
759
+ * @description 资源创建时间。
760
+ */
761
+ created_at: string;
762
+ /**
763
+ * Commerce Order Id
764
+ * @description 关联的订单 ID,可以用它查订单详情;没有确认的关联时为空。
765
+ */
766
+ commerce_order_id: string | null;
767
+ /**
768
+ * Order No
769
+ * @description 关联订单的订单号;没有确认的关联时为空。
770
+ */
771
+ order_no: string | null;
772
+ };
773
+ /** GreenPointCustomerLedgerPage */
774
+ GreenPointCustomerLedgerPage: {
775
+ /**
776
+ * Items
777
+ * @description 当前分页返回的资源列表。
778
+ */
779
+ items: components["schemas"]["GreenPointCustomerLedgerEntryOut"][];
780
+ /**
781
+ * Total
782
+ * @description 符合查询条件的资源总数。
783
+ */
784
+ total: number;
785
+ /**
786
+ * Offset
787
+ * @description 当前分页相对结果集起点的偏移量。
788
+ */
789
+ offset: number;
790
+ /**
791
+ * Limit
792
+ * @description 本次请求允许返回的最大记录数。
793
+ */
794
+ limit: number;
795
+ };
796
+ /**
797
+ * GreenPointFulfillmentParameters
798
+ * @description 客户订单公开的版本化绿点履约快照。
799
+ */
800
+ GreenPointFulfillmentParameters: {
801
+ /**
802
+ * Paid Green Points
803
+ * @description 这笔订单购买的绿点数量,下单时记录。
804
+ */
805
+ paid_green_points: number;
806
+ /**
807
+ * Promotional Green Points
808
+ * @description 这笔订单赠送的绿点数量,下单时记录。
809
+ */
810
+ promotional_green_points: number;
811
+ /**
812
+ * Schema Version
813
+ * @description 这组参数的格式版本,目前是 train-v1。
814
+ * @constant
815
+ */
816
+ schema_version: "train-v1";
817
+ };
818
+ /** InputComposition */
819
+ InputComposition: {
820
+ /**
821
+ * Root Files Only
822
+ * @description 为 true 时,所有文件都要直接放在最外层,不能放进子文件夹。
823
+ */
824
+ root_files_only: boolean;
825
+ /**
826
+ * Required Any Extensions
827
+ * @description 列表不为空时,至少要有一个文件的扩展名在列表里。
828
+ */
829
+ required_any_extensions: string[];
830
+ /**
831
+ * Exclusive Extension Groups
832
+ * @description 文件扩展名只能来自其中一组;同一组里的不同扩展名可以混用。
833
+ */
834
+ exclusive_extension_groups: string[][];
835
+ };
836
+ /** InputLimitsOut */
837
+ InputLimitsOut: {
838
+ /**
839
+ * Allowed Extensions
840
+ * @description 允许的文件扩展名,小写,带前面的点。
841
+ */
842
+ allowed_extensions: string[];
843
+ /**
844
+ * Max File Count
845
+ * @description 最多能有多少个文件。
846
+ */
847
+ max_file_count: number;
848
+ /**
849
+ * Max Total Bytes
850
+ * @description 所有文件加起来的大小上限,单位字节。
851
+ */
852
+ max_total_bytes: number;
853
+ /**
854
+ * Max Single File Bytes
855
+ * @description 单个文件的大小上限,单位字节;为空表示没有单独限制。
856
+ */
857
+ max_single_file_bytes?: number | null;
858
+ /**
859
+ * Min Total Bytes
860
+ * @description 本次上传全部文件的总大小下限,单位 byte;未返回表示不限制。
861
+ */
862
+ min_total_bytes?: number | null;
863
+ /** @description 对文件位置和扩展名搭配的额外要求;没有时为空。这些要求不会放宽 allowed_extensions。 */
864
+ input_composition?: components["schemas"]["InputComposition"] | null;
865
+ };
866
+ JsonValue: unknown;
867
+ /** LocalizedMessage */
868
+ LocalizedMessage: {
869
+ /**
870
+ * Locale
871
+ * @description 这条消息的语言:zh-Hans、zh-Hant 或 en-US。
872
+ * @enum {string}
873
+ */
874
+ locale: "zh-Hans" | "zh-Hant" | "en-US";
875
+ /**
876
+ * Message
877
+ * @description 可以直接展示给用户的错误文字。
878
+ */
879
+ message: string;
880
+ };
881
+ /** Money */
882
+ Money: {
883
+ /**
884
+ * Currency
885
+ * @description 货币代码,三位大写字母。
886
+ */
887
+ currency: string;
888
+ /**
889
+ * Currency Exponent
890
+ * @description 最小单位换算成主单位要移几位小数(0–9);例如 2 表示 100 分等于 1 元。
891
+ */
892
+ currency_exponent: number;
893
+ /**
894
+ * Amount Minor
895
+ * @description 金额,用货币的最小单位表示,例如人民币的分。
896
+ */
897
+ amount_minor: number;
898
+ };
899
+ /** OutputFilesView */
900
+ OutputFilesView: {
901
+ /**
902
+ * State
903
+ * @description 输出文件的交付状态。文件齐全并且任务已经结束后才算就绪,任务失败或被取消时也一样。
904
+ * @enum {string}
905
+ */
906
+ state: "pending" | "uploading" | "server_finalizing" | "ready" | "failed" | "timed_out" | "revoked" | "not_supported";
907
+ /**
908
+ * Reason Code
909
+ * @description 文件交付失败、超时或被撤回时的原因代码;其他情况为空。
910
+ */
911
+ reason_code: ("invalid_file" | "upload_failed" | "delivery_timed_out" | "authorization_revoked" | "protocol_error" | "delivery_unavailable") | null;
912
+ /**
913
+ * File Count
914
+ * @description 输出文件的总数;还不知道时为空,不会交付文件时为 0。
915
+ */
916
+ file_count: number | null;
917
+ };
918
+ /** PaymentError */
919
+ PaymentError: {
920
+ /**
921
+ * Code
922
+ * @description 错误代码,程序可以按它来处理。
923
+ */
924
+ code: string;
925
+ /**
926
+ * Message
927
+ * @description 给开发者看的错误信息;要展示给用户请优先用 localized_message。
928
+ */
929
+ message: string;
930
+ /**
931
+ * Details
932
+ * @description 和这次失败有关的补充信息;没有时为空。
933
+ */
934
+ details: {
935
+ [key: string]: components["schemas"]["JsonValue"];
936
+ };
937
+ /** @description 给用户看的错误文字和它的语言;没有翻译时为空。 */
938
+ localized_message?: components["schemas"]["LocalizedMessage"] | null;
939
+ } & {
940
+ [key: string]: unknown;
941
+ };
942
+ /** PaymentOrderListData */
943
+ PaymentOrderListData: {
944
+ /**
945
+ * Items
946
+ * @description 这一页的订单,新的排在前面。
947
+ */
948
+ items: components["schemas"]["PaymentOrderListItem"][];
949
+ /**
950
+ * Next Cursor
951
+ * @description 取下一页时传入的游标(UUID);没有更多订单时为空。
952
+ */
953
+ next_cursor: string | null;
954
+ };
955
+ /** PaymentOrderListEnvelope */
956
+ PaymentOrderListEnvelope: {
957
+ /**
958
+ * Success
959
+ * @description 请求是否成功。
960
+ */
961
+ success: boolean;
962
+ /** @description 成功时是一页订单和翻页游标,失败时为空。 */
963
+ data: components["schemas"]["PaymentOrderListData"] | null;
964
+ /** @description 失败时是错误信息,成功时为空。 */
965
+ error: components["schemas"]["PaymentError"] | null;
966
+ /**
967
+ * Meta
968
+ * @description 响应的附加信息。
969
+ */
970
+ meta: {
971
+ [key: string]: components["schemas"]["JsonValue"];
972
+ };
973
+ };
974
+ /** PaymentOrderListItem */
975
+ PaymentOrderListItem: {
976
+ /**
977
+ * Commerce Order Id
978
+ * Format: uuid
979
+ * @description 订单的 UUID,可以用它查订单详情。
980
+ */
981
+ commerce_order_id: string;
982
+ /**
983
+ * Order No
984
+ * @description 订单号,用于展示和查询。
985
+ */
986
+ order_no: string;
987
+ /**
988
+ * Commercial Status
989
+ * @description 订单状态:open(待支付)、committed(已成交)、canceled(已取消)或 expired(已过期)。
990
+ * @enum {string}
991
+ */
992
+ commercial_status: "open" | "committed" | "canceled" | "expired";
993
+ /**
994
+ * Collection Status
995
+ * @description 收款状态,能看出是否需要用户操作、钱有没有到账。
996
+ * @enum {string}
997
+ */
998
+ collection_status: "unpaid" | "requires_action" | "processing" | "paid";
999
+ /**
1000
+ * Fulfillment Status
1001
+ * @description 购买的内容发放到哪一步了,包括已发放、被拒绝或转人工处理。
1002
+ * @enum {string}
1003
+ */
1004
+ fulfillment_status: "not_requested" | "pending" | "applied" | "rejected" | "manual_review";
1005
+ /**
1006
+ * Exception Collection Status
1007
+ * @description 这笔订单有没有发现异常收款。
1008
+ * @enum {string}
1009
+ */
1010
+ exception_collection_status: "none" | "detected";
1011
+ /**
1012
+ * Refund Status
1013
+ * @description 退款状态:没有申请、处理中、已全额退款或需要人工处理。
1014
+ * @enum {string}
1015
+ */
1016
+ refund_status: "not_requested" | "pending" | "fully_refunded" | "manual_review";
1017
+ /** @description 订单最终要付的金额,已算上优惠和抵扣。 */
1018
+ money: components["schemas"]["Money"];
1019
+ /** @description 优惠和抵扣之前的原价;没有时为空。 */
1020
+ subtotal_money: components["schemas"]["Money"] | null;
1021
+ /**
1022
+ * Adjustments
1023
+ * @description 订单用到的优惠或抵扣,例如优惠码折扣、订阅升级抵扣。
1024
+ */
1025
+ adjustments?: (components["schemas"]["SubscriptionUpgradeAdjustment"] | components["schemas"]["PromotionCodeAdjustment"])[];
1026
+ /** @description 购买内容的发放状态,以及下单时记录的数量和参数。 */
1027
+ fulfillment: components["schemas"]["ProductFulfillmentProjection"];
1028
+ /**
1029
+ * Expires At
1030
+ * Format: date-time
1031
+ * @description 订单还没支付的话,到这个时间就过期。
1032
+ */
1033
+ expires_at: string;
1034
+ /**
1035
+ * Created At
1036
+ * Format: date-time
1037
+ * @description 订单创建时间。
1038
+ */
1039
+ created_at: string;
1040
+ /**
1041
+ * Committed At
1042
+ * @description 订单成交时间;还没成交时为空。
1043
+ */
1044
+ committed_at: string | null;
1045
+ /**
1046
+ * Canceled At
1047
+ * @description 订单取消时间;没有取消时为空。
1048
+ */
1049
+ canceled_at: string | null;
1050
+ /**
1051
+ * Expired At
1052
+ * @description 订单过期的时间;没有过期时为空。
1053
+ */
1054
+ expired_at: string | null;
1055
+ /**
1056
+ * Fulfilled At
1057
+ * @description 购买内容发放完成的时间;还没完成时为空。
1058
+ */
1059
+ fulfilled_at: string | null;
1060
+ /**
1061
+ * Refunded At
1062
+ * @description 退款完成的时间;没有退款或还没完成时为空。
1063
+ */
1064
+ refunded_at: string | null;
1065
+ };
1066
+ /** ProductFulfillmentProjection */
1067
+ ProductFulfillmentProjection: {
1068
+ /**
1069
+ * Product Fulfillment Id
1070
+ * Format: uuid
1071
+ * @description 发放记录的 UUID,和订单 UUID 不是同一个。
1072
+ */
1073
+ product_fulfillment_id: string;
1074
+ /**
1075
+ * Fulfillment Event Id
1076
+ * @description 发放事件的 UUID;没有时为空。
1077
+ */
1078
+ fulfillment_event_id: string | null;
1079
+ /**
1080
+ * Status
1081
+ * @description 购买内容的发放状态:等待中、已发放、被拒绝或人工处理中。
1082
+ * @enum {string}
1083
+ */
1084
+ status: "not_requested" | "pending" | "applied" | "rejected" | "manual_review";
1085
+ /**
1086
+ * Quantity
1087
+ * @description 下单时记录的购买数量,1 到 100。
1088
+ */
1089
+ quantity: number;
1090
+ /**
1091
+ * Provider Reason Code
1092
+ * @description 发放方给出的原因代码;没有时为空。
1093
+ */
1094
+ provider_reason_code: string | null;
1095
+ /** @description 下单时固定下来的绿点发放参数;其他类别的商品为空。 */
1096
+ parameters: components["schemas"]["GreenPointFulfillmentParameters"] | null;
1097
+ };
1098
+ /**
1099
+ * ProductGreenPointPriceOut
1100
+ * @description Current effective price projection, or an explicit unavailable result.
1101
+ */
1102
+ ProductGreenPointPriceOut: {
1103
+ /**
1104
+ * Available
1105
+ * @description 这个产品现在对这种媒体有没有生效的绿点价格。
1106
+ */
1107
+ available: boolean;
1108
+ /**
1109
+ * Input Type
1110
+ * @description 这个价格适用的媒体类型:images(图片)或 video(视频)。
1111
+ * @enum {string}
1112
+ */
1113
+ input_type: "images" | "video";
1114
+ /**
1115
+ * Pricing Mode
1116
+ * @description 怎么计费:per_image 按张,per_minute 按分钟;没有价格时为空。
1117
+ */
1118
+ pricing_mode?: ("per_image" | "per_minute") | null;
1119
+ /**
1120
+ * Unit Points
1121
+ * @description 每张图片或每分钟要扣的绿点;没有价格时为空。
1122
+ */
1123
+ unit_points?: string | null;
1124
+ /**
1125
+ * Description
1126
+ * @description 资源的用途说明。
1127
+ */
1128
+ description?: string | null;
1129
+ /**
1130
+ * Code
1131
+ * @description 资源的稳定业务编码。
1132
+ */
1133
+ code?: "green_point_price_unavailable" | null;
1134
+ /**
1135
+ * Reason
1136
+ * @description 没有价格时的原因说明,按请求的语言返回;有价格时为空。
1137
+ */
1138
+ reason?: string | null;
1139
+ };
1140
+ /** ProductInputLimitOut */
1141
+ ProductInputLimitOut: {
1142
+ /**
1143
+ * Description
1144
+ * @description 可选的用户上传限制展示说明。
1145
+ */
1146
+ description: string | null;
1147
+ /**
1148
+ * Min File Count
1149
+ * @description 该媒体类型的最少文件数。
1150
+ */
1151
+ min_file_count?: number | null;
1152
+ /**
1153
+ * Max File Count
1154
+ * @description 该媒体类型的最多文件数。
1155
+ */
1156
+ max_file_count: number;
1157
+ /**
1158
+ * Max Total Bytes
1159
+ * @description 允许上传的最大总大小,单位 byte。
1160
+ */
1161
+ max_total_bytes: number;
1162
+ /**
1163
+ * Max Duration Seconds
1164
+ * @description 视频最大时长秒数;图片为空。
1165
+ */
1166
+ max_duration_seconds?: number | null;
1167
+ /**
1168
+ * Max Single File Bytes
1169
+ * @description 可选的单文件大小上限,单位 byte。
1170
+ */
1171
+ max_single_file_bytes?: number | null;
1172
+ /**
1173
+ * Allowed Extensions
1174
+ * @description 允许上传的文件扩展名。
1175
+ */
1176
+ allowed_extensions: string[];
1177
+ /**
1178
+ * Single Extension
1179
+ * @description 为 true 时该媒体类型一次上传只能使用一种扩展名。
1180
+ * @default false
1181
+ */
1182
+ single_extension?: boolean;
1183
+ /**
1184
+ * Reject Timelapse
1185
+ * @description 为 true 时拒收延时摄影视频;仅视频可能为 true。
1186
+ * @default false
1187
+ */
1188
+ reject_timelapse?: boolean;
1189
+ /**
1190
+ * Required Lens Tracks
1191
+ * @description 每个 .insv/.osv 文件必须具有的镜头轨数;为空表示不要求。
1192
+ */
1193
+ required_lens_tracks?: number | null;
1194
+ };
1195
+ /** ProductUploadInputLimit */
1196
+ ProductUploadInputLimit: {
1197
+ /**
1198
+ * Description
1199
+ * @description 资源的用途说明。
1200
+ */
1201
+ description: string | null;
1202
+ /**
1203
+ * Min File Count
1204
+ * @description 这种媒体最少要有几个文件;没有要求时为空。
1205
+ */
1206
+ min_file_count?: number | null;
1207
+ /**
1208
+ * Max File Count
1209
+ * @description 这种媒体最多能有几个文件。
1210
+ */
1211
+ max_file_count: number;
1212
+ /**
1213
+ * Max Total Bytes
1214
+ * @description 这种媒体所有文件加起来的大小上限,单位字节。
1215
+ */
1216
+ max_total_bytes: number;
1217
+ /**
1218
+ * Max Single File Bytes
1219
+ * @description 单个文件的大小上限,单位字节;没有要求时为空。
1220
+ */
1221
+ max_single_file_bytes?: number | null;
1222
+ /**
1223
+ * Max Duration Seconds
1224
+ * @description 视频最长多少秒;没有限制时为空。
1225
+ */
1226
+ max_duration_seconds?: number | null;
1227
+ /**
1228
+ * Allowed Extensions
1229
+ * @description 这种媒体允许的文件扩展名。
1230
+ */
1231
+ allowed_extensions: string[];
1232
+ };
1233
+ /** PromotionCodeAdjustment */
1234
+ PromotionCodeAdjustment: {
1235
+ /**
1236
+ * Type
1237
+ * @description 类型;PROMOTION_CODE 表示优惠码折扣。
1238
+ * @constant
1239
+ */
1240
+ type: "PROMOTION_CODE";
1241
+ /**
1242
+ * Discount Type
1243
+ * @description 折扣方式:percent_off 按比例,amount_off 减固定金额;目前优惠码都是 percent_off。
1244
+ * @enum {string}
1245
+ */
1246
+ discount_type: "amount_off" | "percent_off";
1247
+ /**
1248
+ * Discount Basis Points
1249
+ * @description 折扣比例,单位是万分之一(1–9999,100 表示 1%);减固定金额时为空。
1250
+ */
1251
+ discount_basis_points: number | null;
1252
+ /** @description 这个优惠码减掉的金额。 */
1253
+ money: components["schemas"]["DiscountMoney"];
1254
+ /**
1255
+ * Code Display Mask
1256
+ * @description 打了码的优惠码,只露出末尾几位,用于展示;不会返回完整的优惠码。
1257
+ */
1258
+ code_display_mask: string;
1259
+ };
1260
+ /** PublicGreenPointAccountOut */
1261
+ PublicGreenPointAccountOut: {
1262
+ /**
1263
+ * Available Points
1264
+ * @description 可用绿点。
1265
+ */
1266
+ available_points: number;
1267
+ /**
1268
+ * Reserved Points
1269
+ * @description 已被 Task 预占的绿点。
1270
+ */
1271
+ reserved_points: number;
1272
+ /**
1273
+ * Total Points
1274
+ * @description 可用与预占绿点之和。
1275
+ */
1276
+ total_points: number;
1277
+ /**
1278
+ * Status
1279
+ * @description 第一版账户状态恒为 active。
1280
+ * @constant
1281
+ */
1282
+ status: "active";
1283
+ /**
1284
+ * Updated At
1285
+ * Format: date-time
1286
+ * @description 资源最后更新时间。
1287
+ */
1288
+ updated_at: string;
1289
+ };
1290
+ /** PublicProductListOut */
1291
+ PublicProductListOut: {
1292
+ /**
1293
+ * Items
1294
+ * @description 当前分页返回的资源列表。
1295
+ */
1296
+ items: components["schemas"]["PublicProductOut"][];
1297
+ /**
1298
+ * Total
1299
+ * @description 符合查询条件的资源总数。
1300
+ */
1301
+ total: number;
1302
+ /**
1303
+ * Offset
1304
+ * @description 当前分页相对结果集起点的偏移量。
1305
+ */
1306
+ offset: number;
1307
+ /**
1308
+ * Limit
1309
+ * @description 本次请求允许返回的最大记录数。
1310
+ */
1311
+ limit: number;
1312
+ };
1313
+ /** PublicProductOut */
1314
+ PublicProductOut: {
1315
+ /**
1316
+ * Id
1317
+ * Format: uuid
1318
+ * @description 资源的 UUID 唯一标识。
1319
+ */
1320
+ id: string;
1321
+ /**
1322
+ * Code
1323
+ * @description 资源的稳定业务编码。
1324
+ */
1325
+ code: string;
1326
+ /**
1327
+ * Name
1328
+ * @description 资源的展示名称。
1329
+ */
1330
+ name: string;
1331
+ /**
1332
+ * Description
1333
+ * @description 资源的用途说明。
1334
+ */
1335
+ description?: string | null;
1336
+ /**
1337
+ * Input Mode
1338
+ * @description 产品接受的媒体:images、video 或 mixed。mixed 时能不能把图片和视频放在同一次上传里,要看 allow_mixed_upload。
1339
+ * @enum {string}
1340
+ */
1341
+ input_mode: "images" | "video" | "mixed";
1342
+ /**
1343
+ * Allow Mixed Upload
1344
+ * @description 图片和视频能不能放在同一次上传里。
1345
+ */
1346
+ allow_mixed_upload: boolean;
1347
+ /**
1348
+ * Required Extensions
1349
+ * @description 上传须至少包含其中一种扩展名的文件;为空表示不要求。
1350
+ */
1351
+ required_extensions?: string[];
1352
+ /**
1353
+ * Supported Input Types
1354
+ * @description 产品接受的媒体类型,取值是 images 或 video。
1355
+ */
1356
+ supported_input_types: ("images" | "video")[];
1357
+ /**
1358
+ * Input Limits
1359
+ * @description 对输入的要求,按媒体类型给出,键是 images 或 video。
1360
+ */
1361
+ input_limits: {
1362
+ [key: string]: components["schemas"]["ProductInputLimitOut"];
1363
+ };
1364
+ /** @description 整体的上传限制;文件数量和总大小取产品限制和平台上限里更严的那个。 */
1365
+ limits: components["schemas"]["InputLimitsOut"];
1366
+ /**
1367
+ * Green Point Prices
1368
+ * @description 现在的绿点价格,按媒体类型给出;没有价格的会说明原因。
1369
+ */
1370
+ green_point_prices: {
1371
+ [key: string]: components["schemas"]["ProductGreenPointPriceOut"];
1372
+ };
1373
+ /**
1374
+ * Sort Order
1375
+ * @description 产品的展示顺序;注意产品列表接口是按 code、再按 UUID 排序的。
1376
+ */
1377
+ sort_order: number;
1378
+ };
1379
+ /** SafeTransferProgress */
1380
+ SafeTransferProgress: {
1381
+ /**
1382
+ * Direction
1383
+ * @description 传输方向:下载任务输入,还是上传任务输出。
1384
+ * @enum {string}
1385
+ */
1386
+ direction: "input" | "output";
1387
+ /**
1388
+ * Purpose
1389
+ * @description 传的是任务输入还是任务输出。
1390
+ * @enum {string}
1391
+ */
1392
+ purpose: "task_input" | "task_output";
1393
+ /**
1394
+ * Status
1395
+ * @description 资源当前状态。
1396
+ * @enum {string}
1397
+ */
1398
+ status: "active" | "completed" | "failed";
1399
+ /**
1400
+ * Attempt
1401
+ * @description 第几次尝试,从 1 开始,最多 32。
1402
+ */
1403
+ attempt: number;
1404
+ /**
1405
+ * Started At
1406
+ * Format: date-time
1407
+ * @description 资源开始处理的时间。
1408
+ */
1409
+ started_at: string;
1410
+ /**
1411
+ * Started At Quality
1412
+ * @description 开始时间是怎么来的:传输事件里带的,或者没有时用服务端收到的时间。
1413
+ * @enum {string}
1414
+ */
1415
+ started_at_quality: "exact" | "receipt_fallback";
1416
+ /**
1417
+ * Last Updated At
1418
+ * Format: date-time
1419
+ * @description 这次尝试最近一次更新的时间。
1420
+ */
1421
+ last_updated_at: string;
1422
+ /**
1423
+ * Last Updated At Quality
1424
+ * @description 最近更新时间是怎么来的:传输事件里带的,或者没有时用服务端收到的时间。
1425
+ * @enum {string}
1426
+ */
1427
+ last_updated_at_quality: "exact" | "receipt_fallback";
1428
+ /**
1429
+ * Finished At
1430
+ * @description 资源结束处理的时间。
1431
+ */
1432
+ finished_at?: string | null;
1433
+ /**
1434
+ * Finished At Quality
1435
+ * @description 结束时间是怎么来的:传输事件里带的,或者没有时用服务端收到的时间;还没结束时为空。
1436
+ */
1437
+ finished_at_quality?: ("exact" | "receipt_fallback") | null;
1438
+ /**
1439
+ * Completed Bytes
1440
+ * @description 这次尝试已经传了多少字节;没上报时为空。
1441
+ */
1442
+ completed_bytes?: number | null;
1443
+ /**
1444
+ * Total Bytes
1445
+ * @description 这次尝试一共要传多少字节;不知道时为空。
1446
+ */
1447
+ total_bytes?: number | null;
1448
+ /**
1449
+ * Completed Objects
1450
+ * @description 这次尝试已经传了多少个文件;没上报时为空。
1451
+ */
1452
+ completed_objects?: number | null;
1453
+ /**
1454
+ * Total Objects
1455
+ * @description 这次尝试一共要传多少个文件;不知道时为空。
1456
+ */
1457
+ total_objects?: number | null;
1458
+ };
1459
+ /** StorageCredentialsOut */
1460
+ StorageCredentialsOut: {
1461
+ /**
1462
+ * Type
1463
+ * @description 凭证类型;sts 表示临时存储凭证。
1464
+ * @default sts
1465
+ */
1466
+ type?: string;
1467
+ /**
1468
+ * Provider Id
1469
+ * @description 发这个凭证的存储服务商标识。
1470
+ */
1471
+ provider_id: string;
1472
+ /**
1473
+ * Bucket
1474
+ * @description 要上传到的存储桶名称。
1475
+ */
1476
+ bucket: string;
1477
+ /**
1478
+ * Region
1479
+ * @description 存储桶所在的地域,配置上传客户端时要用。
1480
+ */
1481
+ region: string;
1482
+ /**
1483
+ * Endpoint
1484
+ * Format: pointcosm-secret
1485
+ * @description 上传要用的存储服务地址。
1486
+ */
1487
+ endpoint: Secret;
1488
+ /**
1489
+ * Upload Prefix
1490
+ * Format: pointcosm-secret
1491
+ * @description 允许上传到的路径前缀;请直接用这个值,不要用素材 ID 自己拼。
1492
+ */
1493
+ upload_prefix: Secret;
1494
+ /**
1495
+ * Access Key Id
1496
+ * Format: pointcosm-secret
1497
+ * @description 临时访问密钥 ID。
1498
+ */
1499
+ access_key_id: Secret;
1500
+ /**
1501
+ * Access Key Secret
1502
+ * Format: pointcosm-secret
1503
+ * @description 临时访问密钥,用来给请求签名;请注意保密。
1504
+ */
1505
+ access_key_secret: Secret;
1506
+ /**
1507
+ * Security Token
1508
+ * @description 临时会话令牌;有的话上传请求里要带上。
1509
+ */
1510
+ security_token?: Secret | null;
1511
+ /**
1512
+ * Expires At
1513
+ * Format: date-time
1514
+ * @description 当前数据或授权的过期时间。
1515
+ */
1516
+ expires_at: string;
1517
+ };
1518
+ /**
1519
+ * StreamConfigOut
1520
+ * @description 购买前展示用的价格与规则。
1521
+ */
1522
+ StreamConfigOut: {
1523
+ /**
1524
+ * Hourly Points
1525
+ * @description 房间费率:就绪期间每小时绿点。
1526
+ */
1527
+ hourly_points: number;
1528
+ /**
1529
+ * Viewer Hourly Points
1530
+ * @description 旁观费率:每位访客在房每小时绿点,房主和当前操控者不计。
1531
+ */
1532
+ viewer_hourly_points: number;
1533
+ /**
1534
+ * Min Duration Hours
1535
+ * @description 最少要买几个小时。
1536
+ */
1537
+ min_duration_hours: number;
1538
+ /**
1539
+ * Max Duration Hours
1540
+ * @description 最多能买几个小时。
1541
+ */
1542
+ max_duration_hours: number;
1543
+ /**
1544
+ * Max Viewers
1545
+ * @description 观看人数上限(含房主)。
1546
+ */
1547
+ max_viewers: number;
1548
+ /**
1549
+ * Sources
1550
+ * @description 当前可登记的模型来源。
1551
+ */
1552
+ sources: string[];
1553
+ };
1554
+ /** StreamGuestLinkIn */
1555
+ StreamGuestLinkIn: {
1556
+ /**
1557
+ * Password
1558
+ * @description 访客密码,6~64 个字符;不填由平台随机生成。
1559
+ */
1560
+ password?: string | null;
1561
+ /**
1562
+ * Evict Guests
1563
+ * @description 为真时立刻把房间里的访客请出。
1564
+ * @default false
1565
+ */
1566
+ evict_guests?: boolean;
1567
+ };
1568
+ /** StreamGuestLinkOut */
1569
+ StreamGuestLinkOut: {
1570
+ /**
1571
+ * Link
1572
+ * @description 观看链接,不含密码;访客在观看页上输入密码。
1573
+ */
1574
+ link: string;
1575
+ /**
1576
+ * Password
1577
+ * Format: pointcosm-secret
1578
+ * @description 访客密码;设置新密码后旧密码失效。
1579
+ */
1580
+ password: Secret;
1581
+ /**
1582
+ * Expires At
1583
+ * Format: date-time
1584
+ * @description 观看链接什么时候失效。
1585
+ */
1586
+ expires_at: string;
1587
+ };
1588
+ /** StreamLinkOut */
1589
+ StreamLinkOut: {
1590
+ /**
1591
+ * Link
1592
+ * Format: pointcosm-secret
1593
+ * @description 房主链接;只在这一次返回,请保存好。
1594
+ */
1595
+ link: Secret;
1596
+ /**
1597
+ * Expires At
1598
+ * Format: date-time
1599
+ * @description 房主链接什么时候失效。
1600
+ */
1601
+ expires_at: string;
1602
+ };
1603
+ /** StreamMemberOut */
1604
+ StreamMemberOut: {
1605
+ /**
1606
+ * Id
1607
+ * @description 成员 ID。
1608
+ */
1609
+ id: string;
1610
+ /**
1611
+ * Name
1612
+ * @description 成员的名字。
1613
+ */
1614
+ name: string;
1615
+ /**
1616
+ * Is Host
1617
+ * @description 是不是房主。
1618
+ */
1619
+ is_host: boolean;
1620
+ /**
1621
+ * Online
1622
+ * @description 观看页此刻开着。
1623
+ */
1624
+ online: boolean;
1625
+ /**
1626
+ * Seated
1627
+ * @description 占用着席位:在线,或离开不到 90 秒。
1628
+ */
1629
+ seated: boolean;
1630
+ /**
1631
+ * Controlling
1632
+ * @description 正在操控画面;同一时间最多一人。
1633
+ */
1634
+ controlling: boolean;
1635
+ /**
1636
+ * Joined At
1637
+ * Format: date-time
1638
+ * @description 成员进入房间的时间。
1639
+ */
1640
+ joined_at: string;
1641
+ };
1642
+ /** StreamMembersOut */
1643
+ StreamMembersOut: {
1644
+ /**
1645
+ * Max Viewers
1646
+ * @description 观看人数上限(含房主)。
1647
+ */
1648
+ max_viewers: number | null;
1649
+ /**
1650
+ * Members
1651
+ * @description 房间里现在的成员。
1652
+ */
1653
+ members: components["schemas"]["StreamMemberOut"][];
1654
+ };
1655
+ /** StreamModelOut */
1656
+ StreamModelOut: {
1657
+ /**
1658
+ * Id
1659
+ * Format: uuid
1660
+ * @description 场景 UUID。
1661
+ */
1662
+ id: string;
1663
+ /**
1664
+ * Asset Id
1665
+ * Format: uuid
1666
+ * @description 场景文件所在素材的 ID。
1667
+ */
1668
+ asset_id: string;
1669
+ /**
1670
+ * Key
1671
+ * @description 场景文件在素材里的路径。
1672
+ */
1673
+ key: string;
1674
+ /**
1675
+ * Format
1676
+ * @description 场景文件格式。
1677
+ */
1678
+ format: string;
1679
+ /**
1680
+ * Source
1681
+ * @description 场景是哪条管线生成的。
1682
+ * @enum {string}
1683
+ */
1684
+ source: "PP5" | "PP6" | "PP7" | "PP9" | "ply:z" | "ply:-z" | "ply:y" | "ply:-y";
1685
+ /**
1686
+ * Name
1687
+ * @description 场景的名字;没起名时为空。
1688
+ */
1689
+ name: string | null;
1690
+ /**
1691
+ * Registered At
1692
+ * Format: date-time
1693
+ * @description 场景登记时间。
1694
+ */
1695
+ registered_at: string;
1696
+ };
1697
+ /** StreamModelPage */
1698
+ StreamModelPage: {
1699
+ /**
1700
+ * Items
1701
+ * @description 这一页的场景。
1702
+ */
1703
+ items: components["schemas"]["StreamModelOut"][];
1704
+ /**
1705
+ * Total
1706
+ * @description 场景总数。
1707
+ */
1708
+ total: number;
1709
+ /**
1710
+ * Offset
1711
+ * @description 跳过了多少条。
1712
+ */
1713
+ offset: number;
1714
+ /**
1715
+ * Limit
1716
+ * @description 这一页最多返回多少条。
1717
+ */
1718
+ limit: number;
1719
+ };
1720
+ /** StreamModelRegisterIn */
1721
+ StreamModelRegisterIn: {
1722
+ /**
1723
+ * Asset Id
1724
+ * Format: uuid
1725
+ * @description Asset 通用标识;训练输出产物的 asset_id 或上传封存后的 asset_id。
1726
+ */
1727
+ asset_id: string;
1728
+ /**
1729
+ * Key
1730
+ * @description 已封存的 scene.pointcosm 对象的相对键。
1731
+ */
1732
+ key: string;
1733
+ /**
1734
+ * Source
1735
+ * @description 场景是哪条管线生成的:PP5、PP6、PP7 或 PP9,也可以直接传产物列表里的 pipeline_code,例如 PP9-V3。当前能登记哪些以购买配置里的 sources 为准。
1736
+ */
1737
+ source: string;
1738
+ /**
1739
+ * Name
1740
+ * @description 显示名,例如任务名;可不填。
1741
+ */
1742
+ name?: string | null;
1743
+ };
1744
+ /** StreamSessionCreateIn */
1745
+ StreamSessionCreateIn: {
1746
+ /**
1747
+ * Model Id
1748
+ * Format: uuid
1749
+ * @description 要在房间里展示的场景 UUID。
1750
+ */
1751
+ model_id: string;
1752
+ /**
1753
+ * Duration Hours
1754
+ * @description 买了几个小时(整数)。
1755
+ */
1756
+ duration_hours: number;
1757
+ };
1758
+ /** StreamSessionOut */
1759
+ StreamSessionOut: {
1760
+ /**
1761
+ * Id
1762
+ * Format: uuid
1763
+ * @description 房间 UUID。
1764
+ */
1765
+ id: string;
1766
+ /**
1767
+ * Model Id
1768
+ * Format: uuid
1769
+ * @description 房间里展示的场景 UUID。
1770
+ */
1771
+ model_id: string;
1772
+ /**
1773
+ * Model Name
1774
+ * @description 创建时的模型显示名快照;未命名时为文件名。
1775
+ */
1776
+ model_name: string | null;
1777
+ /**
1778
+ * Status
1779
+ * @description 房间状态。
1780
+ * @enum {string}
1781
+ */
1782
+ status: "preparing" | "ready" | "stopping" | "stopped" | "failed";
1783
+ /**
1784
+ * Preparing Hint
1785
+ * @description 准备中的额外提示;first_conversion 表示场景是第一次使用,需要先转换,会多等一会儿。
1786
+ */
1787
+ preparing_hint: "first_conversion" | null;
1788
+ /**
1789
+ * Duration Hours
1790
+ * @description 买了几个小时(整数)。
1791
+ */
1792
+ duration_hours: number;
1793
+ /**
1794
+ * Hourly Points
1795
+ * @description 房间费率:就绪期间每小时绿点。
1796
+ */
1797
+ hourly_points: number;
1798
+ /**
1799
+ * Viewer Hourly Points
1800
+ * @description 每路费率:每个观看者每小时绿点。
1801
+ */
1802
+ viewer_hourly_points: number;
1803
+ /**
1804
+ * Prepaid Points
1805
+ * @description 按房主外满席旁观预付的绿点。
1806
+ */
1807
+ prepaid_points: number;
1808
+ /**
1809
+ * Settled Points
1810
+ * @description 结算后实际扣的绿点;还没结算时为空。
1811
+ */
1812
+ settled_points?: number | null;
1813
+ /**
1814
+ * Billed Seconds
1815
+ * @description 已计费秒数;结束后为定值,未结束时为空。
1816
+ */
1817
+ billed_seconds?: number | null;
1818
+ /**
1819
+ * Viewer Seconds
1820
+ * @description 访客在房人秒;结算后为定值,结算前为 0。
1821
+ */
1822
+ viewer_seconds: number;
1823
+ /**
1824
+ * Billing Started At
1825
+ * @description 开始计费的时间;房间没准备好过就为空。
1826
+ */
1827
+ billing_started_at: string | null;
1828
+ /**
1829
+ * Expires At
1830
+ * @description 房间到期时间。
1831
+ */
1832
+ expires_at: string | null;
1833
+ /**
1834
+ * Billing Ended At
1835
+ * @description 停止计费的时间;还没结束时为空。
1836
+ */
1837
+ billing_ended_at: string | null;
1838
+ /**
1839
+ * End Reason
1840
+ * @description 房间为什么结束;还没结束时为空。
1841
+ */
1842
+ end_reason: ("customer_stopped" | "expired" | "prepare_timeout" | "busy" | "source_unreadable" | "convert_failed" | "link_down" | "machine_failed" | "no_viewers" | "failed") | null;
1843
+ /**
1844
+ * Max Viewers
1845
+ * @description 观看人数上限(含房主)。
1846
+ */
1847
+ max_viewers: number | null;
1848
+ /**
1849
+ * Viewers
1850
+ * @description 正在观看的人数;为空表示未知,不表示 0。
1851
+ */
1852
+ viewers?: number | null;
1853
+ /**
1854
+ * Created At
1855
+ * Format: date-time
1856
+ * @description 房间创建时间。
1857
+ */
1858
+ created_at: string;
1859
+ };
1860
+ /** StreamSessionPage */
1861
+ StreamSessionPage: {
1862
+ /**
1863
+ * Items
1864
+ * @description 这一页的房间。
1865
+ */
1866
+ items: components["schemas"]["StreamSessionOut"][];
1867
+ /**
1868
+ * Total
1869
+ * @description 房间总数。
1870
+ */
1871
+ total: number;
1872
+ /**
1873
+ * Offset
1874
+ * @description 跳过了多少条。
1875
+ */
1876
+ offset: number;
1877
+ /**
1878
+ * Limit
1879
+ * @description 这一页最多返回多少条。
1880
+ */
1881
+ limit: number;
1882
+ };
1883
+ /** SubscriptionUpgradeAdjustment */
1884
+ SubscriptionUpgradeAdjustment: {
1885
+ /**
1886
+ * Type
1887
+ * @description 类型;SUBSCRIPTION_UPGRADE_CREDIT 表示订阅升级抵扣。
1888
+ * @constant
1889
+ */
1890
+ type: "SUBSCRIPTION_UPGRADE_CREDIT";
1891
+ /** @description 升级订阅时抵掉的金额;取整后可能是 0。 */
1892
+ money: components["schemas"]["DiscountMoney"];
1893
+ /**
1894
+ * Source Subscription Id
1895
+ * Format: uuid
1896
+ * @description 用来计算抵扣的原订阅 UUID。
1897
+ */
1898
+ source_subscription_id: string;
1899
+ };
1900
+ /** SystemLogsView */
1901
+ SystemLogsView: {
1902
+ /**
1903
+ * Summary
1904
+ * @description 执行摘要的校验状态,和日志归档无关。
1905
+ * @enum {string}
1906
+ */
1907
+ summary: "pending" | "confirmed" | "invalid" | "unavailable" | "not_supported";
1908
+ /**
1909
+ * Completeness
1910
+ * @description 系统日志归档的校验结果,不含摘要和控制文件。
1911
+ * @enum {string}
1912
+ */
1913
+ completeness: "pending" | "complete" | "partial" | "unavailable" | "not_supported";
1914
+ /**
1915
+ * Expected Count
1916
+ * @description 归档里应该有多少个日志文件;归档没法校验时为空。
1917
+ */
1918
+ expected_count: number | null;
1919
+ /**
1920
+ * Verified Count
1921
+ * @description 其中校验通过的数量;没有校验结果时为空。
1922
+ */
1923
+ verified_count: number | null;
1924
+ /**
1925
+ * Failed Count
1926
+ * @description 其中校验没通过的数量;没有校验结果时为空。
1927
+ */
1928
+ failed_count: number | null;
1929
+ };
1930
+ /** TaskAssetProjection */
1931
+ TaskAssetProjection: {
1932
+ /**
1933
+ * Id
1934
+ * Format: uuid
1935
+ * @description Task 实际使用的首次训练 Asset UUID。
1936
+ */
1937
+ id: string;
1938
+ /**
1939
+ * Name
1940
+ * @description Asset 展示名称。
1941
+ */
1942
+ name: string;
1943
+ /**
1944
+ * Deleted
1945
+ * @description 数据集已删除或已过期清理,客户不可再查看或使用。
1946
+ * @default false
1947
+ */
1948
+ deleted?: boolean;
1949
+ };
1950
+ /** TaskCancelOut */
1951
+ TaskCancelOut: {
1952
+ /**
1953
+ * Task Id
1954
+ * Format: uuid
1955
+ * @description Task UUID。
1956
+ */
1957
+ task_id: string;
1958
+ /** @description 受理时的任务状态;已提交执行的任务在资源收口后变为 cancelled。 */
1959
+ status: components["schemas"]["TaskStatus"];
1960
+ /**
1961
+ * Outcome
1962
+ * @description cancelled:尚未提交执行,已直接取消;accepted:已受理取消,稍后变为 cancelled;already_requested:此前已受理,重复请求不重复处理。
1963
+ * @enum {string}
1964
+ */
1965
+ outcome: "cancelled" | "accepted" | "already_requested";
1966
+ };
1967
+ /**
1968
+ * TaskCreateIn
1969
+ * @description 创建一个消费已就绪 Asset 的 whole-task 训练任务。
1970
+ */
1971
+ TaskCreateIn: {
1972
+ /**
1973
+ * Product Id
1974
+ * Format: uuid
1975
+ * @description 要使用的训练产品 UUID。
1976
+ */
1977
+ product_id: string;
1978
+ /**
1979
+ * Asset Id
1980
+ * Format: uuid
1981
+ * @description 已封存的独立 Asset UUID,可供多个 Task 使用。
1982
+ */
1983
+ asset_id: string;
1984
+ /**
1985
+ * Name
1986
+ * @description 任务展示名称;省略或 null 时使用素材名称。
1987
+ */
1988
+ name?: string | null;
1989
+ /**
1990
+ * Parameters
1991
+ * @description 符合所选 Pipeline 参数合同的训练参数。
1992
+ */
1993
+ parameters?: {
1994
+ [key: string]: unknown;
1995
+ };
1996
+ };
1997
+ /** TaskDetailOut */
1998
+ TaskDetailOut: {
1999
+ /**
2000
+ * Id
2001
+ * Format: uuid
2002
+ * @description Task UUID;同时用于 API 路径和 OSS 任务路径段。
2003
+ */
2004
+ id: string;
2005
+ /**
2006
+ * Code
2007
+ * @description 任务唯一展示编号;不用于执行或关系关联。
2008
+ */
2009
+ code: string;
2010
+ /**
2011
+ * Name
2012
+ * @description 任务展示名称;新任务默认素材名称,历史任务允许为空。
2013
+ */
2014
+ name?: string | null;
2015
+ /**
2016
+ * Import Source
2017
+ * @description 历史归档来源;此类任务仅支持查询、下载和软删除。
2018
+ */
2019
+ import_source?: "engineapi" | null;
2020
+ /** @description 任务当前编排状态。 */
2021
+ status: components["schemas"]["TaskStatus"];
2022
+ /**
2023
+ * Product Id
2024
+ * Format: uuid
2025
+ * @description 这个任务用的训练产品 UUID。
2026
+ */
2027
+ product_id: string;
2028
+ /**
2029
+ * Asset Id
2030
+ * @description 训练输入 Asset;历史导入任务为空。
2031
+ */
2032
+ asset_id: string | null;
2033
+ /**
2034
+ * Input Validation Status
2035
+ * @description 训练输入的检查结果:等待中、已通过或没通过。
2036
+ * @enum {string}
2037
+ */
2038
+ input_validation_status: "pending" | "passed" | "failed";
2039
+ /**
2040
+ * Input Validation Error Code
2041
+ * @description 输入检查没通过时的原因代码;没有时为空。
2042
+ */
2043
+ input_validation_error_code?: ("input_invalid" | "input_source_unavailable" | "platform_error") | null;
2044
+ /**
2045
+ * Input Validation Error Message
2046
+ * @description 输入检查没通过的原因说明;没有时为空。
2047
+ */
2048
+ input_validation_error_message?: string | null;
2049
+ /**
2050
+ * Created At
2051
+ * Format: date-time
2052
+ * @description 任务创建时间。
2053
+ */
2054
+ created_at: string;
2055
+ /** @description Task 创建事务中按锁定 Asset 实际计量冻结并预占的绿点 charge。 */
2056
+ green_point_charge: components["schemas"]["TaskGreenPointChargeOut"] | null;
2057
+ /** @description 整个 Task 的客户安全七阶段进度投影,不是 Pipeline Execution 阶段事实。 */
2058
+ progress: components["schemas"]["TaskProgress"];
2059
+ /** @description Task 创建时绑定的产品投影。 */
2060
+ product?: components["schemas"]["TaskProductProjection"] | null;
2061
+ /** @description Task 直接引用的独立 Asset 投影。 */
2062
+ asset?: components["schemas"]["TaskAssetProjection"] | null;
2063
+ /**
2064
+ * Started At
2065
+ * @description 后端编排进入 running 的时间。
2066
+ */
2067
+ started_at?: string | null;
2068
+ /**
2069
+ * Finished At
2070
+ * @description 后端编排写入终态的时间。
2071
+ */
2072
+ finished_at?: string | null;
2073
+ /**
2074
+ * Training Started At
2075
+ * @description Worker summary 上报的实际训练开始时间。
2076
+ */
2077
+ training_started_at?: string | null;
2078
+ /**
2079
+ * Training Finished At
2080
+ * @description Worker summary 上报的实际训练结束时间。
2081
+ */
2082
+ training_finished_at?: string | null;
2083
+ /** @description 从 OSS summary.json 提取的客户安全摘要。 */
2084
+ summary?: components["schemas"]["TaskSummaryOut"] | null;
2085
+ /** @description 仅由终态强因果引用投影的客户安全失败;无法确定时为 null。 */
2086
+ failure?: components["schemas"]["TaskFailureOut"] | null;
2087
+ };
2088
+ /** TaskFailureOut */
2089
+ TaskFailureOut: {
2090
+ /** @description 封闭的九种客户失败码;不暴露内部或原始码。 */
2091
+ code: components["schemas"]["CustomerFailureCode"];
2092
+ /**
2093
+ * Phase
2094
+ * @description 客户可理解的失败阶段;允许未来新增值。
2095
+ */
2096
+ phase: string;
2097
+ /**
2098
+ * Summary
2099
+ * @description 由服务端注册表控制的中文安全摘要。
2100
+ */
2101
+ summary: string;
2102
+ /**
2103
+ * Recommended Action
2104
+ * @description 由服务端注册表控制的中文建议动作。
2105
+ */
2106
+ recommended_action: string;
2107
+ };
2108
+ /** TaskGreenPointChargeComponentOut */
2109
+ TaskGreenPointChargeComponentOut: {
2110
+ /**
2111
+ * Input Type
2112
+ * @description 这一项对应的媒体类型:images(图片)或 video(视频)。
2113
+ * @enum {string}
2114
+ */
2115
+ input_type: "images" | "video";
2116
+ /**
2117
+ * Pricing Mode
2118
+ * @description 这一项怎么计费:按图片张数,或按视频分钟数。
2119
+ * @enum {string}
2120
+ */
2121
+ pricing_mode: "per_image" | "per_minute";
2122
+ /**
2123
+ * Unit Count
2124
+ * @description 计入的数量:图片是张数,视频是时长秒数。
2125
+ */
2126
+ unit_count: number;
2127
+ /**
2128
+ * Unit Points
2129
+ * @description 管理员配置的绿点单价,最多 6 位小数。
2130
+ */
2131
+ unit_points: string;
2132
+ /**
2133
+ * Quoted Points
2134
+ * @description 这一项要扣的绿点,按价格和数量算出后向上取整。
2135
+ */
2136
+ quoted_points: number;
2137
+ /**
2138
+ * Price Description
2139
+ * @description 扣费时用的价格说明;没有配置时为空。
2140
+ */
2141
+ price_description: string | null;
2142
+ };
2143
+ /** TaskGreenPointChargeOut */
2144
+ TaskGreenPointChargeOut: {
2145
+ /**
2146
+ * Status
2147
+ * @description 资源当前状态。
2148
+ * @enum {string}
2149
+ */
2150
+ status: "reserved" | "consumed" | "released";
2151
+ /**
2152
+ * Input Type
2153
+ * @description 只有一种媒体时是 images 或 video;图片和视频都有时为空。
2154
+ */
2155
+ input_type: ("images" | "video") | null;
2156
+ /**
2157
+ * Pricing Mode
2158
+ * @description 只有一种媒体时的计费方式:按图片张数或按视频分钟数;都有时为空。
2159
+ */
2160
+ pricing_mode: ("per_image" | "per_minute") | null;
2161
+ /**
2162
+ * Unit Count
2163
+ * @description 只有一种媒体时计入的数量:图片张数或视频时长秒数;都有时为空。
2164
+ */
2165
+ unit_count: number | null;
2166
+ /**
2167
+ * Unit Points
2168
+ * @description 只有一种媒体时的单价;都有时为空。
2169
+ */
2170
+ unit_points: string | null;
2171
+ /**
2172
+ * Quoted Points
2173
+ * @description 这个任务一共要扣的绿点,是各项取整后相加的结果。
2174
+ */
2175
+ quoted_points: number;
2176
+ /**
2177
+ * Price Description
2178
+ * @description 只有一种媒体时扣费用的价格说明;都有或没有配置时为空。
2179
+ */
2180
+ price_description: string | null;
2181
+ /**
2182
+ * Components
2183
+ * @description 一到两项明细,分别列出每种媒体的数量、价格和要扣的绿点。
2184
+ */
2185
+ components: components["schemas"]["TaskGreenPointChargeComponentOut"][];
2186
+ };
2187
+ /** TaskListItem */
2188
+ TaskListItem: {
2189
+ /**
2190
+ * Id
2191
+ * Format: uuid
2192
+ * @description Task UUID;同时用于 API 路径和 OSS 任务路径段。
2193
+ */
2194
+ id: string;
2195
+ /**
2196
+ * Code
2197
+ * @description 任务唯一展示编号;不用于执行或关系关联。
2198
+ */
2199
+ code: string;
2200
+ /**
2201
+ * Name
2202
+ * @description 任务展示名称;新任务默认素材名称,历史任务允许为空。
2203
+ */
2204
+ name?: string | null;
2205
+ /**
2206
+ * Import Source
2207
+ * @description 历史归档来源;此类任务仅支持查询、下载和软删除。
2208
+ */
2209
+ import_source?: "engineapi" | null;
2210
+ /** @description 任务当前编排状态。 */
2211
+ status: components["schemas"]["TaskStatus"];
2212
+ /**
2213
+ * Product Id
2214
+ * Format: uuid
2215
+ * @description 这个任务用的训练产品 UUID。
2216
+ */
2217
+ product_id: string;
2218
+ /**
2219
+ * Asset Id
2220
+ * @description 训练输入 Asset;历史导入任务为空。
2221
+ */
2222
+ asset_id: string | null;
2223
+ /**
2224
+ * Input Validation Status
2225
+ * @description 训练输入的检查结果:等待中、已通过或没通过。
2226
+ * @enum {string}
2227
+ */
2228
+ input_validation_status: "pending" | "passed" | "failed";
2229
+ /**
2230
+ * Input Validation Error Code
2231
+ * @description 输入检查没通过时的原因代码;没有时为空。
2232
+ */
2233
+ input_validation_error_code?: ("input_invalid" | "input_source_unavailable" | "platform_error") | null;
2234
+ /**
2235
+ * Input Validation Error Message
2236
+ * @description 输入检查没通过的原因说明;没有时为空。
2237
+ */
2238
+ input_validation_error_message?: string | null;
2239
+ /**
2240
+ * Created At
2241
+ * Format: date-time
2242
+ * @description 任务创建时间。
2243
+ */
2244
+ created_at: string;
2245
+ /** @description Task 创建事务中按锁定 Asset 实际计量冻结并预占的绿点 charge。 */
2246
+ green_point_charge: components["schemas"]["TaskGreenPointChargeOut"] | null;
2247
+ /** @description 整个 Task 的客户安全七阶段进度投影,不是 Pipeline Execution 阶段事实。 */
2248
+ progress: components["schemas"]["TaskProgress"];
2249
+ /** @description Task 创建时绑定的产品投影。 */
2250
+ product?: components["schemas"]["TaskProductProjection"] | null;
2251
+ /** @description Task 直接引用的独立 Asset 投影。 */
2252
+ asset?: components["schemas"]["TaskAssetProjection"] | null;
2253
+ /**
2254
+ * Started At
2255
+ * @description 后端编排进入 running 的时间。
2256
+ */
2257
+ started_at?: string | null;
2258
+ /**
2259
+ * Finished At
2260
+ * @description 后端编排写入终态的时间。
2261
+ */
2262
+ finished_at?: string | null;
2263
+ /**
2264
+ * Training Started At
2265
+ * @description Worker summary 上报的实际训练开始时间。
2266
+ */
2267
+ training_started_at?: string | null;
2268
+ /**
2269
+ * Training Finished At
2270
+ * @description Worker summary 上报的实际训练结束时间。
2271
+ */
2272
+ training_finished_at?: string | null;
2273
+ };
2274
+ /** TaskListOut */
2275
+ TaskListOut: {
2276
+ /**
2277
+ * Items
2278
+ * @description 当前分页返回的资源列表。
2279
+ */
2280
+ items: components["schemas"]["TaskListItem"][];
2281
+ /**
2282
+ * Total
2283
+ * @description 符合查询条件的资源总数。
2284
+ */
2285
+ total: number;
2286
+ /**
2287
+ * Offset
2288
+ * @description 当前分页相对结果集起点的偏移量。
2289
+ */
2290
+ offset: number;
2291
+ /**
2292
+ * Limit
2293
+ * @description 本次请求允许返回的最大记录数。
2294
+ */
2295
+ limit: number;
2296
+ };
2297
+ /** TaskMilestoneTiming */
2298
+ TaskMilestoneTiming: {
2299
+ /**
2300
+ * Milestone
2301
+ * @description 这条记录对应的阶段。
2302
+ * @enum {string}
2303
+ */
2304
+ milestone: "preparing" | "downloading_input" | "organizing_media" | "building_training_data" | "training_model" | "uploading_output" | "finalizing";
2305
+ /**
2306
+ * Milestone Ordinal
2307
+ * @description 这个阶段是七个阶段里的第几个,1 到 7。
2308
+ */
2309
+ milestone_ordinal: number;
2310
+ /**
2311
+ * Lifecycle Status
2312
+ * @description 阶段状态:还没开始、进行中、已完成或被中断;被中断的阶段也可能有结束时间。
2313
+ * @enum {string}
2314
+ */
2315
+ lifecycle_status: "pending" | "active" | "completed" | "interrupted";
2316
+ /**
2317
+ * Timing Completeness
2318
+ * @description 开始和结束时间有几个:都没有、只有一个,或都有。
2319
+ * @enum {string}
2320
+ */
2321
+ timing_completeness: "unavailable" | "partial" | "complete";
2322
+ /**
2323
+ * Started At
2324
+ * @description 资源开始处理的时间。
2325
+ */
2326
+ started_at?: string | null;
2327
+ /**
2328
+ * Finished At
2329
+ * @description 资源结束处理的时间。
2330
+ */
2331
+ finished_at?: string | null;
2332
+ /**
2333
+ * Start Time Quality
2334
+ * @description 开始时间是怎么来的:事件发生的准确时间、服务端收到的时间、服务端自己记录的时间,或没有。
2335
+ * @enum {string}
2336
+ */
2337
+ start_time_quality: "unavailable" | "exact" | "receipt_fallback" | "server_authoritative";
2338
+ /**
2339
+ * Finish Time Quality
2340
+ * @description 结束时间是怎么来的:事件发生的准确时间、服务端收到的时间、服务端自己记录的时间,或没有。
2341
+ * @enum {string}
2342
+ */
2343
+ finish_time_quality: "unavailable" | "exact" | "receipt_fallback" | "server_authoritative";
2344
+ };
2345
+ /** TaskOut */
2346
+ TaskOut: {
2347
+ /**
2348
+ * Id
2349
+ * Format: uuid
2350
+ * @description Task UUID;同时用于 API 路径和 OSS 任务路径段。
2351
+ */
2352
+ id: string;
2353
+ /**
2354
+ * Code
2355
+ * @description 任务唯一展示编号;不用于执行或关系关联。
2356
+ */
2357
+ code: string;
2358
+ /**
2359
+ * Name
2360
+ * @description 任务展示名称;新任务默认素材名称,历史任务允许为空。
2361
+ */
2362
+ name?: string | null;
2363
+ /**
2364
+ * Import Source
2365
+ * @description 历史归档来源;此类任务仅支持查询、下载和软删除。
2366
+ */
2367
+ import_source?: "engineapi" | null;
2368
+ /** @description 任务当前编排状态。 */
2369
+ status: components["schemas"]["TaskStatus"];
2370
+ /**
2371
+ * Product Id
2372
+ * Format: uuid
2373
+ * @description 这个任务用的训练产品 UUID。
2374
+ */
2375
+ product_id: string;
2376
+ /**
2377
+ * Asset Id
2378
+ * @description 训练输入 Asset;历史导入任务为空。
2379
+ */
2380
+ asset_id: string | null;
2381
+ /**
2382
+ * Input Validation Status
2383
+ * @description 训练输入的检查结果:等待中、已通过或没通过。
2384
+ * @enum {string}
2385
+ */
2386
+ input_validation_status: "pending" | "passed" | "failed";
2387
+ /**
2388
+ * Input Validation Error Code
2389
+ * @description 输入检查没通过时的原因代码;没有时为空。
2390
+ */
2391
+ input_validation_error_code?: ("input_invalid" | "input_source_unavailable" | "platform_error") | null;
2392
+ /**
2393
+ * Input Validation Error Message
2394
+ * @description 输入检查没通过的原因说明;没有时为空。
2395
+ */
2396
+ input_validation_error_message?: string | null;
2397
+ /**
2398
+ * Created At
2399
+ * Format: date-time
2400
+ * @description 任务创建时间。
2401
+ */
2402
+ created_at: string;
2403
+ /** @description Task 创建事务中按锁定 Asset 实际计量冻结并预占的绿点 charge。 */
2404
+ green_point_charge: components["schemas"]["TaskGreenPointChargeOut"] | null;
2405
+ /** @description 整个 Task 的客户安全七阶段进度投影,不是 Pipeline Execution 阶段事实。 */
2406
+ progress: components["schemas"]["TaskProgress"];
2407
+ };
2408
+ /** TaskPreprocessProgress */
2409
+ TaskPreprocessProgress: {
2410
+ /**
2411
+ * Availability
2412
+ * @description 预处理数据有没有:没有、运行中的临时结果,或任务结束后确认的最终结果。
2413
+ * @enum {string}
2414
+ */
2415
+ availability: "unavailable" | "provisional" | "final";
2416
+ /**
2417
+ * Success Rate Percent
2418
+ * @description 可用训练数据比例;固定两位小数的精确十进制字符串,暂无指标时为 null。
2419
+ * @example 62.29
2420
+ */
2421
+ success_rate_percent?: string | null;
2422
+ /**
2423
+ * Quality Level
2424
+ * @description 可用训练数据占比属于哪一档;不代表最终模型的画面质量。
2425
+ * @enum {string}
2426
+ */
2427
+ quality_level: "low" | "medium" | "high" | "unknown";
2428
+ /**
2429
+ * Quality Message
2430
+ * @description 可以直接展示的预处理提示,由平台按数据情况给出。
2431
+ */
2432
+ quality_message: string;
2433
+ };
2434
+ /** TaskProductProjection */
2435
+ TaskProductProjection: {
2436
+ /**
2437
+ * Id
2438
+ * Format: uuid
2439
+ * @description Task 实际使用 Asset 在创建时锁定的 Product UUID。
2440
+ */
2441
+ id: string;
2442
+ /**
2443
+ * Code
2444
+ * @description 产品稳定业务编码。
2445
+ */
2446
+ code: string;
2447
+ /**
2448
+ * Name
2449
+ * @description 产品展示名称。
2450
+ */
2451
+ name: string;
2452
+ };
2453
+ /** TaskProgress */
2454
+ TaskProgress: {
2455
+ /**
2456
+ * Current Milestone
2457
+ * @description 任务现在所处的阶段;失败或已取消的任务停在最后到达的阶段。
2458
+ * @enum {string}
2459
+ */
2460
+ current_milestone: "preparing" | "downloading_input" | "organizing_media" | "building_training_data" | "training_model" | "uploading_output" | "finalizing";
2461
+ /**
2462
+ * Milestone Ordinal
2463
+ * @description 当前阶段是七个阶段里的第几个,1 到 7。
2464
+ */
2465
+ milestone_ordinal: number;
2466
+ /**
2467
+ * Activity Status
2468
+ * @description 特别的进度提示,例如正在同步结果;normal 表示没有特别提示,不代表已确认运行正常。
2469
+ * @enum {string}
2470
+ */
2471
+ activity_status: "normal" | "syncing_runtime_result" | "update_delayed" | "unmapped";
2472
+ /**
2473
+ * Observation Status
2474
+ * @description 运行数据是不是最近更新的;数据旧了不代表任务卡住或失败。
2475
+ * @enum {string}
2476
+ */
2477
+ observation_status: "unavailable" | "fresh" | "stale" | "not_applicable";
2478
+ /**
2479
+ * Last Observed At
2480
+ * @description 最近一次收到运行数据的时间;没有时为空。
2481
+ */
2482
+ last_observed_at?: string | null;
2483
+ /**
2484
+ * Observed Elapsed Seconds
2485
+ * @description 到最近一次收到运行数据时,任务已经运行了多少秒;没有时为空。这不是实时计时。
2486
+ */
2487
+ observed_elapsed_seconds?: number | null;
2488
+ /** @description 最近的输入或输出传输进度;没有时为空。 */
2489
+ transfer?: components["schemas"]["SafeTransferProgress"] | null;
2490
+ /** @description 预处理情况:有没有数据,以及可用训练数据的质量档位。 */
2491
+ preprocess: components["schemas"]["TaskPreprocessProgress"];
2492
+ /**
2493
+ * Milestones
2494
+ * @description 七个阶段各自的时间和状态,还没到的阶段也会列出。
2495
+ */
2496
+ milestones: components["schemas"]["TaskMilestoneTiming"][];
2497
+ /** @description status 为 queued/dispatching 时返回当前等待原因,其余状态为 null。 */
2498
+ waiting?: components["schemas"]["TaskProgressWaiting"] | null;
2499
+ };
2500
+ /**
2501
+ * TaskProgressWaiting
2502
+ * @description Worker 开始前的等待原因;不含厂商、区域、规格、Attempt、节点或 OSS 信息。
2503
+ */
2504
+ TaskProgressWaiting: {
2505
+ /**
2506
+ * Reason
2507
+ * @description 当前等待原因;封闭枚举。
2508
+ * @enum {string}
2509
+ */
2510
+ reason: "queued" | "preprocessing_input" | "waiting_capacity" | "provisioning" | "preparing_environment" | "downloading_input";
2511
+ /**
2512
+ * Summary
2513
+ * @description 服务端注册表控制的中文说明,可直接展示。
2514
+ */
2515
+ summary: string;
2516
+ /**
2517
+ * Capacity Tight
2518
+ * @description 当前 Task 的全部候选都在冷却或等待时为 true;客户端可提示算力紧张。
2519
+ */
2520
+ capacity_tight: boolean;
2521
+ };
2522
+ /**
2523
+ * TaskStatus
2524
+ * @enum {string}
2525
+ */
2526
+ TaskStatus: "queued" | "dispatching" | "running" | "passed" | "failed" | "cancel_requested" | "cancelled";
2527
+ /** TaskSummaryOut */
2528
+ TaskSummaryOut: {
2529
+ /**
2530
+ * Status
2531
+ * @description Worker summary 中的任务状态。
2532
+ */
2533
+ status?: string | null;
2534
+ /**
2535
+ * Duration Seconds
2536
+ * @description Worker 上报的任务执行时长,单位秒。
2537
+ */
2538
+ duration_seconds?: number | null;
2539
+ };
2540
+ /** WebhookConfigurationIn */
2541
+ WebhookConfigurationIn: {
2542
+ /**
2543
+ * Url
2544
+ * @description 接收通知的回调地址,HTTP 或 HTTPS,最长 2048 个字符;地址要能通过平台的安全检查。
2545
+ */
2546
+ url: string;
2547
+ };
2548
+ /** WebhookConfigurationOut */
2549
+ WebhookConfigurationOut: {
2550
+ /**
2551
+ * Id
2552
+ * Format: uuid
2553
+ * @description 资源的 UUID 唯一标识。
2554
+ */
2555
+ id: string;
2556
+ /**
2557
+ * Url
2558
+ * Format: pointcosm-secret
2559
+ * @description 当前配置的回调地址。
2560
+ */
2561
+ url: Secret;
2562
+ /**
2563
+ * Enabled
2564
+ * @description 资源是否启用。
2565
+ */
2566
+ enabled: boolean;
2567
+ /**
2568
+ * Config Version
2569
+ * @description 配置版本号,从 1 开始;改地址、启用或停用、轮换密钥时都会加 1。
2570
+ */
2571
+ config_version: number;
2572
+ /**
2573
+ * Current Secret Version
2574
+ * @description 当前签名密钥的版本号(不是密钥本身)。
2575
+ */
2576
+ current_secret_version: number;
2577
+ /**
2578
+ * Created At
2579
+ * Format: date-time
2580
+ * @description 资源创建时间。
2581
+ */
2582
+ created_at: string;
2583
+ /**
2584
+ * Updated At
2585
+ * Format: date-time
2586
+ * @description 资源最后更新时间。
2587
+ */
2588
+ updated_at: string;
2589
+ /**
2590
+ * Disabled At
2591
+ * @description 停用的时间;启用中为空。
2592
+ */
2593
+ disabled_at?: string | null;
2594
+ };
2595
+ /** WebhookMutationOut */
2596
+ WebhookMutationOut: {
2597
+ /** @description 保存后的 Webhook 配置。 */
2598
+ configuration: components["schemas"]["WebhookConfigurationOut"];
2599
+ /**
2600
+ * Secret
2601
+ * @description 签名密钥,只在第一次配置时返回,请保存好;之后更新时为空。
2602
+ */
2603
+ secret?: Secret | null;
2604
+ /**
2605
+ * Secret Version
2606
+ * @description 这次返回的密钥版本;这次没有生成密钥时为空。
2607
+ */
2608
+ secret_version?: number | null;
2609
+ };
2610
+ /** WebhookSecretRotationOut */
2611
+ WebhookSecretRotationOut: {
2612
+ /** @description 轮换后的 Webhook 配置。 */
2613
+ configuration: components["schemas"]["WebhookConfigurationOut"];
2614
+ /**
2615
+ * Secret
2616
+ * Format: pointcosm-secret
2617
+ * @description 新的签名密钥,用来校验收到的通知;请保存好,之后查不到。
2618
+ */
2619
+ secret: Secret;
2620
+ /**
2621
+ * Secret Version
2622
+ * @description 新密钥的版本号。
2623
+ */
2624
+ secret_version: number;
2625
+ };
2626
+ };
2627
+ responses: never;
2628
+ parameters: never;
2629
+ requestBodies: never;
2630
+ headers: never;
2631
+ pathItems: never;
2632
+ }
2633
+
2634
+ type AdmissionReasonOut = components["schemas"]["AdmissionReasonOut"];
2635
+ type ArtifactDownloadOut = components["schemas"]["ArtifactDownloadOut"];
2636
+ type ArtifactListOut = components["schemas"]["ArtifactListOut"];
2637
+ type ArtifactOut = components["schemas"]["ArtifactOut"];
2638
+ type AssetAdmissionOut = components["schemas"]["AssetAdmissionOut"];
2639
+ type AssetCreateIn = components["schemas"]["AssetCreateIn"];
2640
+ type AssetCreateOut = components["schemas"]["AssetCreateOut"];
2641
+ type AssetDetailOut = components["schemas"]["AssetDetailOut"];
2642
+ type AssetFileListOut = components["schemas"]["AssetFileListOut"];
2643
+ type AssetFileOut = components["schemas"]["AssetFileOut"];
2644
+ type AssetListOut = components["schemas"]["AssetListOut"];
2645
+ type AssetOut = components["schemas"]["AssetOut"];
2646
+ type AssetSourceType = components["schemas"]["AssetSourceType"];
2647
+ type AssetUploadFlowOut = components["schemas"]["AssetUploadFlowOut"];
2648
+ type CustomerFailureCode = components["schemas"]["CustomerFailureCode"];
2649
+ type CustomerFinalizationData = components["schemas"]["CustomerFinalizationData"];
2650
+ type DiscountMoney = components["schemas"]["DiscountMoney"];
2651
+ type GreenPointCustomerLedgerEntryOut = components["schemas"]["GreenPointCustomerLedgerEntryOut"];
2652
+ type GreenPointCustomerLedgerPage = components["schemas"]["GreenPointCustomerLedgerPage"];
2653
+ type GreenPointFulfillmentParameters = components["schemas"]["GreenPointFulfillmentParameters"];
2654
+ type InputComposition = components["schemas"]["InputComposition"];
2655
+ type InputLimitsOut = components["schemas"]["InputLimitsOut"];
2656
+ type JsonValue = components["schemas"]["JsonValue"];
2657
+ type Money = components["schemas"]["Money"];
2658
+ type OutputFilesView = components["schemas"]["OutputFilesView"];
2659
+ type PaymentOrderListData = components["schemas"]["PaymentOrderListData"];
2660
+ type PaymentOrderListItem = components["schemas"]["PaymentOrderListItem"];
2661
+ type ProductFulfillmentProjection = components["schemas"]["ProductFulfillmentProjection"];
2662
+ type ProductGreenPointPriceOut = components["schemas"]["ProductGreenPointPriceOut"];
2663
+ type ProductInputLimitOut = components["schemas"]["ProductInputLimitOut"];
2664
+ type ProductUploadInputLimit = components["schemas"]["ProductUploadInputLimit"];
2665
+ type PromotionCodeAdjustment = components["schemas"]["PromotionCodeAdjustment"];
2666
+ type PublicGreenPointAccountOut = components["schemas"]["PublicGreenPointAccountOut"];
2667
+ type PublicProductListOut = components["schemas"]["PublicProductListOut"];
2668
+ type PublicProductOut = components["schemas"]["PublicProductOut"];
2669
+ type SafeTransferProgress = components["schemas"]["SafeTransferProgress"];
2670
+ type StorageCredentialsOut = components["schemas"]["StorageCredentialsOut"];
2671
+ type StreamConfigOut = components["schemas"]["StreamConfigOut"];
2672
+ type StreamGuestLinkIn = components["schemas"]["StreamGuestLinkIn"];
2673
+ type StreamGuestLinkOut = components["schemas"]["StreamGuestLinkOut"];
2674
+ type StreamLinkOut = components["schemas"]["StreamLinkOut"];
2675
+ type StreamMemberOut = components["schemas"]["StreamMemberOut"];
2676
+ type StreamMembersOut = components["schemas"]["StreamMembersOut"];
2677
+ type StreamModelOut = components["schemas"]["StreamModelOut"];
2678
+ type StreamModelPage = components["schemas"]["StreamModelPage"];
2679
+ type StreamModelRegisterIn = components["schemas"]["StreamModelRegisterIn"];
2680
+ type StreamSessionCreateIn = components["schemas"]["StreamSessionCreateIn"];
2681
+ type StreamSessionOut = components["schemas"]["StreamSessionOut"];
2682
+ type StreamSessionPage = components["schemas"]["StreamSessionPage"];
2683
+ type SubscriptionUpgradeAdjustment = components["schemas"]["SubscriptionUpgradeAdjustment"];
2684
+ type SystemLogsView = components["schemas"]["SystemLogsView"];
2685
+ type TaskAssetProjection = components["schemas"]["TaskAssetProjection"];
2686
+ type TaskCancelOut = components["schemas"]["TaskCancelOut"];
2687
+ type TaskCreateIn = components["schemas"]["TaskCreateIn"];
2688
+ type TaskDetailOut = components["schemas"]["TaskDetailOut"];
2689
+ type TaskFailureOut = components["schemas"]["TaskFailureOut"];
2690
+ type TaskGreenPointChargeComponentOut = components["schemas"]["TaskGreenPointChargeComponentOut"];
2691
+ type TaskGreenPointChargeOut = components["schemas"]["TaskGreenPointChargeOut"];
2692
+ type TaskListItem = components["schemas"]["TaskListItem"];
2693
+ type TaskListOut = components["schemas"]["TaskListOut"];
2694
+ type TaskMilestoneTiming = components["schemas"]["TaskMilestoneTiming"];
2695
+ type TaskOut = components["schemas"]["TaskOut"];
2696
+ type TaskPreprocessProgress = components["schemas"]["TaskPreprocessProgress"];
2697
+ type TaskProductProjection = components["schemas"]["TaskProductProjection"];
2698
+ type TaskProgress = components["schemas"]["TaskProgress"];
2699
+ type TaskProgressWaiting = components["schemas"]["TaskProgressWaiting"];
2700
+ type TaskStatus = components["schemas"]["TaskStatus"];
2701
+ type TaskSummaryOut = components["schemas"]["TaskSummaryOut"];
2702
+ type WebhookConfigurationIn = components["schemas"]["WebhookConfigurationIn"];
2703
+ type WebhookConfigurationOut = components["schemas"]["WebhookConfigurationOut"];
2704
+ type WebhookMutationOut = components["schemas"]["WebhookMutationOut"];
2705
+ type WebhookSecretRotationOut = components["schemas"]["WebhookSecretRotationOut"];
2706
+
2707
+ declare const CONTRACT: {
2708
+ readonly revision: "5c16aa762ae0ada16aaaa021390ee1af0d6bd710";
2709
+ readonly bundleRelease: "0.14.0";
2710
+ readonly bundleSha256: "45937ba6295d8c6efd57af85ae6230fd7dbd124dac724c0e26a32c4d168c5bcc";
2711
+ readonly customerSha256: "5db91d0b1a7ac4dc6eafe2df6b79fba31607bc54e108221987ea3bc0c3c66c4c";
2712
+ readonly authSha256: "ff17917c6ccab2fcf1cb6c2ee0392c2efea6dfca567d084a6434836c36c489cf";
2713
+ readonly operationCount: 37;
2714
+ readonly generator: "openapi-typescript 7.13.0";
2715
+ };
2716
+ type OperationId = "billing_green_point_purchase_orders_list" | "billing_green_points_account_retrieve" | "billing_green_points_ledger_list" | "storage_assets_admission_check" | "storage_assets_complete_upload" | "storage_assets_create" | "storage_assets_create_credentials" | "storage_assets_delete" | "storage_assets_files_list" | "storage_assets_list" | "storage_assets_retrieve" | "stream_config_get" | "stream_models_list" | "stream_models_register" | "stream_models_revoke" | "stream_sessions_create" | "stream_sessions_get" | "stream_sessions_guest_link" | "stream_sessions_host_link" | "stream_sessions_list" | "stream_sessions_member_remove" | "stream_sessions_members" | "stream_sessions_stop" | "train_artifacts_create_download_url" | "train_artifacts_list" | "train_products_list" | "train_products_retrieve" | "train_tasks_cancel" | "train_tasks_create" | "train_tasks_delete" | "train_tasks_finalization_get" | "train_tasks_list" | "train_tasks_retrieve" | "webhooks_configuration_disable" | "webhooks_configuration_retrieve" | "webhooks_configuration_update" | "webhooks_secret_rotate";
2717
+
2718
+ interface ClientCredentials {
2719
+ authBaseUrl: string;
2720
+ clientId: string;
2721
+ clientSecret: string;
2722
+ resource: string;
2723
+ }
2724
+ /** Lazy, in-memory client-credentials token cache with single-flight refresh. */
2725
+ declare class TokenProvider {
2726
+ #private;
2727
+ constructor(credentials: ClientCredentials, fetchImpl: typeof fetch, timeoutMs: number, now?: () => number);
2728
+ get(): Promise<string>;
2729
+ clear(): void;
2730
+ }
2731
+
2732
+ interface RetryPolicy {
2733
+ /** Total attempts including the first one. 1 disables retries. */
2734
+ maxAttempts: number;
2735
+ baseDelayMs: number;
2736
+ maxDelayMs: number;
2737
+ maxElapsedMs: number;
2738
+ }
2739
+ interface TransportOptions {
2740
+ baseUrl: string;
2741
+ token: string | TokenProvider;
2742
+ fetch: typeof fetch;
2743
+ timeoutMs: number;
2744
+ retry: RetryPolicy;
2745
+ acceptLanguage: string | undefined;
2746
+ }
2747
+ interface CallOptions {
2748
+ path?: Record<string, string>;
2749
+ query?: Record<string, string | number | null | undefined>;
2750
+ headers?: Record<string, string | undefined>;
2751
+ body?: unknown;
2752
+ }
2753
+ declare class Transport {
2754
+ #private;
2755
+ constructor(options: TransportOptions);
2756
+ close(): void;
2757
+ call<T>(operationId: OperationId, options?: CallOptions): Promise<T>;
2758
+ }
2759
+
2760
+ type AcceptLanguage = "zh-Hans" | "zh-Hant" | "en-US";
2761
+ interface ClientOptions {
2762
+ /** Customer API origin, for example `https://api.pointcosm.cn`. There is no default. */
2763
+ baseUrl: string;
2764
+ /** Per-attempt timeout in milliseconds. Default 30000. */
2765
+ timeoutMs?: number;
2766
+ /** Retries are off by default and only ever apply to operations the contract marks safe. */
2767
+ retry?: Partial<RetryPolicy>;
2768
+ /** Sent as `Accept-Language` on every request when set. */
2769
+ acceptLanguage?: AcceptLanguage;
2770
+ /** Custom fetch. It can observe tokens and payloads, so it is inside your security boundary. */
2771
+ fetch?: typeof fetch;
2772
+ }
2773
+ interface PointcosmOptions extends ClientOptions {
2774
+ accessToken: string;
2775
+ }
2776
+ interface ClientCredentialsOptions extends ClientOptions {
2777
+ /** Auth service origin. There is no default. */
2778
+ authBaseUrl: string;
2779
+ clientId: string;
2780
+ clientSecret: string;
2781
+ resource: string;
2782
+ }
2783
+ interface PageParams {
2784
+ offset?: number;
2785
+ limit?: number;
2786
+ }
2787
+ /** Products, training tasks and their output files. */
2788
+ declare class TrainApi {
2789
+ #private;
2790
+ constructor(t: Transport);
2791
+ listProducts(params?: PageParams): Promise<PublicProductListOut>;
2792
+ getProduct(productId: string): Promise<PublicProductOut>;
2793
+ createTask(request: TaskCreateIn): Promise<TaskOut>;
2794
+ listTasks(params?: PageParams & {
2795
+ status?: TaskStatus[];
2796
+ }): Promise<TaskListOut>;
2797
+ getTask(taskId: string): Promise<TaskDetailOut>;
2798
+ getTaskFinalization(taskId: string): Promise<CustomerFinalizationData>;
2799
+ /** Cancel a task that has not started training. Never retried automatically. */
2800
+ cancelTask(taskId: string): Promise<TaskCancelOut>;
2801
+ deleteTask(taskId: string): Promise<void>;
2802
+ listArtifacts(taskId: string, params?: PageParams): Promise<ArtifactListOut>;
2803
+ createArtifactDownloadUrl(taskId: string, artifactId: string): Promise<ArtifactDownloadOut>;
2804
+ }
2805
+ /** Input assets. Creation is direct-upload only. */
2806
+ declare class StorageApi {
2807
+ #private;
2808
+ constructor(t: Transport);
2809
+ createAsset(request: AssetCreateIn): Promise<AssetCreateOut>;
2810
+ listAssets(params?: PageParams & {
2811
+ status?: AssetOut["status"];
2812
+ }): Promise<AssetListOut>;
2813
+ createAssetCredentials(assetId: string): Promise<StorageCredentialsOut>;
2814
+ completeAssetUpload(assetId: string): Promise<AssetCreateOut>;
2815
+ getAsset(assetId: string): Promise<AssetDetailOut>;
2816
+ listAssetFiles(assetId: string, params?: PageParams): Promise<AssetFileListOut>;
2817
+ /** `admissible: false` is a normal return value, not an error. */
2818
+ checkAssetAdmission(assetId: string, productId: string): Promise<AssetAdmissionOut>;
2819
+ deleteAsset(assetId: string): Promise<void>;
2820
+ }
2821
+ /** Webhook configuration and signing-secret rotation. */
2822
+ declare class WebhooksApi {
2823
+ #private;
2824
+ constructor(t: Transport);
2825
+ getConfiguration(): Promise<WebhookConfigurationOut>;
2826
+ updateConfiguration(request: WebhookConfigurationIn): Promise<WebhookMutationOut>;
2827
+ disableConfiguration(): Promise<WebhookConfigurationOut>;
2828
+ rotateSecret(): Promise<WebhookSecretRotationOut>;
2829
+ }
2830
+ /** Green-point account, ledger and purchase orders (read-only). */
2831
+ declare class BillingApi {
2832
+ #private;
2833
+ constructor(t: Transport);
2834
+ getGreenPointAccount(): Promise<PublicGreenPointAccountOut>;
2835
+ listGreenPointLedger(params?: PageParams): Promise<GreenPointCustomerLedgerPage>;
2836
+ listGreenPointPurchaseOrders(params?: {
2837
+ limit?: number;
2838
+ cursor?: string;
2839
+ }): Promise<PaymentOrderListData>;
2840
+ }
2841
+ /**
2842
+ * LiveCosm scenes and rooms.
2843
+ * @experimental Preview: may change in a minor release.
2844
+ */
2845
+ declare class LiveCosmApi {
2846
+ #private;
2847
+ constructor(t: Transport);
2848
+ getConfig(): Promise<StreamConfigOut>;
2849
+ listScenes(params?: PageParams): Promise<StreamModelPage>;
2850
+ /**
2851
+ * Register a training output as a scene. Take `asset_id` and `key` from an artifact whose
2852
+ * `stream_registerable` is true, and `source` from the artifact list's `pipeline_code`.
2853
+ */
2854
+ registerScene(request: StreamModelRegisterIn): Promise<StreamModelOut>;
2855
+ revokeScene(sceneId: string): Promise<void>;
2856
+ /**
2857
+ * Buy and create a room. Spends green points and is never retried automatically. Pass the
2858
+ * same `idempotencyKey` (16-128 characters of `[A-Za-z0-9_-]`) to repeat it without a
2859
+ * second charge.
2860
+ */
2861
+ createRoom(request: StreamSessionCreateIn, options?: {
2862
+ idempotencyKey?: string;
2863
+ }): Promise<StreamSessionOut>;
2864
+ listRooms(params?: PageParams & {
2865
+ status?: StreamSessionOut["status"];
2866
+ }): Promise<StreamSessionPage>;
2867
+ getRoom(roomId: string): Promise<StreamSessionOut>;
2868
+ stopRoom(roomId: string): Promise<StreamSessionOut>;
2869
+ /** Set a new guest password; the previous one stops working. The password is returned once. */
2870
+ createGuestLink(roomId: string, request?: StreamGuestLinkIn): Promise<StreamGuestLinkOut>;
2871
+ /** The host link is returned only once. */
2872
+ createHostLink(roomId: string): Promise<StreamLinkOut>;
2873
+ listMembers(roomId: string): Promise<StreamMembersOut>;
2874
+ removeMember(roomId: string, memberId: string): Promise<void>;
2875
+ }
2876
+ /** PointCosm customer API client. */
2877
+ declare class Pointcosm {
2878
+ #private;
2879
+ readonly train: TrainApi;
2880
+ readonly storage: StorageApi;
2881
+ readonly webhooks: WebhooksApi;
2882
+ readonly billing: BillingApi;
2883
+ /** @experimental Preview: may change in a minor release. */
2884
+ readonly livecosm: LiveCosmApi;
2885
+ constructor(options: PointcosmOptions);
2886
+ /**
2887
+ * Server-side only: exchange a client secret for short-lived tokens, cached in memory.
2888
+ * Throws in browsers, where a client secret must never be present.
2889
+ */
2890
+ static fromClientCredentials(options: ClientCredentialsOptions): Pointcosm;
2891
+ /** Drop cached tokens and reject further calls. */
2892
+ close(): void;
2893
+ }
2894
+
2895
+ /** End-user message in the response locale. It never replaces the English `message`. */
2896
+ interface LocalizedMessage {
2897
+ readonly locale: string;
2898
+ readonly message: string;
2899
+ }
2900
+ /** Base class of every error thrown by the SDK. */
2901
+ declare class PointcosmError extends Error {
2902
+ name: string;
2903
+ }
2904
+ interface ApiErrorInit {
2905
+ statusCode: number;
2906
+ code: unknown;
2907
+ message: unknown;
2908
+ details: unknown;
2909
+ requestId: string | null;
2910
+ operationId: string;
2911
+ localizedMessage?: unknown;
2912
+ }
2913
+ /** A caller-safe API failure. It never carries raw bodies, headers or URLs. */
2914
+ declare class PointcosmApiError extends PointcosmError {
2915
+ name: string;
2916
+ readonly statusCode: number;
2917
+ readonly code: string;
2918
+ readonly details: Readonly<Record<string, unknown>> | null;
2919
+ readonly requestId: string | null;
2920
+ readonly operationId: string;
2921
+ readonly localizedMessage: LocalizedMessage | null;
2922
+ constructor(init: ApiErrorInit);
2923
+ }
2924
+ /** HTTP 401 or rejected Auth credentials. */
2925
+ declare class PointcosmAuthenticationError extends PointcosmApiError {
2926
+ name: string;
2927
+ }
2928
+ /** HTTP 403. */
2929
+ declare class PointcosmAuthorizationError extends PointcosmApiError {
2930
+ name: string;
2931
+ }
2932
+ /** HTTP 422. */
2933
+ declare class PointcosmValidationError extends PointcosmApiError {
2934
+ name: string;
2935
+ }
2936
+ /** HTTP 429. */
2937
+ declare class PointcosmRateLimitError extends PointcosmApiError {
2938
+ name: string;
2939
+ }
2940
+ /** HTTP 5xx. */
2941
+ declare class PointcosmServerError extends PointcosmApiError {
2942
+ name: string;
2943
+ }
2944
+ /** The HTTP exchange failed before a response was available. */
2945
+ declare class PointcosmTransportError extends PointcosmError {
2946
+ name: string;
2947
+ readonly operationId: string;
2948
+ constructor(operationId: string, options?: ErrorOptions);
2949
+ }
2950
+ /** The HTTP exchange exceeded its timeout. */
2951
+ declare class PointcosmTimeoutError extends PointcosmTransportError {
2952
+ name: string;
2953
+ }
2954
+ /** The service response violated the reviewed SDK contract. */
2955
+ declare class PointcosmContractError extends PointcosmError {
2956
+ name: string;
2957
+ readonly reason: string;
2958
+ readonly operationId: string;
2959
+ readonly statusCode: number | null;
2960
+ readonly requestId: string | null;
2961
+ constructor(reason: string, operationId: string, statusCode?: number | null, requestId?: string | null);
2962
+ }
2963
+ /** The SDK configuration or lifecycle state is invalid. */
2964
+ declare class PointcosmConfigurationError extends PointcosmError {
2965
+ name: string;
2966
+ }
2967
+
2968
+ export { BillingApi, CONTRACT, LiveCosmApi, Pointcosm, PointcosmApiError, PointcosmAuthenticationError, PointcosmAuthorizationError, PointcosmConfigurationError, PointcosmContractError, PointcosmError, PointcosmRateLimitError, PointcosmServerError, PointcosmTimeoutError, PointcosmTransportError, PointcosmValidationError, Secret, StorageApi, TrainApi, WebhooksApi };
2969
+ export type { AcceptLanguage, AdmissionReasonOut, ArtifactDownloadOut, ArtifactListOut, ArtifactOut, AssetAdmissionOut, AssetCreateIn, AssetCreateOut, AssetDetailOut, AssetFileListOut, AssetFileOut, AssetListOut, AssetOut, AssetSourceType, AssetUploadFlowOut, ClientCredentialsOptions, ClientOptions, CustomerFailureCode, CustomerFinalizationData, DiscountMoney, GreenPointCustomerLedgerEntryOut, GreenPointCustomerLedgerPage, GreenPointFulfillmentParameters, InputComposition, InputLimitsOut, JsonValue, LocalizedMessage, Money, OutputFilesView, PageParams, PaymentOrderListData, PaymentOrderListItem, PointcosmOptions, ProductFulfillmentProjection, ProductGreenPointPriceOut, ProductInputLimitOut, ProductUploadInputLimit, PromotionCodeAdjustment, PublicGreenPointAccountOut, PublicProductListOut, PublicProductOut, RetryPolicy, SafeTransferProgress, StorageCredentialsOut, StreamConfigOut, StreamGuestLinkIn, StreamGuestLinkOut, StreamLinkOut, StreamMemberOut, StreamMembersOut, StreamModelOut, StreamModelPage, StreamModelRegisterIn, StreamSessionCreateIn, StreamSessionOut, StreamSessionPage, SubscriptionUpgradeAdjustment, SystemLogsView, TaskAssetProjection, TaskCancelOut, TaskCreateIn, TaskDetailOut, TaskFailureOut, TaskGreenPointChargeComponentOut, TaskGreenPointChargeOut, TaskListItem, TaskListOut, TaskMilestoneTiming, TaskOut, TaskPreprocessProgress, TaskProductProjection, TaskProgress, TaskProgressWaiting, TaskStatus, TaskSummaryOut, WebhookConfigurationIn, WebhookConfigurationOut, WebhookMutationOut, WebhookSecretRotationOut };