@datocms/cma-client 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +2 -1
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/UploadTrack.js +183 -0
- package/dist/cjs/generated/resources/UploadTrack.js.map +1 -0
- package/dist/cjs/generated/resources/index.js +3 -1
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/esm/generated/Client.d.ts +1 -0
- package/dist/esm/generated/Client.js +2 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +188 -1
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +175 -2
- package/dist/esm/generated/resources/UploadTrack.d.ts +82 -0
- package/dist/esm/generated/resources/UploadTrack.js +155 -0
- package/dist/esm/generated/resources/UploadTrack.js.map +1 -0
- package/dist/esm/generated/resources/index.d.ts +1 -0
- package/dist/esm/generated/resources/index.js +1 -0
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/types/generated/Client.d.ts +1 -0
- package/dist/types/generated/SchemaTypes.d.ts +188 -1
- package/dist/types/generated/SimpleSchemaTypes.d.ts +175 -2
- package/dist/types/generated/resources/UploadTrack.d.ts +82 -0
- package/dist/types/generated/resources/index.d.ts +1 -0
- package/package.json +4 -4
- package/resources.json +955 -153
- package/src/generated/Client.ts +3 -1
- package/src/generated/SchemaTypes.ts +201 -1
- package/src/generated/SimpleSchemaTypes.ts +180 -2
- package/src/generated/resources/UploadTrack.ts +186 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -894,6 +894,21 @@ export type UploadRequestType = 'upload_request';
|
|
|
894
894
|
* via the `definition` "id".
|
|
895
895
|
*/
|
|
896
896
|
export type UploadRequestIdentity = string;
|
|
897
|
+
/**
|
|
898
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
899
|
+
* via the `definition` "type".
|
|
900
|
+
*/
|
|
901
|
+
export type UploadTrackType = 'upload_track';
|
|
902
|
+
/**
|
|
903
|
+
* ID of the upload track
|
|
904
|
+
*
|
|
905
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
906
|
+
* via the `definition` "identity".
|
|
907
|
+
*
|
|
908
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
909
|
+
* via the `definition` "id".
|
|
910
|
+
*/
|
|
911
|
+
export type UploadTrackIdentity = string;
|
|
897
912
|
/**
|
|
898
913
|
* This interface was referenced by `SearchResult`'s JSON-Schema
|
|
899
914
|
* via the `definition` "type".
|
|
@@ -1368,6 +1383,7 @@ export type DatoApi = {
|
|
|
1368
1383
|
item_version?: ItemVersion;
|
|
1369
1384
|
upload?: Upload;
|
|
1370
1385
|
upload_request?: UploadRequest;
|
|
1386
|
+
upload_track?: UploadTrack;
|
|
1371
1387
|
scheduled_publication?: ScheduledPublication;
|
|
1372
1388
|
scheduled_unpublishing?: ScheduledUnpublishing;
|
|
1373
1389
|
search_result?: SearchResult;
|
|
@@ -7712,6 +7728,173 @@ export type UploadRequestCreateSchema = {
|
|
|
7712
7728
|
export type UploadRequestCreateTargetSchema = {
|
|
7713
7729
|
data: UploadRequest;
|
|
7714
7730
|
};
|
|
7731
|
+
/**
|
|
7732
|
+
* If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
|
|
7733
|
+
*
|
|
7734
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
7735
|
+
* via the `definition` "upload_track".
|
|
7736
|
+
*/
|
|
7737
|
+
export type UploadTrack = {
|
|
7738
|
+
type: UploadTrackType;
|
|
7739
|
+
id: UploadTrackIdentity;
|
|
7740
|
+
attributes: UploadTrackAttributes;
|
|
7741
|
+
relationships: UploadTrackRelationships;
|
|
7742
|
+
};
|
|
7743
|
+
/**
|
|
7744
|
+
* JSON API attributes
|
|
7745
|
+
*
|
|
7746
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7747
|
+
* via the `definition` "attributes".
|
|
7748
|
+
*/
|
|
7749
|
+
export type UploadTrackAttributes = {
|
|
7750
|
+
/**
|
|
7751
|
+
* The type of track (audio or subtitles)
|
|
7752
|
+
*/
|
|
7753
|
+
type: 'subtitles' | 'audio';
|
|
7754
|
+
/**
|
|
7755
|
+
* The human-readable name of the track
|
|
7756
|
+
*/
|
|
7757
|
+
name: string;
|
|
7758
|
+
/**
|
|
7759
|
+
* A valid BCP 47 specification compliant language code
|
|
7760
|
+
*/
|
|
7761
|
+
language_code: string;
|
|
7762
|
+
/**
|
|
7763
|
+
* When status is `errored`, explains the reason for the error
|
|
7764
|
+
*/
|
|
7765
|
+
error: null | string;
|
|
7766
|
+
/**
|
|
7767
|
+
* The status of the asset
|
|
7768
|
+
*/
|
|
7769
|
+
status: 'preparing' | 'ready' | 'errored';
|
|
7770
|
+
/**
|
|
7771
|
+
* Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
|
|
7772
|
+
*/
|
|
7773
|
+
closed_captions: null | boolean;
|
|
7774
|
+
};
|
|
7775
|
+
/**
|
|
7776
|
+
* JSON API links
|
|
7777
|
+
*
|
|
7778
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7779
|
+
* via the `definition` "relationships".
|
|
7780
|
+
*/
|
|
7781
|
+
export type UploadTrackRelationships = {
|
|
7782
|
+
/**
|
|
7783
|
+
* The upload containing the track
|
|
7784
|
+
*/
|
|
7785
|
+
upload: {
|
|
7786
|
+
data: UploadData;
|
|
7787
|
+
};
|
|
7788
|
+
};
|
|
7789
|
+
/**
|
|
7790
|
+
* JSON API data
|
|
7791
|
+
*
|
|
7792
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7793
|
+
* via the `definition` "data".
|
|
7794
|
+
*/
|
|
7795
|
+
export type UploadTrackData = {
|
|
7796
|
+
type: UploadTrackType;
|
|
7797
|
+
id: UploadTrackIdentity;
|
|
7798
|
+
};
|
|
7799
|
+
/**
|
|
7800
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7801
|
+
* via the `create.schema` link.
|
|
7802
|
+
*/
|
|
7803
|
+
export type UploadTrackCreateSchema = {
|
|
7804
|
+
data: {
|
|
7805
|
+
type: UploadTrackType;
|
|
7806
|
+
attributes: {
|
|
7807
|
+
/**
|
|
7808
|
+
* Either an URL to download, or the ID of an upload request
|
|
7809
|
+
*/
|
|
7810
|
+
url_or_upload_request_id: string;
|
|
7811
|
+
/**
|
|
7812
|
+
* The type of track (audio or subtitles)
|
|
7813
|
+
*/
|
|
7814
|
+
type: 'subtitles' | 'audio';
|
|
7815
|
+
/**
|
|
7816
|
+
* The human-readable name of the track
|
|
7817
|
+
*/
|
|
7818
|
+
name?: string;
|
|
7819
|
+
/**
|
|
7820
|
+
* A valid BCP 47 specification compliant language code
|
|
7821
|
+
*/
|
|
7822
|
+
language_code: string;
|
|
7823
|
+
/**
|
|
7824
|
+
* Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
|
|
7825
|
+
*/
|
|
7826
|
+
closed_captions?: null | boolean;
|
|
7827
|
+
};
|
|
7828
|
+
};
|
|
7829
|
+
};
|
|
7830
|
+
/**
|
|
7831
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7832
|
+
* via the `create.targetSchema` link.
|
|
7833
|
+
*/
|
|
7834
|
+
export type UploadTrackCreateTargetSchema = {
|
|
7835
|
+
data: Job;
|
|
7836
|
+
};
|
|
7837
|
+
/**
|
|
7838
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7839
|
+
* via the `create.jobSchema` link.
|
|
7840
|
+
*/
|
|
7841
|
+
export type UploadTrackCreateJobSchema = {
|
|
7842
|
+
data: UploadTrack;
|
|
7843
|
+
};
|
|
7844
|
+
/**
|
|
7845
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7846
|
+
* via the `instances.targetSchema` link.
|
|
7847
|
+
*/
|
|
7848
|
+
export type UploadTrackInstancesTargetSchema = {
|
|
7849
|
+
data: UploadTrack[];
|
|
7850
|
+
};
|
|
7851
|
+
/**
|
|
7852
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7853
|
+
* via the `destroy.targetSchema` link.
|
|
7854
|
+
*/
|
|
7855
|
+
export type UploadTrackDestroyTargetSchema = {
|
|
7856
|
+
data: Job;
|
|
7857
|
+
};
|
|
7858
|
+
/**
|
|
7859
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7860
|
+
* via the `destroy.jobSchema` link.
|
|
7861
|
+
*/
|
|
7862
|
+
export type UploadTrackDestroyJobSchema = {
|
|
7863
|
+
data: UploadTrack;
|
|
7864
|
+
};
|
|
7865
|
+
/**
|
|
7866
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7867
|
+
* via the `generate_subtitles.schema` link.
|
|
7868
|
+
*/
|
|
7869
|
+
export type UploadTrackGenerateSubtitlesSchema = {
|
|
7870
|
+
data: {
|
|
7871
|
+
type: UploadTrackType;
|
|
7872
|
+
attributes: {
|
|
7873
|
+
/**
|
|
7874
|
+
* The human-readable name of the track
|
|
7875
|
+
*/
|
|
7876
|
+
name?: string;
|
|
7877
|
+
/**
|
|
7878
|
+
* A valid BCP 47 specification compliant language code
|
|
7879
|
+
*/
|
|
7880
|
+
language_code: string;
|
|
7881
|
+
};
|
|
7882
|
+
};
|
|
7883
|
+
};
|
|
7884
|
+
/**
|
|
7885
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7886
|
+
* via the `generate_subtitles.targetSchema` link.
|
|
7887
|
+
*/
|
|
7888
|
+
export type UploadTrackGenerateSubtitlesTargetSchema = {
|
|
7889
|
+
data: Job;
|
|
7890
|
+
};
|
|
7891
|
+
/**
|
|
7892
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7893
|
+
* via the `generate_subtitles.jobSchema` link.
|
|
7894
|
+
*/
|
|
7895
|
+
export type UploadTrackGenerateSubtitlesJobSchema = {
|
|
7896
|
+
data: UploadTrack;
|
|
7897
|
+
};
|
|
7715
7898
|
/**
|
|
7716
7899
|
* DatoCMS Site Search is a way to deliver tailored search results to your site visitors. This is the endpoint you can use to query for results.
|
|
7717
7900
|
*
|
|
@@ -9649,9 +9832,13 @@ export type DailyUsageAttributes = {
|
|
|
9649
9832
|
*/
|
|
9650
9833
|
assets_traffic_bytes: number;
|
|
9651
9834
|
/**
|
|
9652
|
-
*
|
|
9835
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9653
9836
|
*/
|
|
9654
9837
|
mux_delivered_seconds: number;
|
|
9838
|
+
/**
|
|
9839
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9840
|
+
*/
|
|
9841
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9655
9842
|
/**
|
|
9656
9843
|
* Video encoding seconds
|
|
9657
9844
|
*/
|
|
@@ -1066,6 +1066,26 @@ export type UploadRequestIdentity = string;
|
|
|
1066
1066
|
* via the `definition` "type".
|
|
1067
1067
|
*/
|
|
1068
1068
|
export type UploadRequestType = 'upload_request';
|
|
1069
|
+
/**
|
|
1070
|
+
* ID of the upload track
|
|
1071
|
+
*
|
|
1072
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
1073
|
+
* via the `definition` "identity".
|
|
1074
|
+
*
|
|
1075
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
1076
|
+
* via the `definition` "id".
|
|
1077
|
+
*/
|
|
1078
|
+
export type UploadTrackIdentity = string;
|
|
1079
|
+
/**
|
|
1080
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
1081
|
+
* via the `definition` "type".
|
|
1082
|
+
*/
|
|
1083
|
+
export type UploadTrackType = 'upload_track';
|
|
1084
|
+
/**
|
|
1085
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
1086
|
+
* via the `instances.targetSchema` link.
|
|
1087
|
+
*/
|
|
1088
|
+
export type UploadTrackInstancesTargetSchema = UploadTrack[];
|
|
1069
1089
|
/**
|
|
1070
1090
|
* ID of result
|
|
1071
1091
|
*
|
|
@@ -1653,6 +1673,7 @@ export type DatoApi = {
|
|
|
1653
1673
|
item_version?: ItemVersion;
|
|
1654
1674
|
upload?: Upload;
|
|
1655
1675
|
upload_request?: UploadRequest;
|
|
1676
|
+
upload_track?: UploadTrack;
|
|
1656
1677
|
scheduled_publication?: ScheduledPublication;
|
|
1657
1678
|
scheduled_unpublishing?: ScheduledUnpublishing;
|
|
1658
1679
|
search_result?: SearchResult;
|
|
@@ -4502,6 +4523,15 @@ export type ItemTypeUpdateSchema = {
|
|
|
4502
4523
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4503
4524
|
* via the `bulk_destroy.targetSchema` link.
|
|
4504
4525
|
*
|
|
4526
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4527
|
+
* via the `create.targetSchema` link.
|
|
4528
|
+
*
|
|
4529
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4530
|
+
* via the `destroy.targetSchema` link.
|
|
4531
|
+
*
|
|
4532
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4533
|
+
* via the `generate_subtitles.targetSchema` link.
|
|
4534
|
+
*
|
|
4505
4535
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
4506
4536
|
* via the `update.targetSchema` link.
|
|
4507
4537
|
*
|
|
@@ -4537,6 +4567,9 @@ export type UploadBatchAddTagsTargetSchema = Job;
|
|
|
4537
4567
|
export type UploadBatchDestroyTargetSchema = Job;
|
|
4538
4568
|
export type UploadBulkTagTargetSchema = Job;
|
|
4539
4569
|
export type UploadBulkDestroyTargetSchema = Job;
|
|
4570
|
+
export type UploadTrackCreateTargetSchema = Job;
|
|
4571
|
+
export type UploadTrackDestroyTargetSchema = Job;
|
|
4572
|
+
export type UploadTrackGenerateSubtitlesTargetSchema = Job;
|
|
4540
4573
|
export type SiteUpdateTargetSchema = Job;
|
|
4541
4574
|
export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
4542
4575
|
/**
|
|
@@ -7504,6 +7537,138 @@ export type UploadRequestCreateSchema = {
|
|
|
7504
7537
|
*/
|
|
7505
7538
|
filename?: string;
|
|
7506
7539
|
};
|
|
7540
|
+
/**
|
|
7541
|
+
* If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
|
|
7542
|
+
*
|
|
7543
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
7544
|
+
* via the `definition` "upload_track".
|
|
7545
|
+
*/
|
|
7546
|
+
export type UploadTrack = {
|
|
7547
|
+
id: UploadTrackIdentity;
|
|
7548
|
+
/**
|
|
7549
|
+
* The type of track (audio or subtitles)
|
|
7550
|
+
*/
|
|
7551
|
+
type: 'subtitles' | 'audio';
|
|
7552
|
+
/**
|
|
7553
|
+
* The human-readable name of the track
|
|
7554
|
+
*/
|
|
7555
|
+
name: string;
|
|
7556
|
+
/**
|
|
7557
|
+
* A valid BCP 47 specification compliant language code
|
|
7558
|
+
*/
|
|
7559
|
+
language_code: string;
|
|
7560
|
+
/**
|
|
7561
|
+
* When status is `errored`, explains the reason for the error
|
|
7562
|
+
*/
|
|
7563
|
+
error: null | string;
|
|
7564
|
+
/**
|
|
7565
|
+
* The status of the asset
|
|
7566
|
+
*/
|
|
7567
|
+
status: 'preparing' | 'ready' | 'errored';
|
|
7568
|
+
/**
|
|
7569
|
+
* Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
|
|
7570
|
+
*/
|
|
7571
|
+
closed_captions: null | boolean;
|
|
7572
|
+
upload: UploadData;
|
|
7573
|
+
};
|
|
7574
|
+
export type UploadTrackCreateJobSchema = UploadTrack;
|
|
7575
|
+
export type UploadTrackDestroyJobSchema = UploadTrack;
|
|
7576
|
+
export type UploadTrackGenerateSubtitlesJobSchema = UploadTrack;
|
|
7577
|
+
/**
|
|
7578
|
+
* JSON API data
|
|
7579
|
+
*
|
|
7580
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7581
|
+
* via the `definition` "data".
|
|
7582
|
+
*/
|
|
7583
|
+
export type UploadTrackData = {
|
|
7584
|
+
/**
|
|
7585
|
+
* The type of track (audio or subtitles)
|
|
7586
|
+
*/
|
|
7587
|
+
type: 'subtitles' | 'audio';
|
|
7588
|
+
id: UploadTrackIdentity;
|
|
7589
|
+
};
|
|
7590
|
+
/**
|
|
7591
|
+
* JSON API attributes
|
|
7592
|
+
*
|
|
7593
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7594
|
+
* via the `definition` "attributes".
|
|
7595
|
+
*/
|
|
7596
|
+
export type UploadTrackAttributes = {
|
|
7597
|
+
/**
|
|
7598
|
+
* The type of track (audio or subtitles)
|
|
7599
|
+
*/
|
|
7600
|
+
type: 'subtitles' | 'audio';
|
|
7601
|
+
/**
|
|
7602
|
+
* The human-readable name of the track
|
|
7603
|
+
*/
|
|
7604
|
+
name: string;
|
|
7605
|
+
/**
|
|
7606
|
+
* A valid BCP 47 specification compliant language code
|
|
7607
|
+
*/
|
|
7608
|
+
language_code: string;
|
|
7609
|
+
/**
|
|
7610
|
+
* When status is `errored`, explains the reason for the error
|
|
7611
|
+
*/
|
|
7612
|
+
error: null | string;
|
|
7613
|
+
/**
|
|
7614
|
+
* The status of the asset
|
|
7615
|
+
*/
|
|
7616
|
+
status: 'preparing' | 'ready' | 'errored';
|
|
7617
|
+
/**
|
|
7618
|
+
* Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
|
|
7619
|
+
*/
|
|
7620
|
+
closed_captions: null | boolean;
|
|
7621
|
+
};
|
|
7622
|
+
/**
|
|
7623
|
+
* JSON API links
|
|
7624
|
+
*
|
|
7625
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7626
|
+
* via the `definition` "relationships".
|
|
7627
|
+
*/
|
|
7628
|
+
export type UploadTrackRelationships = {
|
|
7629
|
+
upload: UploadData;
|
|
7630
|
+
};
|
|
7631
|
+
/**
|
|
7632
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7633
|
+
* via the `create.schema` link.
|
|
7634
|
+
*/
|
|
7635
|
+
export type UploadTrackCreateSchema = {
|
|
7636
|
+
/**
|
|
7637
|
+
* The type of track (audio or subtitles)
|
|
7638
|
+
*/
|
|
7639
|
+
type: 'subtitles' | 'audio';
|
|
7640
|
+
/**
|
|
7641
|
+
* Either an URL to download, or the ID of an upload request
|
|
7642
|
+
*/
|
|
7643
|
+
url_or_upload_request_id: string;
|
|
7644
|
+
/**
|
|
7645
|
+
* The human-readable name of the track
|
|
7646
|
+
*/
|
|
7647
|
+
name?: string;
|
|
7648
|
+
/**
|
|
7649
|
+
* A valid BCP 47 specification compliant language code
|
|
7650
|
+
*/
|
|
7651
|
+
language_code: string;
|
|
7652
|
+
/**
|
|
7653
|
+
* Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
|
|
7654
|
+
*/
|
|
7655
|
+
closed_captions?: null | boolean;
|
|
7656
|
+
};
|
|
7657
|
+
/**
|
|
7658
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
7659
|
+
* via the `generate_subtitles.schema` link.
|
|
7660
|
+
*/
|
|
7661
|
+
export type UploadTrackGenerateSubtitlesSchema = {
|
|
7662
|
+
type?: UploadTrackType;
|
|
7663
|
+
/**
|
|
7664
|
+
* The human-readable name of the track
|
|
7665
|
+
*/
|
|
7666
|
+
name?: string;
|
|
7667
|
+
/**
|
|
7668
|
+
* A valid BCP 47 specification compliant language code
|
|
7669
|
+
*/
|
|
7670
|
+
language_code: string;
|
|
7671
|
+
};
|
|
7507
7672
|
/**
|
|
7508
7673
|
* You can create scheduled publication to publish records in the future
|
|
7509
7674
|
*
|
|
@@ -9358,9 +9523,13 @@ export type DailyUsage = {
|
|
|
9358
9523
|
*/
|
|
9359
9524
|
assets_traffic_bytes: number;
|
|
9360
9525
|
/**
|
|
9361
|
-
*
|
|
9526
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9362
9527
|
*/
|
|
9363
9528
|
mux_delivered_seconds: number;
|
|
9529
|
+
/**
|
|
9530
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9531
|
+
*/
|
|
9532
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9364
9533
|
/**
|
|
9365
9534
|
* Video encoding seconds
|
|
9366
9535
|
*/
|
|
@@ -9408,9 +9577,13 @@ export type DailyUsageAttributes = {
|
|
|
9408
9577
|
*/
|
|
9409
9578
|
assets_traffic_bytes: number;
|
|
9410
9579
|
/**
|
|
9411
|
-
*
|
|
9580
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9412
9581
|
*/
|
|
9413
9582
|
mux_delivered_seconds: number;
|
|
9583
|
+
/**
|
|
9584
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9585
|
+
*/
|
|
9586
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9414
9587
|
/**
|
|
9415
9588
|
* Video encoding seconds
|
|
9416
9589
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import BaseResource from '../../BaseResource';
|
|
2
|
+
import type * as SchemaTypes from '../SchemaTypes';
|
|
3
|
+
import type * as SimpleSchemaTypes from '../SimpleSchemaTypes';
|
|
4
|
+
export default class UploadTrack extends BaseResource {
|
|
5
|
+
static readonly TYPE: "upload_track";
|
|
6
|
+
/**
|
|
7
|
+
* Create a new upload track
|
|
8
|
+
*
|
|
9
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/create
|
|
10
|
+
*
|
|
11
|
+
* @throws {ApiError}
|
|
12
|
+
* @throws {TimeoutError}
|
|
13
|
+
*/
|
|
14
|
+
create(uploadId: string | SimpleSchemaTypes.UploadData, body: SimpleSchemaTypes.UploadTrackCreateSchema): Promise<SimpleSchemaTypes.UploadTrack>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new upload track
|
|
17
|
+
*
|
|
18
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/create
|
|
19
|
+
*
|
|
20
|
+
* @throws {ApiError}
|
|
21
|
+
* @throws {TimeoutError}
|
|
22
|
+
*/
|
|
23
|
+
rawCreate(uploadId: string, body: SchemaTypes.UploadTrackCreateSchema): Promise<SchemaTypes.UploadTrackCreateJobSchema>;
|
|
24
|
+
/**
|
|
25
|
+
* List upload tracks
|
|
26
|
+
*
|
|
27
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/instances
|
|
28
|
+
*
|
|
29
|
+
* @throws {ApiError}
|
|
30
|
+
* @throws {TimeoutError}
|
|
31
|
+
*/
|
|
32
|
+
list(uploadId: string | SimpleSchemaTypes.UploadData): Promise<SimpleSchemaTypes.UploadTrackInstancesTargetSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* List upload tracks
|
|
35
|
+
*
|
|
36
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/instances
|
|
37
|
+
*
|
|
38
|
+
* @throws {ApiError}
|
|
39
|
+
* @throws {TimeoutError}
|
|
40
|
+
*/
|
|
41
|
+
rawList(uploadId: string): Promise<SchemaTypes.UploadTrackInstancesTargetSchema>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete an upload track
|
|
44
|
+
*
|
|
45
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/destroy
|
|
46
|
+
*
|
|
47
|
+
* @throws {ApiError}
|
|
48
|
+
* @throws {TimeoutError}
|
|
49
|
+
*/
|
|
50
|
+
destroy(uploadId: string | SimpleSchemaTypes.UploadData, uploadTrackId: string | SimpleSchemaTypes.UploadTrackData): Promise<SimpleSchemaTypes.UploadTrack>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete an upload track
|
|
53
|
+
*
|
|
54
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/destroy
|
|
55
|
+
*
|
|
56
|
+
* @throws {ApiError}
|
|
57
|
+
* @throws {TimeoutError}
|
|
58
|
+
*/
|
|
59
|
+
rawDestroy(uploadId: string, uploadTrackId: string): Promise<SchemaTypes.UploadTrackDestroyJobSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* Automatically generate a subtitles track
|
|
62
|
+
*
|
|
63
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/generate_subtitles
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
67
|
+
*
|
|
68
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
69
|
+
*/
|
|
70
|
+
generateSubtitles(uploadId: string | SimpleSchemaTypes.UploadData, body: SimpleSchemaTypes.UploadTrackGenerateSubtitlesSchema): Promise<SimpleSchemaTypes.UploadTrack>;
|
|
71
|
+
/**
|
|
72
|
+
* Automatically generate a subtitles track
|
|
73
|
+
*
|
|
74
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-track/generate_subtitles
|
|
75
|
+
*
|
|
76
|
+
* @throws {ApiError}
|
|
77
|
+
* @throws {TimeoutError}
|
|
78
|
+
*
|
|
79
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
80
|
+
*/
|
|
81
|
+
rawGenerateSubtitles(uploadId: string, body: SchemaTypes.UploadTrackGenerateSubtitlesSchema): Promise<SchemaTypes.UploadTrackGenerateSubtitlesJobSchema>;
|
|
82
|
+
}
|
|
@@ -18,6 +18,7 @@ export { default as Item } from './Item';
|
|
|
18
18
|
export { default as ItemVersion } from './ItemVersion';
|
|
19
19
|
export { default as Upload } from './Upload';
|
|
20
20
|
export { default as UploadRequest } from './UploadRequest';
|
|
21
|
+
export { default as UploadTrack } from './UploadTrack';
|
|
21
22
|
export { default as ScheduledPublication } from './ScheduledPublication';
|
|
22
23
|
export { default as ScheduledUnpublishing } from './ScheduledUnpublishing';
|
|
23
24
|
export { default as SearchResult } from './SearchResult';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": ["datocms", "client"],
|
|
6
6
|
"author": "Stefano Verna <s.verna@datocms.com>",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@datocms/rest-client-utils": "^3.3.
|
|
33
|
+
"@datocms/rest-client-utils": "^3.3.2",
|
|
34
34
|
"uuid": "^9.0.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@datocms/dashboard-client": "^3.3.
|
|
37
|
+
"@datocms/dashboard-client": "^3.3.2",
|
|
38
38
|
"@types/uuid": "^9.0.7"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "db3b3b51daa7a56b933c1cadc47016c72cafb8f0"
|
|
41
41
|
}
|