@deepraxis/sdk 0.1.1-dev.e47a392 → 0.1.1-dev.e5db771

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.
@@ -14146,7 +14146,7 @@ export type MediaLibrary = {
14146
14146
  };
14147
14147
  export type MediaMediaError = {
14148
14148
  error: {
14149
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
14149
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
14150
14150
  message: string;
14151
14151
  details: string | null;
14152
14152
  };
@@ -14454,6 +14454,27 @@ export type MediaAsset = {
14454
14454
  };
14455
14455
  };
14456
14456
  };
14457
+ /**
14458
+ * Source details for the video-generation job that created this asset.
14459
+ */
14460
+ generation?: {
14461
+ /**
14462
+ * Job id that generated this asset.
14463
+ */
14464
+ job_id: MediaJobId;
14465
+ /**
14466
+ * Generation intent used to create the asset; v1 supports video.generate.
14467
+ */
14468
+ intent: string;
14469
+ /**
14470
+ * Text prompt submitted for the generation job.
14471
+ */
14472
+ prompt: string;
14473
+ /**
14474
+ * Router video-generation model that produced the asset.
14475
+ */
14476
+ model: string;
14477
+ };
14457
14478
  };
14458
14479
  /**
14459
14480
  * Receipt confirming that the asset was deleted.
@@ -14596,11 +14617,11 @@ export type MediaJob = {
14596
14617
  /**
14597
14618
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14598
14619
  */
14599
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14620
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14600
14621
  /**
14601
14622
  * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
14602
14623
  */
14603
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14624
+ status: MediaJobStatus;
14604
14625
  /**
14605
14626
  * Number of distinct assets selected when the job was created.
14606
14627
  */
@@ -14620,12 +14641,66 @@ export type MediaJob = {
14620
14641
  /**
14621
14642
  * Identifier supplied for the failed item; it may identify a missing asset.
14622
14643
  */
14623
- asset_id: MediaAssetId;
14644
+ asset_id?: MediaAssetId;
14645
+ /**
14646
+ * Zero-based output index for a failed video-generation item.
14647
+ */
14648
+ index?: number;
14624
14649
  /**
14625
14650
  * Domain error code explaining the individual item failure.
14626
14651
  */
14627
14652
  code: MediaMediaErrorCode;
14628
14653
  }>;
14654
+ /**
14655
+ * Generation intent used by this job; v1 supports video.generate.
14656
+ */
14657
+ intent?: string;
14658
+ /**
14659
+ * Router video-generation model used for the outputs.
14660
+ */
14661
+ model?: string;
14662
+ /**
14663
+ * Per-video results in index order; save a successful candidate before expires_at.
14664
+ */
14665
+ outputs?: Array<{
14666
+ /**
14667
+ * Zero-based position of this video in the requested count.
14668
+ */
14669
+ index: number;
14670
+ /**
14671
+ * State of this requested video output.
14672
+ */
14673
+ status: MediaGenerationOutputStatus;
14674
+ /**
14675
+ * Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
14676
+ */
14677
+ preview_url?: string;
14678
+ /**
14679
+ * Router seed for this video, when returned; it may be absent.
14680
+ */
14681
+ seed?: number | null;
14682
+ /**
14683
+ * Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
14684
+ */
14685
+ expires_at?: MediaIsoTimestamp;
14686
+ /**
14687
+ * Library asset identifier after this candidate has been saved, or when the job requested save=library.
14688
+ */
14689
+ asset_id?: MediaAssetId;
14690
+ }>;
14691
+ /**
14692
+ * Router-reported generation charge for the job.
14693
+ */
14694
+ usage?: {
14695
+ /**
14696
+ * Decimal amount in the currency named by currency; this is not a floating-point value.
14697
+ */
14698
+ amount: string;
14699
+ /**
14700
+ * Currency code for amount.
14701
+ */
14702
+ currency: string;
14703
+ };
14629
14704
  /**
14630
14705
  * Time the batch job was created, in UTC.
14631
14706
  */
@@ -14740,6 +14815,77 @@ export type MediaFailureSummary = {
14740
14815
  */
14741
14816
  counts_complete: boolean;
14742
14817
  };
14818
+ /**
14819
+ * Current state of a batch or video-generation job.
14820
+ */
14821
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14822
+ /**
14823
+ * Identifier returned when a batch job is created.
14824
+ */
14825
+ export type MediaJobId = string;
14826
+ /**
14827
+ * A page of jobs in a library.
14828
+ */
14829
+ export type MediaJobPage = {
14830
+ /**
14831
+ * Jobs returned in this page.
14832
+ */
14833
+ data: Array<MediaJob>;
14834
+ /**
14835
+ * Cursor for the next page, or null when there are no more jobs.
14836
+ */
14837
+ next_cursor: MediaJobId | null;
14838
+ };
14839
+ /**
14840
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14841
+ */
14842
+ export type MediaGenerationCapabilities = {
14843
+ /**
14844
+ * Text-to-video intents currently supported by Media.
14845
+ */
14846
+ intents: Array<string>;
14847
+ /**
14848
+ * Model selected when model is omitted from a generation request.
14849
+ */
14850
+ default_model: string;
14851
+ /**
14852
+ * Allowed number of videos per generation job.
14853
+ */
14854
+ count: {
14855
+ /**
14856
+ * Minimum number of videos in one generation job.
14857
+ */
14858
+ minimum: number;
14859
+ /**
14860
+ * Maximum number of videos in one generation job.
14861
+ */
14862
+ maximum: number;
14863
+ };
14864
+ /**
14865
+ * Durations in seconds supported by the default video model.
14866
+ */
14867
+ duration_seconds: Array<number>;
14868
+ /**
14869
+ * Aspect ratios supported by the default video model.
14870
+ */
14871
+ aspect_ratios: Array<string>;
14872
+ /**
14873
+ * Aspect ratio used when aspect_ratio is omitted.
14874
+ */
14875
+ default_aspect_ratio: string;
14876
+ /**
14877
+ * Maximum number of queued or running generation jobs per library.
14878
+ */
14879
+ concurrency_per_library: number;
14880
+ /**
14881
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14882
+ */
14883
+ price_unit: 'per second';
14884
+ /**
14885
+ * Days an unsaved candidate is retained before its File is deleted.
14886
+ */
14887
+ candidate_retention_days: number;
14888
+ };
14743
14889
  /**
14744
14890
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14745
14891
  */
@@ -26248,6 +26394,27 @@ export type MediaSearchAsset = {
26248
26394
  };
26249
26395
  };
26250
26396
  };
26397
+ /**
26398
+ * Source details for the video-generation job that created this asset.
26399
+ */
26400
+ generation?: {
26401
+ /**
26402
+ * Job id that generated this asset.
26403
+ */
26404
+ job_id: MediaJobId;
26405
+ /**
26406
+ * Generation intent used to create the asset; v1 supports video.generate.
26407
+ */
26408
+ intent: string;
26409
+ /**
26410
+ * Text prompt submitted for the generation job.
26411
+ */
26412
+ prompt: string;
26413
+ /**
26414
+ * Router video-generation model that produced the asset.
26415
+ */
26416
+ model: string;
26417
+ };
26251
26418
  };
26252
26419
  /**
26253
26420
  * A matching asset with its ranking score and supporting matches.
@@ -26270,11 +26437,11 @@ export type MediaSemanticHit = {
26270
26437
  */
26271
26438
  matches: Array<MediaSemanticMatch>;
26272
26439
  };
26440
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
26273
26441
  /**
26274
- * Identifier returned when a batch job is created.
26442
+ * State of a requested video output.
26275
26443
  */
26276
- export type MediaJobId = string;
26277
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
26444
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26278
26445
  /**
26279
26446
  * A recorded library event with a monotonically increasing sequence within that library.
26280
26447
  */
@@ -30925,7 +31092,7 @@ export type MediaSemanticMatch = {
30925
31092
  /**
30926
31093
  * Type of change recorded for a library, asset, processing task, search index or batch.
30927
31094
  */
30928
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created';
31095
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
30929
31096
  /**
30930
31097
  * Auto-resume enabled flag for paused sandboxes. Default false.
30931
31098
  */
@@ -32866,6 +33033,27 @@ export type MediaAssetWritable = {
32866
33033
  };
32867
33034
  };
32868
33035
  };
33036
+ /**
33037
+ * Source details for the video-generation job that created this asset.
33038
+ */
33039
+ generation?: {
33040
+ /**
33041
+ * Job id that generated this asset.
33042
+ */
33043
+ job_id: MediaJobId;
33044
+ /**
33045
+ * Generation intent used to create the asset; v1 supports video.generate.
33046
+ */
33047
+ intent: string;
33048
+ /**
33049
+ * Text prompt submitted for the generation job.
33050
+ */
33051
+ prompt: string;
33052
+ /**
33053
+ * Router video-generation model that produced the asset.
33054
+ */
33055
+ model: string;
33056
+ };
32869
33057
  };
32870
33058
  /**
32871
33059
  * Understanding results in this page, ordered by creation time ascending.
@@ -33467,6 +33655,27 @@ export type MediaSearchAssetWritable = {
33467
33655
  };
33468
33656
  };
33469
33657
  };
33658
+ /**
33659
+ * Source details for the video-generation job that created this asset.
33660
+ */
33661
+ generation?: {
33662
+ /**
33663
+ * Job id that generated this asset.
33664
+ */
33665
+ job_id: MediaJobId;
33666
+ /**
33667
+ * Generation intent used to create the asset; v1 supports video.generate.
33668
+ */
33669
+ intent: string;
33670
+ /**
33671
+ * Text prompt submitted for the generation job.
33672
+ */
33673
+ prompt: string;
33674
+ /**
33675
+ * Router video-generation model that produced the asset.
33676
+ */
33677
+ model: string;
33678
+ };
33470
33679
  };
33471
33680
  /**
33472
33681
  * A matching asset with its ranking score and supporting matches.
@@ -72779,6 +72988,10 @@ export type MediaListLibrariesErrors = {
72779
72988
  * Request failed; see the error code reference.
72780
72989
  */
72781
72990
  415: MediaMediaError;
72991
+ /**
72992
+ * Request failed; see the error code reference.
72993
+ */
72994
+ 422: MediaMediaError;
72782
72995
  /**
72783
72996
  * Request failed; see the error code reference.
72784
72997
  */
@@ -72870,6 +73083,10 @@ export type MediaCreateLibraryErrors = {
72870
73083
  * Request failed; see the error code reference.
72871
73084
  */
72872
73085
  415: MediaMediaError;
73086
+ /**
73087
+ * Request failed; see the error code reference.
73088
+ */
73089
+ 422: MediaMediaError;
72873
73090
  /**
72874
73091
  * Request failed; see the error code reference.
72875
73092
  */
@@ -72944,6 +73161,10 @@ export type MediaCreateFrameUrlsErrors = {
72944
73161
  * This media format is unsupported; provide a supported format.
72945
73162
  */
72946
73163
  415: MediaMediaError;
73164
+ /**
73165
+ * Request failed; see the error code reference.
73166
+ */
73167
+ 422: MediaMediaError;
72947
73168
  /**
72948
73169
  * A rate limit was reached; wait before retrying.
72949
73170
  */
@@ -73005,6 +73226,10 @@ export type MediaDeleteLibraryErrors = {
73005
73226
  * Request failed; see the error code reference.
73006
73227
  */
73007
73228
  415: MediaMediaError;
73229
+ /**
73230
+ * Request failed; see the error code reference.
73231
+ */
73232
+ 422: MediaMediaError;
73008
73233
  /**
73009
73234
  * Request failed; see the error code reference.
73010
73235
  */
@@ -73066,6 +73291,10 @@ export type MediaGetLibraryErrors = {
73066
73291
  * Request failed; see the error code reference.
73067
73292
  */
73068
73293
  415: MediaMediaError;
73294
+ /**
73295
+ * Request failed; see the error code reference.
73296
+ */
73297
+ 422: MediaMediaError;
73069
73298
  /**
73070
73299
  * Request failed; see the error code reference.
73071
73300
  */
@@ -73166,6 +73395,10 @@ export type MediaUpdateLibraryErrors = {
73166
73395
  * Request failed; see the error code reference.
73167
73396
  */
73168
73397
  415: MediaMediaError;
73398
+ /**
73399
+ * Request failed; see the error code reference.
73400
+ */
73401
+ 422: MediaMediaError;
73169
73402
  /**
73170
73403
  * Request failed; see the error code reference.
73171
73404
  */
@@ -73227,6 +73460,10 @@ export type MediaRestoreLibraryErrors = {
73227
73460
  * Request failed; see the error code reference.
73228
73461
  */
73229
73462
  415: MediaMediaError;
73463
+ /**
73464
+ * Request failed; see the error code reference.
73465
+ */
73466
+ 422: MediaMediaError;
73230
73467
  /**
73231
73468
  * Request failed; see the error code reference.
73232
73469
  */
@@ -73288,6 +73525,10 @@ export type MediaPurgeLibraryErrors = {
73288
73525
  * Request failed; see the error code reference.
73289
73526
  */
73290
73527
  415: MediaMediaError;
73528
+ /**
73529
+ * Request failed; see the error code reference.
73530
+ */
73531
+ 422: MediaMediaError;
73291
73532
  /**
73292
73533
  * Request failed; see the error code reference.
73293
73534
  */
@@ -73366,6 +73607,10 @@ export type MediaListAssetsErrors = {
73366
73607
  * Request failed; see the error code reference.
73367
73608
  */
73368
73609
  415: MediaMediaError;
73610
+ /**
73611
+ * Request failed; see the error code reference.
73612
+ */
73613
+ 422: MediaMediaError;
73369
73614
  /**
73370
73615
  * Request failed; see the error code reference.
73371
73616
  */
@@ -73503,6 +73748,10 @@ export type MediaUploadAssetErrors = {
73503
73748
  * Request failed; see the error code reference.
73504
73749
  */
73505
73750
  415: MediaMediaError;
73751
+ /**
73752
+ * Request failed; see the error code reference.
73753
+ */
73754
+ 422: MediaMediaError;
73506
73755
  /**
73507
73756
  * Request failed; see the error code reference.
73508
73757
  */
@@ -73630,6 +73879,10 @@ export type MediaImportAssetErrors = {
73630
73879
  * Request failed; see the error code reference.
73631
73880
  */
73632
73881
  415: MediaMediaError;
73882
+ /**
73883
+ * Request failed; see the error code reference.
73884
+ */
73885
+ 422: MediaMediaError;
73633
73886
  /**
73634
73887
  * Request failed; see the error code reference.
73635
73888
  */
@@ -73695,6 +73948,10 @@ export type MediaDeleteAssetErrors = {
73695
73948
  * Request failed; see the error code reference.
73696
73949
  */
73697
73950
  415: MediaMediaError;
73951
+ /**
73952
+ * Request failed; see the error code reference.
73953
+ */
73954
+ 422: MediaMediaError;
73698
73955
  /**
73699
73956
  * Request failed; see the error code reference.
73700
73957
  */
@@ -73760,6 +74017,10 @@ export type MediaGetAssetErrors = {
73760
74017
  * Request failed; see the error code reference.
73761
74018
  */
73762
74019
  415: MediaMediaError;
74020
+ /**
74021
+ * Request failed; see the error code reference.
74022
+ */
74023
+ 422: MediaMediaError;
73763
74024
  /**
73764
74025
  * Request failed; see the error code reference.
73765
74026
  */
@@ -73847,6 +74108,10 @@ export type MediaUpdateAssetErrors = {
73847
74108
  * Request failed; see the error code reference.
73848
74109
  */
73849
74110
  415: MediaMediaError;
74111
+ /**
74112
+ * Request failed; see the error code reference.
74113
+ */
74114
+ 422: MediaMediaError;
73850
74115
  /**
73851
74116
  * Request failed; see the error code reference.
73852
74117
  */
@@ -73920,6 +74185,10 @@ export type MediaReprocessAssetErrors = {
73920
74185
  * Request failed; see the error code reference.
73921
74186
  */
73922
74187
  415: MediaMediaError;
74188
+ /**
74189
+ * Request failed; see the error code reference.
74190
+ */
74191
+ 422: MediaMediaError;
73923
74192
  /**
73924
74193
  * Request failed; see the error code reference.
73925
74194
  */
@@ -74002,6 +74271,10 @@ export type MediaListUnderstandingsErrors = {
74002
74271
  * Request failed; see the error code reference.
74003
74272
  */
74004
74273
  415: MediaMediaError;
74274
+ /**
74275
+ * Request failed; see the error code reference.
74276
+ */
74277
+ 422: MediaMediaError;
74005
74278
  /**
74006
74279
  * Request failed; see the error code reference.
74007
74280
  */
@@ -74093,6 +74366,10 @@ export type MediaExpressionSearchErrors = {
74093
74366
  * Request failed; see the error code reference.
74094
74367
  */
74095
74368
  415: MediaMediaError;
74369
+ /**
74370
+ * Request failed; see the error code reference.
74371
+ */
74372
+ 422: MediaMediaError;
74096
74373
  /**
74097
74374
  * Request failed; see the error code reference.
74098
74375
  */
@@ -74180,6 +74457,10 @@ export type MediaVisualSearchErrors = {
74180
74457
  * Request failed; see the error code reference.
74181
74458
  */
74182
74459
  415: MediaMediaError;
74460
+ /**
74461
+ * Request failed; see the error code reference.
74462
+ */
74463
+ 422: MediaMediaError;
74183
74464
  /**
74184
74465
  * Request failed; see the error code reference.
74185
74466
  */
@@ -74261,6 +74542,10 @@ export type MediaSemanticSearchErrors = {
74261
74542
  * Request failed; see the error code reference.
74262
74543
  */
74263
74544
  415: MediaMediaError;
74545
+ /**
74546
+ * Request failed; see the error code reference.
74547
+ */
74548
+ 422: MediaMediaError;
74264
74549
  /**
74265
74550
  * Request failed; see the error code reference.
74266
74551
  */
@@ -74342,6 +74627,10 @@ export type MediaSearchErrors = {
74342
74627
  * Request failed; see the error code reference.
74343
74628
  */
74344
74629
  415: MediaMediaError;
74630
+ /**
74631
+ * Request failed; see the error code reference.
74632
+ */
74633
+ 422: MediaMediaError;
74345
74634
  /**
74346
74635
  * Request failed; see the error code reference.
74347
74636
  */
@@ -74408,6 +74697,10 @@ export type MediaListFoldersErrors = {
74408
74697
  * Request failed; see the error code reference.
74409
74698
  */
74410
74699
  415: MediaMediaError;
74700
+ /**
74701
+ * Request failed; see the error code reference.
74702
+ */
74703
+ 422: MediaMediaError;
74411
74704
  /**
74412
74705
  * Request failed; see the error code reference.
74413
74706
  */
@@ -74481,6 +74774,10 @@ export type MediaCreateBatchErrors = {
74481
74774
  * Request failed; see the error code reference.
74482
74775
  */
74483
74776
  415: MediaMediaError;
74777
+ /**
74778
+ * Request failed; see the error code reference.
74779
+ */
74780
+ 422: MediaMediaError;
74484
74781
  /**
74485
74782
  * Request failed; see the error code reference.
74486
74783
  */
@@ -74546,6 +74843,10 @@ export type MediaGetBatchErrors = {
74546
74843
  * Request failed; see the error code reference.
74547
74844
  */
74548
74845
  415: MediaMediaError;
74846
+ /**
74847
+ * Request failed; see the error code reference.
74848
+ */
74849
+ 422: MediaMediaError;
74549
74850
  /**
74550
74851
  * Request failed; see the error code reference.
74551
74852
  */
@@ -74619,6 +74920,10 @@ export type MediaBatchAssetsErrors = {
74619
74920
  * Request failed; see the error code reference.
74620
74921
  */
74621
74922
  415: MediaMediaError;
74923
+ /**
74924
+ * Request failed; see the error code reference.
74925
+ */
74926
+ 422: MediaMediaError;
74622
74927
  /**
74623
74928
  * Request failed; see the error code reference.
74624
74929
  */
@@ -74652,7 +74957,7 @@ export type MediaGetJobData = {
74652
74957
  */
74653
74958
  library_id: string;
74654
74959
  /**
74655
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
74960
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
74656
74961
  */
74657
74962
  job_id: string;
74658
74963
  };
@@ -74660,6 +74965,88 @@ export type MediaGetJobData = {
74660
74965
  url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
74661
74966
  };
74662
74967
  export type MediaGetJobErrors = {
74968
+ /**
74969
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74970
+ */
74971
+ 400: MediaMediaError;
74972
+ /**
74973
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74974
+ */
74975
+ 403: MediaMediaError;
74976
+ /**
74977
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74978
+ */
74979
+ 404: MediaMediaError;
74980
+ /**
74981
+ * Request failed; see the error code reference.
74982
+ */
74983
+ 409: MediaMediaError;
74984
+ /**
74985
+ * The file exceeds an input limit; provide a smaller source file.
74986
+ */
74987
+ 413: MediaMediaError;
74988
+ /**
74989
+ * This media format is unsupported; provide a supported format.
74990
+ */
74991
+ 415: MediaMediaError;
74992
+ /**
74993
+ * Request failed; see the error code reference.
74994
+ */
74995
+ 422: MediaMediaError;
74996
+ /**
74997
+ * A rate limit was reached; wait before retrying.
74998
+ */
74999
+ 429: MediaMediaError;
75000
+ /**
75001
+ * The requested operation is unsupported; choose a supported method.
75002
+ */
75003
+ 501: MediaMediaError;
75004
+ /**
75005
+ * Request failed; see the error code reference.
75006
+ */
75007
+ 502: MediaMediaError;
75008
+ /**
75009
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75010
+ */
75011
+ 503: MediaMediaError;
75012
+ };
75013
+ export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
75014
+ export type MediaGetJobResponses = {
75015
+ /**
75016
+ * Successful response.
75017
+ */
75018
+ 200: MediaJob;
75019
+ };
75020
+ export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
75021
+ export type MediaListEventsData = {
75022
+ body?: never;
75023
+ path: {
75024
+ /**
75025
+ * Library ID returned by creation.
75026
+ */
75027
+ library_id: string;
75028
+ };
75029
+ query?: {
75030
+ /**
75031
+ * Events with a larger sequence. Use with asc; cannot combine with before_seq.
75032
+ */
75033
+ after_seq?: number;
75034
+ /**
75035
+ * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
75036
+ */
75037
+ before_seq?: number;
75038
+ /**
75039
+ * Sequence order: asc is increasing; desc is decreasing.
75040
+ */
75041
+ order?: 'asc' | 'desc';
75042
+ /**
75043
+ * Maximum items per page, from 1 to 200; defaults to 50.
75044
+ */
75045
+ limit?: number;
75046
+ };
75047
+ url: '/media/v1/libraries/{library_id}/events';
75048
+ };
75049
+ export type MediaListEventsErrors = {
74663
75050
  /**
74664
75051
  * Request failed; see the error code reference.
74665
75052
  */
@@ -74684,6 +75071,10 @@ export type MediaGetJobErrors = {
74684
75071
  * Request failed; see the error code reference.
74685
75072
  */
74686
75073
  415: MediaMediaError;
75074
+ /**
75075
+ * Request failed; see the error code reference.
75076
+ */
75077
+ 422: MediaMediaError;
74687
75078
  /**
74688
75079
  * Request failed; see the error code reference.
74689
75080
  */
@@ -74701,15 +75092,157 @@ export type MediaGetJobErrors = {
74701
75092
  */
74702
75093
  503: MediaMediaError;
74703
75094
  };
74704
- export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
74705
- export type MediaGetJobResponses = {
75095
+ export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
75096
+ export type MediaListEventsResponses = {
74706
75097
  /**
74707
75098
  * Successful response.
74708
75099
  */
74709
- 200: MediaJob;
75100
+ 200: MediaMediaEventPage;
74710
75101
  };
74711
- export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
74712
- export type MediaListEventsData = {
75102
+ export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
75103
+ export type MediaCreateDeliveryTokenData = {
75104
+ /**
75105
+ * Options for authorizing private asset delivery within one active library.
75106
+ */
75107
+ body: {
75108
+ /**
75109
+ * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
75110
+ */
75111
+ acl?: string;
75112
+ /**
75113
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
75114
+ */
75115
+ expires_in?: number;
75116
+ };
75117
+ path: {
75118
+ /**
75119
+ * Library ID returned by creation.
75120
+ */
75121
+ library_id: string;
75122
+ };
75123
+ query?: never;
75124
+ url: '/media/v1/libraries/{library_id}/delivery_tokens';
75125
+ };
75126
+ export type MediaCreateDeliveryTokenErrors = {
75127
+ /**
75128
+ * Request failed; see the error code reference.
75129
+ */
75130
+ 400: MediaMediaError;
75131
+ /**
75132
+ * Request failed; see the error code reference.
75133
+ */
75134
+ 403: MediaMediaError;
75135
+ /**
75136
+ * Request failed; see the error code reference.
75137
+ */
75138
+ 404: MediaMediaError;
75139
+ /**
75140
+ * Request failed; see the error code reference.
75141
+ */
75142
+ 409: MediaMediaError;
75143
+ /**
75144
+ * Request failed; see the error code reference.
75145
+ */
75146
+ 413: MediaMediaError;
75147
+ /**
75148
+ * Request failed; see the error code reference.
75149
+ */
75150
+ 415: MediaMediaError;
75151
+ /**
75152
+ * Request failed; see the error code reference.
75153
+ */
75154
+ 422: MediaMediaError;
75155
+ /**
75156
+ * Request failed; see the error code reference.
75157
+ */
75158
+ 429: MediaMediaError;
75159
+ /**
75160
+ * Request failed; see the error code reference.
75161
+ */
75162
+ 501: MediaMediaError;
75163
+ /**
75164
+ * Request failed; see the error code reference.
75165
+ */
75166
+ 502: MediaMediaError;
75167
+ /**
75168
+ * Request failed; see the error code reference.
75169
+ */
75170
+ 503: MediaMediaError;
75171
+ };
75172
+ export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
75173
+ export type MediaCreateDeliveryTokenResponses = {
75174
+ /**
75175
+ * Successful response.
75176
+ */
75177
+ 200: MediaDeliveryToken;
75178
+ };
75179
+ export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75180
+ export type MediaUnderstandingFailureSummaryData = {
75181
+ body?: never;
75182
+ path: {
75183
+ /**
75184
+ * Library ID returned by creation.
75185
+ */
75186
+ library_id: string;
75187
+ };
75188
+ query?: never;
75189
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
75190
+ };
75191
+ export type MediaUnderstandingFailureSummaryErrors = {
75192
+ /**
75193
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75194
+ */
75195
+ 400: MediaMediaError;
75196
+ /**
75197
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75198
+ */
75199
+ 403: MediaMediaError;
75200
+ /**
75201
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75202
+ */
75203
+ 404: MediaMediaError;
75204
+ /**
75205
+ * Request failed; see the error code reference.
75206
+ */
75207
+ 409: MediaMediaError;
75208
+ /**
75209
+ * The file exceeds an input limit; provide a smaller source file.
75210
+ */
75211
+ 413: MediaMediaError;
75212
+ /**
75213
+ * This media format is unsupported; provide a supported format.
75214
+ */
75215
+ 415: MediaMediaError;
75216
+ /**
75217
+ * Request failed; see the error code reference.
75218
+ */
75219
+ 422: MediaMediaError;
75220
+ /**
75221
+ * A rate limit was reached; wait before retrying.
75222
+ */
75223
+ 429: MediaMediaError;
75224
+ /**
75225
+ * The requested operation is unsupported; choose a supported method.
75226
+ */
75227
+ 501: MediaMediaError;
75228
+ /**
75229
+ * Request failed; see the error code reference.
75230
+ */
75231
+ 502: MediaMediaError;
75232
+ /**
75233
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75234
+ */
75235
+ 503: MediaMediaError;
75236
+ };
75237
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
75238
+ export type MediaUnderstandingFailureSummaryResponses = {
75239
+ /**
75240
+ * Successful response.
75241
+ */
75242
+ 200: MediaFailureSummary;
75243
+ };
75244
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
75245
+ export type MediaListUnderstandingsByLibraryData = {
74713
75246
  body?: never;
74714
75247
  path: {
74715
75248
  /**
@@ -74719,35 +75252,35 @@ export type MediaListEventsData = {
74719
75252
  };
74720
75253
  query?: {
74721
75254
  /**
74722
- * Events with a larger sequence. Use with asc; cannot combine with before_seq.
75255
+ * Folder path including all descendants; omitted or empty selects the entire library.
74723
75256
  */
74724
- after_seq?: number;
75257
+ folder?: string;
74725
75258
  /**
74726
- * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
75259
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
74727
75260
  */
74728
- before_seq?: number;
75261
+ kinds?: string;
74729
75262
  /**
74730
- * Sequence order: asc is increasing; desc is decreasing.
75263
+ * Cursor from the previous next_cursor.
74731
75264
  */
74732
- order?: 'asc' | 'desc';
75265
+ cursor?: string;
74733
75266
  /**
74734
- * Maximum items per page, from 1 to 200; defaults to 50.
75267
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
74735
75268
  */
74736
75269
  limit?: number;
74737
75270
  };
74738
- url: '/media/v1/libraries/{library_id}/events';
75271
+ url: '/media/v1/libraries/{library_id}/understandings';
74739
75272
  };
74740
- export type MediaListEventsErrors = {
75273
+ export type MediaListUnderstandingsByLibraryErrors = {
74741
75274
  /**
74742
- * Request failed; see the error code reference.
75275
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74743
75276
  */
74744
75277
  400: MediaMediaError;
74745
75278
  /**
74746
- * Request failed; see the error code reference.
75279
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74747
75280
  */
74748
75281
  403: MediaMediaError;
74749
75282
  /**
74750
- * Request failed; see the error code reference.
75283
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74751
75284
  */
74752
75285
  404: MediaMediaError;
74753
75286
  /**
@@ -74755,19 +75288,23 @@ export type MediaListEventsErrors = {
74755
75288
  */
74756
75289
  409: MediaMediaError;
74757
75290
  /**
74758
- * Request failed; see the error code reference.
75291
+ * The file exceeds an input limit; provide a smaller source file.
74759
75292
  */
74760
75293
  413: MediaMediaError;
74761
75294
  /**
74762
- * Request failed; see the error code reference.
75295
+ * This media format is unsupported; provide a supported format.
74763
75296
  */
74764
75297
  415: MediaMediaError;
74765
75298
  /**
74766
75299
  * Request failed; see the error code reference.
74767
75300
  */
75301
+ 422: MediaMediaError;
75302
+ /**
75303
+ * A rate limit was reached; wait before retrying.
75304
+ */
74768
75305
  429: MediaMediaError;
74769
75306
  /**
74770
- * Request failed; see the error code reference.
75307
+ * The requested operation is unsupported; choose a supported method.
74771
75308
  */
74772
75309
  501: MediaMediaError;
74773
75310
  /**
@@ -74775,31 +75312,73 @@ export type MediaListEventsErrors = {
74775
75312
  */
74776
75313
  502: MediaMediaError;
74777
75314
  /**
74778
- * Request failed; see the error code reference.
75315
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74779
75316
  */
74780
75317
  503: MediaMediaError;
74781
75318
  };
74782
- export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
74783
- export type MediaListEventsResponses = {
75319
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
75320
+ export type MediaListUnderstandingsByLibraryResponses = {
74784
75321
  /**
74785
75322
  * Successful response.
74786
75323
  */
74787
- 200: MediaMediaEventPage;
75324
+ 200: MediaUnderstandingPage;
74788
75325
  };
74789
- export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
74790
- export type MediaCreateDeliveryTokenData = {
75326
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75327
+ export type MediaCreateGenerationData = {
74791
75328
  /**
74792
- * Options for authorizing private asset delivery within one active library.
75329
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
74793
75330
  */
74794
75331
  body: {
74795
75332
  /**
74796
- * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
75333
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
74797
75334
  */
74798
- acl?: string;
75335
+ intent: 'video.generate';
74799
75336
  /**
74800
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
75337
+ * Text prompt describing the video to generate.
74801
75338
  */
74802
- expires_in?: number;
75339
+ prompt: string;
75340
+ /**
75341
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
75342
+ */
75343
+ count?: number;
75344
+ /**
75345
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
75346
+ */
75347
+ duration_seconds?: number;
75348
+ /**
75349
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
75350
+ */
75351
+ aspect_ratio?: string;
75352
+ /**
75353
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
75354
+ */
75355
+ model?: string;
75356
+ /**
75357
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
75358
+ */
75359
+ save?: 'candidate' | 'library';
75360
+ /**
75361
+ * Folder for assets saved automatically or by later save calls; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
75362
+ */
75363
+ asset_folder?: string;
75364
+ /**
75365
+ * Tags applied when an output becomes a library asset.
75366
+ */
75367
+ tags?: Array<string>;
75368
+ /**
75369
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
75370
+ */
75371
+ understanding?: 'auto' | 'skip';
75372
+ /**
75373
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
75374
+ */
75375
+ references?: Array<unknown>;
75376
+ };
75377
+ headers?: {
75378
+ /**
75379
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
75380
+ */
75381
+ 'Idempotency-Key'?: string;
74803
75382
  };
74804
75383
  path: {
74805
75384
  /**
@@ -74808,19 +75387,19 @@ export type MediaCreateDeliveryTokenData = {
74808
75387
  library_id: string;
74809
75388
  };
74810
75389
  query?: never;
74811
- url: '/media/v1/libraries/{library_id}/delivery_tokens';
75390
+ url: '/media/v1/libraries/{library_id}/generations';
74812
75391
  };
74813
- export type MediaCreateDeliveryTokenErrors = {
75392
+ export type MediaCreateGenerationErrors = {
74814
75393
  /**
74815
- * Request failed; see the error code reference.
75394
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74816
75395
  */
74817
75396
  400: MediaMediaError;
74818
75397
  /**
74819
- * Request failed; see the error code reference.
75398
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74820
75399
  */
74821
75400
  403: MediaMediaError;
74822
75401
  /**
74823
- * Request failed; see the error code reference.
75402
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74824
75403
  */
74825
75404
  404: MediaMediaError;
74826
75405
  /**
@@ -74828,19 +75407,23 @@ export type MediaCreateDeliveryTokenErrors = {
74828
75407
  */
74829
75408
  409: MediaMediaError;
74830
75409
  /**
74831
- * Request failed; see the error code reference.
75410
+ * The file exceeds an input limit; provide a smaller source file.
74832
75411
  */
74833
75412
  413: MediaMediaError;
74834
75413
  /**
74835
- * Request failed; see the error code reference.
75414
+ * This media format is unsupported; provide a supported format.
74836
75415
  */
74837
75416
  415: MediaMediaError;
74838
75417
  /**
74839
75418
  * Request failed; see the error code reference.
74840
75419
  */
75420
+ 422: MediaMediaError;
75421
+ /**
75422
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75423
+ */
74841
75424
  429: MediaMediaError;
74842
75425
  /**
74843
- * Request failed; see the error code reference.
75426
+ * The requested operation is unsupported; choose a supported method.
74844
75427
  */
74845
75428
  501: MediaMediaError;
74846
75429
  /**
@@ -74848,19 +75431,19 @@ export type MediaCreateDeliveryTokenErrors = {
74848
75431
  */
74849
75432
  502: MediaMediaError;
74850
75433
  /**
74851
- * Request failed; see the error code reference.
75434
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74852
75435
  */
74853
75436
  503: MediaMediaError;
74854
75437
  };
74855
- export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
74856
- export type MediaCreateDeliveryTokenResponses = {
75438
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75439
+ export type MediaCreateGenerationResponses = {
74857
75440
  /**
74858
75441
  * Successful response.
74859
75442
  */
74860
- 200: MediaDeliveryToken;
75443
+ 202: MediaJob;
74861
75444
  };
74862
- export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
74863
- export type MediaUnderstandingFailureSummaryData = {
75445
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75446
+ export type MediaListJobsData = {
74864
75447
  body?: never;
74865
75448
  path: {
74866
75449
  /**
@@ -74868,10 +75451,23 @@ export type MediaUnderstandingFailureSummaryData = {
74868
75451
  */
74869
75452
  library_id: string;
74870
75453
  };
74871
- query?: never;
74872
- url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
75454
+ query?: {
75455
+ /**
75456
+ * Filter jobs by their current status.
75457
+ */
75458
+ status?: MediaJobStatus;
75459
+ /**
75460
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75461
+ */
75462
+ limit?: number;
75463
+ /**
75464
+ * Job id from the previous page’s next_cursor; omit for the first page.
75465
+ */
75466
+ cursor?: MediaJobId;
75467
+ };
75468
+ url: '/media/v1/libraries/{library_id}/jobs';
74873
75469
  };
74874
- export type MediaUnderstandingFailureSummaryErrors = {
75470
+ export type MediaListJobsErrors = {
74875
75471
  /**
74876
75472
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74877
75473
  */
@@ -74896,6 +75492,10 @@ export type MediaUnderstandingFailureSummaryErrors = {
74896
75492
  * This media format is unsupported; provide a supported format.
74897
75493
  */
74898
75494
  415: MediaMediaError;
75495
+ /**
75496
+ * Request failed; see the error code reference.
75497
+ */
75498
+ 422: MediaMediaError;
74899
75499
  /**
74900
75500
  * A rate limit was reached; wait before retrying.
74901
75501
  */
@@ -74913,43 +75513,183 @@ export type MediaUnderstandingFailureSummaryErrors = {
74913
75513
  */
74914
75514
  503: MediaMediaError;
74915
75515
  };
74916
- export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
74917
- export type MediaUnderstandingFailureSummaryResponses = {
75516
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75517
+ export type MediaListJobsResponses = {
74918
75518
  /**
74919
75519
  * Successful response.
74920
75520
  */
74921
- 200: MediaFailureSummary;
75521
+ 200: MediaJobPage;
74922
75522
  };
74923
- export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
74924
- export type MediaListUnderstandingsByLibraryData = {
75523
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75524
+ export type MediaCancelJobData = {
74925
75525
  body?: never;
74926
75526
  path: {
74927
75527
  /**
74928
75528
  * Library ID returned by creation.
74929
75529
  */
74930
75530
  library_id: string;
75531
+ /**
75532
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75533
+ */
75534
+ job_id: string;
74931
75535
  };
74932
- query?: {
75536
+ query?: never;
75537
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
75538
+ };
75539
+ export type MediaCancelJobErrors = {
75540
+ /**
75541
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75542
+ */
75543
+ 400: MediaMediaError;
75544
+ /**
75545
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75546
+ */
75547
+ 403: MediaMediaError;
75548
+ /**
75549
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75550
+ */
75551
+ 404: MediaMediaError;
75552
+ /**
75553
+ * Request failed; see the error code reference.
75554
+ */
75555
+ 409: MediaMediaError;
75556
+ /**
75557
+ * The file exceeds an input limit; provide a smaller source file.
75558
+ */
75559
+ 413: MediaMediaError;
75560
+ /**
75561
+ * This media format is unsupported; provide a supported format.
75562
+ */
75563
+ 415: MediaMediaError;
75564
+ /**
75565
+ * Request failed; see the error code reference.
75566
+ */
75567
+ 422: MediaMediaError;
75568
+ /**
75569
+ * A rate limit was reached; wait before retrying.
75570
+ */
75571
+ 429: MediaMediaError;
75572
+ /**
75573
+ * The requested operation is unsupported; choose a supported method.
75574
+ */
75575
+ 501: MediaMediaError;
75576
+ /**
75577
+ * Request failed; see the error code reference.
75578
+ */
75579
+ 502: MediaMediaError;
75580
+ /**
75581
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75582
+ */
75583
+ 503: MediaMediaError;
75584
+ };
75585
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75586
+ export type MediaCancelJobResponses = {
75587
+ /**
75588
+ * Successful response.
75589
+ */
75590
+ 200: MediaJob;
75591
+ };
75592
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75593
+ export type MediaSaveGenerationOutputData = {
75594
+ /**
75595
+ * Optional asset metadata and understanding behavior for a successful candidate.
75596
+ */
75597
+ body?: {
74933
75598
  /**
74934
- * Folder path including all descendants; omitted or empty selects the entire library.
75599
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
74935
75600
  */
74936
- folder?: string;
75601
+ public_id?: string;
74937
75602
  /**
74938
- * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
75603
+ * Destination folder for the saved asset; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
74939
75604
  */
74940
- kinds?: string;
75605
+ asset_folder?: string;
74941
75606
  /**
74942
- * Cursor from the previous next_cursor.
75607
+ * Tags to apply to the saved asset.
74943
75608
  */
74944
- cursor?: string;
75609
+ tags?: Array<string>;
74945
75610
  /**
74946
- * Maximum entries in this page, from 1 through 100; defaults to 100.
75611
+ * Understanding behavior for the saved asset; defaults to auto.
74947
75612
  */
74948
- limit?: number;
75613
+ understanding?: 'auto' | 'skip';
74949
75614
  };
74950
- url: '/media/v1/libraries/{library_id}/understandings';
75615
+ path: {
75616
+ /**
75617
+ * Library ID returned by creation.
75618
+ */
75619
+ library_id: string;
75620
+ /**
75621
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75622
+ */
75623
+ job_id: string;
75624
+ /**
75625
+ * Zero-based position of the candidate in the Job outputs array.
75626
+ */
75627
+ index: string;
75628
+ };
75629
+ query?: never;
75630
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
74951
75631
  };
74952
- export type MediaListUnderstandingsByLibraryErrors = {
75632
+ export type MediaSaveGenerationOutputErrors = {
75633
+ /**
75634
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75635
+ */
75636
+ 400: MediaMediaError;
75637
+ /**
75638
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75639
+ */
75640
+ 403: MediaMediaError;
75641
+ /**
75642
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
75643
+ */
75644
+ 404: MediaMediaError;
75645
+ /**
75646
+ * Request failed; see the error code reference.
75647
+ */
75648
+ 409: MediaMediaError;
75649
+ /**
75650
+ * The file exceeds an input limit; provide a smaller source file.
75651
+ */
75652
+ 413: MediaMediaError;
75653
+ /**
75654
+ * This media format is unsupported; provide a supported format.
75655
+ */
75656
+ 415: MediaMediaError;
75657
+ /**
75658
+ * Request failed; see the error code reference.
75659
+ */
75660
+ 422: MediaMediaError;
75661
+ /**
75662
+ * A rate limit was reached; wait before retrying.
75663
+ */
75664
+ 429: MediaMediaError;
75665
+ /**
75666
+ * The requested operation is unsupported; choose a supported method.
75667
+ */
75668
+ 501: MediaMediaError;
75669
+ /**
75670
+ * Request failed; see the error code reference.
75671
+ */
75672
+ 502: MediaMediaError;
75673
+ /**
75674
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75675
+ */
75676
+ 503: MediaMediaError;
75677
+ };
75678
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
75679
+ export type MediaSaveGenerationOutputResponses = {
75680
+ /**
75681
+ * Successful response.
75682
+ */
75683
+ 200: MediaAsset;
75684
+ };
75685
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
75686
+ export type MediaGetGenerationCapabilitiesData = {
75687
+ body?: never;
75688
+ path?: never;
75689
+ query?: never;
75690
+ url: '/media/v1/generation/capabilities';
75691
+ };
75692
+ export type MediaGetGenerationCapabilitiesErrors = {
74953
75693
  /**
74954
75694
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74955
75695
  */
@@ -74974,6 +75714,10 @@ export type MediaListUnderstandingsByLibraryErrors = {
74974
75714
  * This media format is unsupported; provide a supported format.
74975
75715
  */
74976
75716
  415: MediaMediaError;
75717
+ /**
75718
+ * Request failed; see the error code reference.
75719
+ */
75720
+ 422: MediaMediaError;
74977
75721
  /**
74978
75722
  * A rate limit was reached; wait before retrying.
74979
75723
  */
@@ -74991,14 +75735,14 @@ export type MediaListUnderstandingsByLibraryErrors = {
74991
75735
  */
74992
75736
  503: MediaMediaError;
74993
75737
  };
74994
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
74995
- export type MediaListUnderstandingsByLibraryResponses = {
75738
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75739
+ export type MediaGetGenerationCapabilitiesResponses = {
74996
75740
  /**
74997
75741
  * Successful response.
74998
75742
  */
74999
- 200: MediaUnderstandingPage;
75743
+ 200: MediaGenerationCapabilities;
75000
75744
  };
75001
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75745
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
75002
75746
  export type GetSandboxV1SandboxesData = {
75003
75747
  body?: never;
75004
75748
  path?: never;